/* CSS STYLES (THE FULLEST & FINAL VERSION) */
        
/* -- A: Global Variables & Reset -- */
:root {
    --primary-green-light: #1A2E27;
    --accent-gold-light: #D4AF37;
    --bg-light: #F5F5DC;
    --alt-bg-light: #fff;
    --text-dark: #212529;
    --card-border-light: #e0e0e0;
    --card-bg-light: #fff;

    --primary-green-dark: #1A2E27;
    --accent-gold-dark: #D4AF37;
    --bg-dark: #121212;
    --alt-bg-dark: #1E1E1E;
    --text-light-green: #A7C4B5; /* NEW light green text color for dark mode */
    --card-border-dark: #333;
    --card-bg-dark: #2A2A2A;

    /* Default to light theme */
    --primary-green: var(--primary-green-light);
    --accent-gold: var(--accent-gold-light);
    --bg-color: var(--bg-light);
    --alt-bg-color: var(--alt-bg-light);
    --text-color: var(--text-dark);
    --card-border: var(--card-border-light);
    --card-bg: var(--card-bg-light);
    --nav-bg: #fff;
    --btn-bg: var(--primary-green);
    --btn-text: #f0f0f0;
    --btn-border: var(--primary-green);
}

body[data-theme="dark"] {
    --primary-green: var(--primary-green-dark);
    --accent-gold: var(--accent-gold-dark);
    --bg-color: var(--bg-dark);
    --alt-bg-color: var(--alt-bg-dark);
    --text-color: var(--text-light-green);
    --card-border: var(--card-border-dark);
    --card-bg: var(--card-bg-dark);
    --nav-bg: #1E1E1E;
    --btn-bg: var(--accent-gold);
    --btn-text: var(--primary-green);
    --btn-border: var(--accent-gold);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, .nav-logo {
    color: var(--primary-green);
    transition: color 0.4s ease;
}
body[data-theme="dark"] h1, 
body[data-theme="dark"] h2, 
body[data-theme="dark"] h3, 
body[data-theme="dark"] h4,
body[data-theme="dark"] .nav-logo {
    color: var(--text-light-green);
}

.hero-text h1 {
    color: #ffffff !important; /* This ensures the hero H1 is ALWAYS white */
}


p { color: #495057; transition: color 0.4s ease; }
body[data-theme="dark"] p { color: #aaa; }


/* -- B: Custom Scrollbar -- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--primary-green); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-gold); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
section.alt-bg { background-color: var(--alt-bg-color); transition: background-color 0.4s ease; }

h2 { font-size: 2.8rem; text-align: center; margin-bottom: 50px; position: relative; padding-bottom: 15px; }
h2::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 80px; height: 4px;
    background-color: var(--accent-gold);
}
h3 { font-size: 1.5rem; }
[data-lang-en] { transition: opacity 0.3s ease-in-out; }

/* -- C: Enhanced Buttons -- */
.btn {
    display: inline-block;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    padding: 12px 30px; text-decoration: none; border-radius: 4px;
    font-weight: 700; transition: all 0.3s ease;
    border: 2px solid var(--btn-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 46, 39, 0.3);
}
.btn-gold {
    background-color: var(--accent-gold); border-color: var(--accent-gold);
    color: var(--primary-green);
}
 .btn-gold:hover { background-color: transparent; color: var(--accent-gold); }
 body[data-theme="dark"] .btn-gold:hover {
    background-color: var(--primary-green);
    border-color: var(--accent-gold);
 }


/* -- D: Header & Navigation -- */
.navbar {
    background-color: var(--nav-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 0.8rem 0; position: fixed;
    width: 100%; top: 0; z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo img { height: 40px; }
.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 900;
    font-size: 24px;      /* This is the new, more balanced size */
    color: var(--primary-green);
    text-decoration: none;
    line-height: 1;
}
.menu-toggle {
    display: none;
    height: 24px;
    width: 30px;
    cursor: pointer;
    position: relative;
}
.menu-toggle span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: var(--primary-green);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}
.menu-toggle span:nth-child(1) { top: 0px; }
.menu-toggle span:nth-child(2), .menu-toggle span:nth-child(3) { top: 10px; }
.menu-toggle span:nth-child(4) { top: 20px; }
.menu-toggle.open span:nth-child(1), .menu-toggle.open span:nth-child(4) { top: 10px; width: 0%; left: 50%; }
.menu-toggle.open span:nth-child(2) { transform: rotate(45deg); }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg); }


.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li { margin-left: 20px; }
.nav-links a {
    color: var(--text-color);
    text-decoration: none; font-weight: 700;
    padding-bottom: 5px; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 0%; height: 2px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.controls-wrapper { display: flex; align-items: center; gap: 20px; }

/* -- E: Animated Toggles (Language & Theme) -- */
.lang-switch { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.lang-toggle-container { position: relative; }
.lang-toggle-checkbox { opacity: 0; width: 0; height: 0; position: absolute; }
.lang-toggle-label {
    display: block; position: relative;
    width: 44px; height: 22px;
    background-color: #ccc;
    border-radius: 22px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.lang-toggle-label::after {
    content: ''; position: absolute;
    top: 2px; left: 2px;
    width: 18px; height: 18px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}
.lang-toggle-checkbox:checked + .lang-toggle-label { background-color: var(--primary-green); }
.lang-toggle-checkbox:checked + .lang-toggle-label::after { transform: translateX(22px); }

.theme-switch {
    background: none; border: none; cursor: pointer;
    width: 24px; height: 24px;
    position: relative;
    color: var(--primary-green);
    transition: color 0.4s ease;
}
.theme-switch i {
    position: absolute; top: 0; left: 0;
    font-size: 1.2rem;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.theme-switch .fa-sun { opacity: 1; transform: scale(1) rotate(0deg); }
.theme-switch .fa-moon { opacity: 0; transform: scale(0) rotate(-180deg); }
body[data-theme="dark"] .theme-switch .fa-sun { opacity: 0; transform: scale(0) rotate(180deg); }
body[data-theme="dark"] .theme-switch .fa-moon { opacity: 1; transform: scale(1) rotate(0deg); }

/* -- F: Hero Section -- */
.hero {
    background-color: var(--primary-green);
    color: var(--text-color-light);
    padding: 160px 0 100px 0;
}
.hero-grid { display: grid; grid-template-columns: 1fr; align-items: center; gap: 50px; }
.hero-text .sub-heading { font-size: 1.3rem; margin-bottom: 2rem; color: rgba(245, 245, 220, 0.8); }
.hero-buttons .btn { margin-right: 15px; }
.hero-image img { width: 100%; border-radius: 8px; box-shadow: 0 15px 35px rgba(0,0,0,0.25); }

/* -- G: Card & Grid System -- */
.grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.card {
    background-color: var(--card-bg);
    padding: 30px; border-radius: 5px;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.4s ease, border-color 0.4s ease;
    border-top: 4px solid var(--primary-green);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.card h3 { display: flex; align-items: center; gap: 15px; }
.card h3 i { color: var(--accent-gold); }

/* -- H: Specialized Sections -- */
.division-card { padding: 0; text-align: center; }
.division-image-wrapper { position: relative; overflow: hidden; border-radius: 3px 3px 0 0; }
.division-card img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.4s ease; }
.division-card:hover img { transform: scale(1.1); }
.division-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: transparent; /* Overlay removed as requested */
}
.division-card-content { padding: 25px; }
.division-card h4 { margin-bottom: 10px; }

.staff-avatar img {
    width: 120px; height: 120px; border-radius: 50%;
    border: 4px solid var(--accent-gold);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.staff-info h4 { margin-bottom: 5px; }
.staff-info p { margin-bottom: 15px; font-style: italic; color: #6c757d; }
body[data-theme="dark"] .staff-info p { color: #888; }


/* -- I: Animations & Preloader -- */
.hidden { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.visible { opacity: 1; transform: translateY(0); }
.preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--primary-green); display: flex;
    justify-content: center; align-items: center;
    z-index: 9999;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}
.preloader.loaded { opacity: 0; visibility: hidden; }
.preloader img { width: 80px; animation: pulse 2s infinite ease-in-out; }
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* -- J: Back to Top Button & Footer -- */
.back-to-top {
    position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px;
    background-color: var(--primary-green); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; text-decoration: none;
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s, transform 0.4s;
    transform: translateY(20px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.footer {
    background-color: var(--primary-green);
    color: var(--text-color-light); 
    padding: 60px 0 30px 0;
}
.footer a { color: #fff; text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: var(--accent-gold); }
.footer h4 { color: #fff; text-transform: uppercase; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.2); font-size: 0.9rem; }

/* -- K: Responsive Design -- */
@media (max-width: 992px) {
    .menu-toggle { display: block; }
    .controls-wrapper { display: none; }
    .nav-logo span { display: none; }
    .nav-links {
        display: none; position: absolute; top: 73px; left: 0;
        width: 100%; background-color: var(--nav-bg);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        flex-direction: column; padding: 1rem 0;
    }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 0.8rem 20px; }
    .nav-links li:not(.controls-wrapper) { display: block; }
    .controls-wrapper-mobile { 
        display: flex; align-items: center; 
        justify-content: center; gap: 30px; 
        margin-top: 20px; border-top: 1px solid var(--border-color); 
        padding-top: 20px; width: 100%;
    }
    .hero-grid { text-align: center; }
    .hero-text h1 { font-size: clamp(2.5rem, 8vw, 3.5rem); }
    .hero-buttons { display: flex; flex-direction: column; gap: 15px; align-items: center; }
    .hero-buttons .btn { margin: 0; width: 100%; max-width: 300px; text-align: center; }
}

@media (min-width: 993px) {
    .controls-wrapper-mobile { display: none; }
}
@media (min-width: 768px) {
    .grid-2-col { grid-template-columns: repeat(2, 1fr); }
    .grid-3-col { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-grid { grid-template-columns: 1.2fr 1fr; text-align: left; }
    .staff-card-content { flex-direction: row; text-align: left; }
}


