/* ==========================================================================
   Mount Abu Public School — Redesign
   Bespoke design system. No framework. Premium-yet-warm CBSE brand.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand — deep academic navy + warm saffron/gold + eco emerald */
  --navy-950: #07182e;
  --navy-900: #0a2540;
  --navy-800: #0f3157;
  --navy-700: #14406f;
  --navy-600: #1c558f;
  --navy-500: #2768a8;
  --blue-400: #4f8fd0;
  --blue-100: #dbeafe;

  --saffron: #f3a23a;
  --saffron-deep: #e0852a;
  --gold: #c8a14a;
  --gold-soft: #e8d2a0;

  --emerald: #1c7a5b;
  --emerald-soft: #d6efe6;

  --maroon: #7a2230;

  /* Neutrals */
  --ink: #15212e;
  --ink-soft: #3c4b5a;
  --muted: #647386;
  --line: #e7e1d6;
  --line-soft: #f0ebe2;
  --cream: #fbf8f2;
  --cream-deep: #f4eee2;
  --paper: #ffffff;

  /* Typography */
  --serif: "Fraunces", "Georgia", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(10, 37, 64, .06), 0 2px 6px rgba(10, 37, 64, .05);
  --sh-md: 0 6px 18px rgba(10, 37, 64, .08), 0 2px 6px rgba(10, 37, 64, .05);
  --sh-lg: 0 24px 60px rgba(10, 37, 64, .16), 0 8px 22px rgba(10, 37, 64, .08);
  --sh-glow: 0 14px 40px rgba(243, 162, 58, .28);

  /* Layout */
  --maxw: 1200px;
  --gut: clamp(18px, 4vw, 40px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* Keyboard focus — visible for everyone tabbing through */
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible, .fab:focus-visible { outline-offset: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; color: var(--navy-900); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.6rem); }
h4 { font-size: 1.12rem; }
p { color: var(--ink-soft); }
.serif { font-family: var(--serif); }

/* Section eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-weight: 700; font-size: .76rem;
  letter-spacing: .16em; text-transform: uppercase; color: #9a5512;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, var(--saffron), var(--gold)); border-radius: 2px; }
.eyebrow.center { justify-content: center; }
.on-dark .eyebrow { color: var(--gold-soft); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(56px, 8vw, 112px); position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1rem; font-size: 1.08rem; }
.lead { font-size: 1.18rem; color: var(--ink-soft); }

.bg-cream { background: var(--cream); }
.bg-deep-cream { background: var(--cream-deep); }
.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy-900); color: #eaf1f8; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy p { color: #b9c8da; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-weight: 600; font-size: 1rem; padding: .92rem 1.6rem; border-radius: var(--r-pill);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap; cursor: pointer; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(135deg, var(--saffron), var(--saffron-deep)); color: #fff; box-shadow: var(--sh-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 46px rgba(243,162,58,.42); }
.btn-navy { background: var(--navy-800); color: #fff; box-shadow: var(--sh-md); }
.btn-navy:hover { transform: translateY(-2px); background: var(--navy-900); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy-800); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--navy-700); background: var(--paper); transform: translateY(-2px); }
.btn-lg { padding: 1.06rem 2rem; font-size: 1.06rem; }
.btn-block { width: 100%; }

.textlink { color: var(--navy-600); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; transition: gap .25s var(--ease), color .2s; }
.textlink svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.textlink:hover { color: var(--saffron-deep); }
.textlink:hover svg { transform: translateX(4px); }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--navy-950); color: #c9d6e5; font-size: .82rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; }
.topbar a { transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar-left { display: flex; gap: 1.4rem; align-items: center; }
.topbar-left .ti { display: inline-flex; align-items: center; gap: .42rem; }
.topbar-left svg { width: 14px; height: 14px; color: var(--saffron); }
.topbar-right { display: flex; gap: 1rem; align-items: center; }
.topbar-socials { display: flex; gap: .7rem; }
.topbar-socials a { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.08); }
.topbar-socials svg { width: 13px; height: 13px; }
.portal-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--gold-soft); font-weight: 600; }
.portal-link svg { width: 14px; height: 14px; }
@media (max-width: 860px) { .topbar-left .ti.hide-sm { display: none; } }
@media (max-width: 560px) { .topbar { display: none; } }

/* ---------- Header / Nav ---------- */
.header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); transition: box-shadow .3s, padding .3s; }
.header.scrolled { box-shadow: 0 8px 30px rgba(10,37,64,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; transition: min-height .3s; }
.header.scrolled .nav { min-height: 66px; }

.brand { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.brand .crest { width: 50px; height: 50px; flex-shrink: 0; border-radius: 50%; object-fit: cover; background: #fff; }
.footer .brand .crest { box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.brand-text { line-height: 1.05; }
.brand-text .bn { font-family: var(--serif); font-weight: 600; font-size: 1.16rem; color: var(--navy-900); display: block; letter-spacing: -.01em; }
.brand-text .bt { font-size: .64rem; letter-spacing: .19em; text-transform: uppercase; color: #9a5512; font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: .2rem; }
.nav-links > li > a { display: inline-flex; align-items: center; gap: .3rem; padding: .6rem .78rem; font-size: .94rem; font-weight: 500; color: var(--ink-soft); border-radius: var(--r-sm); transition: color .2s, background .2s; white-space: nowrap; }
.nav-links > li > a:hover { color: var(--navy-800); background: var(--cream-deep); }
.nav-links > li > a.active { color: var(--navy-900); font-weight: 600; }
.nav-links > li > a.active::after { content: ""; }
.nav-links svg.caret { width: 12px; height: 12px; opacity: .6; }

.has-drop { position: relative; }
.drop { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px); min-width: 230px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-md); box-shadow: var(--sh-lg); padding: .5rem; opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), transform .22s var(--ease); }
/* invisible hover-bridge so the menu stays open while the cursor crosses the gap */
.drop::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.drop a { display: block; padding: .6rem .8rem; border-radius: var(--r-sm); font-size: .92rem; color: var(--ink-soft); transition: background .18s, color .18s; }
.drop a:hover { background: var(--cream-deep); color: var(--navy-800); }

.nav-cta { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--cream-deep); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-800); margin: 4px auto; border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-links { position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(380px, 86vw); flex-direction: column; align-items: stretch; gap: .1rem; background: var(--paper); padding: 88px 1.2rem 2rem; box-shadow: var(--sh-lg); transform: translateX(100%); transition: transform .36s var(--ease); overflow-y: auto; z-index: 70; }
  .nav-links.open { transform: translateX(0); }
  .nav-links > li > a { padding: .85rem 1rem; font-size: 1.02rem; border-radius: var(--r-sm); }
  .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 .5rem 1rem; min-width: 0; background: transparent; }
  .has-drop:hover .drop { transform: none; }
  .nav-toggle { display: block; position: relative; z-index: 80; }
  .nav-cta .btn.hide-mobile { display: none; }
  .nav-scrim { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; background: rgba(7,24,46,.45); opacity: 0; visibility: hidden; transition: .3s; z-index: 65; }
  .nav-scrim.open { opacity: 1; visibility: visible; }
}

