/* ==========================================
   IGNITE ACADEMY - MODERN CSS STYLESHEET
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary: #1E3A8A;        /* Deep Royal Blue */
    --primary-light: #3B82F6;  /* Soft Blue */
    --primary-dark: #172554;   /* Midnight Blue */
    --accent-gold: #F59E0B;    /* Warm Gold Flame */
    --accent-gold-light: #FEF3C7;
    --accent-orange: #F97316;  /* Bright Orange */
    --accent-red: #EF4444;     /* Soft Coral */
    --bg-light: #F8FAFC;       /* Off-white */
    --bg-warm: #FFFBEB;        /* Creamy Warm White */
    --surface: #FFFFFF;
    --text-main: #0F172A;      /* Dark Slate */
    --text-muted: #475569;     /* Slate Gray */
    --border-color: #E2E8F0;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 35px -10px rgba(30, 58, 138, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary-dark);
}

/* Top Announcement Ticker */
.top-bar {
    background: linear-gradient(90deg, #1E3A8A 0%, #D97706 100%);
    color: #FFFFFF;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
}

.top-bar-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 16px;
}

.top-bar-badge {
    background: var(--accent-orange);
    color: #FFFFFF;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-bar-links span,
.top-bar-links a {
    margin-left: 16px;
    color: #FFFFFF;
    text-decoration: none;
}

.top-bar-links a:hover {
    color: var(--accent-gold-light);
}

/* Header Navigation */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.nav-container {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 32px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-orange) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary);
    line-height: 1;
    white-space: nowrap;
}

.logo-text span {
    font-size: 0.72rem;
    color: var(--accent-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: nowrap;
    margin-left: auto;
}

.nav-link {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-orange);
    background: var(--bg-warm);
}

.nav-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #FFFFFF;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3);
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
}

/* HERO SLIDER SECTION */
.hero-slider {
    position: relative;
    width: 100%;
    height: 580px;
    overflow: hidden;
    background: #000000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 6s ease;
}

.slide.active .slide-img {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(30, 58, 138, 0.75) 100%);
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    color: #FFFFFF;
}

.hero-tagline {
    display: inline-block;
    background: rgba(245, 158, 11, 0.9);
    color: #0F172A;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    animation: fadeInDown 0.8s ease forwards;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 750px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-desc {
    font-size: 1.15rem;
    max-width: 650px;
    margin-bottom: 32px;
    color: #F1F5F9;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-orange) 100%);
    color: #0F172A;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.5);
    color: #000000;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #FFFFFF;
    padding: 14px 32px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #FFFFFF;
    color: var(--primary-dark);
}

/* Slider Controls */
.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent-gold);
    width: 36px;
    border-radius: 10px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.slider-arrow:hover {
    background: var(--accent-gold);
    color: #0F172A;
}

.slider-prev { left: 24px; }
.slider-next { right: 24px; }

/* HIGHLIGHTS / COUNTER STRIP */
.stats-strip {
    background: #FFFFFF;
    margin-top: -40px;
    position: relative;
    z-index: 20;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 30px 40px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    text-align: center;
}

.stat-card {
    padding: 12px;
}

.stat-card h3 {
    font-size: 2.2rem;
    color: var(--accent-orange);
    font-weight: 800;
}

.stat-card p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* SECTION STYLING */
.section {
    padding: 80px 24px;
}

.section-warm {
    background-color: var(--bg-warm);
}

.section-white {
    background-color: #FFFFFF;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 50px auto;
}

.section-subtitle {
    color: var(--accent-orange);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--primary-dark);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* CARDS GRID */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-gold);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gold-light);
    color: var(--accent-orange);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* SPECIAL BADGE CARD - EXTENDED CARE */
.highlight-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    box-shadow: var(--shadow-lg);
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.highlight-banner::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 250px;
    height: 250px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 50%;
}

.highlight-banner h2 {
    color: #FFFFFF;
    font-size: 2rem;
    margin-bottom: 12px;
}

