:root {
    --primary: #006837;
    --primary-dark: #004d29;
    --secondary: #FDB913;
    --accent: #003366;
    --dark: #0F172A;
    --light: #F8FAFC;
    --white: #FFFFFF;
    --text: #334155;
    --muted: #64748B;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --header-height: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background-color: var(--white); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--dark); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.text-highlight { color: var(--secondary); position: relative; display: inline-block; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.bg-light { background-color: var(--light); }
.bg-dark { background-color: var(--dark); color: var(--white); }

.section-header { margin-bottom: 3rem; max-width: 700px; }
.section-header.text-center { margin-left: auto; margin-right: auto; }
.section-tag { display: inline-block; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); margin-bottom: 0.5rem; background: rgba(0, 104, 55, 0.1); padding: 0.25rem 0.75rem; border-radius: 99px; }
.section-desc { font-size: 1.125rem; color: var(--muted); margin-top: 1rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; font-family: var(--font-heading); font-weight: 600; font-size: 1rem; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); gap: 0.5rem; }
.btn-primary { background-color: var(--primary); color: var(--white); }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background-color: var(--secondary); color: var(--dark); }
.btn-secondary:hover { background-color: #e5a800; transform: translateY(-2px); }
.btn-outline { background-color: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background-color: var(--primary); color: var(--white); }
.btn-outline-light { background-color: transparent; border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background-color: var(--white); color: var(--dark); }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--primary); font-weight: 600; margin-top: 1rem; }
.link-arrow i { font-size: 0.875rem; transition: transform 0.3s ease; }
.link-arrow:hover i { transform: translateX(4px); }

.announcement-bar { background-color: var(--accent); color: var(--white); padding: 0.75rem 0; font-size: 0.9rem; position: relative; z-index: 1001; }
.announcement-content { display: flex; justify-content: center; align-items: center; gap: 1rem; position: relative; }
.btn-close-announcement { background: none; border: none; color: var(--white); font-size: 1.25rem; cursor: pointer; position: absolute; right: 1.5rem; }

.main-header { position: sticky; top: 0; z-index: 1000; background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); height: var(--header-height); display: flex; align-items: center; transition: all 0.3s ease; }
.main-header.scrolled { height: 70px; box-shadow: var(--shadow-md); }
.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-text { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 800; color: var(--primary); }
.logo-sub { font-size: 0.75rem; font-weight: 600; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }

.desktop-nav ul { display: flex; gap: 2rem; }
.desktop-nav a { font-weight: 500; color: var(--dark); position: relative; padding: 0.5rem 0; display: flex; align-items: center; }
.desktop-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--secondary); transition: width 0.3s ease; }
.desktop-nav a:hover::after, .desktop-nav a.active::after { width: 100%; }

.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--white); min-width: 220px; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 0.5rem 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; border: 1px solid var(--border); z-index: 100; }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a { display: block; padding: 0.75rem 1.5rem; font-size: 0.95rem; }
.dropdown-menu li a:hover { background-color: var(--light); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.icon-btn { background: none; border: none; cursor: pointer; color: var(--dark); padding: 0.5rem; border-radius: 50%; transition: background 0.3s; display: flex; align-items: center; justify-content: center; }
.icon-btn:hover { background-color: var(--light); }
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger { display: block; width: 24px; height: 2px; background-color: var(--dark); position: relative; transition: all 0.3s ease; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 24px; height: 2px; background-color: var(--dark); transition: all 0.3s ease; }
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.mobile-menu-overlay { position: fixed; top: 0; right: -100%; width: 100%; max-width: 400px; height: 100vh; background-color: var(--white); z-index: 2000; padding: 2rem; display: flex; flex-direction: column; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: -10px 0 30px rgba(0,0,0,0.1); }
.mobile-menu-overlay.is-active { right: 0; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; }
.mobile-menu-close { background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--dark); line-height: 1; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 1.5rem; flex: 1; }
.mobile-nav a { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--dark); }
.mobile-menu-cta { display: flex; flex-direction: column; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--border); }

/* =========================================
   HERO SECTION (FIXED)
   ========================================= */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    padding: 8rem 0 12rem; /* Extra bottom padding to prevent button overlap */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1.2); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(0, 51, 102, 0.88) 0%, 
        rgba(0, 104, 55, 0.75) 50%,
        rgba(0, 104, 55, 0.65) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(253, 185, 19, 0.15);
    color: var(--secondary);
    padding: 0.6rem 1.25rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(253, 185, 19, 0.3);
    backdrop-filter: blur(10px);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: 1.5rem 0 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =========================================
   STATS SECTION (FIXED POSITIONING)
   ========================================= */