/* ---------- Hero — full-image banner + value-prop band below ---------- */
/* The banner matches the 1920×600 source aspect, so the COMPLETE image shows (no crop)
   at native resolution (sharp). No zoom, and NO overlay covering it — the message lives
   in the brand band directly below, so the image stays pristine. */
.hero { position: relative; width: 100%; aspect-ratio: 1920 / 600; min-height: 300px; max-height: 600px; overflow: hidden; background: var(--navy-900); isolation: isolate; }
.hero-fallback { position: absolute; inset: 0; z-index: 0; background: linear-gradient(135deg, var(--navy-900), var(--navy-700) 60%, var(--emerald)); }
.hero-media { position: absolute; inset: 0; z-index: 1; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity 1.5s var(--ease); }
.hero-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }
.hero-progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(255,255,255,.2); z-index: 4; overflow: hidden; }
.hero-progress-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--saffron), var(--gold)); }
/* soft fade at the very bottom so the banner melts into the band below */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; z-index: 2; pointer-events: none; background: linear-gradient(0deg, var(--navy-900) 0%, transparent 100%); }

/* value-prop band right below the banner — text on brand colour = always legible */
.hero-intro { position: relative; background: linear-gradient(165deg, var(--navy-900) 0%, var(--navy-800) 58%, #0d3a6b 100%); color: #fff; overflow: hidden; }
.hero-intro::before { content: ""; position: absolute; right: -6%; top: -40%; width: 48%; height: 160%; background: radial-gradient(circle, rgba(243,162,58,.16), transparent 64%); pointer-events: none; }
.hero-intro .wrap { position: relative; padding-block: clamp(1.7rem, 3.2vw, 2.7rem) clamp(3rem, 5vw, 4rem); }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.hpill { display: inline-flex; align-items: center; gap: .42rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); padding: .4rem .8rem; border-radius: var(--r-pill); font-size: .78rem; font-weight: 600; }
.hpill svg { width: 15px; height: 15px; color: var(--saffron); }
.hero-intro h1 { color: #fff; font-size: clamp(1.9rem, 3.2vw, 3.1rem); line-height: 1.07; max-width: 20ch; }
.hero-intro h1 .accent { background: linear-gradient(120deg, var(--saffron), var(--gold-soft)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: clamp(1rem, 1.3vw, 1.18rem); color: #cdd9e6; margin-top: 1rem; max-width: 62ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.hero-meta { display: flex; align-items: center; gap: .8rem; margin-top: 1.3rem; flex-wrap: wrap; color: #b9c8da; font-size: .9rem; }
.hero-meta .star { color: var(--saffron); letter-spacing: 2px; }

/* MOBILE — 3.2:1 banner is too short on phones, so show a taller cropped band */
@media (max-width: 760px) {
  .hero { aspect-ratio: auto; height: 36vh; min-height: 230px; max-height: 340px; }
  .hero-intro .wrap { padding-block: clamp(1.6rem, 6vw, 2.1rem) clamp(2.8rem, 9vw, 3.4rem); }
  .hero-intro h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); max-width: none; }
}

.admissions-ribbon { position: absolute; top: 0; right: 0; z-index: 5; }

/* ---------- Stats bar ---------- */
.stats-bar { position: relative; z-index: 10; margin-top: -38px; }
.stats-card { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--sh-lg); border: 1px solid var(--line-soft); padding: clamp(1.5rem, 3vw, 2.4rem); display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.stat { text-align: center; padding: .3rem; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 18%; height: 64%; width: 1px; background: var(--line); }
.stat .num { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.7rem); color: var(--navy-900); line-height: 1; letter-spacing: -.02em; }
.stat .num .suffix { color: #9a5512; }
.stat .lbl { font-size: .82rem; color: var(--muted); margin-top: .5rem; font-weight: 500; line-height: 1.3; }
@media (max-width: 860px) { .stats-card { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; } .stat:nth-child(odd)::after { display: none; } .stat:nth-child(5) { grid-column: 1 / -1; } }
@media (max-width: 420px) { .stats-card { grid-template-columns: 1fr 1fr; } }

/* ---------- Pillars / why ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.pillar { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 1.7rem 1.5rem; transition: transform .3s var(--ease), box-shadow .3s; position: relative; overflow: hidden; }
.pillar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--saffron), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.pillar:hover::before { transform: scaleX(1); }
.pillar .ic { width: 54px; height: 54px; border-radius: var(--r-md); display: grid; place-items: center; margin-bottom: 1.1rem; background: var(--emerald-soft); color: var(--emerald); }
.pillar:nth-child(2) .ic { background: #fdeede; color: var(--saffron-deep); }
.pillar:nth-child(3) .ic { background: var(--blue-100); color: var(--navy-600); }
.pillar:nth-child(4) .ic { background: #f3e9d4; color: var(--gold); }
.pillar .ic svg { width: 27px; height: 27px; }
.pillar h3 { font-size: 1.22rem; margin-bottom: .5rem; }
.pillar p { font-size: .95rem; }

/* ---------- Split / message ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media .photo { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); aspect-ratio: 4/5; background: var(--cream-deep); }
.split-media .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.split-media .frame { position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); border-radius: var(--r-xl); z-index: -1; }
.quote-badge { position: absolute; right: -10px; bottom: 26px; background: var(--paper); border-radius: var(--r-md); box-shadow: var(--sh-lg); padding: 1rem 1.2rem; display: flex; gap: .8rem; align-items: center; max-width: 260px; }
.quote-badge .award { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--saffron), var(--saffron-deep)); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.quote-badge .award svg { width: 22px; height: 22px; }
.quote-badge .t1 { font-weight: 700; font-size: .92rem; color: var(--navy-900); }
.quote-badge .t2 { font-size: .76rem; color: var(--muted); }

.signature { font-family: var(--serif); font-size: 1.5rem; color: var(--navy-900); font-style: italic; }
.message-blocks blockquote { font-family: var(--serif); font-size: clamp(1.25rem, 2.3vw, 1.7rem); line-height: 1.4; color: var(--navy-900); font-weight: 500; margin: 1.2rem 0; }
.message-blocks blockquote::before { content: "“"; font-size: 2.4em; line-height: 0; color: var(--gold); vertical-align: -.4em; margin-right: .05em; }
.who { display: flex; align-items: center; gap: .9rem; margin-top: 1.8rem; }
.who .nm { font-weight: 700; color: var(--navy-900); }
.who .rl { font-size: .88rem; color: var(--muted); }
.who-line { width: 40px; height: 2px; background: var(--gold); }

@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } .split-media .photo { aspect-ratio: 3/2; max-height: 460px; } .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pillar-grid { grid-template-columns: 1fr; } }

/* ---------- Academics ---------- */
.path-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.path { border-radius: var(--r-lg); overflow: hidden; position: relative; isolation: isolate; min-height: 300px; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--sh-md); background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); }
.path img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .6s var(--ease); }
.path::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(7,24,46,.05) 30%, rgba(7,24,46,.86)); }
.path:hover img { transform: scale(1.06); }
.path-body { padding: 1.4rem; position: relative; z-index: 3; }
.path-body .stage { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; }
.path-body h3 { color: #fff; font-size: 1.3rem; margin: .3rem 0; }
.path-body p { color: #d6e0ec; font-size: .86rem; }
@media (max-width: 880px) { .path-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .path-grid { grid-template-columns: 1fr; } }

.streams { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.stream-chip { display: inline-flex; align-items: center; gap: .5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill); padding: .55rem 1.1rem; font-weight: 600; font-size: .92rem; color: var(--navy-800); }
.stream-chip .dot { width: 9px; height: 9px; border-radius: 50%; }

/* ---------- Results ---------- */
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.result-card { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #fff; border-radius: var(--r-xl); padding: clamp(1.6rem, 3vw, 2.4rem); position: relative; overflow: hidden; }
.result-card::before { content: ""; position: absolute; top: -40px; right: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(243,162,58,.35), transparent 70%); }
.result-card .rc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.3rem; position: relative; }
.result-card .rc-top .cls { font-family: var(--serif); font-size: 1.5rem; color: #fff; }
.result-card .rc-top .yr { font-size: .76rem; background: rgba(255,255,255,.14); padding: .3rem .7rem; border-radius: var(--r-pill); font-weight: 600; }
.rc-figs { display: flex; gap: 1.6rem; margin-bottom: 1.4rem; }
.rc-fig .v { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--saffron); line-height: 1; }
.rc-fig .k { font-size: .8rem; color: #b9c8da; margin-top: .35rem; }
.rc-toppers { border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.1rem; }
.rc-toppers .tlabel { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #9fb2c8; margin-bottom: .7rem; }
.topper { display: flex; align-items: center; gap: .7rem; padding: .35rem 0; }
.topper .medal { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--saffron-deep)); display: grid; place-items: center; font-weight: 700; font-size: .78rem; color: #fff; flex-shrink: 0; }
.topper .tn { font-weight: 600; font-size: .95rem; }
.topper .ts { margin-left: auto; font-family: var(--serif); color: var(--gold-soft); font-weight: 600; }
@media (max-width: 760px) { .results-grid { grid-template-columns: 1fr; } }

/* ---------- Facilities ---------- */
.fac-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; grid-auto-rows: 200px; }
.fac { position: relative; isolation: isolate; border-radius: var(--r-lg); overflow: hidden; color: #fff; display: flex; align-items: flex-end; box-shadow: var(--sh-md); background: linear-gradient(150deg, var(--navy-600), var(--navy-900)); }
.fac img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .7s var(--ease); }
.fac::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(7,24,46,0) 35%, rgba(7,24,46,.85)); }
.fac:hover img { transform: scale(1.07); }
.fac-body { padding: 1.2rem 1.3rem; position: relative; z-index: 3; }
.fac-body h4 { color: #fff; font-size: 1.12rem; }
.fac-body p { color: #d2dce8; font-size: .82rem; margin-top: .2rem; }
.fac-tag { position: absolute; top: 1rem; left: 1rem; z-index: 3; background: rgba(243,162,58,.95); color: #2a1606; font-size: .68rem; font-weight: 700; padding: .25rem .6rem; border-radius: var(--r-pill); letter-spacing: .03em; }
.fac.f-lg { grid-column: span 6; grid-row: span 2; }
.fac.f-md { grid-column: span 6; }
.fac.f-sm { grid-column: span 4; }
.fac.f-4 { grid-column: span 4; }
.fac.f-3 { grid-column: span 3; }
@media (max-width: 980px) { .fac-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 180px; } .fac.f-lg { grid-column: span 6; } .fac.f-md, .fac.f-sm, .fac.f-4, .fac.f-3 { grid-column: span 3; } }
@media (max-width: 560px) { .fac-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } .fac.f-lg { grid-column: 1 / -1; } .fac { grid-column: span 1 !important; } }

/* Safety strip */
.safety { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.4rem; }
.safety-item { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 1.1rem 1.2rem; display: flex; gap: .8rem; align-items: flex-start; }
.safety-item .ic { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--emerald-soft); color: var(--emerald); display: grid; place-items: center; flex-shrink: 0; }
.safety-item .ic svg { width: 20px; height: 20px; }
.safety-item h4 { font-family: var(--sans); font-size: .98rem; font-weight: 700; color: var(--navy-900); }
.safety-item p { font-size: .82rem; }
@media (max-width: 880px) { .safety { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .safety { grid-template-columns: 1fr; } }

/* ---------- Beyond academics ---------- */
.houses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.house { border-radius: var(--r-lg); padding: 1.5rem 1.3rem; color: #fff; position: relative; overflow: hidden; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.house h4 { color: #fff; font-size: 1.3rem; }
.house .hd { font-size: .82rem; opacity: .9; }
.house .hi { font-size: 2.2rem; opacity: .25; position: absolute; top: .6rem; right: 1rem; }
.house.h1 { background: linear-gradient(150deg, #b6442f, #7a2230); }
.house.h2 { background: linear-gradient(150deg, #2768a8, #14406f); }
.house.h3 { background: linear-gradient(150deg, #1c7a5b, #0f5239); }
.house.h4c { background: linear-gradient(150deg, #d39a2c, #a06a18); }
@media (max-width: 760px) { .houses { grid-template-columns: 1fr 1fr; } }

.life-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.4rem; }
.life { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 1.5rem; }
.life .ic { width: 48px; height: 48px; border-radius: var(--r-md); background: var(--blue-100); color: var(--navy-600); display: grid; place-items: center; margin-bottom: .9rem; }
.life .ic svg { width: 24px; height: 24px; }
.life h4 { font-size: 1.08rem; margin-bottom: .35rem; }
.life p { font-size: .9rem; }
@media (max-width: 760px) { .life-grid { grid-template-columns: 1fr; } }

/* ---------- Awards marquee ---------- */
.awards { background: var(--navy-950); color: #fff; }
.awards-track-wrap { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.awards-track { display: flex; gap: 1rem; width: max-content; animation: marquee 38s linear infinite; }
.awards-track-wrap:hover .awards-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.award-chip { display: inline-flex; align-items: center; gap: .7rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-pill); padding: .7rem 1.3rem; white-space: nowrap; }
.award-chip .ac-ic { color: var(--saffron); display: grid; place-items: center; }
.award-chip .ac-ic svg { width: 20px; height: 20px; }
.award-chip span { font-size: .92rem; font-weight: 600; color: #e9f0f8; }
@media (prefers-reduced-motion: reduce) { .awards-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ---------- Testimonials ---------- */
.tst-viewport { overflow: hidden; }
.tst-track { display: flex; transition: transform .5s var(--ease); }
.tst-card { min-width: 100%; padding: 0 .5rem; }
.tst-inner { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-xl); padding: clamp(1.8rem, 4vw, 3rem); box-shadow: var(--sh-md); max-width: 820px; margin-inline: auto; text-align: center; }
.tst-stars { color: var(--saffron); letter-spacing: 3px; margin-bottom: 1rem; }
.tst-quote { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.7rem); line-height: 1.45; color: var(--navy-900); font-weight: 500; }
.tst-who { display: flex; align-items: center; justify-content: center; gap: .9rem; margin-top: 1.6rem; }
.tst-av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-soft); }
.tst-av-fb { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-600), var(--emerald)); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.tst-meta { text-align: left; }
.tst-meta .nm { font-weight: 700; color: var(--navy-900); }
.tst-meta .rl { font-size: .85rem; color: var(--muted); }
.tst-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.8rem; }
.tst-dot { width: 24px; height: 24px; border-radius: 50%; background: transparent; border: none; padding: 0; cursor: pointer; position: relative; }
.tst-dot::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: .3s; }
.tst-dot.active::after { background: var(--saffron); width: 26px; border-radius: var(--r-pill); }

/* ---------- Admissions CTA + steps ---------- */
.adm { position: relative; overflow: hidden; }
.adm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.4rem; counter-reset: step; }
.adm-step { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); padding: 1.6rem; position: relative; }
.adm-step .n { counter-increment: step; font-family: var(--serif); font-size: 2.4rem; color: var(--saffron); line-height: 1; }
.adm-step h4 { color: #fff; margin: .6rem 0 .4rem; }
.adm-step p { color: #b9c8da; font-size: .9rem; }
.adm-step .arrow { position: absolute; right: -22px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.3); z-index: 2; }
.adm-step:last-child .arrow { display: none; }
@media (max-width: 760px) { .adm-steps { grid-template-columns: 1fr; } .adm-step .arrow { display: none; } }

/* ---------- Enquiry form ---------- */
.enq { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.enq-form { background: var(--paper); border-radius: var(--r-xl); box-shadow: var(--sh-lg); border: 1px solid var(--line-soft); padding: clamp(1.6rem, 3.5vw, 2.6rem); }
.enq-progress { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.6rem; }
.enq-progress .pstep { flex: 1; height: 6px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.enq-progress .pstep.done { background: var(--saffron); }
.enq-progress .ptext { font-size: .78rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy-900); margin-bottom: .4rem; }
.field label .req { color: var(--saffron-deep); }
.field input, .field select, .field textarea { width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--cream); transition: border .2s, box-shadow .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-500); background: #fff; box-shadow: 0 0 0 4px rgba(39,104,168,.1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fstep { display: none; }
.fstep.active { display: block; animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.form-nav { display: flex; gap: .8rem; margin-top: 1.4rem; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 1rem; display: flex; gap: .5rem; align-items: center; justify-content: center; }
.form-note svg { width: 15px; height: 15px; color: var(--emerald); }
.enq-success { text-align: center; padding: 2rem 1rem; display: none; }
.enq-success.show { display: block; animation: fade .4s var(--ease); }
.enq-success .check { width: 72px; height: 72px; border-radius: 50%; background: var(--emerald-soft); color: var(--emerald); display: grid; place-items: center; margin: 0 auto 1.2rem; }
.enq-success .check svg { width: 38px; height: 38px; }

.enq-aside .alist { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.6rem; }
.enq-aside .ai { display: flex; gap: .9rem; align-items: flex-start; }
.enq-aside .ai .ic { width: 42px; height: 42px; border-radius: var(--r-sm); background: rgba(243,162,58,.16); color: var(--saffron-deep); display: grid; place-items: center; flex-shrink: 0; }
.enq-aside .ai .ic svg { width: 21px; height: 21px; }
.enq-aside .ai h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; }
.enq-aside .ai p { font-size: .9rem; }
.enq-contact-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
@media (max-width: 860px) { .enq { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } .enq-aside { order: -1; } }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.news-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.news-thumb { aspect-ratio: 16/10; overflow: hidden; position: relative; background: linear-gradient(150deg, var(--navy-600), var(--emerald)); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-date { position: absolute; top: .8rem; left: .8rem; background: var(--paper); border-radius: var(--r-sm); padding: .35rem .6rem; text-align: center; box-shadow: var(--sh-sm); }
.news-date .d { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--navy-900); line-height: 1; }
.news-date .m { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--saffron-deep); font-weight: 700; }
.news-body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.news-tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--emerald); margin-bottom: .5rem; }
.news-body h3 { font-size: 1.16rem; line-height: 1.25; margin-bottom: .6rem; }
.news-body p { font-size: .9rem; flex: 1; }
.news-body .textlink { margin-top: .9rem; font-size: .9rem; }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--saffron), var(--saffron-deep)); border-radius: var(--r-xl); padding: clamp(2.2rem, 5vw, 3.4rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; box-shadow: var(--sh-lg); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 90% 10%, rgba(255,255,255,.25), transparent 60%); }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.92); position: relative; margin-top: .4rem; }
.cta-band .btn { position: relative; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: #b6c4d6; padding-top: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 2.4rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand-text .bn { color: #fff; }
.footer .brand-text .bt { color: #e8b67e; }
.footer h5 { color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.2rem; font-weight: 700; }
.footer-links { display: flex; flex-direction: column; gap: .65rem; }
.footer-links a { font-size: .92rem; transition: color .2s, padding .2s; }
.footer-links a:hover { color: var(--saffron); padding-left: 4px; }
.footer-about p { font-size: .92rem; margin: 1.1rem 0; max-width: 320px; color: #b3c2d4; }
.footer-contact { display: flex; flex-direction: column; gap: .9rem; }
.footer-contact .fc { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; }
.footer-contact .fc svg { width: 17px; height: 17px; color: var(--saffron); flex-shrink: 0; margin-top: 3px; }
.footer-socials { display: flex; gap: .6rem; margin-top: 1.3rem; }
.footer-socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .25s, transform .25s; }
.footer-socials a:hover { background: var(--saffron); transform: translateY(-3px); }
.footer-socials svg { width: 16px; height: 16px; }
.footer-bot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.6rem; flex-wrap: wrap; font-size: .84rem; }
.footer-bot .powered { display: inline-flex; align-items: center; gap: .4rem; }
.footer-bot .powered b { color: var(--gold-soft); }
.footer-affil { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.06); padding: .35rem .8rem; border-radius: var(--r-pill); font-size: .8rem; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating actions ---------- */
.float-stack { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; flex-direction: column; gap: .7rem; }
.fab { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--sh-lg); transition: transform .25s var(--ease); position: relative; }
.fab:hover { transform: scale(1.08); }
.fab svg { width: 27px; height: 27px; }
.fab-wa { background: #25d366; color: #fff; }
.fab-wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.fab-top { background: var(--navy-800); color: #fff; opacity: 0; visibility: hidden; transform: translateY(10px); }
.fab-top.show { opacity: 1; visibility: visible; transform: none; }

/* Mobile sticky CTA */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 48; background: var(--paper); border-top: 1px solid var(--line); padding: .7rem var(--gut); display: none; gap: .7rem; box-shadow: 0 -8px 24px rgba(10,37,64,.1); }
.mobile-cta .btn { flex: 1; }
@media (max-width: 680px) { .mobile-cta { display: flex; } .float-stack { bottom: 80px; } body { padding-bottom: 72px; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Ribbon ---------- */
.ribbon { background: var(--emerald); color: #fff; font-size: .82rem; font-weight: 600; text-align: center; padding: .55rem 1rem; display: flex; align-items: center; justify-content: center; gap: .6rem; }
.ribbon svg { width: 16px; height: 16px; }
.ribbon a { text-decoration: underline; text-underline-offset: 3px; }
.ribbon .pip { width: 8px; height: 8px; background: var(--saffron); border-radius: 50%; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { background: linear-gradient(140deg, var(--navy-900), var(--navy-700)); color: #fff; padding-block: clamp(48px, 8vw, 92px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 85% 10%, rgba(243,162,58,.18), transparent 60%); }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #cdd9e6; max-width: 600px; margin-top: 1rem; font-size: 1.1rem; }
.crumbs { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: #9fb2c8; margin-bottom: 1.2rem; }
.crumbs a:hover { color: var(--saffron); }
.crumbs svg { width: 13px; height: 13px; opacity: .6; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-md); margin-bottom: .8rem; overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.faq-item.open { box-shadow: var(--sh-md); border-color: var(--line); }
.faq-q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; font-family: var(--serif); font-weight: 600; font-size: 1.08rem; color: var(--navy-900); }
.faq-q .pm { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--cream-deep); display: grid; place-items: center; transition: transform .3s var(--ease), background .25s; }
.faq-q .pm svg { width: 15px; height: 15px; color: var(--saffron-deep); }
.faq-item.open .faq-q .pm { transform: rotate(45deg); background: var(--saffron); }
.faq-item.open .faq-q .pm svg { color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 2rem; margin-top: 1.5rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--saffron), var(--gold), transparent); }
.tl-item { position: relative; padding-bottom: 1.6rem; }
.tl-item::before { content: ""; position: absolute; left: -1.71rem; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--saffron); border: 3px solid var(--cream); box-shadow: 0 0 0 1px var(--saffron); }
.tl-item .tl-date { font-weight: 700; color: var(--navy-900); font-size: .95rem; }
.tl-item .tl-text { font-size: .92rem; color: var(--ink-soft); }

/* ---------- Info table ---------- */
.itable { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-sm); border: 1px solid var(--line-soft); }
.itable th { background: var(--navy-900); color: #fff; text-align: left; padding: .9rem 1.1rem; font-size: .85rem; letter-spacing: .04em; font-weight: 600; }
.itable td { padding: .85rem 1.1rem; border-top: 1px solid var(--line-soft); font-size: .94rem; color: var(--ink-soft); }
.itable tr:nth-child(even) td { background: var(--cream); }
.itable td:first-child { font-weight: 600; color: var(--navy-900); }

/* ---------- Doc / feature list ---------- */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.6rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; font-size: .96rem; color: var(--ink-soft); }
.checklist li svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--emerald); margin-top: 2px; }
@media (max-width: 620px) { .checklist { grid-template-columns: 1fr; } }

