/* ================================================================
   Royal Stars International School — Public Website Styles
   Vibrant multi-color design with sharp overlays and smooth transitions.
   ================================================================ */

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
    /* Vibrant palette */
    --navy: #1b2a4a;
    --navy-light: #2d3f63;
    --teal: #0d9488;
    --teal-light: #14b8a6;
    --orange: #e8651a;
    --orange-light: #f59e0b;
    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --rose: #e11d48;
    --gold: #d69e2e;
    --gold-light: #f0c75e;
    --green: #16a34a;
    --green-dark: #15803d;

    /* Neutrals */
    --white: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-warm: #fffbeb;
    --bg-cool: #f0f9ff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --font-head: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;
    --max-w: 1200px;
    --transition: 0.3s ease;
    --nav-height: 70px;
    --topbar-height: 40px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Guard against sideways scrolling: some sections animate in from the sides,
   and older mobile Safari ignores body-level overflow-x alone. */
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: calc(var(--topbar-height) + var(--nav-height));
}
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.3; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Scroll Reveal ──────────────────────────────────────────── */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── Top Contact Bar ────────────────────────────────────────── */
.top-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
    background: #f1f5f9; border-bottom: 1px solid var(--border);
    height: var(--topbar-height); font-size: 0.85rem;
}
.top-bar-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 100%;
}
.top-bar-left { display: flex; align-items: center; gap: 20px; }
.top-bar-item { color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.top-bar-item i { color: var(--navy); font-size: 0.8rem; }
.top-bar-right { display: flex; align-items: center; gap: 6px; }
.top-social {
    width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--navy); color: #fff !important; font-size: 0.7rem;
    transition: all var(--transition);
}
.top-social:hover { background: var(--teal); transform: translateY(-2px); }

/* ── Main Navigation Bar ────────────────────────────────────── */
.site-nav {
    position: fixed; top: var(--topbar-height); left: 0; right: 0; z-index: 1000;
    background: #fff;
    height: var(--nav-height);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.site-nav.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 100%;
}
.site-nav .nav-brand {
    display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.site-nav .nav-brand img {
    width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 0 2px 8px rgba(214,158,46,0.3);
}
.site-nav .nav-brand span {
    font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
    color: var(--navy); line-height: 1.15; display: flex; flex-direction: column;
}
.site-nav .nav-brand small {
    font-family: var(--font-body); font-size: 0.7rem; color: var(--text-muted);
    font-weight: 400; letter-spacing: 0.5px;
}
.site-nav .nav-links {
    display: flex; align-items: center; gap: 6px;
}
.site-nav .nav-links a {
    color: var(--text); font-weight: 600; font-size: 0.92rem;
    padding: 8px 18px; border-radius: 30px;
    transition: all var(--transition); position: relative;
}
.site-nav .nav-links a:hover {
    color: var(--navy); background: rgba(27,42,74,0.06);
}
/* Base active style — overridden per page below */
.site-nav .nav-links a.active {
    color: #fff !important;
}
.site-nav .nav-links a.active:hover {
    filter: brightness(1.1);
}
/* Per-page active colours */
.site-nav .nav-links a.nav-index      { background: var(--orange); }
.site-nav .nav-links a.nav-about      { background: var(--navy); }
.site-nav .nav-links a.nav-admissions { background: var(--teal); }
.site-nav .nav-links a.nav-gallery    { background: var(--purple); }
.site-nav .nav-links a.nav-news       { background: var(--rose); }
.site-nav .nav-links a.nav-contact    { background: var(--gold); color: var(--navy) !important; }
.site-nav .btn-portal {
    background: var(--orange) !important; color: #fff !important;
    padding: 10px 24px !important; border-radius: 30px; font-weight: 700 !important;
    box-shadow: 0 3px 12px rgba(232,101,26,0.3);
}
.site-nav .btn-portal:hover {
    background: #d4570f !important; transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232,101,26,0.4);
}

/* Light / dark mode toggle in the site nav */
.site-theme-toggle {
    width: 38px; height: 38px; border-radius: 50%;
    border: 2px solid var(--border); background: var(--bg-alt);
    color: var(--navy); font-size: 0.95rem; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}
.site-theme-toggle:hover {
    border-color: var(--gold); color: var(--gold);
    transform: rotate(15deg) scale(1.08);
}

.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    color: var(--navy); font-size: 1.5rem; padding: 4px;
}

/* Dimmed backdrop behind the open mobile menu — tapping it closes the menu.
   Only shown at mobile widths (see the max-width: 768px block). */
.nav-backdrop {
    display: none; position: fixed; inset: 0; z-index: 998;
    background: rgba(0, 0, 0, 0.45); cursor: pointer;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-backdrop.active { opacity: 1; visibility: visible; }

/* ── Hero Word Rotator (legacy — kept for potential reuse) ──── */
.hero-rotator {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    margin-bottom: 28px; flex-wrap: wrap;
}
.hero-rotator-label {
    color: rgba(255,255,255,0.8); font-size: 1.2rem; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
}
.hero-rotator-words {
    display: inline-block; position: relative; height: 2.2rem; overflow: hidden;
    min-width: 180px; text-align: left;
}
.rotator-word {
    position: absolute; left: 0; top: 0; width: 100%;
    font-family: var(--font-head); font-size: 2rem; font-weight: 700;
    color: var(--gold-light); line-height: 2.2rem;
    opacity: 0; transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.rotator-word.active { opacity: 1; transform: translateY(0); }
.rotator-word.exit   { opacity: 0; transform: translateY(-100%); }
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ── Hero-Carousel Divider ────────────────────────────────────── */
.hero-carousel-divider {
    position: relative; z-index: 5;
    background: #fff;
    padding: 48px 0 0;
}
.hero-carousel-divider .divider-top {
    display: flex; align-items: center; justify-content: center; gap: 20px;
    margin-bottom: 32px;
}
.hero-carousel-divider .divider-top .divider-line {
    flex: 1; max-width: 120px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--navy));
}
.hero-carousel-divider .divider-top .divider-line:last-child {
    background: linear-gradient(90deg, var(--navy), transparent);
}
.hero-carousel-divider .divider-top h3 {
    font-family: var(--font-head); color: var(--navy);
    font-size: 1.5rem; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; white-space: nowrap; margin: 0;
}
.hero-carousel-divider .divider-stats {
    display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
    padding: 28px 0;
    background: var(--navy);
    border-top: 4px solid;
    border-bottom: 4px solid;
    border-image: linear-gradient(90deg, var(--orange), var(--gold), var(--teal), var(--purple), var(--rose)) 1;
}
.hero-carousel-divider .divider-stat {
    text-align: center; color: #fff; padding: 8px 24px;
    position: relative;
}
.hero-carousel-divider .divider-stat:not(:last-child)::after {
    content: ''; position: absolute; right: -24px; top: 20%;
    height: 60%; width: 1px; background: rgba(255,255,255,0.2);
}
.hero-carousel-divider .divider-stat i {
    font-size: 1.8rem; margin-bottom: 8px; display: block;
}
.hero-carousel-divider .divider-stat:nth-child(1) i { color: var(--orange); }
.hero-carousel-divider .divider-stat:nth-child(2) i { color: var(--teal); }
.hero-carousel-divider .divider-stat:nth-child(3) i { color: var(--purple); }
.hero-carousel-divider .divider-stat:nth-child(4) i { color: var(--gold-light); }
.hero-carousel-divider .divider-stat:nth-child(5) i { color: var(--rose); }
.hero-carousel-divider .divider-stat strong {
    display: block; font-size: 1.5rem; font-weight: 700; margin-bottom: 2px;
}
.hero-carousel-divider .divider-stat span {
    font-size: 0.82rem; color: rgba(255,255,255,0.7); text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-carousel-divider .divider-bottom-spacer {
    height: 24px; background: #fff;
}

/* ── Hero Carousel (Micjaden-style: sharp colored blocks on full-width images) ── */
.hero-carousel {
    position: relative; height: 90vh; min-height: 600px; overflow: hidden;
}
.hero-slides {
    display: flex; height: 100%; width: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.hero-slide {
    flex: 0 0 100%; min-width: 100%; display: flex; align-items: center;
    background-size: cover; background-position: center center;
    background-repeat: no-repeat; background-color: var(--navy);
    position: relative;
}
.hero-slide.active { z-index: 2; }
/* Left-side gradient for text readability (fades to transparent on right) */
.hero-slide::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 40%, transparent 70%);
}

/* ── Banner slide ───────────────────────────────────────────── */
.hero-banner-slide { /* background-image set inline in index.php */ }
/* Vibrant multi-color tint overlay on the school-building photo */
.hero-banner-slide::after {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        linear-gradient(135deg, rgba(232,101,26,0.32) 0%, transparent 45%),
        linear-gradient(225deg, rgba(13,148,136,0.28) 0%, transparent 45%),
        linear-gradient(315deg, rgba(124,58,237,0.22) 0%, transparent 45%);
    mix-blend-mode: overlay;
}

