/* ===================================================== */
/* =============== GLOBAL RESET & BASE ================== */
/* ===================================================== */

*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html {
font-size: 16px;
scroll-behavior: smooth;
}

body {
font-family: 'Roboto', sans-serif;
background-color: #F0E9D2;
color: #181D31;
line-height: 1.6;
overflow-x: hidden;
min-height: 100vh;
}

/* ===================================================== */
/* ================= HEADER SECTION ===================== */
/* ===================================================== */

.header-bar {
background: #181D31;
color: #fff;
padding: 10px;
}

.logo-left {
display: flex;
align-items: center;
width: 100%;
}

.logo-left img {
width: 65px;
height: 65px;
border-radius: 50%;
margin-right: 10px;
transition: 0.3s;
}

.logo-left img:hover {
transform: scale(1.1);
box-shadow: 0 0 12px rgba(255,255,255,0.7);
}

.title-text {
display: flex;
align-items: center;
}

.hke-text {
font-size: 1.2rem;
font-weight: bold;
line-height: 1.4;
}

.estd {
margin-left: auto;
text-align: right;
font-weight: 600;
line-height: 1.5;
}

/* ===================================================== */
/* ================= NAVIGATION ========================= */
/* ===================================================== */

nav {
width: 100%;
background: #678983;
position: relative;
z-index: 1000;
box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Fixed Navbar */

nav.fixed {
position: fixed;
top: 0;
left: 0;
width: 100%;
animation: slideDown 0.4s ease;
}

@keyframes slideDown {
from {
transform: translateY(-100%);
}
to {
transform: translateY(0);
}
}

/* ===================================================== */
/* ================= DESKTOP NAV ======================= */
/* ===================================================== */

nav ul {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;

list-style: none;

padding: 0 10px;
margin: 0;
}

nav ul li {
position: relative;
}

/* Main Links */

nav ul li > a {
display: block;

padding: 14px 18px;

color: #ffffff;
text-decoration: none;

font-size: 0.96rem;
font-weight: 500;
line-height: 1.4;

transition: all 0.3s ease;
}

/* Hover */

nav ul li > a:hover {
background: rgba(255,255,255,0.15);
color: #E6DDC4;
border-radius: 6px;
}

/* ===================================================== */
/* ================= DROPDOWN MENU ===================== */
/* ===================================================== */

nav ul li ol {
position: absolute;
top: 100%;
left: 0;

min-width: 240px;
padding: 8px 0;

list-style: none;
background: #181D31;

border-radius: 10px;
box-shadow: 0 10px 22px rgba(0,0,0,0.18);

opacity: 0;
visibility: hidden;
transform: translateY(10px);

transition: all 0.3s ease;
}

/* Desktop Dropdown */

@media (min-width: 769px) {

nav ul li:hover > ol {
opacity: 1;
visibility: visible;
transform: translateY(0);
}

}

/* Dropdown Links */

nav ul li ol li a {
display: block;
padding: 12px 18px;

color: #ffffff;
font-size: 0.94rem;
font-weight: 400;

white-space: nowrap;
}

/* Dropdown Hover */

nav ul li ol li a:hover {
background: #678983;
color: #ffffff;
}

/* ===================================================== */
/* ================= MEGA MENU ========================= */
/* ===================================================== */

nav ol.spreadwide.department {
column-count: 2;
column-gap: 20px;
min-width: 480px;
}

nav ol.spreadwide.about {
min-width: 300px;
}

/* ===================================================== */
/* ================= HAMBURGER ========================= */
/* ===================================================== */

.hamburger {
display: none;

background: none;
border: none;
outline: none;

color: #ffffff;
font-size: 28px;

cursor: pointer;

padding: 12px 18px;

transition: 0.3s ease;
}

.hamburger:hover {
transform: scale(1.08);
}

/* ===================================================== */
/* ================= MOBILE NAVIGATION ================= */
/* ===================================================== */

@media screen and (max-width: 768px) {

nav {
position: relative;
padding-top: 5px;
padding-bottom: 5px;
}

/* Hamburger */

.hamburger {
display: block;
margin-left: auto;
margin-right: 10px;
}

/* Mobile Menu */

nav ul {
display: none;

flex-direction: column;
align-items: stretch;

width: 100%;

background: #678983;

padding: 0;
margin: 0;
}

/* Active Mobile Menu */

nav ul.active {
display: flex;
}

/* Menu Items */

nav ul li {
width: 100%;
border-top: 1px solid rgba(255,255,255,0.12);
}

/* Main Links */

nav ul li > a {
width: 100%;
padding: 14px 20px;

text-align: left;
border-radius: 0;
}

/* Mobile Dropdown */

nav ul li ol {
position: static;

display: none;

opacity: 1;
visibility: visible;
transform: none;

min-width: 100%;
width: 100%;

background: #3D5656;

border-radius: 0;
box-shadow: none;

padding: 0;
}

/* Open Dropdown */

nav ul li.active > ol {
display: block;
}

/* Dropdown Links */

nav ul li ol li a {
padding: 12px 30px;
font-size: 0.92rem;
}

/* Mega Menu Mobile */

nav ol.spreadwide.department,
nav ol.spreadwide.about {
column-count: 1;
min-width: 100%;
}

}

/* ===================================================== */
/* ================= SMALL MOBILE DEVICES ============== */
/* ===================================================== */

@media screen and (max-width: 480px) {

nav ul li > a {
font-size: 0.92rem;
padding: 13px 16px;
}

nav ul li ol li a {
padding-left: 24px;
}

.hamburger {
font-size: 26px;
}

}

/* ===================================================== */
/* ================= CONTENT ============================ */
/* ===================================================== */

.container-box {
background: #fff;
padding: 30px;
margin: 40px auto;
max-width: 1000px;
border-radius: 12px;
box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.section-heading {
font-size: 26px;
font-weight: bold;
margin-bottom: 20px;
}

.justified {
text-align: justify;
}

/* ===================================================== */
/* ================= TABLE ============================== */
/* ===================================================== */

.table-responsive-container {
width: 100%;
overflow-x: auto;
}

table {
width: 100%;
border-collapse: collapse;
}

th, td {
padding: 10px;
border: 1px solid #ccc;
}

thead {
background: #678983;
color: #fff;
}

/* ===================================================== */
/* ================= GALLERY ============================ */
/* ===================================================== */

.media {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 12px;
}

.media img,
.media video {
width: 100%;
border-radius: 8px;
transition: 0.3s;
}

.media img:hover,
.media video:hover {
transform: scale(1.05);
}

/* ===================================================== */
/* ================= LIGHTBOX =========================== */
/* ===================================================== */

.lightbox {
display: none;
position: fixed;
inset: 0;
background: rgba(0,0,0,0.95);
justify-content: center;
align-items: center;
z-index: 10000;
}

.lightbox img {
max-width: 90%;
max-height: 80%;
}

/* ===================================================== */
/* ================= BUTTON ============================= */
/* ===================================================== */

#backToTop {
position: fixed;
bottom: 40px;
right: 30px;
background: #678983;
color: #fff;
border: none;
border-radius: 50%;
width: 45px;
height: 45px;
cursor: pointer;

opacity: 0;
visibility: hidden;
transition: 0.3s;
}

#backToTop.show {
opacity: 1;
visibility: visible;
}

/* ===================================================== */
/* ================= FOOTER ============================= */
/* ===================================================== */

footer {
background: #181D31;
color: #fff;
text-align: center;
padding: 1.5rem;
}

.footer-icons {
display: flex;
justify-content: center;
gap: 1rem;
}

.footer-icons a {
color: #fff;
font-size: 1.4rem;
transition: 0.3s;
}

.footer-icons a:hover {
color: #00ADB5;
transform: scale(1.1);
}

/* ===================================================== */
/* ================= RESPONSIVE ========================= */
/* ===================================================== */

@media (max-width: 768px) {

.logo-left {
flex-direction: column;
text-align: center;
}

.logo-left img {
margin-right: 0;
margin-bottom: 10px;
}

.title-text {
justify-content: center;
text-align: center;
}

.hke-text {
font-size: 1rem;
}

.estd {
margin: 10px 0 0;
text-align: center;
}

.container-box {
padding: 20px;
}

table,
thead,
tbody,
th,
td,
tr {
display: block;
}

thead {
display: none;
}

td {
text-align: right;
position: relative;
padding-left: 50%;
}

td::before {
content: attr(data-label);
float: left;
font-weight: bold;
}

}