/* ---------- Cards grid (generic) ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.icard { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 1.7rem; transition: transform .3s var(--ease), box-shadow .3s; }
.icard:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.icard .ic { width: 50px; height: 50px; border-radius: var(--r-md); background: var(--emerald-soft); color: var(--emerald); display: grid; place-items: center; margin-bottom: 1rem; }
.icard .ic svg { width: 25px; height: 25px; }
.icard h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.icard p { font-size: .94rem; }
@media (max-width: 880px) { .cards-3 { grid-template-columns: 1fr 1fr; } .cards-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cards-3 { grid-template-columns: 1fr; } }

/* ---------- Leadership cards ---------- */
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.leader { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-sm); }
.leader-top { display: flex; gap: 1.2rem; padding: 1.5rem; align-items: center; background: linear-gradient(135deg, var(--cream-deep), var(--cream)); }
.leader-top img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold-soft); flex-shrink: 0; background: var(--navy-700); }
.leader-top .ln { font-family: var(--serif); font-size: 1.3rem; color: var(--navy-900); }
.leader-top .lr { font-size: .85rem; color: var(--saffron-deep); font-weight: 600; }
.leader-body { padding: 1.4rem 1.5rem; }
.leader-body p { font-size: .95rem; }
@media (max-width: 760px) { .leaders { grid-template-columns: 1fr; } }