/* ── Stats strip (school at a glance) ───────────────────────── */
.hero-stats-strip {
    display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
    padding: 28px 0;
    background: var(--navy);
    border-top: 4px solid;
    border-bottom: 4px solid;
    border-image: linear-gradient(90deg, var(--orange), var(--gold), var(--teal), var(--purple), var(--rose)) 1;
}
.hero-stats-strip .divider-stat {
    text-align: center; color: #fff; padding: 8px 24px; position: relative;
}
.hero-stats-strip .divider-stat:not(:last-child)::after {
    content: ''; position: absolute; right: -24px; top: 20%;
    height: 60%; width: 1px; background: rgba(255,255,255,0.2);
}
.hero-stats-strip .divider-stat i {
    font-size: 1.8rem; margin-bottom: 8px; display: block;
}
.hero-stats-strip .divider-stat:nth-child(1) i { color: var(--orange); }
.hero-stats-strip .divider-stat:nth-child(2) i { color: var(--teal); }
.hero-stats-strip .divider-stat:nth-child(3) i { color: var(--purple); }
.hero-stats-strip .divider-stat:nth-child(4) i { color: var(--gold-light); }
.hero-stats-strip .divider-stat:nth-child(5) i { color: var(--rose); }
.hero-stats-strip .divider-stat strong {
    display: block; font-size: 1.5rem; font-weight: 700; margin-bottom: 2px;
}
.hero-stats-strip .divider-stat span {
    font-size: 0.82rem; color: rgba(255,255,255,0.7); text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Slide content (sharp colored blocks, left-aligned) ────── */
.hero-slide-content {
    position: relative; z-index: 3; max-width: 800px; padding: 0 48px;
}
/* Staggered entrance: each element appears one by one */
.hero-slide-content > * {
    opacity: 0; transform: translateY(25px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero-slide.active .hero-slide-content > *:nth-child(1) { transition-delay: 0.3s; }
.hero-slide.active .hero-slide-content > *:nth-child(2) { transition-delay: 0.55s; }
.hero-slide.active .hero-slide-content > *:nth-child(3) { transition-delay: 0.8s; }
.hero-slide.active .hero-slide-content > *:nth-child(4) { transition-delay: 1.05s; }
.hero-slide.active .hero-slide-content > * { opacity: 1; transform: translateY(0); }

/* Small colored badge (e.g. "WELCOME", "NEWS") — pill shape */
.slide-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 24px; border-radius: 30px;
    background: var(--rose); color: #fff; font-weight: 700; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px;
}
/* News slides use a teal badge instead of rose */
.slide-badge-news { background: var(--teal); }

/* Large heading in a solid dark blue bar */
.slide-heading {
    display: inline-block; padding: 14px 32px; margin-bottom: 16px;
    background: rgba(27,42,74,0.92); color: #fff;
    font-family: var(--font-head); font-size: 2.6rem; font-weight: 700;
    line-height: 1.2; border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Descriptive text */
.hero-slide-content p {
    color: rgba(255,255,255,0.95); font-size: 1.1rem; margin-bottom: 28px;
    max-width: 600px; text-shadow: 0 1px 8px rgba(0,0,0,0.4);
    line-height: 1.6;
}

/* CTA button — dark blue rounded, Micjaden style */
.slide-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 36px; border-radius: 30px; font-weight: 700; font-size: 1rem;
    background: var(--navy); color: #fff; border: 2px solid var(--navy);
    cursor: pointer; transition: all var(--transition); text-decoration: none;
}
.slide-btn:hover {
    background: #2c4a6e; transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(27,42,74,0.4);
}

.hero-dots {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 10;
}
.hero-dot {
    width: 14px; height: 14px; border-radius: 50%; cursor: pointer;
    background: rgba(255,255,255,0.4); border: 2px solid transparent;
    transition: all var(--transition);
}
.hero-dot.active {
    background: var(--orange); border-color: #fff;
    transform: scale(1.3);
}
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background-color: rgba(0,0,0,0.35); color: #fff; border: 2px solid rgba(255,255,255,0.6);
    width: 64px; height: 64px; border-radius: 50%; font-size: 1.1rem;
    cursor: pointer; z-index: 10; display: flex; align-items: center;
    justify-content: center; transition: all var(--transition);
    background-size: cover; background-position: center; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
/* Dark overlay so the chevron stays readable over the preview thumbnail */
.hero-arrow::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(0,0,0,0.45);
    transition: background var(--transition);
}
.hero-arrow:hover::before { background: rgba(0,0,0,0.25); }
.hero-arrow:hover { border-color: #fff; transform: translateY(-50%) scale(1.06); }
.hero-arrow i { position: relative; z-index: 2; }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

/* ── Page Hero (smaller, for inner pages) ───────────────────── */
.page-hero {
    padding: 80px 0 50px; text-align: center; position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 60%, var(--purple) 100%);
}
.page-hero h1 { color: #fff; font-size: 2.6rem; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-top: 8px; }
.page-hero .breadcrumb {
    color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-top: 12px;
}
.page-hero .breadcrumb a { color: var(--gold-light); }

/* ── Section Base ────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-warm { background: var(--bg-warm); }
.section-cool { background: var(--bg-cool); }
.section-title {
    text-align: center; margin-bottom: 50px;
}
.section-title h2 { font-size: 2.3rem; margin-bottom: 12px; }
.section-title p { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.section-title .accent {
    width: 70px; height: 4px; border-radius: 2px; margin: 16px auto 0;
    background: linear-gradient(90deg, var(--orange), var(--teal));
}

/* ── Welcome / About Preview ─────────────────────────────────── */
.welcome { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.welcome-text h2 { font-size: 2.1rem; margin-bottom: 16px; color: var(--navy); }
.welcome-text p { margin-bottom: 16px; color: var(--text-muted); line-height: 1.7; }
.welcome-subheading {
    font-size: 1.2rem; color: var(--orange); margin: 8px 0 14px;
    font-weight: 700; position: relative; padding-left: 0;
}
.welcome-highlights {
    list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 14px;
}
.welcome-highlights li {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 12px 16px; border-radius: var(--radius-sm);
    background: #fff; border-left: 4px solid var(--teal);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.welcome-highlights li:nth-child(1) { border-left-color: var(--orange); }
.welcome-highlights li:nth-child(2) { border-left-color: var(--teal); }
.welcome-highlights li:nth-child(3) { border-left-color: var(--purple); }
.welcome-highlights li:nth-child(4) { border-left-color: var(--rose); }
.welcome-highlights li:hover { transform: translateX(4px); box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.welcome-highlights li i {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; color: #fff;
}
.welcome-highlights li:nth-child(1) i { background: var(--orange); }
.welcome-highlights li:nth-child(2) i { background: var(--teal); }
.welcome-highlights li:nth-child(3) i { background: var(--purple); }
.welcome-highlights li:nth-child(4) i { background: var(--rose); }
.welcome-highlights li strong {
    display: block; font-size: 0.95rem; color: var(--navy); margin-bottom: 2px;
}
.welcome-highlights li span {
    display: block; font-size: 0.88rem; color: var(--text-muted); line-height: 1.5;
}
.welcome-closing {
    font-style: italic; color: var(--text) !important;
    font-size: 1rem !important; margin-bottom: 20px !important;
    padding: 14px 18px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(27,42,74,0.04), rgba(13,148,136,0.06));
}
.welcome-closing strong { color: var(--navy); }
.welcome-image {
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}
.welcome-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── Stats ──────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card {
    text-align: center; padding: 36px 16px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    border-top: 4px solid transparent; transition: all var(--transition);
}
.stat-card:nth-child(1) { border-top-color: var(--orange); }
.stat-card:nth-child(2) { border-top-color: var(--teal); }
.stat-card:nth-child(3) { border-top-color: var(--purple); }
.stat-card:nth-child(4) { border-top-color: var(--navy); }
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stat-card .stat-num {
    font-family: var(--font-head); font-size: 2.6rem;
    font-weight: 700;
}
.stat-card:nth-child(1) .stat-num { color: var(--orange); }
.stat-card:nth-child(2) .stat-num { color: var(--teal); }
.stat-card:nth-child(3) .stat-num { color: var(--purple); }
.stat-card:nth-child(4) .stat-num { color: var(--navy); }
.stat-card .stat-label { color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }

/* ── Values Cards ───────────────────────────────────────────── */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card {
    text-align: center; padding: 40px 24px; border-radius: var(--radius);
    background: #fff; box-shadow: var(--shadow-sm); transition: all var(--transition);
    border-bottom: 4px solid transparent; position: relative; overflow: hidden;
}
.value-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    transition: height 0.4s ease;
}
.value-card:nth-child(1)::before { background: var(--orange); }
.value-card:nth-child(2)::before { background: var(--teal); }
.value-card:nth-child(3)::before { background: var(--rose); }
.value-card:nth-child(4)::before { background: var(--purple); }
.value-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.value-card:hover::before { height: 6px; }
.value-card .icon {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: #fff;
}
.value-card:nth-child(1) .icon { background: linear-gradient(135deg, var(--orange), var(--orange-light)); }
.value-card:nth-child(2) .icon { background: linear-gradient(135deg, var(--teal), var(--teal-light)); }
.value-card:nth-child(3) .icon { background: linear-gradient(135deg, var(--rose), #fb7185); }
.value-card:nth-child(4) .icon { background: linear-gradient(135deg, var(--purple), var(--purple-light)); }
.value-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.value-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ── Class Levels ───────────────────────────────────────────── */
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.class-card {
    padding: 28px 20px; border-radius: var(--radius); text-align: center;
    background: #fff; border: 2px solid var(--border); transition: all var(--transition);
    cursor: pointer;
}
.class-card:hover { border-color: var(--teal); background: var(--bg-cool); transform: translateY(-3px); }
.class-card .badge {
    display: inline-block; padding: 4px 14px; border-radius: 20px;
    color: #fff; font-weight: 700; font-size: 0.8rem; margin-bottom: 12px;
}
.class-card:nth-child(odd) .badge { background: var(--teal); }
.class-card:nth-child(even) .badge { background: var(--purple); }
.class-card .badge.jhs { background: var(--orange) !important; }
.class-card .badge.early { background: var(--rose) !important; }
.class-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.class-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ── Gallery Preview ─────────────────────────────────────────── */
.gallery-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-preview .g-item {
    border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1;
    cursor: pointer; position: relative;
}
.gallery-preview .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-preview .g-item:hover img { transform: scale(1.1); }
.gallery-preview .g-item::after {
    content: '\f00e'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(27,42,74,0.7), rgba(13,148,136,0.6));
    color: #fff; font-size: 1.5rem;
    opacity: 0; transition: opacity var(--transition);
}
.gallery-preview .g-item:hover::after { opacity: 1; }

/* ── News Cards ─────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.news-card .news-img { aspect-ratio: 16/10; overflow: hidden; }
.news-card .news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .news-img img { transform: scale(1.08); }
.news-card .news-body { padding: 22px; }
.news-card .news-date { color: var(--orange); font-size: 0.85rem; font-weight: 600; }
.news-card h3 { font-size: 1.15rem; margin: 8px 0 10px; }
.news-card p { color: var(--text-muted); font-size: 0.92rem; }
.news-card .news-more {
    display: inline-block; margin-top: 12px; font-weight: 600; font-size: 0.9rem;
    color: var(--teal);
}
.news-card .news-more:hover { color: var(--navy); }

/* ── Our Story Timeline ─────────────────────────────────────── */
.our-story-intro {
    max-width: 760px; margin: 0 auto 50px; text-align: center;
    font-size: 1.08rem; line-height: 1.85; color: var(--text-muted);
}
.our-story-intro strong { color: var(--navy); }
.timeline {
    position: relative; max-width: 900px; margin: 0 auto;
    padding: 20px 0;
}
.timeline::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
    width: 3px; background: linear-gradient(180deg, var(--teal), var(--navy), var(--gold));
    transform: translateX(-50%); border-radius: 3px;
}
.tl-item {
    position: relative; width: 50%; padding: 0 40px 50px;
}
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; text-align: left; }
.tl-item::after {
    content: ''; position: absolute; top: 18px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--teal); border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--teal), 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1;
}
.tl-item:nth-child(odd)::after { right: -9px; }
.tl-item:nth-child(even)::after { left: -9px; }
.tl-year {
    display: inline-block; font-family: var(--font-head);
    font-size: 1.5rem; font-weight: 700; color: var(--gold);
    margin-bottom: 6px;
}
.tl-card {
    background: #fff; border-radius: var(--radius); padding: 22px 26px;
    box-shadow: var(--shadow-sm); transition: all 0.35s ease;
    border-top: 3px solid var(--teal);
}
.tl-card:hover {
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}
.tl-card h3 {
    font-size: 1.1rem; margin: 0 0 8px; color: var(--navy);
}
.tl-card p {
    font-size: 0.93rem; line-height: 1.7; color: var(--text-muted); margin: 0;
}
.tl-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--teal); color: #fff; font-size: 0.85rem;
    margin-bottom: 10px;
}
/* Mobile: single column */
@media (max-width: 768px) {
    .timeline::before { left: 20px; }
    .tl-item, .tl-item:nth-child(odd), .tl-item:nth-child(even) {
        width: 100%; left: 0; text-align: left; padding: 0 0 40px 50px;
    }
    .tl-item::after,
    .tl-item:nth-child(odd)::after,
    .tl-item:nth-child(even)::after {
        left: 11px; right: auto;
    }
}

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
    text-align: center; padding: 72px 0; position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 50%, var(--purple) 100%);
}
.cta-banner::before {
    content: ''; position: absolute; inset: 0;
    background: url('../images/3.jpeg') center/cover; opacity: 0.08;
}
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner h2 { color: #fff; font-size: 2.4rem; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.9); font-size: 1.15rem; margin-bottom: 28px; }
.cta-banner .btn {
    background: var(--orange); color: #fff;
    padding: 16px 42px; border-radius: 30px; font-weight: 700; font-size: 1.05rem;
    display: inline-flex; align-items: center; gap: 8px; transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(232,101,26,0.4);
}
.cta-banner .btn:hover { background: #d4570f; transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }

/* ── About Page ──────────────────────────────────────────────── */
.mission-vision { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.mv-card {
    padding: 40px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow);
}
.mv-card:first-child { border-top: 5px solid var(--teal); }
.mv-card:last-child { border-top: 5px solid var(--orange); }
.mv-card .mv-icon { font-size: 2rem; margin-bottom: 16px; }
.mv-card:first-child .mv-icon { color: var(--teal); }
.mv-card:last-child .mv-icon { color: var(--orange); }
.mv-card h2 { font-size: 1.5rem; margin-bottom: 12px; }
.mv-card p { color: var(--text-muted); font-size: 1.05rem; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-item {
    padding: 32px; border-radius: var(--radius); background: var(--bg-alt);
    text-align: center; transition: all var(--transition);
}
.value-item:hover { background: #fff; box-shadow: var(--shadow); transform: translateY(-3px); }
.value-item .vi-icon { font-size: 2rem; margin-bottom: 16px; }
.value-item:nth-child(1) .vi-icon { color: var(--orange); }
.value-item:nth-child(2) .vi-icon { color: var(--teal); }
.value-item:nth-child(3) .vi-icon { color: var(--purple); }
.value-item:nth-child(4) .vi-icon { color: var(--rose); }
.value-item:nth-child(5) .vi-icon { color: var(--navy); }
.value-item:nth-child(6) .vi-icon { color: var(--green); }
.value-item h3 { font-size: 1.2rem; margin-bottom: 10px; }
.value-item p { color: var(--text-muted); font-size: 0.95rem; }

/* ── Admissions ──────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card { text-align: center; position: relative; }
.step-card .step-num {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-family: var(--font-head);
    font-size: 1.5rem; font-weight: 700;
}
.step-card:nth-child(1) .step-num { background: var(--orange); }
.step-card:nth-child(2) .step-num { background: var(--teal); }
.step-card:nth-child(3) .step-num { background: var(--purple); }
.step-card:nth-child(4) .step-num { background: var(--navy); }
.step-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 0.9rem; }
.step-card::after {
    content: ''; position: absolute; top: 28px; right: -40%; width: 80%;
    height: 2px; background: var(--border); z-index: -1;
}
.step-card:last-child::after { display: none; }

.fees-table { width: 100%; border-collapse: collapse; }
.fees-table th, .fees-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.fees-table th { background: var(--bg-cool); color: var(--navy); font-weight: 700; }
.fees-table tr:hover { background: var(--bg-alt); }

/* ── Admissions Cards ───────────────────────────────────────── */
.admissions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.admissions-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.admissions-card-header {
    padding: 16px 18px;
    color: #fff;
}
.admissions-card-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}
.admissions-card-header.admissions-teal    { background: var(--teal); }
.admissions-card-header.admissions-purple  { background: var(--purple); }
.admissions-card-header.admissions-orange  { background: var(--orange); }
.admissions-card-header.admissions-navy    { background: var(--navy); }

.admissions-card-body { padding: 0; }
.admissions-mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.admissions-mini-table th,
.admissions-mini-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.admissions-mini-table thead th {
    background: var(--bg-cool);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.admissions-mini-table tbody tr:last-child td { border-bottom: none; }
.admissions-mini-table .class-label {
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
    width: 80px;
}
.admissions-mini-table .age-cell {
    white-space: nowrap;
    color: var(--text-muted);
    font-size: 0.85rem;
    width: 100px;
}
.admissions-mini-table .subjects-cell { line-height: 1.7; }
.admissions-mini-table .level-row td { padding: 0; border-bottom: none; }
.admissions-mini-table .level-label {
    display: block;
    padding: 8px 14px;
    background: rgba(124, 110, 168, 0.10);
    color: var(--purple);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.subject-tag {
    display: inline-block;
    padding: 4px 12px;
    margin: 3px 4px 3px 0;
    border-radius: 20px;
    background: rgba(74, 124, 66, 0.12);
    color: var(--green);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .admissions-grid { grid-template-columns: repeat(2, 1fr); }
    .classes-row { flex-wrap: wrap; }
    .class-card-horizontal { min-width: 220px; flex: 1 1 220px; }
}
@media (max-width: 640px) {
    .admissions-grid { grid-template-columns: 1fr; }
    .admissions-mini-table th,
    .admissions-mini-table td { padding: 10px 12px; }
    .classes-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    .class-card-horizontal {
        min-width: 260px;
        flex: 0 0 260px;
    }
}

/* ── Department Subject Tabs ────────────────────────────────── */
.subjects-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-cool);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.tab-btn .tab-count {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.tab-btn:hover {
    border-color: var(--teal);
    background: var(--bg-alt);
}
.tab-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.tab-btn.active .tab-count { color: rgba(255,255,255,0.8); }
.tab-btn--teal.active   { background: var(--teal); border-color: var(--teal); }
.tab-btn--purple.active { background: var(--purple); border-color: var(--purple); }
.tab-btn--orange.active { background: var(--orange); border-color: var(--orange); }

.subjects-panel { display: none; animation: fadeIn 0.35s ease; }
.subjects-panel.active { display: block; }

.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.class-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-cool);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}
.class-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.class-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(31, 111, 67, 0.08);
}
.class-card--teal .class-card__header   { background: rgba(38, 166, 154, 0.12); }
.class-card--purple .class-card__header { background: rgba(124, 110, 168, 0.12); }
.class-card--orange .class-card__header { background: rgba(230, 126, 34, 0.12); }
.class-card__header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--navy);
    font-weight: 700;
}
.class-age {
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--teal);
    background: rgba(38, 166, 154, 0.10);
    padding: 4px 10px;
    border-radius: 20px;
}
.class-card__subjects {
    padding: 16px 18px;
    line-height: 1.7;
    flex: 1;
}

