/* ==========================================================================
   Smart Age Classes — Commerce Coaching, Kolkata & Howrah
   Theme: Indigo (trust/knowledge) • Amber (highlight/rupee gold) • Emerald (growth)
   Action colours: WhatsApp = green, Call = blue, Email = red

   Layout: every block (top strip, header, sections, footer) is a rounded
   "shell" capped at 1350px. Mobile-first — base styles target 360px phones,
   then scale up at 576 / 768 / 992 / 1200px. No framework dependency.
   ========================================================================== */

:root {
    /* Brand */
    --primary: #145c8c;
    --primary-light: #4f81aa;
    --primary-dark: #0e4569;
    --primary-deep: #0b2f4a;
    --primary-soft: #e8f1f8;
    --accent: #cc0000;
    --accent-dark: #a30000;
    --accent-soft: #fdecec;
    --accent-on-dark: #ff8a8a;   /* logo red, lightened for icons/links on navy */
    --growth: #059669;
    --growth-soft: #ecfdf5;

    /* Neutrals */
    --ink: #0f172a;
    --body: #334155;
    --muted: #5b6477;
    --soft: #f4f7fa;
    --line: #dfe7ee;
    --page-bg: #e5ecf2;

    /* Action colours */
    --whatsapp: #25d366;
    --whatsapp-dark: #128c4b;
    --call: #2563eb;
    --call-dark: #1d4ed8;
    --email: #dc2626;
    --email-dark: #b91c1c;

    /* Effects */
    --shadow-sm: 0 10px 28px rgba(11, 47, 74, .07);
    --shadow-md: 0 18px 44px rgba(11, 47, 74, .12);
    --shadow-lg: 0 26px 64px rgba(11, 47, 74, .18);
    --ease: cubic-bezier(.22, .61, .36, 1);

    --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

    /* Layout (phone values; overridden below for larger screens) */
    --shell-max: 1350px;
    --gap: 10px;        /* space around / between shells */
    --r-box: 20px;      /* shell corner radius */
    --pad-x: 16px;      /* inner horizontal padding */
    --pad-y: 56px;      /* section vertical padding */
    --header-h: 64px;
}
@media (min-width: 768px) {
    :root { --gap: 14px; --r-box: 26px; --pad-x: 32px; --pad-y: 76px; --header-h: 72px; }
}
@media (min-width: 1200px) {
    :root { --gap: 16px; --r-box: 32px; --pad-x: 56px; --pad-y: 96px; --header-h: 78px; }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + var(--gap) * 2 + 6px);
}
body {
    margin: 0; min-width: 320px;
    font-family: var(--font-body); font-size: 1rem; line-height: 1.6;
    color: var(--body); background: var(--page-bg);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0 0 .5rem; font-family: var(--font-head); font-weight: 700; line-height: 1.25; color: var(--primary-deep); letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
address { font-style: normal; margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; }
strong { color: var(--ink); font-weight: 600; }
small { font-size: .875em; }
.hero strong, .about-panel strong, .contact-info-panel strong, .site-footer strong { color: #fff; }
.mb-0 { margin-bottom: 0 !important; }

/* SVG icons (inline sprite) */
.i { width: 1em; height: 1em; fill: currentColor; flex: none; display: inline-block; vertical-align: -.125em; overflow: visible; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 2000;
    background: var(--primary-deep); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Shells (boxed, rounded blocks — max 1350px) ---------- */
.shell {
    position: relative;
    width: min(var(--shell-max), calc(100% - var(--gap) * 2));
    margin: var(--gap) auto 0;
    border-radius: var(--r-box);
}
.wrap { padding-inline: var(--pad-x); }
.section { padding-block: var(--pad-y); background: #fff; }
.bg-soft { background: var(--soft); }
.text-accent { color: var(--accent); }
.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--primary-light) 55%, var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px; padding: .7rem 1.4rem; border: 2px solid transparent; border-radius: 12px;
    font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center;
    white-space: nowrap; cursor: pointer;
}
.btn-lg { min-height: 54px; padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-brand, .btn-whatsapp, .btn-call, .btn-email {
    position: relative; overflow: hidden; color: #fff; border: 0;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s ease;
}
/* Shine sweep on hover (transform-only, so it stays on the compositor) */
.btn-brand::after, .btn-whatsapp::after, .btn-call::after, .btn-email::after {
    content: ""; position: absolute; inset: 0; width: 50%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
    transform: translateX(-160%) skewX(-20deg); transition: transform .6s var(--ease);
}
.btn-brand:hover::after, .btn-whatsapp:hover::after, .btn-call:hover::after, .btn-email:hover::after { transform: translateX(260%) skewX(-20deg); }
.btn-brand:hover, .btn-whatsapp:hover, .btn-call:hover, .btn-email:hover { color: #fff; transform: translateY(-2px); }

.btn-brand { background: linear-gradient(135deg, var(--primary), var(--primary-light)); box-shadow: 0 10px 24px rgba(20,92,140,.28); }
.btn-brand:hover { box-shadow: 0 14px 30px rgba(20,92,140,.38); }
.btn-accent { position: relative; overflow: hidden; color: #fff; border: 0; background: linear-gradient(135deg, var(--accent-dark), var(--accent)); box-shadow: 0 10px 24px rgba(204,0,0,.28); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn-accent:hover, .btn-accent:active { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(204,0,0,.38); }
.btn-whatsapp { background: var(--whatsapp); box-shadow: 0 10px 24px rgba(37,211,102,.32); text-shadow: 0 1px 1px rgba(0,0,0,.12); }
.btn-whatsapp:hover, .btn-whatsapp:active { background: var(--whatsapp-dark); box-shadow: 0 14px 30px rgba(18,140,75,.36); }
.btn-call { background: var(--call); box-shadow: 0 10px 24px rgba(37,99,235,.28); }
.btn-call:hover, .btn-call:active { background: var(--call-dark); box-shadow: 0 14px 30px rgba(29,78,216,.36); }
.btn-email { background: var(--email); box-shadow: 0 10px 24px rgba(220,38,38,.26); }
.btn-email:hover, .btn-email:active { background: var(--email-dark); box-shadow: 0 14px 30px rgba(185,28,28,.34); }

.btn-outline-brand {
    border-color: rgba(20,92,140,.25); color: var(--primary); background: rgba(255,255,255,.7);
    transition: color .25s ease, background-color .25s ease, border-color .25s ease, transform .25s var(--ease);
}
.btn-outline-brand:hover { color: #fff; background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; background: rgba(255,255,255,.06); transition: all .25s var(--ease); }
.btn-outline-light:hover { color: var(--primary-deep); background: #fff; border-color: #fff; transform: translateY(-2px); }

/* ---------- Section headings ---------- */
.section-kicker {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--accent-soft); color: var(--accent-dark);
    font-family: var(--font-head); font-weight: 600; font-size: .85rem;
    padding: .4rem .95rem; border-radius: 999px; margin-bottom: 1rem;
}
.section-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(204,0,0,.2); }
.kicker-light { background: rgba(255,255,255,.12); color: #ffc2c2; }
.section-title {
    font-weight: 700; color: var(--primary-deep);
    font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.7rem); line-height: 1.22; margin-bottom: 1.1rem;
    text-wrap: balance;
}
.section-title.on-dark { color: #fff; }
.section-text { color: var(--muted); line-height: 1.8; font-size: 1rem; }
.text-light-muted { color: rgba(255,255,255,.8); }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 40px; }
.section-head-split { display: grid; gap: 14px; margin-bottom: 40px; text-align: center; align-items: end; }
.mobile-center { text-align: center; }

/* ---------- Top strip ---------- */
.top-strip {
    display: none; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 9px 24px; background: var(--primary-deep); color: rgba(255,255,255,.85); font-size: .86rem;
}
.top-strip p { margin: 0; display: flex; align-items: center; gap: .5rem; }
.top-strip-links { display: flex; align-items: center; gap: 1.1rem; }
.top-strip-links a { display: inline-flex; align-items: center; gap: .4rem; color: #fff; font-weight: 600; white-space: nowrap; }
.top-strip-links a:hover { color: var(--accent-on-dark); }
.top-strip .text-accent { color: var(--accent-on-dark); }
.ts-call .i { color: #60a5fa; }
.ts-whatsapp .i { color: var(--whatsapp); }
.ts-email { display: none !important; }
.ts-email .i { color: #f87171; }

/* ---------- Header / navigation ---------- */
.site-header {
    position: sticky; top: var(--gap); z-index: 1000;
    background: rgba(255,255,255,.97);
    box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(11,47,74,.05);
    transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 14px 36px rgba(11,47,74,.16); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 1rem; padding: 0 12px 0 14px; }
.brand { display: flex; align-items: center; min-height: var(--header-h); }
.brand-logo { width: 172px; height: auto; }
.nav-toggle {
    width: 46px; height: 46px; display: grid; place-items: center; padding: 0;
    border: 0; border-radius: 12px; background: var(--primary-soft); color: var(--primary-deep); font-size: 1.45rem;
}
.nav-toggle .i-close { display: none; }
.site-header.is-open .nav-toggle .i-open { display: none; }
.site-header.is-open .nav-toggle .i-close { display: inline-block; }
.nav-menu {
    display: none; flex-basis: 100%; padding: 6px 0 16px; border-top: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h) - 40px); max-height: calc(100dvh - var(--header-h) - 40px); overflow-y: auto;
}
.site-header.is-open .nav-menu { display: block; }
.nav-link {
    position: relative; display: block; padding: .7rem .5rem; border-radius: 10px;
    font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--body);
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-soft); }
.nav-cta { width: 100%; margin-top: .6rem; }

/* ---------- Mega menu (accordion on mobile, dropdown panel on desktop) ---------- */
.mega-toggle { display: flex; align-items: center; justify-content: space-between; gap: .35rem; width: 100%; border: 0; background: none; text-align: left; }
.mega-chev { font-size: .8em; transition: transform .25s var(--ease); }
.has-mega.is-open .mega-chev { transform: rotate(180deg); }
.mega { display: none; padding: 2px 0 10px 6px; }
.has-mega.is-open .mega { display: block; }
.mega-grid { display: grid; gap: 6px; }
.mega-title { margin: 10px 0 6px; padding-left: 10px; font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.mega-col ul { display: grid; gap: 2px; }
.mega-link {
    display: flex; align-items: center; gap: .7rem; padding: 8px 10px; border-radius: 12px;
    font-family: var(--font-head); font-weight: 600; font-size: .92rem; line-height: 1.3; color: var(--primary-deep);
    transition: background-color .2s ease, color .2s ease;
}
.mega-link:hover, .mega-link[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
.mega-link small { display: block; margin-top: 1px; font-family: var(--font-body); font-weight: 500; font-size: .76rem; color: var(--muted); }
.mega-ic { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: .95rem; transition: background-color .2s ease, color .2s ease; }
.mega-link:hover .mega-ic { background: var(--primary); color: #fff; }
.mega-ic.pin { background: var(--accent-soft); color: var(--accent); }
.mega-link:hover .mega-ic.pin { background: var(--accent); color: #fff; }
.mega-promo { margin-top: 8px; padding: 18px; border-radius: 18px; background: linear-gradient(145deg, var(--primary-deep), var(--primary)); color: rgba(255,255,255,.85); font-size: .88rem; }
.mega-promo strong { display: block; margin-bottom: .35rem; font-family: var(--font-head); font-size: 1.02rem; color: #fff; }
.mega-promo p { margin-bottom: .9rem; line-height: 1.6; }
.mega-promo .btn { min-height: 42px; padding: .55rem 1rem; font-size: .9rem; }
.mega-promo .btn + .btn { margin-top: 8px; }
.mega-promo-actions { display: grid; }

/* ---------- Enquiry popup (native <dialog>) ---------- */
html:has(dialog[open]) { overflow: hidden; }
.modal {
    width: min(560px, calc(100% - 20px)); max-width: none; max-height: calc(100dvh - 20px); margin: auto; padding: 0; border: 0;
    border-radius: 24px; background: #fff; color: var(--body); box-shadow: 0 40px 100px rgba(4,20,36,.45); overflow: hidden;
}
.modal::backdrop { background: rgba(5,25,42,.62); }
.modal[open] { display: flex; flex-direction: column; animation: modalIn .3s var(--ease); }
.modal-head {
    position: relative; flex: none; padding: 20px 60px 18px 20px; color: rgba(255,255,255,.85);
    background:
        radial-gradient(circle at 100% 0%, rgba(204,0,0,.35), transparent 45%),
        linear-gradient(145deg, var(--primary-deep), var(--primary));
}
.modal-head h2 { margin: 0 0 .25rem; font-size: 1.3rem; color: #fff; }
.modal-head p { margin: 0; font-size: .88rem; line-height: 1.5; }
.modal-close {
    position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center;
    border: 0; border-radius: 12px; background: rgba(255,255,255,.15); color: #fff; font-size: 1.05rem;
}
.modal-close:hover { background: rgba(255,255,255,.28); }
.modal-body { flex: 1 1 auto; overflow-y: auto; padding: 18px 20px 20px; overscroll-behavior: contain; }
.modal-body .form-grid { gap: 12px; }
.modal-body .form-control { min-height: 46px; }
.modal-body textarea.form-control { min-height: 76px; }
.modal-alt { margin: 14px 0 0; text-align: center; font-size: .88rem; color: var(--muted); }
.modal-alt a { font-weight: 600; }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
    overflow: hidden; color: rgba(255,255,255,.86);
    background:
        radial-gradient(60% 70% at 88% 8%, rgba(204,0,0,.30), transparent 62%),
        radial-gradient(55% 60% at 0% 100%, rgba(16,185,129,.24), transparent 60%),
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px) 0 0 / 34px 34px,
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px) 0 0 / 34px 34px,
        linear-gradient(135deg, #0b2f4a 0%, #0e4569 48%, #145c8c 100%);
    background-color: #0b2f4a;
}
/* Soft vignette so the grid fades out toward the edges */
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(120% 90% at 30% 40%, transparent 40%, rgba(5,25,42,.45) 100%);
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 40px; padding-block: 44px 40px; }
.hero-copy { text-align: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1.1rem;
    font-family: var(--font-head); font-weight: 600; font-size: .76rem; color: #fff;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: .4rem .85rem; border-radius: 999px;
}
.eyebrow .i { color: var(--accent-on-dark); font-size: 1.05em; }
.hero-title { font-weight: 800; font-size: clamp(1.85rem, 1.15rem + 3.5vw, 3.55rem); line-height: 1.13; color: #fff; margin-bottom: 1.1rem; }
.hero-title .highlight {
    color: #fff;
    background: linear-gradient(90deg, rgba(204,0,0,.95), rgba(204,0,0,.7)) no-repeat 0 92% / 0% .2em;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
    animation: marker 1.1s .5s var(--ease) forwards;
}
.hero-text { color: rgba(255,255,255,.82); max-width: 680px; margin-inline: auto; line-height: 1.75; font-size: .98rem; margin-bottom: 1.6rem; }
.hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 1.6rem; }
.hero-cta .btn { padding-inline: .5rem; }
.hero-cta .btn-view { grid-column: 1 / -1; }
.hero-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-point {
    display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px;
    padding: 12px 6px; font-weight: 600; font-size: .76rem; line-height: 1.3; color: #fff;
}
.hero-point .i {
    width: 34px; height: 34px; padding: 8px; border-radius: 50%;
    background: rgba(52,211,153,.16); color: #34d399;
}

/* Floating commerce symbols */
.hero-symbols { position: absolute; inset: 0; pointer-events: none; }
.sym {
    position: absolute; font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: #fff;
    opacity: .07; animation: drift 14s ease-in-out infinite;
}
.s1 { top: 10%; left: 4%; animation-delay: 0s; }
.s2 { top: 70%; left: 8%; color: var(--accent); opacity: .18; animation-delay: -3s; }
.s3 { top: 22%; left: 46%; animation-delay: -6s; }
.s4 { top: 84%; left: 40%; animation-delay: -9s; }
.s5 { top: 6%; left: 86%; color: #34d399; opacity: .14; animation-delay: -2s; }
.s6 { top: 58%; left: 92%; color: var(--accent); opacity: .16; animation-delay: -5s; }
.s7 { top: 45%; left: 2%; animation-delay: -7s; }
.s8 { top: 92%; left: 70%; animation-delay: -11s; }
.s9 { top: 3%; left: 30%; color: var(--accent); opacity: .14; animation-delay: -4s; }

/* Hero card + growth chart */
.hero-card-wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 470px; width: 100%; margin-inline: auto; }
.hero-card {
    position: relative; z-index: 2; grid-column: 1 / -1;
    background: #fff; border-radius: 22px; padding: 22px 18px; box-shadow: 0 30px 70px rgba(4,20,36,.45);
    color: var(--body); transition: transform .4s var(--ease);
}
.hero-card:hover { transform: translateY(-6px); }
.hero-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hero-card-label { font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--accent-dark); margin: 0 0 2px; }
.hero-card-title { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--primary-deep); margin: 0; }
.hero-icon-wrap {
    width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; flex: 0 0 50px;
    background: linear-gradient(135deg, var(--growth), #10b981); color: #fff; font-size: 1.35rem;
    box-shadow: 0 12px 26px rgba(5,150,105,.3);
}
.growth-chart { width: 100%; height: auto; display: block; margin-top: 4px; }
.growth-chart .grid-lines line { stroke: #e8eaf4; stroke-width: 1; stroke-dasharray: 4 4; }
.growth-chart .bar { transform-box: fill-box; transform-origin: bottom; animation: growBar .9s var(--ease) both; }
.growth-chart .b0 { animation-delay: .4s; }
.growth-chart .b1 { animation-delay: .52s; }
.growth-chart .b2 { animation-delay: .64s; }
.growth-chart .b3 { animation-delay: .76s; }
.growth-chart .b4 { animation-delay: .88s; }
.growth-chart .bar-accent { fill: var(--accent); }
.growth-chart .trend {
    fill: none; stroke: var(--growth); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 320; stroke-dashoffset: 320; animation: drawLine 1.4s 1.1s var(--ease) forwards;
}
.growth-chart .trend-dot { fill: var(--growth); transform-box: fill-box; transform-origin: center; animation: dotIn .35s 2.4s var(--ease) both, dotPulse 2s 2.8s ease-in-out infinite; }
.growth-chart .chart-labels text { font-family: var(--font-body); font-size: 10px; fill: var(--muted); text-anchor: middle; }

.progress-steps { margin-top: 12px; }
.progress-step { display: flex; align-items: center; gap: .9rem; padding: 10px 0; border-bottom: 1px dashed #e1e4f0; }
.progress-step:last-child { border-bottom: 0; padding-bottom: 0; }
.progress-step > span {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 34px;
    background: var(--primary-soft); color: var(--primary); font-family: var(--font-head); font-weight: 700; font-size: .8rem;
    transition: background .25s ease, color .25s ease;
}
.progress-step:hover > span { background: var(--primary); color: #fff; }
.progress-step div { display: flex; flex-direction: column; }
.progress-step strong { font-family: var(--font-head); font-size: .95rem; color: var(--primary-deep); }
.progress-step small { color: var(--muted); }

.mini-badge {
    position: relative; z-index: 3; background: #fff; border-radius: 14px;
    box-shadow: var(--shadow-md); padding: 10px; display: flex; align-items: center; gap: .5rem; min-width: 0;
}
.mini-badge > .i { color: var(--accent); font-size: 1.2rem; }
.mini-badge span { display: flex; flex-direction: column; min-width: 0; }
.mini-badge strong { font-family: var(--font-head); font-size: .78rem; line-height: 1.3; color: var(--primary-deep); }
.mini-badge small { color: var(--muted); font-size: .66rem; line-height: 1.35; }

/* ---------- Formula ticker ---------- */
.ticker { background: linear-gradient(90deg, var(--accent-dark), var(--accent) 50%, #e03131); overflow: hidden; padding: 13px 0; }
.ticker .ticker-list li { color: #fff; }
.ticker .ticker-list li::after { color: rgba(255,255,255,.6); }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; }
.ticker-list li {
    position: relative; padding: 0 26px; white-space: nowrap;
    font-family: var(--font-head); font-weight: 600; color: var(--primary-deep); font-size: .9rem;
}
.ticker-list li::after { content: "◆"; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); font-size: .6rem; color: rgba(11,47,74,.45); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--primary-deep); color: #fff; overflow: hidden; }
.trust-list { display: grid; grid-template-columns: 1fr 1fr; }
.trust-item {
    min-height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
    padding: 12px 8px; text-align: center; font-family: var(--font-head); font-weight: 600; font-size: .82rem;
    border-right: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1);
    transition: background .3s ease;
}
.trust-item:nth-child(2n) { border-right: 0; }
.trust-item:nth-child(n+3) { border-bottom: 0; }
.trust-item .i { color: var(--accent-on-dark); font-size: 1.35rem; transition: transform .35s var(--ease); }
.trust-item:hover { background: rgba(255,255,255,.05); }
.trust-item:hover .i { transform: translateY(-3px) scale(1.15); }

/* ---------- Generic two-column split ---------- */
.split { display: grid; gap: 40px; align-items: center; }

/* ---------- About ---------- */
.about-visual { position: relative; }
.about-panel {
    border-radius: 24px; padding: 30px 20px 60px; text-align: center; color: #fff; box-shadow: var(--shadow-lg);
    background:
        radial-gradient(circle at 90% 10%, rgba(204,0,0,.28), transparent 35%),
        linear-gradient(145deg, var(--primary-deep), var(--primary));
}
.about-panel-icon {
    width: 58px; height: 58px; border-radius: 17px; background: rgba(255,255,255,.12); color: var(--accent-on-dark);
    display: grid; place-items: center; font-size: 1.7rem; margin: 0 auto 20px;
}
.about-panel-label { font-family: var(--font-head); font-weight: 600; color: #ffc2c2; font-size: .88rem; margin-bottom: .5rem; }
.about-panel-title { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; line-height: 1.3; color: #fff; margin-bottom: 1rem; }
.about-panel-text { color: rgba(255,255,255,.82); line-height: 1.8; margin: 0; }
.ledger { margin-top: 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; overflow: hidden; font-size: .85rem; text-align: left; }
.ledger-row { display: grid; grid-template-columns: 46px 1fr 46px; text-align: center; border-top: 1px solid rgba(255,255,255,.12); }
.ledger-row span { padding: 7px 4px; }
.ledger-row span:nth-child(2) { border-left: 1px solid rgba(255,255,255,.12); border-right: 1px solid rgba(255,255,255,.12); text-align: left; padding-left: 12px; }
.ledger-head { border-top: 0; background: rgba(255,255,255,.08); font-weight: 700; color: #ffc2c2; }
.ledger-row:not(.ledger-head) span:first-child, .ledger-row:not(.ledger-head) span:last-child { color: #6ee7b7; font-weight: 700; }
.ledger-total { background: rgba(204,0,0,.15); font-weight: 700; }
.quote-card {
    position: relative; margin: -36px 12px 0; text-align: center;
    background: #fff; padding: 20px; border-radius: 18px; box-shadow: var(--shadow-md); border-top: 4px solid var(--accent);
    transition: transform .35s var(--ease);
}
.quote-card:hover { transform: translateY(-4px) rotate(-.5deg); }
.quote-card blockquote p { font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--primary-deep); line-height: 1.55; margin-bottom: .5rem; }
.quote-card figcaption { color: var(--muted); font-size: .8rem; font-weight: 600; }
.quote-icon { color: var(--accent); font-size: 1.5rem; }

.feature-list { display: grid; gap: 14px; margin-top: 24px; }
.split > .feature-list { margin-top: -16px; }
.feature-row {
    display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center;
    padding: 14px; border-radius: 16px; transition: background .3s ease, box-shadow .3s ease;
}
.feature-row:hover { background: #fff; box-shadow: var(--shadow-sm); }
.feature-icon {
    flex: 0 0 50px; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
    background: var(--primary-soft); color: var(--primary); font-size: 1.3rem; transition: all .3s var(--ease);
}
.feature-row:hover .feature-icon { background: var(--primary); color: #fff; transform: rotate(-8deg) scale(1.05); }
.feature-row h3 { font-size: 1.1rem; font-weight: 600; margin: 2px 0 5px; }
.feature-row p { margin: 0; color: var(--muted); line-height: 1.65; }

/* ---------- Courses ---------- */
.cards-3 { display: grid; gap: 20px; }
.program-card {
    position: relative; height: 100%; padding: 26px 20px; text-align: center;
    border: 1px solid var(--line); border-radius: 22px; background: #fff; overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
}
.program-card::before {
    content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.program-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.program-card:hover::before { transform: scaleX(1); }
.program-number { position: absolute; right: 22px; top: 18px; font-family: var(--font-head); font-size: 2.8rem; line-height: 1; font-weight: 800; color: #e6eef5; transition: color .35s ease; }
.program-card:hover .program-number { color: rgba(204,0,0,.25); }
.program-icon {
    width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 20px;
    background: var(--primary-soft); color: var(--primary); font-size: 1.45rem; transition: all .35s var(--ease);
}
.program-card:hover .program-icon { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; transform: rotate(-8deg); }
.program-card h3 { position: relative; font-size: 1.22rem; font-weight: 700; }
.program-card p { color: var(--muted); line-height: 1.7; }
.clean-list { display: grid; gap: .6rem; width: fit-content; max-width: 100%; margin: 18px auto 22px; text-align: left; }
.clean-list li { display: flex; gap: .55rem; color: var(--body); font-size: .94rem; }
.clean-list .i { color: var(--growth); margin-top: .2em; }
.text-link { color: var(--primary); font-family: var(--font-head); font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.text-link .i { transition: transform .25s var(--ease); }
.text-link:hover { color: var(--accent-dark); }
.text-link:hover .i { transform: translateX(5px); }
.featured-program { border: 2px solid rgba(204,0,0,.45); box-shadow: 0 16px 40px rgba(204,0,0,.12); }
.featured-label {
    display: inline-flex; align-items: center; gap: .35rem; background: var(--accent-soft); color: var(--accent-dark);
    padding: 6px 12px; border-radius: 999px; font-family: var(--font-head); font-size: .78rem; font-weight: 600; margin-bottom: 14px;
}

/* ---------- Subjects ---------- */
.subjects-section { overflow: hidden; background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-dark) 55%, var(--primary) 100%); }
.subjects-section::before, .subjects-section::after {
    position: absolute; font-family: var(--font-head); font-weight: 800; line-height: 1; pointer-events: none;
}
.subjects-section::before { content: "₹"; right: 3%; top: -60px; font-size: 260px; color: rgba(255,255,255,.04); animation: floatY 9s ease-in-out infinite; }
.subjects-section::after { content: "%"; left: 2%; bottom: -60px; font-size: 200px; color: rgba(204,0,0,.06); animation: floatY 11s ease-in-out infinite reverse; }
.subjects-section .wrap { position: relative; z-index: 1; }
.subjects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.subject-card {
    height: 100%; min-height: 140px; padding: 16px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; color: #fff;
    background: rgba(255,255,255,.07);
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; text-align: center;
    transition: transform .35s var(--ease), background .35s ease, border-color .35s ease;
}
.subject-card h3 { font-size: .9rem; font-weight: 600; margin: 0; color: #fff; }
.subject-card small { color: rgba(255,255,255,.72); font-size: .76rem; }
.coin {
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(circle at 30% 30%, #ffc2c2, var(--accent) 60%, var(--accent-dark));
    color: #fff; font-size: 1.15rem; box-shadow: 0 8px 20px rgba(204,0,0,.35), inset 0 -3px 0 rgba(0,0,0,.12);
}
.subject-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.14); border-color: rgba(204,0,0,.55); }
.subject-card:hover .coin { animation: coinFlip .8s var(--ease); }

/* ---------- Boards ---------- */
.boards-grid { display: grid; gap: 18px; }
.board-card {
    --board: var(--primary);
    position: relative; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px 20px; overflow: hidden; text-align: center;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
}
.board-cisce { --board: #145c8c; }
.board-cbse  { --board: #0284c7; }
.board-wb    { --board: #059669; }
.board-other { --board: #d97706; }
.board-card::after {
    content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%;
    background: var(--board); opacity: .06; transition: transform .5s var(--ease), opacity .35s ease;
}
.board-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--board); }
.board-card:hover::after { transform: scale(2.6); opacity: .08; }
.board-tag {
    display: inline-block; background: var(--primary-soft); background: color-mix(in srgb, var(--board) 12%, white); color: var(--board);
    font-family: var(--font-head); font-size: .78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.board-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .6rem; }
.board-card p { color: var(--muted); line-height: 1.7; margin: 0; font-size: .95rem; position: relative; z-index: 1; }
.board-card .area-link { margin-top: 12px; display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: center; }

/* ---------- Method ---------- */
.method-grid { display: grid; gap: 16px; }
.method-card {
    position: relative; background: #fff; padding: 24px 20px; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); text-align: center;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
}
.method-num { position: absolute; right: 20px; top: 14px; font-family: var(--font-head); font-weight: 800; color: #e7e9f4; font-size: 1.6rem; transition: color .35s ease; }
.method-icon {
    display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px;
    background: var(--accent-soft); font-size: 1.35rem; color: var(--accent-dark); margin-bottom: 16px; transition: all .35s var(--ease);
}
.method-card h3 { font-size: 1.12rem; font-weight: 600; }
.method-card p { margin: 0; color: var(--muted); line-height: 1.65; font-size: .93rem; }
.method-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(20,92,140,.25); }
.method-card:hover .method-num { color: var(--primary-light); }
.method-card:hover .method-icon { background: var(--accent); color: #fff; transform: rotate(12deg); }

/* ---------- Study tips ---------- */
.mini-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.mini-feature {
    height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; text-align: center;
    background: var(--soft); border: 1px solid transparent; padding: 14px 10px; border-radius: 14px;
    font-size: .86rem; font-weight: 600; color: var(--body); transition: all .3s ease;
}
.mini-feature .i { color: var(--primary); font-size: 1.2rem; }
.mini-feature:hover { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.resource-stack { display: grid; gap: 16px; }
.resource-card {
    --tip: var(--primary);
    display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
    background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--tip); border-radius: 18px; padding: 20px;
    box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tip-accounts { --tip: var(--primary); }
.tip-economics { --tip: var(--growth); }
.tip-exam { --tip: var(--accent); }
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.resource-icon {
    width: 50px; height: 50px; flex: 0 0 50px; border-radius: 14px; display: grid; place-items: center;
    background: var(--primary-soft); background: color-mix(in srgb, var(--tip) 12%, white); color: var(--tip); font-size: 1.3rem;
}
.resource-card small { color: var(--tip); font-family: var(--font-head); font-weight: 600; font-size: .84rem; }
.tip-exam small { color: var(--accent-dark); }
.resource-card h3 { font-size: 1.06rem; margin: 3px 0 5px; font-weight: 600; }
.resource-card p { color: var(--muted); font-size: .92rem; line-height: 1.6; margin: 0; }

/* ---------- Areas we serve ---------- */
.areas-section {
    overflow: hidden;
    background:
        radial-gradient(circle at 0% 0%, rgba(79,129,170,.08), transparent 35%),
        radial-gradient(circle at 100% 100%, rgba(204,0,0,.08), transparent 35%),
        var(--soft);
}
.areas-map { display: grid; grid-template-columns: 1fr; align-items: stretch; }
.city-card {
    background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.city-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.city-head {
    position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 20px 16px; color: #fff; text-align: center;
}
.city-north .city-head { background: linear-gradient(135deg, #0f766e, #059669); }
.city-central .city-head { background: linear-gradient(135deg, var(--primary-dark), var(--primary-light)); }
.city-head::after { content: ""; position: absolute; right: -30px; bottom: -50px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.08); }
.city-icon { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.16); font-size: 1.4rem; }
.city-head h3 { color: #fff; font-size: 1.35rem; font-weight: 700; margin: 0; }
.city-head p { margin: 0; color: rgba(255,255,255,.85); font-size: .9rem; }
.city-count {
    position: relative; z-index: 1; background: rgba(255,255,255,.18); padding: 5px 12px; border-radius: 999px;
    font-family: var(--font-head); font-weight: 600; font-size: .78rem; white-space: nowrap;
}
.city-body { padding: 20px 16px 24px; display: grid; gap: 18px; }
.zone { text-align: center; }
.zone h4 { font-size: .93rem; font-weight: 600; color: var(--primary-deep); margin-bottom: .6rem; display: flex; align-items: center; justify-content: center; gap: .5rem; }
.zone h4::before, .zone h4::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.area-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.area-chips li {
    display: inline-flex; align-items: center; gap: .35rem; background: var(--soft); border: 1px solid var(--line);
    color: var(--body); font-size: .86rem; font-weight: 500; padding: 6px 12px 6px 9px; border-radius: 999px; cursor: default;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s var(--ease);
}
/* Map-pin marker (geo-alt-fill) drawn with a CSS mask — no icon font needed */
.area-chips li::before {
    content: ""; width: .8em; height: .8em; flex: none; background: var(--accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 16s6-5.686 6-10A6 6 0 0 0 2 6c0 4.314 6 10 6 10m0-7a3 3 0 1 1 0-6 3 3 0 0 1 0 6'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 16s6-5.686 6-10A6 6 0 0 0 2 6c0 4.314 6 10 6 10m0-7a3 3 0 1 1 0-6 3 3 0 0 1 0 6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: background-color .25s ease;
}
.area-chips a { color: inherit; }
.area-chips a::after { content: ""; position: absolute; inset: 0; }   /* whole chip is clickable */
.area-chips li { position: relative; }
.city-north .area-chips li:hover { background: #059669; border-color: #059669; color: #fff; transform: translateY(-2px); }
.city-central .area-chips li:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }
.area-chips li:hover::before { background: #ffc2c2; animation: pinBounce .6s var(--ease); }

/* River divider (animated with transform only) */
.river { position: relative; height: 64px; display: flex; align-items: center; justify-content: center; }
.river-line { position: absolute; left: 20px; right: 20px; top: 50%; height: 12px; margin-top: -6px; border-radius: 999px; overflow: hidden; opacity: .75; }
.river-line::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: -28px; right: 0;
    background: repeating-linear-gradient(90deg, #60a5fa 0 14px, #93c5fd 14px 28px);
    animation: riverFlowX 1.6s linear infinite;
}
.river-label {
    position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .4rem;
    background: #fff; border: 1px solid #bfdbfe; color: var(--call-dark); font-family: var(--font-head); font-weight: 600; font-size: .8rem;
    padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-sm);
}

.areas-cta {
    margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; text-align: center;
    background: #fff; border: 1px dashed rgba(20,92,140,.35); border-radius: 20px; padding: 20px 16px;
}
.areas-cta-text { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: 1 1 460px; }
.areas-cta h3 { font-size: 1.08rem; font-weight: 700; margin: 0 0 2px; }
.areas-cta p { color: var(--muted); font-size: .94rem; }
.areas-cta-icon { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); font-size: 1.4rem; }
.areas-cta-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1 1 100%; }

/* ---------- Testimonials ---------- */
.testimonials-section { overflow: hidden; }
.testimonials-section::before {
    content: "\201C"; position: absolute; right: 4%; top: -30px; font-family: Georgia, serif; font-size: 260px; line-height: 1;
    color: rgba(20,92,140,.05); pointer-events: none;
}
.swipe-hint { display: flex; align-items: center; justify-content: center; gap: .4rem; color: var(--muted); font-size: .85rem; font-weight: 500; margin: -16px 0 14px; }
/* Phones: swipeable row */
.testimonial-track {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--pad-x) * -1); padding: 4px var(--pad-x) 16px; scroll-padding-inline: var(--pad-x);
    scrollbar-width: thin;
}
.testimonial-card {
    position: relative; flex: 0 0 86%; scroll-snap-align: start; text-align: center;
    background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px 18px;
    display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
}
.testimonial-card::after {
    content: "\201D"; position: absolute; right: 22px; top: 6px; font-family: Georgia, serif; font-size: 80px; line-height: 1;
    color: var(--primary-soft); transition: color .35s ease; display: none;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(204,0,0,.5); }
.testimonial-card:hover::after { color: rgba(204,0,0,.3); }
.stars { color: var(--accent); display: flex; justify-content: center; gap: 3px; margin-bottom: 14px; font-size: .95rem; }
.testimonial-card blockquote { margin: 0 0 20px; flex: 1; }
.testimonial-card blockquote p { margin: 0; color: var(--body); line-height: 1.75; font-size: .96rem; }
.testimonial-card figcaption { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.testimonial-card figcaption strong { display: block; font-family: var(--font-head); color: var(--primary-deep); font-size: .96rem; }
.testimonial-card figcaption small { color: var(--muted); font-size: .83rem; }
.avatar { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .95rem; letter-spacing: .02em; }
.av-1 { background: linear-gradient(135deg, #145c8c, #4f81aa); }
.av-2 { background: linear-gradient(135deg, #059669, #10b981); }
.av-3 { background: linear-gradient(135deg, #a30000, #cc0000); }
.av-4 { background: linear-gradient(135deg, #0369a1, #38bdf8); }
.av-5 { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.av-6 { background: linear-gradient(135deg, #be185d, #f472b6); }

/* ---------- FAQ (native <details>, works without JS) ---------- */
.cta-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cta-pair .btn { padding-inline: .5rem; }
.faq-item {
    border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; overflow: hidden; background: #fff;
    transition: border-color .3s ease, box-shadow .3s ease;
}
.faq-item:last-child { margin-bottom: 0; }
.faq-item:hover { border-color: rgba(20,92,140,.3); box-shadow: var(--shadow-sm); }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 1rem 1.1rem; cursor: pointer; list-style: none; color: var(--primary-deep);
    transition: background-color .25s ease, color .25s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: .98rem; font-weight: 600; line-height: 1.45; color: inherit; }
.faq-chev { font-size: 1rem; transition: transform .3s var(--ease); }
.faq-item[open] summary { color: var(--primary); background: var(--primary-soft); }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-body { color: var(--muted); line-height: 1.75; padding: 1rem 1.1rem 1.2rem; }
.faq-body p { margin: 0; }

/* ---------- Contact ---------- */
.contact-shell, .contact-shell.split { display: grid; gap: 0; align-items: stretch; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.contact-info-panel {
    padding: 30px 18px; text-align: center;
    background:
        radial-gradient(circle at 100% 0%, rgba(204,0,0,.22), transparent 40%),
        linear-gradient(150deg, var(--primary-deep), var(--primary-dark) 60%, var(--primary));
}
.contact-info-panel .section-title { font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.2rem); }
.contact-form-panel { padding: 30px 16px; background: #fff; }
.form-title { font-size: 1.35rem; font-weight: 700; margin-bottom: .25rem; text-align: center; }
.form-subtitle { color: var(--muted); margin-bottom: 1.5rem; text-align: center; }
.contact-details { margin-top: 24px; display: grid; justify-items: center; gap: 8px; }
.contact-line {
    display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
    color: #fff; padding: 10px 12px; border-radius: 14px; overflow-wrap: anywhere;
    transition: background .25s ease, transform .25s var(--ease);
}
a.contact-line:hover { background: rgba(255,255,255,.08); color: #fff; transform: translateY(-2px); }
.contact-line small { display: block; color: rgba(255,255,255,.65); font-size: .78rem; }
.contact-line > span:last-child { line-height: 1.5; font-weight: 500; }
.ci { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; color: #fff; }
.ci-address { background: var(--accent); color: #fff; }
.ci-call { background: var(--call); }
.ci-whatsapp { background: var(--whatsapp); }
.ci-email { background: var(--email); }
.ci-time { background: rgba(255,255,255,.16); }

.form-grid { display: grid; gap: 16px; }
.field-full { grid-column: 1 / -1; }
.form-label { display: block; margin-bottom: .4rem; color: var(--primary-deep); font-weight: 600; font-size: .9rem; }
.form-label .opt { color: var(--muted); font-weight: 400; }
.form-control {
    display: block; width: 100%; min-height: 50px; padding: .65rem .9rem;
    font-size: 1rem; line-height: 1.5; color: var(--ink); background: #fff;
    border: 1px solid #dfe2ee; border-radius: 12px; appearance: none; -webkit-appearance: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control::placeholder { color: #8a93a6; }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control {
    padding-right: 2.6rem; cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23334155' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .9rem center / 14px 10px;
}
.form-control:hover { border-color: #c7cbe0; }
.form-control:focus { outline: 0; border-color: var(--primary-light); box-shadow: 0 0 0 .22rem rgba(79,129,170,.18); }
.invalid-feedback { display: none; margin-top: .35rem; font-size: .85rem; color: var(--email-dark); }
.was-validated .form-control:invalid { border-color: var(--email); }
.was-validated .form-control:invalid:focus { box-shadow: 0 0 0 .22rem rgba(220,38,38,.15); }
.was-validated .form-control:invalid ~ .invalid-feedback { display: block; }
.was-validated .form-control:valid { border-color: var(--growth); }
.form-actions { display: grid; gap: 12px; margin-top: 8px; }
.form-actions .btn { width: 100%; padding-inline: .75rem; }
.form-status { margin-top: 1.25rem; padding: .9rem 1rem; border: 1px solid; border-radius: 12px; font-size: .95rem; line-height: 1.55; }
.form-status[hidden] { display: none; }
.form-status .i { margin-right: .4rem; }
.form-status.is-success { background: var(--growth-soft); border-color: #a7f3d0; color: #065f46; }
.form-status.is-warning { background: #fffbeb; border-color: #ffc2c2; color: #92400e; }
.form-status a { color: inherit; font-weight: 600; text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { margin-bottom: var(--gap); overflow: hidden; background: #0a2236; color: rgba(255,255,255,.72); }
.footer-main { display: grid; gap: 32px; padding-block: 44px 32px; text-align: center; }
.footer-logo { width: 250px; margin: 0 auto 1.1rem; padding: 12px 16px; background: #fff; border-radius: 16px; }
.footer-copy { max-width: 420px; margin: 0 auto 1rem; line-height: 1.7; }
.footer-heading { font-size: 1.02rem; font-weight: 600; color: #fff; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .55rem; }
.footer-links li:last-child { margin-bottom: 0; }
.footer-links a { color: rgba(255,255,255,.72); transition: color .2s ease, transform .25s var(--ease); display: inline-block; }
.footer-links a:hover { color: var(--accent-on-dark); }
.footer-address { line-height: 1.7; }
.footer-address p { margin-bottom: .5rem; }
.footer-address .text-accent { color: var(--accent-on-dark); }
.footer-address p:last-child { margin-bottom: 0; }
.footer-address a { color: rgba(255,255,255,.85); }
.footer-address a:hover { color: var(--accent-on-dark); }
.c-call { color: #60a5fa; }
.c-whatsapp { color: var(--whatsapp); }
.c-email { color: #f87171; }
.footer-social { display: flex; justify-content: center; gap: .5rem; }
.footer-social a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.1rem; transition: transform .25s var(--ease), filter .25s ease; }
.footer-social a:hover { transform: translateY(-3px); filter: brightness(1.1); color: #fff; }
.fs-whatsapp { background: var(--whatsapp); }
.fs-youtube { background: #e11d48; }
.fs-instagram { background: linear-gradient(135deg, #f59e0b, #e11d48 55%, #7c3aed); }
.fs-facebook { background: #1877f2; }
.footer-bottom a { color: rgba(255,255,255,.85); }
.footer-bottom a:hover { color: var(--accent-on-dark); }
.footer-places { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-bottom: 24px; }
.footer-places a {
    padding: 7px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
    color: rgba(255,255,255,.8); font-size: .84rem; font-weight: 500; transition: all .25s ease;
}
.footer-places a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.footer-bottom {
    display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center;
    padding-block: 16px 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; color: rgba(255,255,255,.65);
}

/* ---------- Floating contact buttons ---------- */
/* Phones: a compact bottom action bar (Call • WhatsApp • Enquire) */
.float-actions {
    position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 1030;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px;
    background: rgba(255,255,255,.97); border-radius: 18px; box-shadow: 0 -6px 30px rgba(4,20,36,.2);
}
.float-btn {
    position: relative; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; gap: .45rem;
    color: #fff; font-size: 1.1rem; transition: transform .25s var(--ease), filter .25s ease;
}
.float-btn:hover { color: #fff; filter: brightness(1.08); }
.float-label { font-family: var(--font-head); font-weight: 600; font-size: .86rem; }
.lg-only { display: none; }
.float-call { background: var(--call); }
.float-whatsapp { background: var(--whatsapp); }
.float-enquire { background: var(--accent); }
/* Leave room below the footer so the bar never covers its text */
body { padding-bottom: 72px; }

/* ---------- Scroll reveal (only when JS is running; never on the hero) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .testimonial-track .reveal { opacity: 1; transform: none; }
.rd-1 { --delay: .08s; }
.rd-2 { --delay: .12s; }
.rd-3 { --delay: .16s; }
.rd-4 { --delay: .22s; }

/* ---------- Keyframes ---------- */
@keyframes marker { to { background-size: 100% .22em; } }
@keyframes drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(14px, -22px) rotate(8deg); }
    66% { transform: translate(-10px, 12px) rotate(-6deg); }
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes growBar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes dotIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes dotPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .6; } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes coinFlip { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
@keyframes pinBounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-4px); } }
@keyframes riverFlowX { from { transform: translateX(0); } to { transform: translateX(28px); } }
@keyframes riverFlowY { from { transform: translateY(0); } to { transform: translateY(28px); } }
@keyframes pulseRing { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }

/* ==========================================================================
   ≥ 400px — larger phones
   ========================================================================== */
@media (min-width: 400px) {
    .brand-logo { width: 180px; }
    .hero-point { font-size: .8rem; }
    .mini-badge strong { font-size: .82rem; }
    .mini-badge small { font-size: .7rem; }
}

/* ==========================================================================
   ≥ 576px — small tablets / landscape phones
   ========================================================================== */
@media (min-width: 576px) {
    .brand-logo { width: 200px; }
    .modal-head { padding: 24px 64px 22px 26px; }
    .modal-head h2 { font-size: 1.45rem; }
    .modal-body { padding: 22px 26px 24px; }
    .hero-text { font-size: 1.04rem; }
    .hero-cta { display: flex; flex-wrap: wrap; justify-content: center; }
    .hero-cta .btn { padding-inline: 1.5rem; }
    .eyebrow { font-size: .85rem; padding: .45rem 1rem; }
    .hero-card { padding: 26px 24px; }
    .boards-grid { grid-template-columns: 1fr 1fr; }
    .method-grid { grid-template-columns: 1fr 1fr; }
    .form-grid { grid-template-columns: 1fr 1fr; }
    .form-actions { grid-template-columns: 1fr 1fr; }
    .about-panel { padding: 40px 32px 70px; }
    .quote-card { margin-inline: 32px; }
    .subject-card { min-height: 160px; padding: 22px 14px; }
    .subject-card h3 { font-size: 1rem; }
    .coin { width: 54px; height: 54px; font-size: 1.35rem; }
    .areas-cta-actions { display: flex; flex: 0 0 auto; }
    .sym { font-size: 3rem; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-brand, .footer-contact { grid-column: 1 / -1; }
}

/* ==========================================================================
   ≥ 768px — tablets
   ========================================================================== */
@media (min-width: 768px) {
    .top-strip { display: flex; }
    .nav { padding: 0 16px 0 22px; }
    .brand-logo { width: 210px; }
    .section-text { font-size: 1.04rem; }

    /* Hero: points inline, badges float around the card */
    .hero-grid { padding-block: 64px 80px; }
    .hero-points { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.5rem; }
    .hero-point { flex-direction: row; gap: .5rem; padding: 0; background: none; border: 0; font-size: .95rem; }
    .hero-point .i { width: 1.15em; height: 1.15em; padding: 0; background: none; }
    .hero-card-wrap { display: block; margin-top: 30px; margin-bottom: 30px; }
    .hero-card { padding: 30px 32px 34px; border-radius: 26px; }
    .hero-card-title { font-size: 1.35rem; }
    .mini-badge { position: absolute; min-width: 190px; padding: 11px 15px; gap: .75rem; border-radius: 16px; animation: floatY 5s ease-in-out infinite; }
    .mini-badge > .i { font-size: 1.45rem; }
    .mini-badge strong { font-size: .86rem; }
    .mini-badge small { font-size: .74rem; }
    .badge-top { top: -44px; right: 20px; }
    .badge-bottom { bottom: -46px; left: -24px; animation-delay: -2.5s; }

    .trust-list { grid-template-columns: repeat(4, 1fr); }
    .trust-item { min-height: 96px; flex-direction: row; gap: .7rem; font-size: .92rem; border-bottom: 0; border-right: 1px solid rgba(255,255,255,.1); }
    .trust-item:nth-child(2n) { border-right: 1px solid rgba(255,255,255,.1); }
    .trust-item:last-child { border-right: 0; }

    .cards-3 { grid-template-columns: 1fr 1fr; gap: 24px; }
    .cards-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px); }
    .program-card { padding: 32px 30px; }

    .subjects-grid { gap: 16px; }
    .subjects-section::before { font-size: 400px; top: -90px; }
    .subjects-section::after { font-size: 300px; bottom: -80px; }

    .feature-row { flex-direction: row; align-items: flex-start; text-align: left; gap: 1rem; }
    .about-panel { text-align: left; padding: 44px 44px 170px; }
    .about-panel-icon { margin-left: 0; }
    .about-visual { padding: 20px 55px 50px 0; max-width: 650px; margin-inline: auto; }
    .quote-card { position: absolute; right: 0; bottom: 0; width: 76%; margin: 0; padding: 22px 26px; text-align: left; border-top: 0; border-left: 4px solid var(--accent); }

    .resource-card { flex-direction: row; align-items: flex-start; gap: 16px; text-align: left; border-top-width: 1px; border-top-color: var(--line); border-left: 4px solid var(--tip); padding: 22px 24px; }
    .resource-card:hover { transform: translateX(8px); }
    .tip-accounts { margin-right: 44px; }
    .tip-economics { margin-left: 44px; }
    .tip-exam { margin-right: 22px; }

    .city-head { flex-direction: row; text-align: left; gap: 14px; padding: 22px 24px; }
    .city-count { margin-left: auto; }
    .city-body { padding: 22px 24px 26px; }
    .zone, .zone h4 { text-align: left; justify-content: flex-start; }
    .zone h4::before { display: none; }
    .area-chips { justify-content: flex-start; }
    .areas-cta { justify-content: space-between; text-align: left; padding: 22px 26px; }
    .areas-cta-text { flex-direction: row; align-items: center; }

    .swipe-hint { display: none; }
    .testimonial-track { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; overflow: visible; margin: 0; padding: 0; }
    .testimonial-card { text-align: left; padding: 28px; }
    .testimonial-card::after { display: block; }
    .stars { justify-content: flex-start; }
    .testimonial-card figcaption { flex-direction: row; gap: 12px; }
    .js .testimonial-track .reveal { opacity: 0; transform: translateY(26px); }
    .js .testimonial-track .reveal.is-visible { opacity: 1; transform: none; }

    .cta-pair { display: flex; flex-wrap: wrap; justify-content: center; }
    .cta-pair .btn { padding-inline: 1.4rem; }
    .faq-item summary { padding: 1.15rem 1.3rem; }
    .faq-item summary h3 { font-size: 1rem; }
    .faq-body { padding: 1rem 1.3rem 1.3rem; }

    .contact-info-panel, .contact-form-panel { padding: 40px; }
    .form-actions { display: flex; flex-wrap: wrap; }
    .form-actions .btn { width: auto; padding-inline: 1.6rem; }

    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
    /* Tablet/desktop: floating circles + "Enquire Now" pill */
    .float-actions { left: auto; right: 18px; bottom: 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; padding: 0; background: none; border-radius: 0; box-shadow: none; }
    .float-btn { width: 56px; height: 56px; border-radius: 50%; font-size: 1.45rem; box-shadow: 0 10px 26px rgba(0,0,0,.22); }
    .float-btn:hover { transform: scale(1.06); }
    .float-call { font-size: 1.25rem; }
    .float-call .float-label, .float-whatsapp .float-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .float-whatsapp::before {
        content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--whatsapp); z-index: -1;
        animation: pulseRing 2.2s ease-out infinite;
    }
    .float-enquire { width: auto; padding: 0 22px; border-radius: 999px; font-size: 1.1rem; }
    .lg-only { display: inline; }
    .float-enquire .float-label { font-size: 1rem; }
    body { padding-bottom: 0; }
    .site-footer { padding-bottom: 0; }
    .footer-bottom { padding-right: 80px; }
}

/* ==========================================================================
   ≥ 992px — laptops / desktops
   ========================================================================== */
@media (min-width: 992px) {
    /* Desktop navigation */
    .nav { flex-wrap: nowrap; padding: 0 18px 0 24px; }
    .brand-logo { width: 190px; }
    .nav-toggle { display: none; }
    .nav-menu, .site-header.is-open .nav-menu { display: flex; align-items: center; gap: .35rem; flex-basis: auto; padding: 0; border: 0; max-height: none; overflow: visible; }
    .nav-links { display: flex; align-items: center; }
    .nav-link { padding: .6rem .5rem; font-size: .94rem; font-weight: 500; border-radius: 0; }
    .nav-link:hover, .nav-link.active { background: none; }
    .nav-link::after {
        content: ""; position: absolute; left: .5rem; right: .5rem; bottom: .25rem; height: 2px; border-radius: 2px;
        background: linear-gradient(90deg, var(--primary), var(--accent));
        transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
    }
    .nav-link:hover::after, .nav-link.active::after, .has-mega.is-open > .nav-link::after { transform: scaleX(1); }
    .nav-cta { width: auto; margin: 0 0 0 .4rem; min-height: 46px; padding-inline: 1.3rem; }

    /* Mega menu → full-width panel under the header */
    .mega-toggle { width: auto; cursor: pointer; }
    .mega {
        display: block; position: absolute; left: 0; right: 0; top: 100%; padding: 10px 0 0;   /* top padding bridges the hover gap */
        visibility: hidden; opacity: 0; transform: translateY(8px); pointer-events: none;
        transition: opacity .2s ease, transform .25s var(--ease), visibility 0s linear .25s;
    }
    .has-mega:hover > .mega, .has-mega.is-open > .mega {
        visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s;
    }
    .nav-links:has(.has-mega:hover) .has-mega:not(:hover) > .mega { visibility: hidden; opacity: 0; pointer-events: none; }
    .mega-inner { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-box); box-shadow: 0 30px 70px rgba(11,47,74,.22); }
    .mega-grid { gap: 20px; }
    .mega-grid-courses { grid-template-columns: 1fr 1fr 1fr 1.05fr; }
    .mega-grid-locations { grid-template-columns: 1fr 1fr 1fr 1.05fr; }
    .mega-title { margin-top: 18px; }
    .mega-col > .mega-title:first-child { margin-top: 0; }
    .mega-promo { margin-top: 0; height: 100%; display: flex; flex-direction: column; }
    .mega-promo-actions { margin-top: auto; }

    .ts-email { display: inline-flex !important; }

    .hero-grid { grid-template-columns: 7fr 5fr; align-items: center; gap: 48px; padding-block: 80px 100px; min-height: 640px; }
    .hero-copy { text-align: left; }
    .hero-text { margin-inline: 0; font-size: 1.08rem; }
    .hero-cta, .hero-points { justify-content: flex-start; }
    .hero-card-wrap { margin: 0 0 0 auto; }
    .sym { font-size: 3.4rem; }
    .s1, .s6 { font-size: 4.5rem; }

    .split { grid-template-columns: 1fr 1fr; gap: 56px; }
    .split-5-7 { grid-template-columns: 5fr 7fr; }
    .split-4-8 { grid-template-columns: 4fr 8fr; align-items: start; }
    .split-5-7.contact-shell { gap: 0; align-items: stretch; }
    .about-visual { margin: 0; }
    .mobile-center { text-align: left; }
    .mobile-center .cta-pair { justify-content: flex-start; }
    .section-head-split { grid-template-columns: 7fr 5fr; gap: 40px; text-align: left; margin-bottom: 48px; }
    .section-head-split .section-title { margin-bottom: 0; }
    .section-head-split .head-aside { justify-self: end; text-align: right; }
    .section-head-split .section-text { text-align: left; }
    .section-head { margin-bottom: 48px; }

    .subjects-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
    .tips-copy { order: 2; }

    .areas-map { grid-template-columns: 1fr 70px 1.25fr; }
    .river { height: auto; }
    .river-line { left: 50%; right: auto; top: 24px; bottom: 24px; width: 14px; height: auto; margin: 0 0 0 -7px; }
    .river-line::before { left: 0; right: 0; top: -28px; bottom: 0; background: repeating-linear-gradient(180deg, #60a5fa 0 14px, #93c5fd 14px 28px); animation-name: riverFlowY; }
    .river-label { writing-mode: vertical-rl; transform: rotate(180deg); padding: 14px 7px; }
    .river-label .i { transform: rotate(90deg); }

    .contact-info-panel, .contact-form-panel { padding: 50px; }
    .contact-info-panel { text-align: left; }
    .contact-details { justify-items: stretch; gap: 10px; }
    .contact-line { flex-direction: row; text-align: left; gap: 14px; margin: 0 -12px; }
    a.contact-line:hover { transform: translateX(4px); }
    .form-title, .form-subtitle { text-align: left; }

    .footer-main { grid-template-columns: 1.5fr .8fr 1fr 1.25fr; gap: 40px; padding-block: 60px 40px; text-align: left; }
    .footer-brand, .footer-contact { grid-column: auto; }
    .footer-logo, .footer-copy { margin-left: 0; }
    .footer-social { justify-content: flex-start; }
    .footer-links a:hover { transform: translateX(6px); }
}

/* ==========================================================================
   ≥ 1200px — wide desktops (designed for 1360px; content capped at 1350px)
   ========================================================================== */
@media (min-width: 1200px) {
    .brand-logo { width: 220px; }
    .nav { padding: 0 22px 0 30px; }
    .nav-link { padding: .6rem .8rem; font-size: 1rem; }
    .nav-link::after { left: .8rem; right: .8rem; }
    .top-strip { padding-inline: 30px; }
    .hero-grid { gap: 64px; min-height: 680px; }
    .cards-3 { grid-template-columns: repeat(3, 1fr); }
    .cards-3 > :last-child:nth-child(odd) { grid-column: auto; width: auto; }
    .boards-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
    .board-card { text-align: left; padding: 30px 26px; }
    .board-card .area-link { justify-content: flex-start; }
    .method-card { text-align: left; padding: 28px; }
    .testimonial-track { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .section-text { font-size: 1.06rem; }
}

/* ==========================================================================
   Inner pages (course, subject, location, guide pages)
   ========================================================================== */
.page-hero .hero-grid { padding-block: 36px 44px; }
.breadcrumb { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin-bottom: 1rem; font-size: .82rem; color: rgba(255,255,255,.7); }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; opacity: .5; }
.breadcrumb a { color: #ffc2c2; }
.breadcrumb a:hover { color: #fff; }
.page-hero .hero-title { font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3rem); }
.glance-card { padding: 22px 18px; }
.glance-title { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--primary-deep); margin: 0 0 .25rem; }
.glance-list li { display: flex; align-items: flex-start; gap: .8rem; padding: 11px 0; border-bottom: 1px dashed #e1e4f0; }
.glance-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.glance-list .gi { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 1rem; }
.glance-list strong { display: block; font-family: var(--font-head); font-size: .92rem; color: var(--primary-deep); }
.glance-list small { color: var(--muted); font-size: .84rem; line-height: 1.45; display: block; }

.toc-links { counter-reset: toc; }
.toc-links li { counter-increment: toc; border-bottom: 1px dashed #e1e4f0; }
.toc-links li:last-child { border-bottom: 0; }
.toc-links a { display: flex; align-items: center; gap: .75rem; padding: 10px 0; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--primary-deep); }
.toc-links a::before { content: counter(toc, decimal-leading-zero); flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: .76rem; }
.toc-links a:hover { color: var(--primary); }
.prose h2[id] { scroll-margin-top: 20px; }

/* Long-form text (guides, page intros) */
.prose { max-width: 820px; margin-inline: auto; font-size: 1rem; line-height: 1.8; color: var(--body); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); margin: 2.2rem 0 .8rem; }
.prose h3 { font-size: 1.15rem; margin: 1.6rem 0 .6rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--accent-dark); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.callout { margin: 1.5rem 0; padding: 16px 18px; border-left: 4px solid var(--accent); border-radius: 14px; background: var(--accent-soft); color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }
.toc { margin: 0 0 2rem; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.toc p { margin: 0 0 .5rem; font-family: var(--font-head); font-weight: 600; color: var(--primary-deep); }
.toc ol { margin: 0; }
.article-meta { color: rgba(255,255,255,.75); font-size: .88rem; margin: 0; }

/* Tables (syllabus, comparisons) */
.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: .93rem; line-height: 1.55; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--primary-soft); color: var(--primary-deep); font-family: var(--font-head); font-weight: 600; white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table.compact { min-width: 0; }
.data-table.compact th[scope="row"] { width: 34%; }
.data-table tbody th { font-family: var(--font-head); font-weight: 600; color: var(--primary-deep); }

/* Paper / subject cards reuse .method-card; grid with up to 3 columns */
.paper-grid { display: grid; gap: 16px; }
.paper-card { text-align: left; }
.paper-card .paper-tag { display: inline-block; margin-bottom: .6rem; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-family: var(--font-head); font-size: .74rem; font-weight: 600; }
.paper-card ul { margin: .6rem 0 0; display: grid; gap: .35rem; }
.paper-card li { display: flex; gap: .5rem; font-size: .9rem; color: var(--body); }
.paper-card li .i { color: var(--growth); margin-top: .25em; }

.paper-card > p { margin-bottom: 0; }
.paper-card .mt-link { margin-top: 14px; }
.section-note { max-width: 760px; margin: 24px auto 0; text-align: center; font-size: .86rem; color: var(--muted); }
.section-note a { text-decoration: underline; }

/* Related links */
.link-grid { display: grid; gap: 12px; }
.link-card {
    display: flex; align-items: center; gap: 12px; height: 100%; padding: 15px 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--primary-deep);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(20,92,140,.35); color: var(--primary); }
.link-card .lc-icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); font-size: 1.05rem; }
.link-card small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .8rem; color: var(--muted); }
.link-card .lc-arrow { margin-left: auto; color: var(--primary); transition: transform .25s var(--ease); }
.link-card:hover .lc-arrow { transform: translateX(4px); }

/* Faculty cards (reuse .board-card) */
.faculty-card .avatar { width: 54px; height: 54px; flex-basis: 54px; margin: 0 auto 14px; font-size: 1.05rem; }
.faculty-card .board-tag { margin-bottom: 10px; }
.faculty-card h3 { margin-bottom: .35rem; }
.faculty-cta { background: linear-gradient(145deg, var(--primary-deep), var(--primary)); border-color: transparent; color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; }
.faculty-cta h3 { color: #fff; }
.faculty-cta p { color: rgba(255,255,255,.82); }

/* Success-story cards (reuse .testimonial-card) */
.story-icon { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; color: #fff; }
.story-youtube { background: #e11d48; }
.story-google { background: var(--call); }
.story-review { background: var(--accent); color: #fff; }
.story-card h3 { font-size: 1.12rem; }
.story-card p { color: var(--muted); line-height: 1.7; flex: 1; }
.story-card .btn { margin-top: 6px; }

/* Map */
.map-embed { margin-top: 28px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--soft); aspect-ratio: 4 / 3; }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-facade { display: grid; place-items: center; aspect-ratio: auto; min-height: 260px; padding: 28px 18px; text-align: center;
    background:
        linear-gradient(rgba(20,92,140,.06) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, rgba(20,92,140,.06) 1px, transparent 1px) 0 0 / 28px 28px,
        var(--soft);
}
.map-facade.is-loaded { display: block; padding: 0; aspect-ratio: 4 / 3; }
.map-placeholder p { color: var(--muted); margin: 10px 0 16px; }
.map-placeholder strong { color: var(--primary-deep); }
.map-pin { width: 58px; height: 58px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--email); color: #fff; font-size: 1.5rem; box-shadow: 0 12px 26px rgba(220,38,38,.3); animation: floatY 3s ease-in-out infinite; }
.map-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

@media (min-width: 576px) {
    .link-grid { grid-template-columns: 1fr 1fr; }
    .paper-grid { grid-template-columns: 1fr 1fr; }
    .glance-card { padding: 26px 24px; }
    .map-embed { aspect-ratio: 16 / 9; }
}
@media (min-width: 768px) {
    .page-hero .hero-grid { padding-block: 52px 60px; }
    .faculty-card { text-align: center; }
    .story-card { text-align: center; }
    .story-card .stars { justify-content: center; }
    .map-embed { aspect-ratio: 21 / 9; }
}
@media (min-width: 992px) {
    .page-hero .hero-grid { min-height: 0; padding-block: 64px 72px; }
    .breadcrumb { justify-content: flex-start; }
    .link-grid { grid-template-columns: repeat(3, 1fr); }
    .paper-grid { grid-template-columns: repeat(3, 1fr); }
    .paper-grid-2 { grid-template-columns: 1fr 1fr; }
    .prose { font-size: 1.04rem; }
}
@media (min-width: 1200px) {
    .paper-grid-2 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1200px) {
    .faculty-card { text-align: left; }
    .faculty-card .avatar { margin-left: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal, .js .testimonial-track .reveal { opacity: 1; transform: none; }
    .growth-chart .trend { stroke-dashoffset: 0; }
    .hero-title .highlight { background-size: 100% .22em; }
    .ticker-track { flex-wrap: wrap; width: auto; }
    .ticker-list[aria-hidden="true"] { display: none; }
}

/* ==========================================================================
   Logo — crisp SVG, larger and better aligned in the header
   ========================================================================== */
.brand { padding-block: 6px; }
.brand-logo { display: block; width: 178px; height: auto; }
.footer-logo { height: auto; }
@media (min-width: 400px)  { .brand-logo { width: 192px; } }
@media (min-width: 576px)  { .brand-logo { width: 210px; } }
@media (min-width: 768px)  { .brand-logo { width: 228px; } }
@media (min-width: 992px)  { .brand-logo { width: 200px; } .brand { margin-right: .5rem; } }
@media (min-width: 1200px) { .brand-logo { width: 240px; } }