/* ---------- Value pills ---------- */
.values-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.value-pill { text-align: center; padding: 1.6rem 1rem; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-lg); }
.value-pill .vn { font-family: var(--serif); font-size: 2rem; color: var(--saffron-deep); }
.value-pill h4 { font-family: var(--sans); font-size: 1rem; margin-top: .3rem; }
.value-pill p { font-size: .85rem; margin-top: .3rem; }
@media (max-width: 760px) { .values-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Contact ---------- */
.map-embed { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); border: 1px solid var(--line-soft); min-height: 340px; background: var(--cream-deep); }
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* Designed map card (reliable, no API key) */
.map-card { display: flex; align-items: flex-end; min-height: 380px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); border: 1px solid var(--line-soft); position: relative;
  background:
    radial-gradient(60% 80% at 70% 20%, rgba(28,122,91,.10), transparent 60%),
    radial-gradient(50% 60% at 20% 80%, rgba(39,104,168,.10), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 44px, rgba(10,37,64,.05) 44px 46px),
    repeating-linear-gradient(90deg, transparent 0 44px, rgba(10,37,64,.05) 44px 46px),
    var(--cream-deep);
  transition: box-shadow .3s var(--ease); }
.map-card:hover { box-shadow: var(--sh-lg); }
.map-card .roads { position: absolute; inset: 0; z-index: 0; opacity: .5; }
.map-card .roads span { position: absolute; background: rgba(10,37,64,.10); }
.map-card .roads .r1 { top: 30%; left: 0; right: 0; height: 8px; transform: rotate(-4deg); }
.map-card .roads .r2 { top: 0; bottom: 0; left: 38%; width: 8px; transform: rotate(3deg); background: rgba(243,162,58,.18); }
.map-card .roads .r3 { top: 64%; left: 0; right: 0; height: 5px; transform: rotate(2deg); }
.map-pin { position: absolute; top: 40%; left: 52%; transform: translate(-50%, -50%); z-index: 2; }
.map-pin .dot { width: 56px; height: 56px; border-radius: 50% 50% 50% 0; background: linear-gradient(135deg, var(--saffron), var(--saffron-deep)); transform: rotate(-45deg); box-shadow: var(--sh-lg); display: grid; place-items: center; }
.map-pin .dot svg { width: 26px; height: 26px; color: #fff; transform: rotate(45deg); }
.map-pin::after { content: ""; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 26px; height: 8px; border-radius: 50%; background: rgba(10,37,64,.18); filter: blur(2px); }
.map-info { position: relative; z-index: 3; margin: 1.3rem; background: var(--paper); border-radius: var(--r-md); padding: 1.2rem 1.4rem; box-shadow: var(--sh-md); max-width: 400px; }
.map-info strong { color: var(--navy-900); display: block; font-family: var(--serif); font-size: 1.1rem; }
.map-info .addr { font-size: .9rem; color: var(--muted); display: block; margin: .3rem 0 .7rem; }
.map-info .map-cta { color: var(--saffron-deep); font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; font-size: .92rem; }
.map-info .map-cta svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.map-card:hover .map-info .map-cta svg { transform: translateX(4px); }
.campus-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 1.5rem; }
.campus-card h3 { font-size: 1.2rem; }
.campus-card .badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--emerald); background: var(--emerald-soft); padding: .25rem .6rem; border-radius: var(--r-pill); margin-bottom: .6rem; }

