/* ============================================================
   SOUTH POINT INSTITUTE, HARIPAL
   Premium stylesheet — brand palette derived from the logo
   (Royal Blue + Crimson Red) refined with Navy + Gold for a
   prestigious, trustworthy, guardian-friendly feel.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --navy:        #0A2647;   /* deep institutional navy   */
  --navy-800:    #0E3268;
  --royal:       #0B4DA2;   /* logo blue, refined        */
  --royal-500:   #1663C7;
  --crimson:     #C41E2A;   /* logo red, refined         */
  --crimson-600: #A9151F;
  --gold:        #C9A227;   /* prestige accent           */
  --gold-soft:   #E7C766;

  /* Neutrals */
  --ink:         #16202E;
  --slate:       #45566B;
  --muted:       #708098;
  --line:        #E4E8EF;
  --cream:       #FBF9F4;   /* warm page background      */
  --paper:       #FFFFFF;
  --paper-2:     #F4F6FA;

  /* Effects */
  --shadow-sm:  0 2px 8px rgba(10,38,71,.06);
  --shadow-md:  0 12px 30px rgba(10,38,71,.10);
  --shadow-lg:  0 28px 60px rgba(10,38,71,.16);
  --radius:     16px;
  --radius-sm:  10px;
  --radius-lg:  26px;

  /* Type */
  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: clip;          /* clip (not hidden) so position:sticky header keeps working */
  -webkit-font-smoothing: antialiased;
}
html { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--navy); margin: 0 0 .4em; letter-spacing: -.01em; }

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