@media (max-width: 640px) {
    .subjects-tabs { gap: 8px; }
    .tab-btn { padding: 10px 14px; }
    .class-grid { grid-template-columns: 1fr; }
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.requirement-card {
    background: #fff;
    padding: 28px 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition);
    border-top: 4px solid var(--teal);
}
.requirement-card:nth-child(2) { border-top-color: var(--purple); }
.requirement-card:nth-child(3) { border-top-color: var(--orange); }
.requirement-card:nth-child(4) { border-top-color: var(--navy); }
.requirement-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.req-icon {
    font-size: 1.8rem;
    margin-bottom: 14px;
    color: var(--teal);
}
.requirement-card:nth-child(2) .req-icon { color: var(--purple); }
.requirement-card:nth-child(3) .req-icon { color: var(--orange); }
.requirement-card:nth-child(4) .req-icon { color: var(--navy); }
.requirement-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.requirement-card p { color: var(--text-muted); font-size: 0.88rem; }

@media (max-width: 900px) {
    .requirements-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .requirements-grid { grid-template-columns: 1fr; }
}

.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.checklist li i { color: var(--teal); font-size: 1.1rem; }

/* ── Gallery Page ───────────────────────────────────────────── */
.gallery-filters { display: flex; gap: 12px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.gallery-filters button {
    padding: 8px 22px; border-radius: 30px; border: 2px solid var(--border);
    background: #fff; color: var(--text-muted); font-weight: 600; cursor: pointer;
    transition: all var(--transition); font-size: 0.9rem;
}
.gallery-filters button.active, .gallery-filters button:hover {
    border-color: var(--navy); background: var(--navy); color: #fff;
}
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid .g-item { aspect-ratio: 4/3; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.92); display: none;
    align-items: center; justify-content: center; padding: 40px;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90vh; border-radius: var(--radius); }
.lightbox .lb-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 2rem; cursor: pointer; }

/* ── Contact ────────────────────────────────────────────────── */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.contact-card {
    text-align: center; padding: 32px 20px; border-radius: var(--radius); background: #fff;
    box-shadow: var(--shadow-sm); transition: all var(--transition);
    border-top: 4px solid transparent;
}
.contact-card:nth-child(1) { border-top-color: var(--orange); }
.contact-card:nth-child(2) { border-top-color: var(--teal); }
.contact-card:nth-child(3) { border-top-color: var(--purple); }
.contact-card:nth-child(4) { border-top-color: var(--navy); }
.contact-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.contact-card .cc-icon { font-size: 2rem; margin-bottom: 14px; }
.contact-card:nth-child(1) .cc-icon { color: var(--orange); }
.contact-card:nth-child(2) .cc-icon { color: var(--teal); }
.contact-card:nth-child(3) .cc-icon { color: var(--purple); }
.contact-card:nth-child(4) .cc-icon { color: var(--navy); }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.contact-card p { color: var(--text-muted); font-size: 0.95rem; overflow-wrap: anywhere; }
.contact-form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.contact-form .form-control {
    width: 100%; padding: 12px 16px; border: 2px solid var(--border);
    border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 1rem; transition: border-color var(--transition);
}
.contact-form .form-control:focus { border-color: var(--teal); outline: none; }
.contact-form textarea.form-control { resize: vertical; min-height: 120px; }
.contact-form .btn {
    background: var(--navy); color: #fff; padding: 14px 36px; border: none;
    border-radius: 30px; font-weight: 700; cursor: pointer; font-size: 1rem; transition: all var(--transition);
}
.contact-form .btn:hover { background: var(--navy-light); transform: translateY(-2px); }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 100%; min-height: 350px; border: 0; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
    padding: 20px 0; display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; font-weight: 600; font-size: 1.05rem; color: var(--navy);
}
.faq-q i { transition: transform var(--transition); color: var(--orange); }
.faq-q.open i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--transition), padding var(--transition); color: var(--text-muted); }
.faq-a.open { max-height: 200px; padding-bottom: 20px; }