/* ---------- Branch / network cards ---------- */
.branch-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 1.7rem; position: relative; transition: transform .3s var(--ease), box-shadow .3s; display: flex; flex-direction: column; }
.branch-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.branch-card.featured { border-color: var(--saffron); box-shadow: 0 0 0 1px var(--saffron); }
.branch-badge { position: absolute; top: -11px; left: 1.7rem; background: linear-gradient(135deg, var(--saffron), var(--saffron-deep)); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .3rem .7rem; border-radius: var(--r-pill); }
.branch-card .b-ic { width: 46px; height: 46px; border-radius: var(--r-md); background: var(--blue-100); color: var(--navy-600); display: grid; place-items: center; margin-bottom: 1rem; }
.branch-card.featured .b-ic { background: #fdeede; color: var(--saffron-deep); }
.branch-card .b-ic svg { width: 23px; height: 23px; }
.branch-card h3 { font-size: 1.2rem; }
.branch-card .b-loc { display: inline-flex; align-items: center; gap: .4rem; color: var(--emerald); font-weight: 600; font-size: .88rem; margin: .35rem 0 .7rem; }
.branch-card .b-loc svg { width: 15px; height: 15px; }
.branch-card p { font-size: .92rem; flex: 1; }
.branch-card .b-foot { margin-top: 1rem; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; font-size: .86rem; color: var(--muted); }
.branch-card .b-foot a { color: var(--navy-600); font-weight: 600; }

/* ---------- Highlight band ---------- */
.hl-band { background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); color: #fff; border-radius: var(--r-xl); padding: clamp(1.8rem,4vw,2.8rem); }
.hl-band h3 { color: #fff; }
.hl-band p { color: #b9c8da; }

/* ---------- In collaboration with (logo strip) ---------- */
.collab { background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.collab .wrap { padding-block: clamp(2rem, 4vw, 3rem); }
.collab-head { text-align: center; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 1.7rem; }
.collab-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.6rem, 5vw, 3.6rem); }
.collab-logos img { height: 54px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .62; transition: filter .3s var(--ease), opacity .3s var(--ease), transform .3s var(--ease); }
.collab-logos img:hover { filter: grayscale(0); opacity: 1; transform: scale(1.06); }
@media (max-width: 600px) { .collab-logos img { height: 40px; } }

/* ---------- Curriculum framework ---------- */
.curr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.curr-card { border-radius: var(--r-lg); padding: 1.8rem; color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 230px; box-shadow: var(--sh-md); }
.curr-card.c-ib { background: linear-gradient(155deg, var(--navy-700), var(--navy-900)); }
.curr-card.c-cbse { background: linear-gradient(155deg, #1c6aa8, var(--navy-800)); }
.curr-card.c-gcc { background: linear-gradient(155deg, var(--saffron-deep), var(--maroon)); }
.curr-card .badge-top { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: .7rem; }
.curr-card.c-gcc .badge-top { color: #ffe6c4; }
.curr-card h3 { color: #fff; font-size: 1.45rem; margin-bottom: .5rem; }
.curr-card p { color: rgba(255,255,255,.88); font-size: .94rem; flex: 1; }
.curr-card .grades { margin-top: 1rem; display: inline-flex; align-self: flex-start; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); padding: .35rem .8rem; border-radius: var(--r-pill); font-size: .8rem; font-weight: 600; }
@media (max-width: 880px) { .curr-grid { grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.prose p { margin-bottom: 1rem; max-width: 62ch; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
.divider-wave { display: block; width: 100%; height: 40px; }