/* ---------- Utility / Shared ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body);
  font-weight: 700; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--crimson);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }
.eyebrow.center::after { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }

.section { padding: 96px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.05rem); margin-top: .35rem; }
.section-head p { color: var(--slate); font-size: 1.06rem; margin: 0; }
.lead { font-size: 1.12rem; color: var(--slate); }

.btn {
  --btn-bg: var(--crimson);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 100px; font-weight: 700; font-size: .95rem;
  background: var(--btn-bg); color: #fff; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  box-shadow: 0 10px 22px rgba(196,30,42,.28); white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(196,30,42,.36); }
.btn i { font-size: .9em; }
.btn--navy { --btn-bg: var(--navy); box-shadow: 0 10px 22px rgba(10,38,71,.28); }
.btn--navy:hover { box-shadow: 0 16px 30px rgba(10,38,71,.36); }
.btn--gold { --btn-bg: var(--gold); color: var(--navy); box-shadow: 0 10px 22px rgba(201,162,39,.32); }
.btn--ghost {
  background: transparent; color: var(--navy); border: 1.5px solid var(--line);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--navy); background: var(--navy); color: #fff; box-shadow: var(--shadow-md); }
.btn--white { background: #fff; color: var(--navy); box-shadow: 0 10px 22px rgba(0,0,0,.18); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--royal); }
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover i { transform: translateX(5px); }

/* ---------- Placeholder media (swap for real photos) ---------- */
.ph {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.12), transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
  color: rgba(255,255,255,.85);
  display: grid; place-items: center; text-align: center; min-height: 240px;
  isolation: isolate;
}
.ph::before {
  content: ""; position: absolute; inset: 0; opacity: .18; z-index: -1;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.5) 0 1.5px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.35) 0 1.5px, transparent 2px);
  background-size: 26px 26px, 34px 34px;
}
.ph__tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  padding: .5rem 1rem; border: 1px dashed rgba(255,255,255,.5); border-radius: 100px;
  backdrop-filter: blur(2px);
}
.ph i { font-size: 1.4rem; opacity: .9; }
.ph--crimson { background: linear-gradient(135deg, var(--crimson-600), var(--crimson)); }
.ph--gold { background: linear-gradient(135deg, #9A7A12, var(--gold)); }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.9);
  font-size: .85rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 44px; gap: 1rem; }
.topbar__left { display: flex; align-items: center; gap: 1.6rem; }
.topbar a { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.9); transition: color .2s; }
.topbar a:hover { color: var(--gold-soft); }
.topbar i { color: var(--gold-soft); }
.topbar__right { display: flex; align-items: center; gap: 1.2rem; }
.topbar__socials { display: flex; gap: .35rem; }
.topbar__socials a {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08);
}
.topbar__socials a:hover { background: var(--crimson); color: #fff; }
.topbar__pay {
  font-weight: 700; color: var(--navy) !important; background: var(--gold);
  padding: .3rem .9rem; border-radius: 100px;
}
.topbar__pay:hover { background: var(--gold-soft); color: var(--navy) !important; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
/* The blue top bar scrolls away naturally; only the header stays pinned. */
.header {
  position: sticky; top: 0; z-index: 120;
  background: rgba(251,249,244,.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, background .3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,.94); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 92px; gap: .7rem; max-width: 1340px; }
.brand { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.brand__logo { height: 52px; width: auto; }
.brand__text { display: none; }

.nav__menu { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap;
  padding: .7rem .58rem; font-weight: 600; font-size: .9rem; color: var(--navy);
  border-radius: 8px; transition: color .2s, background .2s;
}
.nav__link:hover, .nav__item:hover > .nav__link { color: var(--crimson); }
.nav__link .caret { font-size: .6rem; transition: transform .25s; opacity: .6; }
.nav__item:hover .caret { transform: rotate(180deg); }
.nav__link::after {
  content: ""; position: absolute; left: .58rem; right: .58rem; bottom: .45rem; height: 2px;
  background: var(--crimson); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__item:hover > .nav__link::after, .nav__link.active::after { transform: scaleX(1); }
.nav__link.active { color: var(--crimson); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 20;
}
.nav__item:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-radius: 9px;
  font-size: .9rem; font-weight: 500; color: var(--slate); transition: background .18s, color .18s;
}
.dropdown a i { color: var(--gold); font-size: .8rem; width: 16px; }
.dropdown a:hover { background: var(--paper-2); color: var(--crimson); }
.dropdown a:hover i { color: var(--crimson); }

.nav__cta { display: flex; align-items: center; gap: .6rem; }
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); color: var(--navy); font-size: 1.25rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, var(--navy) 0%, #0c2c56 45%, var(--royal) 120%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(196,30,42,.35), transparent 60%),
    radial-gradient(50% 70% at 10% 90%, rgba(201,162,39,.18), transparent 60%);
}
.hero__decor {
  position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: radial-gradient(circle, #fff 1px, transparent 1.5px);
  background-size: 34px 34px;
}
.hero .container { position: relative; z-index: 2; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding: 90px 0 104px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.4rem;
  padding: .58rem 1.2rem; border-radius: 100px; font-size: .95rem; font-weight: 700; letter-spacing: .04em;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff;
}
.hero__badge i { color: var(--gold-soft); }
.hero h1 {
  color: #fff; font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1.05; margin-bottom: 1.2rem;
}
.hero h1 .accent { color: var(--gold-soft); font-style: italic; }
.hero__sub { font-size: 1.18rem; color: rgba(255,255,255,.85); max-width: 540px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.4rem; }
.hero__trust { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero__trust .t { display: flex; flex-direction: column; }
.hero__trust .t b { font-family: var(--font-display); font-size: 1.9rem; color: #fff; line-height: 1; }
.hero__trust .t span { font-size: .82rem; color: rgba(255,255,255,.72); margin-top: .3rem; }

.hero__media { position: relative; }
.hero__media .ph { min-height: 460px; box-shadow: var(--shadow-lg); border: 6px solid rgba(255,255,255,.12); }
.hero__media .ph--main { border-radius: var(--radius-lg); }
.hero__floatcard {
  position: absolute; left: -28px; bottom: 34px;
  background: #fff; color: var(--ink); border-radius: 16px; padding: 1rem 1.2rem;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .9rem; max-width: 260px;
}
.hero__floatcard .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(11,77,162,.12); color: var(--royal); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.hero__floatcard b { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); }
.hero__floatcard span { font-size: .8rem; color: var(--muted); }
.hero__wave { display: block; width: 100%; position: relative; z-index: 2; margin-bottom: -6px; }

/* Notice marquee */
.notice {
  background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: stretch; overflow: hidden; position: relative; z-index: 3;
}
.notice__label {
  background: var(--crimson); color: #fff; font-weight: 700; font-size: .82rem; letter-spacing: .06em;
  display: flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; flex-shrink: 0; text-transform: uppercase;
}
.notice__track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.notice__inner { display: flex; gap: 3rem; padding-right: 3rem; white-space: nowrap; width: max-content; animation: marquee 34s linear infinite; will-change: transform; }
.notice:hover .notice__inner { animation-play-state: paused; }
.notice__inner a { font-size: .9rem; font-weight: 500; color: var(--slate); display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.notice__inner a i { color: var(--gold); font-size: .6rem; }
.notice__inner a:hover { color: var(--crimson); }
/* seamless: track holds two identical sets; shift exactly half its width */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   TRUST STRIP / STATS
   ============================================================ */
.stats { background: var(--paper); }
.stats__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat {
  text-align: center; padding: 30px 20px; border-radius: var(--radius);
  background: var(--cream); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s;
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat i { font-size: 1.7rem; color: var(--crimson); margin-bottom: .5rem; }
.stat b { display: block; font-family: var(--font-display); font-size: 2.7rem; color: var(--navy); line-height: 1; }
.stat span { color: var(--slate); font-weight: 600; font-size: .95rem; margin-top: .4rem; display: block; }

/* ============================================================
   ABOUT / WELCOME
   ============================================================ */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.about__media { position: relative; }
.about__media .ph { min-height: 440px; }
.about__stack { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about__stack .ph { min-height: 210px; }
/* Premium gold medallion / seal */
.about__badge {
  position: absolute; right: -24px; top: -24px; width: 148px; height: 148px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  color: var(--navy); font-family: var(--font-display); line-height: 1.02;
  background:
    radial-gradient(115% 115% at 30% 24%, rgba(255,255,255,.60), rgba(255,255,255,0) 46%),
    conic-gradient(from 210deg, #B8901E, #E7C766 20%, #C9A227 42%, #F0D888 64%, #A9821A 86%, #B8901E);
  border: 5px solid #fff;
  box-shadow:
    0 20px 44px rgba(169,130,26,.40),
    0 8px 18px rgba(10,38,71,.20),
    inset 0 0 0 1px rgba(255,255,255,.4),
    inset 0 -10px 20px rgba(120,90,10,.28);
  isolation: isolate;
}
/* rotating dashed "seal" ring near the rim */
.about__badge::before {
  content: ""; position: absolute; inset: 9px; border-radius: 50%; z-index: 0;
  border: 1.5px dashed rgba(10,38,71,.30);
  animation: badgeSpin 24s linear infinite;
}
/* soft glossy sheen catching the top-left */
.about__badge::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(55% 40% at 32% 20%, rgba(255,255,255,.55), transparent 62%);
}
@keyframes badgeSpin { to { transform: rotate(360deg); } }

.about__badge b {
  position: relative; z-index: 1;
  font-size: 2.75rem; font-weight: 600; letter-spacing: -.02em;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.about__badge span {
  position: relative; z-index: 1;
  font-family: var(--font-body); font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy);
}
.about__badge span::before {
  content: ""; display: block; width: 22px; height: 1.5px; margin: 4px auto 6px;
  background: linear-gradient(90deg, transparent, rgba(10,38,71,.55), transparent);
}
.about__list { display: grid; gap: 1rem; margin: 1.6rem 0 2rem; }
.about__list li { display: flex; gap: .9rem; align-items: flex-start; }
.about__list .tick { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: rgba(11,77,162,.1); color: var(--royal); display: grid; place-items: center; font-size: .75rem; margin-top: 2px; }
.about__list b { color: var(--navy); }
.desk-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.desk-links a { font-size: .84rem; font-weight: 600; padding: .5rem 1rem; border-radius: 100px; background: var(--paper-2); color: var(--slate); border: 1px solid var(--line); transition: .2s; }
.desk-links a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ============================================================
   ACADEMIC LEVELS
   ============================================================ */
.levels { background: var(--paper); }
.levels__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.level-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; color: #fff;
  isolation: isolate; transition: transform .35s var(--ease); box-shadow: var(--shadow-sm);
}
.level-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.level-card::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(160deg, var(--royal), var(--navy));
}
.level-card:nth-child(2)::before { background: linear-gradient(160deg, var(--crimson), var(--crimson-600)); }
.level-card:nth-child(3)::before { background: linear-gradient(160deg, #146a4c, #0c3d2c); }
.level-card:nth-child(4)::before { background: linear-gradient(160deg, #9A7A12, #6b520a); }
.level-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 65%);
}
.level-card .num { font-family: var(--font-display); font-size: 1rem; opacity: .8; }
.level-card h3 { color: #fff; font-size: 1.5rem; margin: .3rem 0 .4rem; }
.level-card p { font-size: .9rem; color: rgba(255,255,255,.85); margin: 0 0 1rem; }
.level-card .link-arrow { color: #fff; font-size: .85rem; }
.level-card .link-arrow i { color: var(--gold-soft); }

/* ============================================================
   FEATURES / WHY CHOOSE US
   ============================================================ */
.features__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feature {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.feature::before { content:""; position:absolute; left:0; top:0; height:4px; width:100%; background: linear-gradient(90deg, var(--crimson), var(--gold)); transform: scaleX(0); transform-origin:left; transition: transform .35s var(--ease); }
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }
.feature__ic {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(11,77,162,.12), rgba(196,30,42,.12)); color: var(--royal); margin-bottom: 1.2rem;
}
.feature h3 { font-size: 1.28rem; }
.feature p { color: var(--slate); margin: 0; font-size: .96rem; }

/* ============================================================
   INFRASTRUCTURE (bento)
   ============================================================ */
.infra { background: var(--navy); color: #fff; }
.infra .section-head h2, .infra .eyebrow { color: #fff; }
.infra .eyebrow { color: var(--gold-soft); }
.infra .section-head p { color: rgba(255,255,255,.75); }
.infra__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 18px; }
.infra__item {
  position: relative; border-radius: var(--radius); overflow: hidden; color:#fff;
  display: flex; align-items: flex-end; padding: 20px; isolation: isolate;
  border: 1px solid rgba(255,255,255,.08);
}
.infra__item .ph { position: absolute; inset: 0; border-radius: 0; z-index: -2; min-height: 0; }
.infra__item::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(to top, rgba(5,18,38,.85), transparent 70%); }
.infra__item h4 { color:#fff; margin:0; font-size: 1.1rem; display:flex; align-items:center; gap:.5rem; }
.infra__item h4 i { color: var(--gold-soft); }
.infra__item.tall { grid-row: span 2; }
.infra__item.wide { grid-column: span 2; }

/* ============================================================
   PROGRAM BAND (Smart Edge)
   ============================================================ */
.band {
  position: relative; overflow: hidden; color:#fff;
  background: linear-gradient(120deg, var(--crimson-600), var(--crimson));
}
.band::after { content:""; position:absolute; inset:0; opacity:.12; background-image: radial-gradient(circle,#fff 1px,transparent 1.5px); background-size: 30px 30px; }
.band .container { position: relative; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:2rem; flex-wrap:wrap; padding-block: 64px; }
.band h2 { color:#fff; font-size: clamp(1.8rem,3.4vw,2.6rem); max-width: 640px; }
.band p { color: rgba(255,255,255,.9); max-width: 560px; margin:0; }

/* ============================================================
   CO-CURRICULAR
   ============================================================ */
.cocurric__grid { display:grid; grid-template-columns: repeat(4,1fr); gap:22px; }
.chip-card {
  background: var(--paper); border:1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; text-align:center;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.chip-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.chip-card .ic { width:66px; height:66px; margin:0 auto 1rem; border-radius:50%; display:grid; place-items:center; font-size:1.6rem; background: rgba(201,162,39,.14); color: var(--gold); }
.chip-card h3 { font-size:1.15rem; margin-bottom:.3rem; }
.chip-card p { font-size:.9rem; color:var(--slate); margin:0; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi { background: var(--paper-2); }
.testi__viewport { overflow: hidden; }
.testi__track { display: flex; transition: transform .6s var(--ease); }
.testi__slide { min-width: 100%; padding: 4px; }
@media (min-width: 900px){ .testi__slide { min-width: 50%; } }
.testi-card {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; height:100%;
  box-shadow: var(--shadow-sm); position: relative;
}
.testi-card .quote { font-family: var(--font-display); font-size: 3.5rem; color: var(--gold); line-height: .6; opacity:.5; }
.testi-card p { color: var(--slate); font-size: 1.02rem; margin: .6rem 0 1.4rem; }
.testi-card .who { display:flex; align-items:center; gap: .9rem; }
.testi-card .who .av { width:52px; height:52px; border-radius:50%; background: linear-gradient(135deg,var(--royal),var(--navy)); color:#fff; display:grid; place-items:center; font-weight:700; font-family:var(--font-display); }
.testi-card .who b { display: block; color: var(--navy); font-family: var(--font-display); font-size: 1.05rem; line-height: 1.25; }
.testi-card .who span { display: block; margin-top: 2px; font-size:.85rem; color: var(--muted); }
.testi-card .stars { color: var(--gold); font-size:.8rem; margin-bottom:.4rem; }
.testi__nav { display:flex; justify-content:center; gap:.6rem; margin-top: 34px; }
.testi__dot { width:10px; height:10px; border-radius:50%; background: var(--line); transition:.25s; }
.testi__dot.active { background: var(--crimson); width: 30px; border-radius: 6px; }

/* ============================================================
   ALUMNI
   ============================================================ */
.alumni__grid { display:grid; grid-template-columns: repeat(4,1fr); gap:22px; }
.alum {
  background: var(--paper); border:1px solid var(--line); border-radius: var(--radius); overflow:hidden;
  transition: transform .3s var(--ease), box-shadow .3s; text-align:center;
}
.alum:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.alum .ph { min-height: 240px; border-radius: 0; }
.alum__body { padding: 18px; }
.alum__body b { display:block; font-family: var(--font-display); color: var(--navy); font-size:1.1rem; }
.alum__body span { font-size:.85rem; color: var(--crimson); font-weight:600; }

/* ============================================================
   NEWS & EVENTS
   ============================================================ */
.news__grid { display:grid; grid-template-columns: repeat(3,1fr); gap:26px; }
.news-card {
  background: var(--paper); border:1px solid var(--line); border-radius: var(--radius); overflow:hidden;
  display:flex; flex-direction:column; transition: transform .3s var(--ease), box-shadow .3s;
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.news-card__media { position: relative; }
.news-card__media .ph { border-radius: 0; min-height: 210px; }
.news-card__date {
  position:absolute; left:16px; top:16px; background:#fff; color:var(--navy); border-radius:12px;
  text-align:center; padding:.5rem .7rem; box-shadow: var(--shadow-sm); line-height:1;
}
.news-card__date b { display:block; font-family:var(--font-display); font-size:1.4rem; }
.news-card__date span { font-size:.7rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--crimson); }
.news-card__body { padding: 22px; display:flex; flex-direction:column; flex:1; }
.news-card__tag { font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--royal); margin-bottom:.5rem; }
.news-card h3 { font-size:1.2rem; margin-bottom:.5rem; }
.news-card p { color:var(--slate); font-size:.92rem; margin:0 0 1rem; flex:1; }

/* ============================================================
   ADMISSION CTA
   ============================================================ */
.admission {
  position: relative; overflow:hidden; color:#fff;
  background: linear-gradient(120deg, var(--navy), var(--royal));
}
.admission::after { content:""; position:absolute; inset:0; opacity:.5; background: radial-gradient(50% 80% at 90% 20%, rgba(196,30,42,.4), transparent 60%); }
.admission .container { position:relative; z-index:2; text-align:center; padding-block: 88px; }
.admission h2 { color:#fff; font-size: clamp(2rem,4.4vw,3.2rem); }
.admission p { color: rgba(255,255,255,.85); font-size:1.12rem; max-width:600px; margin:0 auto 2rem; }
.admission__actions { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #071B34; color: rgba(255,255,255,.72); padding-top: 76px; }
.footer__grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 54px; }
.footer__logo { height: 52px; width: auto; margin-bottom: 1.2rem; }
.footer__about p { font-size:.94rem; margin-bottom:1.2rem; }
.footer__socials { display:flex; gap:.6rem; }
.footer__socials a { width:38px; height:38px; border-radius:10px; background: rgba(255,255,255,.08); display:grid; place-items:center; color:#fff; transition:.2s; }
.footer__socials a:hover { background: var(--crimson); transform: translateY(-3px); }
.footer h4 { color:#fff; font-family: var(--font-body); font-size:1.05rem; font-weight:700; margin-bottom:1.2rem; letter-spacing:.02em; }
.footer__links li { margin-bottom:.7rem; }
.footer__links a { font-size:.93rem; transition:.2s; display:inline-flex; align-items:center; gap:.5rem; }
.footer__links a::before { content:"\f105"; font-family:"Font Awesome 6 Free"; font-weight:900; color: var(--gold); font-size:.75rem; }
.footer__links a:hover { color:#fff; transform: translateX(4px); }
.footer__contact li { display:flex; gap:.8rem; margin-bottom:1rem; font-size:.93rem; }
.footer__contact i { color: var(--gold-soft); margin-top:3px; width:18px; }
.footer__bottom { border-top:1px solid rgba(255,255,255,.1); padding: 22px 0; display:flex; justify-content:center; text-align:center; gap:1rem; flex-wrap:wrap; font-size:.85rem; }
.footer__bottom a:hover { color: var(--gold-soft); }

/* ---------- Back to top ---------- */
.totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; background: var(--crimson); color:#fff;
  display:grid; place-items:center; font-size:1rem; box-shadow: var(--shadow-md);
  opacity:0; visibility:hidden; transform: translateY(14px); transition: .3s var(--ease);
}
.totop.show { opacity:1; visibility:visible; transform: translateY(0); }
.totop:hover { background: var(--navy); }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity:0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity:1; transform:none; }

/* ============================================================
   MOBILE NAV
   ============================================================ */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw); background:#fff; z-index: 200;
  transform: translateX(100%); transition: transform .35s var(--ease); box-shadow: var(--shadow-lg);
  display:flex; flex-direction:column; padding: 20px; overflow-y:auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav__head { display:flex; align-items:center; justify-content:space-between; margin-bottom: 1rem; }
.mobile-nav__head img { height: 40px; }
.mobile-nav__close { width:44px; height:44px; border-radius:10px; border:1px solid var(--line); font-size:1.3rem; color:var(--navy); }
.m-item > a { display:flex; align-items:center; justify-content:space-between; padding: .9rem .6rem; font-weight:600; color: var(--navy); border-bottom:1px solid var(--line); }
.m-item.has-sub > a .caret { transition: transform .25s; }
.m-item.open > a .caret { transform: rotate(180deg); }
.m-sub { max-height:0; overflow:hidden; transition: max-height .3s var(--ease); }
.m-sub a { display:block; padding: .65rem .6rem .65rem 1.4rem; font-size:.9rem; color: var(--slate); border-bottom:1px solid var(--paper-2); }
.mobile-nav .btn { margin-top: 1.2rem; }
.backdrop { position:fixed; inset:0; background: rgba(7,27,52,.5); z-index:150; opacity:0; visibility:hidden; transition:.3s; }
.backdrop.show { opacity:1; visibility:visible; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px){
  .infra__grid { grid-template-columns: repeat(2,1fr); }
  .levels__grid, .features__grid, .cocurric__grid, .alumni__grid, .stats__grid { grid-template-columns: repeat(2,1fr); }
  .news__grid { grid-template-columns: 1fr 1fr; }
}
/* Collapse the desktop menu to a hamburger before it gets cramped */
@media (max-width: 1180px){
  .nav__menu { display:none; }
  .nav__toggle { display:grid; place-items:center; }
}
@media (max-width: 992px){
  .nav__cta .btn--apply { display:none; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; padding: 60px 0 80px; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .band .container { flex-direction: column; text-align:center; align-items:center; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 680px){
  .section { padding: 68px 0; }
  .topbar__left .hide-sm { display:none; }
  .topbar__right { gap:.7rem; }
  .stats__grid, .levels__grid, .features__grid, .cocurric__grid, .alumni__grid, .news__grid, .about__stack { grid-template-columns: 1fr; }
  .infra__grid { grid-template-columns: 1fr; grid-auto-rows: 160px; }
  .infra__item.wide { grid-column: span 1; }
  .hero__floatcard { left: 12px; right:12px; max-width: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__trust { gap: 1.4rem; }
}
@media (min-width: 1250px){ .brand__text { display:block; } .brand__text b { font-family: var(--font-display); font-size:1.05rem; color: var(--navy); line-height:1.1; display:block;} .brand__text span{ font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color: var(--crimson); font-weight:700; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal]{ opacity:1; transform:none; }
  .notice__inner{ animation:none; }
}

/* ============================================================
   ★ PREMIUM ENHANCEMENT LAYER
   Refinements layered on top of the base system for a richer,
   more high-end feel.
   ============================================================ */

/* --- Subtle paper grain for depth (very faint) --- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
/* Raise ONLY content sections above the grain overlay.
   Do NOT include fixed-position UI (.mobile-nav, .backdrop, .totop) here —
   forcing position:relative on them breaks their off-canvas / pinned layout. */
.topbar, .hero, .band, .infra, .admission, .footer, .campuses, .levels { position: relative; z-index: 2; }

/* --- Scroll progress bar --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
  z-index: 300; transition: width .1s linear;
  box-shadow: 0 0 10px rgba(201,162,39,.5);
}

/* --- Logo: keep tidy across screens --- */
.brand__logo { height: 66px; max-width: min(66vw, 380px); object-fit: contain; }
@media (max-width: 480px){ .brand__logo { height: 42px; max-width: 62vw; } }

/* --- Buttons: elegant shine sweep on hover --- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease); pointer-events: none;
}
.btn:hover::after { left: 130%; }

/* --- Refined section heading: gold hairline flourish (centered) --- */
.section-head.center h2 { position: relative; }

/* --- Large faint watermark numerals on key sections --- */
.section { --wm: ""; }
.levels, .infra { overflow: hidden; }

/* --- Hero: animated luminous sheen + richer depth --- */
.hero::before {
  content: ""; position: absolute; top: -40%; left: -10%; width: 60%; height: 180%;
  background: radial-gradient(closest-side, rgba(255,255,255,.10), transparent 70%);
  transform: rotate(8deg); pointer-events: none; z-index: 1;
  animation: heroSheen 9s ease-in-out infinite alternate;
}
@keyframes heroSheen { from { opacity: .5; transform: translateX(-6%) rotate(8deg);} to { opacity: 1; transform: translateX(10%) rotate(8deg);} }
.hero__media .ph--main {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.16), transparent 55%),
    linear-gradient(135deg, #0b2a52 0%, var(--royal) 100%);
}
.hero__media .ph--main::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 -80px 120px rgba(5,18,38,.5);
  border-radius: inherit;
}

/* --- Second (top) floating card + gold icon variant --- */
.hero__floatcard--top {
  left: auto; right: -22px; top: 28px; bottom: auto; max-width: 220px;
  animation: floatY 5s ease-in-out infinite;
}
.hero__floatcard { animation: floatY 6s ease-in-out infinite; }
@keyframes floatY { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-9px);} }
.hero__floatcard .ic--gold { background: rgba(201,162,39,.16); color: #9A7A12; }

/* --- Trust stats: subtle dividers --- */
.hero__trust { align-items: center; }
.hero__trust .t + .t { position: relative; padding-left: 2rem; margin-left: 0; }
.hero__trust .t + .t::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 42px; background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.35), rgba(255,255,255,0));
}
@media (max-width:680px){ .hero__trust .t + .t { padding-left: 0; } .hero__trust .t + .t::before { display:none; } }

/* --- Cards: richer, layered shadow + hairline highlight --- */
.feature, .chip-card, .news-card, .alum, .testi-card, .stat {
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, var(--shadow-sm);
}
.feature:hover, .chip-card:hover, .news-card:hover, .alum:hover {
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, var(--shadow-lg);
}

/* --- Placeholder media: gentle zoom on hover of parent card --- */
.news-card__media, .alum, .infra__item, .about__media .ph, .hero__media .ph { overflow: hidden; }
.news-card:hover .ph, .alum:hover .ph { transform: scale(1.05); }
.news-card .ph, .alum .ph { transition: transform .6s var(--ease); }

/* --- Level cards: soft top sheen --- */
.level-card { box-shadow: var(--shadow-md); }
.level-card::after { background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.05) 60%, rgba(255,255,255,.12)); }

/* --- Topbar pay button: subtle pulse to draw the eye --- */
.topbar__pay { position: relative; }
.topbar__pay::after {
  content: ""; position: absolute; inset: 0; border-radius: 100px;
  box-shadow: 0 0 0 0 rgba(201,162,39,.6); animation: payPulse 2.6s infinite;
}
@keyframes payPulse { 0%{ box-shadow: 0 0 0 0 rgba(201,162,39,.55);} 70%{ box-shadow: 0 0 0 8px rgba(201,162,39,0);} 100%{ box-shadow: 0 0 0 0 rgba(201,162,39,0);} }

/* --- Nav link: refined active/hover underline already present; add smooth color --- */
.nav__link { transition: color .2s var(--ease); }

/* --- Gold accent rule beneath sticky header when scrolled --- */
.header.scrolled { border-bottom-color: transparent; box-shadow: 0 1px 0 rgba(201,162,39,.35), var(--shadow-sm); }

/* --- Admission & band: add refined inner ring --- */
.admission .container::before, .band .container::before { content: none; }
.admission h2, .band h2 { text-wrap: balance; }
.section-head h2, .hero h1 { text-wrap: balance; }

/* --- Footer polish: gold top edge --- */
.footer { border-top: 3px solid transparent; border-image: linear-gradient(90deg, var(--crimson), var(--gold), var(--royal)) 1; }

/* ============================================================
   OUR CAMPUSES
   ============================================================ */
.campuses { background: var(--paper); }
.campuses__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 1024px){ .campuses__grid { grid-template-columns: repeat(2, 1fr); } }
.campus-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s;
  box-shadow: var(--shadow-sm);
}
.campus-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.campus-card--featured { border-color: rgba(196,30,42,.35); box-shadow: 0 0 0 1px rgba(196,30,42,.12), var(--shadow-md); }

.campus-card__media { position: relative; overflow: hidden; }
.campus-card__media .ph { border-radius: 0; min-height: 240px; transition: transform .6s var(--ease); }
.campus-card__media img { display: block; width: 100%; height: 240px; object-fit: cover; transition: transform .6s var(--ease); }
.campus-card:hover .campus-card__media .ph,
.campus-card:hover .campus-card__media img { transform: scale(1.05); }
.campus-card__badge {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--crimson); color: #fff; font-size: .76rem; font-weight: 700;
  letter-spacing: .03em; padding: .45rem .85rem; border-radius: 100px; box-shadow: var(--shadow-sm);
}
.campus-card__badge--alt { background: var(--navy); }
.campus-card__badge--soon { background: var(--gold); color: var(--navy); }
/* Coming-soon campus: gentle dashed frame + slightly muted */
.campus-card--soon { border-style: dashed; border-color: rgba(201,162,39,.55); }
.campus-card--soon .campus-card__body > p { color: var(--muted); }

.campus-card__body { padding: 30px; display: flex; flex-direction: column; flex: 1; }
.campus-card__body h3 { font-size: 1.5rem; margin-bottom: .35rem; }
.campus-card__addr { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--crimson); font-size: .9rem; margin: 0 0 .9rem; }
.campus-card__addr i { color: var(--gold); }
.campus-card__body > p { color: var(--slate); font-size: .96rem; margin: 0 0 1.2rem; }

.campus-card__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.campus-card__meta li {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-weight: 600; color: var(--navy);
  background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: .45rem .85rem;
}
.campus-card__meta i { color: var(--royal); font-size: .8rem; }

.campus-card__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: auto; }
.campus-card__actions .btn { padding: .8rem 1.3rem; font-size: .9rem; }

@media (max-width: 860px){
  .campuses__grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   PROGRAM GROUP CARDS (Mini Masters / Growing Genius / Senior Scholars)
   ============================================================ */
.group-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px){ .group-grid { grid-template-columns: repeat(2, 1fr); } }
.group-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 28px 30px; text-align: center; display: flex; flex-direction: column; align-items: center;
  position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.group-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 5px;
  background: linear-gradient(90deg, var(--crimson), var(--gold), var(--royal));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.group-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.group-card:hover::before { transform: scaleX(1); }
.group-card--featured { border-color: rgba(201,162,39,.45); box-shadow: 0 0 0 1px rgba(201,162,39,.22), var(--shadow-md); }
.group-card--featured::before { transform: scaleX(1); }

.group-card__badge {
  height: 160px; width: 100%; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
}
.group-card__badge img {
  max-height: 160px; max-width: 70%; width: auto; height: auto; object-fit: contain; display: block;
  filter: drop-shadow(0 16px 24px rgba(10,38,71,.14));
  transition: transform .45s var(--ease);
}
.group-card:hover .group-card__badge img { transform: translateY(-4px) scale(1.05); }

.group-card__range {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .88rem; color: var(--navy);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 100px;
  padding: .5rem 1.05rem; margin-bottom: 1rem;
}
.group-card__range i { color: var(--crimson); font-size: .82rem; }
.group-card p { color: var(--slate); font-size: .96rem; margin: 0 0 1.3rem; }
.group-card .link-arrow { margin-top: auto; }

@media (max-width: 600px){
  .group-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

/* ============================================================
   FROM THE DESK (Leadership messages)
   ============================================================ */
.deskshow-section {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #edf2fb 100%);
}
.deskshow-section::before {
  content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%;
  top: -140px; left: -130px; z-index: 0;
  background: radial-gradient(circle, rgba(196,30,42,.10), transparent 70%);
}
.deskshow-section::after {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  bottom: -180px; right: -150px; z-index: 0;
  background: radial-gradient(circle, rgba(11,77,162,.10), transparent 70%);
}
.deskshow-section .container { position: relative; z-index: 3; }

/* Layer order in the section background:
   (0) colour glows  ->  (1) large crest logo  ->  (2) frosted glass  ->  (3) content */
.deskshow__wm {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url("../assets/img/crest.png") no-repeat center 50%;
  background-size: min(940px, 96%);
  opacity: .34;
  will-change: transform, opacity;
  transform-origin: center 50%;
  animation: wmBreathe 9s ease-in-out infinite;
}
/* translucent glassy layer that the whole section sits on; frosts the crest behind it */
.deskshow__glass {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.52), rgba(255,255,255,.44));
  -webkit-backdrop-filter: blur(8px) saturate(1.15);
  backdrop-filter: blur(8px) saturate(1.15);
}
/* slow, soothing "breathing": gentle scale + opacity swell, in and out */
@keyframes wmBreathe {
  0%, 100% { transform: scale(1);    opacity: .30; }
  50%      { transform: scale(1.05); opacity: .40; }
}

.deskshow { position: relative; max-width: 1060px; margin: 0 auto; }
.deskshow__stage {
  display: grid; position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 44px;
}
.deskshow__stage::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 6px; z-index: 3;
  background: linear-gradient(90deg, var(--stage-accent, var(--crimson)), var(--gold));
  transition: background .6s var(--ease);
}

.desk-slide {
  grid-area: 1 / 1;
  display: grid; grid-template-columns: 290px 1fr; gap: 42px; align-items: center;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease), visibility .55s;
  pointer-events: none;
}
.desk-slide.is-active { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }

.desk-slide__photo { position: relative; }
.desk-slide__photo::before {
  content: ""; position: absolute; left: -16px; top: -16px; width: 78%; height: 74%;
  border-radius: 22px; background: var(--accent); opacity: .16; transform: rotate(-4deg); z-index: 0;
}
.desk-slide__photo img, .desk-slide__photo .ph {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4 / 5; min-height: 0; object-fit: cover; object-position: top center;
  border-radius: 20px; box-shadow: var(--shadow-md); border: 5px solid #fff; outline: 1px solid var(--line);
}
.desk-slide__tag {
  position: absolute; z-index: 2; left: -12px; bottom: 24px;
  background: var(--accent); color: #fff; padding: 12px 20px; border-radius: 13px;
  box-shadow: 0 14px 26px rgba(10,38,71,.24); max-width: 92%;
}
.desk-slide__tag b { display: block; font-family: var(--font-display); font-size: 1.14rem; line-height: 1.12; }
.desk-slide__tag span { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .92; }

.desk-slide__body .eyebrow { color: var(--accent); }
.desk-slide__body .eyebrow::before { background: var(--accent); }
.desk-slide__body h3 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: .35rem 0 1.1rem; }
.desk-slide__quote { position: relative; margin: 0; padding-left: 52px; }
.desk-slide__q {
  position: absolute; left: 0; top: -10px;
  font-family: var(--font-display); font-size: 3.6rem; line-height: 1; color: var(--accent); opacity: .45;
}
.desk-slide__quote p { margin: 0; color: var(--slate); font-size: 1.06rem; line-height: 1.7; }
.desk-slide__quote em { color: var(--muted); font-size: .92rem; }

