/* Vedic Classes — public site styles */
:root {
  --ink: #16325C;        /* deep school-uniform blue */
  --ink-2: #0F2444;
  --saffron: #F2A93B;    /* marigold accent */
  --saffron-2: #D98A16;
  --ink-3: #2A4F8A;      /* lighter brand shade for glows */
  --on-accent: #0F2444;  /* text on accent-coloured buttons */
  --paper: #FFFFFF;
  --wash: #F1F4F9;       /* cool exercise-book grey-blue */
  --grid: #DCE3EE;
  --text: #1C2230;
  --muted: #5A6478;
  --leaf: #1F8A55;
  --err: #B3261E;
  --radius: 14px;
  --wrap: 1160px;
  --font-head: "Baloo 2", "Hind", system-ui, sans-serif;
  --font-body: "Hind", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font: 400 1.0625rem/1.65 var(--font-body); color: var(--text); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }
svg { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.loading { min-height: 70vh; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.35em; border-radius: 999px; border: 2px solid var(--saffron);
  background: var(--saffron); color: var(--on-accent); font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--saffron-2); border-color: var(--saffron-2); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-wa { background: #1FAF5A; border-color: #1FAF5A; color: #fff; }
.btn-wa:hover { background: #178A47; border-color: #178A47; }
.btn-sm { padding: .55em 1em; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0 0; }
.link { display: inline-flex; gap: .35em; align-items: center; font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--grid); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.35rem/1 var(--font-head); color: var(--ink); }
.brand-logo { height: 44px; width: auto; }
.brand .ph { width: 40px; height: 40px; font-size: .9rem; }
#nav { display: flex; align-items: center; gap: 4px; }
#nav > a:not(.btn) { padding: .5em .8em; text-decoration: none; font-weight: 500; color: var(--text); border-radius: 8px; }
#nav > a:not(.btn):hover { background: var(--wash); }
#nav > a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -3px 0 var(--saffron); border-radius: 0; }
#nav .btn { margin-left: 8px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 28px; height: 28px; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  #nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch;
    padding: 8px 20px 20px; border-bottom: 1px solid var(--grid); box-shadow: 0 12px 24px color-mix(in srgb, var(--ink) 8%, transparent); }
  #nav.open { display: flex; }
  #nav > a:not(.btn) { padding: .8em .4em; border-bottom: 1px solid var(--wash); }
  #nav > a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--saffron); padding-left: .9em; }
  #nav .btn { margin: 12px 0 0; justify-content: center; }
}

/* Hero — exercise-book grid paper */
.hero { background-color: var(--wash);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px; border-bottom: 3px solid var(--ink); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { max-width: 14ch; }
.hero-sub { display: inline-block; background: var(--ink); color: #fff; font-weight: 600; padding: .3em .8em; border-radius: 6px; margin-bottom: 1.2em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }
.hero .lead { color: var(--text); }
.hero-art img { width: 100%; border-radius: var(--radius); border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--saffron); background: #fff; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; padding-bottom: 48px; }
  .hero-art img { box-shadow: 6px 6px 0 var(--saffron); }
}

/* Sections */
.sec { padding: 80px 0; }
.sec-wash { background: var(--wash); }
.page-top { padding-top: 56px; }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.sub-h { margin-top: 48px; }
@media (max-width: 600px) { .sec { padding: 56px 0; } }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.features li { padding: 28px 28px 24px 0; border-bottom: 1px solid var(--grid); }
.features li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--grid); }
.f-icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.features p { color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr 1fr; }
  .features li, .features li:not(:nth-child(3n+1)) { padding: 24px 20px 20px 0; border-left: 0; }
  .features li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--grid); }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .features li:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* Faces */
.face { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--grid); }
.ph { display: inline-grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--saffron); font: 700 1.6rem/1 var(--font-head); }
.ph.face { width: 100%; aspect-ratio: 1; }
.face-sm { width: 56px; height: 56px; }
.ph.face-sm { width: 56px; height: 56px; font-size: 1.1rem; }
.face-xs { width: 44px; height: 44px; }
.ph.face-xs { width: 44px; height: 44px; font-size: .95rem; }