.highlight-banner p {
    color: #E2E8F0;
    font-size: 1.05rem;
    max-width: 650px;
}

.tag-free {
    background: var(--accent-gold);
    color: #0F172A;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    vertical-align: middle;
    margin-left: 8px;
}

/* ABOUT PAGE SPLIT SECTION */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.split-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.split-content p {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 1.02rem;
}

/* VISION & MISSION BOXES */
.vm-box {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 36px;
    border-left: 6px solid var(--accent-orange);
    box-shadow: var(--shadow-sm);
}

.vm-box.mission {
    border-left-color: var(--primary);
}

.vm-box h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vm-list {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.vm-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.vm-list li::before {
    content: "✓";
    color: var(--accent-orange);
    font-weight: 800;
}

/* PROGRAM CARDS */
.program-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.program-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #FFFFFF;
    padding: 24px;
}

.program-header h3 {
    color: #FFFFFF;
    font-size: 1.4rem;
}

.program-badge {
    display: inline-block;
    background: var(--accent-gold);
    color: #0F172A;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
}

.program-body {
    padding: 24px;
}

.program-body ul {
    margin-top: 16px;
}

.program-body li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.program-body li:last-child {
    border-bottom: none;
}

/* PRINCIPAL MESSAGE CARD */
.principal-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 40px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.principal-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-gold);
    box-shadow: var(--shadow-sm);
}

.principal-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 16px;
    position: relative;
}

.principal-title h4 {
    font-size: 1.2rem;
    color: var(--primary);
}

.principal-title span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* GALLERY GRID */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    height: 240px;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.85) 100%);
    color: #FFFFFF;
    padding: 16px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* ADMISSIONS & FORM STYLING */
.form-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* FAQ ACCORDION */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.accordion-header {
    padding: 20px 24px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #FFFFFF;
}

.accordion-body {
    padding: 0 24px 20px 24px;
    display: none;
    color: var(--text-muted);
    line-height: 1.6;
}

.accordion-item.active .accordion-body {
    display: block;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* PAGE HEADER BANNERS */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #FFFFFF;
    padding: 60px 24px;
    text-align: center;
    position: relative;
}