.stats-section {
    background-color: var(--primary);
    color: var(--white);
    padding: 3rem 0;
    position: relative;
    z-index: 10;
    border-radius: var(--radius);
    margin: -4rem 1.5rem 0; /* Negative margin pulls it up slightly */
    box-shadow: var(--shadow-lg);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 1rem;
}

.stat-card .counter {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    display: block;
    margin-bottom: 0.25rem;
}

.stat-card p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.stat-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.5rem;
}

/* =========================================
   PAGE HERO (For Inner Pages)
   ========================================= */
.page-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    padding: 8rem 0 6rem;
    margin-top: var(--header-height);
}

.page-hero .hero-content {
    max-width: 800px;
}

/* =========================================
   RESPONSIVE FIXES
   ========================================= */
@media (max-width: 1024px) {
    .hero-section {
        min-height: 80vh;
        padding: 6rem 0 10rem;
    }
    
    .stats-section {
        margin: -3rem 1rem 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 75vh;
        padding: 5rem 0 8rem;
    }
    
    .stats-section {
        margin: -2rem 0 0;
        border-radius: 0;
    }
    
    .hero-cta-group {
        flex-direction: column;
    }
    
    .hero-cta-group .btn {
        width: 100%;
    }
}
.bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.bento-card { background: var(--white); padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border); transition: all 0.3s ease; }
.bento-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.bento-icon { font-size: 2rem; color: var(--primary); margin-bottom: 1.25rem; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; background-color: rgba(0, 104, 55, 0.08); border-radius: 16px; transition: all 0.3s ease; }
.bento-card:hover .bento-icon { background-color: var(--primary); color: var(--white); transform: scale(1.05); }
.bento-card:hover .bento-icon i { animation: iconBounce 0.6s ease; }
@keyframes iconBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.schools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.school-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.3s ease; border: 1px solid var(--border); }
.school-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.school-image { height: 200px; overflow: hidden; }
.school-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.school-card:hover .school-image img { transform: scale(1.05); }
.school-content { padding: 1.5rem; }
.school-content h3 { margin-bottom: 0.75rem; }
.school-content p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }

.programme-controls { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; align-items: center; }
.search-box { position: relative; width: 100%; max-width: 500px; }
.search-box .search-icon { position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1rem; pointer-events: none; }
.search-box input { width: 100%; padding: 1rem 1rem 1rem 3.25rem; border: 1px solid var(--border); border-radius: 99px; font-family: var(--font-body); font-size: 1rem; transition: border-color 0.3s; }
.search-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 104, 55, 0.1); }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.filter-btn { padding: 0.5rem 1.25rem; border: 1px solid var(--border); background: var(--white); border-radius: 99px; cursor: pointer; font-family: var(--font-body); font-weight: 500; transition: all 0.3s; }
.filter-btn:hover, .filter-btn.active { background-color: var(--primary); color: var(--white); border-color: var(--primary); }

.programmes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.programme-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; position: relative; transition: all 0.3s ease; display: flex; flex-direction: column; }
.programme-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.programme-badge { position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(0, 104, 55, 0.1); color: var(--primary); padding: 0.25rem 0.75rem; border-radius: 99px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.programme-card h3 { margin-bottom: 0.75rem; padding-right: 80px; }
.programme-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; flex: 1; }
.programme-meta { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); margin-bottom: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.programme-meta span i { color: var(--secondary); margin-right: 0.5rem; width: 16px; text-align: center; }

.journey-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.journey-step { text-align: center; position: relative; }
.step-number { width: 60px; height: 60px; background: var(--secondary); color: var(--dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 1.5rem; position: relative; z-index: 1; }
.journey-step h3 { color: var(--dark); margin-bottom: 0.75rem; }
.journey-step p { color: var(--muted); font-size: 0.95rem; }

.main-footer { background-color: var(--dark); color: var(--white); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { margin-bottom: 1.5rem; }
.footer-logo .logo-text { color: var(--white); }
.footer-logo .logo-sub { color: var(--muted); }
.main-footer p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.social-links { display: flex; gap: 1rem; }
.social-links a { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all 0.3s; color: var(--muted); }
.social-links a:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 1.125rem; margin-bottom: 1.5rem; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul li a { color: var(--muted); font-size: 0.95rem; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--secondary); }
.footer-col address { font-style: normal; color: var(--muted); font-size: 0.95rem; line-height: 1.8; }
.footer-col address a { color: var(--muted); }
.footer-col address a:hover { color: var(--secondary); }
.footer-col address i { width: 20px; text-align: center; margin-right: 8px; color: var(--secondary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; color: var(--muted); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a:hover { color: var(--white); }

.scroll-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 50px; height: 50px; background: var(--primary); color: var(--white); border: none; border-radius: 50%; font-size: 1.25rem; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 900; display: flex; align-items: center; justify-content: center; }
.scroll-to-top.visible { opacity: 1; visibility: visible; }
.scroll-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }