/* =========================================================
   Sheikh Tuition Centre — Global Stylesheet
   Theme: Midnight Indigo + Gold | Glassmorphism + 3D Motion
   ========================================================= */

:root {
    /* ===== Brand · Sheikh Tuition Centre (logo-derived) ===== */
    --brand-1: #0F4180;   /* deep logo blue */
    --brand-2: #1E5BA8;   /* main brand blue (matches "Sheikh" wordmark) */
    --brand-3: #4A90E2;   /* light brand blue accent */
    --brand-glow: #6BA8E8;
    --brand-grey: #4A5762;  /* logo grey ("Tuition Centre") */
    --brand-grey-2: #727A88;

    /* ===== LIGHT theme backgrounds ===== */
    --bg-0: #FFFFFF;        /* base white */
    --bg-1: #FAFBFD;        /* off-white sections */
    --bg-2: #F2F6FC;        /* soft blue-tinted feature bg */
    --bg-3: #E6EEF8;        /* slightly deeper feature/alt */

    --surface: rgba(15, 65, 128, 0.025);
    --surface-2: rgba(15, 65, 128, 0.05);

    --hairline: rgba(15, 65, 128, 0.10);
    --hairline-strong: rgba(30, 91, 168, 0.35);
    --border: rgba(15, 65, 128, 0.12);
    --border-strong: rgba(30, 91, 168, 0.35);

    /* Ink text on white — warm grey hierarchy from logo */
    --text: #1A2332;        /* primary ink */
    --text-soft: #4A5762;   /* secondary — logo grey */
    --text-muted: #8B93A1;  /* tertiary */
    --paper: var(--text);
    --paper-soft: var(--text-soft);
    --paper-muted: var(--text-muted);

    --shadow-1: 0 4px 16px rgba(15, 65, 128, 0.07);
    --shadow-2: 0 14px 40px rgba(15, 65, 128, 0.14);
    --shadow-3: 0 22px 60px rgba(15, 65, 128, 0.18);
    --shadow-gold: 0 8px 28px rgba(30, 91, 168, 0.30);
    --shadow-brand: 0 10px 32px rgba(30, 91, 168, 0.30);

    /* Legacy aliases — preserve cascade */
    --gold: var(--brand-2);
    --gold-2: var(--brand-1);
    --gold-3: var(--brand-3);
    --indigo: var(--brand-2);
    --indigo-2: var(--brand-3);
    --cyan: #38BDF8;
    --pink: #6BA8E8;
    --green: #22c55e;

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --container: 1380px;
    --nav-h: 132px;
    --easing: cubic-bezier(0.22, 1, 0.36, 1);

    /* Typography stack */
    --font-display: 'Fraunces', 'Iowan Old Style', 'Apple Garamond', 'Baskerville', Georgia, serif;
    --font-body: 'Manrope', 'Helvetica Neue', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-2: 0 20px 60px rgba(2, 8, 30, 0.55);
    --shadow-gold: 0 8px 30px rgba(31, 107, 198, 0.40);
    --shadow-brand: 0 8px 30px rgba(31, 107, 198, 0.40);

    --container: 1240px;
    --nav-h: 76px;

    --easing: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg-0);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.65;
    font-weight: 400;
    font-feature-settings: 'ss01' on, 'cv01' on;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--brand-2); color: #fff; }

/* Override h1-h4 base colour — was set to --paper which is now ink */
h1, h2, h3, h4 { color: var(--text); }
strong { color: var(--text); }
em { color: var(--text); }

/* ---------- LIGHT atmosphere — subtle blue blooms on white ---------- */
.bg-aurora {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(60% 40% at 15% 5%, rgba(74, 144, 226, 0.10), transparent 60%),
        radial-gradient(55% 40% at 90% 10%, rgba(30, 91, 168, 0.06), transparent 60%),
        radial-gradient(60% 50% at 50% 100%, rgba(107, 168, 232, 0.08), transparent 60%),
        linear-gradient(180deg, #FFFFFF 0%, #F5F8FC 50%, #FFFFFF 100%);
    animation: bgShift 22s ease-in-out infinite alternate;
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(30, 91, 168, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 91, 168, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 25%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 25%, #000 30%, transparent 80%);
    pointer-events: none;
}

#three-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.45;            /* subtle on light bg */
    mix-blend-mode: multiply;  /* blue shapes deepen against white */
}

@keyframes bgShift {
    0% { filter: hue-rotate(0deg) brightness(1); }
    100% { filter: hue-rotate(15deg) brightness(1.05); }
}

/* ---------- Brand watermark — book mark, centred, fixed ----------
   Uses the transparent PNG provided by the centre. Natural aspect
   253/232 is preserved so the icon never distorts. Opacity tuned to
   read as a quiet brand presence without competing with content.   */
.bg-brandmark {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(72vmin, 760px);
    aspect-ratio: 253 / 232;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    background: url('../assets/stc-watermark.png') center / contain no-repeat;
    opacity: 0.14;
    animation: bmFloat 28s ease-in-out infinite alternate;
    filter: saturate(0.85);
}
@keyframes bmFloat {
    0%   { transform: translate(-50%, -50%) scale(1)    rotate(-1.5deg); }
    100% { transform: translate(-50%, -50%) scale(1.035) rotate(1.5deg); }
}
/* Hero / page-hero create their own stacking context so the brand mark
   doesn't bleed into their gradients/headers. */
.hero-split, .hero-slider, .page-hero { isolation: isolate; position: relative; z-index: 1; }
.nav, .footer, .float-wa, .chatbot, .chatbot-toggle { z-index: 100; }
/* Content inside content sections sits above the watermark naturally */
body > section > .container { position: relative; z-index: 2; }

@media (max-width: 760px) {
    .bg-brandmark { width: 90vmin; opacity: 0.10; }
}

/* ---------- Sections sit transparent so the watermark shows through ----
   Body background is the canvas. Sections only add the divider markers
   below; backgrounds stay clear so the brand mark is always visible.   */
body > section:not(.hero-split):not(.hero-slider):not(.page-hero) {
    background: transparent;
    position: relative;
}

/* Section dividers removed for a cleaner look. */
@keyframes brandFloat {
    0%   { opacity: 0.08; transform: translate(-50%, -50%) rotate(-5deg) scale(1); }
    50%  { opacity: 0.14; transform: translate(-48%, -52%) rotate(-2deg) scale(1.04); }
    100% { opacity: 0.10; transform: translate(-52%, -48%) rotate(-3deg) scale(1.02); }
}
@keyframes brandSpin {
    from { filter: hue-rotate(0deg); }
    to   { filter: hue-rotate(360deg); }
}

/* ---------- Hero brand glow (extra blue light blossom) ---------- */
.hero::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -10%;
    width: 60vmin;
    height: 60vmin;
    background: radial-gradient(closest-side, rgba(96,165,250,0.18), transparent 70%);
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: -1;
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; transform: translateY(-50%) scale(1); }
    50%      { opacity: 1;   transform: translateY(-50%) scale(1.08); }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--paper);
}
/* Variable-axis Fraunces — bigger sizes get thinner serifs (high contrast),
   smaller sizes get sturdier serifs. Slightly soft optical for warmth. */
h1 {
    font-size: clamp(2.6rem, 6.4vw, 5.6rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
h2 {
    font-size: clamp(2.2rem, 4.4vw, 3.8rem);
    font-weight: 400;
    letter-spacing: -0.032em;
    font-variation-settings: 'opsz' 144, 'SOFT' 40;
    line-height: 1.05;
}
h3 {
    font-size: clamp(1.45rem, 2.2vw, 1.95rem);
    font-weight: 500;
    letter-spacing: -0.022em;
    font-variation-settings: 'opsz' 72, 'SOFT' 60;
    line-height: 1.15;
}
h4 {
    font-size: clamp(1.1rem, 1.5vw, 1.32rem);
    font-weight: 500;
    letter-spacing: -0.014em;
    font-variation-settings: 'opsz' 36, 'SOFT' 70;
    line-height: 1.2;
}

p {
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.72;
    font-weight: 400;
}
.lead { font-size: 1.18rem; line-height: 1.6; color: var(--text-soft); }
em { font-style: italic; font-variation-settings: 'opsz' 36, 'SOFT' 80; color: var(--paper); }
strong { font-weight: 600; color: var(--paper); }

a { color: inherit; text-decoration: none; transition: color .3s var(--easing); }
a:hover { color: var(--brand-glow); }

.gold { color: var(--brand-3); }

/* Gradient text — cream-to-blue serif accent. Uses Fraunces italic for character. */
.gradient-text {
    font-style: italic;
    font-variation-settings: 'opsz' 144, 'SOFT' 100;
    background: linear-gradient(90deg, #ECE4D2 0%, #6BA8E8 45%, #ECE4D2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    animation: shimmer 12s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Eyebrow — editorial mono caption */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--brand-3);
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--brand-3);
    flex-shrink: 0;
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 110px 0;
    position: relative;
}

.section-head {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 70px;
}

.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 { margin: 0 0 22px; }
.section-head p {
    font-size: 1.12rem;
    line-height: 1.6;
    color: var(--text-soft);
    max-width: 680px;
    margin: 0 auto;
}

/* ---------- Navbar ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--hairline);
    transition: all .35s var(--easing);
}
.nav.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-1);
    height: 84px;
}

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand-logo {
    height: 104px;
    width: auto;
    max-width: 500px;
    display: block;
    transition: transform .5s var(--easing);
    filter: drop-shadow(0 2px 6px rgba(15, 65, 128, 0.10));
}
.brand:hover .brand-logo { transform: translateY(-1px) scale(1.02); }
.nav.scrolled .brand-logo { height: 76px; }

/* Compact mark used elsewhere (favicon-like spots) */
.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand-3) 100%);
    display: grid;
    place-items: center;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.3rem;
    box-shadow: var(--shadow-brand);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}
.nav-links a {
    position: relative;
    padding: 10px 14px;
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-soft);
    transition: color .25s var(--easing);
}
.nav-links a:hover, .nav-links a.active {
    color: var(--brand-2);
    background: transparent;
}
.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 1px;
    background: var(--brand-3);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 4px;
    background: var(--brand-2);
    color: #fff !important;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: .72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 6px 22px rgba(31, 107, 198, 0.40);
    transition: transform .3s var(--easing), box-shadow .3s var(--easing), background .3s var(--easing);
}
.nav-cta:hover {
    transform: translateY(-2px);
    background: var(--brand-3);
    box-shadow: 0 12px 36px rgba(74, 144, 226, 0.55);
    color: #fff !important;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
    color: var(--text);
    align-items: center;
    justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Buttons (editorial — sharper, mono labels) ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 28px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: .78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    border: 0;
    transition: transform .35s var(--easing), box-shadow .35s var(--easing), background .35s var(--easing);
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    line-height: 1;
}
.btn-primary {
    background: var(--brand-2);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 28px rgba(31, 107, 198, 0.40);
}
.btn-primary:hover {
    color: #fff;
    background: var(--brand-3);
    transform: translateY(-2px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.20) inset, 0 14px 40px rgba(74, 144, 226, 0.55);
}
.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .9s var(--easing);
    z-index: -1;
}
.btn-primary:hover::before { transform: translateX(120%); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
    backdrop-filter: none;
}
.btn-ghost:hover {
    color: var(--brand-2);
    background: rgba(30, 91, 168, 0.05);
    border-color: var(--brand-2);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25d366;
    color: #062b14;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.40);
}
.btn-whatsapp:hover { color: #062b14; background: #2bdc6e; transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--nav-h) + 60px) 0 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}
.hero h1 {
    margin: 22px 0 22px;
}
.hero h1 .accent {
    background: linear-gradient(120deg, var(--brand-2) 0%, var(--brand-3) 50%, #DCEAFD 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}
.hero p.lead {
    font-size: 1.12rem;
    max-width: 560px;
    margin-bottom: 36px;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 50px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 600px;
}
.hero-stat {
    padding: 22px 18px 18px;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--hairline-strong);
    border-radius: 0;
    backdrop-filter: none;
}
.hero-stat .num {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 400;
    font-variation-settings: 'opsz' 144, 'SOFT' 30;
    color: var(--paper);
    line-height: 1;
    -webkit-text-fill-color: var(--paper);
}
.hero-stat .label {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--paper-muted);
    margin-top: 10px;
}

/* Hero 3D card stage */
.hero-stage {
    position: relative;
    perspective: 1400px;
    aspect-ratio: 1 / 1.05;
    width: 100%;
    max-width: 540px;
    margin-left: auto;
}
.float-card {
    position: absolute;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-2);
    transform-style: preserve-3d;
    overflow: hidden;
}
.fc-main {
    inset: 8% 4% 18% 8%;
    padding: 28px;
    animation: float-y 7s ease-in-out infinite;
}
.fc-1 {
    top: 6%;
    right: -4%;
    width: 200px;
    padding: 18px 20px;
    animation: float-y 8s ease-in-out infinite reverse;
    background: linear-gradient(160deg, rgba(245, 196, 81, 0.18), rgba(245, 196, 81, 0.04));
    border-color: rgba(245, 196, 81, 0.30);
}
.fc-2 {
    bottom: 4%;
    left: -2%;
    width: 230px;
    padding: 16px 20px;
    animation: float-y 9s ease-in-out infinite;
    background: linear-gradient(160deg, rgba(99, 102, 241, 0.20), rgba(99, 102, 241, 0.04));
    border-color: rgba(99, 102, 241, 0.30);
}
@keyframes float-y {
    0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
    50% { transform: translateY(-14px) rotateX(2deg) rotateY(-3deg); }
}

.fc-main .top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}
.fc-tag {
    font-size: .7rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    border: 1px solid var(--border-strong);
    padding: 5px 10px;
    border-radius: 999px;
}
.fc-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    margin-left: 6px;
}
.fc-dots span:nth-child(1) { background: #ff5f57; }
.fc-dots span:nth-child(2) { background: var(--gold); }
.fc-dots span:nth-child(3) { background: #28c940; }

.fc-main h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}
.fc-main .subjects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 18px;
}
.fc-subject {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all .3s var(--easing);
}
.fc-subject:hover {
    background: rgba(245, 196, 81, 0.10);
    border-color: var(--gold);
    transform: translateY(-2px);
}
.fc-subject .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

.fc-1 .row { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.fc-1 .icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(245, 196, 81, 0.20); display: grid; place-items: center; color: var(--gold); }
.fc-1 .num { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 800; }
.fc-1 .lbl { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; }

.fc-2 .row { display: flex; align-items: center; gap: 12px; }
.fc-2 .avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--indigo), var(--indigo-2));
    border: 2px solid #fff2;
    display: grid; place-items: center;
    font-weight: 700; font-size: .9rem;
}
.fc-2 .info strong { display: block; font-size: .92rem; }
.fc-2 .info small { color: var(--text-muted); font-size: .75rem; }

/* ---------- Cards / Glass ---------- */
.glass {
    background: #FFFFFF;
    border: 1px solid var(--hairline);
    border-radius: 14px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: var(--shadow-1);
    transition: transform .5s var(--easing), border-color .5s var(--easing), box-shadow .5s var(--easing);
}

.tilt {
    transform-style: preserve-3d;
    transition: transform .25s var(--easing);
    will-change: transform;
}
.tilt-inner {
    transform: translateZ(40px);
    transform-style: preserve-3d;
}

/* ---------- Feature Grid ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.feature {
    padding: 36px 32px;
    position: relative;
}
.feature h3 { margin-bottom: 12px; }
.feature p { font-size: 1rem; line-height: 1.65; color: var(--text-soft); }
.feature:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-2), 0 0 0 1px rgba(245, 196, 81, 0.20);
    transform: translateY(-6px);
}
.feature .icon {
    width: 52px;
    height: 52px;
    border-radius: 4px;
    background: rgba(107, 168, 232, 0.10);
    border: 1px solid var(--hairline-strong);
    display: grid;
    place-items: center;
    color: var(--brand-glow);
    margin-bottom: 22px;
    box-shadow: none;
}
.feature h3 { margin-bottom: 10px; font-size: 1.25rem; }
.feature p { font-size: .96rem; }

/* ---------- Course Cards ---------- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}
.course-card {
    padding: 36px 32px 34px;
    position: relative;
    overflow: hidden;
}
.course-card h3 {
    margin-bottom: 12px;
}
.course-card p {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-soft);
}
.course-card::before {
    content: "";
    position: absolute;
    top: -60%;
    right: -40%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(245, 196, 81, 0.16) 0%, transparent 60%);
    transition: transform .8s var(--easing);
}
.course-card:hover::before { transform: scale(1.4); }
.course-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-6px);
    box-shadow: var(--shadow-2), 0 0 0 1px rgba(245, 196, 81, 0.25);
}
.course-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFFFFF 0%, #F2F6FC 100%);
    color: var(--brand-1);
    display: grid;
    place-items: center;
    margin-bottom: 28px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    font-style: italic;
    font-variation-settings: 'opsz' 72, 'SOFT' 100;
    letter-spacing: -0.02em;
    border: 1px solid var(--hairline-strong);
    box-shadow: 0 8px 24px rgba(30, 91, 168, 0.10), 0 1px 0 #fff inset;
    transition: transform .5s var(--easing), background .4s var(--easing), color .4s var(--easing);
}
.course-card:hover .course-icon {
    background: linear-gradient(135deg, var(--brand-2), var(--brand-1));
    color: #fff;
    transform: rotate(-6deg) scale(1.05);
    box-shadow: 0 14px 36px rgba(30, 91, 168, 0.40);
}
.course-card:hover .course-icon { transform: rotate(8deg) scale(1.05); }
.course-card .badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 5px 12px;
    background: rgba(30, 91, 168, 0.08);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: .65rem;
    font-weight: 500;
    color: var(--brand-2);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.course-card h3 { margin-bottom: 12px; font-size: 1.4rem; }
.course-card .subjects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--hairline);
}
.chip {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .78rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-soft);
}

/* ---------- Faculty Cards ---------- */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.faculty-card {
    padding: 0;
    overflow: hidden;
    text-align: center;
}
.faculty-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-2);
}
.faculty-photo {
    height: 240px;
    position: relative;
    background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
    display: grid;
    place-items: center;
    overflow: hidden;
}
.faculty-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(5, 6, 15, 0.6) 100%);
}
.faculty-initials {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: var(--brand-2);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 500;
    font-variation-settings: 'opsz' 144, 'SOFT' 30;
    box-shadow: 0 8px 28px rgba(31, 107, 198, 0.45);
    transition: transform .6s var(--easing);
    z-index: 1;
}
.faculty-card:hover .faculty-initials { transform: scale(1.08) rotate(-4deg); }
.faculty-photo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    z-index: 1;
    transition: transform .6s var(--easing);
}
.faculty-card:hover .faculty-photo-img { transform: scale(1.06); }

.faculty-body { padding: 24px 22px 26px; }
.faculty-body h3 { margin-bottom: 4px; font-size: 1.2rem; }
.faculty-role {
    color: var(--brand-3);
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.faculty-bio { font-size: .9rem; color: var(--text-soft); }
.faculty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 16px;
}

/* ---------- Catalogue (Toppers) ---------- */
.toppers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.topper-card {
    padding: 28px 22px;
    text-align: center;
    position: relative;
}
.topper-card:hover {
    transform: translateY(-8px) rotateX(4deg);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-2);
}
.topper-rank {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-2);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: .8rem;
    letter-spacing: 0;
    box-shadow: 0 6px 18px rgba(31, 107, 198, 0.45);
}
.topper-photo {
    width: 110px;
    height: 110px;
    margin: 6px auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--indigo), var(--indigo-2));
    display: grid;
    place-items: center;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 800;
    border: 3px solid rgba(245, 196, 81, 0.4);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.35);
    overflow: hidden;
    position: relative;
}
.topper-photo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
}
.topper-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.topper-class { color: var(--text-muted); font-size: .82rem; margin-bottom: 14px; }
.topper-percent {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 400;
    font-variation-settings: 'opsz' 144, 'SOFT' 30;
    color: var(--paper);
    -webkit-text-fill-color: var(--paper);
    line-height: 1;
}
.topper-percent small {
    font-family: var(--font-mono);
    font-size: 1rem;
    opacity: 0.55;
    margin-left: 2px;
    color: var(--paper-soft);
    -webkit-text-fill-color: var(--paper-soft);
}

/* ---------- Resources ---------- */
.res-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}
.res-tab {
    padding: 10px 22px;
    border-radius: 4px;
    border: 1px solid var(--hairline);
    background: transparent;
    color: var(--paper-soft);
    cursor: pointer;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: .72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: all .3s var(--easing);
}
.res-tab:hover { color: var(--paper); border-color: var(--hairline-strong); }
.res-tab.active {
    background: var(--brand-2);
    color: #fff;
    border-color: var(--brand-2);
    box-shadow: 0 6px 22px rgba(31, 107, 198, 0.40);
}

.res-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.res-card {
    padding: 26px 24px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}
.res-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
}
.res-icon {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background: rgba(107, 168, 232, 0.08);
    border: 1px solid var(--hairline-strong);
    display: grid;
    place-items: center;
    color: var(--brand-glow);
    margin-bottom: 16px;
}
.res-card h4 { font-size: 1.05rem; margin-bottom: 6px; line-height: 1.3; }
.res-meta { display: flex; gap: 12px; align-items: center; color: var(--text-muted); font-size: .82rem; margin-top: 14px; }
.res-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-muted); }
.res-card .view-btn {
    position: absolute;
    bottom: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-2);
    color: #fff;
    display: grid;
    place-items: center;
    transform: translateY(8px);
    opacity: 0;
    transition: all .35s var(--easing);
    box-shadow: 0 4px 14px rgba(31, 107, 198, 0.50);
}
.res-card:hover .view-btn { transform: translateY(0); opacity: 1; }

/* ---------- Founder Page ---------- */
.founder-hero {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center;
}
.founder-portrait {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--bg-3), var(--bg-1));
    overflow: hidden;
    box-shadow: var(--shadow-2);
    border: 1px solid var(--border);
}
.founder-portrait::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 0deg, transparent, var(--gold), transparent 35%);
    animation: spinRing 6s linear infinite;
    z-index: 0;
}
.founder-portrait::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: calc(var(--radius-xl) - 4px);
    background: linear-gradient(135deg, var(--bg-3), var(--bg-1));
    z-index: 1;
}
@keyframes spinRing { to { transform: rotate(360deg); } }
.founder-initials {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 9rem;
    font-weight: 800;
    text-shadow: 0 8px 30px rgba(245, 196, 81, 0.3);
}
.founder-img {
    position: relative;
    z-index: 2;
    display: block;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    margin: 6px;
    object-fit: cover;
    object-position: center 18%;
    border-radius: calc(var(--radius-xl) - 6px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
}
.founder-content h1 .name {
    background: linear-gradient(135deg, var(--brand-2), var(--brand-3), #DCEAFD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.timeline {
    position: relative;
    margin-top: 30px;
    padding-left: 32px;
    border-left: 2px solid rgba(245, 196, 81, 0.2);
}
.tl-item {
    position: relative;
    padding: 0 0 32px 24px;
}
.tl-item::before {
    content: "";
    position: absolute;
    left: -41px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-1);
    border: 3px solid var(--gold);
    box-shadow: 0 0 16px rgba(245, 196, 81, 0.5);
}
.tl-year {
    color: var(--brand-3);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: .7rem;
    letter-spacing: 0.20em;
    text-transform: uppercase;
}
.tl-item h4 { margin: 6px 0 8px; font-size: 1.15rem; }

/* ---------- Mission / Vision split ---------- */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
}
.mv-card {
    padding: 40px 36px;
    position: relative;
    overflow: hidden;
}
.mv-card .big-icon {
    position: absolute;
    right: -20px;
    bottom: -30px;
    font-size: 14rem;
    line-height: 1;
    opacity: 0.05;
    pointer-events: none;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
}
.mv-card .label {
    color: var(--brand-2);
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.mv-card h2 {
    margin-bottom: 20px;
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    font-weight: 400;
    font-variation-settings: 'opsz' 96, 'SOFT' 50;
}
.mv-card p { font-size: 1.05rem; line-height: 1.7; }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.ci-card {
    padding: 22px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.ci-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245, 196, 81, 0.18), rgba(245, 196, 81, 0.05));
    border: 1px solid var(--border-strong);
    color: var(--gold);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.ci-card h4 { font-size: .85rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.ci-card p, .ci-card a { font-size: 1rem; color: var(--text); }

.contact-form {
    padding: 38px 36px;
}
.contact-form h3 { margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label { font-size: .82rem; color: var(--text-muted); letter-spacing: 0.04em; }
.form-group input, .form-group select, .form-group textarea {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: .95rem;
    transition: all .3s var(--easing);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(245, 196, 81, 0.05);
    box-shadow: 0 0 0 4px rgba(245, 196, 81, 0.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }

/* ---------- Staff Access ---------- */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.staff-card {
    padding: 28px 26px;
    text-align: center;
    transition: all .4s var(--easing);
}
.staff-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
}
.staff-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.6rem;
}
.staff-icon.sheets { background: linear-gradient(135deg, #34a853, #137333); }
.staff-icon.forms  { background: linear-gradient(135deg, #673ab7, #4527a0); }
.staff-icon.drive  { background: linear-gradient(135deg, #fbbc04, #f57c00); color: #0a0e27; }
.staff-icon.docs   { background: linear-gradient(135deg, #4285f4, #1a73e8); }
.staff-icon.cal    { background: linear-gradient(135deg, #ea4335, #b31412); }
.staff-icon.gmail  { background: linear-gradient(135deg, #ea4335, #d93025); }
.staff-card h4 { margin-bottom: 8px; }
.staff-card p { font-size: .9rem; }
.staff-card .open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    font-size: .85rem;
    color: var(--text);
    transition: all .3s var(--easing);
}
.staff-card .open-btn:hover { background: var(--gold); color: #0a0e27; border-color: var(--gold); }

/* ---------- Floating WhatsApp + Chatbot ---------- */
.float-wa {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    display: grid;
    place-items: center;
    z-index: 90;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
    transition: transform .3s var(--easing);
}
.float-wa:hover { transform: scale(1.08); color: #fff; }
.float-wa-tag {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: var(--brand-1);
    padding: 9px 16px;
    border-radius: 999px;
    white-space: nowrap;
    font-family: var(--font-sans, 'Manrope', sans-serif);
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .01em;
    box-shadow: 0 10px 26px rgba(15,65,128,0.18), 0 1px 0 rgba(255,255,255,0.6) inset;
    pointer-events: none;
}
.float-wa-tag::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 50%;
    width: 10px;
    height: 10px;
    background: #fff;
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 2px -2px 4px -1px rgba(15,65,128,0.05);
}
@media (max-width: 640px) {
    .float-wa-tag { display: none; }
}
.float-wa::before, .float-wa::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.7);
    animation: ripple 2.4s ease-out infinite;
}
.float-wa::after { animation-delay: 1.2s; }
@keyframes ripple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.1); opacity: 0; }
}
.float-wa svg { width: 32px; height: 32px; position: relative; z-index: 1; }

.chatbot-toggle {
    position: fixed;
    left: 22px;
    bottom: 22px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-3));
    color: #0a0e27;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    z-index: 90;
    box-shadow: var(--shadow-gold);
    transition: transform .3s var(--easing);
}
.chatbot-toggle:hover { transform: scale(1.08); }
.chatbot-toggle svg { width: 28px; height: 28px; }
.chatbot-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid var(--bg-0);
    animation: pulse 1.6s ease-in-out infinite;
}

.chatbot {
    position: fixed;
    left: 22px;
    bottom: 92px;
    width: 360px;
    max-width: calc(100vw - 44px);
    height: 540px;
    max-height: calc(100vh - 130px);
    background: #FFFFFF;
    border: 1px solid var(--hairline);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(15, 65, 128, 0.25), 0 1px 0 rgba(255,255,255,0.5) inset;
    display: none;
    flex-direction: column;
    z-index: 95;
    overflow: hidden;
    animation: chatbotIn .35s var(--easing);
    color: var(--text);
}
.chatbot.open { display: flex; }
@keyframes chatbotIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.cb-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #0F4180 0%, #1E5BA8 100%);
    border-bottom: 1px solid var(--hairline);
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
}
.cb-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: #fff;
    color: var(--brand-1);
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-weight: 700; font-size: 1.15rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.cb-header h4 { font-size: 1rem; margin: 0; color: #fff; }
.cb-header small { color: rgba(255,255,255,0.85); font-size: .78rem; }
.cb-header small::before {
    content: "•"; color: #4ade80; margin-right: 4px; font-size: 1.4rem; line-height: 0;
}
.cb-close {
    margin-left: auto;
    background: rgba(255,255,255,0.15);
    border: 0;
    width: 32px; height: 32px;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: grid; place-items: center;
}
.cb-close:hover { background: rgba(255,255,255,0.28); }

.cb-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #F7FAFD;
}
.cb-msg {
    max-width: 85%;
    padding: 11px 15px;
    border-radius: 16px;
    font-size: .92rem;
    line-height: 1.5;
    animation: msgIn .3s var(--easing);
    color: var(--text);
    word-wrap: break-word;
}
.cb-msg a { color: var(--brand-2); text-decoration: underline; }
.cb-msg a:hover { color: var(--brand-1); }
.cb-msg strong { color: var(--text); }
@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.cb-msg.bot {
    background: #FFFFFF;
    border: 1px solid var(--hairline);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 6px rgba(15, 65, 128, 0.06);
}
.cb-msg.user {
    background: var(--brand-2);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}
.cb-msg.user a { color: #fff; }
.cb-msg.user strong { color: #fff; }
.cb-typing {
    display: flex;
    gap: 4px;
    padding: 13px 17px;
    background: #FFFFFF;
    border: 1px solid var(--hairline);
    align-self: flex-start;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 6px rgba(15, 65, 128, 0.06);
}
.cb-typing span {
    width: 7px;
    height: 7px;
    background: var(--brand-2);
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
}
.cb-typing span:nth-child(2) { animation-delay: .15s; }
.cb-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
    0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-4px); }
}

.cb-quick {
    padding: 10px 14px 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px solid var(--hairline);
    background: #FFFFFF;
}
.cb-chip {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--hairline-strong);
    background: rgba(30, 91, 168, 0.06);
    color: var(--brand-2);
    font-size: .78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .25s var(--easing);
}
.cb-chip:hover { background: var(--brand-2); color: #fff; border-color: var(--brand-2); }

.cb-input {
    padding: 12px 14px 14px;
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--hairline);
    background: #FFFFFF;
}
.cb-input input {
    flex: 1;
    padding: 12px 16px;
    background: #F2F6FC;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    color: var(--text);
    font-family: inherit;
    font-size: .92rem;
}
.cb-input input::placeholder { color: var(--text-muted); }
.cb-input input:focus { outline: none; border-color: var(--brand-2); background: #fff; box-shadow: 0 0 0 3px rgba(30, 91, 168, 0.10); }
.cb-input button {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--brand-2);
    color: #fff;
    border: 0;
    cursor: pointer;
    display: grid; place-items: center;
    transition: transform .25s var(--easing), background .25s var(--easing);
    box-shadow: 0 6px 16px rgba(30, 91, 168, 0.35);
}
.cb-input button:hover { background: var(--brand-3); transform: scale(1.05); }

/* ---------- Footer — full brand-blue, refined editorial ---------- */
.footer {
    position: relative;
    padding: 90px 0 30px;
    margin-top: 80px;
    color: rgba(255,255,255,0.85);
    background:
        radial-gradient(60% 80% at 80% 10%, rgba(74,144,226,0.30), transparent 70%),
        radial-gradient(50% 70% at 10% 100%, rgba(15,65,128,0.50), transparent 70%),
        linear-gradient(135deg, #0B345E 0%, #0F4180 50%, #1E5BA8 100%);
    overflow: hidden;
    z-index: 2;
    isolation: isolate;
}
/* Brand-blue accent line at the top of the footer */
.footer-accent {
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--brand-3) 35%, #BCD9F9 50%, var(--brand-3) 65%, transparent 100%);
}
/* Subtle blueprint grid */
.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 30% 50%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 50%, #000 30%, transparent 80%);
}
.footer .container { position: relative; z-index: 1; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

/* BRAND column */
.footer-brand { max-width: 380px; }
.footer-logo {
    display: block;
    width: 230px;
    max-width: 100%;
    margin-bottom: 22px;
    background: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(0,0,0,0.25);
}
.footer-tag {
    color: rgba(255,255,255,0.78);
    font-size: .96rem;
    line-height: 1.65;
    margin-bottom: 24px;
}
.footer-tag strong { color: #fff; font-weight: 600; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.20);
    display: grid; place-items: center;
    color: #fff;
    transition: all .25s var(--easing);
}
.footer-social a:hover {
    background: #fff;
    color: var(--brand-1);
    border-color: #fff;
    transform: translateY(-3px);
}

/* COLUMN headings + links */
.footer h5 {
    font-family: var(--font-mono);
    font-size: .68rem;
    color: #BCD9F9;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 22px;
    font-weight: 500;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.footer-links a, .footer-links span {
    color: rgba(255,255,255,0.78);
    font-size: .95rem;
    line-height: 1.5;
    transition: color .25s var(--easing), padding .25s var(--easing);
}
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-links li { display: block; }

/* Contact column — icon + line */
.footer-contact .ico-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255,255,255,0.78);
    font-size: .92rem;
}
.footer-contact .ico-line svg {
    flex-shrink: 0;
    color: #BCD9F9;
    margin-top: 3px;
}
.footer-contact .ico-line a:hover { padding-left: 0; }

/* Bottom row */
.footer-bottom {
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    color: rgba(255,255,255,0.55);
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}
.footer-motto {
    font-family: var(--font-display);
    font-style: italic;
    font-size: .92rem;
    letter-spacing: 0;
    text-transform: none;
    color: #BCD9F9;
    font-weight: 400;
}
.footer-admin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: #BCD9F9;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: all .25s var(--easing);
}
.footer-admin:hover {
    background: #fff;
    color: var(--brand-1);
    border-color: #fff;
}

/* =========================================================
   TOPPER CARDS v2 — premium achievement profiles
   ========================================================= */
.toppers-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
}

.topper-card-v2 {
    position: relative;
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-1);
    transition: transform .5s var(--easing), box-shadow .5s var(--easing), border-color .5s var(--easing);
    display: flex;
    flex-direction: column;
}
.topper-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-3);
    border-color: var(--border-strong);
}

/* Photo top — full-width, square, with shade ramp */
.topper-card-v2 .t-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
    overflow: hidden;
}
.topper-card-v2 .t-photo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: transform .8s var(--easing);
}
.topper-card-v2:hover .t-photo-img { transform: scale(1.08); }
.topper-card-v2 .t-photo-initials {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 500;
    font-variation-settings: 'opsz' 144, 'SOFT' 30;
    letter-spacing: -0.04em;
}
.topper-card-v2 .t-photo-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(15, 65, 128, 0.55) 100%);
    pointer-events: none;
}

/* Rank badge — top-left of photo, color-coded */
.topper-card-v2 .t-rank {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.95);
    color: var(--brand-1);
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    box-shadow: 0 6px 18px rgba(0,0,0,0.20);
    backdrop-filter: blur(6px);
}
.topper-card-v2 .t-rank-gold {
    background: linear-gradient(135deg, #FFE69C 0%, #E8B968 100%);
    color: #6B4906;
    box-shadow: 0 6px 22px rgba(232, 185, 104, 0.50);
}
.topper-card-v2 .t-rank-silver {
    background: linear-gradient(135deg, #F0F2F5 0%, #B8BFC9 100%);
    color: #3B414B;
}
.topper-card-v2 .t-rank-bronze {
    background: linear-gradient(135deg, #F0C9A8 0%, #C68B5C 100%);
    color: #5A3416;
}
.topper-card-v2 .t-rank svg { width: 12px; height: 12px; }

/* Body — content beneath photo */
.topper-card-v2 .t-body {
    padding: 22px 24px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.topper-card-v2 .t-class {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-2);
    margin-bottom: 8px;
}
.topper-card-v2 .t-name {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.6rem;
    font-weight: 500;
    font-variation-settings: 'opsz' 96, 'SOFT' 70;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 14px;
    line-height: 1.1;
}

/* Score — big serif percent with brand blue */
.topper-card-v2 .t-score {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--hairline);
}
.topper-card-v2 .t-percent {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1;
    font-variation-settings: 'opsz' 144, 'SOFT' 30;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}
.topper-card-v2 .t-pct {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--brand-3);
    margin-left: 1px;
    font-variation-settings: 'opsz' 72, 'SOFT' 50;
}
.topper-card-v2 .t-year {
    margin-left: auto;
    align-self: center;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* TOP achiever — gold accent on the whole card */
.topper-card-v2.is-top {
    border-color: rgba(232, 185, 104, 0.40);
    box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 14px 38px rgba(232, 185, 104, 0.20), 0 2px 8px rgba(15, 65, 128, 0.08);
}
.topper-card-v2.is-top .t-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(232,185,104,0.10) 0%, transparent 30%);
    z-index: 1;
}
.topper-card-v2.is-top .t-percent {
    background: linear-gradient(135deg, #E8B968, var(--brand-1));
    -webkit-background-clip: text;
    background-clip: text;
}

@media (max-width: 600px) {
    .toppers-grid-v2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .topper-card-v2 .t-name { font-size: 1.4rem; }
    .topper-card-v2 .t-percent { font-size: 2.6rem; }
}

@media (max-width: 980px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-brand { grid-column: span 2; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------- Reveal animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .9s var(--easing), transform .9s var(--easing);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--easing), transform .8s var(--easing);
}
.reveal-stagger.in > * {
    opacity: 1;
    transform: translateY(0);
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: .04s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .20s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .28s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .36s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .44s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: .52s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: .60s; }

/* ---------- Marquee for trust strip ---------- */
.marquee {
    overflow: hidden;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    background: transparent;
    padding: 22px 0;
}
.marquee-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: marquee 38s linear infinite;
    font-family: var(--font-mono);
    color: var(--paper-muted);
    font-size: .78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    align-items: center;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 60px; white-space: nowrap; }
.marquee-track .dot {
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--brand-3);
    box-shadow: 0 0 8px var(--brand-3);
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- Page Hero (sub pages) ---------- */
.page-hero {
    padding: calc(var(--nav-h) + 100px) 0 80px;
    text-align: center;
    position: relative;
}
.page-hero h1 {
    margin: 22px 0 28px;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: 1.04;
}
.page-hero p {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.18rem;
    line-height: 1.6;
    color: var(--text-soft);
}

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
    width: 100%;
    max-width: 720px;
    max-height: 86vh;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: chatbotIn .35s var(--easing);
}
.modal-head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--hairline);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.modal-head h4 { margin: 0; font-size: 1.1rem; }

/* Close button — visible on the light modal background */
.modal-head .cb-close {
    background: var(--bg-2);
    color: var(--text);
    border: 1px solid var(--hairline);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all .25s var(--easing);
}
.modal-head .cb-close:hover {
    background: var(--brand-2);
    color: #fff;
    border-color: var(--brand-2);
    transform: rotate(90deg);
}
.modal-head .cb-close svg { width: 18px; height: 18px; stroke-width: 2.4; }
.modal-body {
    padding: 30px;
    overflow-y: auto;
    line-height: 1.7;
}
.modal-body h3 { margin: 18px 0 10px; color: var(--gold); }
.modal-watermark {
    text-align: center;
    color: var(--text-muted);
    font-size: .8rem;
    padding: 16px;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-stage { margin: 0 auto; max-width: 460px; }
    .founder-hero { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    section { padding: 80px 0; }
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 12px;
        right: 12px;
        background: rgba(10, 14, 39, 0.97);
        backdrop-filter: blur(20px);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 14px;
        gap: 4px;
    }
    .nav-links.open a { width: 100%; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .hero-stat:last-child { grid-column: span 2; }
    .chatbot { width: calc(100vw - 30px); left: 15px; bottom: 88px; }
    .float-wa, .chatbot-toggle { width: 54px; height: 54px; }
    .float-wa svg { width: 28px; height: 28px; }
    .chatbot-toggle svg { width: 24px; height: 24px; }
    .modal-body { padding: 20px; }
}

/* ---------- Utilities ---------- */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 14px; }
.mt-4 { margin-top: 28px; }
.flex-center { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 8px;
}

/* =========================================================
   EDITORIAL FLOURISHES — atmosphere, depth, refinement
   ========================================================= */

/* ---------- Very subtle paper grain (light theme) ---------- */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10  0 0 0 0 0.25  0 0 0 0 0.50  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.25;
}

/* ---------- Section head — refined editorial composition ---------- */
.section-head { position: relative; }
.section-head h2 {
    font-style: normal;
}
.section-head .eyebrow { margin-bottom: 22px; }

/* ---------- Editorial section number (use class="numbered") ---------- */
.numbered { counter-reset: stcsection 0; }
.numbered > section { counter-increment: stcsection; }

/* ---------- Drop cap utility ---------- */
.dropcap::first-letter {
    font-family: var(--font-display);
    font-variation-settings: 'opsz' 144, 'SOFT' 30;
    float: left;
    font-size: 4.6em;
    line-height: 0.85;
    margin: 0.08em 0.12em 0 0;
    color: var(--brand-3);
    font-weight: 400;
}

/* ---------- Hairline rule with diamond accent ---------- */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 50px auto;
    color: var(--brand-3);
}
.divider::before, .divider::after {
    content: "";
    height: 1px;
    width: 80px;
    background: var(--hairline-strong);
}

/* ---------- Pull-quote / blockquote ---------- */
.pull-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-variation-settings: 'opsz' 144, 'SOFT' 100;
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    line-height: 1.3;
    color: var(--paper);
    max-width: 720px;
    margin: 30px auto;
    padding: 30px 40px;
    border-left: 2px solid var(--brand-3);
    text-align: left;
    position: relative;
}
.pull-quote::before {
    content: "\201C";
    position: absolute;
    top: -10px;
    left: 18px;
    font-size: 4rem;
    color: var(--brand-3);
    line-height: 1;
    opacity: 0.5;
    font-family: var(--font-display);
}

/* ---------- Course / feature card hover refinement ---------- */
.feature:hover, .course-card:hover {
    border-color: var(--border-strong) !important;
    box-shadow: var(--shadow-2), 0 0 0 1px rgba(30, 91, 168, 0.20) !important;
    transform: translateY(-6px);
}

/* ---------- Subject chip, tag — editorial mono ---------- */
.chip {
    padding: 5px 11px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--bg-2);
    border: 1px solid var(--hairline);
    color: var(--text-soft);
}

/* ---------- Stage card titles — pull from gold to brand ---------- */
.fc-tag, .fc-1 .lbl, .fc-2 .info small {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: .65rem !important;
    color: var(--brand-3) !important;
}

/* ---------- Page hero — slightly more theatrical ---------- */
.page-hero h1 {
    margin-top: 28px;
    margin-bottom: 28px;
}
.page-hero .eyebrow {
    margin-bottom: 8px;
}

/* ---------- Brand mark in nav scroll-down + utility classes ---------- */
.brand-mark {
    background: var(--brand-2);
    color: #fff;
}

/* =========================================================
   HERO — split layout (text panel + photo card)
   ========================================================= */
.hero-split {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--nav-h) + 50px) 0 80px;
    color: #fff;
    background:
        radial-gradient(60% 80% at 80% 20%, rgba(74,144,226,0.40), transparent 70%),
        radial-gradient(50% 70% at 10% 80%, rgba(15,65,128,0.55), transparent 70%),
        linear-gradient(135deg, #0B345E 0%, #0F4180 35%, #1E5BA8 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}
/* subtle blueprint grid pattern */
.hero-split::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, #000 30%, transparent 80%);
}

.hero-split .container { position: relative; z-index: 2; width: 100%; }
.hero-split-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-split h1, .hero-split h2, .hero-split h3, .hero-split h4 { color: #fff; }
.hero-split p { color: rgba(255,255,255,0.90); }
.hero-split .eyebrow { color: #BCD9F9; }
.hero-split .eyebrow::before { background: #BCD9F9; }
.hero-split strong { color: #fff; }
.hero-split em { color: #fff; }

.hero-split .gradient-text {
    font-style: normal;
    font-variation-settings: 'opsz' 144, 'SOFT' 30;
    background: linear-gradient(90deg, #FFFFFF 0%, #BCD9F9 45%, #FFFFFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-split .hero-cta .btn-primary {
    background: #fff;
    color: var(--brand-1);
    box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 12px 38px rgba(0,0,0,0.30);
}
.hero-split .hero-cta .btn-primary:hover { background: #F2F6FC; color: var(--brand-1); }
.hero-split .hero-cta .btn-ghost { border-color: rgba(255,255,255,0.45); color: #fff; }
.hero-split .hero-cta .btn-ghost:hover { background: rgba(255,255,255,0.10); color: #fff; border-color: #fff; }

.hero-split .hero-stat { border-top-color: rgba(255,255,255,0.30); }
.hero-split .hero-stat .num { color: #fff; -webkit-text-fill-color: #fff; }
.hero-split .hero-stat .label { color: rgba(255,255,255,0.78); }

/* ========== Photo frame (right column) ========== */
.hero-photo-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;     /* portrait — most of your marketing photos are portrait */
    max-height: 78vh;
    border-radius: 22px;
    overflow: hidden;
    background: #061226;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.10) inset,
        0 30px 80px rgba(0,0,0,0.45),
        0 14px 40px rgba(15,65,128,0.40);
    transform: perspective(1400px) rotateY(-3deg) rotateX(2deg);
    transition: transform .8s var(--easing);
}
.hero-photo-frame:hover { transform: perspective(1400px) rotateY(-1deg) rotateX(1deg); }

.hero-slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s var(--easing);
}
.hero-slide.is-active { opacity: 1; }

/* Blurred bg fill — same image scaled up + blurred, fills any slight gap
   when the photo's aspect doesn't exactly match the 4:5 frame.        */
.hero-slide-bg {
    position: absolute;
    inset: -30px;
    background-size: cover;
    background-position: center;
    filter: blur(36px) brightness(0.70) saturate(1.05);
    transform: scale(1.15);
    z-index: 0;
}
/* Foreground photo — uses `cover` for UNIFORM size across all slides.
   Slightly different aspect ratios still fit cleanly; the blurred bg
   smooths any tiny mismatch.                                         */
.hero-slide-fg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    transform: scale(1);
    transition: transform 9s var(--easing);
}
.hero-slide.is-active .hero-slide-fg { transform: scale(1.05); }   /* gentle ken-burns */

/* Decorative ribbon over the photo (subtle) */
.hero-photo-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(11,52,94,0.55) 100%),
        linear-gradient(0deg, transparent 88%, rgba(255,255,255,0.10) 100%);
    z-index: 2;
}

/* Dots — pinned inside the card */
.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 3;
}
.hero-dots button {
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.35);
    border: 0;
    cursor: pointer;
    transition: background .25s var(--easing), width .25s var(--easing);
}
.hero-dots button.is-active { background: #fff; width: 38px; }

/* Fallback (no photos yet) — show the logo big in the card */
.hero-split.no-photos .hero-photo-frame {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #E6EEF8 100%);
}
.hero-split.no-photos .hero-photo-frame::after { display: none; }
.hero-split.no-photos .hero-photo-frame::before {
    content: "";
    width: 70%;
    aspect-ratio: 991 / 532;
    background: url('../assets/logo.png') center / contain no-repeat;
}

/* ===== Mobile / tablet stack ===== */
@media (max-width: 980px) {
    .hero-split-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-photo-frame {
        aspect-ratio: 4 / 3;
        max-height: 60vh;
        transform: none;
    }
    .hero-photo-frame:hover { transform: none; }
}

/* Scrollbar (light) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-2); }

/* =========================================================
   ADMIN PANEL · LOGIN · DASHBOARD
   ========================================================= */

/* ---------- Login / Auth pages ---------- */
.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: calc(var(--nav-h) + 40px) 20px 60px;
}
.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 44px 38px;
}
.auth-card h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}
.auth-card .lead {
    color: var(--text-soft);
    font-size: .95rem;
    margin-bottom: 28px;
}
.auth-tabs {
    display: flex;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px;
    margin-bottom: 24px;
}
.auth-tabs button {
    flex: 1;
    padding: 9px 12px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: var(--text-soft);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s var(--easing);
    letter-spacing: 0.04em;
}
.auth-tabs button.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-3));
    color: #0a0e27;
    box-shadow: var(--shadow-gold);
}
.auth-msg {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: .88rem;
    margin-top: 14px;
    display: none;
}
.auth-msg.error  { display: block; background: rgba(239,68,68,0.10); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.auth-msg.info   { display: block; background: rgba(99,102,241,0.10); border: 1px solid rgba(99,102,241,0.3); color: #c7d2fe; }
.auth-msg.success { display: block; background: rgba(34,197,94,0.10); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }

.auth-help {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    font-size: .85rem;
    color: var(--text-muted);
    text-align: center;
}
.auth-help code {
    background: rgba(245,196,81,0.10);
    color: var(--gold);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: .85em;
}

/* ---------- Admin shell ---------- */
.admin-shell {
    padding: calc(var(--nav-h) + 30px) 0 80px;
}
.admin-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}
.admin-head h1 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin: 4px 0 4px;
}
.admin-head .who {
    color: var(--text-muted);
    font-size: .92rem;
}
.admin-head .who strong { color: var(--gold); }

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    padding: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.admin-tabs button {
    padding: 10px 18px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    color: var(--text-soft);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s var(--easing);
}
.admin-tabs button:hover { color: var(--gold); }
.admin-tabs button.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-3));
    color: #0a0e27;
    box-shadow: var(--shadow-gold);
}

.admin-pane { display: none; }
.admin-pane.active { display: block; animation: paneIn .4s var(--easing); }
@keyframes paneIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Stat cards ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}
.stat-card {
    padding: 22px 20px;
    position: relative;
    overflow: hidden;
}
.stat-card .num {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), var(--gold-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.stat-card .lbl {
    color: var(--text-muted);
    font-size: .85rem;
    margin-top: 8px;
}
.stat-card .icon-bg {
    position: absolute;
    right: -12px;
    bottom: -16px;
    color: rgba(245,196,81,0.06);
    pointer-events: none;
}

/* ---------- Toolbar / search ---------- */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    align-items: center;
    justify-content: space-between;
}
.toolbar .left, .toolbar .right { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search-input {
    flex: 1;
    min-width: 220px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-family: inherit;
    font-size: .9rem;
}
.search-input:focus { outline: none; border-color: var(--gold); }

.filter-select {
    padding: 12px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: .9rem;
    cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--gold); }

/* ---------- Data table ---------- */
.data-table-wrap {
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.025);
    backdrop-filter: blur(10px);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}
.data-table th, .data-table td {
    padding: 14px 16px;
    text-align: left;
    font-size: .9rem;
    border-bottom: 1px solid var(--border);
}
.data-table th {
    background: rgba(0,0,0,0.25);
    color: var(--gold);
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: sticky;
    top: 0;
    z-index: 2;
}
.data-table tbody tr {
    transition: background .25s var(--easing);
}
.data-table tbody tr:hover { background: rgba(245,196,81,0.04); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .row-actions { display: flex; gap: 6px; }
.data-table .row-actions button {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-soft);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all .25s var(--easing);
}
.data-table .row-actions button:hover { color: var(--gold); border-color: var(--gold); }
.data-table .row-actions .danger:hover { color: #fca5a5; border-color: #ef4444; }

.row-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--indigo), var(--indigo-2));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
    object-fit: cover;
    overflow: hidden;
    position: relative;
}
.row-photo img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.row-name { display: flex; align-items: center; gap: 12px; }
.row-name strong { display: block; }
.row-name small { color: var(--text-muted); font-size: .78rem; }

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.tag.gold   { background: rgba(245,196,81,0.14); color: var(--gold); border: 1px solid rgba(245,196,81,0.3); }
.tag.green  { background: rgba(34,197,94,0.12);  color: #86efac;     border: 1px solid rgba(34,197,94,0.3); }
.tag.red    { background: rgba(239,68,68,0.12);  color: #fca5a5;     border: 1px solid rgba(239,68,68,0.3); }
.tag.indigo { background: rgba(99,102,241,0.14); color: #c7d2fe;     border: 1px solid rgba(99,102,241,0.3); }
.tag.gray   { background: rgba(255,255,255,0.05); color: var(--text-soft); border: 1px solid var(--border); }

.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}
.empty-state svg { color: var(--gold); margin-bottom: 12px; }

/* ---------- Modal form ---------- */
.modal.modal-lg { max-width: 880px; }
/* Near-fullscreen viewer variant — for the Resources PDF / image previews.
   Grows to fill nearly the entire viewport so a whole page of a PDF is
   readable without squinting. The .modal-body is a flex column so an
   iframe child can grow to consume the remaining height. */
.modal.modal-viewer {
    max-width: min(1400px, 96vw);
    width: 96vw;
    max-height: 96vh;
    height: 96vh;
}
.modal.modal-viewer .modal-body {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    min-height: 0;
}
.modal.modal-viewer .modal-body iframe {
    flex: 1;
    width: 100%;
    height: auto;
    min-height: 0;
}

/* Viewer header: metadata + zoom toolbar + View-only pill */
.viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    flex-shrink: 0;
}
.viewer-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 65, 128, 0.06);
    border: 1px solid rgba(31, 107, 198, 0.18);
    border-radius: 999px;
    padding: 4px;
}
.viewer-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: var(--brand-1, #0F4180);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(15,65,128,0.14);
    transition: background .2s ease, transform .2s ease;
}
.viewer-btn:hover { background: var(--brand-2, #1F6BC6); color: #fff; transform: scale(1.06); }
.viewer-btn:active { transform: scale(0.94); }
.viewer-btn-text {
    width: auto;
    padding: 0 12px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
}
.viewer-zoom-label {
    min-width: 44px;
    text-align: center;
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: .78rem;
    color: var(--text, #1A2332);
    font-weight: 600;
    user-select: none;
}

/* Scroll container that holds the (possibly zoomed) content.
   Uses CSS `zoom` (Chrome / Edge / Safari and Firefox 126+) so scroll
   space grows naturally with zoom — no transform / layout gymnastics. */
.viewer-frame {
    flex: 1;
    min-height: 0;
    overflow: auto;
    background: #f4f6fb;
    border-radius: 8px;
    position: relative;
    -webkit-overflow-scrolling: touch;
}
.viewer-scale {
    zoom: var(--z, 1);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: zoom .15s ease;
}
.viewer-scale img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: auto;
}
.viewer-scale iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #f4f6fb;
}

@media (max-width: 640px) {
    .modal.modal-viewer {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    .modal.modal-viewer .modal-body { padding: 12px 14px; }
    .viewer-toolbar { padding: 3px; gap: 4px; }
    .viewer-btn { width: 28px; height: 28px; }
    .viewer-btn-text { padding: 0 10px; font-size: .74rem; }
    .viewer-zoom-label { min-width: 38px; font-size: .72rem; }
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}
.form-grid .full { grid-column: span 2; }
.form-section-title {
    grid-column: span 2;
    font-size: .8rem;
    color: var(--gold);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}
.form-section-title:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

.toggle-row {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(245,196,81,0.06);
    border: 1px solid rgba(245,196,81,0.20);
    border-radius: 12px;
}
.toggle-row label { flex: 1; font-size: .9rem; }
.switch {
    width: 46px; height: 26px;
    background: rgba(255,255,255,0.10);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .3s var(--easing);
}
.switch::after {
    content: "";
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform .3s var(--easing);
}
.switch.on { background: linear-gradient(135deg, var(--gold), var(--gold-3)); }
.switch.on::after { transform: translateX(20px); }

.photo-uploader {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 16px;
}
.photo-uploader .preview {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
    border: 2px dashed var(--border-strong);
    display: grid;
    place-items: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    overflow: hidden;
    flex-shrink: 0;
}
.photo-uploader .preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-uploader label {
    padding: 10px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-size: .85rem;
    transition: all .25s var(--easing);
}
.photo-uploader label:hover { border-color: var(--gold); color: var(--gold); }
.photo-uploader input { display: none; }

.modal-foot {
    padding: 16px 22px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(0,0,0,0.2);
}

/* ---------- Student dashboard ---------- */
.student-hero {
    padding: 36px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 30px;
}
.student-hero .avatar-xl {
    width: 130px; height: 130px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-3));
    color: #0a0e27;
    display: grid;
    place-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 800;
    border: 4px solid rgba(245,196,81,0.4);
    box-shadow: var(--shadow-gold);
    overflow: hidden;
}
.student-hero .avatar-xl img { width: 100%; height: 100%; object-fit: cover; }
.student-hero h1 { margin-bottom: 6px; }
.student-hero .meta-row { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-soft); font-size: .92rem; margin-top: 10px; }
.student-hero .meta-row span { display: inline-flex; align-items: center; gap: 6px; }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    padding: 24px;
}
.info-cell {
    padding: 14px 16px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.025);
    border-radius: 12px;
}
.info-cell .k { font-size: .72rem; color: var(--text-muted); letter-spacing: 0.14em; text-transform: uppercase; }
.info-cell .v { margin-top: 5px; font-size: 1rem; color: var(--text); word-break: break-word; }

.subjects-pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 24px;
}
.subject-pill {
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245,196,81,0.12), rgba(245,196,81,0.04));
    border: 1px solid rgba(245,196,81,0.30);
    color: var(--gold);
    font-weight: 600;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gate-screen {
    min-height: 60vh;
    display: grid;
    place-items: center;
    padding: 80px 20px;
}
.gate-card {
    max-width: 520px;
    text-align: center;
    padding: 50px 36px;
}
.gate-card .icon-circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245,196,81,0.18), rgba(245,196,81,0.04));
    border: 1px solid var(--border-strong);
    color: var(--gold);
    display: grid;
    place-items: center;
    margin: 0 auto 24px;
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 760px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: span 1; }
    .form-section-title { grid-column: span 1; }
    .toggle-row, .photo-uploader { grid-column: span 1; }
    .student-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .student-hero .meta-row { justify-content: center; }
    .auth-card { padding: 36px 26px; }
}

/* =========================================================
   Wave 2 — Hero tagline + new content sections
   ========================================================= */

/* Hero tagline + subtext (between brand and CTAs) */
.hero-split .hero-tagline {
    font-family: 'Fraunces', 'Playfair Display', serif;
    font-variation-settings: 'opsz' 144, 'SOFT' 80;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.35rem, 2.1vw, 1.7rem);
    color: #BCD9F9;
    margin: 14px 0 12px;
    line-height: 1.25;
}
.hero-split .hero-subtext {
    font-size: clamp(.98rem, 1.1vw, 1.08rem);
    color: rgba(255,255,255,0.92);
    max-width: 520px;
    line-height: 1.6;
    margin: 0;
}

/* Info-split section (Multimedia / Expert Teachers / etc.)
   Large icon on the left, rich copy on the right. Reverse variant flips. */
.info-split {
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 56px;
    align-items: center;
    padding: 56px 48px;
    border-radius: var(--radius-xl, 24px);
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(74,144,226,0.07), transparent 60%),
        linear-gradient(135deg, rgba(255,255,255,0.85), rgba(245,249,255,0.85));
    border: 1px solid rgba(74,144,226,0.18);
    box-shadow: 0 24px 64px rgba(15,65,128,0.08);
}
.info-split-reverse { grid-template-columns: 1fr minmax(180px, 240px); }
.info-split-reverse .info-split-icon { order: 2; }
.info-split-reverse .info-split-copy { order: 1; }

.info-split-icon {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 220px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-1, #0F4180), var(--brand-3, #4A90E2));
    color: #fff;
    box-shadow: 0 18px 48px rgba(15,65,128,0.32), inset 0 -8px 24px rgba(0,0,0,0.10);
}
.info-split-icon svg { width: 56%; height: 56%; }

.info-split-copy .eyebrow { margin-bottom: 12px; }
.info-split-copy h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    line-height: 1.18;
    margin-bottom: 18px;
}
.info-split-copy p {
    font-size: 1.02rem;
    line-height: 1.72;
    color: var(--text-soft, #4A5762);
    max-width: 640px;
    margin: 0;
}

@media (max-width: 860px) {
    .info-split, .info-split-reverse {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 40px 28px;
        text-align: center;
    }
    .info-split-reverse .info-split-icon { order: 0; }
    .info-split-reverse .info-split-copy { order: 1; }
    .info-split-icon { max-width: 140px; justify-self: center; }
    .info-split-copy p { margin: 0 auto; }
}

/* Founder prose block (free-flowing paragraphs under Education section) */
.founder-prose p {
    font-size: 1.05rem;
    line-height: 1.78;
    color: var(--text, #1A2332);
    margin-bottom: 16px;
}
.founder-prose p:last-child { margin-bottom: 0; }
.founder-prose strong { color: var(--brand-1, #0F4180); }

/* Plain feature cards (used in About — skill / qualification lists) */
.feature.glass:not(.tilt) {
    padding: 22px 24px;
    text-align: left;
    transition: transform .25s var(--easing, ease), box-shadow .25s var(--easing, ease);
}
.feature.glass:not(.tilt):hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(15,65,128,0.12);
}
.feature.glass:not(.tilt) h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text, #1A2332);
}

/* =========================================================
   Tinted glass card variants — same visual family as .founder-quote
   Applied broadly to mv-card and feature grids for a unified
   "branded glass" look across the site.
   ========================================================= */

/* Shared tinted treatment — used by both mv-card-tinted and feature-tinted */
.mv-card.mv-card-tinted,
.feature.feature-tinted {
    background: linear-gradient(135deg, rgba(31,107,198,0.10), rgba(74,144,226,0.04));
    border: 1px solid rgba(74,144,226,0.22);
    border-left: 4px solid var(--brand-2, #1E5BA8);
    box-shadow: 0 16px 44px rgba(15,65,128,0.10);
    transition: transform .3s var(--easing, ease), box-shadow .3s var(--easing, ease);
    position: relative;
    overflow: hidden;
}
.mv-card.mv-card-tinted:hover,
.feature.feature-tinted:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 56px rgba(15,65,128,0.16);
}
.mv-card.mv-card-tinted .label,
.feature.feature-tinted .label {
    color: var(--brand-1, #0F4180);
    font-weight: 700;
}
/* Decorative blue glow blob in the top-right corner */
.mv-card.mv-card-tinted::before,
.feature.feature-tinted::before {
    content: "";
    position: absolute;
    top: 18px;
    right: 22px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74,144,226,0.18), transparent 70%);
    pointer-events: none;
}
/* Feature-tinted with an icon — slightly tint the icon background to match */
.feature.feature-tinted .icon {
    background: linear-gradient(135deg, rgba(15,65,128,0.10), rgba(74,144,226,0.06));
    color: var(--brand-1, #0F4180);
}

/* Founder's message — large pull quote */
.founder-quote {
    max-width: 880px;
    margin: 0 auto;
    padding: 64px 56px;
    border-radius: var(--radius-xl, 24px);
    background: linear-gradient(135deg, rgba(31,107,198,0.08), rgba(74,144,226,0.04));
    border: 1px solid rgba(74,144,226,0.20);
    border-left: 5px solid var(--brand-2, #1E5BA8);
    text-align: center;
    position: relative;
    box-shadow: 0 24px 64px rgba(15,65,128,0.10);
}
.founder-quote::before {
    content: "\201C";
    position: absolute;
    top: 8px;
    left: 28px;
    font-family: 'Fraunces', 'Playfair Display', serif;
    font-size: 8rem;
    line-height: 1;
    color: rgba(31,107,198,0.18);
    pointer-events: none;
}
.founder-quote .eyebrow { display: block; margin-bottom: 20px; }
.founder-quote blockquote {
    font-family: 'Fraunces', 'Playfair Display', serif;
    font-variation-settings: 'opsz' 144, 'SOFT' 50;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1.55;
    color: var(--text, #1A2332);
    font-weight: 500;
    margin: 0 0 22px;
    padding: 0;
    quotes: none;
}
.founder-quote cite {
    display: block;
    font-style: normal;
    font-size: .92rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--brand-1, #0F4180);
    font-weight: 700;
}
@media (max-width: 640px) {
    .founder-quote { padding: 44px 28px; }
    .founder-quote::before { font-size: 5rem; left: 16px; top: 4px; }
}

/* =========================================================
   Toppers marquee — circular avatars auto-scrolling right→left.
   Renders each topper twice for a seamless infinite loop.
   Admin can add as many toppers as they want — marquee just
   keeps scrolling. Pauses on hover so viewers can read details.
   ========================================================= */
.toppers-marquee {
    overflow: hidden;
    position: relative;
    padding: 40px 0 20px;
    /* Soft fade at both ends so items enter/exit smoothly */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black 6%, black 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, black 6%, black 94%, transparent 100%);
}
.toppers-marquee-track {
    display: flex;
    gap: 70px;
    width: max-content;
    animation: toppersScroll 55s linear infinite;
}
.toppers-marquee:hover .toppers-marquee-track {
    animation-play-state: paused;
}
@keyframes toppersScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Single circular topper item */
.topper-circle {
    flex-shrink: 0;
    width: 380px;
    text-align: center;
}
.t-circle-photo {
    position: relative;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 22px;
    background: linear-gradient(135deg, var(--brand-1, #0F4180), var(--brand-3, #4A90E2));
    box-shadow: 0 16px 40px rgba(15, 65, 128, 0.22), 0 4px 12px rgba(15, 65, 128, 0.12);
    border: 5px solid rgba(255, 255, 255, 0.95);
    transition: transform .3s var(--easing, ease), box-shadow .3s var(--easing, ease);
}
.topper-circle:hover .t-circle-photo {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 26px 56px rgba(15, 65, 128, 0.30);
}
.t-circle-photo img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.t-circle-initials {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: 'Fraunces', 'Playfair Display', serif;
    font-weight: 700;
    font-size: 3.4rem;
}

/* Label block below the circle */
.t-circle-name {
    font-family: 'Fraunces', 'Playfair Display', serif;
    font-variation-settings: 'opsz' 144, 'SOFT' 40;
    font-style: italic;
    font-weight: 600;
    font-size: 1.7rem;
    color: var(--brand-1, #0F4180);
    line-height: 1.2;
    margin-bottom: 10px;
}
.t-circle-percent {
    font-family: 'Fraunces', 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--brand-1, #0F4180);
    line-height: 1;
}
.t-circle-percent span {
    font-size: 1.4rem;
    color: var(--brand-3, #4A90E2);
    margin-left: 2px;
}
.t-circle-meta {
    margin-top: 10px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-soft, #4A5762);
}

@media (max-width: 640px) {
    .toppers-marquee { padding: 30px 0 16px; }
    .toppers-marquee-track { gap: 44px; }
    .topper-circle { width: 240px; }
    .t-circle-photo { width: 210px; height: 210px; }
    .t-circle-name { font-size: 1.35rem; }
    .t-circle-percent { font-size: 2.1rem; }
    .t-circle-percent span { font-size: 1.1rem; }
}

/* =========================================================
   Admission popup — pops in on page load (motion), auto-closes
   after 5 seconds or on scroll. Sits above everything.
   ========================================================= */
.admission-modal {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    width: calc(100% - 48px);
    max-width: 420px;
    background: transparent;
    pointer-events: none;
    opacity: 0;
    transform: translate(40px, 40px) scale(0.92);
    transition:
        opacity 0.4s ease,
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.admission-modal.is-open {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    pointer-events: auto;
}
.admission-modal-card {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.30),
        0 8px 24px rgba(15, 65, 128, 0.18);
}
.admission-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-1, #0F4180);
    border: 1px solid rgba(15, 65, 128, 0.15);
    cursor: pointer;
    z-index: 10;
    display: grid;
    place-items: center;
    backdrop-filter: blur(6px);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.admission-modal-close:hover {
    transform: scale(1.1) rotate(90deg);
    background: var(--brand-1, #0F4180);
    color: #fff;
}
.admission-modal-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #0B345E, #1E5BA8);
}
.admission-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Evergreen graphic panel used instead of a dated poster.
   Gradient background + icon + big "OPEN" typography. No month, no year. */
.admission-modal-image--graphic {
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(245, 196, 81, 0.18), transparent 60%),
        radial-gradient(80% 60% at 0% 100%, rgba(74, 144, 226, 0.35), transparent 60%),
        linear-gradient(135deg, #0B345E 0%, #1E5BA8 60%, #4A90E2 100%);
    position: relative;
    overflow: hidden;
}
.admission-modal-image--graphic::before {
    /* Subtle grid overlay for texture */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.admission-modal-graphic {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 16px;
    gap: 6px;
}
.admission-modal-graphic > svg {
    color: rgba(245, 196, 81, 0.95);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
    margin-bottom: 4px;
}
.admission-modal-graphic-eyebrow {
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 0.68rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.82);
}
.admission-modal-graphic-headline {
    font-family: 'Fraunces', 'Playfair Display', serif;
    font-weight: 700;
    font-size: 3rem;
    line-height: 1;
    letter-spacing: 0.08em;
    background: linear-gradient(90deg, #F5C451, #FFE6A8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.admission-modal-graphic-sub {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.86);
    letter-spacing: 0.02em;
    font-weight: 500;
    margin-top: 2px;
}
.admission-modal-body {
    padding: 28px 30px 30px;
    text-align: center;
}
.admission-modal-body .eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--brand-1, #0F4180);
}
.admission-modal-body h3 {
    font-family: 'Fraunces', 'Playfair Display', serif;
    font-variation-settings: 'opsz' 144, 'SOFT' 30;
    font-size: 1.55rem;
    line-height: 1.18;
    color: var(--brand-1, #0F4180);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.admission-modal-body p {
    color: var(--text-soft, #4A5762);
    font-size: 0.96rem;
    line-height: 1.55;
    margin-bottom: 20px;
}
.admission-modal-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
@media (max-width: 520px) {
    .admission-modal {
        bottom: 14px;
        right: 14px;
        left: 14px;
        width: auto;
        max-width: none;
    }
    .admission-modal-body { padding: 22px 20px 24px; }
    .admission-modal-body h3 { font-size: 1.3rem; }
    .admission-modal-cta .btn { width: 100%; }
    .admission-modal-graphic-headline { font-size: 2.4rem; }
    .admission-modal-graphic > svg { width: 42px; height: 42px; }
}

/* =========================================================
   Wave 5 — Full-width 16:9 hero banner slider
   ========================================================= */
.hero-banner {
    padding: var(--nav-h, 112px) 0 0;
    background: transparent;
    position: relative;
    z-index: 1;
}
.hero-banner-frame {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    aspect-ratio: 24 / 9;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(15,65,128,0.10);
    background: linear-gradient(135deg, #0B345E, #1E5BA8);
}
.hero-banner-slides {
    position: absolute;
    inset: 0;
}
.hero-banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.1s ease;
    pointer-events: none;
}
.hero-banner-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}
/* Blurred-bg layer not needed — extension is baked into the poster images themselves */
.hero-banner-bg { display: none; }
.hero-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: 1;
}

/* Left/right arrows */
.hero-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.30);
    background: rgba(15,65,128,0.55);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hero-banner-arrow:hover {
    background: rgba(15,65,128,0.85);
    transform: translateY(-50%) scale(1.08);
}
.hero-banner-arrow-prev { left: 18px; }
.hero-banner-arrow-next { right: 18px; }

/* Dot navigation */
.hero-banner-dots {
    position: absolute;
    bottom: 20px;
    left: 0; right: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.hero-banner-dots button {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(255,255,255,0.55);
    cursor: pointer;
    transition: all .3s ease;
}
.hero-banner-dots button.is-active {
    width: 34px;
    background: #fff;
}
.hero-banner-dots button:hover { background: rgba(255,255,255,0.85); }

@media (max-width: 760px) {
    .hero-banner { padding: var(--nav-h, 76px) 0 0; }
    .hero-banner-frame { border-radius: 0; }
    .hero-banner-arrow { width: 40px; height: 40px; }
    .hero-banner-arrow-prev { left: 10px; }
    .hero-banner-arrow-next { right: 10px; }
}

/* =========================================================
   Hero-intro — brand, tagline, CTAs and stats below the slider
   ========================================================= */
.hero-intro {
    padding: 70px 0 80px;
    text-align: center;
}
.hero-intro .eyebrow {
    margin-bottom: 22px;
    color: var(--brand-1, #0F4180);
}
.hero-intro .eyebrow::before { background: var(--brand-3, #4A90E2); }
.hero-intro h1 {
    font-family: 'Fraunces', 'Playfair Display', serif;
    font-variation-settings: 'opsz' 144, 'SOFT' 30;
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    line-height: 1.05;
    color: var(--brand-1, #0F4180);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    font-weight: 600;
}
.hero-intro h1 .gradient-text {
    font-style: normal;
    font-variation-settings: 'opsz' 144, 'SOFT' 30;
    background: linear-gradient(90deg, var(--brand-1, #0F4180) 0%, var(--brand-3, #4A90E2) 50%, var(--brand-1, #0F4180) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 8px;
}
.hero-intro .hero-tagline {
    font-family: 'Fraunces', 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    color: var(--brand-2, #1E5BA8);
    margin: 8px 0 16px;
    line-height: 1.25;
}
.hero-intro .hero-subtext {
    font-size: clamp(1rem, 1.1vw, 1.10rem);
    color: var(--text-soft, #4A5762);
    max-width: 660px;
    margin: 0 auto;
    line-height: 1.65;
}
.hero-intro .hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-intro .hero-stats {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(24px, 5vw, 60px);
    flex-wrap: nowrap;
    max-width: 760px;
    margin: 50px auto 0;
}
.hero-intro .hero-stat { text-align: center; }
.hero-intro .hero-stat .num {
    font-family: 'Fraunces', 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--brand-1, #0F4180);
    line-height: 1;
}
.hero-intro .hero-stat .label {
    margin-top: 10px;
    font-size: .78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-soft, #4A5762);
    font-weight: 600;
}

@media (max-width: 760px) {
    .hero-intro { padding: 50px 0 60px; }
    .hero-intro .hero-stats { gap: 20px; }
    .hero-intro .hero-stat .label { font-size: .68rem; letter-spacing: 0.12em; }
    .hero-intro h1 .gradient-text { display: block; margin-left: 0; }
}
@media (max-width: 460px) {
    .hero-intro .hero-stats { gap: 14px; }
    .hero-intro .hero-stat .num { font-size: 1.7rem; }
    .hero-intro .hero-stat .label { font-size: .58rem; letter-spacing: 0.08em; }
}

/* =========================================================
   MOBILE POLISH
   Tightens text sizes, box padding, and vertical rhythm on
   phones so nothing feels cramped or clipped.
   ========================================================= */

/* Kill any accidental horizontal scroll — one clip on <html>/<body>
   catches every offending marquee / oversized SVG / hero frame. */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, iframe { max-width: 100%; height: auto; }

/* ---------- Tablet & large phone (≤ 640px) ---------- */
@media (max-width: 640px) {
    section { padding: 56px 0; }
    .container { padding: 0 18px; }

    /* Fluid headings — the earlier clamp() min values (2.6rem for h1,
       2.2rem for h2) were still too big on 360–414px phones. */
    h1 { font-size: clamp(2rem, 8vw, 2.6rem); line-height: 1.1; }
    h2 { font-size: clamp(1.7rem, 6.5vw, 2.2rem); line-height: 1.15; }
    h3 { font-size: clamp(1.2rem, 5vw, 1.45rem); line-height: 1.2; }
    p, .lead { font-size: 1rem; line-height: 1.6; }
    .eyebrow { font-size: .68rem; }

    /* Section head — tighten breathing room */
    .section-head { margin-bottom: 40px; }
    .section-head p { font-size: 1rem; }

    /* Card-style boxes: shrink internal padding so text isn't
       crammed against thick borders on small screens. */
    .glass,
    .feature,
    .course-card,
    .mv-card {
        padding: 24px 20px;
    }
    .feature .icon { width: 44px; height: 44px; margin-bottom: 16px; }

    /* Mission / Vision — huge "M"/"V" decorative letter was overflowing */
    .mv-card .big-icon { font-size: 8rem; right: -12px; bottom: -18px; }
    .mv-grid { gap: 16px; }
    .feature-grid { gap: 16px; }

    /* Info-split (Multimedia / Expert Teachers on Home, About sections) */
    .info-split, .info-split-reverse {
        padding: 32px 20px;
        gap: 20px;
    }
    .info-split-icon { max-width: 110px; }
    .info-split-copy h2 { font-size: clamp(1.5rem, 5.5vw, 1.9rem); }
    .info-split-copy p { font-size: .98rem; line-height: 1.6; }

    /* Page hero (About / Toppers / Resources / Contact / Faculty) */
    .page-hero { padding-top: 100px; padding-bottom: 40px; }
    .page-hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
    .page-hero p { font-size: 1rem; }

    /* Homepage hero banner: aspect ratio 24/9 is very short on phones —
       still fine, just make sure controls don't crowd the poster. */
    .hero-banner { padding-top: 76px; }
    .hero-banner-arrow { width: 36px; height: 36px; }
    .hero-banner-dots { bottom: 10px; }

    /* CTA / glass call-to-action boxes */
    .glass[style*="padding:60px"],
    .glass[style*="padding: 60px"] {
        padding: 32px 20px !important;
    }

    /* Buttons stack a touch tighter */
    .hero-cta { gap: 10px; flex-wrap: wrap; justify-content: center; }
    .btn { font-size: .9rem; padding: 10px 18px; }

    /* Marquee circles on phones — bigger for readability */
    .topper-circle { width: 240px; }
    .t-circle-photo { width: 210px; height: 210px; margin-bottom: 16px; }
    .t-circle-name { font-size: 1.35rem; }
    .t-circle-percent { font-size: 2.1rem; }
    .t-circle-percent span { font-size: 1.1rem; }
    .toppers-marquee-track { gap: 36px; }
    .toppers-marquee { padding: 24px 0 12px; }
}

/* =========================================================
   Public faculty cards — /faculty.html
   Rich, editorial cards. Photo is the visual anchor;
   name / designation / experience / education below.
   ========================================================= */
#facultyGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 30px;
}
.faculty-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(74, 144, 226, 0.14);
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 1px 3px rgba(15, 65, 128, 0.04),
        0 12px 40px rgba(15, 65, 128, 0.10);
    transition: transform .35s var(--easing, cubic-bezier(.2,.7,.2,1)),
                box-shadow .35s var(--easing, cubic-bezier(.2,.7,.2,1)),
                border-color .35s ease;
}
.faculty-card:hover {
    transform: translateY(-6px);
    border-color: rgba(74, 144, 226, 0.30);
    box-shadow:
        0 2px 6px rgba(15, 65, 128, 0.06),
        0 26px 60px rgba(15, 65, 128, 0.18);
}
.faculty-card-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(135deg, #0F4180, #1F6BC6);
}
.faculty-card-photo::after {
    /* Subtle bottom fade so the name sits on a clean edge */
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 40%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.85) 60%, #fff);
    pointer-events: none;
}
.faculty-card-body {
    padding: 4px 26px 26px;
    position: relative;
    z-index: 2;
    margin-top: -46px;   /* pull up over the fade */
    text-align: left;
}
.faculty-card-designation {
    display: inline-block;
    background: linear-gradient(90deg, #c58a2d, #f5c451);
    color: #1a2332;
    font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(197, 138, 45, 0.28);
}
.faculty-card-name {
    font-family: 'Fraunces', 'Playfair Display', serif;
    font-weight: 500;
    font-size: 1.55rem;
    line-height: 1.15;
    color: var(--brand-1, #0F4180);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}
.faculty-card-subject {
    font-size: 1rem;
    color: var(--text-soft, #4A5762);
    margin-bottom: 18px;
    font-weight: 500;
}
.faculty-card-facts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(31,107,198,0.05), rgba(74,144,226,0.03));
    border: 1px solid rgba(74,144,226,0.12);
    border-radius: 14px;
    margin-bottom: 14px;
}
.faculty-fact {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.faculty-fact-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #1F6BC6, #4A90E2);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(31,107,198,0.28);
}
.faculty-fact > div {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.faculty-fact-label {
    font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
    font-size: .66rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-muted, #6B7280);
}
.faculty-fact strong {
    font-size: .96rem;
    color: var(--text, #1A2332);
    font-weight: 600;
    line-height: 1.35;
}
.faculty-card-bio {
    font-size: .94rem;
    line-height: 1.6;
    color: var(--text-soft, #4A5762);
    margin: 8px 0 0;
}
.faculty-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}
.faculty-card-tags span {
    background: rgba(31, 107, 198, 0.09);
    color: var(--brand-1, #0F4180);
    padding: 4px 10px;
    border-radius: 99px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .04em;
}

/* Empty placeholder for the initials block inside the 4:5 photo frame */
.faculty-card-photo > div {
    width: 100%;
    height: 100%;
}

/* Mobile faculty cards */
@media (max-width: 640px) {
    #facultyGrid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }
    .faculty-card-photo { aspect-ratio: 3 / 4; }
    .faculty-card-body { padding: 4px 20px 22px; margin-top: -40px; }
    .faculty-card-name { font-size: 1.4rem; }
    .faculty-card-subject { font-size: .95rem; margin-bottom: 14px; }
    .faculty-card-facts { padding: 12px; gap: 10px; }
    .faculty-fact strong { font-size: .9rem; }
}

/* ---------- Small phone (≤ 420px, e.g. iPhone SE) ---------- */
@media (max-width: 420px) {
    .container { padding: 0 14px; }
    section { padding: 44px 0; }

    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.55rem; }
    h3 { font-size: 1.15rem; }
    p, .lead { font-size: .95rem; }

    .glass, .feature, .course-card, .mv-card { padding: 20px 16px; }
    .info-split, .info-split-reverse { padding: 26px 16px; }
    .mv-card .big-icon { font-size: 6.5rem; }

    /* Buttons full-width on smallest screens so no half-visible taps */
    .hero-cta .btn { width: 100%; text-align: center; justify-content: center; }
    .btn { padding: 10px 16px; }

    /* Toppers marquee on very narrow phones */
    .topper-circle { width: 210px; }
    .t-circle-photo { width: 180px; height: 180px; }
    .t-circle-name { font-size: 1.2rem; }
    .t-circle-percent { font-size: 1.9rem; }

}