/* ── News Page ──────────────────────────────────────────────── */
.news-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.news-list .news-card { margin-bottom: 28px; display: grid; grid-template-columns: 280px 1fr; }
.news-list .news-card .news-img { aspect-ratio: 16/10; }
.events-sidebar { position: sticky; top: 120px; }
.event-item { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius-sm); background: var(--bg-alt); margin-bottom: 12px; transition: all var(--transition); }
.event-item:hover { background: var(--bg-cool); }
.event-item .event-date {
    min-width: 56px; text-align: center; padding: 8px 4px;
    background: var(--navy); color: #fff; border-radius: var(--radius-sm);
}
.event-item .event-date .day { font-size: 1.3rem; font-weight: 700; display: block; }
.event-item .event-date .month { font-size: 0.75rem; text-transform: uppercase; }
.event-item h4 { font-size: 0.95rem; color: var(--navy); }
.event-item p { font-size: 0.82rem; color: var(--text-muted); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
    background: var(--navy); color: rgba(255,255,255,0.8);
    padding: 56px 0 0; position: relative;
}
.site-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--teal), var(--purple), var(--rose));
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 36px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--gold); }
.footer-brand span { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.1rem; }
.footer-about p { font-size: 0.92rem; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1); color: #fff; transition: all var(--transition);
}
.footer-social a:nth-child(1):hover { background: #1877f2; }
.footer-social a:nth-child(2):hover { background: #25d366; }
.footer-social a:nth-child(3):hover { background: var(--orange); }
.footer-social a:nth-child(4):hover { background: #e4405f; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-col ul li a:hover { color: var(--orange-light); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 0.92rem; }
.footer-contact li i { color: var(--orange-light); margin-top: 4px; }
.footer-motto { text-align: center; padding: 16px 0; font-style: italic; color: var(--gold-light); font-weight: 600; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); text-align: center;
    padding: 20px 0; margin-top: 40px; font-size: 0.85rem; color: rgba(255,255,255,0.5);
}

/* ── Hero Word Rotator ────────────────────────────────────────── */
.hero-rotator {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    margin-bottom: 28px; flex-wrap: wrap;
}
.hero-rotator-label {
    color: rgba(255,255,255,0.8); font-size: 1.2rem; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
}
.hero-rotator-words {
    display: inline-block; position: relative; height: 2.2rem; overflow: hidden;
    min-width: 180px; text-align: left;
}
.rotator-word {
    position: absolute; left: 0; top: 0; width: 100%;
    font-family: var(--font-head); font-size: 2rem; font-weight: 700;
    color: var(--gold-light); line-height: 2.2rem;
    opacity: 0; transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.rotator-word.active {
    opacity: 1; transform: translateY(0);
}
.rotator-word.exit {
    opacity: 0; transform: translateY(-100%);
}

/* ── Highlights Marquee Strip ─────────────────────────────────── */
.highlights-strip {
    overflow: hidden; position: relative;
    background: var(--navy); padding: 14px 0;
    border-bottom: 3px solid var(--orange);
}
.highlights-track {
    display: flex; gap: 48px; white-space: nowrap;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}
.highlights-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.highlight-item {
    color: rgba(255,255,255,0.9); font-weight: 600; font-size: 0.95rem;
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.highlight-item i { color: var(--gold-light); font-size: 0.85rem; }

/* ── Section Divider (between carousel and welcome) ───────────── */
.section-break {
    position: relative; height: 56px; background: #fff;
    overflow: hidden;
}
.section-break::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: linear-gradient(90deg, var(--orange), var(--teal), var(--purple), var(--rose));
}
.section-break .section-break-shape {
    position: absolute; bottom: 0; left: 0; right: 0; height: 56px;
    background: var(--bg-cool); clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ── Welcome Image Slider ─────────────────────────────────────── */
.welcome-slider {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg); aspect-ratio: 4/3;
}
.welcome-slides {
    display: flex; width: 100%; height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.welcome-slide {
    min-width: 100%; height: 100%;
}
.welcome-slide img { width: 100%; height: 100%; object-fit: cover; }
.welcome-slider-dots {
    position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 5;
}
.ws-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.4); cursor: pointer;
    transition: all var(--transition); border: 2px solid transparent;
}
.ws-dot.active { background: var(--orange); border-color: #fff; transform: scale(1.3); }

/* ── Proprietor Message ─────────────────────────────────────────── */
.proprietor-section {
    background: linear-gradient(135deg, var(--bg-warm) 0%, #fff 50%, var(--bg-cool) 100%);
}
.proprietor {
    display: grid; grid-template-columns: 480px 1fr; gap: 56px; align-items: start;
}
.proprietor-frame {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: 0 24px 70px rgba(27,42,74,0.28);
    border: 5px solid #fff;
}
.proprietor-frame img {
    width: 100%; display: block; object-fit: cover; aspect-ratio: 1/1;
}
.proprietor-badge {
    position: absolute; bottom: 0; left: 0; right: 0;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(to top, rgba(27,42,74,0.95), rgba(27,42,74,0.7));
    color: var(--gold-light); font-weight: 700; font-size: 0.95rem;
    letter-spacing: 1px; text-transform: uppercase;
}
.proprietor-badge i { font-size: 1rem; }
.proprietor-message {
    padding-top: 8px;
}
.proprietor-quote-icon {
    font-size: 3rem; color: var(--orange); opacity: 0.3;
    margin-bottom: 12px; line-height: 1;
}
.proprietor-message p {
    font-size: 1.05rem; line-height: 1.85; color: var(--text);
    margin-bottom: 18px;
}
.proprietor-opening {
    font-size: 1.2rem !important; font-weight: 600; color: var(--navy) !important;
    border-left: 4px solid var(--orange); padding-left: 18px;
    margin-bottom: 20px !important;
}
.proprietor-closing {
    font-style: italic; font-weight: 600; color: var(--teal) !important;
    font-size: 1.15rem !important; text-align: center;
    padding: 18px 24px; margin: 28px 0 !important;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(27,42,74,0.04), rgba(13,148,136,0.06));
}
.proprietor-signature {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 4px; margin-top: 28px; padding-top: 20px;
}
.proprietor-sig-line {
    width: 80px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--orange), var(--gold));
    margin-bottom: 10px;
}
.proprietor-signature span {
    font-weight: 700; color: var(--navy); font-size: 1.05rem;
}
.proprietor-signature small {
    color: var(--text-muted); font-size: 0.88rem;
}

/* ── Headmaster Message ─────────────────────────────────────────── */
.headmaster-section {
    background: linear-gradient(135deg, var(--bg-cool) 0%, #fff 50%, var(--bg-warm) 100%);
}
.headmaster {
    display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start;
}
.headmaster-frame {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: 0 20px 60px rgba(13,148,136,0.2);
}
.headmaster-frame img {
    width: 100%; display: block; object-fit: cover; aspect-ratio: 4/5;
}
.headmaster-badge {
    position: absolute; bottom: 0; left: 0; right: 0;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(to top, rgba(13,148,136,0.95), rgba(13,148,136,0.7));
    color: #fff; font-weight: 700; font-size: 0.95rem;
    letter-spacing: 1px; text-transform: uppercase;
}
.headmaster-badge i { font-size: 1rem; }
.headmaster-message {
    padding-top: 8px;
}
.headmaster-quote-icon {
    font-size: 3rem; color: var(--teal); opacity: 0.3;
    margin-bottom: 12px; line-height: 1;
}
.headmaster-message p {
    font-size: 1.05rem; line-height: 1.85; color: var(--text);
    margin-bottom: 18px;
}
.headmaster-opening {
    font-size: 1.3rem !important; font-weight: 700; color: var(--navy) !important;
    border-left: 4px solid var(--teal); padding-left: 18px;
    margin-bottom: 20px !important; font-style: normal;
}
.headmaster-subheading {
    font-size: 1.1rem; color: var(--purple); font-weight: 700;
    margin: 28px 0 12px; display: flex; align-items: center; gap: 10px;
}
.headmaster-subheading i {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--purple); color: #fff; font-size: 0.85rem;
    flex-shrink: 0;
}
.headmaster-highlights {
    list-style: none; padding: 0; margin: 0 0 20px;
    display: flex; flex-direction: column; gap: 14px;
}
.headmaster-highlights li {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 12px 16px; border-radius: var(--radius-sm);
    background: #fff; border-left: 4px solid var(--teal);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.headmaster-highlights li:nth-child(1) { border-left-color: var(--purple); }
.headmaster-highlights li:nth-child(2) { border-left-color: var(--teal); }
.headmaster-highlights li:nth-child(3) { border-left-color: var(--rose); }
.headmaster-highlights li:hover { transform: translateX(4px); box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.headmaster-highlights li i {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; color: #fff;
}
.headmaster-highlights li:nth-child(1) i { background: var(--purple); }
.headmaster-highlights li:nth-child(2) i { background: var(--teal); }
.headmaster-highlights li:nth-child(3) i { background: var(--rose); }
.headmaster-highlights li strong {
    display: block; font-size: 0.95rem; color: var(--navy); margin-bottom: 2px;
}
.headmaster-highlights li span {
    display: block; font-size: 0.88rem; color: var(--text-muted); line-height: 1.5;
}
.headmaster-closing {
    font-style: italic; font-weight: 600; color: var(--navy) !important;
    font-size: 1.05rem !important; text-align: left;
    padding: 18px 20px; margin: 24px 0 !important;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(13,148,136,0.06), rgba(124,58,237,0.04));
}
.headmaster-signature {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 4px; margin-top: 24px; padding-top: 20px;
}
.headmaster-sig-line {
    width: 80px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--teal), var(--purple));
    margin-bottom: 10px;
}
.headmaster-signature span {
    font-weight: 700; color: var(--navy); font-size: 1.05rem;
}
.headmaster-signature small {
    color: var(--text-muted); font-size: 0.88rem;
}

/* Name caption shown under the proprietor / headmaster / coordinator portraits. */
.portrait-name {
    margin-top: 16px;
    text-align: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--navy);
    letter-spacing: 0.02em;
}
.portrait-name::after {
    content: '';
    display: block;
    width: 42px; height: 3px; border-radius: 2px;
    margin: 8px auto 0;
    background: linear-gradient(90deg, var(--teal), var(--gold));
}

/* ── Message from the Coordinator ─────────────────────────────── */
.coordinator-section {
    background: linear-gradient(135deg, var(--bg-warm) 0%, #fff 50%, var(--bg-cool) 100%);
}
.coordinator {
    display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: start;
}
.coordinator-frame {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: 0 20px 60px rgba(232,101,26,0.2);
}
.coordinator-frame img {
    width: 100%; display: block; object-fit: cover; aspect-ratio: 4/5;
}
.coordinator-badge {
    position: absolute; bottom: 0; left: 0; right: 0;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(to top, rgba(232,101,26,0.95), rgba(232,101,26,0.7));
    color: #fff; font-weight: 700; font-size: 0.95rem;
    letter-spacing: 1px; text-transform: uppercase;
}
.coordinator-badge i { font-size: 1rem; }
.coordinator-message {
    padding-top: 8px;
}
.coordinator-quote-icon {
    font-size: 3rem; color: var(--orange); opacity: 0.3;
    margin-bottom: 12px; line-height: 1;
}
.coordinator-message p {
    font-size: 1.05rem; line-height: 1.85; color: var(--text);
    margin-bottom: 18px;
}
.coordinator-opening {
    font-size: 1.3rem !important; font-weight: 700; color: var(--navy) !important;
    border-left: 4px solid var(--orange); padding-left: 18px;
    margin-bottom: 20px !important; font-style: normal;
}
.coordinator-signature {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 4px; margin-top: 24px; padding-top: 20px;
}
.coordinator-sig-line {
    width: 80px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--orange), var(--gold));
    margin-bottom: 10px;
}
.coordinator-signature span {
    font-weight: 700; color: var(--navy); font-size: 1.05rem;
}
.coordinator-signature small {
    color: var(--text-muted); font-size: 0.88rem;
}

/* ── Message from the Class of 2026 ───────────────────────────────── */
.class-message-section {
    background: linear-gradient(135deg, rgba(124,58,237,0.04) 0%, #fff 40%, rgba(214,158,46,0.05) 100%);
}
.class-message {
    display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: start;
}
.class-message-text {
    padding-top: 8px;
}
.class-message-quote {
    font-size: 3rem; color: var(--purple); opacity: 0.25;
    margin-bottom: 12px; line-height: 1;
}
.class-message-heading {
    font-size: 1.35rem; font-weight: 700; color: var(--navy);
    border-left: 4px solid var(--purple); padding-left: 18px;
    margin-bottom: 22px;
}
.class-message-text p {
    font-size: 1.05rem; line-height: 1.85; color: var(--text);
    margin-bottom: 18px;
}
.class-message-signoff {
    font-style: italic; font-weight: 600; color: var(--purple) !important;
    font-size: 1.1rem !important; text-align: center;
    padding: 18px 24px; margin: 28px 0 16px !important;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(214,158,46,0.06));
}
.class-message-sig {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 4px; margin-top: 28px; padding-top: 20px;
}
.class-message-sig-line {
    width: 80px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--purple), var(--gold));
    margin-bottom: 10px;
}
.class-message-sig span {
    font-weight: 700; color: var(--navy); font-size: 1.05rem;
}
.class-message-sig small {
    color: var(--text-muted); font-size: 0.88rem;
}
.class-message-frame {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: 0 20px 60px rgba(124,58,237,0.2);
}
.class-message-frame img {
    width: 100%; display: block; object-fit: cover; aspect-ratio: 4/5;
}
.class-message-badge {
    position: absolute; bottom: 0; left: 0; right: 0;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(to top, rgba(124,58,237,0.95), rgba(124,58,237,0.7));
    color: #fff; font-weight: 700; font-size: 0.95rem;
    letter-spacing: 1px; text-transform: uppercase;
}
.class-message-badge i { font-size: 1rem; }

/* ── Graduating Classes: year switcher ──────────────────────── */
.class-tabs {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
    margin: 36px 0 52px;
}
.class-tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 12px 28px; border-radius: 999px;
    border: 2px solid var(--purple); background: #fff; color: var(--purple);
    font: inherit; font-weight: 700; font-size: 0.98rem; letter-spacing: 0.3px;
    cursor: pointer; transition: all var(--transition);
}
.class-tab small {
    font-size: 0.72rem; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: var(--text-muted);
}
.class-tab:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(124,58,237,0.18); }
.class-tab.active {
    background: linear-gradient(135deg, var(--purple), #5b21b6);
    border-color: var(--purple); color: #fff;
    box-shadow: 0 10px 24px rgba(124,58,237,0.3);
}
.class-tab.active small { color: rgba(255,255,255,0.85); }

/* One graduating class at a time; panels toggle via .class-tabs buttons. */
.class-panel { display: none; }
.class-panel.active { display: grid; }
.class-message--flip { grid-template-columns: 420px 1fr; }
.class-message--flip .class-message-photo { order: -1; }
/* Landscape group shots (2023/2024) must not crop faces off the sides. */
.class-message-frame--wide img { aspect-ratio: 3/2; }
/* Photo-less class (2025): a CSS-only commemorative crest panel. */
.class-message-crest {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    aspect-ratio: 4/5; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 14px;
    padding: 36px 28px; text-align: center; color: #fff;
    background: linear-gradient(160deg, #7c3aed 0%, #2b2463 55%, #17103a 100%);
    box-shadow: 0 20px 60px rgba(124,58,237,0.2);
}
.class-message-crest::before {
    content: ""; position: absolute; inset: 14px;
    border: 1px dashed rgba(255,255,255,0.35);
    border-radius: var(--radius-sm); pointer-events: none;
}
.class-message-crest i { font-size: 2.6rem; color: var(--gold); }
.class-message-crest-year {
    font-family: 'Playfair Display', serif;
    font-size: 4.4rem; font-weight: 700; line-height: 1; letter-spacing: 2px;
}
.class-message-crest-label {
    font-weight: 700; font-size: 0.95rem; letter-spacing: 2px;
    text-transform: uppercase; color: var(--gold);
}
.class-message-crest small { color: rgba(255,255,255,0.78); font-size: 0.85rem; max-width: 280px; }

/* ── Testimonials Slider ──────────────────────────────────────── */
.testimonials-section {
    background: linear-gradient(135deg, var(--bg-cool) 0%, var(--bg-warm) 100%);
}
.testimonial-slider { max-width: 720px; margin: 0 auto; position: relative; }
.testimonial-slides { position: relative; min-height: 280px; overflow: hidden; }
.testimonial-slide {
    position: absolute; inset: 0; padding: 40px; text-align: center;
    opacity: 0; transform: translateX(60px) scale(0.96);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.testimonial-slide.active {
    opacity: 1; transform: translateX(0) scale(1);
    pointer-events: auto;
}
.testimonial-quote {
    font-size: 2.5rem; color: var(--teal); margin-bottom: 16px;
    opacity: 0.5;
}
.testimonial-slide p {
    font-size: 1.15rem; font-style: italic; color: var(--text);
    line-height: 1.8; margin-bottom: 24px;
}
.testimonial-author {
    display: flex; align-items: center; justify-content: center; gap: 14px;
}
.testimonial-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--teal), var(--navy));
    color: #fff; font-weight: 700; font-size: 0.9rem;
}
.testimonial-author strong { display: block; color: var(--navy); font-size: 1rem; }
.testimonial-author span { display: block; color: var(--text-muted); font-size: 0.85rem; }
.testimonial-nav {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    margin-top: 20px;
}
.test-arrow {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--navy); color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.9rem; transition: all var(--transition);
}
.test-arrow:hover { background: var(--teal); transform: scale(1.1); }
.testimonial-dots { display: flex; gap: 8px; }
.test-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--border); cursor: pointer;
    transition: all var(--transition);
}
.test-dot.active { background: var(--orange); transform: scale(1.3); }

