/* Rishi Public School — site stylesheet */
:root{
  --red:#D7141F; --red-d:#a80f18;
  --blue:#0B4DA8; --blue-d:#083a80; --navy:#0b1f4a;
  --gold:#F7A80F; --gold-l:#ffd56b;
  --green:#3BAA1C; --purple:#9A1FA8; --sky-b:#0a8de0;
  --ink:#1c2233; --muted:#5b6478; --line:#e6e9f2;
  --cream:#fffaf1; --sky:#f2f6ff;
  --r:18px; --shadow:0 14px 40px -18px rgba(11,31,74,.35);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Nunito',system-ui,sans-serif;color:var(--ink);background:#fff;line-height:1.65;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.wrap{width:min(1180px,92%);margin-inline:auto}
h1,h2,h3,h4{font-family:'Fraunces',Georgia,serif;line-height:1.18;color:var(--navy)}
h2{font-size:clamp(1.8rem,3.2vw,2.6rem);margin-bottom:.6rem}
h3{font-size:1.4rem}
p+p{margin-top:.9rem}
.eyebrow{display:inline-flex;align-items:center;gap:.5rem;font-weight:800;font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;color:var(--red);margin-bottom:.8rem}
.eyebrow::before{content:"";width:26px;height:3px;border-radius:3px;background:linear-gradient(90deg,var(--red),var(--gold))}
.lead{color:var(--muted);font-size:1.07rem;max-width:64ch}
section{padding:88px 0}
.center{text-align:center}.center .lead{margin-inline:auto}.center .eyebrow{justify-content:center}
.bg-sky{background:var(--sky)}.bg-cream{background:var(--cream)}
.btn{display:inline-flex;align-items:center;gap:.55rem;padding:.85rem 1.45rem;border-radius:999px;font-weight:800;font-size:.97rem;border:2px solid transparent;cursor:pointer;transition:.2s;font-family:inherit;line-height:1.2}
.btn-red{background:var(--red);color:#fff;box-shadow:0 10px 24px -10px rgba(215,20,31,.7)}
.btn-red:hover{background:var(--red-d);transform:translateY(-2px)}
.btn-ghost{border-color:rgba(255,255,255,.55);color:#fff}.btn-ghost:hover{background:#fff;color:var(--blue)}
.btn-blue{background:var(--blue);color:#fff}.btn-blue:hover{background:var(--blue-d)}
.btn-outline{border-color:var(--blue);color:var(--blue)}.btn-outline:hover{background:var(--blue);color:#fff}
.btn-wa{background:#25D366;color:#fff}.btn-wa:hover{background:#1da851}
.btn-white{background:#fff;color:var(--red)}.btn-white:hover{transform:translateY(-2px)}

/* top bar */
.topbar{background:var(--navy);color:#cfd8f5;font-size:.85rem}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.45rem 0;flex-wrap:wrap}
.topbar a:hover{color:#fff}
.tb-left{display:flex;gap:1.3rem;flex-wrap:wrap}
.pill{background:var(--gold);color:var(--navy);font-weight:900;padding:.2rem .8rem;border-radius:999px;font-size:.76rem;letter-spacing:.04em}
.pill:hover{background:#fff}

/* header + nav */
.site-header{position:sticky;top:var(--annh,0px);z-index:50;background:rgba(255,255,255,.97);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;padding:.55rem 0;gap:1rem}
.brand img{height:58px;width:auto}
.menu{display:flex;gap:.2rem;align-items:center;list-style:none;font-weight:800;font-size:.93rem}
.menu>li{position:relative}
.menu>li>a,.menu>li>button{display:flex;align-items:center;gap:.3rem;padding:.6rem .75rem;border-radius:10px;background:none;border:0;font:inherit;color:inherit;cursor:pointer}
.menu>li>a:hover,.menu>li>button:hover,.menu>li.active>a,.menu>li.active>button{color:var(--red)}
.menu .caret{width:10px;height:10px;transition:.2s}
.sub{position:absolute;top:100%;left:0;min-width:240px;background:#fff;border-radius:14px;box-shadow:var(--shadow);border:1px solid var(--line);padding:.5rem;list-style:none;opacity:0;visibility:hidden;transform:translateY(8px);transition:.2s}
.sub a{display:block;padding:.55rem .85rem;border-radius:9px;font-weight:700;font-size:.9rem}
.sub a:hover,.sub a.current{background:var(--sky);color:var(--blue)}
.has-sub:hover .sub,.has-sub:focus-within .sub{opacity:1;visibility:visible;transform:none}
.has-sub:hover .caret{transform:rotate(180deg)}
.menu .btn{padding:.6rem 1.15rem;font-size:.9rem;margin-left:.4rem}
.burger{display:none;background:none;border:0;cursor:pointer;padding:.4rem}
.burger span{display:block;width:26px;height:3px;background:var(--navy);margin:5px 0;border-radius:3px;transition:.25s}

/* home hero */
.hero{position:relative;overflow:hidden;color:#fff;padding:84px 0 120px;
  background:radial-gradient(1100px 500px at 85% -10%,rgba(247,168,15,.33),transparent 60%),
             radial-gradient(800px 500px at -10% 110%,rgba(215,20,31,.42),transparent 60%),
             linear-gradient(135deg,var(--blue-d),var(--blue) 55%,#1d63c9)}
.hero .wrap{display:grid;grid-template-columns:1.15fr .85fr;gap:3rem;align-items:center;position:relative;z-index:2}
.hero h1{color:#fff;font-size:clamp(2.2rem,5vw,3.8rem);margin:.6rem 0 1rem}
.hero h1 em{font-style:normal;color:var(--gold-l)}
.hero p{font-size:1.13rem;color:#dbe4ff;max-width:54ch}
.ctas{display:flex;gap:.9rem;flex-wrap:wrap;margin-top:2rem}
.badge-row{display:flex;gap:1.4rem;margin-top:2.1rem;flex-wrap:wrap;font-weight:700;font-size:.92rem;color:#e6ecff}
.badge-row div{display:flex;align-items:center;gap:.45rem}
.badge-row i{width:22px;height:22px;border-radius:50%;background:var(--gold);display:grid;place-items:center;color:var(--navy);font-style:normal;font-size:.75rem;font-weight:900}
.hero-tag{display:inline-block;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);padding:.4rem 1rem;border-radius:999px;font-weight:800;font-size:.85rem;letter-spacing:.03em}
.hero-art{position:relative;aspect-ratio:1;max-width:430px;justify-self:center;width:100%}
.hero-art .ring{position:absolute;inset:0;border-radius:50%;background:rgba(255,255,255,.08);border:2px dashed rgba(255,255,255,.25);animation:spin 60s linear infinite}
.hero-art .disc{position:absolute;inset:9%;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 40px 80px -30px rgba(0,0,0,.5)}
.hero-art .disc img{width:66%}
.float{position:absolute;background:#fff;color:var(--navy);border-radius:14px;padding:.7rem 1rem;box-shadow:var(--shadow);font-weight:800;font-size:.87rem;display:flex;align-items:center;gap:.6rem;animation:bob 5s ease-in-out infinite;line-height:1.25}
.float b{font-size:1.35rem;font-family:'Fraunces',serif;color:var(--red)}
.f1{top:6%;left:-6%}.f2{bottom:12%;right:-8%;animation-delay:-2.5s}.f3{bottom:-2%;left:6%;animation-delay:-1.2s}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes bob{50%{transform:translateY(-10px)}}
.wave{position:absolute;bottom:-1px;left:0;width:100%;z-index:3;display:block}

/* inner page banner */
.page-hero{position:relative;overflow:hidden;color:#fff;padding:64px 0 74px;background:linear-gradient(120deg,var(--blue-d),var(--blue) 60%,#1d63c9)}
.page-hero::after{content:"";position:absolute;right:-60px;top:-60px;width:320px;height:320px;background:url(../images/emblem.png) center/contain no-repeat;opacity:.12}
.page-hero h1{color:#fff;font-size:clamp(2rem,4.2vw,3.1rem);margin:.4rem 0 .6rem;position:relative;z-index:1}
.page-hero p{color:#dbe4ff;max-width:62ch;position:relative;z-index:1}
.crumbs{font-size:.86rem;font-weight:700;color:#b9c8f2;position:relative;z-index:1}
.crumbs a:hover{color:#fff}
.crumbs span{margin:0 .4rem;opacity:.6}

/* stats */
.stats{margin-top:-70px;position:relative;z-index:5;padding:0}
.stats .grid{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-radius:var(--r);box-shadow:var(--shadow);overflow:hidden}
.stat{padding:1.7rem 1.3rem;text-align:center;border-right:1px solid var(--line)}
.stat:last-child{border:0}
.stat b{display:block;font-family:'Fraunces',serif;font-size:2.3rem;line-height:1.1}
.stat span{color:var(--muted);font-weight:700;font-size:.9rem}
.stat:nth-child(1) b{color:var(--red)}.stat:nth-child(2) b{color:var(--blue)}.stat:nth-child(3) b{color:var(--green)}.stat:nth-child(4) b{color:var(--purple)}

/* layouts */
.split{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center}
.split.top{align-items:start}
.grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:1.4rem}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:1.2rem}
.mt{margin-top:2.6rem}

/* photo slots: drop real photos into /images with the given filename */
.photo{position:relative;border-radius:26px;overflow:hidden;aspect-ratio:4/3.4;background:linear-gradient(150deg,#fff6e3,#ffe2a8 55%,#ffd0d3);box-shadow:var(--shadow)}
.photo::before{content:"";position:absolute;inset:0;background:url(../images/emblem.png) center/42% no-repeat;opacity:.9}
.photo .ph-img{position:absolute;inset:0;background-size:cover;background-position:center}
.photo.tall{aspect-ratio:4/4.6}.photo.wide{aspect-ratio:3/2}
.photo .cap{position:absolute;left:1rem;bottom:1rem;background:rgba(255,255,255,.94);border-radius:12px;padding:.5rem .9rem;font-weight:800;font-size:.85rem;color:var(--navy);z-index:2}

/* values / feature tiles */
.value{display:flex;gap:.85rem;align-items:flex-start;padding:1.05rem;border-radius:14px;background:var(--sky)}
.value .dot{flex:none;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;color:#fff;font-weight:900;font-size:1.1rem}
.value h4{font-size:1.02rem}
.value p{font-size:.89rem;color:var(--muted);line-height:1.5;margin-top:.15rem}

.acard{background:#fff;border-radius:22px;padding:2rem;position:relative;overflow:hidden;box-shadow:0 6px 20px -14px rgba(11,31,74,.3);transition:.25s;border-top:6px solid var(--c);display:flex;flex-direction:column}
.acard:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.acard .ico{width:62px;height:62px;border-radius:18px;background:color-mix(in srgb,var(--c) 14%,#fff);display:grid;place-items:center;margin-bottom:1.1rem;font-size:1.8rem}
.acard .grades{align-self:flex-start;font-weight:800;font-size:.8rem;color:var(--c);background:color-mix(in srgb,var(--c) 10%,#fff);padding:.2rem .7rem;border-radius:999px;margin:.35rem 0 .9rem}
.acard p{color:var(--muted);font-size:.95rem}
.acard .more{margin-top:auto;padding-top:1.1rem;font-weight:800;color:var(--c)}

.ticks{list-style:none;display:grid;gap:.55rem;margin-top:1rem}
.ticks li{display:flex;gap:.6rem;font-weight:600}
.ticks li::before{content:"✓";flex:none;width:22px;height:22px;border-radius:50%;background:color-mix(in srgb,var(--c,var(--green)) 15%,#fff);color:var(--c,var(--green));display:grid;place-items:center;font-weight:900;font-size:.75rem;margin-top:.15rem}

.fac{border:1px solid var(--line);border-radius:18px;padding:1.6rem 1.3rem;transition:.25s;background:#fff}
.fac:hover{border-color:transparent;box-shadow:var(--shadow);transform:translateY(-4px)}
.fac .ic{font-size:1.7rem;margin-bottom:.8rem;width:54px;height:54px;border-radius:14px;display:grid;place-items:center}
.fac h4{font-size:1.08rem;margin-bottom:.3rem}
.fac p{font-size:.9rem;color:var(--muted);line-height:1.55}

.dark{background:linear-gradient(135deg,var(--navy),var(--blue-d));color:#fff}
.dark h2,.dark h3,.dark h4{color:#fff}.dark .lead{color:#c6d2f5}.dark .eyebrow{color:var(--gold-l)}
.chips{display:flex;flex-wrap:wrap;gap:.85rem;justify-content:center;margin-top:2.4rem}
.chip{display:flex;align-items:center;gap:.6rem;padding:.8rem 1.35rem;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);font-weight:800;transition:.2s}
.chip:hover{background:var(--gold);color:var(--navy);border-color:var(--gold)}
.chip span{font-size:1.25rem}

.pillars{display:grid;grid-template-columns:repeat(5,1fr);gap:1rem;margin-top:2.4rem}
.pillar{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.15);border-radius:18px;padding:1.5rem 1rem;text-align:center}
.pillar b{display:block;font-family:'Fraunces',serif;font-size:1.25rem;color:var(--gold-l);margin:.4rem 0 .3rem}
.pillar span{font-size:1.8rem}
.pillar p{font-size:.86rem;color:#c6d2f5;line-height:1.5}

/* steps */
.steps{counter-reset:s;display:grid;gap:1rem;margin-top:1.8rem}
.step{display:flex;gap:1rem;align-items:flex-start;padding:1.1rem 1.2rem;border-radius:16px;background:var(--cream);border:1px solid #f4e6c8}
.step::before{counter-increment:s;content:counter(s);flex:none;width:40px;height:40px;border-radius:50%;background:var(--red);color:#fff;display:grid;place-items:center;font-weight:900;font-family:'Fraunces',serif}
.step h4{font-size:1.02rem}
.step p{font-size:.92rem;color:var(--muted);line-height:1.5;margin-top:.1rem}

/* tables */
.table-wrap{overflow-x:auto;border-radius:18px;box-shadow:0 6px 24px -16px rgba(11,31,74,.35);border:1px solid var(--line)}
table{width:100%;border-collapse:collapse;background:#fff;font-size:.96rem}
th{background:var(--blue);color:#fff;text-align:left;padding:.95rem 1.2rem;font-weight:800}
td{padding:.9rem 1.2rem;border-top:1px solid var(--line)}
tr:nth-child(even) td{background:#fafbff}
td b{color:var(--navy)}

/* card panel */
.panel{background:#fff;border-radius:22px;padding:2rem;box-shadow:0 6px 24px -16px rgba(11,31,74,.35);border:1px solid var(--line)}
.panel.accent{border-top:6px solid var(--gold)}
.note{display:flex;gap:.8rem;background:#fff8e6;border:1px solid #f6dc9c;border-radius:14px;padding:1rem 1.2rem;font-size:.93rem;color:#6b5414;margin-top:1.4rem}
.note b{color:#5a440b}

/* docs grid */
.doc{display:flex;align-items:center;gap:1rem;padding:1.05rem 1.2rem;border:1px solid var(--line);border-radius:14px;background:#fff;transition:.2s;font-weight:800}
.doc:hover{border-color:var(--blue);box-shadow:var(--shadow);transform:translateY(-2px)}
.doc .pdf{flex:none;width:42px;height:42px;border-radius:10px;background:#ffeef0;color:var(--red);display:grid;place-items:center;font-size:.72rem;font-weight:900}
.doc small{display:block;font-weight:700;color:var(--muted);font-size:.8rem}
.doc .arrow{margin-left:auto;color:var(--blue)}

/* rules */
.rule{display:flex;gap:1rem;align-items:flex-start;padding:1.25rem;background:#fff;border-radius:16px;border:1px solid var(--line)}
.rule .n{flex:none;width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-size:1.35rem;background:var(--sky)}
.rule h4{font-size:1.02rem}
.rule p{font-size:.92rem;color:var(--muted);margin-top:.15rem;line-height:1.5}

/* events */
.event{background:#fff;border-radius:20px;overflow:hidden;border:1px solid var(--line);transition:.25s;display:flex;flex-direction:column}
.event:hover{box-shadow:var(--shadow);transform:translateY(-4px)}
.event .top{height:150px;display:grid;place-items:center;font-size:3.4rem;background:var(--bgc)}
.event .body{padding:1.3rem 1.4rem 1.5rem}
.event .tag{display:inline-block;font-size:.74rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--red);margin-bottom:.4rem}
.event h4{font-size:1.15rem;margin-bottom:.35rem}
.event p{font-size:.9rem;color:var(--muted);line-height:1.5}

/* forms */
.form-card{background:#fff;border-radius:24px;box-shadow:var(--shadow);padding:2.1rem;border-top:6px solid var(--gold)}
.form-card.sticky{position:sticky;top:110px}
.form-card .sub{color:var(--muted);font-size:.93rem;margin:.3rem 0 1.3rem;position:static;opacity:1;visibility:visible;transform:none;display:block;background:none;box-shadow:none;border:0;padding:0;min-width:0;border-radius:0}
.field{margin-bottom:1rem}
.field label{display:block;font-weight:800;font-size:.85rem;margin-bottom:.35rem;color:var(--navy)}
.field input,.field select,.field textarea{width:100%;padding:.8rem 1rem;border:1.5px solid var(--line);border-radius:12px;font-family:inherit;font-size:.96rem;background:#fbfcff;transition:.2s}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--blue);background:#fff;box-shadow:0 0 0 4px rgba(11,77,168,.1)}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.form-card button[type=submit]{width:100%;justify-content:center}
.err{color:var(--red);font-size:.85rem;font-weight:700;min-height:1.2em}
.done{display:none;text-align:center}
.done .tick{width:70px;height:70px;border-radius:50%;background:#e7f7ec;color:var(--green);display:grid;place-items:center;font-size:2rem;margin:0 auto 1rem}
.done p{color:var(--muted);margin:.5rem 0 1.3rem}
.done .alt{font-size:.85rem;margin-top:1rem}

/* areas */
.area-list{display:flex;flex-wrap:wrap;gap:.7rem;justify-content:center;margin-top:2rem}
.area-list span{background:#fff;border:1px solid #f0dfba;padding:.55rem 1.1rem;border-radius:999px;font-weight:700;font-size:.92rem}
.area-list span::before{content:"📍 "}

/* faq */
.faq-list{max-width:840px;margin:2.4rem auto 0;display:grid;gap:.8rem;text-align:left}
details{border:1px solid var(--line);border-radius:16px;padding:1.05rem 1.4rem;background:#fff;transition:.2s}
details[open]{box-shadow:var(--shadow);border-color:transparent}
summary{cursor:pointer;font-weight:800;color:var(--navy);list-style:none;display:flex;justify-content:space-between;gap:1rem;font-size:1.02rem}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";font-size:1.4rem;color:var(--red);line-height:1;transition:.2s}
details[open] summary::after{transform:rotate(45deg)}
details p{margin-top:.7rem;color:var(--muted)}

/* contact */
.ci{display:flex;gap:1rem;background:#fff;padding:1.2rem;border-radius:16px;align-items:flex-start;border:1px solid var(--line)}
.ci .ic{flex:none;width:46px;height:46px;border-radius:12px;display:grid;place-items:center;font-size:1.25rem;color:#fff}
.ci h4{font-family:'Nunito',sans-serif;font-size:.78rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}
.ci p,.ci a{font-weight:800;color:var(--navy)}
.ci a:hover{color:var(--red)}
.map{border-radius:24px;overflow:hidden;min-height:400px;position:relative;background:linear-gradient(135deg,#dfe8ff,#eef3ff);box-shadow:var(--shadow)}
.map iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.map .map-fallback{position:absolute;inset:auto 1.2rem 1.2rem 1.2rem;background:#fff;border-radius:16px;padding:1.1rem 1.3rem;box-shadow:var(--shadow);display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;z-index:2}
.map .map-fallback h4{font-size:1.08rem}
.map .map-fallback p{font-size:.88rem;color:var(--muted)}

/* cta band */
.band{background:linear-gradient(110deg,var(--red),#e8404a 60%,var(--gold));color:#fff;padding:60px 0}
.band .wrap{display:flex;justify-content:space-between;align-items:center;gap:2rem;flex-wrap:wrap}
.band h2{color:#fff;margin:0}
.band p{color:#ffe7ea;font-weight:600}
.band .btns{display:flex;gap:.8rem;flex-wrap:wrap}

/* footer */
.site-footer{background:#0a1736;color:#a9b6dc;padding:66px 0 0;font-size:.93rem}
.fgrid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.25fr;gap:2.4rem}
.site-footer h5{color:#fff;font-family:'Fraunces',serif;font-size:1.08rem;margin-bottom:1rem}
.site-footer ul{list-style:none;display:grid;gap:.5rem}
.site-footer a:hover{color:var(--gold)}
.flogo{background:#fff;border-radius:14px;padding:.6rem .9rem;display:inline-block;margin-bottom:1rem}
.flogo img{height:54px;width:auto}
.socials{display:flex;gap:.6rem;margin-top:1.2rem}
.socials a{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.08);display:grid;place-items:center;transition:.2s}
.socials a:hover{background:var(--gold)}
.socials svg{width:18px;height:18px;fill:#fff}
.socials a:hover svg{fill:var(--navy)}
.copy{border-top:1px solid rgba(255,255,255,.08);margin-top:48px;padding:1.2rem 0;display:flex;justify-content:space-between;flex-wrap:wrap;gap:1rem;font-size:.85rem}

/* floating buttons */
.fab{position:fixed;right:18px;bottom:18px;z-index:60;display:flex;flex-direction:column;gap:.7rem}
.fab a{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;box-shadow:0 10px 25px -8px rgba(0,0,0,.4);transition:.2s}
.fab a:hover{transform:scale(1.08)}
.fab .wa{background:#25D366}.fab .ph{background:var(--red)}
.fab svg{width:26px;height:26px;fill:#fff}

.reveal{opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .7s ease}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none}.ring,.float{animation:none}}

/* responsive */
@media (max-width:1080px){
  .burger{display:block}
  .menu{position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;background:#fff;padding:1rem 4% 1.5rem;gap:.1rem;box-shadow:0 20px 30px -20px rgba(0,0,0,.3);display:none;max-height:calc(100vh - 120px);overflow:auto}
  .menu.open{display:flex}
  .menu>li>a,.menu>li>button{width:100%;justify-content:space-between;padding:.8rem .6rem;border-bottom:1px solid var(--line);border-radius:0}
  .sub{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;display:none;padding:.2rem 0 .5rem .8rem}
  .has-sub.open .sub{display:block}
  .has-sub.open .caret{transform:rotate(180deg)}
  .has-sub:hover .caret{transform:none}
  .menu .btn{margin:1rem 0 0;justify-content:center}
}
@media (max-width:980px){
  .hero .wrap,.split{grid-template-columns:1fr;gap:2.6rem}
  .hero-art{max-width:330px}
  .grid3,.pillars{grid-template-columns:1fr 1fr}
  .grid4{grid-template-columns:repeat(2,1fr)}
  .stats .grid{grid-template-columns:repeat(2,1fr)}
  .stat:nth-child(2){border-right:0}.stat:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .fgrid{grid-template-columns:1fr 1fr}
  .form-card.sticky{position:static}
}
@media (max-width:640px){
  section{padding:66px 0}
  .grid2,.grid3,.grid4,.pillars,.row2,.fgrid{grid-template-columns:1fr}
  .tb-mail{display:none}
  .brand img{height:46px}
  .f1{left:0}.f2{right:0}
  .page-hero{padding:48px 0 56px}
}
.menu>li>a.btn-red{background:var(--red);color:#fff;border-radius:999px;padding:.6rem 1.15rem}
.menu>li>a.btn-red:hover{background:var(--red-d);color:#fff}
@media (max-width:1080px){.menu>li>a.btn-red{justify-content:center;border-bottom:0;border-radius:999px}}
/* larger brand logo */
.brand img{height:78px}
.nav{padding:.45rem 0}
.flogo img{height:72px}
.logo-feature{background:#fff;border-radius:24px;padding:1.6rem 2rem;box-shadow:var(--shadow);display:inline-block}
.logo-feature img{height:110px;width:auto}
@media (max-width:640px){.brand img{height:56px}.logo-feature img{height:72px}}

/* ---------- real photos ---------- */
.photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}
.photo .cap{z-index:2}
.hero{background:
  linear-gradient(120deg,rgba(8,58,128,.94),rgba(11,77,168,.86) 55%,rgba(29,99,201,.72)),
  url(../images/campus-panorama.jpg) center/cover no-repeat}
.page-hero{background:linear-gradient(120deg,rgba(8,58,128,.95),rgba(11,77,168,.88) 60%,rgba(29,99,201,.78)),url(../images/campus-panorama.jpg) center 40%/cover no-repeat}
.panorama{border-radius:26px;overflow:hidden;box-shadow:var(--shadow);position:relative}
.panorama img{width:100%;height:auto;display:block}
.panorama .cap{position:absolute;left:1.2rem;bottom:1.2rem;background:rgba(255,255,255,.95);border-radius:12px;padding:.55rem 1rem;font-weight:800;color:var(--navy);font-size:.92rem}

/* gallery */
.filters{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center;margin-top:2rem}
.filters button{border:1.5px solid var(--line);background:#fff;padding:.55rem 1.15rem;border-radius:999px;font:inherit;font-weight:800;font-size:.9rem;cursor:pointer;color:var(--navy);transition:.2s}
.filters button:hover{border-color:var(--blue)}
.filters button.on{background:var(--blue);color:#fff;border-color:var(--blue)}
.gallery{columns:4 260px;column-gap:1rem;margin-top:2.2rem}
.gallery a{display:block;break-inside:avoid;margin-bottom:1rem;border-radius:16px;overflow:hidden;position:relative;box-shadow:0 6px 18px -12px rgba(11,31,74,.4)}
.gallery img{width:100%;height:auto;transition:transform .4s}
.gallery a:hover img{transform:scale(1.05)}
.gallery a.hide{display:none}
.strip{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:210px;gap:1rem;margin-top:2.4rem}
.strip a{border-radius:18px;overflow:hidden;position:relative}
.strip a:first-child{grid-row:span 2;grid-column:span 2}
.strip img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.strip a:hover img{transform:scale(1.06)}
.lightbox{position:fixed;inset:0;background:rgba(5,12,30,.92);z-index:100;display:none;align-items:center;justify-content:center;padding:4vh 4vw}
.lightbox.open{display:flex}
.lightbox img{max-width:100%;max-height:88vh;border-radius:14px;box-shadow:0 30px 60px rgba(0,0,0,.5)}
.lightbox button{position:absolute;background:rgba(255,255,255,.12);color:#fff;border:0;width:52px;height:52px;border-radius:50%;font-size:1.6rem;cursor:pointer}
.lightbox button:hover{background:rgba(255,255,255,.25)}
.lb-close{top:20px;right:20px}.lb-prev{left:18px;top:50%;transform:translateY(-50%)}.lb-next{right:18px;top:50%;transform:translateY(-50%)}
.event .top{padding:0;overflow:hidden;height:200px}
.event .top img{width:100%;height:100%;object-fit:cover}
@media (max-width:980px){.strip{grid-template-columns:repeat(2,1fr);grid-auto-rows:170px}}
.menu>li>a,.menu>li>button{white-space:nowrap;padding:.6rem .55rem;font-size:.9rem}
.menu>li>a.btn-red{white-space:nowrap}
.strip{grid-auto-rows:190px}
@media (max-width:1240px){
  .burger{display:block}
  .menu{position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;background:#fff;padding:1rem 4% 1.5rem;gap:.1rem;box-shadow:0 20px 30px -20px rgba(0,0,0,.3);display:none;max-height:calc(100vh - 120px);overflow:auto}
  .menu.open{display:flex}
  .menu>li>a,.menu>li>button{width:100%;justify-content:space-between;padding:.8rem .6rem;border-bottom:1px solid var(--line);border-radius:0;font-size:.95rem}
  .sub{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;display:none;padding:.2rem 0 .5rem .8rem}
  .has-sub.open .sub{display:block}
  .has-sub.open .caret{transform:rotate(180deg)}
  .has-sub:hover .caret{transform:none}
  .menu>li>a.btn-red{margin:1rem 0 0;justify-content:center;border-bottom:0;border-radius:999px}
}
@media (min-width:1241px) and (max-width:1340px){.brand img{height:64px}}

/* ---------- CMS: forms, testimonials ---------- */
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.form-card button[disabled]{opacity:.7;cursor:wait}
.tgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.3rem}
.split .tgrid{grid-template-columns:1fr 1fr}
.tcard{background:#fff;border:1px solid var(--line);border-radius:20px;padding:1.6rem;display:flex;flex-direction:column;gap:1rem;box-shadow:0 6px 22px -16px rgba(11,31,74,.4);position:relative}
.tcard::before{content:"\201C";position:absolute;right:1.2rem;top:.2rem;font-family:'Fraunces',serif;font-size:4.5rem;color:var(--gold);opacity:.35;line-height:1}
.tcard blockquote{color:var(--ink);font-size:.98rem;line-height:1.65;flex:1}
.tcard figcaption{display:flex;align-items:center;gap:.8rem}
.tcard figcaption b{display:block;color:var(--navy)}.tcard figcaption small{color:var(--muted);font-weight:600}
.t-av{width:46px;height:46px;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,var(--blue),var(--purple));color:#fff;display:grid;place-items:center;font-weight:900;flex:none}
.t-av img{width:100%;height:100%;object-fit:cover}
.t-src{margin-left:auto;font-size:.72rem;font-weight:800;color:var(--muted);background:var(--sky);padding:.2rem .6rem;border-radius:999px}
.stars{color:var(--gold);font-size:1.1rem;letter-spacing:2px}.stars .off{color:#dfe3ec}
.rate{display:inline-flex;flex-direction:row-reverse;gap:.2rem}
.rate input{position:absolute;opacity:0;width:1px}
.rate label{font-size:2rem;color:#dfe3ec;cursor:pointer;margin:0!important;transition:.15s}
.rate input:checked~label,.rate label:hover,.rate label:hover~label{color:var(--gold)}
@media (max-width:980px){.split .tgrid{grid-template-columns:1fr}}

/* ---------- CMS: News & Events ---------- */
a.event{color:inherit}
.event .top .ph-ico{display:grid;place-items:center;height:100%;font-size:3.2rem;background:var(--sky)}
.event .body{display:flex;flex-direction:column;flex:1}
.event .more{margin-top:auto;padding-top:.8rem;font-weight:800;color:var(--blue);font-size:.9rem}
.news-grid .event.hide{display:none}
.evlist{display:grid;gap:1rem;max-width:900px;margin-inline:auto}
.evrow{display:flex;gap:1.2rem;align-items:center;background:#fff;border:1px solid var(--line);border-radius:18px;padding:1rem 1.3rem;transition:.2s}
.evrow:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.evdate{flex:none;width:68px;height:68px;border-radius:16px;background:var(--red);color:#fff;display:grid;place-items:center;text-align:center;line-height:1}
.evdate b{font-family:'Fraunces',serif;font-size:1.7rem;display:block}.evdate span{font-size:.78rem;font-weight:800;text-transform:uppercase}
.evinfo{flex:1}.evinfo h4{font-size:1.12rem}.evinfo p{font-size:.92rem;color:var(--blue);font-weight:700;margin-top:.15rem}.evinfo p.muted{color:var(--muted);font-weight:600}
.evgo{font-size:1.4rem;color:var(--blue)}
.news-meta{font-weight:800;color:var(--gold-l)!important}
.article{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:3rem;align-items:start}
.article-img{width:100%;border-radius:22px;box-shadow:var(--shadow);margin-bottom:1.6rem}
.article-lead{font-size:1.15rem;color:var(--navy);font-weight:600;max-width:none;margin-bottom:1rem}
.article-body p{margin:0 0 1rem;color:#3a4255;font-size:1.03rem}
.article-body ul{margin:0 0 1rem 1.2rem;color:#3a4255}.article-body li{margin:.3rem 0}
.article-body a{color:var(--blue);text-decoration:underline}
.share{display:flex;align-items:center;gap:.6rem;margin-top:1.6rem;font-weight:800;color:var(--muted)}
.share a{width:38px;height:38px;border-radius:50%;background:var(--sky);display:grid;place-items:center}
.share svg{width:18px;height:18px;fill:var(--navy)}
@media (max-width:980px){.article{grid-template-columns:1fr}}
.event .top .ph-ico{width:100%;align-self:stretch;justify-self:stretch}
.doc-sec{font-size:1.25rem;margin:2.4rem 0 1rem;padding-bottom:.5rem;border-bottom:2px solid var(--line)}
.doc-sec:first-of-type{margin-top:0}

/* ---------- Announcement bar (managed in Admin → Announcement Bar) ---------- */
.ann-bar{position:sticky;top:0;z-index:60;font-weight:700;font-size:.95rem}
.ann-bar[hidden]{display:none}
.ann-in{display:flex;align-items:center;justify-content:center;gap:1rem;padding:.6rem 2.6rem;flex-wrap:wrap;text-align:center}
.ann-in p{margin:0;line-height:1.4}
.ann-btn{display:inline-block;padding:.32rem .95rem;border-radius:999px;font-weight:900;font-size:.85rem;white-space:nowrap;transition:transform .15s}
.ann-btn:hover{transform:translateY(-1px)}
.ann-x{position:absolute;right:.6rem;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.18);border:0;color:inherit;width:30px;height:30px;border-radius:50%;cursor:pointer;font-size:.9rem;line-height:1}
.ann-x:hover{background:rgba(255,255,255,.32)}
@media (max-width:640px){.ann-bar{font-size:.85rem}.ann-in{gap:.5rem;padding:.55rem 2.4rem .55rem .8rem}}
.ann-bar[style*="#FFD60A"] .ann-x{background:rgba(11,31,74,.12)}
.ann-bar[style*="#FFD60A"] .ann-x:hover{background:rgba(11,31,74,.22)}

/* ---------- Our Achievers (infinite marquee, pauses on hover/focus) ---------- */
.ach-sec{padding:4.5rem 0;background:linear-gradient(180deg,#fff 0%,#FFF8EC 100%);overflow:hidden}
.ach-marquee{position:relative;margin-top:2.2rem;overflow:hidden;outline:none;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.ach-track{display:flex;gap:1.4rem;width:max-content;padding:.6rem 0 1.4rem;animation:ach-scroll var(--ach-dur,40s) linear infinite}
.ach-marquee:hover .ach-track,.ach-marquee:focus-within .ach-track,.ach-marquee:focus .ach-track{animation-play-state:paused}
@keyframes ach-scroll{from{transform:translateX(0)}to{transform:translateX(calc(-50% - .7rem))}}
.ach-card{flex:0 0 250px;background:#fff;border:1px solid #f0dfba;border-radius:22px;padding:1.5rem 1.2rem 1.3rem;text-align:center;
  box-shadow:0 10px 24px rgba(11,31,74,.08);transition:transform .25s,box-shadow .25s,border-color .25s}
.ach-card:hover{transform:translateY(-6px);box-shadow:0 16px 34px rgba(11,31,74,.16);border-color:#FFD25E}
.ach-photo{position:relative;width:112px;height:112px;margin:0 auto 1rem}
.ach-photo img,.ach-ini{width:112px;height:112px;border-radius:50%;object-fit:cover;border:4px solid #FFD60A;box-shadow:0 0 0 4px #fff,0 6px 16px rgba(0,0,0,.15);display:block}
.ach-ini{display:flex;align-items:center;justify-content:center;background:#0B4DA8;color:#fff;font:700 2.2rem/1 Fraunces,Georgia,serif}
.ach-ico{position:absolute;right:-2px;bottom:2px;width:38px;height:38px;border-radius:50%;background:#D7141F;border:3px solid #fff;display:flex;align-items:center;justify-content:center;font-size:18px}
.ach-card h3{font:700 1.15rem/1.25 Fraunces,Georgia,serif;color:#0B1F4A;margin:0}
.ach-class{font-size:.85rem;color:#5a6782;font-weight:700;margin:.2rem 0 0}
.ach-title{margin:.7rem 0 0;font-weight:800;color:#0B4DA8;font-size:.98rem;line-height:1.35}
.ach-meta{display:inline-block;margin:.7rem 0 0;padding:.25rem .75rem;border-radius:999px;background:#FFF8EC;border:1px solid #f0dfba;font-size:.78rem;font-weight:800;color:#8a5a00}
.ach-details{margin:.6rem 0 0;font-size:.85rem;color:#5a6782;line-height:1.45}
@media (max-width:640px){.ach-card{flex-basis:210px}.ach-photo,.ach-photo img,.ach-ini{width:96px;height:96px}.ach-sec{padding:3.2rem 0}}
@media (prefers-reduced-motion:reduce){.ach-track{animation:none;overflow-x:auto}.ach-marquee{overflow-x:auto}}

/* ---------- Facilities: labs + library ---------- */
.lab-card{background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 10px 26px rgba(11,31,74,.08);transition:transform .25s,box-shadow .25s}
.lab-card:hover{transform:translateY(-5px);box-shadow:0 16px 34px rgba(11,31,74,.14)}
.lab-card .photo{border-radius:0;margin:0}
.lab-card .photo img{aspect-ratio:4/3;object-fit:cover;width:100%}
.lab-body{padding:1.2rem 1.3rem 1.4rem}
.lab-body h3{margin:0 0 .35rem}
.lab-body p{font-size:.95rem;color:var(--muted);line-height:1.55;margin:0}
.lab-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:1.6rem}
.lab-grid .lab-card{flex:1 1 260px;max-width:400px;display:flex;flex-direction:column}
.lab-grid .lab-body{flex:1}
.lib-split{align-items:stretch}
.lib-split>.photo{aspect-ratio:auto;min-height:380px;margin:0}
.lib-split>div:last-child{display:flex;flex-direction:column;justify-content:center}
.lib-thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem;margin-top:1.4rem}
.lib-thumbs img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px;box-shadow:0 6px 14px rgba(0,0,0,.1);display:block}
@media (max-width:980px){.lib-split>.photo{aspect-ratio:4/3;min-height:0}}

/* ---------- Photo strip (infinite, pauses on hover) ---------- */
.pm-sec{padding:4rem 0 4.2rem;overflow:hidden}
.pm-marquee{margin-top:2rem;overflow:hidden;outline:none;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
.pm-track{display:flex;gap:1rem;width:max-content;animation:pm-scroll var(--pm-dur,45s) linear infinite}
.pm-marquee:hover .pm-track,.pm-marquee:focus-within .pm-track{animation-play-state:paused}
@keyframes pm-scroll{from{transform:translateX(0)}to{transform:translateX(calc(-50% - .5rem))}}
.pm-track a{position:relative;flex:0 0 auto;display:block;border-radius:18px;overflow:hidden;box-shadow:0 8px 20px rgba(11,31,74,.12)}
.pm-track img{display:block;height:220px;width:330px;object-fit:cover;transition:transform .4s}
.pm-track a:hover img{transform:scale(1.06)}
.pm-track span{position:absolute;left:0;right:0;bottom:0;padding:1.6rem .9rem .7rem;color:#fff;font-weight:800;font-size:.9rem;text-align:left;
  background:linear-gradient(transparent,rgba(11,31,74,.85));opacity:0;transition:opacity .3s}
.pm-track a:hover span{opacity:1}
@media (max-width:640px){.pm-track img{height:170px;width:250px}.pm-sec{padding:3rem 0}}
@media (prefers-reduced-motion:reduce){.pm-track{animation:none}.pm-marquee{overflow-x:auto}}

/* ---------- Middle School: Our Approach ---------- */
.approach-head .lead{max-width:760px;margin-left:auto;margin-right:auto}
.approach-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;align-items:stretch}
.approach-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:1.8rem 1.6rem;box-shadow:0 10px 24px rgba(11,31,74,.06);text-align:left}
.approach-card .ic{font-size:1.7rem;width:56px;height:56px;border-radius:14px;display:grid;place-items:center;margin-bottom:1rem}
.approach-card h3{margin:0 0 .5rem}
.approach-card p{color:var(--muted);line-height:1.65;margin:0}
.approach-card .ticks{margin-top:.8rem}
.approach-note{display:flex;gap:1rem;align-items:center;max-width:900px;margin:2.2rem auto 0;background:#fff;border-left:5px solid var(--red,#D7141F);border-radius:16px;padding:1.2rem 1.5rem;box-shadow:0 8px 20px rgba(11,31,74,.06)}
.approach-note span{font-size:1.8rem}
.approach-note p{margin:0;font-weight:700;color:var(--navy,#0B1F4A);line-height:1.55}
@media (max-width:980px){.approach-grid{grid-template-columns:1fr;max-width:640px;margin-left:auto;margin-right:auto}}

/* ---------- Home: four academic stages ---------- */
.acards4{gap:1.3rem}
.acards4 .acard{padding:1.7rem 1.5rem}
@media (max-width:1180px) and (min-width:641px){.acards4{grid-template-columns:repeat(2,1fr)}}

/* mobile menu fits below the pinned announcement bar */
@media (max-width:1080px){.menu{max-height:calc(100vh - 120px - var(--annh,0px))}}

/* ---------- Admission Drive landing page ---------- */
.lp-head{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.97);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.lp-head .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-top:.6rem;padding-bottom:.6rem}
.lp-head .brand img{height:62px;width:auto}
.lp-head-cta{display:flex;align-items:center;gap:1rem}
.lp-call{font-weight:900;color:var(--navy)}
.lp-hero{position:relative;color:#fff;background:linear-gradient(120deg,rgba(11,31,74,.94),rgba(11,77,168,.86)),url(../images/home-campus.jpg) center/cover;padding:56px 0 64px}
.lp-hero-in{display:grid;grid-template-columns:1.1fr .9fr;gap:3rem;align-items:center}
.lp-badge{display:inline-block;background:var(--gold,#FFD25E);color:var(--navy);font-weight:900;font-size:.82rem;letter-spacing:.06em;padding:.4rem .9rem;border-radius:999px}
.lp-hero h1{color:#fff;font-size:clamp(2rem,4.2vw,3.2rem);line-height:1.12;margin:1rem 0 .8rem}
.lp-hero h1 em{color:#FFD60A;font-style:italic}
.lp-sub{color:#dbe5ff;font-weight:700;font-size:1.05rem}
.lp-chips{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:.55rem 1.2rem;margin:1.4rem 0 1.8rem;padding:0;font-weight:700;color:#fff}
.lp-hero-btns{display:flex;gap:.8rem;flex-wrap:wrap}
.btn-gold{background:#FFD60A;color:var(--navy)}
.btn-gold:hover{background:#ffe24d}
.lp-hero .form-card{color:var(--text,#1c2640)}
.lp-stats{background:var(--navy);color:#fff;padding:0}
.lp-stats .wrap{display:grid;grid-template-columns:repeat(4,1fr);text-align:center;padding-top:1.6rem;padding-bottom:1.6rem;gap:1rem}
.lp-stats b{display:block;font:700 2rem/1.1 Fraunces,Georgia,serif;color:#FFD60A}
.lp-stats span{color:#cfd8f5;font-weight:700;font-size:.9rem}
.lp-why{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem}
.lp-card{background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 10px 26px rgba(11,31,74,.08);display:flex;flex-direction:column}
.lp-card img{width:100%;aspect-ratio:16/10;object-fit:cover}
.lp-card>div{padding:1.1rem 1.3rem 1.3rem}
.lp-card h3{margin:0 0 .35rem;font-size:1.15rem}
.lp-card p{margin:0;color:var(--muted);font-size:.95rem;line-height:1.55}
.lp-final{background:linear-gradient(110deg,var(--red),#e8404a 60%,var(--gold));color:#fff;padding:56px 0}
.lp-final .wrap{display:flex;justify-content:space-between;align-items:center;gap:2rem;flex-wrap:wrap}
.lp-final h2{color:#fff;margin:0}.lp-final p{color:#ffe7ea;font-weight:600}.lp-final p a{color:#fff;text-decoration:underline}
.lp-final .btns{display:flex;gap:.8rem;flex-wrap:wrap}
.lp-bar{display:none}
@media (max-width:980px){
  .lp-hero-in{grid-template-columns:1fr;gap:2rem}
  .lp-why{grid-template-columns:1fr 1fr}
  .lp-stats .wrap{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .lp-head .brand img{height:48px}.lp-call span{display:none}.lp-head .btn{display:none}
  .lp-hero{padding:34px 0 40px}.lp-chips{grid-template-columns:1fr}
  .lp-why{grid-template-columns:1fr}
  .lp-bar{display:grid;grid-template-columns:1fr 1fr 1.3fr;position:fixed;left:0;right:0;bottom:0;z-index:70;background:#fff;box-shadow:0 -6px 18px rgba(0,0,0,.12)}
  .lp-bar a{padding:.95rem .5rem;text-align:center;font-weight:900;color:var(--navy)}
  .lp-bar .wa{color:#128c4a}.lp-bar .go{background:var(--red);color:#fff}
  body.lp{padding-bottom:58px}
}

/* ---------- Thank You page ---------- */
.ty-hero{background:linear-gradient(160deg,#eef3ff,#fff8ec);padding:64px 0}
.ty-card{max-width:760px;margin:0 auto;background:#fff;border-radius:26px;box-shadow:var(--shadow);padding:2.6rem 2.2rem;text-align:center;border-top:6px solid var(--green,#1e9e52)}
.ty-tick{width:84px;height:84px;border-radius:50%;background:#e7f7ec;color:var(--green,#1e9e52);display:grid;place-items:center;font-size:2.6rem;font-weight:900;margin:0 auto 1.2rem}
.ty-card h1{margin:0 0 .6rem}
.ty-card .lead{margin:0 auto;max-width:560px}
.ty-btns{display:flex;gap:.8rem;justify-content:center;flex-wrap:wrap;margin-top:1.6rem}
.ty-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:2.2rem;text-align:left}
.ty-steps>div{background:var(--sky,#f3f6fc);border-radius:16px;padding:1.1rem 1.1rem 1.2rem}
.ty-steps b{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--blue);color:#fff;font-weight:900;margin-bottom:.6rem}
.ty-steps h4{margin:0 0 .25rem}.ty-steps p{margin:0;font-size:.9rem;color:var(--muted);line-height:1.5}
.ty-links{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;max-width:900px;margin-left:auto;margin-right:auto}
.ty-links a{background:#fff;border-radius:18px;padding:1.3rem 1rem;font-weight:800;color:var(--navy);box-shadow:0 8px 20px rgba(11,31,74,.07);display:flex;flex-direction:column;align-items:center;gap:.5rem;transition:transform .2s}
.ty-links a:hover{transform:translateY(-4px)}.ty-links span{font-size:1.8rem}
@media (max-width:760px){.ty-steps{grid-template-columns:1fr}.ty-links{grid-template-columns:1fr 1fr}.ty-card{padding:2rem 1.3rem}}

/* ---------- Video embeds (Thank You page + admin preview) ---------- */
.ty-video{max-width:820px;margin:1.8rem auto 0}
.ty-video-title{font-weight:800;color:var(--navy);margin:0 0 .8rem}
.vid{position:relative;aspect-ratio:16/9;border-radius:20px;overflow:hidden;background:#0b1f4a;box-shadow:0 14px 34px rgba(11,31,74,.18)}
.vid.vid-short{aspect-ratio:9/16;max-width:340px;margin:0 auto}
.vid iframe,.vid video,.vid-lite{position:absolute;inset:0;width:100%;height:100%;border:0}
.vid-lite{padding:0;cursor:pointer;background:#000}
.vid-lite img{width:100%;height:100%;object-fit:cover;opacity:.92;transition:opacity .2s}
.vid-lite:hover img{opacity:1}
.vid-play{position:absolute;left:50%;top:50%;width:76px;height:54px;transform:translate(-50%,-50%);background:#D7141F;border-radius:16px;box-shadow:0 8px 20px rgba(0,0,0,.35)}
.vid-play::after{content:"";position:absolute;left:31px;top:15px;border-style:solid;border-width:12px 0 12px 20px;border-color:transparent transparent transparent #fff}
/* topbar "Admissions open" pill: keep dark-blue text on hover (topbar a:hover was turning it white on white) */
.topbar .pill:hover,.topbar .pill:focus-visible{background:#fff;color:var(--navy)}
/* ---- Parent Reviews: video carousel (infinite, pauses on hover, click to play) ---- */
.rv-sec{padding:4.2rem 0 3.4rem;background:linear-gradient(180deg,#fff 0%,#EEF4FF 100%);overflow:hidden}
.rv-marquee{position:relative;margin-top:2rem;overflow:hidden;outline:none;-webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.rv-track{display:flex;gap:1.4rem;width:max-content;padding:.6rem 0 1.2rem;animation:rv-scroll var(--rv-dur,40s) linear infinite}
.rv-marquee:hover .rv-track,.rv-marquee:focus-within .rv-track,.rv-marquee.is-playing .rv-track{animation-play-state:paused}
@keyframes rv-scroll{from{transform:translateX(0)}to{transform:translateX(calc(-50% - .7rem))}}
.rv-card{flex:0 0 320px;background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 10px 28px rgba(11,31,74,.10);transition:transform .2s,box-shadow .2s}
.rv-card:hover{transform:translateY(-4px);box-shadow:0 16px 36px rgba(11,31,74,.16)}
.rv-thumb{position:relative;display:block;width:100%;aspect-ratio:16/9;padding:0;border:0;background:#0B1F4A;cursor:pointer;overflow:hidden}
.rv-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s}
.rv-card:hover .rv-thumb img{transform:scale(1.05)}
.rv-play{position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;background:rgba(215,20,31,.92);box-shadow:0 6px 18px rgba(0,0,0,.3);transition:transform .2s}
.rv-play::after{content:"";position:absolute;left:26px;top:20px;border-left:18px solid #fff;border-top:12px solid transparent;border-bottom:12px solid transparent}
.rv-thumb:hover .rv-play,.rv-thumb:focus-visible .rv-play{transform:scale(1.1)}
.rv-body{padding:.9rem 1.1rem 1.1rem}
.rv-body h3{font-size:1.02rem;margin:0 0 .25rem;line-height:1.35;color:var(--navy)}
.rv-body p{margin:0;font-size:.86rem;color:#5b6787}
.rv-hint{text-align:center;font-size:.8rem;color:#7a86a5;margin:.2rem 0 0}
.rv-modal{position:fixed;inset:0;z-index:200;background:rgba(6,14,36,.86);display:flex;align-items:center;justify-content:center;padding:1rem}
.rv-modal[hidden]{display:none}
.rv-frame{position:relative;width:min(960px,100%);aspect-ratio:16/9;background:#000;border-radius:16px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.rv-frame.short{width:auto;height:min(86vh,760px);aspect-ratio:9/16}
.rv-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.rv-close{position:absolute;top:1rem;right:1rem;width:44px;height:44px;border-radius:50%;border:0;background:#fff;color:var(--navy);font-size:1.2rem;font-weight:900;cursor:pointer}
@media (max-width:640px){.rv-card{flex-basis:260px}.rv-sec{padding:3.2rem 0 2.6rem}}
@media (prefers-reduced-motion:reduce){.rv-track{animation:none}.rv-marquee{overflow-x:auto}}
/* ---- Hero background media (video or photo, managed in Admin → Gallery → Hero background) ---- */
.hero.has-media,.page-hero.has-media{background:#0B2A66}
.hero-media{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.hero-media video,.hero-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.hero-media::after{content:"";position:absolute;inset:0}
.ov-light .hero-media::after{background:linear-gradient(110deg,rgba(6,30,80,.78) 0%,rgba(11,60,140,.50) 45%,rgba(11,77,168,.22) 100%)}
.ov-medium .hero-media::after{background:linear-gradient(110deg,rgba(6,30,80,.88) 0%,rgba(11,60,140,.66) 45%,rgba(11,77,168,.40) 100%)}
.ov-strong .hero-media::after{background:linear-gradient(110deg,rgba(6,30,80,.94) 0%,rgba(11,60,140,.84) 50%,rgba(11,77,168,.68) 100%)}
.page-hero.has-media .hero-media::after{background:linear-gradient(120deg,rgba(6,30,80,.90),rgba(11,60,140,.74) 60%,rgba(11,77,168,.52))}
.page-hero.ov-light .hero-media::after{background:linear-gradient(120deg,rgba(6,30,80,.80),rgba(11,60,140,.58) 60%,rgba(11,77,168,.32))}
.page-hero.ov-strong .hero-media::after{background:linear-gradient(120deg,rgba(6,30,80,.95),rgba(11,60,140,.86) 60%,rgba(11,77,168,.72))}
.page-hero>.wrap{position:relative;z-index:2}
.page-hero.has-media::after{z-index:1}
.hero.has-media h1,.hero.has-media p,.page-hero.has-media h1,.page-hero.has-media p{text-shadow:0 2px 14px rgba(0,0,0,.25)}
@media (max-width:768px){
  .ov-light .hero-media::after,.ov-medium .hero-media::after{background:linear-gradient(180deg,rgba(6,30,80,.80),rgba(11,60,140,.72))}
}
/* ---- Responsive polish (QA pass 28 Nov 2026) ---- */
/* tablets: a lone last card in a 2-column grid sits centred instead of hanging on the left */
@media (min-width:641px) and (max-width:980px){
  .grid3>:last-child:nth-child(odd),.tgrid>:last-child:nth-child(odd){grid-column:1/-1;justify-self:center;width:calc(50% - .75rem)}
}
@media (min-width:641px) and (max-width:980px){.split .tgrid>:last-child:nth-child(odd){grid-column:auto;width:auto}}
/* phones: bigger touch areas for phone numbers, e-mail and the landing-page call icon */
@media (max-width:768px){
  .ci a[href^="tel:"],.ci a[href^="mailto:"]{display:inline-block;padding:.45rem 0;min-height:40px;line-height:1.6}
  .site-footer a[href^="tel:"],.site-footer a[href^="mailto:"]{display:inline-block;padding:.35rem 0}
  .lp-call{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border-radius:50%;background:#EEF4FF;font-size:1.15rem}
}
@media (max-width:768px){.note a{display:inline-block;padding:.35rem 0}}