.deskshow__controls { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin-top: 28px; }
.deskshow__arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  color: var(--navy); display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), background .2s, color .2s;
}
.deskshow__arrow:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.deskshow__dots { display: flex; gap: .5rem; }
.deskshow__dot { width: 10px; height: 10px; border-radius: 50%; background: #c9d3e2; transition: .25s var(--ease); }
.deskshow__dot.active { background: var(--stage-accent, var(--crimson)); width: 30px; border-radius: 6px; }

@media (max-width: 820px){
  .deskshow__stage { padding: 26px 22px 30px; }
  .desk-slide { grid-template-columns: 1fr; gap: 26px; }
  .desk-slide__photo { max-width: 240px; margin: 6px auto 0; }
  .desk-slide__tag { left: 50%; transform: translateX(-50%); text-align: center; }
}

/* stack slides that are hidden don't drive the height taller than needed on tiny screens */
@media (prefers-reduced-motion: reduce){
  .desk-slide { transition: opacity .01ms, visibility .01ms; transform: none; }
}

/* ============================================================
   VIDEO TESTIMONIALS (auto-sliding 16:9 cards)
   ============================================================ */
.vtesti { background: var(--paper-2); overflow: hidden; }
.vt-viewport { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.vt-track {
  display: flex; gap: 26px; padding-right: 26px; width: max-content;
  animation: vtScroll 55s linear infinite;
}
/* pause the loop on hover, or when a video is actively playing (JS adds .is-paused) */
.vt-viewport:hover .vt-track,
.vt-track.is-paused { animation-play-state: paused; }
@keyframes vtScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.vt-card {
  flex: 0 0 auto; width: 348px; max-width: 82vw;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.vt-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.vt-media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.12), transparent 55%),
    linear-gradient(135deg, var(--navy), var(--royal));
}
.vt-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; display: block; }
.vt-card.is-playing .vt-video { cursor: pointer; }