.page-banner h1 {
    color: #FFFFFF;
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.breadcrumbs {
    font-size: 0.95rem;
    color: #CBD5E1;
}

.breadcrumbs a {
    color: var(--accent-gold);
}

/* FOOTER */
.footer {
    background: var(--primary-dark);
    color: #94A3B8;
    padding-top: 70px;
    padding-bottom: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.875rem;
}

/* ==========================================
   RESPONSIVE DESIGN & MOBILE FRIENDLY
   ========================================== */

/* ---- TABLET (max 992px) ---- */
@media (max-width: 992px) {
    /* Nav */
    .nav-container {
        padding: 12px 20px;
        max-width: 100%;
    }

    .top-bar-content {
        justify-content: center;
        text-align: center;
        gap: 6px;
    }

    .top-bar-links { display: none; }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, var(--bg-warm) 0%, var(--accent-gold-light) 100%);
        border: 1px solid rgba(245, 158, 11, 0.4);
        border-radius: 12px;
        color: var(--primary-dark);
        font-size: 1.3rem;
        cursor: pointer;
        transition: var(--transition);
        box-shadow: var(--shadow-sm);
    }

    .menu-toggle:hover {
        background: var(--accent-gold);
        color: #0F172A;
    }

    .nav-menu {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100vh - 68px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 24px 20px 40px 20px;
        gap: 12px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
        overflow-y: auto;
        z-index: 999;
        margin-left: 0;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        font-size: 1.05rem;
        font-weight: 700;
        padding: 14px 20px;
        border-radius: 14px;
        color: var(--primary-dark);
        display: flex;
        align-items: center;
        gap: 12px;
        justify-content: flex-start;
        background: #FFFFFF;
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
        width: 100%;
        transition: var(--transition);
        white-space: nowrap;
    }

    .nav-link:hover, .nav-link.active {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: #FFFFFF;
        border-color: var(--primary);
        box-shadow: 0 6px 18px rgba(30, 58, 138, 0.3);
    }

    .nav-link:hover i, .nav-link.active i {
        color: var(--accent-gold);
    }

    .mobile-drawer-footer {
        margin-top: 16px;
        padding-top: 20px;
        border-top: 2px dashed var(--border-color);
        text-align: center;
        display: block;
    }

    .mobile-cta-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-orange) 100%);
        color: #0F172A;
        font-weight: 800;
        font-size: 1rem;
        padding: 14px 24px;
        border-radius: var(--radius-full);
        box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
        margin-bottom: 12px;
    }

    /* Layout */
    .split-section { grid-template-columns: 1fr; gap: 28px; }
    .grid-2 { grid-template-columns: 1fr; gap: 20px; }
    .grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
    .highlight-banner { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; }
    .principal-card { grid-template-columns: 1fr; text-align: center; padding: 28px 20px; }
    .principal-img { margin: 0 auto; width: 150px; height: 150px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

    /* Hero */
    .hero-slider { height: 520px; }
    .hero-title { font-size: 2.2rem; }
    .hero-desc { font-size: 1rem; }

    /* Stats */
    .stats-strip { margin-top: -30px; padding: 24px 20px; border-radius: var(--radius-md); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

    /* Sections */
    .section { padding: 56px 20px; }
    .section-title { font-size: 2rem; }
    .section-desc { font-size: 1rem; }

    /* Page banners */
    .page-banner { padding: 44px 20px; }
    .page-banner h1 { font-size: 2.2rem; }

    /* Forms */
    .form-card { padding: 28px 20px; }
    .form-card > div[style*="grid"] { grid-template-columns: 1fr !important; }
}

/* ---- MOBILE (max 768px) ---- */
@media (max-width: 768px) {
    /* Hero */
    .hero-slider { height: 480px; }
    .hero-title { font-size: 1.75rem; line-height: 1.2; }
    .hero-desc { font-size: 0.95rem; margin-bottom: 24px; }
    .hero-content { padding: 0 16px; }
    .hero-tagline { font-size: 0.78rem; }
    .hero-actions { flex-direction: column; gap: 12px; }
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary { width: 100%; justify-content: center; padding: 13px 20px; font-size: 0.95rem; }
    .slider-arrow { width: 38px; height: 38px; font-size: 1rem; }
    .slider-prev { left: 10px; }
    .slider-next { right: 10px; }

    /* Stats */
    .container { padding: 0 16px; }
    .stats-strip { padding: 20px 16px; margin-top: -24px; border-radius: 14px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .stat-card h3 { font-size: 1.8rem; }
    .stat-card p { font-size: 0.82rem; }

    /* General layout */
    .section { padding: 44px 16px; }
    .section-header { margin-bottom: 32px; }
    .section-title { font-size: 1.75rem; }
    .grid-3 { grid-template-columns: 1fr; gap: 16px; }
    .grid-2 { grid-template-columns: 1fr; gap: 16px; }

    /* Cards */
    .card { padding: 24px 18px; }
    .card[style*="flex"] { flex-direction: column; align-items: flex-start; gap: 14px; }
    .card-icon { width: 52px; height: 52px; font-size: 1.4rem; }

    /* Split sections */
    .split-section { grid-template-columns: 1fr; gap: 20px; }
    .split-content h2 { font-size: 1.7rem; }
    .split-image { border-radius: var(--radius-md); max-height: 260px; overflow: hidden; }
    .split-image img { height: 260px; object-fit: cover; }

    /* Highlight banner */
    .highlight-banner { padding: 28px 20px; gap: 20px; border-radius: var(--radius-md); }
    .highlight-banner h2 { font-size: 1.5rem; }
    .highlight-banner p { font-size: 0.95rem; }

    /* VM boxes */
    .vm-box { padding: 24px 18px; }
    .vm-box h3 { font-size: 1.3rem; }
    .vm-list { grid-template-columns: 1fr; gap: 8px; }

    /* Programs */
    .program-header { padding: 18px; }
    .program-header h3 { font-size: 1.2rem; }
    .program-body { padding: 18px; }

    /* Principal */
    .principal-card { padding: 24px 16px; border-radius: var(--radius-md); }
    .principal-img { width: 130px; height: 130px; }
    .principal-quote { font-size: 1rem; }

    /* Page banner */
    .page-banner { padding: 36px 16px; }
    .page-banner h1 { font-size: 1.8rem; }
    .breadcrumbs { font-size: 0.85rem; }

    /* Gallery */
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .gallery-item { height: 190px; border-radius: var(--radius-sm); }
    .gallery-filter { gap: 8px; }
    .filter-btn { padding: 6px 14px; font-size: 0.85rem; }

    /* Admissions form */
    .form-card { padding: 24px 16px; border-radius: var(--radius-md); }

    /* Accordion */
    .accordion-header { font-size: 0.95rem; padding: 16px 18px; }
    .accordion-body { padding: 0 18px 16px 18px; font-size: 0.9rem; }

    /* Contact cards */
    .contact-card { padding: 20px 16px; }

    /* Footer */
    .footer { padding-top: 44px; padding-bottom: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-col h4 { font-size: 1.05rem; margin-bottom: 14px; }
    .footer-col p { font-size: 0.9rem; }
    .footer-links a { font-size: 0.9rem; }
    .footer-contact li { font-size: 0.87rem; }
    .footer-bottom { font-size: 0.8rem; padding-top: 16px; }

    /* Buttons */
    .btn-primary, .btn-secondary { font-size: 0.9rem; padding: 12px 22px; }
}

/* ---- SMALL MOBILE (max 480px) ---- */
@media (max-width: 480px) {
    html { font-size: 15px; }

    .top-bar { padding: 6px 12px; font-size: 0.78rem; }
    .logo-text h1 { font-size: 1.1rem; }
    .logo-text span { font-size: 0.65rem; }
    .logo-icon { width: 38px; height: 38px; font-size: 1.2rem; }

    .hero-slider { height: 440px; }
    .hero-title { font-size: 1.5rem; }
    .hero-tagline { font-size: 0.72rem; }
    .hero-desc { font-size: 0.88rem; }
    .slider-arrow { display: none; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card h3 { font-size: 1.6rem; }

    .section-title { font-size: 1.55rem; }
    .page-banner h1 { font-size: 1.55rem; }
    .gallery-grid { grid-template-columns: 1fr; gap: 14px; }
    .gallery-item { height: 220px; }

    .admissions-grid { grid-template-columns: 1fr; }
}

/* Hide mobile drawer footer on desktop */
@media (min-width: 993px) {
    .mobile-drawer-footer { display: none; }
}

/* ==========================================
   SCROLL REVEAL & MOTION ANIMATIONS
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.reveal-left {
    transform: translateX(-40px);
}

.reveal.reveal-right {
    transform: translateX(40px);
}

.reveal.reveal-zoom {
    transform: scale(0.92);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delay for grid items */
.grid-3 > .reveal:nth-child(1), .grid-2 > .reveal:nth-child(1) { transition-delay: 0.05s; }
.grid-3 > .reveal:nth-child(2), .grid-2 > .reveal:nth-child(2) { transition-delay: 0.15s; }
.grid-3 > .reveal:nth-child(3), .grid-2 > .reveal:nth-child(3) { transition-delay: 0.25s; }
.grid-3 > .reveal:nth-child(4) { transition-delay: 0.35s; }
.grid-3 > .reveal:nth-child(5) { transition-delay: 0.45s; }
.grid-3 > .reveal:nth-child(6) { transition-delay: 0.55s; }

/* Header Scroll Elevation */
.header.scrolled {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    background: rgba(255, 255, 255, 0.98);
}
