/*
Theme Name: St. Benedict's School Shivpuri
Theme URI: https://stbenedictsschool.co.in/
Author: Vikram Singh Rawat
Author URI: https://itxperts.co.in/
Description: Version 2 - Premium responsive custom WordPress theme for St. Benedict's School Shivpuri. Developed by Vikram Singh Rawat, Itxperts.
Version: 2.0.0
License: GPL-2.0-or-later
Text Domain: st-benedicts
*/

:root{--navy:#061d46;--navy2:#0b2c61;--gold:#d9a21b;--gold2:#b9850b;--cream:#fbf8f1;--ink:#16223b;--muted:#687387;--line:#e6eaf0;--white:#fff;--shadow:0 20px 55px rgba(6,29,70,.12);--radius:16px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fff;line-height:1.65}body.admin-bar .site-header{top:32px}h1,h2,h3,h4,h5,h6{font-family:Georgia,"Times New Roman",serif;color:var(--navy);line-height:1.15}img{max-width:100%;height:auto}a{text-decoration:none;color:inherit}button,input,textarea,select{font:inherit}.container{width:min(1180px,92%);margin:auto}.section{padding:88px 0}.section-kicker{display:block;color:var(--gold2);font-size:.78rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;margin-bottom:10px}.section-title{font-size:clamp(2rem,4vw,3.15rem);margin:0 0 14px}.section-desc{max-width:720px;color:var(--muted)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:13px 21px;border-radius:8px;font-weight:750;border:1px solid transparent;transition:.25s;cursor:pointer}.btn-gold{background:var(--gold);color:#fff}.btn-gold:hover{background:var(--gold2);color:#fff;transform:translateY(-2px)}.btn-navy{background:var(--navy);color:#fff}.btn-navy:hover{background:var(--navy2);color:#fff;transform:translateY(-2px)}.btn-outline{border-color:rgba(255,255,255,.7);color:#fff}.btn-outline:hover{background:#fff;color:var(--navy)}
.topbar{background:var(--navy);color:#fff;font-size:12px}.topbar-inner{min-height:38px;display:flex;justify-content:space-between;align-items:center;gap:20px}.topbar-links{display:flex;gap:18px;align-items:center}.topbar a{opacity:.9}.topbar a:hover{opacity:1;color:#fff}
.site-header{position:relative;z-index:1000;background:#fff;box-shadow:0 3px 20px rgba(0,0,0,.05)}.header-inner{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:25px}.brand{display:flex;align-items:center;gap:12px}.brand img{width:62px;height:62px;object-fit:contain}.brand-mark{width:62px;height:62px;border-radius:12px;background:var(--navy);display:grid;place-items:center;color:var(--gold);font-weight:900;font-size:20px}.brand-title{font-family:Georgia,serif;color:var(--navy);font-size:25px;font-weight:700;line-height:1}.brand-sub{font-size:12px;letter-spacing:.1em;font-weight:850;color:var(--gold2);margin-top:4px}.main-nav{display:flex;align-items:center;gap:18px}.main-nav>ul,.main-nav ul{display:flex;list-style:none;margin:0;padding:0;align-items:center;gap:21px}.main-nav li{position:relative}.main-nav a{font-size:13.5px;font-weight:700;color:var(--navy)}.main-nav a:hover,.main-nav .current-menu-item>a,.main-nav .current-menu-ancestor>a{color:var(--gold2)}.main-nav .menu-item-has-children>a:after{content:"⌄";font-size:11px;margin-left:6px}.main-nav .sub-menu{display:none;position:absolute;top:100%;left:-12px;min-width:220px;background:#fff;border-radius:10px;padding:9px;box-shadow:var(--shadow);flex-direction:column;align-items:stretch;gap:0}.main-nav li:hover>.sub-menu{display:flex}.main-nav .sub-menu a{display:block;padding:9px 11px;border-radius:7px}.main-nav .sub-menu a:hover{background:#f6f7f9}.menu-toggle{display:none;border:0;background:transparent;color:var(--navy);font-size:28px}
.hero{position:relative;min-height:640px;display:flex;align-items:center;overflow:hidden;background:var(--navy)}.hero-bg{position:absolute;inset:0;background-position:center;background-size:cover}.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,17,43,.95) 0%,rgba(2,17,43,.75) 43%,rgba(2,17,43,.12) 100%)}.hero-content{position:relative;z-index:2;color:#fff;max-width:700px;padding:105px 0 150px}.hero h1{font-size:clamp(3rem,6vw,5.4rem);color:#fff;letter-spacing:-.035em;margin:0 0 20px}.hero h1 .gold{color:var(--gold)}.hero p{font-size:18px;max-width:620px;color:rgba(255,255,255,.9);margin:0 0 30px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.hero-scroll{position:absolute;bottom:32px;left:50%;transform:translateX(-50%);z-index:2;color:#fff;font-size:12px;opacity:.8}
.feature-strip{position:relative;z-index:5;margin:-60px auto 0;background:var(--navy);border-radius:15px;box-shadow:0 25px 55px rgba(0,0,0,.2);overflow:hidden}.features-grid{display:grid;grid-template-columns:repeat(4,1fr)}.feature{display:flex;gap:15px;padding:28px 23px;color:#fff;border-right:1px solid rgba(255,255,255,.15)}.feature:last-child{border-right:0}.feature-icon{color:var(--gold);font-size:27px;line-height:1}.feature h3{font-family:inherit;color:#fff;font-size:15px;margin:0 0 5px}.feature p{font-size:11.5px;line-height:1.5;color:rgba(255,255,255,.68);margin:0}
.welcome{padding-top:105px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:65px;align-items:center}.welcome-copy p{color:var(--muted);margin-bottom:25px}.collage{position:relative;display:grid;grid-template-columns:1.25fr .75fr;grid-template-rows:1fr 1fr;gap:12px}.collage-item{overflow:hidden;border-radius:15px;min-height:155px;background:#eee}.collage-item.main{grid-row:1/3}.collage-item img{width:100%;height:100%;object-fit:cover;display:block}.values-card{position:absolute;right:18px;bottom:18px;background:#fff;border:1px solid #e6d8ae;border-radius:12px;padding:18px 23px;box-shadow:var(--shadow);text-align:center}.values-card strong{display:block;font-family:Georgia,serif;color:var(--navy);font-size:17px}
.stats{padding:25px 0 70px}.stats-box{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:14px;overflow:hidden}.stat{text-align:center;padding:28px;border-right:1px solid var(--line)}.stat:last-child{border-right:0}.stat-number{font-family:Georgia,serif;font-size:38px;font-weight:700;color:var(--navy)}.stat-label{font-size:13px;color:var(--muted)}
.section-soft{background:var(--cream)}.dashboard{display:grid;grid-template-columns:1fr 1.4fr .95fr;gap:18px}.panel{background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden}.panel-body{padding:25px}.panel h3{font-size:24px;margin:0 0 12px}.campus-panel{position:relative;min-height:365px;background-size:cover;background-position:center}.campus-panel:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 30%,rgba(3,20,49,.93))}.campus-content{position:absolute;z-index:2;left:24px;right:24px;bottom:23px;color:#fff}.campus-content h3{color:#fff}.campus-content p{font-size:13px}.ann-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.ann-head a{font-size:12px;color:var(--gold2);font-weight:800}.announcement{display:flex;gap:14px;padding:15px 0;border-bottom:1px solid var(--line)}.announcement:last-child{border-bottom:0}.date-box{width:54px;min-width:54px;height:54px;border:1px solid var(--line);border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center}.date-box strong{font-family:inherit;font-size:18px;color:var(--navy)}.date-box span{font-size:9px;color:var(--muted);text-transform:uppercase}.announcement h4{font-family:inherit;font-size:14px;margin:0 0 3px}.announcement p{font-size:11.5px;color:var(--muted);line-height:1.45;margin:0}.quick-panel{background:var(--navy);color:#fff}.quick-panel h3{color:#fff}.quick-link{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.14);padding:12px 0;font-size:13px}.quick-link:last-child{border-bottom:0}.quick-link i{color:var(--gold)}
.newsletter{background:var(--navy2);color:#fff;padding:60px 0}.newsletter-inner{display:flex;justify-content:space-between;align-items:center;gap:30px}.newsletter h2{color:#fff;font-size:34px;margin:0 0 7px}.newsletter p{color:rgba(255,255,255,.72);margin:0}.newsletter-form{display:flex;gap:8px}.newsletter-form input{min-width:280px;padding:13px 15px;border:0;border-radius:7px;outline:none}
.admission{background:linear-gradient(90deg,var(--navy),#0e3674);color:#fff;padding:38px 0}.admission-inner{display:flex;align-items:center;justify-content:space-between;gap:25px}.admission h2{color:#fff;font-size:32px;margin:0 0 5px}.admission p{margin:0;color:rgba(255,255,255,.72)}
.site-footer{background:#041936;color:rgba(255,255,255,.75);padding:62px 0 20px}.footer-grid{display:grid;grid-template-columns:1.35fr .8fr 1.1fr .8fr;gap:45px}.site-footer h3{font-family:Georgia,serif;color:#fff;font-size:18px;margin:0 0 17px}.site-footer ul{list-style:none;padding:0;margin:0}.site-footer li{font-size:13px;margin-bottom:9px}.site-footer a:hover{color:#fff}.footer-brand p{font-size:13px}.socials{display:flex;gap:9px}.socials a{width:37px;height:37px;border-radius:50%;background:rgba(255,255,255,.1);display:grid;place-items:center}.copyright{border-top:1px solid rgba(255,255,255,.12);padding-top:18px;margin-top:40px;display:flex;justify-content:space-between;font-size:11px;gap:15px}
.archive-hero{background:var(--navy);padding:70px 0;color:#fff}.archive-hero h1{color:#fff;font-size:clamp(2.3rem,5vw,4rem);margin:0}.archive-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.content-card{border:1px solid var(--line);border-radius:15px;overflow:hidden;background:#fff}.content-card img{width:100%;height:220px;object-fit:cover}.content-card-body{padding:20px}.content-card h2{font-size:22px;margin:0 0 8px}.content-card p{color:var(--muted);font-size:13px}.meta{font-size:11px;color:var(--gold2);font-weight:800;text-transform:uppercase}
.pagination{display:flex;gap:8px;margin-top:35px}.pagination a,.pagination span{border:1px solid var(--line);padding:8px 12px;border-radius:7px}
.contact-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:30px}.contact-card{padding:25px;border:1px solid var(--line);border-radius:15px;background:#fff}.contact-item{display:flex;gap:14px;margin-bottom:18px}.contact-item i{color:var(--gold2);font-size:21px}.contact-form input,.contact-form textarea{width:100%;border:1px solid var(--line);border-radius:8px;padding:12px;margin-bottom:13px;outline:none}.contact-form textarea{min-height:150px;resize:vertical}
@media(max-width:1100px){.main-nav>ul,.main-nav ul{gap:12px}.dashboard{grid-template-columns:1fr 1fr}.quick-panel{grid-column:1/-1}.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:820px){body.admin-bar .site-header{top:46px}.topbar-links{display:none}.header-inner{min-height:76px}.brand img,.brand-mark{width:52px;height:52px}.brand-title{font-size:21px}.brand-sub{font-size:10px}.menu-toggle{display:block}.main-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;padding:10px 4%;box-shadow:0 15px 30px rgba(0,0,0,.12);align-items:stretch}.main-nav.is-open{display:block}.main-nav>ul,.main-nav ul{display:block}.main-nav li{border-bottom:1px solid var(--line)}.main-nav a{display:block;padding:11px 5px}.main-nav .sub-menu{position:static;box-shadow:none;min-width:0;padding:0 0 8px 12px}.main-nav li:hover>.sub-menu{display:none}.main-nav li.sub-open>.sub-menu{display:flex}.header-cta{display:none}.hero{min-height:590px}.hero-content{padding:90px 0 130px}.hero h1{font-size:clamp(2.7rem,11vw,4rem)}.hero p{font-size:16px}.features-grid{grid-template-columns:1fr 1fr}.feature{border-bottom:1px solid rgba(255,255,255,.15)}.two-col{grid-template-columns:1fr;gap:42px}.stats-box{grid-template-columns:1fr 1fr}.stat:nth-child(2){border-right:0}.stat{border-bottom:1px solid var(--line)}.dashboard{grid-template-columns:1fr}.quick-panel{grid-column:auto}.newsletter-inner,.admission-inner{flex-direction:column;align-items:flex-start}.archive-grid{grid-template-columns:1fr 1fr}.contact-grid{grid-template-columns:1fr}}
@media(max-width:540px){.container{width:90%}.section{padding:65px 0}.features-grid{grid-template-columns:1fr}.feature{border-right:0}.collage{grid-template-columns:1fr 1fr}.collage-item.main{grid-column:1/-1;grid-row:auto;height:270px}.values-card{position:static;margin-top:12px}.stats-box{grid-template-columns:1fr 1fr}.stat{padding:21px 9px}.stat-number{font-size:29px}.newsletter-form{width:100%;flex-direction:column}.newsletter-form input{min-width:0;width:100%}.archive-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr}.copyright{flex-direction:column}}

/* =========================================================
   V6 — ENQUIRY MODAL + SMOOTH UX
   ========================================================= */

body.stb-modal-open{overflow:hidden}

.stb-modal{
  position:fixed;
  inset:0;
  z-index:100000;
  display:grid;
  place-items:center;
  padding:20px;
  visibility:hidden;
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease,visibility .22s ease;
}
.stb-modal.is-open{visibility:visible;opacity:1;pointer-events:auto}
.stb-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,13,34,.72);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}
.stb-modal-dialog{
  position:relative;
  z-index:2;
  width:min(680px,100%);
  max-height:min(760px,calc(100dvh - 40px));
  overflow:auto;
  background:#fff;
  border-radius:22px;
  box-shadow:0 35px 90px rgba(0,0,0,.32);
  padding:34px;
  transform:translateY(20px) scale(.97);
  transition:transform .28s cubic-bezier(.2,.75,.25,1);
  overscroll-behavior:contain;
}
.stb-modal.is-open .stb-modal-dialog{transform:translateY(0) scale(1)}
.stb-modal-close{
  position:absolute;
  top:16px;
  right:16px;
  width:40px;
  height:40px;
  border:1px solid var(--line);
  border-radius:50%;
  background:#fff;
  color:var(--navy);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:.2s;
}
.stb-modal-close:hover{background:var(--navy);color:#fff;transform:rotate(90deg)}
.stb-modal-head{padding-right:45px;margin-bottom:22px}
.stb-modal-head h2{font-size:clamp(2.2rem,5vw,3.2rem);margin:0 0 9px}
.stb-modal-head p{color:var(--muted);font-size:14px;margin:0;max-width:62ch}
.stb-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.stb-enquiry-form label{display:block}
.stb-enquiry-form label>span{display:block;font-size:12px;font-weight:750;color:var(--navy);margin-bottom:7px}
.stb-enquiry-form input,.stb-enquiry-form select,.stb-enquiry-form textarea{
  width:100%;
  border:1px solid #dce1e9;
  border-radius:10px;
  background:#fbfcfe;
  color:var(--ink);
  padding:12px 13px;
  outline:none;
  transition:border-color .18s,box-shadow .18s,background .18s;
}
.stb-enquiry-form textarea{resize:vertical;min-height:108px}
.stb-enquiry-form input:focus,.stb-enquiry-form select:focus,.stb-enquiry-form textarea:focus{
  border-color:var(--gold);
  background:#fff;
  box-shadow:0 0 0 4px rgba(217,162,27,.12);
}
.stb-field-full{grid-column:1/-1}
.stb-form-actions{display:flex;align-items:center;gap:14px;margin-top:17px}
.stb-form-actions small{color:var(--muted);font-size:10px;line-height:1.45}
.stb-submit-btn{min-width:160px}
.stb-submit-loading{display:none}
.stb-submit-btn.is-loading .stb-submit-label{display:none}
.stb-submit-btn.is-loading .stb-submit-loading{display:inline}
.stb-submit-loading i{display:inline-block;animation:stbSpin .8s linear infinite}
.stb-form-status{min-height:20px;margin-top:12px;font-size:12px}
.stb-form-status.is-error{color:#a12727;background:#fff4f4;border-radius:8px;padding:9px 11px}
.stb-enquiry-success{text-align:center;padding:35px 10px 10px}
.stb-success-icon{
  width:68px;height:68px;border-radius:50%;
  margin:0 auto 18px;
  background:#eaf8ef;color:#23844a;
  display:grid;place-items:center;font-size:31px;
  animation:stbPop .4s cubic-bezier(.2,.8,.2,1);
}
.stb-enquiry-success h3{font-size:32px;margin:0 0 8px}
.stb-enquiry-success p{color:var(--muted);margin:0 auto 20px}
.stb-floating-enquiry{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:900;
  border:0;
  border-radius:999px;
  padding:12px 18px 12px 14px;
  background:var(--gold);
  color:#fff;
  box-shadow:0 12px 30px rgba(6,29,70,.22);
  display:flex;
  align-items:center;
  gap:9px;
  font-weight:800;
  cursor:pointer;
  transition:transform .2s,box-shadow .2s;
}
.stb-floating-enquiry i{font-size:18px}
.stb-floating-enquiry:hover{transform:translateY(-3px);box-shadow:0 16px 35px rgba(6,29,70,.28)}
@keyframes stbSpin{to{transform:rotate(360deg)}}
@keyframes stbPop{0%{transform:scale(.65);opacity:0}70%{transform:scale(1.08)}100%{transform:scale(1);opacity:1}}

@media(max-width:600px){
  .stb-modal{padding:10px}
  .stb-modal-dialog{padding:25px 18px 20px;border-radius:18px;max-height:calc(100dvh - 20px)}
  .stb-modal-head{padding-right:35px}
  .stb-modal-head h2{font-size:2.25rem}
  .stb-form-grid{grid-template-columns:1fr}
  .stb-field-full{grid-column:auto}
  .stb-form-actions{align-items:stretch;flex-direction:column}
  .stb-submit-btn{width:100%}
  .stb-floating-enquiry{right:12px;bottom:12px;padding:11px 14px}
}
@media(max-width:380px){
  .stb-floating-enquiry span{display:none}
  .stb-floating-enquiry{width:46px;height:46px;padding:0;justify-content:center}
}
@media(prefers-reduced-motion:reduce){
  .stb-modal,.stb-modal-dialog,.stb-modal-close,.stb-floating-enquiry,.stb-success-icon{transition:none!important;animation:none!important}
}

/* =========================================================
   V7 — COMPACT, STABLE HEADER + LOGO SYSTEM
   This block intentionally overrides older header rules.
   ========================================================= */
html,body{width:100%;max-width:100%;margin:0!important;padding:0!important;overflow-x:hidden}
body{min-width:0}

/* Compact top bar */
.topbar{
  height:38px!important;
  min-height:38px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
.topbar-inner{
  height:38px!important;
  min-height:38px!important;
  width:min(1180px,calc(100% - 40px))!important;
  margin:0 auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
}
.topbar-welcome{font-size:12px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar-links{display:flex!important;align-items:center;gap:15px;white-space:nowrap}
.topbar-links a{font-size:12px}

/* Compact desktop header */
.site-header{
  position:relative!important;
  top:auto!important;
  left:auto!important;
  width:100%!important;
  height:96px!important;
  min-height:96px!important;
  margin:0!important;
  padding:0!important;
  background:#fff!important;
  box-shadow:0 2px 18px rgba(6,29,70,.06)!important;
  z-index:1000!important;
}
.header-inner{
  position:relative!important;
  width:min(1180px,calc(100% - 40px))!important;
  height:96px!important;
  min-height:96px!important;
  margin:0 auto!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:24px!important;
}

/* The logo is explicitly constrained. */
.brand{
  height:96px!important;
  min-width:0!important;
  max-width:360px!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  flex:0 1 auto!important;
}
.site-logo-wrap,
.brand-mark{
  display:grid!important;
  place-items:center!important;
  width:72px!important;
  height:72px!important;
  min-width:72px!important;
  max-width:72px!important;
  flex:0 0 72px!important;
  overflow:hidden!important;
}
.site-logo-wrap .site-logo,
.site-logo{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
}
.brand-copy{
  min-width:0!important;
  max-width:220px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
}
.brand-title{
  display:block!important;
  font-size:30px!important;
  line-height:.95!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.brand-sub{
  display:block!important;
  margin-top:7px!important;
  font-size:11px!important;
  line-height:1!important;
  letter-spacing:.12em!important;
  white-space:nowrap!important;
}

/* Navigation gets only the space it actually needs. */
.main-nav{
  position:static!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex:1 1 auto!important;
  min-width:0!important;
  height:96px!important;
  margin:0!important;
  padding:0!important;
}
.main-nav-inner{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:20px!important;
  width:100%!important;
  min-width:0!important;
}
.main-nav>ul,
.main-nav-inner>ul,
.main-nav ul{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:18px!important;
  margin:0!important;
  padding:0!important;
  min-width:0!important;
}
.main-nav li{min-width:0!important}
.main-nav a{
  font-size:14px!important;
  line-height:1.2!important;
  white-space:nowrap!important;
}
.main-nav .header-cta{
  display:inline-flex!important;
  flex:0 0 auto!important;
  padding:12px 18px!important;
  white-space:nowrap!important;
}
.menu-toggle{display:none!important}

/* Medium desktop: shrink rather than stretch. */
@media(max-width:1180px){
  .header-inner,.topbar-inner{width:calc(100% - 32px)!important}
  .brand{max-width:315px!important}
  .site-logo-wrap,.brand-mark{width:62px!important;height:62px!important;min-width:62px!important;max-width:62px!important;flex-basis:62px!important}
  .brand-title{font-size:26px!important}
  .main-nav-inner{gap:12px!important}
  .main-nav>ul,.main-nav-inner>ul,.main-nav ul{gap:12px!important}
  .main-nav a{font-size:12.5px!important}
}

/* Tablet / mobile: clean compact header and real drawer. */
@media(max-width:900px){
  .site-header{
    height:68px!important;
    min-height:68px!important;
  }
  .header-inner{
    width:calc(100% - 28px)!important;
    height:68px!important;
    min-height:68px!important;
  }
  .brand{
    height:68px!important;
    max-width:calc(100% - 58px)!important;
    flex:1 1 auto!important;
  }
  .site-logo-wrap,.brand-mark{
    width:48px!important;height:48px!important;
    min-width:48px!important;max-width:48px!important;flex-basis:48px!important;
  }
  .brand-title{font-size:22px!important}
  .brand-sub{font-size:9px!important;margin-top:4px!important}
  .menu-toggle{
    display:flex!important;
    width:44px!important;height:44px!important;
    min-width:44px!important;max-width:44px!important;
    flex:0 0 44px!important;
    align-items:center!important;justify-content:center!important;
    border:0!important;background:transparent!important;
  }

  .main-nav{
    position:fixed!important;
    left:0!important;
    right:0!important;
    top:106px!important; /* 38px topbar + 68px header */
    width:100%!important;
    height:auto!important;
    max-height:0!important;
    overflow:hidden!important;
    display:block!important;
    visibility:hidden!important;
    opacity:0!important;
    transform:translateY(-6px)!important;
    background:#fff!important;
    box-shadow:0 18px 35px rgba(0,0,0,.15)!important;
    transition:max-height .25s ease,opacity .2s ease,transform .2s ease,visibility .2s ease!important;
    z-index:99999!important;
    padding:0 16px!important;
    margin:0!important;
  }
  .main-nav.is-open{
    max-height:calc(100dvh - 106px)!important;
    overflow-y:auto!important;
    visibility:visible!important;
    opacity:1!important;
    transform:translateY(0)!important;
  }
  .main-nav-inner{
    display:block!important;
    width:100%!important;
    padding:8px 0 14px!important;
  }
  .main-nav>ul,.main-nav-inner>ul,.main-nav ul{
    display:block!important;
    width:100%!important;
    padding:0!important;
    margin:0!important;
  }
  .main-nav li{
    display:block!important;
    width:100%!important;
    border-bottom:1px solid var(--line)!important;
  }
  .main-nav a{
    display:block!important;
    width:100%!important;
    padding:12px 5px!important;
    font-size:15px!important;
    white-space:normal!important;
  }
  .main-nav .sub-menu{
    display:none!important;
    position:static!important;
    width:100%!important;
    padding:0 0 7px 14px!important;
    margin:0!important;
    box-shadow:none!important;
  }
  .main-nav li.sub-open>.sub-menu{display:block!important}
  .main-nav li:hover>.sub-menu{display:none!important}
  .main-nav li.sub-open:hover>.sub-menu{display:block!important}
  .main-nav .header-cta{
    display:flex!important;
    width:100%!important;
    margin:10px 0 0!important;
    justify-content:center!important;
  }
}

/* Phones */
@media(max-width:600px){
  .topbar{height:34px!important;min-height:34px!important}
  .topbar-inner{height:34px!important;min-height:34px!important;width:calc(100% - 24px)!important}
  .topbar-welcome{font-size:10px!important}
  .topbar-links{display:none!important}

  .site-header{height:66px!important;min-height:66px!important}
  .header-inner{height:66px!important;min-height:66px!important;width:calc(100% - 24px)!important}
  .brand{height:66px!important}
  .site-logo-wrap,.brand-mark{
    width:44px!important;height:44px!important;
    min-width:44px!important;max-width:44px!important;flex-basis:44px!important;
  }
  .brand-title{font-size:20px!important}
  .brand-sub{font-size:8px!important;letter-spacing:.09em!important}
  .menu-toggle{width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important;flex-basis:42px!important}
  .main-nav{top:100px!important}
  .main-nav.is-open{max-height:calc(100dvh - 100px)!important}
}

/* Admin bar: account for WordPress toolbar without changing normal layout. */
@media(max-width:782px){
  body.admin-bar .main-nav{top:146px!important}
  body.admin-bar .main-nav.is-open{max-height:calc(100dvh - 146px)!important}
}
@media(max-width:600px){
  body.admin-bar .main-nav{top:146px!important}
  body.admin-bar .main-nav.is-open{max-height:calc(100dvh - 146px)!important}
}

/* Modal must always sit above navigation and stay compact. */
.stb-modal{z-index:200000!important}
.stb-modal-dialog{width:min(640px,calc(100vw - 28px))!important}
@media(max-width:600px){
  .stb-modal{padding:8px!important}
  .stb-modal-dialog{width:100%!important;max-height:calc(100dvh - 16px)!important;padding:22px 16px 18px!important}
}

/* =========================================================
   V8 — SMOOTH PAGE ANIMATIONS
   ========================================================= */
.stb-reveal{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .65s ease,transform .65s cubic-bezier(.2,.75,.25,1);
}
.stb-reveal.stb-visible{opacity:1;transform:none}
.hero-content{animation:stbHeroIn .85s cubic-bezier(.2,.75,.25,1) both}
.feature:nth-child(2),.stat:nth-child(2){transition-delay:.06s}
.feature:nth-child(3),.stat:nth-child(3){transition-delay:.12s}
.feature:nth-child(4),.stat:nth-child(4){transition-delay:.18s}
@keyframes stbHeroIn{
  from{opacity:0;transform:translateY(24px)}
  to{opacity:1;transform:none}
}

/* Enquiry modal */
body.stb-modal-open{overflow:hidden}
.stb-modal{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:20px;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .22s ease,visibility .22s ease}
.stb-modal.is-open{visibility:visible;opacity:1;pointer-events:auto}
.stb-modal-backdrop{position:absolute;inset:0;background:rgba(2,13,34,.72);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.stb-modal-dialog{position:relative;z-index:2;width:min(680px,100%);max-height:min(760px,calc(100dvh - 40px));overflow:auto;background:#fff;border-radius:22px;box-shadow:0 35px 90px rgba(0,0,0,.32);padding:34px;transform:translateY(20px) scale(.97);transition:transform .28s cubic-bezier(.2,.75,.25,1);overscroll-behavior:contain}
.stb-modal.is-open .stb-modal-dialog{transform:none}
.stb-modal-close{position:absolute;top:16px;right:16px;width:40px;height:40px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--navy);display:grid;place-items:center;cursor:pointer;transition:.2s}
.stb-modal-close:hover{background:var(--navy);color:#fff;transform:rotate(90deg)}
.stb-modal-head{padding-right:45px;margin-bottom:22px}
.stb-modal-head h2{font-size:clamp(2.2rem,5vw,3.2rem);margin:0 0 9px}
.stb-modal-head p{color:var(--muted);font-size:14px;margin:0;max-width:62ch}
.stb-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.stb-enquiry-form label{display:block}
.stb-enquiry-form label>span{display:block;font-size:12px;font-weight:750;color:var(--navy);margin-bottom:7px}
.stb-enquiry-form input,.stb-enquiry-form select,.stb-enquiry-form textarea{width:100%;border:1px solid #dce1e9;border-radius:10px;background:#fbfcfe;color:var(--ink);padding:12px 13px;outline:none;transition:border-color .18s,box-shadow .18s,background .18s}
.stb-enquiry-form input:focus,.stb-enquiry-form select:focus,.stb-enquiry-form textarea:focus{border-color:var(--gold);background:#fff;box-shadow:0 0 0 4px rgba(217,162,27,.12)}
.stb-enquiry-form textarea{resize:vertical;min-height:108px}
.stb-field-full{grid-column:1/-1}
.stb-form-actions{display:flex;align-items:center;gap:14px;margin-top:17px}
.stb-form-actions small{color:var(--muted);font-size:10px;line-height:1.45}
.stb-submit-btn{min-width:160px}
.stb-submit-loading{display:none}
.stb-submit-btn.is-loading .stb-submit-label{display:none}
.stb-submit-btn.is-loading .stb-submit-loading{display:inline}
.stb-submit-loading i{display:inline-block;animation:stbSpin .8s linear infinite}
.stb-form-status{min-height:20px;margin-top:12px;font-size:12px}
.stb-form-status.is-error{color:#a12727;background:#fff4f4;border-radius:8px;padding:9px 11px}
.stb-enquiry-success{text-align:center;padding:35px 10px 10px}
.stb-success-icon{width:68px;height:68px;border-radius:50%;margin:0 auto 18px;background:#eaf8ef;color:#23844a;display:grid;place-items:center;font-size:31px;animation:stbPop .4s cubic-bezier(.2,.8,.2,1)}
.stb-enquiry-success h3{font-size:32px;margin:0 0 8px}
.stb-enquiry-success p{color:var(--muted);margin:0 auto 20px}
.stb-floating-enquiry{position:fixed;right:22px;bottom:22px;z-index:900;border:0;border-radius:999px;padding:12px 18px 12px 14px;background:var(--gold);color:#fff;box-shadow:0 12px 30px rgba(6,29,70,.22);display:flex;align-items:center;gap:9px;font-weight:800;cursor:pointer;transition:transform .2s,box-shadow .2s}
.stb-floating-enquiry:hover{transform:translateY(-3px);box-shadow:0 16px 35px rgba(6,29,70,.28)}
@keyframes stbSpin{to{transform:rotate(360deg)}}
@keyframes stbPop{0%{transform:scale(.65);opacity:0}70%{transform:scale(1.08)}100%{transform:scale(1);opacity:1}}

/* Custom login page */
.stb-login-main{min-height:calc(100vh - 126px);background:linear-gradient(135deg,#f8f6ef,#fff);display:grid;place-items:center;padding:55px 20px}
.stb-login-page-wrap{width:min(980px,100%);display:grid;grid-template-columns:1fr 1fr;background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 30px 90px rgba(6,29,70,.16)}
.stb-login-visual{position:relative;min-height:560px;background:linear-gradient(145deg,#061d46,#0b2c61);color:#fff;overflow:hidden;padding:55px}
.stb-login-visual-content{position:relative;z-index:2;margin-top:90px}
.stb-login-mini{font-size:11px;letter-spacing:.14em;color:#e8b429;font-weight:800}
.stb-login-visual h1{font-size:clamp(4rem,7vw,6rem);color:#fff;margin:20px 0 12px;line-height:.85}
.stb-login-visual h1 span{color:#e0aa20}
.stb-login-visual p{color:rgba(255,255,255,.72);max-width:32ch}
.stb-login-orb{position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.12)}
.stb-orb-one{width:420px;height:420px;right:-180px;top:-120px}
.stb-orb-two{width:280px;height:280px;left:-160px;bottom:-110px}
.stb-login-card{padding:50px 45px;align-self:center}
.stb-login-brand{display:flex;align-items:center;gap:10px;margin-bottom:28px}
.stb-login-brand .site-logo-wrap,.stb-login-brand .brand-mark{width:52px!important;height:52px!important;min-width:52px!important;flex-basis:52px!important}
.stb-login-brand strong{display:block;font-family:var(--font-heading);font-size:26px;color:var(--navy);line-height:1}
.stb-login-brand small{display:block;color:var(--gold2);font-weight:800;letter-spacing:.1em;font-size:9px;margin-top:4px}
.stb-login-card h2{font-size:35px;margin:0 0 8px}
.stb-login-intro{font-size:13px;color:var(--muted);margin-bottom:22px}
.stb-login-card form p{margin:0 0 15px}
.stb-login-card form label{display:block;font-size:12px;font-weight:750;color:var(--navy);margin-bottom:6px}
.stb-login-card form input[type=text],.stb-login-card form input[type=password]{width:100%;border:1px solid #dce1e9;border-radius:9px;padding:12px;outline:none;background:#fbfcfe}
.stb-login-card form input:focus{border-color:var(--gold);box-shadow:0 0 0 4px rgba(217,162,27,.12);background:#fff}
.stb-login-card .login-remember{display:flex;align-items:center;gap:7px;font-size:12px}
.stb-login-card .login-remember input{width:auto}
.stb-login-card .login-submit{margin-top:15px}
.stb-login-card .login-submit input{width:100%;border:0;border-radius:9px;background:var(--gold);color:#fff;padding:13px;font-weight:800;cursor:pointer}
.stb-login-help{margin-top:17px;padding:11px;border-radius:8px;background:#f7f8fa;color:var(--muted);font-size:10px}
.stb-login-error{padding:10px;border-radius:8px;background:#fff2f2;color:#a12727;font-size:12px;margin-bottom:14px}
.stb-back-home{display:block;margin-top:18px;text-align:center;color:var(--navy);font-size:12px;font-weight:700}
.stb-login-actions{display:flex;gap:10px;justify-content:center;margin-top:20px}
.stb-login-icon{width:65px;height:65px;border-radius:50%;background:#eef4ff;color:var(--navy);display:grid;place-items:center;font-size:28px;margin:0 auto 18px}
.stb-login-logged{text-align:center;max-width:560px;margin:auto}
@media(max-width:760px){
 .stb-login-main{padding:25px 12px;min-height:calc(100vh - 100px)}
 .stb-login-page-wrap{grid-template-columns:1fr;border-radius:18px}
 .stb-login-visual{min-height:230px;padding:28px}
 .stb-login-visual-content{margin-top:20px}
 .stb-login-visual h1{font-size:3.6rem}
 .stb-login-card{padding:32px 22px}
 .stb-login-brand{margin-bottom:22px}
 .stb-form-grid{grid-template-columns:1fr}
 .stb-field-full{grid-column:auto}
}
@media(max-width:600px){
 .stb-modal{padding:10px}
 .stb-modal-dialog{padding:25px 18px 20px;border-radius:18px;max-height:calc(100dvh - 20px)}
 .stb-form-actions{align-items:stretch;flex-direction:column}
 .stb-submit-btn{width:100%}
 .stb-floating-enquiry{right:12px;bottom:12px;padding:11px 14px}
}
@media(max-width:380px){.stb-floating-enquiry span{display:none}.stb-floating-enquiry{width:46px;height:46px;padding:0;justify-content:center}}
@media(prefers-reduced-motion:reduce){
 .stb-reveal,.stb-modal,.stb-modal-dialog,.stb-modal-close,.stb-floating-enquiry,.stb-success-icon,.hero-content{transition:none!important;animation:none!important}
 .stb-reveal{opacity:1!important;transform:none!important}
}

/* =========================================================
   V9 — PRINCIPAL MESSAGE + YOUTUBE VIDEO + HERO CTA
   ========================================================= */

/* Hero enquiry CTA: strong contrast against the navy hero. */
.hero .js-enquiry-open.btn,
.hero-actions .js-enquiry-open{
  background:#ffffff!important;
  color:#061d46!important;
  border:2px solid #ffffff!important;
  box-shadow:0 10px 24px rgba(0,0,0,.14);
  font-weight:800;
}
.hero .js-enquiry-open.btn:hover,
.hero-actions .js-enquiry-open:hover{
  background:#d9a21b!important;
  color:#061d46!important;
  border-color:#d9a21b!important;
  transform:translateY(-2px);
}

/* Discover Our School */
.stb-discover-grid{align-items:center}
.stb-video-wrap{min-width:0}
.stb-video-frame{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:20px;
  background:#061d46;
  box-shadow:0 22px 55px rgba(6,29,70,.16);
}
.stb-video-frame iframe{
  position:absolute!important;
  inset:0;
  width:100%!important;
  height:100%!important;
  border:0!important;
}
.stb-video-placeholder{
  min-height:360px;
  border-radius:20px;
  background:linear-gradient(135deg,#061d46,#0b2c61);
  color:#fff;
  display:grid;
  place-items:center;
  align-content:center;
  text-align:center;
  padding:30px;
}
.stb-video-placeholder i{font-size:58px;color:#e0aa20;margin-bottom:12px}
.stb-video-placeholder h3{color:#fff;margin:0 0 7px;font-size:30px}
.stb-video-placeholder p{color:rgba(255,255,255,.72);max-width:42ch;margin:0}
.stb-discover-copy p{color:var(--muted);max-width:55ch}

/* Principal message */
.stb-principal-section{background:#f8f6ef}
.stb-principal-card{
  display:grid;
  grid-template-columns:300px 1fr;
  align-items:center;
  gap:48px;
  width:min(100%,1000px);
  margin:auto;
  padding:42px;
  background:#fff;
  border-radius:22px;
  box-shadow:0 20px 55px rgba(6,29,70,.10);
}
.stb-principal-photo{
  width:240px;
  height:280px;
  margin:auto;
  border-radius:18px;
  overflow:hidden;
  background:#eef2f7;
}
.stb-principal-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.stb-principal-placeholder{
  width:100%;height:100%;
  display:grid;place-items:center;
  color:#aab3c0;font-size:70px;
}
.stb-principal-content{min-width:0}
.stb-principal-content .section-title{margin-bottom:15px}
.stb-principal-content p{
  color:var(--muted);
  font-size:16px;
  line-height:1.8;
  max-width:65ch;
}
.stb-principal-quote{
  color:var(--gold);
  font-size:28px;
  height:25px;
}
.stb-principal-signature{
  display:inline-block;
  margin-top:14px;
  padding-top:10px;
  border-top:1px solid var(--line);
  color:var(--navy);
  font-weight:800;
  font-size:13px;
}
@media(max-width:760px){
  .stb-principal-card{
    grid-template-columns:1fr;
    gap:25px;
    padding:25px 20px;
  }
  .stb-principal-photo{width:190px;height:220px}
  .stb-principal-content{text-align:left}
  .stb-video-placeholder{min-height:250px}
}

/* =========================================================
   V12 — ANNOUNCEMENT LINKS + COMPACT NAV
   ========================================================= */

/* Announcement titles are real links, not decorative text. */
.stb-announcement-link{
  color:inherit!important;
  text-decoration:none!important;
  transition:color .18s ease;
}
.stb-announcement-link:hover{
  color:var(--gold)!important;
}

/* Compact desktop navigation */
:root{
  --topbar-h:34px;
  --header-h:72px;
}
.site-header{
  height:var(--header-h)!important;
  min-height:var(--header-h)!important;
}
.header-inner{
  height:var(--header-h)!important;
  min-height:var(--header-h)!important;
}
.site-logo-wrap,.brand-mark{
  width:54px!important;
  height:54px!important;
  min-width:54px!important;
  max-width:54px!important;
  flex-basis:54px!important;
}
.brand-title{font-size:clamp(1.35rem,2vw,1.75rem)}
.brand-sub{font-size:9px;margin-top:2px}
.main-nav{gap:12px}
.main-nav>ul,.main-nav ul{gap:10px}
.main-nav a{font-size:12px;padding-top:6px;padding-bottom:6px}
.header-cta{padding:10px 15px!important}

/* Keep mobile dimensions intentionally compact and consistent. */
@media(max-width:900px){
  :root{
    --topbar-h:34px;
    --mobile-header-h:62px;
  }
  .site-header{
    height:var(--mobile-header-h)!important;
    min-height:var(--mobile-header-h)!important;
  }
  .header-inner{
    height:var(--mobile-header-h)!important;
    min-height:var(--mobile-header-h)!important;
  }
  .site-logo-wrap,.brand-mark{
    width:44px!important;height:44px!important;
    min-width:44px!important;max-width:44px!important;flex-basis:44px!important;
  }
  .main-nav{
    top:calc(var(--topbar-h) + var(--mobile-header-h))!important;
  }
}
@media(max-width:600px){
  .site-header{height:60px!important;min-height:60px!important}
  .header-inner{height:60px!important;min-height:60px!important}
  .main-nav{top:94px!important}
  .brand-title{font-size:1.2rem}
  .brand-sub{font-size:7px}
  .site-logo-wrap,.brand-mark{
    width:42px!important;height:42px!important;
    min-width:42px!important;max-width:42px!important;flex-basis:42px!important;
  }
}

/* V13 — Dynamic Discover Our School section */
.stb-discover-section .stb-video-wrap{min-width:0}
.stb-discover-section .stb-video-frame{
  position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;
  border-radius:20px;background:#061d46;box-shadow:0 22px 55px rgba(6,29,70,.16);
}
.stb-discover-section .stb-video-frame iframe{
  position:absolute!important;inset:0;width:100%!important;height:100%!important;border:0!important;
}
.stb-discover-section .stb-video-placeholder{
  min-height:360px;border-radius:20px;background:linear-gradient(135deg,#061d46,#0b2c61);
  color:#fff;display:grid;place-items:center;align-content:center;text-align:center;padding:30px;
}
.stb-discover-section .stb-video-placeholder i{font-size:58px;color:#e0aa20;margin-bottom:12px}
.stb-discover-section .stb-video-placeholder h3{color:#fff;margin:0 0 7px;font-size:30px}
.stb-discover-section .stb-video-placeholder p{color:rgba(255,255,255,.72);max-width:42ch;margin:0}
@media(max-width:760px){
  .stb-discover-section .stb-video-placeholder{min-height:250px}
}

/* =========================================================
   V14 — HERO VIDEO LINK + PRINCIPAL MESSAGE REDESIGN
   ========================================================= */

/* Hero Watch Video becomes a real same-page section link. */
.hero a[href="#discover-school"]{
  cursor:pointer;
}

/* Make the anchor target land comfortably below the compact header. */
#discover-school{
  scroll-margin-top:90px;
}

/* Principal's Message — cleaner editorial layout */
.stb-principal-section{
  background:#f7f5ef!important;
  position:relative;
  overflow:hidden;
}
.stb-principal-section:before{
  content:"";
  position:absolute;
  width:360px;height:360px;
  border-radius:50%;
  background:rgba(217,162,27,.08);
  top:-180px;right:-120px;
  pointer-events:none;
}
.stb-principal-heading{
  position:relative;
  z-index:1;
  text-align:center;
  max-width:720px;
  margin:0 auto 30px;
}
.stb-principal-heading .section-title{
  margin:5px 0 0;
}
.stb-principal-heading .section-title span{
  color:var(--gold);
}
.stb-principal-card{
  position:relative;
  z-index:1;
  width:min(100%,1040px)!important;
  margin:auto;
  display:grid!important;
  grid-template-columns:270px minmax(0,1fr)!important;
  gap:42px!important;
  align-items:center!important;
  padding:34px 40px!important;
  background:#fff!important;
  border:1px solid rgba(6,29,70,.07);
  border-radius:24px!important;
  box-shadow:0 20px 55px rgba(6,29,70,.09)!important;
}
.stb-principal-photo-col{
  display:flex;
  flex-direction:column;
  align-items:center;
  min-width:0;
}
.stb-principal-photo{
  width:190px!important;
  height:225px!important;
  border-radius:16px!important;
  overflow:hidden;
  background:#eef2f7;
  box-shadow:0 12px 30px rgba(6,29,70,.12);
  border:5px solid #fff;
  outline:1px solid rgba(6,29,70,.08);
}
.stb-principal-photo img{
  display:block;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.stb-principal-placeholder{
  width:100%;height:100%;
  display:grid;place-items:center;
  color:#aab3c0;font-size:58px;
}
.stb-principal-name{
  text-align:center;
  margin-top:13px;
  max-width:220px;
  line-height:1.35;
}
.stb-principal-name strong{
  color:var(--navy);
  font-size:12px;
  font-weight:800;
}
.stb-principal-content{
  position:relative;
  min-width:0;
  padding:6px 0 4px;
}
.stb-principal-quote-mark{
  font-family:Georgia,serif;
  font-size:76px;
  line-height:.65;
  color:var(--gold);
  height:45px;
  opacity:.95;
}
.stb-principal-content p{
  margin:0!important;
  color:#4d5868!important;
  font-size:16px!important;
  line-height:1.85!important;
  max-width:68ch;
}
.stb-principal-rule{
  width:58px;
  height:3px;
  margin:22px 0 10px;
  border-radius:5px;
  background:var(--gold);
}
.stb-principal-note{
  font-size:11px;
  color:#7b8490;
  font-weight:600;
}

/* Slight reveal so the section enters smoothly. */
.stb-principal-heading,
.stb-principal-card{
  transition:transform .7s cubic-bezier(.2,.75,.25,1),opacity .7s ease;
}

@media(max-width:760px){
  #discover-school{scroll-margin-top:75px}
  .stb-principal-heading{
    text-align:left;
    margin-bottom:22px;
  }
  .stb-principal-card{
    grid-template-columns:1fr!important;
    gap:22px!important;
    padding:26px 20px!important;
  }
  .stb-principal-photo{
    width:165px!important;
    height:200px!important;
  }
  .stb-principal-content{
    text-align:left;
  }
  .stb-principal-quote-mark{
    font-size:64px;
    height:38px;
  }
  .stb-principal-content p{
    font-size:14px!important;
    line-height:1.7!important;
  }
}

/* =========================================================
   V15 — TRANSFER CERTIFICATES
   ========================================================= */
.stb-tc-main{min-height:55vh}
.stb-tc-page{padding:65px 0 80px;background:#f8f6ef}
.stb-tc-hero{text-align:center;max-width:760px;margin:0 auto 35px}
.stb-tc-hero h1{font-size:clamp(2.5rem,5vw,4.2rem);margin:4px 0 8px}
.stb-tc-hero p{color:var(--muted);margin:0 auto 22px}
.stb-tc-search{
  width:min(680px,100%);
  margin:auto;
  display:flex;
  gap:10px;
  padding:8px;
  background:#fff;
  border:1px solid rgba(6,29,70,.08);
  border-radius:13px;
  box-shadow:0 10px 30px rgba(6,29,70,.07);
}
.stb-tc-search input{
  flex:1;
  min-width:0;
  border:0;
  outline:0;
  padding:11px 12px;
  background:transparent;
}
.stb-tc-table-wrap{
  width:min(1100px,100%);
  margin:auto;
}
.stb-tc-table{
  background:#fff;
  border:1px solid rgba(6,29,70,.08);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 15px 45px rgba(6,29,70,.07);
}
.stb-tc-row{
  display:grid;
  grid-template-columns:1.7fr 1fr .8fr 1fr 1fr;
  gap:15px;
  align-items:center;
  padding:16px 20px;
  border-top:1px solid #edf0f4;
  color:#4d5868;
  font-size:13px;
}
.stb-tc-row:first-child{border-top:0}
.stb-tc-head{
  background:#061d46;
  color:#fff;
  font-weight:800;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.stb-tc-view{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--navy);
  font-weight:800;
  text-decoration:none;
}
.stb-tc-view:hover{color:var(--gold)}
.stb-tc-empty{
  text-align:center;
  background:#fff;
  border-radius:18px;
  padding:55px 20px;
  box-shadow:0 15px 45px rgba(6,29,70,.07);
}
.stb-tc-empty i{font-size:45px;color:#c4cad2}
.stb-tc-empty h3{margin:12px 0 5px}
.stb-tc-empty p{color:var(--muted);margin:0}
@media(max-width:760px){
  .stb-tc-page{padding:45px 0 60px}
  .stb-tc-search{flex-wrap:wrap}
  .stb-tc-search input{flex-basis:100%}
  .stb-tc-search .btn{flex:1}
  .stb-tc-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px 15px;
    padding:17px;
  }
  .stb-tc-head{display:none}
  .stb-tc-row>span{display:flex;flex-direction:column;gap:3px}
  .stb-tc-row>span:before{
    content:attr(data-label);
    font-size:9px;
    text-transform:uppercase;
    letter-spacing:.06em;
    font-weight:800;
    color:#8b929c;
  }
  .stb-tc-row>span:last-child{grid-column:1/-1}
}

/* =========================================================
   V16 — CONTACT US + TC CLASS SELECT
   ========================================================= */
.stb-contact-page{background:#f8f6ef;min-height:60vh}
.stb-contact-hero{
  padding:72px 0 62px;
  background:linear-gradient(135deg,#061d46,#0b2c61);
  color:#fff;
  text-align:center;
}
.stb-contact-hero h1{
  color:#fff;
  font-size:clamp(2.8rem,6vw,5rem);
  line-height:.98;
  margin:6px auto 14px;
  max-width:850px;
}
.stb-contact-hero p{
  color:rgba(255,255,255,.74);
  max-width:650px;
  margin:auto;
  font-size:15px;
  line-height:1.7;
}
.stb-contact-body{padding:55px 0 80px}
.stb-contact-grid{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:24px;
  align-items:stretch;
}
.stb-contact-card,
.stb-contact-map-card{
  background:#fff;
  border:1px solid rgba(6,29,70,.07);
  border-radius:22px;
  box-shadow:0 20px 55px rgba(6,29,70,.08);
}
.stb-contact-details{padding:38px}
.stb-contact-details h2{
  font-size:clamp(2.1rem,4vw,3.3rem);
  margin:5px 0 8px;
}
.stb-contact-intro{color:var(--muted);font-size:14px;line-height:1.7;margin-bottom:25px}
.stb-contact-item{
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:15px 0;
  border-top:1px solid #edf0f4;
}
.stb-contact-icon{
  flex:0 0 40px;width:40px;height:40px;
  border-radius:11px;
  display:grid;place-items:center;
  background:#f7f1df;color:var(--gold);
  font-size:18px;
}
.stb-contact-item strong{display:block;color:var(--navy);font-size:12px;margin-bottom:4px}
.stb-contact-item p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}
.stb-contact-item a{color:inherit;text-decoration:none}
.stb-contact-item a:hover{color:var(--gold)}
.stb-contact-details .btn{margin-top:18px}
.stb-contact-map-card{overflow:hidden;min-height:100%}
.stb-contact-map{
  width:100%;height:100%;min-height:510px;
}
.stb-contact-map iframe{
  width:100%!important;height:100%!important;min-height:510px;border:0!important;display:block;
}
.stb-contact-map-placeholder{
  min-height:510px;height:100%;
  display:grid;place-items:center;align-content:center;text-align:center;
  padding:30px;background:linear-gradient(135deg,#061d46,#0b2c61);color:#fff;
}
.stb-contact-map-placeholder i{font-size:55px;color:#e0aa20}
.stb-contact-map-placeholder h3{color:#fff;margin:10px 0 7px}
.stb-contact-map-placeholder p{color:rgba(255,255,255,.7);max-width:38ch;margin:0;line-height:1.6}
@media(max-width:800px){
  .stb-contact-hero{padding:55px 0 45px}
  .stb-contact-body{padding:35px 0 55px}
  .stb-contact-grid{grid-template-columns:1fr}
  .stb-contact-details{padding:28px 22px}
  .stb-contact-map,.stb-contact-map iframe,.stb-contact-map-placeholder{min-height:360px}
}

/* =========================================================
   V17 — CAREERS MODULE
   ========================================================= */
.stb-careers-page{background:#f8f6ef}
.stb-careers-hero{
  padding:75px 0 70px;
  background:linear-gradient(135deg,#061d46,#0b2c61);
  color:#fff;text-align:center;
}
.stb-careers-hero h1{color:#fff;font-size:clamp(3rem,6vw,5.2rem);line-height:.94;margin:7px auto 15px}
.stb-careers-hero h1 span{color:#e0aa20}
.stb-careers-hero p{color:rgba(255,255,255,.75);max-width:620px;margin:auto;line-height:1.7}
.stb-careers-body{padding:65px 0 85px}
.stb-careers-intro{text-align:center;max-width:700px;margin:0 auto 35px}
.stb-careers-intro p{color:var(--muted);line-height:1.7}
.stb-job-list{display:grid;gap:18px;max-width:1050px;margin:auto}
.stb-job-card{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:30px;
  padding:28px 30px;background:#fff;border:1px solid rgba(6,29,70,.07);
  border-radius:20px;box-shadow:0 16px 45px rgba(6,29,70,.07);
  transition:transform .25s,box-shadow .25s;
}
.stb-job-card:hover{transform:translateY(-3px);box-shadow:0 22px 55px rgba(6,29,70,.11)}
.stb-job-badge{
  display:inline-block;background:#edf7ef;color:#287c45;padding:5px 9px;border-radius:999px;
  font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;
}
.stb-job-card h3{font-size:28px;margin:10px 0 10px;color:var(--navy)}
.stb-job-meta{display:flex;flex-wrap:wrap;gap:10px 18px;color:#7a8390;font-size:11px}
.stb-job-meta span{display:inline-flex;align-items:center;gap:5px}
.stb-job-meta i{color:var(--gold)}
.stb-job-description{color:var(--muted);font-size:13px;line-height:1.7;margin-top:18px;max-width:75ch}
.stb-job-description p:last-child{margin-bottom:0}
.stb-job-action{display:flex;align-items:center}
.stb-career-modal{
  position:fixed;inset:0;z-index:100001;display:grid;place-items:center;padding:18px;
  visibility:hidden;opacity:0;pointer-events:none;transition:opacity .22s,visibility .22s;
}
.stb-career-modal.is-open{visibility:visible;opacity:1;pointer-events:auto}
.stb-career-modal-bg{position:absolute;inset:0;background:rgba(2,13,34,.72);backdrop-filter:blur(7px)}
.stb-career-dialog{
  position:relative;z-index:2;width:min(680px,100%);max-height:calc(100dvh - 36px);overflow:auto;
  background:#fff;border-radius:22px;padding:34px;box-shadow:0 35px 90px rgba(0,0,0,.3);
  transform:translateY(18px) scale(.98);transition:transform .28s cubic-bezier(.2,.75,.25,1);
}
.stb-career-modal.is-open .stb-career-dialog{transform:none}
.stb-career-dialog h2{font-size:36px;margin:4px 0}
.stb-career-selected{font-size:12px;color:var(--muted);margin-bottom:22px}
.stb-career-selected strong{color:var(--navy)}
.stb-career-status{min-height:20px;color:#a12727;font-size:12px;margin:10px 0}
.stb-career-success{text-align:center;padding:35px 10px 15px}
.stb-career-success>i{font-size:60px;color:#2b8a4a}
.stb-career-success h3{font-size:30px;margin:10px 0 5px}
.stb-career-success p{color:var(--muted)}
@media(max-width:760px){
 .stb-careers-hero{padding:55px 0 50px}
 .stb-careers-body{padding:45px 0 60px}
 .stb-job-card{grid-template-columns:1fr;padding:23px 20px;gap:18px}
 .stb-job-action{justify-content:flex-start}
 .stb-job-action .btn{width:100%}
 .stb-career-dialog{padding:25px 18px;border-radius:18px}
 .stb-career-dialog h2{font-size:30px}
}

/* =========================================================
   V18 — CAREER APPLICATION MODAL UI FIX
   ========================================================= */

/* Keep career modal comfortable and visually balanced. */
.stb-career-dialog{
  width:min(760px,calc(100vw - 32px))!important;
  padding:38px 42px 34px!important;
}
.stb-career-dialog .stb-form-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:18px 22px!important;
  margin-top:20px;
}
.stb-career-dialog .stb-form-grid label{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  color:var(--navy);
  font-size:13px;
  font-weight:700;
}
.stb-career-dialog .stb-form-grid label>span{
  display:block!important;
  margin:0 0 7px!important;
  color:var(--navy)!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:700!important;
}
.stb-career-dialog .stb-form-grid input[type="text"],
.stb-career-dialog .stb-form-grid input[type="tel"],
.stb-career-dialog .stb-form-grid input[type="email"],
.stb-career-dialog .stb-form-grid input[type="file"],
.stb-career-dialog .stb-form-grid textarea{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  margin:0!important;
  min-height:48px;
  border:1px solid #d9dfe8!important;
  border-radius:10px!important;
  background:#fbfcfe!important;
  color:#17233d!important;
  padding:12px 13px!important;
  font:inherit!important;
  font-size:14px!important;
  outline:none!important;
  transition:border-color .18s,box-shadow .18s,background .18s!important;
}
.stb-career-dialog .stb-form-grid input:focus,
.stb-career-dialog .stb-form-grid textarea:focus{
  border-color:var(--gold)!important;
  background:#fff!important;
  box-shadow:0 0 0 4px rgba(217,162,27,.12)!important;
}
.stb-career-dialog .stb-form-grid input[type="file"]{
  padding:9px!important;
  cursor:pointer;
  color:#596273!important;
}
.stb-career-dialog .stb-form-grid textarea{
  min-height:125px!important;
  resize:vertical;
  line-height:1.55!important;
}
.stb-career-dialog .stb-form-grid .stb-field-full{
  grid-column:1/-1!important;
}
.stb-career-submit{
  min-width:190px;
  margin-top:8px;
}
.stb-career-status{
  margin:13px 0 0!important;
  min-height:18px!important;
}
.stb-career-selected{
  margin-top:6px!important;
}
.stb-career-dialog .stb-modal-close{
  width:48px!important;
  height:48px!important;
  border:1px solid #dce2eb!important;
  background:#fff!important;
  border-radius:50%!important;
}
@media(max-width:680px){
  .stb-career-dialog{
    width:min(100%,calc(100vw - 20px))!important;
    padding:28px 20px 24px!important;
  }
  .stb-career-dialog .stb-form-grid{
    grid-template-columns:1fr!important;
    gap:15px!important;
  }
  .stb-career-dialog .stb-form-grid .stb-field-full{
    grid-column:auto!important;
  }
  .stb-career-dialog h2{
    font-size:30px!important;
    line-height:1.05!important;
  }
  .stb-career-submit{
    width:100%!important;
  }
}

/* =========================================================
   V20 — STAFF DIRECTORY + CSV IMPORT
   ========================================================= */
.stb-staff-page{background:#f8f6ef}
.stb-staff-hero{
  padding:75px 0 70px;background:linear-gradient(135deg,#061d46,#0b2c61);
  color:#fff;text-align:center
}
.stb-staff-hero h1{color:#fff;font-size:clamp(3rem,6vw,5.2rem);line-height:.94;margin:7px auto 15px}
.stb-staff-hero h1 span{color:#e0aa20}
.stb-staff-hero p{color:rgba(255,255,255,.75);max-width:650px;margin:auto;line-height:1.7}
.stb-staff-body{padding:65px 0 85px}
.stb-staff-toolbar{
  display:flex;align-items:flex-end;justify-content:space-between;gap:25px;margin-bottom:30px
}
.stb-staff-toolbar .section-title{margin-top:5px}
.stb-staff-filter select{
  min-width:190px;padding:12px 35px 12px 13px;border:1px solid #dfe4eb;border-radius:10px;
  background:#fff;color:#23314c;outline:none
}
.stb-staff-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px
}
.stb-staff-card{
  background:#fff;border:1px solid rgba(6,29,70,.07);border-radius:18px;overflow:hidden;
  box-shadow:0 14px 40px rgba(6,29,70,.07);transition:transform .25s,box-shadow .25s
}
.stb-staff-card:hover{transform:translateY(-4px);box-shadow:0 22px 55px rgba(6,29,70,.11)}
.stb-staff-photo{height:300px;background:#eef2f6;overflow:hidden}
.stb-staff-photo img{width:100%;height:100%;object-fit:cover;display:block}
.stb-staff-placeholder{height:100%;display:grid;place-items:center;color:#b4bcc8;font-size:75px}
.stb-staff-info{padding:20px 20px 22px}
.stb-staff-info h3{margin:0 0 6px;color:var(--navy);font-size:21px}
.stb-staff-designation{font-weight:800;color:var(--gold);font-size:12px}
.stb-staff-dept{margin-top:4px;color:#687383;font-size:11px}
.stb-staff-extra{display:flex;flex-wrap:wrap;gap:6px;margin-top:13px}
.stb-staff-extra span{background:#f4f6f8;color:#667080;padding:5px 8px;border-radius:6px;font-size:9px}
.stb-staff-empty{text-align:center;background:#fff;border-radius:18px;padding:55px 20px;box-shadow:0 15px 45px rgba(6,29,70,.07)}
.stb-staff-empty i{font-size:50px;color:#c4cad2}
.stb-staff-empty h3{margin:12px 0 5px}.stb-staff-empty p{color:var(--muted);margin:0}
@media(max-width:900px){.stb-staff-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
  .stb-staff-hero{padding:55px 0 50px}.stb-staff-body{padding:45px 0 60px}
  .stb-staff-toolbar{display:block}.stb-staff-filter{margin-top:18px}.stb-staff-filter select{width:100%}
  .stb-staff-grid{grid-template-columns:1fr}.stb-staff-photo{height:330px}
}

/* =========================================================
   V21 — NAVIGATION DROPDOWN UI FIX
   ========================================================= */

/* Never allow dropdowns to sit visibly in the normal flow. */
.site-header nav ul,
.main-navigation ul,
.primary-menu ul,
.stb-nav ul{
  list-style:none;
  margin:0;
  padding:0;
}

.site-header nav li,
.main-navigation li,
.primary-menu li,
.stb-nav li{
  position:relative;
}

/* Dropdown is hidden by default. */
.site-header nav li > ul,
.main-navigation li > ul,
.primary-menu li > ul,
.stb-nav li > ul{
  position:absolute!important;
  top:calc(100% + 12px)!important;
  left:50%!important;
  transform:translate(-50%, -7px)!important;
  width:220px!important;
  min-width:220px!important;
  height:auto!important;
  max-height:none!important;
  display:block!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
  overflow:visible!important;
  background:#fff!important;
  border:1px solid rgba(6,29,70,.08)!important;
  border-radius:14px!important;
  padding:8px!important;
  box-shadow:0 18px 45px rgba(6,29,70,.16)!important;
  z-index:99999!important;
  transition:opacity .18s ease,transform .18s ease,visibility .18s ease!important;
}

/* Hover opens on desktop. */
@media(min-width:901px){
  .site-header nav li:hover > ul,
  .site-header nav li:focus-within > ul,
  .main-navigation li:hover > ul,
  .main-navigation li:focus-within > ul,
  .primary-menu li:hover > ul,
  .primary-menu li:focus-within > ul,
  .stb-nav li:hover > ul,
  .stb-nav li:focus-within > ul{
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    transform:translate(-50%, 0)!important;
  }
}

/* Small gold pointer. */
.site-header nav li > ul::before,
.main-navigation li > ul::before,
.primary-menu li > ul::before,
.stb-nav li > ul::before{
  content:"";
  position:absolute;
  top:-6px;
  left:50%;
  width:12px;
  height:12px;
  background:#fff;
  border-left:1px solid rgba(6,29,70,.08);
  border-top:1px solid rgba(6,29,70,.08);
  transform:translateX(-50%) rotate(45deg);
}

/* Dropdown links. */
.site-header nav li > ul > li,
.main-navigation li > ul > li,
.primary-menu li > ul > li,
.stb-nav li > ul > li{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
}

.site-header nav li > ul > li > a,
.main-navigation li > ul > li > a,
.primary-menu li > ul > li > a,
.stb-nav li > ul > li > a{
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  box-sizing:border-box!important;
  min-height:42px!important;
  padding:10px 13px!important;
  border-radius:9px!important;
  color:var(--navy,#061d46)!important;
  background:transparent!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.25!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  transition:background .16s ease,color .16s ease,transform .16s ease!important;
}

.site-header nav li > ul > li > a:hover,
.main-navigation li > ul > li > a:hover,
.primary-menu li > ul > li > a:hover,
.stb-nav li > ul > li > a:hover{
  color:#b67e00!important;
  background:#fbf5e6!important;
  transform:translateX(2px)!important;
}

/* Don't let the Staff child item appear as a loose pill in the header. */
.menu-item-staff{
  position:static!important;
}
.menu-item-staff > a{
  border-radius:9px!important;
}

/* Parent indicator. */
.site-header nav li.menu-item-has-children > a::after,
.main-navigation li.menu-item-has-children > a::after,
.primary-menu li.menu-item-has-children > a::after,
.stb-nav li.menu-item-has-children > a::after{
  content:"";
  display:inline-block;
  width:6px;
  height:6px;
  margin-left:8px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:translateY(-2px) rotate(45deg);
  transition:transform .18s ease;
}
@media(min-width:901px){
  .site-header nav li.menu-item-has-children:hover > a::after,
  .main-navigation li.menu-item-has-children:hover > a::after,
  .primary-menu li.menu-item-has-children:hover > a::after,
  .stb-nav li.menu-item-has-children:hover > a::after{
    transform:translateY(1px) rotate(225deg);
  }
}

/* Mobile: hide all submenus unless JS adds .is-open. */
@media(max-width:900px){
  .site-header nav li > ul,
  .main-navigation li > ul,
  .primary-menu li > ul,
  .stb-nav li > ul{
    position:static!important;
    transform:none!important;
    width:100%!important;
    min-width:0!important;
    box-shadow:none!important;
    border:0!important;
    border-radius:0!important;
    padding:5px 0 5px 14px!important;
    background:transparent!important;
    visibility:hidden!important;
    opacity:0!important;
    max-height:0!important;
    overflow:hidden!important;
    pointer-events:none!important;
    transition:max-height .25s ease,opacity .2s ease,visibility .2s ease!important;
  }
  .site-header nav li.is-open > ul,
  .main-navigation li.is-open > ul,
  .primary-menu li.is-open > ul,
  .stb-nav li.is-open > ul{
    visibility:visible!important;
    opacity:1!important;
    max-height:600px!important;
    pointer-events:auto!important;
  }
  .site-header nav li > ul::before,
  .main-navigation li > ul::before,
  .primary-menu li > ul::before,
  .stb-nav li > ul::before{
    display:none!important;
  }
  .site-header nav li > ul > li > a,
  .main-navigation li > ul > li > a,
  .primary-menu li > ul > li > a,
  .stb-nav li > ul > li > a{
    min-height:40px!important;
    padding:9px 12px!important;
  }
}

/* Current St. Benedict's header fallback */
.header-nav ul ul,
.site-nav ul ul,
.nav-menu ul ul,
.navbar-nav ul ul{
  position:absolute;
  visibility:hidden;
  opacity:0;
  pointer-events:none;
  top:100%;
  left:0;
  z-index:99999;
}
@media(min-width:901px){
  .header-nav li:hover > ul,
  .site-nav li:hover > ul,
  .nav-menu li:hover > ul,
  .navbar-nav li:hover > ul,
  .header-nav li:focus-within > ul,
  .site-nav li:focus-within > ul,
  .nav-menu li:focus-within > ul,
  .navbar-nav li:focus-within > ul{
    visibility:visible;
    opacity:1;
    pointer-events:auto;
  }
}

/* =========================================================
   V22 — STAFF DATA TABLE + STAFF TYPE
   ========================================================= */
.stb-staff-toolbar{align-items:center!important}
.stb-staff-filter{display:flex;flex-wrap:wrap;gap:10px}
.stb-staff-filter select{min-width:180px!important}
.stb-staff-table-wrap{
  background:#fff;border:1px solid rgba(6,29,70,.08);border-radius:18px;
  box-shadow:0 16px 45px rgba(6,29,70,.07);overflow:auto;
}
.stb-staff-table{
  width:100%;border-collapse:collapse;min-width:850px;
  color:#4e5969;font-size:13px;
}
.stb-staff-table thead th{
  background:#f7f5ef;color:var(--navy);text-align:left;
  padding:16px 18px;font-size:10px;text-transform:uppercase;letter-spacing:.08em;
  font-weight:800;border-bottom:1px solid #e8ebef;white-space:nowrap;
}
.stb-staff-table tbody td{
  padding:14px 18px;border-bottom:1px solid #edf0f3;vertical-align:middle;
}
.stb-staff-table tbody tr:last-child td{border-bottom:0}
.stb-staff-table tbody tr{transition:background .16s ease}
.stb-staff-table tbody tr:hover{background:#fcfbf7}
.stb-staff-person{display:flex;align-items:center;gap:12px;min-width:210px}
.stb-staff-person strong{color:var(--navy);font-size:13px}
.stb-staff-avatar{
  width:42px;height:42px;flex:0 0 42px;border-radius:50%;overflow:hidden;
  background:#eef2f6;display:grid;place-items:center;color:var(--navy);font-weight:800;
}
.stb-staff-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.stb-staff-type-badge{
  display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;
  font-size:9px;font-weight:800;white-space:nowrap;
}
.stb-staff-type-badge.is-teaching{background:#eef7f0;color:#2b7a43}
.stb-staff-type-badge.is-nonteaching{background:#f1f3f7;color:#596579}
@media(max-width:650px){
  .stb-staff-toolbar{display:block!important}
  .stb-staff-filter{margin-top:18px;display:grid;grid-template-columns:1fr}
  .stb-staff-filter select{width:100%!important}
  .stb-staff-table-wrap{background:transparent;border:0;box-shadow:none;overflow:visible}
  .stb-staff-table{min-width:0;border-collapse:separate;border-spacing:0 12px;font-size:12px}
  .stb-staff-table thead{display:none}
  .stb-staff-table tbody,.stb-staff-table tr,.stb-staff-table td{display:block;width:100%;box-sizing:border-box}
  .stb-staff-table tr{
    background:#fff;border:1px solid rgba(6,29,70,.08);border-radius:16px;
    padding:10px 16px;box-shadow:0 10px 30px rgba(6,29,70,.06);
  }
  .stb-staff-table tbody td{
    display:flex;align-items:center;justify-content:space-between;gap:18px;
    padding:10px 0;border-bottom:1px solid #edf0f3;text-align:right;
  }
  .stb-staff-table tbody td:last-child{border-bottom:0}
  .stb-staff-table tbody td::before{
    content:attr(data-label);font-size:9px;text-transform:uppercase;letter-spacing:.07em;
    color:#8992a0;font-weight:800;text-align:left;
  }
  .stb-staff-table tbody td[data-label="Staff"]{display:block;text-align:left;padding-bottom:13px}
  .stb-staff-table tbody td[data-label="Staff"]::before{display:none}
  .stb-staff-person{min-width:0}
  .stb-staff-person strong{font-size:14px}
}

/* =========================================================
   V23 — HOMEPAGE HERO CAROUSEL
   ========================================================= */
.stb-hero-carousel{
  min-height:620px!important;
  isolation:isolate;
}
.stb-hero-slides{
  position:absolute;
  inset:0;
  overflow:hidden;
}
.stb-hero-slide{
  position:absolute;
  inset:0;
  visibility:hidden;
  opacity:0;
  pointer-events:none;
  transition:opacity .75s ease,visibility .75s ease;
}
.stb-hero-slide.is-active{
  visibility:visible;
  opacity:1;
  pointer-events:auto;
  z-index:1;
}
.stb-hero-slide .hero-bg{
  transform:scale(1.035);
  transition:transform 7s cubic-bezier(.2,.6,.2,1);
}
.stb-hero-slide.is-active .hero-bg{transform:scale(1)}
.stb-hero-slide .hero-content{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .65s ease .12s,transform .65s cubic-bezier(.2,.75,.25,1) .12s;
}
.stb-hero-slide.is-active .hero-content{
  opacity:1;
  transform:none;
}
.stb-hero-carousel-controls{
  position:absolute;
  right:max(28px,calc((100vw - 1200px)/2));
  bottom:38px;
  z-index:5;
  display:flex;
  gap:9px;
}
.stb-hero-arrow{
  width:42px!important;
  height:42px!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.32)!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  background:rgba(5,23,54,.5)!important;
  color:#fff!important;
  backdrop-filter:blur(7px);
  cursor:pointer;
  font-size:16px!important;
  transition:transform .2s ease,background .2s ease,border-color .2s ease;
}
.stb-hero-arrow:hover{
  transform:translateY(-2px);
  background:rgba(5,23,54,.78)!important;
  border-color:rgba(255,255,255,.65)!important;
}
.stb-hero-next{
  background:var(--gold)!important;
  border-color:var(--gold)!important;
  color:#fff!important;
}
.stb-hero-next:hover{background:#c9920f!important;border-color:#c9920f!important}
.stb-hero-dots{
  position:absolute;
  left:50%;
  bottom:49px;
  transform:translateX(-50%);
  z-index:5;
  display:flex;
  gap:6px;
  opacity:0;
  pointer-events:none;
}
.stb-hero-dots button{
  width:6px!important;height:6px!important;padding:0!important;border:0!important;border-radius:50%!important;
  background:rgba(255,255,255,.45)!important;
}
.stb-hero-dots button.is-active{width:20px!important;border-radius:99px!important;background:#fff!important}
@media(max-width:900px){
  .stb-hero-carousel{min-height:590px!important}
  .stb-hero-carousel-controls{right:22px;bottom:30px}
  .stb-hero-arrow{width:40px!important;height:40px!important}
}
@media(max-width:600px){
  .stb-hero-carousel{min-height:570px!important}
  .stb-hero-slide .hero-content{padding:85px 0 120px!important}
  .stb-hero-slide .hero h1{font-size:clamp(2.55rem,12vw,4rem)!important;line-height:1!important}
  .stb-hero-slide .hero p{font-size:15px!important;line-height:1.55!important}
  .stb-hero-slide .hero-actions{display:grid!important;grid-template-columns:1fr!important;max-width:320px}
  .stb-hero-slide .hero-actions .btn{width:100%!important}
  .stb-hero-carousel-controls{right:16px;bottom:22px}
  .stb-hero-dots{display:none}
  .stb-hero-slide .hero-bg{background-position:center center}
}
@media(prefers-reduced-motion:reduce){
  .stb-hero-slide,.stb-hero-slide .hero-bg,.stb-hero-slide .hero-content{transition:none!important}
}

/* =========================================================
   V24 — HERO CAROUSEL CTA + NAV VISIBILITY FIX
   ========================================================= */

/* Keep the hero controls above the bottom information strip. */
.stb-hero,
.hero,
.hero-section,
.stb-hero-carousel{
  position:relative;
  overflow:hidden;
}

.stb-hero .stb-hero-content,
.stb-hero .hero-content,
.hero .hero-content,
.hero-section .hero-content{
  position:relative;
  z-index:12!important;
}

/* CTA row must never be covered by the carousel info strip. */
.stb-hero .hero-actions,
.stb-hero .stb-hero-actions,
.hero .hero-actions,
.hero-section .hero-actions{
  position:relative;
  z-index:30!important;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  margin-bottom:76px!important;
}

/* Carousel navigation sits above every hero layer. */
.stb-hero .hero-nav,
.stb-hero .stb-hero-nav,
.stb-hero .carousel-nav,
.hero .hero-nav,
.hero-section .hero-nav{
  position:absolute!important;
  right:30px!important;
  bottom:78px!important;
  z-index:50!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  pointer-events:auto!important;
}

.stb-hero .hero-nav button,
.stb-hero .stb-hero-nav button,
.stb-hero .carousel-nav button,
.hero .hero-nav button,
.hero-section .hero-nav button{
  position:relative!important;
  z-index:51!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  padding:0!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  cursor:pointer!important;
  pointer-events:auto!important;
}

/* The bottom feature strip must remain behind the controls. */
.stb-hero .hero-features,
.stb-hero .stb-hero-features,
.stb-hero .hero-highlight-bar,
.hero .hero-features,
.hero-section .hero-features{
  position:relative!important;
  z-index:10!important;
}

/* Slightly smaller editorial title for better balance. */
.stb-hero h1,
.stb-hero .hero-title,
.stb-hero .stb-hero-title,
.hero h1,
.hero .hero-title,
.hero-section h1{
  font-size:clamp(3rem,5.2vw,5.4rem)!important;
  line-height:.96!important;
  max-width:700px!important;
}

/* Ensure the text and CTA don't get hidden behind the feature strip. */
.stb-hero .hero-content,
.hero .hero-content,
.hero-section .hero-content{
  padding-bottom:40px!important;
}

/* Mobile: controls stay inside the visible hero area. */
@media(max-width:900px){
  .stb-hero .hero-actions,
  .stb-hero .stb-hero-actions,
  .hero .hero-actions,
  .hero-section .hero-actions{
    margin-bottom:70px!important;
  }

  .stb-hero .hero-nav,
  .stb-hero .stb-hero-nav,
  .stb-hero .carousel-nav,
  .hero .hero-nav,
  .hero-section .hero-nav{
    right:18px!important;
    bottom:72px!important;
  }

  .stb-hero h1,
  .stb-hero .hero-title,
  .stb-hero .stb-hero-title,
  .hero h1,
  .hero .hero-title,
  .hero-section h1{
    font-size:clamp(2.45rem,9vw,4rem)!important;
    line-height:.98!important;
    max-width:90%!important;
  }
}

@media(max-width:600px){
  .stb-hero .hero-actions,
  .stb-hero .stb-hero-actions,
  .hero .hero-actions,
  .hero-section .hero-actions{
    margin-bottom:76px!important;
    gap:9px!important;
  }

  .stb-hero .hero-nav,
  .stb-hero .stb-hero-nav,
  .stb-hero .carousel-nav,
  .hero .hero-nav,
  .hero-section .hero-nav{
    right:14px!important;
    bottom:66px!important;
  }

  .stb-hero .hero-nav button,
  .stb-hero .stb-hero-nav button,
  .stb-hero .carousel-nav button,
  .hero .hero-nav button,
  .hero-section .hero-nav button{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
  }
}

/* =========================================================
   V25 — MOVE HERO CAROUSEL ARROWS ABOVE FEATURE CARD
   ========================================================= */

/* The carousel arrows must never share the bottom edge with the feature card. */
.stb-hero .hero-nav,
.stb-hero .stb-hero-nav,
.stb-hero .carousel-nav,
.stb-hero .stb-carousel-nav,
.hero .hero-nav,
.hero .stb-hero-nav,
.hero .carousel-nav,
.hero-section .hero-nav,
.hero-section .carousel-nav,
.stb-hero-carousel .hero-nav,
.stb-hero-carousel .carousel-nav{
  top:28px!important;
  right:30px!important;
  bottom:auto!important;
  left:auto!important;
  z-index:999!important;
  position:absolute!important;
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
}

/* Individual buttons remain fully visible and clickable. */
.stb-hero .hero-nav button,
.stb-hero .stb-hero-nav button,
.stb-hero .carousel-nav button,
.stb-hero .stb-carousel-nav button,
.hero .hero-nav button,
.hero .stb-hero-nav button,
.hero .carousel-nav button,
.hero-section .hero-nav button,
.hero-section .carousel-nav button,
.stb-hero-carousel .hero-nav button,
.stb-hero-carousel .carousel-nav button{
  position:relative!important;
  z-index:1000!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}

/* Feature panel cannot cover the arrows. */
.stb-hero .hero-features,
.stb-hero .stb-hero-features,
.stb-hero .hero-highlight-bar,
.hero .hero-features,
.hero-section .hero-features{
  z-index:20!important;
}

/* Desktop title/control balance. */
@media(min-width:901px){
  .stb-hero .hero-nav,
  .stb-hero .stb-hero-nav,
  .stb-hero .carousel-nav,
  .stb-hero .stb-carousel-nav,
  .hero .hero-nav,
  .hero .carousel-nav,
  .hero-section .hero-nav,
  .hero-section .carousel-nav{
    top:26px!important;
    right:32px!important;
  }
}

/* Tablet/mobile: keep controls in the top-right with enough safe space. */
@media(max-width:900px){
  .stb-hero .hero-nav,
  .stb-hero .stb-hero-nav,
  .stb-hero .carousel-nav,
  .stb-hero .stb-carousel-nav,
  .hero .hero-nav,
  .hero .carousel-nav,
  .hero-section .hero-nav,
  .hero-section .carousel-nav{
    top:18px!important;
    right:18px!important;
    bottom:auto!important;
  }
}
@media(max-width:600px){
  .stb-hero .hero-nav,
  .stb-hero .stb-hero-nav,
  .stb-hero .carousel-nav,
  .stb-hero .stb-carousel-nav,
  .hero .hero-nav,
  .hero .carousel-nav,
  .hero-section .hero-nav,
  .hero-section .carousel-nav{
    top:14px!important;
    right:14px!important;
    gap:7px!important;
  }
}

/* =========================================================
   V26 — ACTUAL HERO CAROUSEL CONTROLS FIX
   ========================================================= */

/* These are the real carousel controls used by the theme.
   Move them completely away from the bottom feature panel. */
.stb-hero-carousel .stb-hero-carousel-controls{
  position:absolute!important;
  top:28px!important;
  right:30px!important;
  bottom:auto!important;
  left:auto!important;
  z-index:1000!important;
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  width:auto!important;
  height:auto!important;
  transform:none!important;
  pointer-events:auto!important;
}

.stb-hero-carousel .stb-hero-arrow{
  position:relative!important;
  z-index:1001!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  flex:0 0 auto!important;
}

/* Keep the feature strip underneath the controls. */
.stb-hero-carousel .hero-features,
.stb-hero-carousel .stb-hero-features,
.stb-hero-carousel .stb-hero-carousel-features{
  position:relative!important;
  z-index:20!important;
}

/* Keep hero content readable and independent from controls. */
.stb-hero-carousel .hero-content{
  position:relative!important;
  z-index:30!important;
}

/* Smaller title as requested. */
.stb-hero-carousel .hero-content h1{
  font-size:clamp(3rem,5.2vw,5.4rem)!important;
  line-height:.96!important;
}

/* Responsive control position. */
@media(max-width:900px){
  .stb-hero-carousel .stb-hero-carousel-controls{
    top:18px!important;
    right:18px!important;
    bottom:auto!important;
  }
  .stb-hero-carousel .hero-content h1{
    font-size:clamp(2.45rem,9vw,4rem)!important;
  }
}

@media(max-width:600px){
  .stb-hero-carousel .stb-hero-carousel-controls{
    top:14px!important;
    right:14px!important;
    gap:7px!important;
  }
  .stb-hero-carousel .hero-content h1{
    font-size:clamp(2.25rem,10vw,3.25rem)!important;
  }
}

/* =========================================================
   V27 — FORCE HERO ARROWS TO TOP-RIGHT
   ========================================================= */
.stb-hero-carousel .stb-hero-carousel-controls{
  top:22px!important;
  right:30px!important;
  bottom:auto!important;
  left:auto!important;
  z-index:99999!important;
}
.stb-hero-carousel .stb-hero-carousel-controls .stb-hero-arrow{
  z-index:100000!important;
  pointer-events:auto!important;
}
@media(max-width:900px){
  .stb-hero-carousel .stb-hero-carousel-controls{
    top:18px!important;
    right:18px!important;
    bottom:auto!important;
  }
}
@media(max-width:600px){
  .stb-hero-carousel .stb-hero-carousel-controls{
    top:14px!important;
    right:14px!important;
    bottom:auto!important;
  }
}

/* =========================================================
   V28 — HERO CAROUSEL ARROWS: BOTTOM RIGHT
   ========================================================= */
.stb-hero-carousel .stb-hero-carousel-controls{
  position:absolute!important;
  top:auto!important;
  right:30px!important;
  bottom:34px!important;
  left:auto!important;
  z-index:99999!important;
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  pointer-events:auto!important;
}

.stb-hero-carousel .stb-hero-carousel-controls .stb-hero-arrow{
  position:relative!important;
  z-index:100000!important;
  pointer-events:auto!important;
  opacity:1!important;
  visibility:visible!important;
}

@media(max-width:900px){
  .stb-hero-carousel .stb-hero-carousel-controls{
    top:auto!important;
    right:20px!important;
    bottom:28px!important;
    left:auto!important;
  }
}

@media(max-width:600px){
  .stb-hero-carousel .stb-hero-carousel-controls{
    top:auto!important;
    right:14px!important;
    bottom:22px!important;
    left:auto!important;
    gap:7px!important;
  }
}

/* =========================================================
   V29 — FINAL HERO CAROUSEL POSITION
   IMPORTANT: V27 inline top positioning has been removed.
   ========================================================= */
.stb-hero-carousel .stb-hero-carousel-controls{
  position:absolute!important;
  top:auto!important;
  right:30px!important;
  bottom:34px!important;
  left:auto!important;
  z-index:99999!important;
  transform:none!important;
}
.stb-hero-carousel .stb-hero-carousel-controls .stb-hero-arrow{
  position:relative!important;
  z-index:100000!important;
  pointer-events:auto!important;
}
@media(max-width:900px){
  .stb-hero-carousel .stb-hero-carousel-controls{
    top:auto!important;
    right:20px!important;
    bottom:28px!important;
  }
}
@media(max-width:600px){
  .stb-hero-carousel .stb-hero-carousel-controls{
    top:auto!important;
    right:14px!important;
    bottom:22px!important;
  }
}

/* =========================================================
   V32 — BRANDING + UI/UX POLISH
   ========================================================= */
:root{
  --navy:#08204c;
  --navy2:#12376f;
  --gold:#d6a323;
  --gold2:#9f7411;
  --cream:#f7f3e9;
  --ink:#172135;
  --muted:#5f6b7c;
  --line:#e4e8ef;
  --brand-red:#8f1f2d;
  --brand-green:#1d7a55;
  --shadow:0 18px 45px rgba(8,32,76,.12);
  --shadow-soft:0 10px 30px rgba(8,32,76,.08);
  --radius:12px;
}
body{
  font-family:"DM Sans",Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:#fffdf9;
  text-rendering:optimizeLegibility;
}
h1,h2,h3,h4,h5,h6,
.brand-title{
  font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  letter-spacing:0;
}
.container{width:min(1180px,calc(100% - 40px))}
.section{padding:96px 0}
.section-kicker{
  color:var(--brand-red);
  letter-spacing:.12em;
}
.section-title{
  color:var(--navy);
  font-weight:700;
}
.section-desc,
.welcome-copy p,
.stb-discover-copy p,
.content-card p{
  color:var(--muted);
}
.btn{
  min-height:46px;
  border-radius:7px;
  font-weight:800;
  letter-spacing:0;
  box-shadow:none;
}
.btn-gold{
  background:var(--gold);
  color:#102042;
  border-color:var(--gold);
}
.btn-gold:hover{
  background:#f0c65a;
  border-color:#f0c65a;
  color:#102042;
  box-shadow:0 10px 22px rgba(159,116,17,.22);
}
.btn-navy{
  background:var(--navy);
  border-color:var(--navy);
}
.btn-navy:hover{
  background:var(--navy2);
  border-color:var(--navy2);
}
.btn-outline{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.42);
  color:#fff;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.btn-outline:hover{
  background:#fff;
  border-color:#fff;
  color:var(--navy);
}
.topbar{
  background:linear-gradient(90deg,#071936 0%,var(--navy) 52%,#0d2d61 100%)!important;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.topbar-welcome{
  font-weight:700;
  letter-spacing:.01em;
}
.topbar-links a{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:rgba(255,255,255,.84);
}
.topbar-links a:hover{color:#fff}
.site-header{
  border-bottom:1px solid rgba(8,32,76,.07);
  box-shadow:0 8px 28px rgba(8,32,76,.07)!important;
}
.header-inner{gap:22px!important}
.brand{
  gap:13px!important;
  color:var(--navy);
}
.site-logo-wrap,
.brand-mark{
  border-radius:50%!important;
  background:#fff;
  box-shadow:0 0 0 4px #fff,0 0 0 5px rgba(214,163,35,.38),0 8px 18px rgba(8,32,76,.14);
}
.brand-title{
  color:var(--navy)!important;
  font-weight:700;
}
.brand-sub{
  color:var(--brand-red)!important;
  font-weight:900!important;
}
.main-nav a{
  position:relative;
  color:#223051!important;
  font-weight:800!important;
}
.main-nav a:before{
  content:"";
  position:absolute;
  left:5px;
  right:5px;
  bottom:0;
  height:2px;
  border-radius:2px;
  background:var(--gold);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .2s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item>a,
.main-nav .current-menu-ancestor>a{
  color:var(--navy)!important;
}
.main-nav a:hover:before,
.main-nav .current-menu-item>a:before,
.main-nav .current-menu-ancestor>a:before{
  transform:scaleX(1);
}
.main-nav .sub-menu{
  border:1px solid rgba(8,32,76,.08);
  border-radius:10px!important;
  box-shadow:0 18px 42px rgba(8,32,76,.16)!important;
}
.main-nav .sub-menu a:before{display:none}
.hero{
  min-height:calc(100vh - 106px);
  background:#071936;
}
.stb-hero-slide:after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:34%;
  background:linear-gradient(0deg,rgba(7,25,54,.78),rgba(7,25,54,0));
  pointer-events:none;
  z-index:1;
}
.hero-bg{
  filter:saturate(1.04) contrast(1.02);
  transform:scale(1.01);
}
.hero-overlay{
  background:
    linear-gradient(90deg,rgba(5,18,42,.96) 0%,rgba(7,25,54,.84) 42%,rgba(7,25,54,.2) 100%),
    linear-gradient(180deg,rgba(7,25,54,.22),rgba(7,25,54,.65))!important;
}
.hero-content{
  max-width:760px;
  padding:96px 0 142px;
}
.hero h1{
  font-weight:700;
  line-height:.98;
  letter-spacing:0;
  text-wrap:balance;
}
.hero h1 .gold{color:#f2c75b}
.hero p{
  max-width:620px;
  color:rgba(255,255,255,.88);
  font-size:clamp(1rem,1.7vw,1.18rem);
}
.hero-scroll{
  left:auto;
  right:30px;
  transform:none;
  text-transform:uppercase;
  letter-spacing:.12em;
}
.stb-hero-dots button,
.stb-hero-arrow{
  border-color:rgba(255,255,255,.45)!important;
  background:rgba(255,255,255,.14)!important;
  color:#fff!important;
}
.stb-hero-dots button.is-active{
  background:var(--gold)!important;
  border-color:var(--gold)!important;
}
.feature-strip{
  background:#fff;
  border:1px solid rgba(8,32,76,.08);
  border-radius:12px;
  box-shadow:0 22px 55px rgba(8,32,76,.14);
}
.feature{
  color:var(--ink);
  border-right:1px solid var(--line);
}
.feature-icon{
  width:42px;
  height:42px;
  min-width:42px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff6df;
  color:var(--gold2);
  font-size:20px;
}
.feature h3{
  color:var(--navy);
  font-weight:900;
}
.feature p{color:var(--muted)}
.collage-item,
.panel,
.content-card,
.contact-card,
.stats-box,
.stb-video-frame,
.stb-video-placeholder,
.stb-principal-card{
  border-radius:12px!important;
}
.collage-item{
  box-shadow:var(--shadow-soft);
}
.values-card{
  border-color:rgba(214,163,35,.42);
  border-radius:10px;
}
.values-card strong + strong{margin-top:2px}
.stats-box{
  background:#fff;
  box-shadow:var(--shadow-soft);
}
.stat{
  background:linear-gradient(180deg,#fff 0%,#fbfcff 100%);
}
.stat-number{
  color:var(--navy);
  font-weight:700;
}
.stat-label{
  color:var(--muted);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:11px;
}
.section-soft{
  background:linear-gradient(180deg,#f8f5ec 0%,#fffdf9 100%)!important;
}
.panel{
  border-color:rgba(8,32,76,.08);
  box-shadow:var(--shadow-soft);
}
.panel h3{
  color:var(--navy);
}
.campus-panel:after{
  background:linear-gradient(180deg,rgba(7,25,54,.05) 10%,rgba(7,25,54,.92) 100%)!important;
}
.date-box{
  background:#fff8e5;
  border-color:#efdba4;
}
.date-box strong{color:var(--brand-red)}
.announcement h4 a:hover{color:var(--brand-red)!important}
.quick-panel{
  background:linear-gradient(160deg,var(--navy),#071936)!important;
}
.quick-link{
  min-height:46px;
  border-bottom-color:rgba(255,255,255,.12);
}
.quick-link:hover{
  color:#fff;
  transform:translateX(3px);
}
.stb-video-placeholder{
  background:linear-gradient(135deg,#071936,var(--navy2))!important;
}
.stb-video-placeholder p strong{color:#fff}
.newsletter{
  background:linear-gradient(90deg,#071936 0%,var(--navy) 62%,#12376f 100%);
}
.newsletter-form input{
  border:1px solid rgba(255,255,255,.18);
  min-height:46px;
}
.admission{
  background:linear-gradient(90deg,var(--brand-red),#b34235 48%,var(--gold2));
}
.site-footer{
  background:#06162f;
}
.site-footer .brand{
  height:auto!important;
  max-width:none!important;
}
.site-footer .brand-title{
  color:#fff!important;
}
.site-footer .brand-sub{
  color:#f0c65a!important;
}
.site-footer h3{
  color:#fff;
}
.site-footer li i{
  color:#f0c65a;
  margin-right:7px;
}
.socials a{
  border-radius:50%;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.1);
}
.socials a:hover{
  background:var(--gold);
  color:#102042;
}
.stb-modal-dialog{
  border-radius:14px!important;
}
.stb-enquiry-form input,
.stb-enquiry-form select,
.stb-enquiry-form textarea,
.contact-form input,
.contact-form textarea{
  border-radius:7px;
}
.stb-floating-enquiry{
  background:var(--brand-red);
  border:1px solid rgba(255,255,255,.24);
  box-shadow:0 12px 30px rgba(143,31,45,.28);
}
.stb-floating-enquiry:hover{
  background:#a92d3b;
}
@media(max-width:900px){
  .container{width:min(100% - 28px,1180px)}
  .section{padding:76px 0}
  .topbar-links{display:none!important}
  .main-nav{
    border-top:1px solid var(--line);
  }
  .main-nav a:before{display:none}
  .hero{
    min-height:620px;
  }
  .hero-overlay{
    background:linear-gradient(90deg,rgba(5,18,42,.94),rgba(7,25,54,.72))!important;
  }
  .hero-content{
    padding:82px 0 130px;
  }
  .hero-scroll{
    left:20px;
    right:auto;
  }
  .features-grid{
    grid-template-columns:repeat(2,1fr);
  }
  .feature:nth-child(2){
    border-right:0;
  }
}
@media(max-width:600px){
  .container{width:calc(100% - 24px)}
  .section{padding:64px 0}
  .brand{gap:10px!important}
  .hero{
    min-height:590px;
  }
  .hero h1{
    font-size:clamp(2.45rem,12vw,3.55rem)!important;
  }
  .hero-actions{
    flex-direction:column;
    align-items:stretch;
  }
  .hero-actions .btn{
    width:100%;
  }
  .hero-scroll{
    bottom:18px;
    font-size:10px;
  }
  .features-grid{
    grid-template-columns:1fr;
  }
  .feature{
    border-right:0;
  }
  .feature-strip{
    margin-top:-42px;
  }
  .newsletter h2,
  .admission h2{
    font-size:28px;
  }
}

/* =========================================================
   V33 — DYNAMIC BRANDING + SCHOOL CODES
   ========================================================= */
.topbar-inner{
  display:grid!important;
  grid-template-columns:minmax(180px,1fr) auto minmax(0,auto);
  gap:16px!important;
}
.topbar-credentials{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:0;
  color:rgba(255,255,255,.9);
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}
.topbar-credentials span{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:3px 8px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(255,255,255,.08);
}
.brand-copy{
  max-width:280px!important;
}
.brand-title{
  max-width:100%;
}
.footer-codes{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
}
.footer-codes span{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 9px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.88);
  font-size:11px;
  font-weight:800;
}
@media(max-width:1180px){
  .topbar-inner{
    grid-template-columns:minmax(130px,1fr) auto;
  }
  .topbar-links{
    display:none!important;
  }
}
@media(max-width:760px){
  .topbar-inner{
    grid-template-columns:1fr;
    justify-items:center!important;
    gap:0!important;
  }
  .topbar-welcome{
    display:none;
  }
  .topbar-credentials{
    width:100%;
    justify-content:center;
    gap:5px;
    font-size:10px;
  }
  .topbar-credentials span{
    max-width:50%;
    overflow:hidden;
    text-overflow:ellipsis;
    padding-inline:7px;
  }
  .brand-copy{
    max-width:calc(100vw - 122px)!important;
  }
}
@media(max-width:390px){
  .topbar-credentials{
    font-size:9px;
  }
  .topbar-credentials span{
    padding-inline:5px;
  }
}

/* =========================================================
   V34 — LONG SCHOOL NAME HEADER FIX
   ========================================================= */
.site-header .header-inner{
  gap:18px!important;
}
.site-header,
.site-header .header-inner,
.site-header .main-nav{
  height:96px!important;
  min-height:96px!important;
}
.site-header .brand{
  height:auto!important;
  flex:1 1 430px!important;
  max-width:clamp(360px,36vw,620px)!important;
  min-width:0!important;
}
.site-header .brand-copy{
  max-width:none!important;
  min-width:0!important;
  overflow:visible!important;
}
.site-header .brand-title{
  display:block!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  word-break:normal;
  overflow-wrap:anywhere;
  line-height:.92!important;
  font-size:clamp(1.5rem,2.25vw,2.08rem)!important;
}
.site-header .brand-sub{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  line-height:1.05!important;
}
.site-header .main-nav{
  flex:0 1 auto!important;
}
.site-header .main-nav-inner{
  gap:14px!important;
}
.site-header .main-nav>ul,
.site-header .main-nav-inner>ul,
.site-header .main-nav ul{
  gap:14px!important;
}
.site-header .main-nav a{
  font-size:13px!important;
}
@media(max-width:1180px){
  .site-header .brand{
    flex-basis:360px!important;
    max-width:clamp(300px,34vw,430px)!important;
  }
  .site-header .brand-title{
    font-size:clamp(1.25rem,2vw,1.62rem)!important;
  }
  .site-header .main-nav-inner{
    gap:10px!important;
  }
  .site-header .main-nav>ul,
  .site-header .main-nav-inner>ul,
  .site-header .main-nav ul{
    gap:10px!important;
  }
  .site-header .main-nav a{
    font-size:12px!important;
  }
}
@media(max-width:900px){
  .site-header,
  .site-header .header-inner{
    height:62px!important;
    min-height:62px!important;
  }
  .site-header .main-nav{
    height:auto!important;
    min-height:0!important;
  }
  .site-header .brand{
    height:62px!important;
    flex:1 1 auto!important;
    max-width:calc(100% - 58px)!important;
  }
  .site-header .brand-title{
    font-size:clamp(1.08rem,6vw,1.45rem)!important;
    line-height:.96!important;
  }
  .site-header .brand-sub{
    font-size:8px!important;
    letter-spacing:.08em!important;
  }
}
@media(max-width:430px){
  .site-header .brand-title{
    font-size:clamp(.94rem,5.5vw,1.18rem)!important;
  }
  .site-header .site-logo-wrap,
  .site-header .brand-mark{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    max-width:38px!important;
    flex-basis:38px!important;
  }
}