.vt-play {
  position: absolute; inset: 0; margin: auto; z-index: 3;
  width: 66px; height: 66px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--crimson);
  display: grid; place-items: center; font-size: 1.4rem;
  box-shadow: var(--shadow-md); transition: transform .25s var(--ease), background .2s;
}
.vt-play:hover { transform: scale(1.09); background: #fff; }
.vt-play i { margin-left: 3px; }         /* optical centering of the play triangle */
.vt-card.is-playing .vt-play { display: none; }

.vt-tag {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .02em; color: #fff;
  background: rgba(7,27,52,.55); border: 1px solid rgba(255,255,255,.25);
  padding: .35rem .7rem; border-radius: 100px; backdrop-filter: blur(2px);
}
.vt-card.is-playing .vt-tag { display: none; }

.vt-cap { padding: 16px 18px 18px; }
.vt-cap b { display: block; font-family: var(--font-display); color: var(--navy); font-size: 1.12rem; }
.vt-cap span { font-size: .86rem; color: var(--muted); }

@media (max-width: 680px){
  .vt-card { width: 300px; }
  .vt-track { animation-duration: 42s; }
}

/* ============================================================
   HERO — centered brand lockup (logo on top, design beneath)
   Campus / students photo fills the whole section as a broad
   background (no frame). To use a real photo, set --hero-photo.
   ============================================================ */
.hero {
  --hero-photo: url("../assets/img/hero.jpg");
  background-color: var(--navy);
  /* Photo brand-tinted navy via multiply (duotone), then a readability scrim on top.
     Layer order (top->bottom): dark scrim gradient, navy tint gradient, campus photo. */
  background-image:
    linear-gradient(180deg, rgba(7,26,58,.42), rgba(7,26,58,.62)),
    linear-gradient(120deg, rgba(10,40,90,.96), rgba(12,60,130,.90) 45%, rgba(20,100,200,.80)),
    var(--hero-photo);
  background-size: cover, cover, cover;
  background-position: center, center, center 32%;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-blend-mode: normal, multiply, normal;
  background-attachment: fixed, fixed, fixed;   /* image stays put; page scrolls over it */
}
/* Phones handle fixed backgrounds poorly (jank / no support) — fall back to normal */
@media (max-width: 768px){
  .hero { background-attachment: scroll, scroll, scroll; }
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: 940px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding: 64px 0 96px;
}
.hero__logo {
  display: block; width: min(720px, 92vw); height: auto; max-width: 92vw; object-fit: contain;
  margin-bottom: 0.6rem;   /* tightened gap below the logo */
  filter: drop-shadow(0 0 22px rgba(255,255,255,.40)) drop-shadow(0 10px 26px rgba(0,0,0,.30));
  animation: logoGlow 4.5s ease-in-out infinite alternate;
}
@keyframes logoGlow {
  from { filter: drop-shadow(0 0 13px rgba(255,255,255,.28)) drop-shadow(0 10px 26px rgba(0,0,0,.30)); }
  to   { filter: drop-shadow(0 0 28px rgba(255,255,255,.55)) drop-shadow(0 10px 26px rgba(0,0,0,.30)); }
}
.hero__inner .hero__sub { margin-left: auto; margin-right: auto; }
.hero__inner .hero__actions { justify-content: center; }
.hero__inner .hero__trust { justify-content: center; }

.hero__photonote {
  position: absolute; right: 18px; top: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; color: rgba(255,255,255,.6);
  border: 1px dashed rgba(255,255,255,.3); border-radius: 100px; padding: .3rem .8rem;
  pointer-events: none;
}
@media (max-width: 680px){
  .hero__photonote { display: none; }
  .hero__inner { padding: 44px 0 76px; }
}

/* ============================================================
   COLORFUL PASS — soft section tints, ambient glows, varied
   brand-colour accent icons (keeps the premium, cohesive feel)
   ============================================================ */

/* --- Soft background tints for section rhythm --- */
.stats      { background: linear-gradient(180deg, #ffffff 0%, #f1f6fd 100%); }
/* Welcome/About: top matches Stats' bottom, bottom fades to white so it flows
   seamlessly into the (white-topped) Desk section below — no hard seam. */
#about      { background: linear-gradient(180deg, #f1f6fd 0%, #f7fafd 55%, #ffffff 100%); }
.campuses   { background: linear-gradient(180deg, #ffffff 0%, #fdf3f3 100%); }
#cocurric   { background: linear-gradient(180deg, #ffffff 0%, #f1f6fd 100%); }
.features-sec { background: linear-gradient(180deg, #ffffff 0%, #fbf6ec 100%); }
.alumni-sec { background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%); }

/* --- Ambient colour glows (subtle, behind content) --- */
.sec-glow { position: relative; overflow: hidden; }
.sec-glow > .container { position: relative; z-index: 2; }
.sec-glow::before, .sec-glow::after {
  content: ""; position: absolute; border-radius: 50%; z-index: 0; pointer-events: none;
}
.sec-glow::before { width: 420px; height: 420px; top: -150px; left: -130px;
  background: radial-gradient(circle, rgba(196,30,42,.09), transparent 70%); }
.sec-glow::after  { width: 480px; height: 480px; bottom: -180px; right: -140px;
  background: radial-gradient(circle, rgba(11,77,162,.09), transparent 70%); }
.sec-glow--alt::before { background: radial-gradient(circle, rgba(201,162,39,.12), transparent 70%); }
.sec-glow--alt::after  { background: radial-gradient(circle, rgba(20,122,82,.10), transparent 70%); }

/* --- Stats: colour-coded top accent + icons --- */
.stats__grid .stat { position: relative; overflow: hidden; }
.stats__grid .stat::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--sa, var(--crimson)); }
.stats__grid .stat:nth-child(1) { --sa: var(--crimson); }
.stats__grid .stat:nth-child(2) { --sa: var(--royal); }
.stats__grid .stat:nth-child(3) { --sa: var(--gold); }
.stats__grid .stat:nth-child(4) { --sa: #147A52; }
.stats__grid .stat:nth-child(1) i { color: var(--crimson); }
.stats__grid .stat:nth-child(2) i { color: var(--royal); }
.stats__grid .stat:nth-child(3) i { color: #9A7A12; }
.stats__grid .stat:nth-child(4) i { color: #147A52; }

/* --- Feature icons: cycle through the brand palette --- */
.features__grid .feature:nth-child(1) .feature__ic { background: linear-gradient(135deg, rgba(196,30,42,.16), rgba(196,30,42,.05)); color: var(--crimson); }
.features__grid .feature:nth-child(2) .feature__ic { background: linear-gradient(135deg, rgba(11,77,162,.16), rgba(11,77,162,.05)); color: var(--royal); }
.features__grid .feature:nth-child(3) .feature__ic { background: linear-gradient(135deg, rgba(201,162,39,.18), rgba(201,162,39,.05)); color: #9A7A12; }
.features__grid .feature:nth-child(4) .feature__ic { background: linear-gradient(135deg, rgba(20,122,82,.16), rgba(20,122,82,.05)); color: #147A52; }
.features__grid .feature:nth-child(5) .feature__ic { background: linear-gradient(135deg, rgba(196,30,42,.16), rgba(196,30,42,.05)); color: var(--crimson); }
.features__grid .feature:nth-child(6) .feature__ic { background: linear-gradient(135deg, rgba(11,77,162,.16), rgba(11,77,162,.05)); color: var(--royal); }

/* --- Co-curricular chip icons: four brand colours --- */
.cocurric__grid .chip-card:nth-child(1) .ic { background: rgba(196,30,42,.12); color: var(--crimson); }
.cocurric__grid .chip-card:nth-child(2) .ic { background: rgba(11,77,162,.12); color: var(--royal); }
.cocurric__grid .chip-card:nth-child(3) .ic { background: rgba(201,162,39,.16); color: #9A7A12; }
.cocurric__grid .chip-card:nth-child(4) .ic { background: rgba(20,122,82,.12); color: #147A52; }

/* --- Attention effect on the header "Admission Enquiry" button --- */
/* pulse/glow removed — keep only a soft static shadow, sweep stays below */
.btn--apply { box-shadow: 0 10px 22px rgba(196,30,42,.20); }
/* periodic light sweep (reuses the .btn shine layer, runs on a timer) */
.btn--apply::after { animation: applyShine 3.6s ease-in-out infinite; }
@keyframes applyShine {
  0%, 62%   { left: -85%; }
  84%, 100% { left: 135%; }
}

/* ============================================================
   CONDENSE HEADER ON SCROLL
   Scrolling down collapses the blue top bar, shrinks the header,
   and slides the Online Fee Payment button in beside Admission.
   ============================================================ */
.nav        { transition: height .5s cubic-bezier(.22,.61,.36,1); will-change: height; }
.nav__cta .btn { transition: padding .5s cubic-bezier(.22,.61,.36,1), font-size .5s cubic-bezier(.22,.61,.36,1), transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.btn--payinline { display: none; }

/* Condensed: the header BOX shrinks (92 -> 76) and the buttons ease down — all
   on the same 0.5s ease-out curve so they move in unison. The logo keeps its
   size. */
body.is-condensed .nav            { height: 76px; }
body.is-condensed .nav__cta .btn  { padding: .6rem 1.05rem; font-size: .85rem; }
body.is-condensed .btn--payinline { display: inline-flex; animation: payIn .5s cubic-bezier(.22,.61,.36,1); }
@keyframes payIn { from { opacity: 0; transform: translateX(12px) scale(.92); } to { opacity: 1; transform: none; } }

/* the inline pay button is desktop-only (mobile uses the menu) */
@media (max-width: 992px){ .btn--payinline { display: none !important; } }

/* Respect reduced motion for the new bits */
@media (prefers-reduced-motion: reduce){
  .hero::before, .hero__floatcard, .hero__floatcard--top, .topbar__pay::after, .hero__logo { animation: none; }
  .vt-track, .btn--apply, .btn--apply::after, .deskshow__wm, .btn--payinline, .about__badge::before, .stats.section--dark { animation: none; }
}

/* ============================================================
   BRAND-COLOUR SECTIONS
   Flip selected sections to deep navy for a more on-brand,
   less-white feel. Cards inside keep their own light backgrounds,
   so they pop against the navy. Light sections remain between
   them for rhythm.
   ============================================================ */
.section--dark {
  background: linear-gradient(135deg, #0A2140 0%, #0E356E 45%, #0B4DA2 100%);
  color: #fff;
}
.section--dark .section-head h2 { color: #fff; }
.section--dark .section-head p  { color: rgba(255,255,255,.80); }
.section--dark .eyebrow { color: var(--gold-soft); }
.section--dark .eyebrow::before,
.section--dark .eyebrow.center::after { background: var(--gold); }

/* ============================================================
   MERGED SECTION SEAMS
   Adjacent same-background sections tighten their shared edge so
   they read as one continuous flow (less "stacked blocks" feel).
   ============================================================ */
.merge-below { padding-bottom: 26px; }
.merge-above { padding-top: 26px; }
@media (max-width: 680px){
  .merge-below { padding-bottom: 18px; }
  .merge-above { padding-top: 18px; }
}

/* Stats section: smooth, slowly-moving red gradient (overrides navy .section--dark) */
.stats.section--dark {
  background: linear-gradient(120deg, #6E0F16, #A9151F, #C41E2A, #8E1219, #B01620);
  background-size: 300% 300%;
  animation: redFlow 20s ease-in-out infinite;
}
@keyframes redFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Smoother News card hover (unified easing + gentler shadow) */
.news-card { transition: transform .45s cubic-bezier(.22,.61,.36,1), box-shadow .45s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.news-card:hover { transform: translateY(-8px); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, var(--shadow-md); }
.news-card__media .ph { transition: transform .5s cubic-bezier(.22,.61,.36,1); }

/* ============================================================
   INNER PAGES — shared banner, breadcrumb, content, desk pages
   ============================================================ */
.page-banner {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #0A2140 0%, #0E356E 55%, #0B4DA2 100%);
  padding: 64px 0 58px;
}
.page-banner::after {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background:
    radial-gradient(60% 80% at 88% 12%, rgba(196,30,42,.30), transparent 60%),
    radial-gradient(50% 70% at 8% 90%, rgba(201,162,39,.18), transparent 60%);
}
.page-banner__crest {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: 320px; max-width: 42%; opacity: .13; pointer-events: none;
  filter: blur(3px);          /* soft, as if under a translucent glass filter */
}
.page-banner .container { position: relative; z-index: 2; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .84rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb i { font-size: .6rem; opacity: .6; }
.breadcrumb .current { color: var(--gold-soft); font-weight: 600; }
.page-banner h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin: 0 0 .5rem; }
.page-banner p { color: rgba(255,255,255,.82); font-size: 1.06rem; max-width: 640px; margin: 0; }

/* generic prose / content */
.prose { max-width: 820px; }
.prose p { color: var(--slate); font-size: 1.05rem; margin: 0 0 1.15rem; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2rem 0 .8rem; }
.prose ul { margin: 0 0 1.2rem; display: grid; gap: .7rem; }
.prose li { display: flex; gap: .7rem; color: var(--slate); }
.prose li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--crimson); font-size: .85rem; margin-top: 3px; }

/* "content coming" placeholder used on scaffolded pages */
.coming {
  text-align: center; max-width: 620px; margin: 0 auto; padding: 46px 30px;
  background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius-lg);
}
.coming i { font-size: 2rem; color: var(--gold); margin-bottom: .8rem; }
.coming h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.coming p { color: var(--slate); margin: 0; }

/* ---------- DESKS PAGE — messages in a bigger form ---------- */
.deskfull__row {
  display: grid; grid-template-columns: 380px 1fr; gap: 54px; align-items: center;
  padding: 56px 0; border-bottom: 1px solid var(--line);
}
.deskfull__row:last-child { border-bottom: 0; }
/* Alternate the SIDE without changing the photo's column width, so every
   photo stays the same 380px size. (Using `order` moved it into the 1fr
   column and made it larger — this places columns explicitly instead.) */
.deskfull__row:nth-child(even) { grid-template-columns: 1fr 380px; }
.deskfull__row:nth-child(even) .deskfull__photo { grid-column: 2; grid-row: 1; }
.deskfull__row:nth-child(even) .deskfull__body  { grid-column: 1; grid-row: 1; }
.deskfull__photo { position: relative; }
.deskfull__photo img, .deskfull__photo .ph {
  width: 100%; aspect-ratio: 4 / 5; min-height: 0; object-fit: cover; object-position: top center;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 6px solid #fff; outline: 1px solid var(--line);
}
.deskfull__tag {
  position: absolute; left: -14px; bottom: 26px;
  background: var(--accent, var(--crimson)); color: #fff; padding: 12px 22px; border-radius: 13px; box-shadow: var(--shadow-md);
}
.deskfull__tag b { display: block; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.1; }
.deskfull__tag span { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .92; }
.deskfull__body .eyebrow { color: var(--accent, var(--crimson)); }
.deskfull__body .eyebrow::before { background: var(--accent, var(--crimson)); }
.deskfull__body h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: .35rem 0 1.2rem; }
.deskfull__quote { position: relative; padding-left: 58px; }
.deskfull__quote::before {
  content: "\201C"; position: absolute; left: 0; top: -12px;
  font-family: var(--font-display); font-size: 4rem; line-height: 1; color: var(--accent, var(--crimson)); opacity: .4;
}
.deskfull__quote p { color: var(--slate); font-size: 1.08rem; line-height: 1.8; margin: 0 0 1rem; }
.deskfull__sign { margin-top: 1.2rem; font-family: var(--font-display); font-style: italic; color: var(--navy); font-size: 1.15rem; }

@media (max-width: 860px){
  .deskfull__row, .deskfull__row:nth-child(even) { grid-template-columns: 1fr; gap: 30px; padding: 40px 0; }
  .deskfull__row:nth-child(even) .deskfull__photo,
  .deskfull__row:nth-child(even) .deskfull__body { grid-column: auto; grid-row: auto; }
  .deskfull__photo { max-width: 300px; }
  .deskfull__quote { padding-left: 44px; }
}


/* ---------- Image protection (mild deterrent; no effect on animations) ---------- */
img { -webkit-user-drag: none; -khtml-user-drag: none; -moz-user-drag: none; user-drag: none;
      -webkit-user-select: none; -moz-user-select: none; user-select: none; }