/* ── Staggered Card Entrance ──────────────────────────────────── */
.stagger-grid .stagger-child {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-grid.visible .stagger-child { opacity: 1; transform: translateY(0); }
.stagger-grid.visible .stagger-child:nth-child(1) { transition-delay: 0.05s; }
.stagger-grid.visible .stagger-child:nth-child(2) { transition-delay: 0.1s; }
.stagger-grid.visible .stagger-child:nth-child(3) { transition-delay: 0.15s; }
.stagger-grid.visible .stagger-child:nth-child(4) { transition-delay: 0.2s; }
.stagger-grid.visible .stagger-child:nth-child(5) { transition-delay: 0.25s; }
.stagger-grid.visible .stagger-child:nth-child(6) { transition-delay: 0.3s; }
.stagger-grid.visible .stagger-child:nth-child(7) { transition-delay: 0.35s; }
.stagger-grid.visible .stagger-child:nth-child(8) { transition-delay: 0.4s; }
.stagger-grid.visible .stagger-child:nth-child(9) { transition-delay: 0.45s; }
.stagger-grid.visible .stagger-child:nth-child(10) { transition-delay: 0.5s; }
.stagger-grid.visible .stagger-child:nth-child(11) { transition-delay: 0.55s; }
.stagger-grid.visible .stagger-child:nth-child(12) { transition-delay: 0.6s; }

/* ── Enhanced Card Hover Transitions ──────────────────────────── */
.stat-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.class-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.class-card:hover {
    transform: translateY(-6px) rotate(-1deg);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.news-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.news-card:hover {
    box-shadow: 0 14px 40px rgba(0,0,0,0.15);
    transform: translateY(-8px);
}
.value-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.value-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* ── Parallax Hero (subtle scroll effect) ─────────────────────── */
.hero {
    background-attachment: fixed;
}
@supports (-webkit-touch-callout: none) {
    .hero { background-attachment: scroll; }
}

/* ── Student Voices ─────────────────────────────────────────────── */
.student-voices-section {
    background: linear-gradient(135deg, #fff 0%, var(--bg-cool) 50%, var(--bg-warm) 100%);
}
.sv-tabs {
    display: flex; justify-content: center; gap: 12px; margin-bottom: 36px; flex-wrap: wrap;
}
.sv-tab {
    padding: 12px 28px; border-radius: 30px; border: 2px solid var(--border);
    background: #fff; color: var(--navy); font-weight: 600; font-size: 0.95rem;
    cursor: pointer; transition: all var(--transition);
    display: flex; align-items: center; gap: 8px;
}
.sv-tab i { font-size: 1rem; }
.sv-tab:hover { border-color: var(--teal); background: var(--bg-cool); }
.sv-tab.active {
    background: var(--navy); color: #fff; border-color: var(--navy);
    box-shadow: 0 4px 16px rgba(27,42,74,0.3);
}
.sv-tab.active i { color: var(--gold-light); }
.sv-slider { position: relative; overflow: hidden; }
.sv-group {
    display: none; opacity: 0;
    transition: opacity 0.4s ease;
}
.sv-group.active { display: block; opacity: 1; }
/* Only one card is ever display:flex at a time — no absolute positioning,
   no opacity crossfade, no overlap possible. The container auto-sizes to
   the active card's content. */
.sv-cards { position: relative; min-height: 240px; }
.sv-card {
    display: none; padding: 36px 48px; text-align: center;
    flex-direction: column; align-items: center; justify-content: center;
}
.sv-card.active {
    display: flex;
    animation: svFadeIn 0.4s ease;
}
@keyframes svFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sv-card-icon {
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #fff; margin-bottom: 20px;
}
.sv-group[data-sv-group="alumni"] .sv-card-icon { background: linear-gradient(135deg, var(--orange), var(--gold)); }
.sv-group[data-sv-group="current"] .sv-card-icon { background: linear-gradient(135deg, var(--teal), var(--purple)); }
.sv-card p {
    font-size: 1.1rem; line-height: 1.85; color: var(--text);
    font-style: italic; max-width: 680px; margin: 0 auto 24px;
}
.sv-author {
    display: flex; align-items: center; justify-content: center; gap: 14px;
}
.sv-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem; color: #fff;
}
.sv-group[data-sv-group="alumni"] .sv-avatar { background: linear-gradient(135deg, var(--orange), var(--rose)); }
.sv-group[data-sv-group="current"] .sv-avatar { background: linear-gradient(135deg, var(--teal), var(--navy)); }
.sv-author strong { display: block; color: var(--navy); font-size: 1rem; }
.sv-author span { display: block; color: var(--text-muted); font-size: 0.85rem; }
.sv-nav {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    margin-top: 20px;
}
.sv-arrow {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--navy); color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.9rem; transition: all var(--transition);
}
.sv-arrow:hover { background: var(--teal); transform: scale(1.1); }
.sv-counter {
    font-size: 0.9rem; font-weight: 600; color: var(--navy);
    min-width: 60px; text-align: center;
    padding: 6px 14px; border-radius: 20px;
    background: var(--bg-cool); border: 1px solid var(--border);
}
.sv-counter-current { color: var(--orange); font-weight: 700; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    /* Side slide-ins push content past the screen edge on phones and tablets
       (the page then wobbles sideways / pictures look cut off), so on smaller
       screens those sections animate up from below instead of from the side. */
    .reveal-left, .reveal-right { transform: translateY(40px); }
    .reveal-left.visible, .reveal-right.visible { transform: translateY(0); }
    .welcome, .mission-vision, .contact-form-wrap, .news-layout { grid-template-columns: 1fr; }
    .proprietor { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
    .proprietor-frame img { aspect-ratio: 16/9; max-height: 440px; }
    .headmaster { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
    .headmaster-frame img { aspect-ratio: 16/9; max-height: 360px; }
    .class-message { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
    .class-message-frame img { aspect-ratio: 4/5; max-height: 480px; }
    .class-message--flip { grid-template-columns: 1fr; }
    .class-message--flip .class-message-photo { order: 0; }
    .class-message-frame--wide img { aspect-ratio: 4/3; max-height: 380px; }
    .class-message-crest { aspect-ratio: auto; min-height: 260px; }
    .class-tabs { gap: 8px; margin: 28px 0 40px; }
    .class-tab { padding: 10px 18px; font-size: 0.9rem; }
.coordinator { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
    .coordinator-frame img { aspect-ratio: 16/9; max-height: 360px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .value-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .step-card::after { display: none; }
    .contact-cards { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .news-list .news-card { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --topbar-height: 40px; }
    .top-bar { display: block; font-size: 0.78rem; }
    .top-bar-inner { position: relative; padding: 0 12px; }
    .top-bar-left { flex: 0 0 auto; gap: 8px; max-width: calc(100% - 72px); }
    .top-bar-right { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; gap: 4px; }
    .top-bar-item.phone { font-size: 0.65rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .top-bar-item.phone i { display: none; }
    .top-bar-item.email { display: none; }
    .top-bar-item.phone .tb-label { display: none; }
    .top-social { width: 22px; height: 22px; font-size: 0.65rem; }
    body { padding-top: calc(var(--topbar-height) + var(--nav-height)); }
    .site-nav { top: var(--topbar-height); }
    .site-nav .nav-inner { padding: 0 16px; }
    .nav-toggle { display: block; }
    .nav-backdrop { display: block; }
    .site-nav .nav-links {
        position: fixed; top: calc(var(--topbar-height) + var(--nav-height)); right: -100%; width: 80%; max-width: 320px;
        height: calc(100vh - var(--topbar-height) - var(--nav-height)); flex-direction: column; justify-content: flex-start;
        background: #fff; padding: 28px; gap: 8px;
        transition: right var(--transition); z-index: 999;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    }
    .site-nav .nav-links.active { right: 0; }
    .site-nav .nav-links a {
        font-size: 1.05rem; width: 100%; text-align: left;
        padding: 12px 18px; border-radius: var(--radius-sm);
    }
    .site-nav .nav-brand span { font-size: 0.95rem; }
    .testimonial-slide { padding: 24px; }
    .testimonial-slide p { font-size: 1rem; }
    .hero-slide-content { padding: 0 24px; }
    .hero-slide-content .slide-heading { font-size: 1.6rem; padding: 10px 20px; }
    .hero-slide-content p { font-size: 0.95rem; }
    .slide-badge { font-size: 0.72rem; padding: 6px 18px; }
    .slide-btn { padding: 11px 28px; font-size: 0.9rem; }
    .hero-arrow { width: 40px; height: 40px; font-size: 1rem; }
    .hero-arrow.prev { left: 12px; }
    .hero-arrow.next { right: 12px; }
    .hero-carousel { height: 70vh; min-height: 400px; }
    .hero-stats-strip { gap: 20px; padding: 24px 16px; }
    .hero-stats-strip .divider-stat { padding: 8px 12px; }
    .hero-stats-strip .divider-stat strong { font-size: 1.15rem; }
    .hero-stats-strip .divider-stat span { font-size: 0.72rem; }
    .hero-stats-strip .divider-stat:not(:last-child)::after { display: none; }
    .divider-stats { gap: 20px; padding: 24px 16px; }
    .divider-stat { padding: 8px 12px; }
    .divider-stat strong { font-size: 1.15rem; }
    .divider-stat span { font-size: 0.72rem; }
    .divider-stat:not(:last-child)::after { display: none; }
    .hero-carousel-divider .divider-top h3 { font-size: 1.1rem; }
    .sv-tab { font-size: 0.82rem; padding: 10px 18px; }
    .sv-card { padding: 24px 20px; }
    .sv-card p { font-size: 0.98rem; }
    .section { padding: 48px 0; }
    .section-title h2 { font-size: 1.7rem; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .gallery-preview, .news-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
    .contact-cards, .value-grid, .values-grid, .class-grid, .checklist { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .news-list .news-card { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 1.8rem; }
}

/* ================================================================
   Dark theme — mirrors the portal system (html[data-theme="dark"]).
   Tokens first, then targeted overrides for hard-coded light
   surfaces. --navy is kept as-is because it doubles as a surface
   colour (footer, banners, buttons); navy *text* is lifted instead.
   ================================================================ */
html[data-theme="dark"] {
    color-scheme: dark;
    --text: #e3e9f3;
    --text-muted: #98a6bd;
    --bg: #0e1420;
    --bg-alt: #141c2b;
    --bg-warm: #181b29;
    --bg-cool: #111a2a;
    --border: #263349;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
    --shadow: 0 4px 20px rgba(0,0,0,0.45);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.55);
}

/* Headings & links (white-on-colour headings re-declared below) */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4 { color: #d9e4f6; }
html[data-theme="dark"] a { color: #a8c4ec; }
html[data-theme="dark"] a:hover { color: var(--teal-light); }
html[data-theme="dark"] .page-hero h1,
html[data-theme="dark"] .cta-banner h2,
html[data-theme="dark"] .footer-col h4,
html[data-theme="dark"] .footer-brand span,
html[data-theme="dark"] .hero-slide-content .slide-heading { color: #fff; }

/* Top bar + navigation */
html[data-theme="dark"] .top-bar { background: #101827; border-bottom-color: var(--border); }
html[data-theme="dark"] .top-bar-item i { color: var(--gold-light); }
html[data-theme="dark"] .site-nav { background: #141c2b; box-shadow: 0 1px 3px rgba(0,0,0,0.5); }
html[data-theme="dark"] .site-nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.6); }
html[data-theme="dark"] .site-nav .nav-brand span { color: #e9effa; }
html[data-theme="dark"] .site-nav .nav-links a { color: var(--text); }
html[data-theme="dark"] .site-nav .nav-links a:hover { color: #fff; background: rgba(148,163,184,0.12); }
html[data-theme="dark"] .nav-toggle { color: #e9effa; }
html[data-theme="dark"] .site-theme-toggle {
    background: #1b2436; border-color: #2c3a52; color: var(--gold-light);
}
html[data-theme="dark"] .site-nav .nav-links { background: #141c2b; }

/* White strips between hero sections */
html[data-theme="dark"] .hero-carousel-divider { background: var(--bg); }
html[data-theme="dark"] .hero-carousel-divider .divider-top .divider-line { background: linear-gradient(90deg, transparent, #7f9cc9); }
html[data-theme="dark"] .hero-carousel-divider .divider-top .divider-line:last-child { background: linear-gradient(90deg, #7f9cc9, transparent); }
html[data-theme="dark"] .hero-carousel-divider .divider-bottom-spacer { background: var(--bg); }
html[data-theme="dark"] .section-break { background: var(--bg); }

/* Cards & raised surfaces */
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .value-card,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .mv-card,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .adm-level,
html[data-theme="dark"] .class-card,
html[data-theme="dark"] .welcome-highlights li,
html[data-theme="dark"] .headmaster-highlights li,
html[data-theme="dark"] .gallery-filters button,
html[data-theme="dark"] .sv-tab { background: #1a2436; }
html[data-theme="dark"] .class-card:hover { background: #202c42; border-color: var(--teal); }
html[data-theme="dark"] .value-item:hover { background: #1a2436; }
html[data-theme="dark"] .event-item:hover { background: #202c42; }
html[data-theme="dark"] .sv-tab { color: #cfdcf2; border-color: var(--border); }
html[data-theme="dark"] .sv-tab:hover { background: #202c42; border-color: var(--teal); }

/* Admissions subject-list dark-mode fixes */
html[data-theme="dark"] .tab-btn { background: #1a2436; color: #e3e9f3; }
html[data-theme="dark"] .tab-btn:hover { background: #202c42; border-color: var(--teal); }
html[data-theme="dark"] .tab-btn .tab-count { color: #98a6bd; }
html[data-theme="dark"] .class-card__header { background: #1f2b3d; border-color: var(--border); }
html[data-theme="dark"] .class-card--teal .class-card__header   { background: rgba(38, 166, 154, 0.18); }
html[data-theme="dark"] .class-card--purple .class-card__header { background: rgba(124, 110, 168, 0.20); }
html[data-theme="dark"] .class-card--orange .class-card__header { background: rgba(230, 126, 34, 0.20); }
html[data-theme="dark"] .class-card__header h4 { color: #d9e4f6; }
html[data-theme="dark"] .subject-tag { background: rgba(106, 168, 96, 0.18); color: #8ccf8c; }

/* Admission requirements dark-mode fixes */
html[data-theme="dark"] .requirement-card { background: #1a2436; border-color: var(--border); }
html[data-theme="dark"] .requirement-card h3 { color: #d9e4f6; }
html[data-theme="dark"] .requirement-card p { color: #98a6bd; }
html[data-theme="dark"] .requirement-card:nth-child(4) .req-icon { color: #9ab6e4; }

/* Navy text lifted for dark backgrounds */
html[data-theme="dark"] .welcome-text h2,
html[data-theme="dark"] .faq-q,
html[data-theme="dark"] .contact-form label,
html[data-theme="dark"] .portrait-name,
html[data-theme="dark"] .class-message-heading,
html[data-theme="dark"] .proprietor-signature span,
html[data-theme="dark"] .headmaster-signature span,
html[data-theme="dark"] .coordinator-signature span,
html[data-theme="dark"] .class-message-sig span,
html[data-theme="dark"] .testimonial-author strong,
html[data-theme="dark"] .sv-author strong,
html[data-theme="dark"] .sv-counter,
html[data-theme="dark"] .welcome-highlights li strong,
html[data-theme="dark"] .headmaster-highlights li strong { color: #d9e4f6; }
html[data-theme="dark"] .stat-card:nth-child(4) .stat-num,
html[data-theme="dark"] .contact-card:nth-child(4) .cc-icon,
html[data-theme="dark"] .value-item:nth-child(5) .vi-icon { color: #9ab6e4; }
html[data-theme="dark"] .news-card .news-more:hover { color: #d9e4f6; }

/* Section gradients that contain white stops */
html[data-theme="dark"] .proprietor-section,
html[data-theme="dark"] .coordinator-section {
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg) 50%, var(--bg-cool) 100%);
}
html[data-theme="dark"] .headmaster-section {
    background: linear-gradient(135deg, var(--bg-cool) 0%, var(--bg) 50%, var(--bg-warm) 100%);
}
html[data-theme="dark"] .class-message-section {
    background: linear-gradient(135deg, rgba(124,58,237,0.10) 0%, var(--bg) 40%, rgba(214,158,46,0.08) 100%);
}
html[data-theme="dark"] .student-voices-section {
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-cool) 50%, var(--bg-warm) 100%);
}

/* Tinted quote/closing panels */
html[data-theme="dark"] .welcome-closing {
    background: linear-gradient(135deg, rgba(148,163,184,0.10), rgba(13,148,136,0.10));
}
html[data-theme="dark"] .welcome-closing strong { color: #d9e4f6; }
html[data-theme="dark"] .proprietor-closing { background: linear-gradient(135deg, rgba(232,101,26,0.12), rgba(214,158,46,0.10)); }
html[data-theme="dark"] .headmaster-closing { background: linear-gradient(135deg, rgba(13,148,136,0.14), rgba(124,58,237,0.10)); }
html[data-theme="dark"] .class-message-signoff { background: linear-gradient(135deg, rgba(124,58,237,0.14), rgba(214,158,46,0.10)); }
html[data-theme="dark"] .class-message-crest { background: linear-gradient(160deg, #3b1f78 0%, #221d52 55%, #131029 100%); }
html[data-theme="dark"] .class-tab:not(.active) { background: #1a2436; color: #d9e4f6; border-color: var(--border); }
html[data-theme="dark"] .class-tab:not(.active):hover { background: #202c42; border-color: var(--teal); }
html[data-theme="dark"] .proprietor-opening,
html[data-theme="dark"] .headmaster-opening,
html[data-theme="dark"] .coordinator-opening { color: #d9e4f6 !important; }

/* Forms */
html[data-theme="dark"] .contact-form .form-control,
html[data-theme="dark"] .contact-form select,
html[data-theme="dark"] .contact-form textarea,
html[data-theme="dark"] .contact-form input:not([type="submit"]):not([type="button"]) {
    background: #131c2b; color: var(--text); border-color: var(--border);
}
html[data-theme="dark"] .contact-form .form-control:focus,
html[data-theme="dark"] .contact-form select:focus,
html[data-theme="dark"] .contact-form textarea:focus {
    border-color: var(--teal);
}
html[data-theme="dark"] .contact-form select option,
html[data-theme="dark"] .contact-form select optgroup {
    background: #131c2b; color: var(--text);
}
html[data-theme="dark"] .contact-form select option:checked {
    background: var(--teal); color: #fff;
}
html[data-theme="dark"] .contact-form label { color: #d9e4f6; }

/* Global website selects/inputs so any form (admissions, etc.) stays readable */
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] input:not([type="submit"]):not([type="button"]) {
    background: var(--bg-alt); color: var(--text);
}
html[data-theme="dark"] select option,
html[data-theme="dark"] select optgroup {
    background: var(--bg-alt); color: var(--text);
}

/* Hero slides: darken the left overlay a bit more so white text pops against
   bright images in dark mode. */
html[data-theme="dark"] .hero-slide::before {
    background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.35) 100%);
}

/* Rescue hard-coded inline colours used on some public pages */
html[data-theme="dark"] [style*="color:#2d3748"],
html[data-theme="dark"] [style*="color:#1a202c"],
html[data-theme="dark"] [style*="color:#000000"],
html[data-theme="dark"] [style*="color:#000;"],
html[data-theme="dark"] [style*="color:#333"],
html[data-theme="dark"] [style*="color:#4a5568"] { color: var(--text) !important; }
html[data-theme="dark"] [style*="color:#718096"] { color: var(--text-muted) !important; }

/* ── Timeline (Our Story) dark mode ── */
html[data-theme="dark"] .tl-card { background: #1a2436; border-top-color: var(--teal); box-shadow: var(--shadow-sm); }
html[data-theme="dark"] .tl-card:hover { box-shadow: 0 12px 36px rgba(0,0,0,0.4); }
html[data-theme="dark"] .tl-card h3 { color: #d9e4f6; }
html[data-theme="dark"] .tl-card p { color: var(--text-muted); }
html[data-theme="dark"] .tl-year { color: var(--gold-light); }
html[data-theme="dark"] .our-story-intro { color: var(--text-muted); }
html[data-theme="dark"] .our-story-intro strong { color: #d9e4f6; }
html[data-theme="dark"] .tl-item::after { border-color: #1a2436; box-shadow: 0 0 0 3px var(--teal), 0 2px 8px rgba(0,0,0,0.4); }
html[data-theme="dark"] .timeline::before { background: linear-gradient(180deg, var(--teal-light), #4a6fa5, var(--gold)); }

/* ── News article detail dark mode ── */
html[data-theme="dark"] .news-article-content { color: var(--text) !important; }
html[data-theme="dark"] .news-article-content p { color: var(--text); }
html[data-theme="dark"] .news-article-meta .badge { background: #1a2436 !important; color: #d9e4f6 !important; }
html[data-theme="dark"] .news-article-meta span[style*="color:var(--gold)"] { color: var(--gold-light) !important; }
html[data-theme="dark"] .news-article h1 { color: #d9e4f6; }
html[data-theme="dark"] .news-article-img { box-shadow: var(--shadow-lg) !important; }

/* ── Event items dark mode ── */
html[data-theme="dark"] .event-item { background: var(--bg-alt); }
html[data-theme="dark"] .event-item h4 { color: #d9e4f6; }
html[data-theme="dark"] .event-item p { color: var(--text-muted); }
html[data-theme="dark"] .event-item .event-date { background: #1a2436; color: #d9e4f6; }
html[data-theme="dark"] .event-item .event-date .day { color: var(--gold-light); }

/* ── News list page dark mode ── */
html[data-theme="dark"] .news-list .news-card { background: #1a2436; }
html[data-theme="dark"] .news-list .news-card .news-body h3 { color: #d9e4f6; }
html[data-theme="dark"] .news-list .news-card .news-body p { color: var(--text-muted); }
html[data-theme="dark"] .news-list .news-card .news-date { color: var(--gold-light); }

/* ── Stay Updated sidebar box ── */
html[data-theme="dark"] .events-sidebar > div[style*="background:var(--bg-cool)"] { background: #1a2436 !important; }
html[data-theme="dark"] .events-sidebar > div[style*="background:var(--bg-cool)"] h3 { color: #d9e4f6; }
html[data-theme="dark"] .events-sidebar > div[style*="background:var(--bg-cool)"] p { color: var(--text-muted); }

/* ── Contact form select + alerts ── */
.contact-form select.form-control {
    appearance: auto; cursor: pointer;
}
.contact-form .alert-success a,
.contact-form .alert-error a { text-decoration: underline; }

/* Responsive 2-col form row */
@media (max-width: 600px) {
    .contact-form .form-row {
        grid-template-columns: 1fr !important;
    }
}

/* ── Contact form dark mode ── */
html[data-theme="dark"] .contact-form select.form-control {
    background: #1e293b; color: var(--text); border-color: #475569;
}
html[data-theme="dark"] .contact-form select.form-control option {
    background: #1e293b; color: var(--text);
}
html[data-theme="dark"] .contact-form .alert-success {
    background: #052e16 !important; color: #86efac !important; border-color: #166534 !important;
}
html[data-theme="dark"] .contact-form .alert-error {
    background: #450a0a !important; color: #fca5a5 !important; border-color: #991b1b !important;
}
html[data-theme="dark"] .faq-q { color: #d9e4f6; }
html[data-theme="dark"] .faq-a { color: var(--text-muted); }
html[data-theme="dark"] .faq-a a { color: var(--teal-light); }
