/* ==========================================================================
   EBENEZER ENGLISH HIGH SCHOOL & JR. COLLEGE
   Design system — "Premium Purple & Gold"
   A modern, premium educational-institution identity: deep purple, golden
   yellow/orange highlights and a CTA red, set in Montserrat + Poppins.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Poppins:wght@400;500;600;700&family=Playfair+Display:ital,wght@1,500;1,600&display=swap');

:root{
  /* --- palette: purple, golden yellow/orange, CTA red --- */
  --navy-950:#241653;
  --navy-900:#30206B;
  --navy-800:#392a78;
  --navy-700:#4B358C;
  --navy-600:#5c46a0;
  --gold-600:#b8790a;
  --gold-500:#F59E0B;
  --gold-400:#FBBF24;
  --gold-300:#fde68a;
  --red-600:#C92A2A;
  --red-500:#E53935;
  --cream:#F6F7FB;
  --cream-dim:#edeef8;
  --paper:#ffffff;
  --ink:#1E1B2E;
  --ink-soft:#667085;
  --line:#e6e4f3;
  --line-navy:rgba(255,255,255,.22);
  --green-ok:#2f6b46;

  /* --- elevation: soft, premium card shadows --- */
  --emboss: 0 1px 0 rgba(255,255,255,.4) inset;
  --lift-1: 0 1px 2px rgba(48,32,107,.06), 0 4px 12px rgba(48,32,107,.06);
  --lift-2: 0 4px 10px rgba(48,32,107,.10), 0 14px 30px rgba(48,32,107,.12);
  --lift-3: 0 10px 24px rgba(36,22,83,.18), 0 24px 50px rgba(36,22,83,.20);
  --gold-glow: 0 0 0 1px rgba(251,191,36,.35), 0 8px 20px rgba(251,191,36,.25);

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 20px;
  --container: 1220px;

  --serif: 'Montserrat', Arial, sans-serif;
  --sans: 'Poppins', Arial, sans-serif;
  --accent-serif: 'Playfair Display', Georgia, serif;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth; overflow-x:hidden;}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--cream);
  -webkit-font-smoothing:antialiased;
  line-height:1.68;
  overflow-x:hidden;
  width:100%;
}
img{max-width:100%;display:block;}
svg{width:1.15em;height:1.15em;flex:none;vertical-align:-0.15em;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;margin:0;padding:0;}
button{font-family:inherit;}
:focus-visible{outline:3px solid var(--gold-500);outline-offset:2px;}

h1,h2,h3,h4{
  font-family:var(--serif);
  font-weight:700;
  color:var(--navy-900);
  line-height:1.18;
  margin:0 0 .5em;
  letter-spacing:-.01em;
}
h1{font-weight:800;}
p{margin:0 0 1em;color:var(--ink-soft);max-width:66ch;}
.container{max-width:var(--container);margin:0 auto;padding:0 24px;}
.container-wide{max-width:1400px;margin:0 auto;padding:0 24px;}

section{padding:88px 0;}
@media (max-width:780px){ section{padding:56px 0;} }

/* ---------- eyebrow / kicker (used sparingly, tied to real structure) --- */
.kicker{
  display:flex;align-items:center;gap:8px;
  font-family:var(--serif); font-style:normal; font-weight:700; text-transform:uppercase;
  font-size:.78rem; letter-spacing:.09em; color:var(--gold-600); margin-bottom:14px;
}
.kicker::before{
  content:"";width:26px;height:2px;background:var(--gold-500);display:block;border-radius:2px;
}
.kicker.on-dark{color:var(--gold-300);}
.kicker.on-dark::before{background:var(--gold-300);}

.section-head{max-width:640px;margin-bottom:44px;}
.section-head h2{font-size:clamp(1.9rem,3vw,2.6rem);}
.section-head p{font-size:1.06rem;}
.center{text-align:center;margin-left:auto;margin-right:auto;}