.faculty { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 32px 24px; text-align: center; }
.faculty .face { border: 3px solid #fff; box-shadow: 0 0 0 2px var(--ink); max-width: 150px; margin: 0 auto 12px; }
.t-name { font: 700 1.1rem/1.2 var(--font-head); color: var(--ink); margin: 0; }
.t-sub { color: var(--muted); margin: 2px 0 0; }
@media (max-width: 520px) { .faculty { grid-template-columns: repeat(2, 1fr); } }

/* Results — styled like a marks column */
.results { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.results li { border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px; background: #fff; }
.r-top { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-bottom: 14px; }
.r-top .face-sm { border-radius: 50%; object-fit: cover; }
.r-name { font: 700 1.15rem/1.2 var(--font-head); color: var(--ink); margin: 0; }
.r-meta { color: var(--muted); font-size: .95rem; margin: 0; }
.r-score { font: 800 2rem/1 var(--font-head); color: var(--leaf); margin: 0; padding: 6px 10px; border: 2px solid var(--leaf); border-radius: 10px; transform: rotate(-3deg); }
blockquote { margin: 0; color: var(--text); }
@media (max-width: 400px) { .results { grid-template-columns: 1fr; } }

.quotes { list-style: none; margin: 0; padding: 0; columns: 3 300px; column-gap: 24px; }
.quotes li { break-inside: avoid; background: #fff; border-radius: var(--radius); padding: 24px; margin-bottom: 24px; border-left: 4px solid var(--saffron); }
.quotes blockquote { margin-bottom: 16px; }
.q-by { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: .95rem; line-height: 1.35; }
.q-by strong { color: var(--ink); }
.q-by img { border-radius: 50%; object-fit: cover; }

.insta { padding: 48px 0; border-top: 1px solid var(--grid); }
.insta-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.insta h2 { margin-bottom: .2em; } .insta p { margin: 0; color: var(--muted); }

/* Demo form */
.demo { background: var(--ink); color: #fff; }
.demo h2 { color: #fff; }
.demo .lead { color: #D5DEEC; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.campus-list { list-style: none; padding: 0; margin: 24px 0 0; }
.campus-list li { display: flex; gap: 12px; margin-bottom: 16px; color: #D5DEEC; }
.campus-list strong { color: #fff; }
.campus-list svg { color: var(--saffron); margin-top: 4px; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; gap: 32px; } }

.card { background: #fff; color: var(--text); border-radius: var(--radius); padding: 28px; }
.form label { display: block; font-weight: 600; margin-bottom: 16px; color: var(--ink); }
.form input, .form select { display: block; width: 100%; margin-top: 6px; padding: .75em .9em; font: inherit; font-weight: 400; color: var(--text);
  border: 1.5px solid #B9C4D6; border-radius: 10px; background: #fff; }
.form input:focus, .form select:focus { border-color: var(--ink); outline: 3px solid color-mix(in srgb, var(--saffron) 45%, transparent); outline-offset: 0; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.hp { position: absolute !important; left: -9999px !important; }
.form-msg { min-height: 1.4em; margin: 0 0 12px; font-weight: 500; }
.form-msg.ok { color: var(--leaf); } .form-msg.err { color: var(--err); }

/* About */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split-rev .split-art { order: -1; }
.split-art img { border-radius: var(--radius); border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--saffron); width: 100%; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.4em; } .prose h3 { margin-top: 1.4em; scroll-margin-top: 90px; }
.prose h2:first-child, .prose h1 + * { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; } .prose li { margin-bottom: .35em; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .split-rev .split-art { order: 0; } .split-art img { box-shadow: 6px 6px 0 var(--saffron); } }

/* Gallery */
.photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.photos p, .videos p { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }
.photo { display: block; width: 100%; padding: 0; border: 0; background: var(--wash); border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.yt, .videos iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 10px; overflow: hidden; }
.yt { position: relative; padding: 0; cursor: pointer; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; border-radius: 12px; background: var(--saffron); color: var(--on-accent); display: grid; place-items: center; }
.yt-play svg { width: 28px; height: 28px; }
.yt:hover .yt-play { background: #fff; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); }
.lightbox::backdrop { background: rgba(10,20,40,.85); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox p { color: #fff; text-align: center; margin: 10px 0 0; }
.lb-close { position: fixed; top: 12px; right: 16px; font-size: 2.2rem; line-height: 1; background: none; border: 0; color: #fff; cursor: pointer; }

/* Contact */
.campuses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.campuses .card { border: 2px solid var(--ink); }
.campuses h2 { font-size: 1.4rem; }
.campuses iframe { width: 100%; height: 260px; border: 0; border-radius: 10px; margin-top: 8px; background: var(--wash); }
@media (max-width: 760px) { .campuses { grid-template-columns: 1fr; } }

/* Terms */
.terms-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: 90px; font-size: .95rem; max-height: calc(100vh - 110px); overflow: auto; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc a { display: block; padding: 4px 0; text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--ink); }
@media (max-width: 860px) { .terms-grid { grid-template-columns: 1fr; } .toc { position: static; max-height: none; } }

/* Footer */
.site-footer { background: var(--ink-2); color: #C3CEE0; padding: 56px 0 24px; font-size: .98rem; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; gap: 32px; }
.foot-brand { font: 800 1.5rem/1 var(--font-head); color: #fff; }
.foot-h { font-weight: 600; color: var(--saffron); margin-bottom: .4em; }
.site-footer .foot-h { color: var(--saffron); }
.socials { display: flex; gap: 12px; } .socials svg { width: 24px; height: 24px; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #1FAF5A; color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.wa-float svg { width: 30px; height: 30px; }

/* Page-load: one gentle reveal of the hero */
body:not(.ready) main { opacity: 0; }
main { transition: opacity .25s ease; }
.preview-bar { background: var(--saffron); color: var(--on-accent); text-align: center; font-weight: 600; padding: 8px 16px; }
.hero-grid:has(> :only-child), .split:has(> :only-child) { grid-template-columns: 1fr; }

/* Instagram posts */
.insta .insta-row { margin-bottom: 0; }
.insta-posts { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.insta-posts li { min-width: 0; }
.insta-posts .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: 100% !important; background: #fff; border: 1px solid var(--grid) !important; border-radius: 12px !important; box-shadow: none !important; }
.insta-posts blockquote.instagram-media:not([style]) { padding: 24px; text-align: center; min-height: 120px; display: grid; place-items: center; }
.insta-widget { margin-top: 32px; }
.insta-widget iframe { width: 100%; border: 0; }

/* ═══════════════════════════════════════════════════════════════
   Celebration layer: achievers stage, stats band, motion polish
   ═══════════════════════════════════════════════════════════════ */
:root {
  --gold: #F2C14E; --gold-hi: #FFF1B8; --gold-lo: #C98A1B;
  --silver: #D9E2EE; --bronze: #E0A06A;
  --night: #0B1B36;
  --ease-out: cubic-bezier(.2,.8,.2,1);
}

.hero-title { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.01em; max-width: 14ch; }

/* Stage */
.stage { position: relative; overflow: hidden; isolation: isolate; color: #fff; text-align: center;
  background: radial-gradient(120% 90% at 50% -10%, var(--ink-3) 0%, var(--ink) 38%, var(--night) 100%);
  padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 6vw, 72px); }
.stage::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; z-index: 3;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-hi), var(--gold), transparent); }
.stage-rays { position: absolute; left: 50%; top: 58%; width: 190vmax; height: 190vmax; translate: -50% -50%; z-index: -1; opacity: .55;
  background: repeating-conic-gradient(from 0deg, rgba(242,193,78,.11) 0 7deg, transparent 7deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 55%); mask: radial-gradient(circle, #000 0 18%, transparent 55%);
  animation: spin 90s linear infinite; }
.glitter { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.stage-inner { position: relative; z-index: 1; }

.stage-kicker { margin: 0 0 14px; }
.stage-kicker span { display: inline-block; padding: .35em 1em; border-radius: 999px; font-weight: 600; letter-spacing: .02em;
  color: var(--gold-hi); background: rgba(242,193,78,.12); border: 1px solid rgba(242,193,78,.45); }
.stage-title { font-size: clamp(2.8rem, 8vw, 5.4rem); line-height: 1; margin: 0 0 .25em; font-weight: 800; color: var(--gold);
  background: linear-gradient(100deg, #E9A93A 0%, #FFF1B8 22%, #F2C14E 40%, #C98A1B 55%, #FFF1B8 72%, #F2C14E 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(242,193,78,.35)); animation: foil 7s linear infinite; }
.stage-lead { max-width: 52ch; margin: 0 auto 8px; color: #D6E0F0; font-size: 1.15rem; }

/* Podium */
.podium { list-style: none; margin: 40px auto 0; padding: 0; max-width: 900px; display: grid;
  grid-template-columns: 1fr 1.18fr 1fr; align-items: end; gap: clamp(10px, 2.2vw, 26px); }
.pod { position: relative; display: flex; flex-direction: column; align-items: center; cursor: pointer;
  opacity: 0; transform: translateY(60px) scale(.94); }
.stage.go .pod { animation: rise .9s var(--ease-out) forwards; animation-delay: var(--d); }
.pod-1 { order: 2; } .pod-2 { order: 1; } .pod-3 { order: 3; }
.pod-ring { --ring: var(--gold); position: relative; width: clamp(96px, 15vw, 132px); aspect-ratio: 1; border-radius: 50%; padding: 5px;
  background: conic-gradient(from 0deg, var(--ring), #fff 18%, var(--ring) 36%, rgba(255,255,255,.2) 55%, var(--ring) 75%, #fff 88%, var(--ring));
  box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.pod-ring .face, .pod-ring .ph { width: 100%; height: 100%; border: 3px solid var(--night); }
.pod-1 .pod-ring { width: clamp(120px, 19vw, 170px); animation: glow 2.6s ease-in-out infinite 2.2s; }
.pod-1 .pod-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 5px; z-index: -1;
  background: inherit; animation: spin 6s linear infinite; }
.pod-2 .pod-ring { --ring: var(--silver); } .pod-3 .pod-ring { --ring: var(--bronze); }
.crown { width: clamp(46px, 7vw, 64px); margin-bottom: -8px; z-index: 2; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35));
  opacity: 0; transform: translateY(-30px) rotate(-12deg); }
.stage.go .crown { animation: crown .8s var(--ease-out) forwards 1.4s, bob 3s ease-in-out infinite 2.3s; }
.pod-rank { margin: 12px 0 2px; font: 700 .85rem/1 var(--font-body); letter-spacing: .08em; color: var(--night);
  background: var(--gold); padding: .35em .8em; border-radius: 999px; }
.pod-2 .pod-rank { background: var(--silver); } .pod-3 .pod-rank { background: var(--bronze); }
.pod-name { margin: 8px 0 0; font: 700 clamp(1rem, 2vw, 1.3rem)/1.2 var(--font-head); color: #fff; }
.pod-score { margin: 2px 0 0; font: 800 clamp(2rem, 5vw, 3.2rem)/1 var(--font-head); color: var(--gold); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 22px rgba(242,193,78,.45); }
.pod-1 .pod-score { font-size: clamp(2.5rem, 6.4vw, 4rem); }
.pod-step { width: 100%; margin-top: 16px; border-radius: 14px 14px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 6px; padding: 12px 10px 16px; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.14); border-bottom: 0; }
.st-num { font: 800 2.2rem/1 var(--font-head); color: rgba(255,255,255,.3); }
.st-where { font-weight: 600; font-size: .9rem; color: #fff; letter-spacing: .01em; }
.st-school { display: block; max-width: 24ch; font-size: .9rem; color: #D6E0F0; line-height: 1.3; }
.st-school svg { color: var(--gold); width: 17px; height: 17px; vertical-align: -3px; margin-right: 5px; }
.st-school strong { color: var(--gold-hi); font-weight: 700; }
.st-meta { font-size: .82rem; color: #9FB0CC; }
.pod-1 .pod-step { min-height: 170px; background: linear-gradient(180deg, rgba(242,193,78,.34), rgba(242,193,78,.05)); border-color: rgba(242,193,78,.5); }
.pod-1 .st-num { color: rgba(255,241,184,.75); font-size: 2.8rem; }
.pod-2 .pod-step { min-height: 135px; } .pod-3 .pod-step { min-height: 110px; }
.pod:hover .pod-ring, .pod:focus-within .pod-ring { transform: translateY(-4px); transition: transform .3s var(--ease-out); }
@media (max-width: 640px) {
  .podium { grid-template-columns: 1fr 1fr; grid-template-areas: "a a" "b c"; row-gap: 26px; }
  .pod-1 { grid-area: a; order: 0; } .pod-2 { grid-area: b; order: 0; } .pod-3 { grid-area: c; order: 0; }
  .pod-step { min-height: 0 !important; border-radius: 12px; border-bottom: 1px solid rgba(255,255,255,.14); padding: 10px 8px 12px; }
  .pod-1 .pod-step { border-bottom-color: rgba(242,193,78,.5); }
  .st-num { display: none; }
  .st-where { font-size: .82rem; } .st-school { font-size: .82rem; }
}

/* Ribbon of other toppers */
.ribbon { position: relative; display: flex; overflow: hidden; margin: 34px auto 0; max-width: 1100px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rb-track { list-style: none; margin: 0; padding: 0 8px; display: flex; gap: 14px; flex: none; animation: marquee 38s linear infinite; }
.ribbon:hover .rb-track { animation-play-state: paused; }
.rb-track li { display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; white-space: nowrap;
  background: rgba(255,255,255,.08); border: 1px solid rgba(242,193,78,.3); }
.rb-track .face-xs { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.rb-track .ph.face-xs { width: 38px; height: 38px; font-size: .85rem; }
.rb-name { font-weight: 600; color: #fff; }
.rb-score { font: 800 1.15rem/1 var(--font-head); color: var(--gold); }
.ribbon:not(:has(.rb-track + .rb-track)) { justify-content: center; }
.ribbon:not(:has(.rb-track + .rb-track)) .rb-track { animation: none; flex-wrap: wrap; justify-content: center; }
.stage-actions { justify-content: center; margin-top: 34px; }

/* Stats band */
.stats-band { background: var(--night); color: #fff; padding: 34px 0; position: relative; }
.stats { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; text-align: center; }
.st-val { margin: 0; font: 800 clamp(2rem, 4.4vw, 2.8rem)/1 var(--font-head); color: var(--gold); font-variant-numeric: tabular-nums; }
.st-label { margin: 6px 0 0; color: #C3CEE0; }

/* Motion polish across the site */
.btn { position: relative; overflow: hidden; transition: background .2s, border-color .2s, transform .2s var(--ease-out), box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px color-mix(in srgb, var(--ink) 18%, transparent); }
.btn:not(.btn-ghost):not(.btn-wa)::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.btn:not(.btn-ghost):not(.btn-wa):hover::after { left: 130%; }
.btn-shine::after { animation: shine 3.2s ease-in-out infinite 2.6s; }

.site-header { transition: box-shadow .25s, background .25s; }
.site-header .bar { transition: min-height .25s var(--ease-out); }
.site-header.scrolled { box-shadow: 0 6px 24px color-mix(in srgb, var(--ink-2) 10%, transparent); }
.site-header.scrolled .bar { min-height: 58px; }

.hero-art img { animation: float 7s ease-in-out infinite; }
.sec-head h2 { position: relative; padding-bottom: 12px; }
.sec-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 56px; border-radius: 4px;
  background: linear-gradient(90deg, var(--saffron), var(--gold)); transform-origin: left; }
.sec-head.reveal h2::after { transform: scaleX(0); transition: transform .8s var(--ease-out) .25s; }
.sec-head.reveal.in h2::after { transform: scaleX(1); }

.features li { transition: background .25s; }
.features li:hover { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--saffron) 7%, transparent)); }
.f-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--wash); transition: transform .35s var(--ease-out); }
.features li:hover .f-icon { transform: translateY(-4px) rotate(-6deg) scale(1.08); }

.faculty li { transition: transform .3s var(--ease-out); }
.faculty li:hover { transform: translateY(-6px); }
.faculty .face { transition: box-shadow .3s; }
.faculty li:hover .face { box-shadow: 0 0 0 3px var(--saffron), 0 14px 26px color-mix(in srgb, var(--ink) 18%, transparent); }

.results li, .quotes li, .campuses .card { transition: transform .3s var(--ease-out), box-shadow .3s; }
.results li:hover, .quotes li:hover { transform: translateY(-5px); box-shadow: 0 16px 34px color-mix(in srgb, var(--ink) 12%, transparent); }
.results li:hover .r-score { animation: stamp .45s var(--ease-out); }

.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease-out) var(--d, 0ms), transform .7s var(--ease-out) var(--d, 0ms); }

@keyframes spin { to { rotate: 360deg; } }
@keyframes foil { to { background-position: -220% 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes crown { to { opacity: 1; transform: none; } }
@keyframes bob { 50% { transform: translateY(-5px); } }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgba(242,193,78,.18), 0 0 44px rgba(242,193,78,.55); } }
@keyframes marquee { to { transform: translateX(calc(-100% - 14px)); } }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes stamp { 0% { transform: rotate(-3deg) scale(1); } 45% { transform: rotate(-8deg) scale(1.15); } 100% { transform: rotate(-3deg) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .pod, .crown { opacity: 1 !important; transform: none !important; }
  .rb-track { flex-wrap: wrap; justify-content: center; }
  .rb-track[aria-hidden] { display: none; }
  .ribbon { -webkit-mask: none; mask: none; }
}

/* School-topper badges */
.pod { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.rb-who { display: flex; flex-direction: column; line-height: 1.15; }
.rb-badge { font-size: .78rem; color: var(--gold-hi); opacity: .85; }
.r-badge { display: inline-block; margin: 2px 0 2px; padding: .15em .6em; border-radius: 999px; font-size: .82rem; font-weight: 600;
  color: var(--ink); background: var(--wash); border: 1px solid var(--grid); }

/* ═══════════════════════════════════════════════════════════════
   Allen-style layer: announcement, header actions, courses,
   carousels, study material, dialogs, big footer
   ═══════════════════════════════════════════════════════════════ */
:root { --card-bd: #E3E9F2; --shadow: 0 10px 30px color-mix(in srgb, var(--ink) 8%, transparent); --shadow-hi: 0 18px 40px color-mix(in srgb, var(--ink) 14%, transparent); --sky: #F4F7FC; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
.sec-wash { background: var(--sky); }

/* Announcement bar */
.announce { background: linear-gradient(90deg, var(--ink-2), var(--ink-3) 50%, var(--ink-2)); color: #E6ECF6; font-size: .92rem; }
.announce .wrap { display: flex; justify-content: center; align-items: center; gap: 14px; min-height: 36px; flex-wrap: wrap; text-align: center; padding-top: 4px; padding-bottom: 4px; }
.announce a { color: var(--gold); font-weight: 700; text-decoration: none; white-space: nowrap; }
.announce a:hover { text-decoration: underline; }

/* Header actions */
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: 10px; }
.nav-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-phone svg { color: var(--saffron-2); }
#nav .nav-actions .btn { margin-left: 0; }
@media (max-width: 1080px) { .nav-phone span { display: none; } }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  #nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch;
    padding: 8px 20px 20px; border-bottom: 1px solid var(--grid); box-shadow: 0 12px 24px color-mix(in srgb, var(--ink) 8%, transparent); }
  #nav.open { display: flex; }
  #nav > a:not(.btn) { padding: .8em .4em; border-bottom: 1px solid var(--wash); }
  #nav > a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--saffron); padding-left: .9em; }
  .nav-actions { margin: 14px 0 0; flex-direction: column; align-items: stretch; }
  .nav-phone { justify-content: center; padding: .6em; border: 1.5px solid var(--grid); border-radius: 999px; }
  .nav-phone span { display: inline; }
  .nav-actions .btn { justify-content: center; }
  .site-header { position: sticky; }
  .bar { position: relative; }
}

/* Section heads with a "see all" link */
.sec-head.has-more { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.sec-head.has-more > div { max-width: 640px; }

/* Tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: -12px 0 28px; }
.tab { border: 1.5px solid var(--card-bd); background: #fff; color: var(--text); padding: .55em 1.2em; border-radius: 999px; font: 600 .98rem/1 var(--font-body); cursor: pointer; transition: all .2s; }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--ink) 20%, transparent); }

/* Course cards */
.programs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.programs > li { position: relative; display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--card-bd); border-radius: 18px; padding: 24px 22px 22px;
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s; }
.programs > li:hover { transform: translateY(-6px); box-shadow: var(--shadow-hi); border-color: #C9D5E8; }
.programs > li.featured { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,193,78,.18); }
.programs > li[hidden] { display: none; }
.pg-tag { position: absolute; top: -12px; right: 18px; background: linear-gradient(90deg, var(--saffron), var(--gold)); color: var(--on-accent); font-weight: 700; font-size: .8rem; padding: .35em .8em; border-radius: 999px; box-shadow: 0 4px 10px color-mix(in srgb, var(--saffron-2) 30%, transparent); }
.pg-classes { display: inline-block; align-self: flex-start; margin: 0 0 10px; padding: .25em .75em; border-radius: 8px; background: var(--sky); color: var(--ink); font-weight: 700; font-size: .92rem; }
.programs h3 { font-size: 1.35rem; margin-bottom: 8px; }
.pg-boards { display: flex; gap: 6px; margin: 0 0 14px; }
.pg-boards span { font-size: .8rem; font-weight: 600; color: var(--muted); border: 1px solid var(--card-bd); border-radius: 6px; padding: .1em .5em; }
.pg-points { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; flex: 1; }
.pg-points li { display: flex; gap: 8px; color: var(--text); font-size: .98rem; line-height: 1.4; }
.pg-points svg { color: var(--leaf); margin-top: 2px; }
.pg-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pg-actions .btn { flex: 1; justify-content: center; }

/* Feature tiles (Allen-style app features) */
.features { border-top: 0; gap: 18px; }
.features li, .features li:not(:nth-child(3n+1)), .features li:nth-child(even) { padding: 24px; border: 1.5px solid var(--card-bd) !important; border-radius: 18px; background: #fff; }
.features li:hover { background: #fff; box-shadow: var(--shadow); }
.features li:nth-child(6n+1) .f-icon { background: #FFF4E0; } .features li:nth-child(6n+2) .f-icon { background: #E8F1FF; }
.features li:nth-child(6n+3) .f-icon { background: #E9F8EF; } .features li:nth-child(6n+4) .f-icon { background: #F3ECFF; }
.features li:nth-child(6n+5) .f-icon { background: #FFECEC; } .features li:nth-child(6n+6) .f-icon { background: #E6F7F8; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* Carousels */
.carousel { position: relative; }
.car-track { display: flex !important; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding: 6px 4px 18px; margin: 0 -4px; list-style: none; columns: auto !important; }
.car-track::-webkit-scrollbar { display: none; }
.car-track > li { scroll-snap-align: start; flex: none; }
.car-btn { position: absolute; top: calc(50% - 30px); z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--card-bd); background: #fff;
  color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; padding-bottom: 4px; transition: all .2s; }
.car-btn:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.car-btn:disabled { opacity: 0; pointer-events: none; }
.car-prev { left: -22px; } .car-next { right: -22px; }
.carousel.no-scroll .car-btn { display: none; }
@media (max-width: 1220px) { .car-prev { left: -6px; } .car-next { right: -6px; } }
@media (hover: none) { .car-btn { display: none; } }

.car-track.faculty > li { width: 190px; background: #fff; border: 1.5px solid var(--card-bd); border-radius: 18px; padding: 22px 16px 18px; }
.car-track.faculty .face { max-width: 130px; }
.car-track.results > li { width: min(360px, 84vw); margin-bottom: 0; }
.car-track.quotes > li { width: min(340px, 84vw); margin-bottom: 0; background: #fff; border: 1.5px solid var(--card-bd); border-left: 4px solid var(--saffron); }
.results li { border: 1.5px solid var(--card-bd); border-radius: 18px; }

/* Study material teaser on the home page */
.mat-classes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.mat-classes a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px; text-decoration: none;
  background: #fff; border: 1.5px solid var(--card-bd); border-radius: 16px; transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s; }
.mat-classes a:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--saffron); }
.mc-icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #FFF4E0; color: var(--saffron-2); }
.mc-icon svg { width: 26px; height: 26px; }
.mc-name { font: 700 1.15rem/1.2 var(--font-head); color: var(--ink); }
.mc-meta { color: var(--muted); font-size: .9rem; }

/* Study material page */
.mat-hero { background: radial-gradient(120% 120% at 50% -20%, var(--ink-3), var(--ink) 45%, var(--night)); color: #fff; padding: 56px 0 64px; text-align: center; }
.mat-hero h1 { color: #fff; }
.mat-hero .lead { color: #D6E0F0; margin: 0 auto 26px; }
.mat-search input { width: min(620px, 100%); padding: 1em 1.3em; font: inherit; border-radius: 999px; border: 0; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.mat-search input:focus { outline: 3px solid var(--gold); }
.mat-body { padding-top: 40px; }
.mat-tabs { margin: 0 0 28px; position: sticky; top: 70px; z-index: 5; background: rgba(255,255,255,.95); padding: 10px 0; backdrop-filter: blur(6px); }
.subjects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; align-items: start; }
.subject { background: #fff; border: 1.5px solid var(--card-bd); border-radius: 18px; padding: 20px 20px 10px; }
.subject[hidden] { display: none; }
.subject h2 { font-size: 1.3rem; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--sky); }
.files { list-style: none; margin: 0; padding: 0; }
.file { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--sky); }
.file:last-child { border-bottom: 0; }
.file[hidden] { display: none; }
.f-doc { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #E8F1FF; color: var(--ink); }
.f-text { display: flex; flex-direction: column; min-width: 0; }
.f-title { font-weight: 600; color: var(--text); line-height: 1.3; }
.f-kind { font-size: .82rem; color: var(--muted); }
.f-get { white-space: nowrap; }
.f-soon { font-size: .85rem; color: var(--muted); font-style: italic; }
.mat-empty { text-align: center; padding: 30px 0; }
@media (max-width: 420px) { .subjects { grid-template-columns: 1fr; } .f-get span { display: none; } .f-get { padding: .6em; } }

/* Dialogs */
.modal { border: 0; padding: 30px 28px 24px; border-radius: 20px; width: min(480px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(10,20,40,.35); }
.modal::backdrop { background: rgba(11,27,54,.62); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .3s var(--ease-out); }
.modal h2 { font-size: 1.5rem; margin-bottom: 6px; padding-right: 26px; }
.modal .form label { margin-bottom: 14px; }
.modal .form .btn { width: 100%; justify-content: center; }
.modal-x { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--sky); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); }
.form-msg.big { font-size: 1.1rem; margin: 10px 0 18px; }
.note { position: fixed; left: 50%; bottom: 22px; translate: -50% 0; z-index: 90; background: var(--ink-2); color: #fff; padding: 12px 18px; border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25); max-width: calc(100vw - 32px); animation: pop .3s var(--ease-out); }
.note .linkbtn { color: var(--gold); margin-left: 6px; }

/* Footer: call-to-action strip + link columns */
.site-footer { padding-top: 0; }
.foot-cta { background: linear-gradient(90deg, var(--ink-3), var(--ink)); border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 48px; }
.foot-cta-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 30px; padding-bottom: 30px; }
.foot-cta-h { font: 800 1.5rem/1.2 var(--font-head); color: #fff; margin: 0 0 4px; }
.foot-cta p { margin: 0; }
.foot-cta .actions { margin: 0; }
.foot-grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-links a, .foot-phone a { color: #C3CEE0; text-decoration: none; }
.foot-links a:hover, .foot-phone a:hover { color: var(--gold); }
.foot-campus { font-size: .92rem; } .foot-campus strong { color: #fff; }
.foot-phone svg { color: var(--gold); vertical-align: -3px; }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
/* spacing fixes for the fuller header and the course cards */
#nav > a:not(.btn) { white-space: nowrap; padding: .5em .6em; }
#nav .btn, .nav-actions .btn { white-space: nowrap; }
@media (max-width: 1280px) and (min-width: 901px) { .nav-phone span { display: none; } .nav-phone { width: 38px; height: 38px; justify-content: center; border: 1.5px solid var(--card-bd); border-radius: 50%; } }
.pg-actions { flex-direction: column; }
.pg-actions .btn { width: 100%; white-space: nowrap; }
.brand span { white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 901px) { #nav > a:not(.btn) { padding: .5em .45em; font-size: .97rem; } .brand { font-size: 1.2rem; } }

/* Sliding banners */
.banners { padding: 28px 0 8px; background: var(--sky); }
.bn-wrap { position: relative; }
.bn-view { overflow: hidden; border-radius: 20px; box-shadow: var(--shadow); background: var(--wash); touch-action: pan-y; }
.bn-track { list-style: none; margin: 0; padding: 0; display: flex; transition: transform .6s var(--ease-out); }
.bn-slide { flex: 0 0 100%; aspect-ratio: 16 / 5; }
.bn-slide a, .bn-slide picture { display: block; width: 100%; height: 100%; }
.bn-slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
@media (max-width: 700px) {
  .banners { padding: 18px 0 4px; }
  .bn-view { border-radius: 14px; }
  .bn-slide { aspect-ratio: 16 / 7; }
  .bn-slide.has-mobile { aspect-ratio: 4 / 3; }
  .bn-track:has(.has-mobile) .bn-slide { aspect-ratio: 4 / 3; }
}
.bn-btn { position: absolute; top: 50%; translate: 0 -60%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink);
  font-size: 1.8rem; line-height: 1; padding-bottom: 4px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.18); display: grid; place-items: center; opacity: 0; transition: opacity .25s, background .2s; }
.bn-prev { left: 34px; } .bn-next { right: 34px; }
.bn-wrap:hover .bn-btn, .bn-btn:focus-visible { opacity: 1; }
.bn-btn:hover { background: #fff; }
@media (hover: none) { .bn-btn { display: none; } }
.bn-dots { display: flex; justify-content: center; gap: 8px; padding: 12px 0 0; }
.bn-dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; background: var(--grid); cursor: pointer; transition: width .3s, background .3s; }
.bn-dots button[aria-selected="true"] { width: 28px; background: var(--saffron); }

/* Stats heading */
.stats-h { text-align: center; margin: 0 auto 22px; font: 700 clamp(1.2rem, 2.4vw, 1.6rem)/1.2 var(--font-head); color: #fff; }

/* Ways to learn */
.modes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.mode { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 26px 22px 22px; border-radius: 20px; background: #fff; border: 1.5px solid var(--card-bd);
  transition: transform .3s var(--ease-out), box-shadow .3s; }
.mode::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--saffron); }
.mode-1::before { background: var(--ink); } .mode-2::before { background: var(--leaf); } .mode-3::before { background: var(--gold); }
.mode:hover { transform: translateY(-6px); box-shadow: var(--shadow-hi); }
.md-icon { width: 58px; height: 58px; display: grid; place-items: center; font-size: 1.8rem; border-radius: 16px; background: var(--wash); margin-bottom: 14px; transition: transform .35s var(--ease-out); }
.mode:hover .md-icon { transform: rotate(-8deg) scale(1.08); }
.mode h3 { font-size: 1.25rem; }
.mode > p { color: var(--muted); margin-bottom: 12px; }
.mode .pg-points { margin-bottom: 14px; }
.md-cta { margin-top: auto; font-weight: 700; color: var(--ink); text-decoration: none; }
.md-cta span { display: inline-block; transition: transform .25s; }
.md-cta:hover span { transform: translateX(4px); }

/* Campus cards */
.campus-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.cc { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--card-bd); border-radius: 20px; overflow: hidden; transition: transform .3s var(--ease-out), box-shadow .3s; }
.cc:hover { transform: translateY(-5px); box-shadow: var(--shadow-hi); }
.cc-photo { aspect-ratio: 16 / 7; background: linear-gradient(135deg, var(--ink-3), var(--ink) 60%, var(--night)); display: grid; place-items: center; overflow: hidden; }
.cc-photo img, .cc-photo .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.cc-pin svg { width: 54px; height: 54px; color: var(--gold); filter: drop-shadow(0 6px 12px rgba(0,0,0,.3)); }
.cc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.cc-body h3 { font-size: 1.3rem; margin-bottom: 6px; }
.cc-addr { color: var(--muted); margin-bottom: 6px; }
.cc-time { font-weight: 600; color: var(--leaf); font-size: .95rem; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }

/* Video stories */
.car-track.stories > li { width: min(320px, 82vw); background: #fff; border: 1.5px solid var(--card-bd); border-radius: 18px; overflow: hidden; }
.st-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; cursor: pointer; background: #000; }
.st-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .5s var(--ease-out), opacity .3s; }
.st-thumb:hover img { transform: scale(1.05); opacity: 1; }
.st-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(255,255,255,.3); animation: pulse 2.4s ease-in-out infinite; }
.st-play svg { width: 28px; height: 28px; margin-left: 4px; }
.st-text { padding: 14px 16px 16px; }
.st-name { font: 700 1.1rem/1.2 var(--font-head); color: var(--ink); margin: 0; }
.st-detail { color: var(--leaf); font-weight: 700; margin: 2px 0 0; font-size: .95rem; }
.st-quote { color: var(--muted); margin: 8px 0 0; font-size: .95rem; }
.video-modal { width: min(960px, calc(100vw - 24px)); padding: 44px 12px 12px; background: #000; }
.video-modal .modal-x { background: rgba(255,255,255,.15); color: #fff; }
.vid-frame { aspect-ratio: 16 / 9; } .vid-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 14px rgba(255,255,255,.12); } }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faqs { display: grid; gap: 12px; }
.faq { background: #fff; border: 1.5px solid var(--card-bd); border-radius: 16px; transition: border-color .25s, box-shadow .25s; }
.faq[open] { border-color: var(--saffron); box-shadow: var(--shadow); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; font: 700 1.08rem/1.35 var(--font-head); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.fq-ic { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--wash); transition: background .25s, transform .3s var(--ease-out); }
.fq-ic::before, .fq-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); translate: -50% -50%; border-radius: 2px; }
.fq-ic::after { rotate: 90deg; transition: rotate .3s var(--ease-out); }
.faq[open] .fq-ic { background: var(--saffron); transform: rotate(180deg); }
.faq[open] .fq-ic::after { rotate: 0deg; }
.fq-a { padding: 0 20px 18px; color: var(--muted); }
.fq-a p { margin: 0; }
.faq[open] .fq-a { animation: pop .35s var(--ease-out); }

/* Two-step call-back form */
.cb-step { position: absolute; top: 18px; left: 28px; margin: 0; font-weight: 700; color: var(--muted); font-size: .9rem; }
.cb-step .cb-n { color: var(--ink); }
.cb-modal h2 { margin-top: 14px; }
.cb-form fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.cb-form legend { font-weight: 600; color: var(--ink); margin-bottom: 8px; padding: 0; }
.chips-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { margin: 0 !important; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span { display: inline-block; padding: .55em 1.1em; border-radius: 999px; border: 1.5px solid var(--card-bd); font-weight: 600; color: var(--text); cursor: pointer; transition: all .2s; }
.pick input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pick input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 2px; }
.cb-nav { display: flex; gap: 10px; }
.cb-nav .btn { flex: 1; justify-content: center; }
.cb-back { flex: 0 0 auto !important; }
.cb-done { text-align: center; padding: 10px 0 4px; }
.cb-tick { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #E9F8EF; color: var(--leaf); animation: pop .4s var(--ease-out); }
.cb-tick svg { width: 34px; height: 34px; }

/* Sticky contact: side tab on computers, bottom bar on phones */
.side-tab { position: fixed; right: 0; top: 50%; z-index: 45; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl;
  background: var(--saffron); color: var(--on-accent); border: 0; border-radius: 0 12px 12px 0; padding: 16px 10px; font: 700 .95rem/1 var(--font-body);
  cursor: pointer; box-shadow: -4px 6px 18px rgba(0,0,0,.18); transition: padding .2s; }
.side-tab:hover { padding-right: 14px; }
.dock { display: none; }
@media (max-width: 760px) {
  .side-tab { display: none; }
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-auto-columns: 1fr; grid-auto-flow: column;
    background: #fff; border-top: 1px solid var(--card-bd); box-shadow: 0 -6px 20px color-mix(in srgb, var(--ink) 10%, transparent); padding-bottom: env(safe-area-inset-bottom); }
  .dock > * { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 8px; font: 600 .8rem/1.1 var(--font-body);
    color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
  .dock svg { width: 22px; height: 22px; }
  .dock a[href^="https://wa.me"] svg { color: #1FAF5A; }
  .dock button { background: var(--saffron); color: var(--on-accent); }
  body.has-dock { padding-bottom: 62px; }
  body.has-dock .wa-float { display: none; }
  .note { bottom: 76px; }
}
.modal .form .cb-nav .btn { width: auto; }
.modal .form .cb-nav .cb-go { flex: 1 1 auto; }
.modal .form .cb-nav .cb-back { flex: 0 0 auto; padding-left: 1.4em; padding-right: 1.4em; }

/* ── Podium: the school is the highlight ─────────────────────── */
.pod-step { position: relative; overflow: hidden; justify-content: center; gap: 8px; padding: 18px 12px 18px; }
.st-num { position: absolute; right: 8px; bottom: -14px; font-size: 5.5rem !important; line-height: 1; color: rgba(255,255,255,.07) !important; pointer-events: none; }
.pod-1 .st-num { color: rgba(255,241,184,.14) !important; }
.st-school-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.st-cap { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.12); margin-bottom: 4px; }
.st-cap svg { width: 20px; height: 20px; color: var(--silver); }
.pod-1 .st-cap { background: rgba(242,193,78,.22); } .pod-1 .st-cap svg { color: var(--gold); }
.pod-3 .st-cap svg { color: var(--bronze); }
.st-label { font-size: .85rem; color: #C9D6EC; letter-spacing: .02em; }
.st-school-name { font: 800 clamp(1.05rem, 1.9vw, 1.4rem)/1.15 var(--font-head); text-align: center; max-width: 16ch;
  background: linear-gradient(100deg, #E8EEF7, #FFFFFF 40%, #C7D2E4 70%, #FFFFFF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #fff; }
.pod-1 .st-school-name { font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  background: linear-gradient(100deg, #E9A93A, #FFF1B8 30%, #F2C14E 55%, #FFF1B8 80%, #E9A93A); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; animation: foil 6s linear infinite; }
.pod-3 .st-school-name { background: linear-gradient(100deg, #F4C9A6, #FFF3EA 45%, #E0A06A 80%); -webkit-background-clip: text; background-clip: text; }
.st-meta { position: relative; font-size: .82rem; color: #9FB0CC; }
.pod-1 .pod-step { min-height: 160px; } .pod-2 .pod-step { min-height: 132px; } .pod-3 .pod-step { min-height: 112px; }
@media (max-width: 640px) { .st-num { display: none; } .st-school-name { font-size: 1rem; } .pod-1 .st-school-name { font-size: 1.2rem; } .st-cap { width: 28px; height: 28px; } }

/* ── Sliding banners, enhanced ───────────────────────────────── */
.banners { position: relative; padding: 34px 0 10px; background:
  radial-gradient(60% 80% at 10% 0%, color-mix(in srgb, var(--saffron) 10%, transparent), transparent 70%),
  radial-gradient(60% 80% at 90% 100%, color-mix(in srgb, var(--ink) 10%, transparent), transparent 70%), var(--sky); }
.bn-wrap { max-width: 1320px; }
.bn-view { border-radius: 26px; box-shadow: 0 24px 60px color-mix(in srgb, var(--ink) 18%, transparent), 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); }
.bn-slide { aspect-ratio: 1920 / 800; overflow: hidden; }
.bn-slide img { transform: scale(1.04); transition: transform calc(var(--bn-ms, 5000ms) + 800ms) linear; }
.bn-slide.on img { transform: scale(1); }
.banners.paused .bn-slide img { transition-duration: .6s; }
.bn-btn { width: 52px; height: 52px; background: rgba(255,255,255,.78); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.9); }
.bn-prev { left: 38px; } .bn-next { right: 38px; }
.bn-dots { gap: 10px; padding-top: 16px; }
.bn-dots button { position: relative; overflow: hidden; width: 10px; height: 10px; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.bn-dots button[aria-selected="true"] { width: 44px; background: color-mix(in srgb, var(--saffron) 25%, transparent); }
.bn-dots button i { position: absolute; inset: 0; width: 0; background: var(--saffron); border-radius: inherit; }
.bn-dots button[aria-selected="true"] i { width: 100%; }
.bn-dots button.run i { width: 0; animation: bn-fill var(--bn-ms, 5000ms) linear forwards; }
.banners.paused .bn-dots button.run i { animation-play-state: paused; }
@keyframes bn-fill { to { width: 100%; } }
@media (max-width: 700px) {
  .banners { padding: 16px 0 4px; }
  .bn-view { border-radius: 16px; }
  .bn-slide, .bn-slide.has-mobile { aspect-ratio: 1920 / 800; }
  .bn-track:has(.has-mobile) .bn-slide { aspect-ratio: 4 / 3; }
}

/* ── Campus cards with a live Google map ─────────────────────── */
.cc-map { position: relative; height: 210px; background: var(--wash); }
.cc-map iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; filter: saturate(1.05); }
.cc-map-link { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 12px; text-decoration: none;
  background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--night) 35%, transparent)); }
.cc-map-link span { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--ink); font-weight: 700; font-size: .88rem; padding: .45em .9em; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0,0,0,.18); transition: transform .2s; }
.cc-map-link:hover span { transform: translateY(-2px); }
.cc-map-link svg { color: var(--saffron); }
.cc-photo { position: absolute; left: 18px; bottom: -34px; z-index: 1; width: 76px; height: 76px; border-radius: 18px; overflow: hidden; border: 4px solid #fff; box-shadow: 0 8px 20px rgba(0,0,0,.18); background: var(--wash); aspect-ratio: auto; }
.cc-photo img, .cc-photo .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.cc:has(.cc-photo) .cc-body { padding-top: 46px; }
/* header spacing with the longer logo */
.bar { gap: 24px; }
.brand { flex-shrink: 0; }
#nav { margin-left: auto; min-width: 0; }
@media (max-width: 1420px) and (min-width: 901px) {
  .nav-phone span { display: none; }
  .nav-phone { width: 38px; height: 38px; justify-content: center; border: 1.5px solid var(--card-bd); border-radius: 50%; }
}
@media (max-width: 1100px) and (min-width: 901px) { .brand span { font-size: 1.15rem; } .brand-logo { height: 38px; } }
/* campus cards fill the row; three actions on one line */
.campus-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.cc-actions { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; }
@media (max-width: 420px) { .cc-actions { grid-template-columns: 1fr 1fr; } .cc-actions .btn:last-child { grid-column: 1 / -1; justify-content: center; } }

/* ── Softer, easier-on-the-eyes large blue areas ─────────────── */
:root { --stage-1: #1E3A66; --stage-2: #142849; --stage-3: #0D1B33; --brand: #16325C; }
.stage { background: radial-gradient(110% 85% at 50% -5%, var(--stage-1) 0%, var(--stage-2) 45%, var(--stage-3) 100%); }
.stage-rays { opacity: .32; }
.announce { background: linear-gradient(90deg, var(--stage-3), var(--stage-2) 50%, var(--stage-3)); }
.mat-hero { background: radial-gradient(120% 120% at 50% -20%, var(--stage-1), var(--stage-2) 50%, var(--stage-3)); }
.stats-band { background: var(--stage-3); }
.cc-photo, .tp-stage { }
.sec-head h2::after { background: linear-gradient(90deg, var(--saffron), var(--brand)); }
.hero-sub { background: var(--ink-2); }
.tab[aria-selected="true"] { background: var(--ink-2); border-color: var(--ink-2); }
.pick input:checked + span { background: var(--ink-2); border-color: var(--ink-2); }
.demo { background: var(--stage-2); }
.foot-cta { background: linear-gradient(90deg, var(--stage-1), var(--stage-2)); }
.site-footer { background: var(--stage-3); }

/* ═══ Achievers pop-up (shown once, closable) ═══════════════════ */
.intro { position: fixed; inset: 0; z-index: 200; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; justify-content: center; padding: clamp(56px, 7vh, 80px) 0 40px;
  opacity: 0; transform: scale(1.02); transition: opacity .45s ease, transform .45s var(--ease-out); }
.intro.shown { opacity: 1; transform: none; }
.intro.leaving { opacity: 0; transform: scale(.98); pointer-events: none; }
.intro::after { position: fixed; }
.intro .glitter { position: fixed; }
.intro .stage-rays { position: fixed; }
html.intro-open, html.intro-open body { overflow: hidden; }
.intro-x { position: fixed; top: 16px; right: 18px; z-index: 5; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1; padding-bottom: 4px; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s, transform .2s; }
.intro-x:hover { background: rgba(255,255,255,.25); transform: rotate(90deg); }
.intro .stage-actions .btn { min-width: 210px; justify-content: center; }
@media (max-width: 640px) { .intro { justify-content: flex-start; padding-top: 64px; } .intro-x { top: 10px; right: 10px; width: 42px; height: 42px; } }

/* ═══ Page now starts with the banners ══════════════════════════ */
.banners { padding-top: 20px; }
/* Every banner sits in the same 1920×800 frame and is always shown whole (never cropped).
   A picture of a different shape gets a soft band instead of being cut. */
.bn-view { height: auto !important; background: #FFF8EE; }
.bn-track { align-items: stretch; }
.bn-slide, .bn-slide.has-mobile { aspect-ratio: 1920 / 800 !important; height: auto; }
.bn-slide img { width: 100%; height: 100%; object-fit: contain; transform: none !important; }
@media (max-width: 700px) {
  .bn-track:has(.has-mobile) .bn-slide { aspect-ratio: 4 / 3 !important; }
}
/* Full-width slider: edge to edge across the whole screen, no side gaps or rounded box */
.banners { padding: 0 0 6px !important; background: #FFF8EE !important; }
.banners::before, .banners::after { display: none !important; }
.bn-wrap { max-width: none !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }
.bn-view { border-radius: 0 !important; box-shadow: none !important; }
.bn-prev { left: 18px !important; } .bn-next { right: 18px !important; }
.bn-dots { padding-top: 10px !important; }

/* Shorter slider on laptops/desktops (30% less height). The picture stays complete in the
   middle; the space on both sides is filled with the colours of the picture's own edges,
   so the slider still runs edge to edge. Phones keep the full height so text stays readable. */
@media (min-width: 701px) {
  .bn-slide, .bn-slide.has-mobile { aspect-ratio: 1920 / 560 !important; position: relative; overflow: hidden; }
  .bn-slide::before, .bn-slide::after { content: ""; position: absolute; top: 0; bottom: 0; width: 50%; }
  /* edge colours next to the picture, easing into soft cream toward the screen edge */
  .bn-slide::before { left: 0; background: linear-gradient(to right, #FFF8EE 0%, rgba(255,248,238,.55) 22%, rgba(255,248,238,0) 46%), var(--edge-l, #FFF8EE); }
  .bn-slide::after { right: 0; background: linear-gradient(to left, #FFF8EE 0%, rgba(255,248,238,.55) 22%, rgba(255,248,238,0) 46%), var(--edge-r, #FFF8EE); }
  .bn-slide a, .bn-slide picture { position: relative; z-index: 1; }
  .bn-slide img { object-fit: contain; }
}

/* ═══ The Vedic family: 2000+ taught · 300+ learning now ═══════════ */
.family { padding: 46px 0 50px; background: linear-gradient(180deg, #FFF8EE 0%, var(--sky) 100%); }
.fam-head { text-align: center; margin-bottom: 26px; }
.fam-kicker { margin: 0 0 6px; color: var(--saffron-2); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.fam-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--ink); }
.fam-cards { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; }
.fam-card { position: relative; overflow: hidden; border-radius: 24px; padding: 28px 30px 30px; }
.fam-learned { background: #fff; border: 1.5px solid var(--card-bd); box-shadow: 0 18px 44px color-mix(in srgb, var(--ink) 10%, transparent); }
.fam-current { color: #fff; background: radial-gradient(120% 140% at 100% 0%, var(--stage-1), var(--stage-2) 55%, var(--stage-3));
  box-shadow: 0 18px 44px color-mix(in srgb, var(--stage-3) 35%, transparent); }
.fam-card::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--saffron) 22%, transparent), transparent 70%); pointer-events: none; }
.fam-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fam-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--saffron) 14%, #fff); }
.fam-ic svg { width: 30px; height: 30px; fill: var(--saffron); }
.fam-current .fam-ic { background: rgba(255,255,255,.12); }
.fam-current .fam-ic svg { fill: var(--gold, #F2C14E); }
.fam-tag { font-size: .78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--wash); color: var(--ink-2); white-space: nowrap; }
.fam-live { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.12); color: #fff; }
.fam-live i { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 0 rgba(61,220,132,.7); animation: fam-pulse 1.8s infinite; }
@keyframes fam-pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.7); } 70% { box-shadow: 0 0 0 9px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.fam-val { margin: 18px 0 4px; font: 800 clamp(3rem, 7vw, 4.6rem)/1 var(--font-head); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fam-learned .fam-val { background: linear-gradient(90deg, var(--saffron), var(--saffron-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fam-current .fam-val { color: var(--gold, #F2C14E); }
.fam-label { margin: 0; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.fam-current .fam-label { color: #fff; }
.fam-note { margin: 6px 0 0; color: var(--ink-2); opacity: .85; font-size: .95rem; }
.fam-current .fam-note { color: #C9D6EC; opacity: 1; }
.fam-cta { text-align: center; margin: 28px 0 0; }
@media (max-width: 700px) {
  .family { padding: 30px 0 34px; }
  .fam-cards { grid-template-columns: 1fr; gap: 16px; }
  .fam-card { padding: 22px 22px 24px; border-radius: 20px; }
  .fam-val { margin-top: 14px; }
}

/* Footer runs the full width of the screen, starting from the left edge */
.site-footer .foot-grid, .site-footer .foot-base, .site-footer .foot-cta-row { max-width: none; padding-left: clamp(20px, 4vw, 64px); padding-right: clamp(20px, 4vw, 64px); }
.site-footer .foot-base { margin-left: 0; margin-right: 0; padding-right: clamp(90px, 7vw, 110px); }  /* room for the WhatsApp button */
@media (min-width: 1001px) { .foot-grid { grid-template-columns: 1.3fr 1.2fr .8fr 1fr 1.3fr; gap: 40px; } }

/* Footer "Contact us" column: phone numbers, WhatsApp, email, directions */
.foot-contact a { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.foot-contact svg { width: 17px; height: 17px; flex: none; fill: var(--gold); }
@media (min-width: 1001px) { .foot-grid { grid-template-columns: 1.1fr 1.2fr .7fr .9fr 1fr minmax(max-content, 1.2fr); gap: 32px; } }
/* "Visit us" addresses wrap; the email address in "Contact us" stays whole on one line */
@media (max-width: 560px) { .foot-contact-col { grid-column: 1 / -1; } }
@media (max-width: 360px) { .foot-contact a { white-space: normal; overflow-wrap: anywhere; } }

/* Instagram posts sit in fixed-size cards, so the page doesn't jump up and down while they load */
.insta-posts { align-items: stretch; }
.insta-posts li { height: 560px; overflow: hidden; border-radius: 12px; border: 1px solid var(--grid); background: #fff; position: relative; }
.insta-posts li::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, #F3F5FA 30%, #FAFBFD 50%, #F3F5FA 70%) 0 0 / 200% 100%; animation: ig-shimmer 1.4s linear infinite; z-index: 0; }
.insta-posts li:has(iframe)::before { display: none; }
.insta-posts .instagram-media, .insta-posts iframe { position: relative; z-index: 1; border: 0 !important; border-radius: 0 !important; }
@keyframes ig-shimmer { to { background-position: -200% 0; } }
@media (max-width: 700px) { .insta-posts li { height: 520px; } }

/* While the page is loading, don't show the empty header/footer bars */
.site-header:empty, .site-footer:empty { display: none; }

/* School names never spill out of their boxes on small phones */
.star-school { display: flex; flex-direction: column; align-items: center; gap: 1px; max-width: 100%; box-sizing: border-box; text-align: center; overflow-wrap: anywhere; }
.star-school .ss-label { font-size: .78rem; letter-spacing: .02em; white-space: nowrap; }
.star-school strong { display: block; max-width: 100%; line-height: 1.2; }
.st-school-card { max-width: 100%; min-width: 0; }
.st-label { white-space: nowrap; }
.st-school-name { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .pod-step { overflow: visible; height: auto; padding-left: 6px; padding-right: 6px; }
  .st-school-name { font-size: clamp(.82rem, 3.9vw, 1rem); line-height: 1.15; }
  .pod-1 .st-school-name { font-size: clamp(1rem, 4.6vw, 1.2rem); }
  .st-label { font-size: .75rem; }
}

/* Mobile bottom bar: the call-back button gets more room so "Request call back" fits on one line */
@media (max-width: 760px) {
  .dock:has(> :nth-child(3)) { grid-template-columns: .75fr 1fr 1.65fr; grid-auto-flow: row; }
  .dock button { padding-left: 6px; padding-right: 6px; }
  .dock button span { white-space: nowrap; }
}
@media (max-width: 380px) { .dock > * { font-size: .74rem; } }
@media (max-width: 330px) { .dock > * { font-size: .68rem; } }

/* Announcement bar: the message never breaks in the middle ("& ICSE" alone on a new line) */
.announce .wrap > span { white-space: nowrap; }
@media (max-width: 640px) { .announce .wrap { row-gap: 2px; padding-top: 6px; padding-bottom: 6px; } .announce a { font-size: .85rem; } }
@media (max-width: 400px) { .announce .wrap { padding-left: 10px; padding-right: 10px; } }

/* The course you clicked (e.g. from the footer) glows briefly so it's easy to spot */
.programs > li.flash { animation: card-flash 2.4s var(--ease-out); }
@keyframes card-flash {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--saffron) 0%, transparent); }
  15% { transform: translateY(-6px); border-color: var(--saffron); box-shadow: 0 0 0 5px color-mix(in srgb, var(--saffron) 35%, transparent), var(--shadow-hi); }
  70% { transform: translateY(-6px); border-color: var(--saffron); box-shadow: 0 0 0 5px color-mix(in srgb, var(--saffron) 25%, transparent), var(--shadow-hi); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Links like "Book a free demo" land with the section's top just under the sticky header */
:target, section[id] { scroll-margin-top: var(--hdr, 110px); }

/* ═══ Meet our stars (Allen-style topper cards) ═════════════════ */
.stars-sec { padding-top: 56px; }
.car-track.stars > li { width: 230px; }
.star { background: #fff; border: 1.5px solid var(--card-bd); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease-out), box-shadow .3s; }
.star:hover { transform: translateY(-6px); box-shadow: var(--shadow-hi); }
.star-bg { position: relative; height: 150px; display: grid; place-items: end center; padding-top: 18px;
  background: radial-gradient(120% 100% at 50% 0%, var(--stage-1), var(--stage-2) 60%, var(--stage-3)); }
.star-bg::before { content: ""; position: absolute; inset: 0; opacity: .35;
  background: repeating-conic-gradient(from 0deg at 50% 100%, rgba(242,193,78,.25) 0 6deg, transparent 6deg 18deg); }
.star-photo { position: relative; width: 112px; height: 112px; margin-bottom: -40px; border-radius: 50%; padding: 4px;
  background: linear-gradient(135deg, #fff, var(--grid)); box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.star-photo .face, .star-photo .ph { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.star-1 .star-photo { background: conic-gradient(from 0deg, #F2C14E, #FFF1B8, #E9A93A, #FFF1B8, #F2C14E); }
.star-2 .star-photo { background: conic-gradient(from 0deg, #D9E2EE, #fff, #AEB9C9, #fff, #D9E2EE); }
.star-3 .star-photo { background: conic-gradient(from 0deg, #E0A06A, #FFE3CC, #C07A44, #FFE3CC, #E0A06A); }
.star-rank { position: absolute; top: 12px; left: 12px; z-index: 1; font: 800 .85rem/1 var(--font-body); padding: .4em .75em; border-radius: 999px; background: #F2C14E; color: #3A2A05; }
.star-2 .star-rank { background: #D9E2EE; color: #2A3445; } .star-3 .star-rank { background: #E0A06A; color: #3A2212; }
.star-body { text-align: center; padding: 50px 16px 18px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.star-score { margin: 0; font: 800 2.2rem/1 var(--font-head); color: var(--saffron); font-variant-numeric: tabular-nums; }
.star-name { margin: 4px 0 0; font: 700 1.15rem/1.2 var(--font-head); color: var(--ink); }
.star-school { margin: 8px auto 0; font-size: .86rem; color: var(--muted); background: var(--sky); border: 1px solid var(--card-bd); border-radius: 12px; padding: .35em .75em; line-height: 1.3; }
.star-school strong { color: var(--ink); }
.star-meta { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
.star-top .star-score { font-size: 2.5rem; }
.intro > .stage-inner { width: 100%; max-width: var(--wrap); min-width: 0; margin-left: auto; margin-right: auto; }
.intro .ribbon { max-width: 100%; }
.intro { justify-content: flex-start; }
.intro > .stage-inner { margin-top: auto; margin-bottom: auto; }