/* ============================== BUTTONS ============================== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  padding:14px 28px; border-radius:var(--radius-s); font-weight:600; font-size:.94rem;
  border:1px solid transparent; cursor:pointer; white-space:nowrap; min-height:44px;
  transition:background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
  font-family:var(--sans); letter-spacing:.01em; position:relative; overflow:hidden; isolation:isolate;
}
.btn::after{
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform:translateX(-120%); transition:transform .55s ease;
}
.btn:hover::after{transform:translateX(120%);}
.btn > *{position:relative; z-index:2;}
.btn svg{width:17px;height:17px;flex:none;}
.btn-gold{
  background:linear-gradient(135deg,var(--gold-400) 0%,var(--gold-500) 100%);
  border-color:var(--gold-500); color:var(--navy-950); box-shadow:var(--lift-1); font-weight:700;
}
.btn-gold:hover{transform:translateY(-2px); box-shadow:var(--gold-glow);}
.btn-navy{
  background:linear-gradient(135deg,var(--navy-900) 0%,var(--navy-700) 100%);
  border-color:var(--navy-800); color:#fff; box-shadow:var(--lift-1);
}
.btn-navy:hover{transform:translateY(-2px); box-shadow:var(--lift-2);}
.btn-red{
  background:linear-gradient(135deg,var(--red-600) 0%,var(--red-500) 100%);
  border-color:var(--red-600); color:#fff; box-shadow:var(--lift-1);
}
.btn-red:hover{transform:translateY(-2px); box-shadow:var(--lift-2);}
.btn-outline{
  background:transparent; border:1.5px solid var(--navy-700); color:var(--navy-800);
}
.btn-outline:hover{background:var(--navy-900); border-color:var(--navy-900); color:#fff;}
.btn-outline.on-dark{border-color:rgba(255,255,255,.6); color:#fff;}
.btn-outline.on-dark:hover{background:#fff; color:var(--navy-900);}
.btn-wa{
  background:#278b45; color:#fff; box-shadow:var(--lift-1);
}
.btn-wa:hover{background:#1f7038; transform:translateY(-2px);}
.btn-white{background:#fff; border-color:#fff; color:var(--navy-800); box-shadow:var(--lift-1);}
.btn-white:hover{background:var(--cream-dim); transform:translateY(-2px);}
.btn-sm{padding:11px 18px;font-size:.83rem; min-height:40px;}
.btn-block{width:100%;}

/* ============================== TOP BAR ============================== */
.topbar{
  background:var(--navy-950); color:#dcecf7; font-size:.8rem;
  border-bottom:1px solid var(--line-navy);
}
.topbar .container-wide{
  display:flex; align-items:center; justify-content:space-between;
  min-height:40px; gap:18px; flex-wrap:wrap; padding-top:6px; padding-bottom:6px;
}
.topbar-left{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.topbar-star{color:var(--gold-400); display:flex; width:14px; height:14px;}
.topbar-star svg{width:14px;height:14px;}
.topbar a{display:flex;align-items:center;gap:6px;transition:color .15s;}
.topbar a:hover{color:var(--gold-400);}
.topbar svg{width:14px;height:14px;opacity:.85;}
.topbar-right{display:flex;align-items:center;gap:18px;}
.social-row{display:flex;gap:10px;}
.social-row a{
  width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14);
}
.social-row a:hover{background:var(--gold-500); color:#fff; border-color:var(--gold-500);}
.social-row svg{width:13px;height:13px;}
.portal-links{display:flex;gap:14px;}
.portal-links a{
  padding:5px 12px;border:1px solid rgba(255,255,255,.22);border-radius:var(--radius-s);font-size:.76rem;font-weight:600;
  letter-spacing:.02em;
}
.portal-links a:hover{border-color:var(--gold-400);color:var(--gold-300);}

/* topbar: collapse to icons-only on small/medium screens so it never wraps into
   an overlapping second line; the same links already live in the footer/nav. */
@media (max-width:900px){
  .topbar-left span:last-child{display:none;}
}
@media (max-width:640px){
  .topbar-left{display:none;}
  .topbar .container-wide{justify-content:center;}
  .topbar-right{gap:14px;}
  .topbar-right > a{display:none;}
}

/* ============================== HEADER / NAV ============================== */
header.site-header{
  position:sticky; top:0; z-index:200;
  background:rgba(255,255,255,.99);
  border-bottom:1px solid var(--line); box-shadow:0 2px 14px rgba(36,22,83,.06);
  transition:box-shadow .25s ease;
}
header.site-header.is-scrolled{box-shadow:0 6px 22px rgba(36,22,83,.12);}
.nav-wrap{display:flex; align-items:center; justify-content:space-between; height:auto; min-height:78px; gap:14px; padding:6px 24px; transition:min-height .25s ease;}
header.site-header.is-scrolled .nav-wrap{min-height:60px;}
.brand{display:flex;align-items:center;gap:11px;color:var(--navy-900); min-width:0;}
.crest{width:46px;height:46px;flex:none;border-radius:50%;object-fit:cover;filter:drop-shadow(0 3px 8px rgba(36,22,83,.25)); transition:width .25s ease, height .25s ease;}
header.site-header.is-scrolled .crest{width:36px;height:36px;}
.brand-text{display:flex;flex-direction:column;line-height:1.15;min-width:0;}
.brand-text b.brand-name{font-family:var(--serif);font-size:1.28rem;font-weight:800;letter-spacing:.01em;white-space:nowrap;color:var(--navy-900);}
.brand-text .brand-sub{font-size:.6rem;font-weight:700;letter-spacing:.05em;color:var(--navy-700);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px;text-transform:uppercase;}
.brand-text .brand-tag{font-family:var(--accent-serif);font-style:italic;font-size:.68rem;color:var(--gold-600);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px;}

nav.main-nav{display:flex;align-items:center;gap:4px;flex:1;min-width:0;justify-content:center;}
nav.main-nav > ul{display:flex;align-items:center;gap:0;flex-wrap:nowrap;}
nav.main-nav > ul > li{position:relative;}
nav.main-nav > ul > li > a{
  display:flex;align-items:center;gap:3px;padding:12px 10px;color:var(--ink);font-weight:600;font-size:.85rem;
  border-radius:8px; transition:color .15s, background .15s; white-space:nowrap; position:relative;
}
nav.main-nav > ul > li > a::before{
  content:""; position:absolute; left:10px; right:10px; bottom:6px; height:2px; border-radius:2px;
  background:linear-gradient(90deg,var(--gold-500),var(--red-500)); transform:scaleX(0); transform-origin:left;
  transition:transform .25s ease;
}
nav.main-nav > ul > li > a:hover::before, nav.main-nav > ul > li.active > a::before{transform:scaleX(1);}
nav.main-nav > ul > li > a:hover, nav.main-nav > ul > li.active > a{color:var(--navy-900); background:var(--cream-dim);}
nav.main-nav > ul > li > a svg{width:12px;height:12px;margin-top:1px;opacity:.7; transition:transform .2s ease;}
nav.main-nav > ul > li:hover > a svg{transform:rotate(180deg);}
.dropdown{
  position:absolute; top:100%; left:0; min-width:250px; background:var(--paper);
  border-radius:var(--radius-m); box-shadow:var(--lift-3); padding:10px; opacity:0; visibility:hidden;
  transform:translateY(6px); transition:opacity .18s, transform .18s, visibility .18s; border:1px solid var(--line);
}
nav.main-nav > ul > li:hover .dropdown{opacity:1; visibility:visible; transform:translateY(0);}
.dropdown a{display:flex;flex-direction:column;gap:2px;padding:11px 14px;border-radius:var(--radius-s);color:var(--ink);}
.dropdown a b{font-family:var(--serif);font-weight:600;font-size:.95rem;color:var(--navy-900);}
.dropdown a small{color:var(--ink-soft);font-size:.78rem;}
.dropdown a:hover{background:var(--cream);}
.nav-ctas{display:flex;align-items:center;gap:8px;}
.nav-ctas .btn{padding:11px 16px; font-size:.82rem;}
.mobile-nav-cta{display:none;}
.nav-toggle{display:none;background:transparent;border:0;color:var(--navy-900);padding:8px;cursor:pointer;flex:none;}
.nav-toggle svg{width:26px;height:26px;}

@media (max-width:1360px){
  nav.main-nav{position:fixed; top:78px; left:0; right:0; bottom:0; width:100%; z-index:250; background:var(--navy-950);flex-direction:column;
    align-items:stretch;padding:10px 6px 24px;overflow-y:auto;transform:translateX(100%);
    transition:transform .28s ease; height:calc(100vh - 78px); box-sizing:border-box;}
  nav.main-nav.open{transform:translateX(0);}
  nav.main-nav > ul{flex-direction:column;align-items:stretch;gap:0;}
  nav.main-nav > ul > li > a{padding:12px 16px;border-bottom:1px solid rgba(255,255,255,.08); font-size:.88rem; color:#f1f2fb;}
  nav.main-nav > ul > li > a svg{opacity:.85;}
  nav.main-nav > ul > li > a:hover, nav.main-nav > ul > li.active > a{color:var(--navy-950); background:var(--gold-400);}
  .dropdown{position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; background:rgba(255,255,255,.06);
    display:none; margin:0 8px 8px; border:0; padding:6px;}
  nav.main-nav > ul > li.open .dropdown{display:flex;flex-direction:column;}
  .dropdown a{color:#e7eafb; padding:9px 12px;}
  .dropdown a b{color:#fff; font-size:.88rem;}
  .dropdown a small{color:#c3c8ea; font-size:.72rem;}
  .dropdown a:hover{background:rgba(255,255,255,.08);}
  .nav-ctas{display:none;}
  .nav-toggle{display:block;}
  .mobile-nav-cta{display:block; padding:14px 16px 4px;}
}

/* ============================== HERO ============================== */
.hero{
  position:relative; overflow:hidden; color:#fff;
  background:radial-gradient(1200px 700px at 82% -10%, #135e8e 0%, transparent 60%), linear-gradient(160deg,var(--navy-950),var(--navy-900) 55%,#0c3e63 100%);
  padding:32px 0 36px;
}
.hero::before{
  content:""; position:absolute; inset:0; opacity:.16; pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size:64px 64px; mask-image:radial-gradient(circle at 75% 20%, black, transparent 65%);
}
.hero-grid{display:grid; grid-template-columns:1.05fr .95fr; gap:40px; align-items:center; position:relative; z-index:2;}
@media (min-width:1081px){
  .hero-grid{align-items:stretch;}
  .hero-art{height:100%; width:100%;}
  .hero-slider{height:100%; width:100%; max-height:none; aspect-ratio:auto; min-height:420px;}
}
.hero-eyebrow{
  display:inline-flex;align-items:center;gap:9px;padding:5px 12px 5px 7px;border-radius:var(--radius-s);
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18); font-size:.75rem; font-weight:600;
  letter-spacing:.03em; color:var(--gold-300); margin-bottom:10px;
}
.hero-eyebrow .dot{width:8px;height:8px;border-radius:50%;background:var(--gold-400);box-shadow:0 0 0 4px rgba(220,182,85,.22);}
.hero h1{
  color:#fff; font-size:clamp(1.7rem,3vw,2.35rem); max-width:15ch; margin-bottom:.28em;
  text-shadow:0 2px 20px rgba(0,0,0,.25);
}
.hero h1 em{color:var(--gold-400); font-style:italic;}
.hero p.lead{color:#c7cde6; font-size:.94rem; max-width:46ch; margin-bottom:12px;}
.hero-ctas{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:14px;}
.hero-stats{display:flex; gap:18px; flex-wrap:wrap;}
.hero-stats div b{display:block; font-family:var(--serif); font-size:1.25rem; color:#fff;}
.hero-stats div span{font-size:.74rem; color:#a6adcd; letter-spacing:.02em;}

.hero-art{position:relative;}
.hero-frame{
  position:relative; border-radius:var(--radius-l); overflow:hidden; box-shadow:var(--lift-3);
  border:1px solid rgba(255,255,255,.14); aspect-ratio:16/11; max-height:230px;
}
.hero-frame img{width:100%;height:100%;object-fit:cover;}
.hero-frame::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg, rgba(8,13,36,.55), transparent 45%);}

/* ---------- hero image slider (3-photo rotating banner) ---------- */
.hero-slider{
  position:relative; border-radius:var(--radius-l); overflow:hidden; box-shadow:var(--lift-3);
  border:1px solid rgba(255,255,255,.14); aspect-ratio:16/10; max-height:270px; touch-action:pan-y;
}
.hero-slide{position:absolute; inset:0; opacity:0; transition:opacity 1s ease; z-index:1;}
.hero-slide.is-active{opacity:1; z-index:2;}
.hero-slide img{width:100%; height:100%; object-fit:cover; display:block;}
.hero-slider::after{
  content:""; position:absolute; inset:0; z-index:3; pointer-events:none;
  background:linear-gradient(0deg, rgba(8,13,36,.6), transparent 50%);
}
.hero-slider-dots{position:absolute; left:0; right:0; bottom:12px; display:flex; justify-content:center; gap:7px; z-index:4;}
.hero-dot{
  width:8px; height:8px; padding:0; border-radius:50%; cursor:pointer;
  background:rgba(255,255,255,.5); border:1px solid rgba(255,255,255,.75);
  transition:background .2s ease, width .2s ease, border-radius .2s ease;
}
.hero-dot.is-active{background:var(--gold-400); border-color:var(--gold-400); width:22px; border-radius:5px;}
@media (max-width:1080px){ .hero-slider{max-height:260px;} }
@media (max-width:560px){ .hero-slider{max-height:150px; aspect-ratio:16/10;} }
@media (prefers-reduced-motion: reduce){ .hero-slide{transition:none;} }
.floating-card{
  position:absolute; background:var(--paper); border-radius:var(--radius-m); box-shadow:var(--lift-3);
  padding:10px 13px; display:flex; align-items:center; gap:10px; z-index:4;
}
.floating-card .ic{
  width:34px;height:34px;border-radius:9px;background:linear-gradient(155deg,var(--gold-400),var(--gold-600));
  display:flex;align-items:center;justify-content:center;color:#fff;flex:none;
}
.floating-card .ic svg{width:18px;height:18px;}
.floating-card b{display:block;font-family:var(--serif);color:var(--navy-900);font-size:.92rem;}
.floating-card span{font-size:.7rem;color:var(--ink-soft);}
.fc-1{ left:-24px; bottom:20px; }
.fc-2{ right:-20px; top:18px; }
@media (max-width:1080px){
  .hero-grid{grid-template-columns:1fr;}
  .hero-art{max-width:480px;margin:0 auto;}
  .floating-card{position:static; margin-top:10px; width:max-content; max-width:100%;}
}
@media (max-width:560px){
  .hero{padding:16px 0 18px;}
  .hero-art{max-width:100%;}
  .floating-card{margin-left:auto;margin-right:auto;}
  .hero-eyebrow{font-size:.66rem; padding:4px 10px 4px 6px; margin-bottom:6px;}
  .hero-eyebrow .dot{width:6px;height:6px;}
  .hero h1{font-size:1.28rem; max-width:20ch; margin-bottom:.2em;}
  .hero p.lead{font-size:.78rem; margin-bottom:8px; line-height:1.45;}
  .hero-ctas{gap:6px; margin-bottom:8px;}
  .hero-ctas .btn{padding:8px 14px; font-size:.74rem; min-height:32px; gap:6px;}
  .hero-ctas .btn svg{width:13px;height:13px;}
  .hero-stats{gap:8px 14px;}
  .hero-stats div b{font-size:.92rem;}
  .hero-stats div span{font-size:.6rem;}
}

/* ============================== PAGE HERO (inner pages) ============================== */
.page-hero{
  --banner-ratio:2.114;                                   /* school-banner.jpg is 1821 x 864 */
  --bh:min(calc(100vw / var(--banner-ratio)), 440px);     /* banner height: always the WHOLE picture */
  position:relative; color:#fff; overflow:hidden;
  padding:calc(var(--bh) + 26px) 0 44px;
  background:linear-gradient(180deg,#0a1a3a,#12306a);
}
.page-hero::before{
  content:""; position:absolute; top:0; left:50%; z-index:0;
  height:var(--bh); width:calc(var(--bh) * var(--banner-ratio)); transform:translateX(-50%);
  background:
    linear-gradient(0deg, #0a1a3a 0%, rgba(10,26,58,0) 16%),
    url('../img/school-banner.jpg') center/100% 100% no-repeat;
}
@media (min-width:940px){
  .page-hero::before{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 8%,#000 92%,transparent 100%); mask-image:linear-gradient(90deg,transparent 0,#000 8%,#000 92%,transparent 100%);}
}
.page-hero > .container{position:relative; z-index:2;}
.breadcrumb{display:flex;gap:8px;align-items:center;font-size:.82rem;color:#a6adcd;margin-bottom:16px;position:relative;z-index:2;}
.breadcrumb a:hover{color:var(--gold-300);}
.page-hero h1{color:#fff; font-size:clamp(2rem,4vw,3rem); max-width:20ch; position:relative;z-index:2;}
.page-hero p{color:#c7cde6; max-width:56ch; font-size:1.05rem; position:relative;z-index:2;}
@media (max-width:560px){ .page-hero{padding-bottom:32px;} .page-hero h1{font-size:1.6rem;} .page-hero p{font-size:.94rem;} .breadcrumb{margin-bottom:10px;font-size:.76rem;} }

/* ============================== CARDS ============================== */
.card{
  background:var(--paper); border-radius:var(--radius-m); border:1px solid var(--line);
  box-shadow:var(--lift-1); transition:transform .2s ease, box-shadow .2s ease;
}
.card:hover{transform:translateY(-4px); box-shadow:var(--lift-2);}

.grid{display:grid; gap:26px;}
.grid-2{grid-template-columns:repeat(2,1fr);}
.grid-3{grid-template-columns:repeat(3,1fr);}
.grid-4{grid-template-columns:repeat(4,1fr);}
@media (max-width:980px){ .grid-3,.grid-4{grid-template-columns:repeat(2,1fr);} }
@media (max-width:620px){ .grid-2,.grid-3,.grid-4{grid-template-columns:1fr;} }

/* ---- feature / icon cards ---- */
.feature-card{padding:30px 26px;}
.feature-card .ic{
  width:54px;height:54px;border-radius:14px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(155deg,var(--navy-700),var(--navy-900)); color:var(--gold-300); margin-bottom:18px;
  box-shadow:var(--lift-1);
}
.feature-card .ic svg{width:26px;height:26px;}
.feature-card h3{font-size:1.15rem;margin-bottom:8px;}
.feature-card p{font-size:.94rem;margin-bottom:0;}

/* ---- stage / program cards (academics) ---- */
.stage-card{overflow:hidden; display:flex; flex-direction:column;}
.stage-card .thumb{position:relative; aspect-ratio:4/3; overflow:hidden;}
.stage-card .thumb img{width:100%;height:100%;object-fit:cover; transition:transform .5s ease;}
.stage-card:hover .thumb img{transform:scale(1.06);}
.stage-card .tag{
  position:absolute; top:14px; left:14px; background:rgba(8,13,36,.78); color:var(--gold-300);
  font-size:.72rem; font-weight:700; letter-spacing:.05em; padding:6px 12px; border-radius:var(--radius-s);
  backdrop-filter:blur(4px);
}
.stage-card .body{padding:24px; display:flex; flex-direction:column; gap:12px; flex:1;}
.stage-card h3{font-size:1.28rem;margin-bottom:0;}
.stage-card p{font-size:.94rem;margin-bottom:0;}
.stage-card .meta{display:flex; gap:14px; font-size:.8rem; color:var(--ink-soft); border-top:1px dashed var(--line); padding-top:12px; margin-top:auto;}
.stage-card .meta b{color:var(--navy-800);}
.stage-card .actions{display:flex;gap:10px;margin-top:6px;}

/* ---- portrait / people cards ---- */
.people-card{padding:26px 22px; text-align:center;}
.people-avatar{
  width:118px;height:118px;border-radius:50%;margin:0 auto 16px;
  background:linear-gradient(155deg,var(--navy-700),var(--navy-950));
  display:flex;align-items:center;justify-content:center;color:var(--gold-300);
  box-shadow:0 0 0 6px var(--cream), 0 0 0 7px var(--line), var(--lift-1);
  overflow:hidden;
}
.people-avatar img{width:100%;height:100%;object-fit:cover;}
.people-avatar svg{width:46px;height:46px;}
.people-card h3{font-size:1.12rem;margin-bottom:2px;}
.people-card .role{color:var(--gold-600); font-weight:700; font-size:.8rem; letter-spacing:.04em; text-transform:uppercase; margin-bottom:12px; display:block;}
.people-card p{font-size:.92rem;}

/* ---- Leader / message block (Chairman & Principal) ---- */
.leader-block{display:grid; grid-template-columns:280px 1fr; gap:40px; align-items:center;}
.leader-photo{
  aspect-ratio:1/1.1; border-radius:var(--radius-l); background:linear-gradient(155deg,var(--navy-700),var(--navy-950));
  display:flex;align-items:center;justify-content:center; color:var(--gold-300); box-shadow:var(--lift-2); position:relative; overflow:hidden;
}
.leader-photo svg{width:90px;height:90px;}
.leader-photo img{width:100%;height:100%;object-fit:cover;object-position:top center;}
.leader-photo::after{content:"";position:absolute;inset:0;border:1px solid rgba(255,255,255,.16);border-radius:inherit;}
.leader-text .kicker{margin-bottom:10px;}
.leader-text blockquote{font-family:var(--serif); font-style:italic; font-size:1.28rem; color:var(--navy-900); border-left:3px solid var(--gold-500); padding-left:20px; margin:0 0 18px;}
.leader-sig b{display:block; font-family:var(--serif); font-size:1.1rem; color:var(--navy-900);}
.leader-sig span{font-size:.84rem; color:var(--ink-soft);}
@media (max-width:780px){ .leader-block{grid-template-columns:1fr;} .leader-photo{max-width:240px;margin:0 auto;} }

/* ---- Leadership: full letter layout (colourful, stylish) ---- */
.leader-section .section-head h2 .accent{
  background:linear-gradient(120deg,var(--gold-600),var(--gold-400) 60%,var(--red-500));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.leader-block--letter{grid-template-columns:280px 1fr; align-items:start; gap:44px;}
.leader-block--rev{grid-template-columns:1fr 280px;}
.leader-block--rev .leader-text{order:1;}
.leader-block--rev .leader-side{order:2;}
.leader-side{position:sticky; top:104px; display:flex; flex-direction:column; gap:16px;}
.leader-side .leader-photo{aspect-ratio:1/1.1;}
.leader-sig-card{
  background:linear-gradient(150deg,var(--navy-800),var(--navy-950) 70%);
  border-radius:var(--radius-m); padding:18px 20px; box-shadow:var(--lift-2);
  border-left:4px solid var(--gold-400); position:relative; overflow:hidden;
}
.leader-sig-card::after{
  content:""; position:absolute; inset:0; opacity:.5; pointer-events:none;
  background:radial-gradient(120px 90px at 100% 0%, rgba(251,191,36,.28), transparent 70%);
}
.leader-sig-card b{
  display:block; font-family:var(--accent-serif); font-style:italic; font-size:1.14rem;
  background:linear-gradient(100deg,#fff,var(--gold-300)); -webkit-background-clip:text; background-clip:text; color:transparent;
  position:relative; z-index:1; margin-bottom:2px;
}
.leader-sig-card span{display:block; font-size:.78rem; color:#d7dcf5; position:relative; z-index:1;}
.leader-sig-card .org{font-size:.72rem; color:#a6adcd; margin-top:2px;}

.leader-letter{
  position:relative; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-l);
  padding:44px 48px 38px; box-shadow:var(--lift-1); overflow:hidden;
}
.leader-letter::before{
  content:""; position:absolute; top:0; left:0; right:0; height:5px;
  background:linear-gradient(90deg,var(--gold-500),var(--red-500),var(--navy-700),var(--gold-400));
}
.leader-letter .quote-mark{
  position:absolute; top:-6px; left:22px; font-family:var(--accent-serif); font-size:6.4rem; line-height:1;
  color:var(--gold-300); opacity:.55; pointer-events:none; user-select:none; z-index:0;
}
.leader-letter p{
  position:relative; z-index:1; color:var(--ink); font-size:1rem; line-height:1.85; margin-bottom:1.1em;
}
.leader-letter .salutation{
  font-family:var(--accent-serif); font-style:italic; font-size:1.08rem; color:var(--navy-800); margin-bottom:1.3em;
}
.leader-letter .lead-para::first-letter{
  font-family:var(--accent-serif); font-weight:700; font-size:3.6rem; line-height:.78; float:left; padding:6px 10px 0 0;
  background:linear-gradient(150deg,var(--navy-800),var(--gold-600)); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.leader-letter p em{color:var(--gold-600); font-style:italic; font-weight:600;}
.leader-close{
  position:relative; z-index:1; margin-top:26px; padding-top:22px; border-top:1px dashed var(--line);
}
.leader-close > span:first-child{display:block; font-size:.92rem; color:var(--ink-soft); margin-bottom:6px;}
.leader-close b{
  display:block; font-family:var(--accent-serif); font-style:italic; font-size:1.4rem; margin-bottom:2px;
  background:linear-gradient(110deg,var(--navy-800),var(--gold-600) 55%,var(--red-500));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.leader-close > span:last-child{font-size:.82rem; color:var(--ink-soft);}

@media (max-width:900px){
  .leader-block--letter,.leader-block--rev{grid-template-columns:1fr; gap:26px;}
  .leader-block--rev .leader-text{order:2;} .leader-block--rev .leader-side{order:1;}
  .leader-side{position:static; flex-direction:row; align-items:center; max-width:none;}
  .leader-side .leader-photo{width:96px; height:106px; flex:none; max-width:none;}
  .leader-letter{padding:30px 22px 26px;}
  .leader-letter .quote-mark{font-size:4.6rem; top:-2px; left:12px;}
  .leader-letter .lead-para::first-letter{font-size:2.6rem;}
}
/* photo + name card sit side by side on phones; card fills the remaining width */
@media (max-width:900px){
  .leader-side .leader-photo{margin:0;}
  .leader-side .leader-sig-card{flex:1; min-width:0;}
}
@media (max-width:560px){
  .leader-side{gap:14px;}
  .leader-side .leader-photo{width:92px; height:102px; border-radius:var(--radius-m);}
  .leader-sig-card{padding:14px 14px 14px 16px;}
  .leader-sig-card b{font-size:1.02rem;}
  .leader-sig-card span{font-size:.74rem;}
  .leader-sig-card .org{font-size:.68rem;}
  .leader-letter{padding:34px 18px 22px;}
  .leader-letter p{font-size:.96rem; line-height:1.75;}
  .leader-letter .lead-para::first-letter{float:none; font-size:1.7em; line-height:1; padding:0 1px 0 0;}
  .leader-close b{font-size:1.25rem;}
}

/* ============================== TIMELINE / STATS BAND ============================== */
.stat-band{ background:linear-gradient(160deg,var(--navy-950),var(--navy-800)); color:#fff; }
.stat-band .grid-4{gap:0; border-radius:var(--radius-l); overflow:hidden; box-shadow:var(--lift-3);}
.stat-item{padding:38px 20px; text-align:center; border-right:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.02);}
.stat-item:last-child{border-right:0;}
.stat-item b{display:block; font-family:var(--serif); font-size:2.3rem; color:var(--gold-300);}
.stat-item span{font-size:.82rem; color:#b7bede; letter-spacing:.02em;}
/* when .grid-4 collapses to 2 or 1 columns, the right-hand dividers no longer line
   up correctly — swap them for row dividers so nothing looks like a stray line */
@media (max-width:980px) and (min-width:621px){
  .stat-band .stat-item{border-right:1px solid rgba(255,255,255,.1); border-bottom:1px solid rgba(255,255,255,.1);}
  .stat-band .stat-item:nth-child(2n){border-right:0;}
  .stat-band .stat-item:nth-last-child(-n+2){border-bottom:0;}
}
@media (max-width:620px){
  .stat-band .stat-item{border-right:0; border-bottom:1px solid rgba(255,255,255,.1);}
  .stat-band .stat-item:last-child{border-bottom:0;}
}

/* ============================== TESTIMONIALS ============================== */
.testi-track{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.testi-card{padding:28px 26px;}
.testi-card .stars{color:var(--gold-500); font-size:.9rem; margin-bottom:14px; letter-spacing:2px;}
.testi-card p{font-family:var(--serif); font-style:italic; color:var(--navy-900); font-size:1.05rem;}
.testi-who{display:flex; align-items:center; gap:12px; margin-top:16px;}
.testi-who .dot-ava{
  width:42px;height:42px;border-radius:50%;background:linear-gradient(155deg,var(--gold-400),var(--gold-600));
  display:flex;align-items:center;justify-content:center;font-family:var(--serif);font-weight:700;color:#fff;
}
.testi-who b{display:block; font-size:.92rem; color:var(--navy-900);}
.testi-who span{font-size:.78rem; color:var(--ink-soft);}
@media (max-width:980px){ .testi-track{grid-template-columns:1fr;} }

/* ============================== GALLERY ============================== */
.filter-row{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:34px;}
.filter-chip{
  padding:9px 18px; border-radius:var(--radius-s); border:1px solid var(--line); background:var(--paper); font-weight:600; font-size:.86rem;
  cursor:pointer; color:var(--ink-soft); transition:all .15s;
}
.filter-chip.active, .filter-chip:hover{background:var(--navy-900); color:#fff; border-color:var(--navy-900);}
.gallery-grid{--g:16px; --cols:4; display:flex; flex-wrap:wrap; justify-content:center; gap:var(--g);}
.gallery-grid figure{
  margin:0; position:relative; border-radius:var(--radius-m); overflow:hidden; cursor:pointer; box-shadow:var(--lift-1);
  aspect-ratio:3/4; flex:0 0 calc((100% - (var(--cols) - 1) * var(--g)) / var(--cols));
}
/* landscape photos take two tiles so nobody gets cropped out */
.gallery-grid figure.wide{aspect-ratio:auto; flex-basis:calc(2 * (100% - (var(--cols) - 1) * var(--g)) / var(--cols) + var(--g));}
.gallery-grid img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .5s ease;}
.gallery-grid figure:hover img{transform:scale(1.06);}
.gallery-grid figcaption{
  position:absolute; inset:auto 0 0 0; padding:16px 14px 12px; color:#fff; font-size:.82rem; font-weight:600;
  background:linear-gradient(0deg, rgba(8,13,36,.86), transparent 75%); opacity:0; transition:opacity .2s;
}
.gallery-grid figure:hover figcaption{opacity:1;}
.gallery-cat{padding:44px 0;}
.gallery-cat:first-of-type{padding-top:16px;}
.gallery-cat:nth-of-type(even){background:var(--cream-dim);}
@media (max-width:980px){ .gallery-grid{--cols:3;} }
@media (max-width:620px){ .gallery-grid{--cols:2; --g:10px;} .gallery-grid figure.wide{flex-basis:100%; aspect-ratio:16/9;} .gallery-grid figcaption{display:none;} }

.lightbox{
  position:fixed; inset:0; background:rgba(4,7,20,.92); z-index:999; display:none; align-items:center; justify-content:center; padding:30px;
}
.lightbox.open{display:flex;}
.lightbox img{max-width:min(92vw,1100px); max-height:86vh; border-radius:var(--radius-m); box-shadow:var(--lift-3);}
.lightbox-close, .lightbox-nav{
  position:absolute; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.25); color:#fff; border-radius:50%;
  width:46px;height:46px; display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.lightbox-close{top:24px; right:24px;}
.lightbox-nav svg{width:20px;height:20px;}
.lightbox-prev{left:24px; top:50%; transform:translateY(-50%);}
.lightbox-next{right:24px; top:50%; transform:translateY(-50%);}
.lightbox-close:hover, .lightbox-nav:hover{background:var(--gold-500); color:#fff; border-color:var(--gold-500);}

/* ============================== FORMS ============================== */
.form-card{padding:36px; background:var(--paper); border-radius:var(--radius-l); box-shadow:var(--lift-2); border:1px solid var(--line);}
.field{margin-bottom:18px;}
.field label{display:block; font-size:.84rem; font-weight:700; color:var(--navy-900); margin-bottom:7px;}
.field input, .field select, .field textarea{
  width:100%; padding:13px 15px; border-radius:var(--radius-s); border:1.5px solid var(--line); background:var(--cream);
  font-family:var(--sans); font-size:.95rem; color:var(--ink); transition:border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus{border-color:var(--gold-500); background:#fff; outline:none;}
.field textarea{resize:vertical; min-height:110px;}
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
@media (max-width:620px){ .field-row{grid-template-columns:1fr;} }
.form-note{font-size:.82rem; color:var(--ink-soft); margin-top:10px;}
.form-success{
  display:none; align-items:center; gap:12px; background:#eef7f0; border:1px solid #cfe8d4; color:var(--green-ok);
  padding:14px 18px; border-radius:var(--radius-s); font-weight:600; font-size:.9rem; margin-top:16px;
}
.form-success.show{display:flex;}

/* ============================== FAQ / ACCORDION ============================== */
.acc-item{border:1px solid var(--line); border-radius:var(--radius-m); background:var(--paper); margin-bottom:12px; overflow:hidden;}
.acc-head{
  display:flex; align-items:center; justify-content:space-between; padding:18px 22px; cursor:pointer; gap:16px;
}
.acc-head h4{margin:0; font-size:1.02rem;}
.acc-head .plus{width:26px;height:26px;flex:none;border-radius:50%;border:1.5px solid var(--gold-500); color:var(--gold-600); display:flex;align-items:center;justify-content:center;transition:transform .25s;}
.acc-item.open .plus{transform:rotate(45deg); background:var(--gold-500); color:#fff;}
.acc-body{max-height:0; overflow:hidden; transition:max-height .28s ease;}
.acc-body-in{padding:0 22px 20px;}
.acc-body-in p{margin:0;}

/* ============================== TIMELINE (admissions steps) ============================== */
.steps{counter-reset:step; display:flex; flex-direction:column; gap:0;}
.step{display:grid; grid-template-columns:64px 1fr; gap:22px; position:relative; padding-bottom:38px;}
.step:last-child{padding-bottom:0;}
.step::before{
  counter-increment:step; content:counter(step); width:52px; height:52px; border-radius:50%;
  background:linear-gradient(155deg,var(--navy-700),var(--navy-950)); color:var(--gold-300); font-family:var(--serif); font-weight:600; font-size:1.2rem;
  display:flex; align-items:center; justify-content:center; box-shadow:var(--lift-1); z-index:2;
}
.step::after{content:""; position:absolute; left:26px; top:52px; bottom:-6px; width:2px; background:repeating-linear-gradient(0deg, var(--line) 0 6px, transparent 6px 12px);}
.step:last-child::after{display:none;}
.step-body h4{margin-bottom:6px;}
.step-body p{margin-bottom:0;}

/* ============================== ACHIEVEMENTS ============================== */
.tab-row{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:34px;}
.ach-card{padding:22px; display:flex; gap:16px; align-items:flex-start;}
.ach-avatar{
  width:64px;height:64px;border-radius:14px; flex:none; background:linear-gradient(155deg,var(--gold-400),var(--gold-600));
  display:flex;align-items:center;justify-content:center; color:#fff; box-shadow:var(--lift-1);
}
.ach-avatar svg{width:30px;height:30px;}
.ach-card h4{margin-bottom:3px; font-size:1.02rem;}
.ach-card .meta{font-size:.8rem; color:var(--ink-soft); margin-bottom:6px; display:block;}
.ach-card p{font-size:.9rem; margin-bottom:0;}
.ach-cat{display:none;}
.ach-cat.active{display:contents;}

/* ============================== CTA BAND ============================== */
.cta-band{
  background:linear-gradient(150deg,var(--navy-900),var(--navy-950)); color:#fff; border-radius:var(--radius-l);
  padding:56px 50px; display:flex; align-items:center; justify-content:space-between; gap:30px; position:relative; overflow:hidden;
  box-shadow:var(--lift-3);
}
.cta-band::before{
  content:""; position:absolute; right:-60px; top:-60px; width:280px; height:280px; border-radius:50%;
  background:radial-gradient(circle,rgba(220,182,85,.28),transparent 70%);
}
.cta-band h2{color:#fff; margin-bottom:8px; font-size:clamp(1.5rem,2.6vw,2.1rem);}
.cta-band p{color:#c7cde6; margin-bottom:0;}
.cta-band .actions{display:flex;gap:12px;flex-wrap:wrap; position:relative; z-index:2;}
@media (max-width:820px){ .cta-band{flex-direction:column;text-align:center;padding:40px 26px;} }

/* ============================== FOOTER ============================== */
footer.site-footer{background:var(--navy-950); color:#b7bede; padding-top:76px;}
.footer-grid{display:grid; grid-template-columns:1.5fr 1fr 1fr 1.2fr; gap:40px; padding-bottom:50px; border-bottom:1px solid rgba(255,255,255,.09);}
.footer-brand .brand{color:#fff; margin-bottom:16px;}
.footer-brand p{color:#98a0c4; font-size:.9rem; max-width:34ch;}
.footer-col h5{color:#fff; font-family:var(--serif); font-weight:600; font-size:1.02rem; margin-bottom:16px;}
.footer-col ul li{margin-bottom:10px;}
.footer-col a{color:#a9b0d1; font-size:.9rem; transition:color .15s;}
.footer-col a:hover{color:var(--gold-300);}
.footer-col .addr{display:flex; gap:10px; font-size:.88rem; color:#a9b0d1; margin-bottom:14px;}
.footer-col .addr svg{width:17px;height:17px;flex:none;margin-top:2px;color:var(--gold-400);}
.footer-bottom{display:flex; align-items:center; justify-content:space-between; padding:22px 0; font-size:.8rem; color:#7d84a8; flex-wrap:wrap; gap:10px;}
.footer-bottom a:hover{color:var(--gold-300);}
.footer-legal{display:flex; gap:18px;}
.footer-credit{
  text-align:center; padding:14px 0; font-size:.78rem; color:#7d84a8; border-top:1px solid rgba(255,255,255,.08);
}
.footer-credit a{color:var(--gold-300); font-weight:600;}
.footer-credit a:hover{color:var(--gold-400); text-decoration:underline;}
@media (max-width:900px){ .footer-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:560px){ .footer-grid{grid-template-columns:1fr;} }

/* ============================== MOBILE STICKY BAR ============================== */
.sticky-mobile{
  position:fixed; left:0; right:0; bottom:0; z-index:180; display:none;
  background:var(--paper); border-top:1px solid var(--line); box-shadow:0 -8px 24px rgba(8,13,36,.14);
  padding:10px 12px; gap:8px;
}
.sticky-mobile a{
  flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; padding:8px 4px; border-radius:10px;
  font-size:.68rem; font-weight:700; color:var(--navy-900);
}
.sticky-mobile a svg{width:20px;height:20px;}
.sticky-mobile a.call{color:var(--navy-800);}
.sticky-mobile a.wa{color:#278b45;}
.sticky-mobile a.apply{color:var(--gold-600);}
.sticky-mobile a.enquire{color:#b0407a;}
@media (max-width:1080px){ .sticky-mobile{display:flex;} body{padding-bottom:70px;} }

/* ============================== FLOATING WHATSAPP (desktop) ============================== */
.float-wa{
  position:fixed; right:26px; bottom:26px; z-index:190; width:60px;height:60px; border-radius:50%;
  background:linear-gradient(155deg,#3fbf62,#278b45); display:flex; align-items:center; justify-content:center; color:#fff;
  box-shadow:0 12px 30px rgba(39,139,69,.4); animation:pulse-wa 2.6s infinite;
}
.float-wa svg{width:28px;height:28px;}
@keyframes pulse-wa{ 0%,100%{box-shadow:0 12px 30px rgba(39,139,69,.4);} 50%{box-shadow:0 12px 30px rgba(39,139,69,.4), 0 0 0 10px rgba(63,191,98,.16);} }
@media (max-width:1080px){ .float-wa{bottom:86px; right:16px; width:52px;height:52px;} .float-wa svg{width:24px;height:24px;} }

/* ============================== AI ASSISTANT WIDGET ============================== */
.ai-launcher{
  position:fixed; left:26px; bottom:26px; z-index:190; display:flex; align-items:center; gap:10px;
  background:linear-gradient(155deg,var(--navy-700),var(--navy-950)); color:#fff; border:1px solid rgba(255,255,255,.16);
  padding:13px 20px 13px 14px; border-radius:999px; box-shadow:var(--lift-3); cursor:pointer;
}
.ai-launcher .ic{width:32px;height:32px;border-radius:50%;background:var(--gold-500); color:#fff; display:flex;align-items:center;justify-content:center;}
.ai-launcher .ic svg{width:17px;height:17px;}
.ai-launcher b{font-size:.86rem;}
.ai-launcher span{display:block;font-size:.68rem;color:var(--gold-300);}
@media (max-width:1080px){ .ai-launcher{left:16px; bottom:86px; padding:11px 16px 11px 11px;} .ai-launcher b{display:none;} .ai-launcher span{display:none;} }

.ai-panel{
  position:fixed; left:26px; bottom:100px; z-index:210; width:360px; max-width:calc(100vw - 32px);
  background:var(--paper); border-radius:var(--radius-l); box-shadow:var(--lift-3); border:1px solid var(--line);
  display:none; flex-direction:column; overflow:hidden; max-height:520px;
}
.ai-panel.open{display:flex;}
.ai-head{background:linear-gradient(150deg,var(--navy-800),var(--navy-950)); color:#fff; padding:18px 20px; display:flex; align-items:center; justify-content:space-between;}
.ai-head div b{display:block;font-family:var(--serif);}
.ai-head div span{font-size:.72rem;color:var(--gold-300);}
.ai-head button{background:rgba(255,255,255,.1); border:0; color:#fff; width:30px;height:30px;border-radius:50%;cursor:pointer;}
.ai-body{padding:16px; overflow-y:auto; flex:1; display:flex; flex-direction:column; gap:10px; background:var(--cream);}
.ai-msg{max-width:85%; padding:10px 14px; border-radius:14px; font-size:.86rem; line-height:1.5;}
.ai-msg.bot{background:#fff; border:1px solid var(--line); border-bottom-left-radius:4px; align-self:flex-start; color:var(--ink);}
.ai-msg.user{background:var(--navy-900); color:#fff; border-bottom-right-radius:4px; align-self:flex-end;}
.ai-suggests{display:flex; flex-wrap:wrap; gap:6px; padding:0 16px 14px; background:var(--cream);}
.ai-suggests button{
  font-size:.74rem; padding:7px 12px; border-radius:var(--radius-s); background:#fff; border:1px solid var(--line); cursor:pointer; color:var(--navy-800); font-weight:600;
}
.ai-suggests button:hover{background:var(--navy-900); color:#fff;}
.ai-input{display:flex; gap:8px; padding:12px; border-top:1px solid var(--line); background:#fff;}
.ai-input input{flex:1; border:1.5px solid var(--line); border-radius:999px; padding:10px 16px; font-size:.86rem;}
.ai-input button{width:40px;height:40px;border-radius:50%; background:var(--navy-900); color:#fff; border:0; cursor:pointer; display:flex; align-items:center; justify-content:center;}
.ai-input button svg{width:17px;height:17px;}

/* ============================== MISC / UTILITY ============================== */
.two-col{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center;}
@media (max-width:900px){ .two-col{grid-template-columns:1fr; gap:32px;} }
.tag-list{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:22px;}
.tag-list li{padding:7px 14px; border-radius:var(--radius-s); background:var(--cream-dim); border:1px solid var(--line); font-size:.8rem; font-weight:700; color:var(--navy-800);}
.check-list li{display:flex; gap:10px; margin-bottom:12px; font-size:.95rem; color:var(--ink-soft); align-items:flex-start;}
.check-list svg{width:19px;height:19px;flex:none;color:var(--gold-600); margin-top:2px;}
.img-frame{border-radius:var(--radius-l); overflow:hidden; box-shadow:var(--lift-2); border:1px solid var(--line); aspect-ratio:4/3;}

/* ---- generic decorative panel used instead of real photos (Gallery keeps the real photography) ---- */
.art-panel{
  position:relative; width:100%; height:100%; min-height:190px; display:flex; align-items:center; justify-content:center;
  overflow:hidden; color:var(--gold-300);
}
.art-panel::before{
  content:""; position:absolute; inset:0; opacity:.15;
  background-image:linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size:26px 26px;
}
.art-panel .art-crest{position:absolute; right:-18px; bottom:-18px; opacity:.14; width:120px; height:120px;}
.art-panel .art-crest .art-crest-svg{width:100%;height:100%;}
.art-panel .art-ic{position:relative; z-index:2; display:flex; align-items:center; justify-content:center;
  width:64px;height:64px; border-radius:18px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.22);}
.art-panel .art-ic svg{width:30px;height:30px;}
.art-panel span:not(.art-ic):not(.art-crest){
  position:absolute; left:16px; bottom:14px; z-index:2; font-size:.76rem; font-weight:700; letter-spacing:.03em;
  color:#fff; background:rgba(11,72,112,.7); padding:5px 11px; border-radius:var(--radius-s); backdrop-filter:blur(3px);
}
.divider-gold{height:3px; width:64px; background:linear-gradient(90deg,var(--gold-400),var(--gold-600)); border-radius:4px; margin:0 0 20px;}
.badge-ring{
  width:130px;height:130px; border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 16px;
  background:conic-gradient(var(--gold-500) calc(var(--p,80)*1%), var(--line-navy) 0); position:relative;
}
.badge-ring::before{content:""; position:absolute; inset:8px; border-radius:50%; background:var(--paper);}
.badge-ring span{position:relative; font-family:var(--serif); font-size:1.5rem; color:var(--navy-900); font-weight:700;}
.map-frame{border-radius:var(--radius-l); overflow:hidden; box-shadow:var(--lift-2); border:1px solid var(--line); line-height:0;}
.map-frame iframe{width:100%; height:420px; border:0; filter:grayscale(.15) contrast(1.05);}
.reveal{opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; transition-delay:var(--reveal-delay,0ms);}
.reveal.in{opacity:1; transform:none;}
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1; transform:none; transition:none;}
  *{animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important;}
}

/* ============================== ADMISSIONS: PREMIUM HERO ============================== */
.adm-hero{
  position:relative; overflow:hidden; padding:64px 0 56px;
  background:linear-gradient(160deg, #ffffff 0%, var(--cream-dim) 55%, #ece7f8 100%);
}
.adm-hero::before{
  content:""; position:absolute; top:-120px; right:-100px; width:420px; height:420px; border-radius:50%;
  background:radial-gradient(circle, rgba(75,53,140,.12), transparent 70%); pointer-events:none;
}
.adm-hero::after{
  content:""; position:absolute; bottom:-140px; left:-80px; width:320px; height:320px; border-radius:50%;
  background:radial-gradient(circle, rgba(251,191,36,.14), transparent 70%); pointer-events:none;
}
.adm-hero-grid{display:grid; grid-template-columns:1.1fr .9fr; gap:50px; align-items:center; position:relative; z-index:2;}
.adm-hero h1{font-size:clamp(2rem,4vw,2.9rem); margin-bottom:.4em;}
.adm-hero p.lead{font-size:1.05rem; max-width:48ch; margin-bottom:28px;}
.adm-hero-ctas{display:flex; gap:14px; flex-wrap:wrap;}
.adm-hero-art{position:relative;}
.adm-hero-frame{
  border-radius:28px 28px 28px 84px; overflow:hidden; box-shadow:var(--lift-3); aspect-ratio:4/3.2;
  position:relative; border:1px solid var(--line);
}
.adm-hero-frame::after{
  content:""; position:absolute; top:-16px; right:-16px; width:96px; height:96px; border:6px solid var(--gold-400);
  border-radius:50%; z-index:-1;
}
@media (max-width:980px){ .adm-hero-grid{grid-template-columns:1fr;} .adm-hero-art{max-width:440px; margin:0 auto;} }

/* ============================== ADMISSIONS: HORIZONTAL PROCESS ============================== */
.process-row{display:flex; justify-content:space-between; gap:10px; position:relative; margin-top:18px;}
.process-row::before{content:""; position:absolute; top:34px; left:9%; right:9%; height:2px; background:var(--line); z-index:0;}
.process-step{flex:1; text-align:center; position:relative; z-index:1; padding:0 6px;}
.process-num{
  width:68px; height:68px; border-radius:50%; background:#fff; border:3px solid var(--gold-500); color:var(--navy-900);
  font-family:var(--serif); font-weight:800; font-size:1.25rem; display:flex; align-items:center; justify-content:center;
  margin:0 auto 16px; box-shadow:var(--lift-2);
}
.process-step h4{font-size:.98rem; margin-bottom:6px;}
.process-step p{font-size:.85rem; margin-bottom:0;}
@media (max-width:900px){
  .process-row{flex-direction:column; gap:30px;}
  .process-row::before{display:none;}
  .process-step{display:grid; grid-template-columns:60px 1fr; gap:16px; text-align:left; align-items:flex-start;}
  .process-num{margin:0; width:56px; height:56px; font-size:1.05rem;}
}

/* ============================== ADMISSIONS: NOTICE / ANNOUNCEMENT ============================== */
.notice-card{
  display:flex; gap:20px; align-items:flex-start; padding:30px 32px; background:var(--cream-dim);
  border:1px solid var(--line); border-left:5px solid var(--gold-500); border-radius:var(--radius-m);
}
.notice-card .ic{
  width:52px; height:52px; border-radius:14px; flex:none; background:linear-gradient(155deg,var(--gold-400),var(--gold-500));
  display:flex; align-items:center; justify-content:center; color:var(--navy-950); box-shadow:var(--lift-1);
}
.notice-card .ic svg{width:26px;height:26px;}
.notice-card h3{margin-bottom:8px;}
.notice-card p{margin-bottom:16px;}
@media (max-width:620px){ .notice-card{flex-direction:column; padding:24px;} }

/* ============================== SITE-WIDE MOTION LAYER ============================== */
/* Scroll progress bar */
.scroll-progress{
  position:fixed; top:0; left:0; height:3px; width:0%; z-index:400;
  background:linear-gradient(90deg,var(--gold-500),var(--red-500),var(--navy-700));
  transition:width .12s linear; pointer-events:none;
}

/* Back-to-top button (desktop only, injected by JS) */
.back-to-top{
  position:fixed; right:26px; bottom:96px; z-index:190; width:46px; height:46px; border-radius:50%;
  background:var(--paper); border:1px solid var(--line); color:var(--navy-800); display:flex; align-items:center; justify-content:center;
  box-shadow:var(--lift-2); cursor:pointer; opacity:0; visibility:hidden; transform:translateY(12px) scale(.85);
  transition:opacity .25s ease, transform .25s ease, background .2s ease, color .2s ease, visibility .25s;
}
.back-to-top svg{width:19px;height:19px;}
.back-to-top.show{opacity:1; visibility:visible; transform:translateY(0) scale(1);}
.back-to-top:hover{background:var(--navy-900); color:#fff; border-color:var(--navy-900);}
@media (max-width:1080px){ .back-to-top{display:none;} }

/* Decorative floating orbs (hero-type sections) */
.hero, .page-hero, .adm-hero{ isolation:isolate; }
.hero::after, .page-hero::after, .adm-hero .adm-hero-grid::after{
  content:""; position:absolute; z-index:0; pointer-events:none; border-radius:50%; filter:blur(2px);
}
.hero::after{
  width:260px; height:260px; right:6%; top:-60px;
  background:radial-gradient(circle, rgba(251,191,36,.16), transparent 70%);
  animation:orb-float 9s ease-in-out infinite;
}
.page-hero::after{
  width:220px; height:220px; left:8%; bottom:-70px;
  background:radial-gradient(circle, rgba(251,191,36,.14), transparent 70%);
  animation:orb-float 10s ease-in-out infinite;
}
@keyframes orb-float{
  0%,100%{ transform:translateY(0) translateX(0); }
  50%{ transform:translateY(-18px) translateX(10px); }
}

/* Icon micro-bounce on card hover */
.feature-card .ic, .notice-card .ic{ transition:transform .3s ease; }
.feature-card:hover .ic, .notice-card:hover .ic{ transform:translateY(-3px) scale(1.06) rotate(-4deg); }
.people-avatar{ transition:transform .3s ease; }
.people-card:hover .people-avatar{ transform:scale(1.05); }

/* Kicker underline draws in in when revealed */
.kicker::before{ transition:width .5s ease .1s; }
.reveal .kicker::before{ width:0; }
.reveal.in .kicker::before{ width:26px; }

/* Counters: small pop as they start */
[data-count]{ display:inline-block; }

@media (prefers-reduced-motion: reduce){
  .hero::after, .page-hero::after{ animation:none; }
  .back-to-top{ transition:none; }
}

/* ============================== LEAD POPUP (cinematic admissions modal) ============================== */
.lead-popup-overlay{
  position:fixed; inset:0; z-index:500; display:flex; align-items:center; justify-content:center; padding:20px;
  background:rgba(8,13,36,.72); backdrop-filter:blur(6px); opacity:0; visibility:hidden;
  transition:opacity .35s ease, visibility .35s ease;
}
.lead-popup-overlay.show{opacity:1; visibility:visible;}
.lead-popup-card{
  position:relative; width:100%; max-width:460px; max-height:88vh; overflow-y:auto;
  background:var(--paper); border-radius:var(--radius-l); box-shadow:0 30px 70px rgba(8,13,36,.5);
  transform:translateY(28px) scale(.94); opacity:0; transition:transform .45s cubic-bezier(.2,.9,.28,1.15), opacity .4s ease;
}
.lead-popup-overlay.show .lead-popup-card{transform:translateY(0) scale(1); opacity:1;}
.lead-popup-head{
  position:relative; overflow:hidden; padding:30px 30px 24px; text-align:center; color:#fff;
  background:linear-gradient(150deg,var(--navy-950),var(--navy-800) 60%,#0c3e63 120%);
}
.lead-popup-head::before{
  content:""; position:absolute; top:0; left:0; right:0; height:5px;
  background:linear-gradient(90deg,var(--gold-500),var(--red-500),var(--navy-700),var(--gold-400));
  background-size:200% 100%; animation:lead-shimmer 3s linear infinite;
}
@keyframes lead-shimmer{ 0%{background-position:0% 0;} 100%{background-position:200% 0;} }
.lead-popup-head::after{
  content:""; position:absolute; width:220px; height:220px; border-radius:50%; right:-70px; top:-90px;
  background:radial-gradient(circle, rgba(251,191,36,.22), transparent 70%); pointer-events:none;
}
.lead-popup-eyebrow{
  display:inline-flex; align-items:center; gap:7px; font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--gold-300); background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18);
  padding:5px 13px; border-radius:999px; margin-bottom:14px; position:relative; z-index:1;
}
.lead-popup-eyebrow .dot{width:6px;height:6px;border-radius:50%;background:var(--gold-400); box-shadow:0 0 0 3px rgba(220,182,85,.25); animation:dot-pulse 1.6s ease-in-out infinite;}
@keyframes dot-pulse{ 0%,100%{opacity:1;} 50%{opacity:.35;} }
.lead-popup-head h3{
  color:#fff; font-size:1.5rem; margin-bottom:6px; position:relative; z-index:1;
}
.lead-popup-head p{color:#c7cde6; font-size:.88rem; margin:0; position:relative; z-index:1;}
.lead-popup-close{
  position:absolute; top:14px; right:14px; z-index:2; width:32px; height:32px; border-radius:50%;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22); color:#fff; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:background .2s ease, transform .2s ease;
}
.lead-popup-close:hover{background:rgba(255,255,255,.24); transform:rotate(90deg);}
.lead-popup-close svg{width:15px;height:15px;}
.lead-popup-body{padding:24px 26px 28px;}
.lead-field{position:relative; margin-bottom:13px;}
.lead-field .ic{
  position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--ink-soft); pointer-events:none;
}
.lead-field .ic svg{width:17px;height:17px;}
.lead-field input, .lead-field select, .lead-field textarea{
  width:100%; padding:12px 14px 12px 40px; border:1.5px solid var(--line); border-radius:var(--radius-s);
  font-family:var(--sans); font-size:.9rem; color:var(--ink); background:var(--cream);
  transition:border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.lead-field select{appearance:none; -webkit-appearance:none; cursor:pointer;}
.lead-field textarea{resize:vertical; min-height:64px; padding-top:12px;}
.lead-field textarea + .ic{top:18px; transform:none;}
.lead-field input:focus, .lead-field select:focus, .lead-field textarea:focus{
  outline:none; border-color:var(--gold-500); background:#fff; box-shadow:0 0 0 4px rgba(245,158,11,.14);
}
.lead-popup-submit{width:100%; margin-top:4px; font-size:.96rem;}
.lead-popup-note{font-size:.72rem; color:var(--ink-soft); text-align:center; margin:12px 0 0;}
@media (max-width:520px){
  .lead-popup-head{padding:24px 22px 20px;}
  .lead-popup-head h3{font-size:1.28rem;}
  .lead-popup-body{padding:20px 20px 22px;}
}
@media (prefers-reduced-motion: reduce){
  .lead-popup-card{transition:opacity .2s ease;}
  .lead-popup-head::before{animation:none;}
  .lead-popup-eyebrow .dot{animation:none;}
}


/* ============================== MOBILE POLISH ============================== */
@media (max-width:560px){
  .nav-wrap{padding:6px 12px 6px 20px; gap:10px;}
  .container,.container-wide{padding-left:20px; padding-right:20px;}
}
@media (max-width:1360px){
  nav.main-nav{top:var(--nav-top,78px); height:calc(100vh - var(--nav-top,78px)); height:calc(100dvh - var(--nav-top,78px));}
  nav.main-nav{justify-content:flex-start;}
  nav.main-nav > ul{padding-top:0; margin-top:0;}
}
/* Management team: two per row on phones instead of one very tall column */
@media (max-width:620px){
  .people-grid{grid-template-columns:repeat(2,1fr); gap:14px;}
  .people-grid .people-card{padding:20px 10px 18px;}
  .people-grid .people-avatar{width:88px; height:88px; margin-bottom:12px; box-shadow:0 0 0 4px var(--cream), 0 0 0 5px var(--line), var(--lift-1);}
  .people-grid .people-card h3{font-size:.96rem; line-height:1.25;}
  .people-grid .people-card .role{font-size:.66rem; margin-bottom:8px;}
  .people-grid .people-card p{font-size:.8rem; line-height:1.5; margin-bottom:0;}
  .people-grid .people-avatar svg{width:34px; height:34px;}
}
/* Home hero stats: a neat 4-up row instead of a 3 + 1 wrap */
@media (max-width:560px){
  .hero-stats{display:grid; grid-template-columns:repeat(4,1fr); gap:8px;}
  .hero-stats div span{display:block; line-height:1.25;}
}
@media (max-width:359px){
  .hero-stats{grid-template-columns:repeat(2,1fr);}
}



/* ============ FULL BANNER (uncropped) ============ */
/* Home page: full-width banner shown in one piece */
.banner-full{
  position:relative; isolation:isolate; overflow:hidden; padding:0; background:#0a1a3a;
  height:min(calc(100vw / 2.114), 620px);
}
.banner-full::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(90deg,#0a1a3a,#12306a 50%,#0a1a3a);
}
.banner-full img{display:block; height:100%; width:auto; max-width:100%; margin:0 auto; object-fit:contain;}
@media (min-width:1320px){
  .banner-full img{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%); mask-image:linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%);}
}

/* Picture panels that use the school banner: show it clear and complete (no blue tint / icon) */
.art-panel[style*="school-banner.jpg"]{
  background:#0a1a3a url('../img/school-banner.jpg') center/cover no-repeat !important;
}
.art-panel[style*="school-banner.jpg"]::before,
.art-panel[style*="school-banner.jpg"] .art-crest,
.art-panel[style*="school-banner.jpg"] .art-ic,
.art-panel[style*="school-banner.jpg"] > span{display:none;}
.img-frame:has(.art-panel[style*="school-banner.jpg"]){aspect-ratio:1821/864;}
.img-frame:has(.art-panel[style*="school-banner.jpg"]) .art-panel{min-height:0;}


/* Home hero without the side picture: centred, single column */
.hero--solo .hero-grid{grid-template-columns:1fr; justify-items:center;}
.hero--solo .hero-copy{max-width:860px; text-align:center;}
.hero--solo .hero-copy p.lead,.hero--solo .hero-copy h1{margin-left:auto; margin-right:auto;}
.hero--solo .hero-eyebrow{margin-left:auto; margin-right:auto;}
.hero--solo .hero-ctas,.hero--solo .hero-stats{justify-content:center;}
.hero--solo .hero-stats div{text-align:center;}
@media (max-width:560px){
  .hero--solo .hero-stats{justify-items:center;}
}
.hero--solo .hero-copy h1{max-width:none;}
.hero--solo .hero-copy p.lead{max-width:62ch;}
@media (max-width:560px){ .hero--solo .hero-copy h1{max-width:20ch;} }
