/* =========================================================================
   MAKSON WEBSITE — SHARED STYLESHEET
   Used by every page (index.html + promotions/*.html) so the look stays
   consistent. Marketing components (announcement bar, pop-ups, promo
   banner) are grouped near the bottom — search "MARKETING" to jump there.
   ========================================================================= */

:root{
  --primary:#662f91;
  --primary-dark:#4a2168;
  --primary-darker:#341758;
  --primary-light:#8b5cb8;
  --primary-tint:#f3ecf9;
  --accent:#f2a900;
  --ink:#241a2e;
  --gray:#6b6470;
  --paper:#ffffff;
  --off:#faf8fc;
  --shadow: 0 10px 30px rgba(74,33,104,0.12);
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color:var(--ink);
  background:var(--paper);
  line-height:1.6;
  overflow-x:hidden;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{list-style:none;}
.container{max-width:1360px; margin:0 auto; padding:0 24px;}
section{padding:96px 0;}
h1,h2,h3,h4{font-weight:800; letter-spacing:-0.01em;}
.eyebrow{
  display:inline-block; font-size:13px; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:var(--primary); background:var(--primary-tint);
  padding:6px 14px; border-radius:20px; margin-bottom:16px;
}
.section-head{max-width:680px; margin:0 auto 56px; text-align:center;}
.section-head h2{font-size:clamp(28px,4vw,40px); color:var(--primary-darker); margin-bottom:14px;}
.section-head p{color:var(--gray); font-size:17px;}
.btn{
  display:inline-flex; align-items:center; gap:8px; padding:14px 30px; border-radius:8px;
  font-weight:700; font-size:15px; transition:.25s; cursor:pointer; border:2px solid transparent;
}
.btn-primary{background:var(--accent); color:#2b1a00;}
.btn-primary:hover{background:#ffb827; transform:translateY(-2px);}
.btn-outline{border-color:rgba(255,255,255,.6); color:#fff;}
.btn-outline:hover{background:rgba(255,255,255,.15);}
.btn-solid{background:var(--primary); color:#fff;}
.btn-solid:hover{background:var(--primary-dark); transform:translateY(-2px);}

/* HEADER (sticky, sits below the announcement bar in normal flow) */
header{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  background:transparent;
  transition:transform .3s ease, background .3s ease, box-shadow .3s ease;
}
header.scrolled{ background:#662f91; box-shadow:0 4px 20px rgba(30,10,45,.28); }
/* Mobile auto-hide: site.js toggles this class based on scroll direction */
header.header-hidden{ transform:translateY(-100%); }
.nav{display:flex; align-items:center; justify-content:space-between; padding:12px 24px; max-width:1360px; margin:0 auto;}
.brand{display:flex; align-items:center; gap:10px; font-weight:800; color:#fff; font-size:18px;}
.brand img{height:42px; width:auto;}
.nav-links{display:flex; gap:30px; align-items:center;}
.nav-links a{font-weight:600; font-size:15px; color:#fff; position:relative; padding:4px 0;}
.nav-links a:hover{color:var(--accent);}
.nav-links .nav-promo{color:var(--accent); position:relative;}
.nav-cta{
  background:var(--accent); color:#2b1a00 !important; padding:11px 30px; border-radius:8px;
  font-weight:600; font-size:12.5px; letter-spacing:.01em;
  box-shadow:0 2px 8px rgba(0,0,0,.22);
  transition:background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.nav-cta:hover{
  background:#ffb827; box-shadow:0 4px 14px rgba(0,0,0,.3); transform:translateY(-1px);
}
.nav-cta:active{ transform:translateY(0); }
.nav-report{
  background:#fff; color:var(--primary-darker) !important; border:1.5px solid #e3d8ee;
  padding:9px 19px; border-radius:8px; font-weight:600; font-size:14px; letter-spacing:.01em;
  white-space:nowrap; flex-shrink:0;
  box-shadow:0 1px 3px rgba(74,33,104,.06);
  transition:background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.nav-report:hover{
  background:var(--primary-tint); border-color:var(--primary-light); color:var(--primary) !important;
  box-shadow:0 4px 12px rgba(102,47,145,.14); transform:translateY(-1px);
}
.nav-report:active{ transform:translateY(0); }
.burger{display:none; flex-direction:column; gap:5px; cursor:pointer; background:none; border:none;}
.burger span{width:26px; height:3px; background:#fff; border-radius:2px;}
.mobile-menu{display:none; flex-direction:column; background:#fff; padding:18px 24px; gap:16px; border-top:1px solid rgba(102,47,145,.1);}
.mobile-menu a{font-weight:600; padding:8px 0;}
.mobile-menu a.nav-cta, .mobile-menu a.nav-report{
  text-align:center; padding:12px 30px; border-radius:8px; margin-top:4px;
}
.mobile-menu a.nav-report{ margin-top:2px; }
.mobile-menu.open{display:flex;}

/* =========================================================================
   MINIMAL HEADER — logo + four floating actions (Search, Book a Tour,
   Enquire, Menu). Menu opens the full mega-menu overlay below; Search
   drops down an inline quick-search panel under the header.
   ========================================================================= */
.nav-actions{ display:flex; align-items:center; gap:10px; }
.icon-btn{
  width:42px; height:42px; border-radius:50%; background:rgba(255,255,255,.14); border:none; color:#fff;
  display:flex; align-items:center; justify-content:center; cursor:pointer; transition:background .2s ease; flex-shrink:0;
}
.icon-btn:hover{ background:rgba(255,255,255,.28); }
.icon-btn[aria-expanded="true"]{ background:#fff; color:var(--primary); }
.pill-btn{
  display:inline-flex; align-items:center; gap:8px; padding:11px 22px; border-radius:30px;
  font-weight:700; font-size:13.5px; letter-spacing:.01em; white-space:nowrap; cursor:pointer;
  border:none; font-family:inherit; transition:transform .2s ease, box-shadow .2s ease, background .2s ease; flex-shrink:0;
}
.pill-tour{ background:var(--accent); color:#2b1a00; }
.pill-tour:hover{ background:#ffb827; transform:translateY(-1px); }
.pill-enquire{ background:rgba(255,255,255,.12); color:#fff; border:1.5px solid rgba(255,255,255,.5); }
.pill-enquire:hover{ background:rgba(255,255,255,.24); }
.pill-menu{ background:rgba(255,255,255,.14); color:#fff; }
.pill-menu:hover{ background:rgba(255,255,255,.28); }
.pill-menu[aria-expanded="true"]{ background:#fff; color:var(--primary-darker); }
.menu-bars{ display:flex; flex-direction:column; gap:3px; width:16px; flex-shrink:0; }
.menu-bars span{ display:block; height:2px; background:currentColor; border-radius:1px; }

/* Inline quick-search panel (part of the sticky header, pushes content down when open) */
.site-search{ max-height:0; overflow:hidden; background:#fff; transition:max-height .3s ease; }
.site-search.open{ max-height:70vh; overflow-y:auto; border-bottom:1px solid rgba(102,47,145,.12); }
.site-search-row{ display:flex; align-items:center; gap:12px; padding:18px 24px; max-width:1360px; margin:0 auto; }
.site-search-icon{ color:var(--primary); flex-shrink:0; }
.site-search-row input{ flex:1; border:none; outline:none; font-size:16px; font-family:inherit; color:var(--ink); background:none; min-width:0; }
.site-search-close{ background:none; border:none; font-size:18px; color:var(--gray); cursor:pointer; flex-shrink:0; padding:4px; }
.site-search-results{ max-width:1360px; margin:0 auto; padding:0 24px 16px; }
.site-search-results a{ display:block; padding:10px 4px; border-top:1px solid rgba(102,47,145,.08); color:var(--ink); }
.site-search-results a:first-child{ border-top:none; }
.site-search-results a strong{ color:var(--primary-darker); font-size:14.5px; font-weight:700; }
.site-search-results a:hover strong{ color:var(--primary); }
.site-search-empty{ padding:14px 4px; color:var(--gray); font-size:14px; }

/* Full mega-menu overlay */
.mega-menu{
  position:fixed; inset:0; z-index:2600; background:rgba(30,10,45,.55);
  opacity:0; visibility:hidden; transition:opacity .25s ease, visibility .25s ease;
}
.mega-menu.open{ opacity:1; visibility:visible; }
.mega-menu-inner{
  position:absolute; top:0; right:0; height:100%; width:min(760px, 100%); background:#fff;
  padding:90px 44px 40px; overflow-y:auto; box-shadow:-10px 0 40px rgba(0,0,0,.25);
  transform:translateX(30px); transition:transform .3s ease;
}
.mega-menu.open .mega-menu-inner{ transform:translateX(0); }
.mega-menu-close{
  position:absolute; top:24px; right:24px; width:42px; height:42px; border-radius:50%;
  background:var(--primary-tint); border:none; color:var(--primary-darker); font-size:18px; cursor:pointer;
}
.mega-menu-close:hover{ background:var(--primary); color:#fff; }
.mega-menu-cols{ display:grid; grid-template-columns:repeat(2,1fr); gap:36px 28px; margin-bottom:40px; }
.mega-menu-col h4{ margin-bottom:12px; }
.mega-menu-col h4 a{ color:var(--primary-darker); font-size:17px; font-weight:800; }
.mega-menu-col a{ display:block; color:var(--gray); font-size:14px; padding:6px 0; }
.mega-menu-col a:hover{ color:var(--primary); }
.mega-menu-utility{
  border-top:1px solid rgba(102,47,145,.12); padding-top:26px;
  display:flex; flex-wrap:wrap; gap:14px 22px; align-items:center;
}
.mega-menu-utility a, .mega-menu-utility button.utility-link{
  font-weight:600; font-size:14px; color:var(--ink); background:none; border:none; cursor:pointer; font-family:inherit;
}
.mega-menu-utility a:hover, .mega-menu-utility button.utility-link:hover{ color:var(--primary); }
.mega-menu-utility .lang-switch{ background:var(--primary-tint); border-radius:20px; padding:2px; }
.mega-menu-utility .lang-switch button{ padding:5px 12px; border-radius:16px; font-size:12.5px; color:var(--primary-darker); }
.mega-menu-utility .lang-switch button.active{ background:var(--primary); color:#fff; }
.mega-menu-utility .nav-promo{ color:#a15e00; font-weight:700; }

@media (max-width:720px){
  .mega-menu-inner{ width:100%; padding:80px 24px 32px; }
  .mega-menu-cols{ grid-template-columns:1fr; gap:26px; }
}
@media (max-width:900px){
  .nav{ padding:12px 16px; }
  .nav-actions{ gap:8px; }
  .pill-btn{ padding:9px 16px; font-size:12.5px; }
}
@media (max-width:480px){
  .pill-btn{ padding:8px 12px; font-size:11.5px; gap:5px; }
  .icon-btn{ width:36px; height:36px; }
  .brand-sub{ display:none; }
}
@media (max-width:400px){
  .nav{ padding:10px 12px; }
  .brand{ font-size:14px; gap:6px; }
  .brand img{ height:30px; }
  .nav-actions{ gap:4px; }
  .pill-btn{ padding:7px 9px; font-size:10.5px; gap:3px; border-radius:20px; }
  .icon-btn{ width:30px; height:30px; }
  .icon-btn svg{ width:16px; height:16px; }
}
@media (max-width:340px){
  .pill-enquire{ display:none; }
}

/* HERO */
.hero{
  position:relative; min-height:100vh; display:flex; align-items:center; overflow:hidden; padding-top:90px;
  background:linear-gradient(150deg, var(--primary-darker), var(--primary));
  color:#fff;
}
@supports (min-height: 100svh){ .hero{ min-height:100svh; } }
.hero-slides{ position:absolute; top:-8%; bottom:-8%; left:0; right:0; z-index:0; will-change:transform; }
.hero-slide{
  position:absolute; inset:0; background-size:cover; background-position:center; background-repeat:no-repeat;
  opacity:0; transition:opacity 1.8s ease-in-out;
}
.hero-slide.active{ opacity:1; }
.hero-inner{max-width:860px; position:relative; z-index:2; text-align:left; margin:0;}
.hero .eyebrow{background:rgba(255,255,255,.15); color:#fff;}
.hero h1{
  font-size:clamp(36px,5.5vw,58px); line-height:1.08; margin-bottom:22px;
  color:var(--primary-darker);
  text-shadow:0 0 26px rgba(255,255,255,.6), 0 0 8px rgba(255,255,255,.5);
}
.hero h1 span{color:var(--accent); text-shadow:0 0 26px rgba(255,255,255,.55), 0 0 8px rgba(255,255,255,.45);}
.hero p{
  font-size:18px; font-weight:600; max-width:640px; margin-bottom:34px;
  color:var(--primary-darker);
  text-shadow:0 0 18px rgba(255,255,255,.65), 0 0 6px rgba(255,255,255,.55);
}
.hero-actions{display:flex; gap:16px; flex-wrap:wrap;}

/* MARQUEE STRIP */
.strip{background:var(--primary-darker); color:#fff; padding:14px 0; overflow:hidden; white-space:nowrap;}
.strip-track{display:inline-flex; gap:60px; animation:scrollx 28s linear infinite; font-weight:600; font-size:14px; letter-spacing:.04em;}
.strip-track span{opacity:.9;}
@keyframes scrollx{from{transform:translateX(0);} to{transform:translateX(-50%);}}

/* ABOUT / VISION MISSION */
.about{background:var(--off);}
.vm-grid{display:grid; grid-template-columns:1fr 1fr; gap:32px;}
.vm-card{background:#fff; border-radius:16px; padding:36px; box-shadow:var(--shadow); border-top:4px solid var(--primary);}
.vm-card h3{color:var(--primary-darker); font-size:22px; margin-bottom:14px;}
.vm-card p{color:var(--gray); font-size:15.5px;}

/* PILLARS (USPs) */
.pillars-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:28px;}
.pillar{background:#fff; border-radius:16px; padding:34px 28px; box-shadow:var(--shadow); text-align:left; position:relative;}
.pillar .icon{
  width:54px; height:54px; border-radius:12px; background:var(--primary-tint); color:var(--primary);
  display:flex; align-items:center; justify-content:center; font-size:24px; margin-bottom:20px; font-weight:800;
}
.pillar h3{font-size:19px; color:var(--primary-darker); margin-bottom:12px;}
.pillar ul{display:flex; flex-direction:column; gap:9px;}
.pillar li{font-size:14.5px; color:var(--gray); padding-left:20px; position:relative;}
.pillar li:before{content:"✓"; position:absolute; left:0; color:var(--accent); font-weight:800;}

/* PROGRAMS */
.programs{background:var(--off);}
.program-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:26px;}
.program-card{
  background:#fff; border-radius:18px; overflow:hidden; box-shadow:var(--shadow);
  display:flex; flex-direction:column; transition:.3s;
}
.program-card:hover{transform:translateY(-6px); box-shadow:0 16px 36px rgba(74,33,104,.16);}
.program-top{background:var(--primary); color:#fff; padding:26px 28px; position:relative;}
.program-top .age{
  display:inline-block; background:rgba(255,255,255,.18); font-size:12.5px; font-weight:700;
  padding:5px 12px; border-radius:20px; margin-bottom:10px; letter-spacing:.03em;
}
.program-top h3{font-size:23px; margin-bottom:8px;}
.program-tags{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px;}
.program-tags span{font-size:12px; font-weight:700; background:rgba(255,255,255,.15); padding:4px 10px; border-radius:20px;}
.program-body{padding:26px 28px; flex:1; display:flex; flex-direction:column;}
.badge-oxford{
  display:inline-flex; align-items:center; gap:6px; background:#fff2d9; color:#8a5a00; font-size:12.5px;
  font-weight:700; padding:6px 12px; border-radius:20px; margin-bottom:14px; align-self:flex-start;
}
.program-body p.desc{color:var(--gray); font-size:14.5px; margin-bottom:16px;}
.program-body ul{display:flex; flex-direction:column; gap:8px;}
.program-body li{font-size:14px; color:var(--ink); padding-left:20px; position:relative;}
.program-body li:before{content:"—"; position:absolute; left:0; color:var(--primary); font-weight:700;}

/* FACILITIES CAROUSEL */
.carousel{ display:flex; align-items:center; gap:14px; }
.carousel-track-wrap{ overflow:hidden; flex:1; border-radius:14px; }
.carousel-track{ display:flex; gap:20px; transition:transform .45s cubic-bezier(.22,.7,.4,1); will-change:transform; }
.carousel-slide{ flex:0 0 calc(25% - 15px); min-width:0; }
.carousel-slide .fac-item{ margin-bottom:0; aspect-ratio:4/3; height:100%; }
.carousel-slide .fac-item img{ width:100%; height:100%; object-fit:cover; }
.carousel-arrow{
  flex-shrink:0; width:46px; height:46px; border-radius:50%; background:#fff;
  border:1.5px solid rgba(102,47,145,.15); box-shadow:var(--shadow); color:var(--primary-darker);
  font-size:20px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:background .2s ease, color .2s ease, transform .2s ease;
}
.carousel-arrow:hover:not(:disabled){ background:var(--primary); color:#fff; transform:scale(1.06); }
.carousel-arrow:disabled{ opacity:.3; cursor:not-allowed; }
@media (max-width:900px){ .carousel-slide{ flex-basis:calc(50% - 10px); } }
@media (max-width:560px){
  .carousel-slide{ flex-basis:100%; }
  .carousel-arrow{ width:38px; height:38px; font-size:16px; }
}

/* FACILITIES */
.fac-grid{columns:3 260px; column-gap:20px;}
.fac-item{break-inside:avoid; margin-bottom:20px; border-radius:14px; overflow:hidden; position:relative; box-shadow:var(--shadow); cursor:pointer;}
.fac-item img{width:100%; display:block; transition:.4s;}
.fac-item:hover img{transform:scale(1.06);}
.fac-cap{
  position:absolute; left:0; right:0; bottom:0; padding:16px; color:#fff;
  background:linear-gradient(to top, rgba(52,23,88,.9), transparent);
  font-weight:700; font-size:15px;
}

/* ACCREDITATION */
.accred{background:var(--primary-tint); text-align:center;}
.accred .section-head{margin-bottom:36px;}
.accred-row{display:flex; justify-content:center; gap:44px; flex-wrap:wrap; align-items:center;}
.accred-pill{background:#fff; padding:14px 26px; border-radius:10px; box-shadow:var(--shadow); font-weight:700; color:var(--primary-darker); font-size:14.5px;}

/* CTA BAND */
.cta-band{background:linear-gradient(120deg, var(--primary-darker), var(--primary)); color:#fff; text-align:center;}
.cta-band h2{font-size:clamp(26px,4vw,36px); margin-bottom:14px;}
.cta-band p{color:rgba(255,255,255,.85); max-width:560px; margin:0 auto 32px;}

/* GET IN TOUCH PAGE — "How Can We Help?" clickable cards */
.help-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.help-card{background:#fff; border:none; border-radius:16px; padding:30px 26px; box-shadow:var(--shadow); text-align:left; cursor:pointer; font-family:inherit; transition:transform .3s ease, box-shadow .3s ease;}
.help-card:hover{transform:translateY(-6px); box-shadow:0 16px 36px rgba(74,33,104,.16);}
.help-card .icon{font-size:30px; margin-bottom:14px; display:block;}
.help-card h3{font-size:17.5px; color:var(--primary-darker); margin-bottom:8px;}
.help-card p{font-size:14px; color:var(--gray); margin:0;}
@media (max-width:900px){ .help-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:560px){ .help-grid{grid-template-columns:1fr;} }

/* GET IN TOUCH PAGE — department email cards */
.contact-info-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px; max-width:900px; margin:0 auto;}
.contact-info-card{background:#fff; box-shadow:var(--shadow); border-radius:14px; padding:24px 26px; text-align:center;}
.contact-info-card h4{color:var(--primary-darker); font-size:15px; margin-bottom:10px;}
.contact-info-card a{display:block; font-weight:700; color:var(--primary); font-size:15px; word-break:break-word;}
@media (max-width:700px){ .contact-info-grid{grid-template-columns:1fr;} }

/* NEWSLETTER / PROMOTIONS SIGNUP */
#newsletter{background:var(--primary-tint);}
.newsletter-box{max-width:620px; margin:0 auto; text-align:center;}
.newsletter-box h2{font-size:clamp(22px,3.4vw,30px); margin:8px 0 12px;}
.newsletter-box p{color:var(--muted); margin-bottom:26px;}
.newsletter-form{display:flex; gap:12px; max-width:480px; margin:0 auto;}
.newsletter-form input{flex:1; padding:13px 16px; border-radius:10px; border:1px solid #ddd; font-size:15px; font-family:inherit;}
.newsletter-form input:focus{outline:2px solid var(--primary); outline-offset:1px;}
.newsletter-form .btn{white-space:nowrap;}
.newsletter-success{font-weight:700; color:var(--primary-darker); background:#fff; border-radius:10px; padding:16px 20px;}

/* FOOTER */
footer{background:var(--primary-darker); color:rgba(255,255,255,.75); padding:64px 0 24px;}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; margin-bottom:40px;}
.footer-brand{display:flex; align-items:center; gap:10px; margin-bottom:16px;}
.footer-brand img{height:38px; background:#fff; border-radius:6px; padding:3px;}
.footer-brand span{color:#fff; font-weight:800; font-size:17px;}
footer h4{color:#fff; font-size:15px; margin-bottom:16px;}
footer ul{display:flex; flex-direction:column; gap:10px;}
footer a{font-size:14.5px;}
footer a:hover{color:#fff;}
.footer-link-btn{background:none; border:none; padding:0; margin:0; color:rgba(255,255,255,.75); font-size:14.5px; font-family:inherit; text-align:left; cursor:pointer;}
.footer-link-btn:hover{color:#fff; text-decoration:underline;}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12); padding-top:22px; text-align:center; font-size:13.5px;}

@media (max-width: 900px){
  .nav-links{display:none;}
  .burger{display:flex;}
  /* Hide the compact header-bar Log in button on mobile — it still
     appears inside the mobile dropdown menu below. */
  .nav > .nav-report{display:none;}
  .vm-grid{grid-template-columns:1fr;}
  .pillars-grid{grid-template-columns:1fr;}
  .program-grid{grid-template-columns:1fr;}
  .fac-grid{columns:2 220px;}
  .footer-grid{grid-template-columns:1fr; gap:28px;}
  section{padding:64px 0;}
  .newsletter-form{flex-direction:column;}
}
@media (max-width:560px){
  .fac-grid{columns:1;}
  .hero-badges{gap:20px;}
}

/* =========================================================================
   MARKETING COMPONENTS — announcement bar, pop-up promo, pop-up form,
   mid-page promo banner, campaign/offer boxes, countdown timer.
   ========================================================================= */

/* Announcement bar */
.announce-bar{
  background:var(--primary-darker); color:#fff; font-size:14px; font-weight:600;
  padding:10px 44px 10px 16px; text-align:center; position:relative; line-height:1.4;
}
.announce-bar a{text-decoration:underline; text-underline-offset:2px; font-weight:700; margin-left:6px; white-space:nowrap;}
.announce-bar .announce-close{
  position:absolute; right:10px; top:50%; transform:translateY(-50%);
  background:none; border:none; color:#fff; opacity:.7; font-size:18px; cursor:pointer; line-height:1; padding:6px;
}
.announce-bar .announce-close:hover{opacity:1;}

/* Overlay used by both the promo pop-up and the enquiry form modal */
.mk-overlay{
  position:fixed; inset:0; background:rgba(36,26,46,.55); z-index:3000;
  display:flex; align-items:center; justify-content:center; padding:20px;
  opacity:0; pointer-events:none; transition:opacity .25s ease;
}
.mk-overlay.open{opacity:1; pointer-events:auto;}
.mk-modal{
  background:#fff; border-radius:18px; max-width:920px; width:100%; position:relative;
  box-shadow:0 30px 80px rgba(0,0,0,.35); overflow:hidden;
  display:grid; grid-template-columns:1fr 1fr;
  max-height:88vh; overflow-y:auto;
  transform:translateY(16px); transition:transform .25s ease;
}
.mk-overlay.open .mk-modal{transform:translateY(0);}
.mk-modal.mk-modal-narrow{grid-template-columns:1fr; max-width:460px;}
.mk-modal-media{background:var(--primary); min-height:200px;}
.mk-modal-media img{width:100%; height:100%; object-fit:cover; min-height:200px;}
.mk-modal-body{padding:38px 34px; display:flex; flex-direction:column; justify-content:center;}
.mk-modal-body .eyebrow{align-self:flex-start;}
.mk-modal-body h3{font-size:24px; color:var(--primary-darker); margin-bottom:12px;}
.mk-modal-body p{color:var(--gray); font-size:15px; margin-bottom:22px;}
.mk-modal-actions{display:flex; gap:12px; flex-wrap:wrap; align-items:center;}
.mk-dismiss-link{font-size:13.5px; color:var(--gray); font-weight:600; text-decoration:underline;}
.mk-close{
  position:absolute; top:14px; right:14px; width:34px; height:34px; border-radius:50%;
  background:rgba(36,26,46,.08); border:none; font-size:18px; cursor:pointer; color:var(--ink);
  display:flex; align-items:center; justify-content:center; z-index:2;
}
.mk-close:hover{background:rgba(36,26,46,.16);}
@media (max-width:720px){
  .mk-modal{grid-template-columns:1fr;}
  .mk-modal-media{min-height:140px;}
}

/* Photo/document lightbox — overrides the generic .mk-modal box sizing so
   full images (including tall document scans) always fit on screen instead
   of being cropped by a fixed-size modal. */
.mk-lightbox-overlay{ background:rgba(20,14,26,.88); padding:32px; }
.mk-lightbox{
  background:transparent; box-shadow:none; border-radius:0; overflow:visible;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  max-width:min(94vw, 1100px); max-height:92vh; width:auto;
  grid-template-columns:unset;
}
.mk-lightbox img{
  display:block; width:auto; height:auto;
  max-width:min(94vw, 1100px); max-height:78vh;
  object-fit:contain; border-radius:10px; background:#fff;
  box-shadow:0 24px 64px rgba(0,0,0,.5);
}
.mk-lightbox-cap{
  color:#fff; margin-top:16px; font-size:14.5px; text-align:center; max-width:640px;
}
.mk-lightbox .mk-close{
  position:fixed; top:22px; right:26px; background:rgba(255,255,255,.14); color:#fff;
}
.mk-lightbox .mk-close:hover{ background:rgba(255,255,255,.26); }
@media (max-width:720px){
  .mk-lightbox img{ max-height:70vh; }
  .mk-lightbox .mk-close{ top:14px; right:14px; }
}

/* Enquiry form */
.mk-form{display:flex; flex-direction:column; gap:14px;}
.mk-form label{font-size:13px; font-weight:700; color:var(--ink); margin-bottom:5px; display:block;}
.mk-form input, .mk-form select, .mk-form textarea{
  width:100%; padding:11px 14px; border:1.5px solid #e3dcec; border-radius:8px; font-size:14.5px;
  font-family:inherit; color:var(--ink); background:#fff;
}
.mk-form input:focus, .mk-form select:focus, .mk-form textarea:focus{outline:none; border-color:var(--primary);}
.mk-form textarea{resize:vertical; min-height:70px;}
.mk-form .mk-row-2{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
.mk-form-note{font-size:12.5px; color:var(--gray); margin-top:4px;}
.mk-form-success{display:none; text-align:center; padding:10px 0;}
.mk-form-success.show{display:block;}
.mk-form-success h4{color:var(--primary-darker); font-size:19px; margin-bottom:8px;}
.mk-form-success p{color:var(--gray); font-size:14px; margin-bottom:14px;}
.mk-copy-btn{background:var(--primary-tint); color:var(--primary-darker); border:none; padding:9px 16px; border-radius:7px; font-size:13px; font-weight:700; cursor:pointer;}

@media (max-width:720px){
  .mk-row-2{grid-template-columns:1fr;}
}

/* Mid-page promo banner */
.promo-banner{
  background:linear-gradient(120deg, var(--primary-darker), var(--primary));
  color:#fff; border-radius:22px; overflow:hidden; display:grid; grid-template-columns:1.1fr 1fr;
  box-shadow:var(--shadow);
}
.promo-banner-media{min-height:220px;}
.promo-banner-media img{width:100%; height:100%; object-fit:cover; min-height:220px;}
.promo-banner-body{padding:40px; display:flex; flex-direction:column; justify-content:center;}
.promo-banner-body .eyebrow{background:rgba(255,255,255,.16); color:#fff;}
.promo-banner-body h3{font-size:clamp(22px,3vw,30px); margin-bottom:12px;}
.promo-banner-body p{color:rgba(255,255,255,.85); margin-bottom:22px; font-size:15px;}
@media (max-width:800px){
  .promo-banner{grid-template-columns:1fr;}
  .promo-banner-media{min-height:160px;}
}

/* Campaign / offer landing page bits */
.offer-hero{
  background:linear-gradient(150deg, rgba(52,23,88,.92), rgba(102,47,145,.78));
  background-size:cover; background-position:center; color:#fff; padding:120px 0 80px; text-align:center;
}
.offer-hero .eyebrow{background:rgba(255,255,255,.16); color:#fff;}
.offer-hero h1{font-size:clamp(32px,5vw,50px); margin-bottom:16px;}
.offer-hero p{max-width:600px; margin:0 auto 30px; color:rgba(255,255,255,.88); font-size:17px;}
.countdown{display:flex; gap:16px; justify-content:center; margin:30px 0; flex-wrap:wrap;}
.countdown .cd-box{background:rgba(255,255,255,.14); border-radius:12px; padding:16px 20px; min-width:84px;}
.countdown .cd-num{font-size:30px; font-weight:800; color:var(--accent);}
.countdown .cd-lbl{font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; color:rgba(255,255,255,.75);}
.offer-details{max-width:820px; margin:0 auto;}
.offer-box{
  background:var(--off); border:2px dashed var(--primary-light); border-radius:16px; padding:30px;
  text-align:center; margin-bottom:40px;
}
.offer-box .big{font-size:44px; font-weight:800; color:var(--primary);}
.offer-box .terms{font-size:13px; color:var(--gray); margin-top:10px;}
.offer-list{display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:40px;}
.offer-list li{background:#fff; box-shadow:var(--shadow); border-radius:12px; padding:18px 20px; font-size:14.5px; padding-left:44px; position:relative;}
.offer-list li:before{content:"✓"; position:absolute; left:16px; top:18px; color:var(--accent); font-weight:800; font-size:16px;}
@media (max-width:640px){ .offer-list{grid-template-columns:1fr;} }
.back-link{display:inline-flex; align-items:center; gap:6px; color:var(--primary); font-weight:700; margin-bottom:20px;}

/* =========================================================================
   NAV / BRAND FIXES — prevent wrapping, keep header clean at all widths.
   ========================================================================= */
.nav{flex-wrap:nowrap;}
.brand{white-space:nowrap; flex-shrink:0;}
.brand img{flex-shrink:0;}
.brand-sub{font-weight:500;}
.nav-links{gap:22px; flex-wrap:nowrap;}
.nav-links a{white-space:nowrap;}
.nav-cta{white-space:nowrap; flex-shrink:0;}
@media (max-width:1180px){
  .brand-sub{display:none;}
}

/* =========================================================================
   ACCREDITATION CARDS — logo + value description for each recognition.
   ========================================================================= */
.accred-grid{
  display:grid; grid-template-columns:repeat(5, 1fr); gap:20px; margin-top:8px;
}
.accred-card{
  background:#fff; border-radius:16px; padding:26px 20px; box-shadow:var(--shadow);
  text-align:center; display:flex; flex-direction:column; align-items:center; gap:12px;
}
.accred-card .accred-logo{
  height:64px; display:flex; align-items:center; justify-content:center;
}
.accred-card .accred-logo img{max-height:64px; max-width:100%; width:auto; object-fit:contain;}
.accred-card h4{font-size:14.5px; color:var(--primary-darker); line-height:1.3;}
.accred-card p{font-size:13px; color:var(--gray); line-height:1.55;}
@media (max-width:980px){
  .accred-grid{grid-template-columns:repeat(2, 1fr);}
}
@media (max-width:560px){
  .accred-grid{grid-template-columns:1fr;}
}

/* =========================================================================
   SCHOOL TECHNOLOGY — icon + label cards for digital campus features.
   ========================================================================= */
.tech-grid{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:20px; margin-top:8px;
}
.tech-card{
  background:#fff; border-radius:16px; padding:32px 20px; box-shadow:var(--shadow);
  border-top:3px solid var(--primary-tint);
  text-align:center; display:flex; flex-direction:column; align-items:center; gap:16px;
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.tech-card:hover{
  transform:translateY(-6px); box-shadow:0 16px 36px rgba(74,33,104,.16);
  border-top-color:var(--primary);
}
.tech-card .icon{
  width:56px; height:56px; border-radius:14px; background:var(--primary-tint);
  display:flex; align-items:center; justify-content:center;
  font-size:26px; line-height:1; color:var(--primary);
}
.tech-card h4{ font-size:14.5px; font-weight:700; color:var(--ink); line-height:1.35; }
.tech-grid .tech-card:nth-child(1){ transition-delay:.03s; }
.tech-grid .tech-card:nth-child(2){ transition-delay:.08s; }
.tech-grid .tech-card:nth-child(3){ transition-delay:.13s; }
.tech-grid .tech-card:nth-child(4){ transition-delay:.18s; }
.tech-grid .tech-card:nth-child(5){ transition-delay:.23s; }
.tech-grid .tech-card:nth-child(6){ transition-delay:.28s; }
.tech-grid .tech-card:nth-child(7){ transition-delay:.33s; }
.tech-grid .tech-card:nth-child(8){ transition-delay:.38s; }
@media (max-width:900px){ .tech-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:520px){ .tech-grid{ grid-template-columns:1fr 1fr; gap:14px; } }

/* =========================================================================
   TELEGRAM CHAT BUTTON
   ========================================================================= */
.mk-chat-wrap{
  position:fixed; right:24px; bottom:24px; z-index:2500;
  display:flex; flex-direction:column; align-items:flex-end; gap:10px;
  transition:opacity .2s ease, visibility .2s ease;
}
body.menu-open .mk-chat-wrap{ opacity:0; visibility:hidden; pointer-events:none; }
.mk-chat-btn{
  width:60px; height:60px; border-radius:50%; background:#229ED9;
  box-shadow:0 10px 26px rgba(0,0,0,.28); display:flex; align-items:center; justify-content:center;
  transition:.2s ease;
}
.mk-chat-btn:hover{transform:scale(1.07);}
.mk-chat-bubble{
  background:#fff; border-radius:14px; padding:14px 40px 14px 16px; box-shadow:var(--shadow);
  max-width:240px; font-size:13.5px; color:var(--ink); position:relative;
  opacity:0; transform:translateY(8px); pointer-events:none; transition:.25s ease;
}
.mk-chat-bubble.show{opacity:1; transform:translateY(0); pointer-events:auto;}
.mk-chat-bubble-close{
  position:absolute; top:6px; right:8px; background:none; border:none;
  font-size:13px; color:var(--gray); cursor:pointer; padding:4px;
}
@media (max-width:560px){
  .mk-chat-wrap{right:16px; bottom:16px;}
  .mk-chat-bubble{max-width:190px; font-size:13px;}
  .mk-chat-btn{width:54px; height:54px;}
}

/* =========================================================================
   MOTION / ANIMATIONS
   ========================================================================= */
@keyframes mkFadeUp{
  from{ opacity:0; transform:translateY(26px); }
  to{ opacity:1; transform:translateY(0); }
}
@keyframes mkPulseRing{
  0%{ box-shadow:0 0 0 0 rgba(34,158,217,.55); }
  70%{ box-shadow:0 0 0 18px rgba(34,158,217,0); }
  100%{ box-shadow:0 0 0 0 rgba(34,158,217,0); }
}
@keyframes mkFloat{
  0%, 100%{ transform:translateY(0); }
  50%{ transform:translateY(-8px); }
}

/* Hero entrance — plays once on load, no scroll trigger needed (above the fold) */
.hero-inner > .eyebrow{ animation:mkFadeUp .7s ease both; }
.hero-inner > h1{ animation:mkFadeUp .7s ease .12s both; }
.hero-inner > p{ animation:mkFadeUp .7s ease .22s both; }
.hero-inner > .hero-actions{ animation:mkFadeUp .7s ease .32s both; }
.hero-inner > .hero-badges{ animation:mkFadeUp .7s ease .42s both; }

/* Scroll-reveal — site.js adds "in-view" via IntersectionObserver */
.reveal{
  opacity:0; transform:translateY(28px);
  transition:opacity .7s cubic-bezier(.22,.7,.4,1), transform .7s cubic-bezier(.22,.7,.4,1);
}
.reveal.in-view{ opacity:1; transform:translateY(0); }

.pillars-grid .pillar:nth-child(1){ transition-delay:.05s; }
.pillars-grid .pillar:nth-child(2){ transition-delay:.15s; }
.pillars-grid .pillar:nth-child(3){ transition-delay:.25s; }
.program-grid .program-card:nth-child(1){ transition-delay:.05s; }
.program-grid .program-card:nth-child(2){ transition-delay:.13s; }
.program-grid .program-card:nth-child(3){ transition-delay:.21s; }
.program-grid .program-card:nth-child(4){ transition-delay:.29s; }
.accred-grid .accred-card:nth-child(1){ transition-delay:.04s; }
.accred-grid .accred-card:nth-child(2){ transition-delay:.11s; }
.accred-grid .accred-card:nth-child(3){ transition-delay:.18s; }
.accred-grid .accred-card:nth-child(4){ transition-delay:.25s; }
.accred-grid .accred-card:nth-child(5){ transition-delay:.32s; }
.vm-grid .vm-card:nth-child(1){ transition-delay:.05s; }
.vm-grid .vm-card:nth-child(2){ transition-delay:.15s; }

/* Nav link underline sweep on hover */
.nav-links a:not(.nav-cta):not(.nav-promo)::after{
  content:""; position:absolute; left:0; bottom:-4px; width:0; height:2px;
  background:var(--accent); transition:width .25s ease;
}
.nav-links a:not(.nav-cta):not(.nav-promo):hover::after{ width:100%; }

/* Card lift/scale polish (in addition to existing hover transforms) */
.pillar, .vm-card, .accred-card{ transition:transform .3s ease, box-shadow .3s ease, opacity .7s cubic-bezier(.22,.7,.4,1); }
.pillar:hover, .vm-card:hover, .accred-card:hover{ transform:translateY(-6px); box-shadow:0 16px 36px rgba(74,33,104,.16); }
.fac-item{ transition:transform .3s ease, box-shadow .3s ease; }
.accred-card .accred-logo img{ transition:transform .35s ease; }
.accred-card:hover .accred-logo img{ transform:scale(1.06); }

/* Bouncier modal pop-in */
.mk-modal{
  transform:translateY(18px) scale(.97);
  transition:transform .35s cubic-bezier(.34,1.56,.64,1), opacity .25s ease;
}
.mk-overlay.open .mk-modal{ transform:translateY(0) scale(1); }

/* Telegram chat button — gentle pulse + float to draw the eye, settles after a few cycles */
.mk-chat-btn{ animation:mkPulseRing 2.4s ease-out 3, mkFloat 3.2s ease-in-out infinite; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce){
  .hero-inner > *, .reveal, .mk-chat-btn, .mk-modal{
    animation:none !important; transition:none !important; opacity:1 !important; transform:none !important;
  }
}

/* Staggered reveal for the campaign page offer checklist */
.offer-list li:nth-child(1){ transition-delay:.04s; }
.offer-list li:nth-child(2){ transition-delay:.10s; }
.offer-list li:nth-child(3){ transition-delay:.16s; }
.offer-list li:nth-child(4){ transition-delay:.22s; }
.offer-list li:nth-child(5){ transition-delay:.28s; }
.offer-list li:nth-child(6){ transition-delay:.34s; }

/* =========================================================================
   KHMER LANGUAGE SUPPORT
   ========================================================================= */
html.lang-km body,
html.lang-km input, html.lang-km textarea, html.lang-km select, html.lang-km button{
  font-family:"Noto Sans Khmer", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
html.lang-km{ line-height:1.75; }
html.lang-km .eyebrow{ letter-spacing:0; }

/* =========================================================================
   LANGUAGE SWITCHER
   ========================================================================= */
.lang-switch{
  display:flex; align-items:center; gap:2px;
  background:rgba(102,47,145,.08); border-radius:999px; padding:3px;
  margin-left:8px; flex-shrink:0;
}
.lang-switch button{
  border:none; background:transparent; cursor:pointer;
  font-size:12.5px; font-weight:700; padding:5px 10px; border-radius:999px;
  color:var(--primary); transition:background .2s ease, color .2s ease;
}
.lang-switch button.active{ background:var(--primary); color:#fff; }
.lang-switch button:not(.active):hover{ background:rgba(102,47,145,.15); }
.mobile-menu .lang-switch{ margin:6px 0 2px; align-self:flex-start; }

/* =========================================================================
   PHOTO GALLERY — "LIFE AT MAKSON"
   ========================================================================= */
.gallery-grid{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:14px; margin-top:34px;
}
.gallery-item{
  position:relative; overflow:hidden; border-radius:14px; cursor:pointer;
  aspect-ratio:1/1; background:#eee;
  box-shadow:0 6px 18px rgba(74,33,104,.10);
}
.gallery-item img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .5s ease;
}
.gallery-item:hover img{ transform:scale(1.08); }
.gallery-cap{
  position:absolute; left:0; right:0; bottom:0; padding:10px 12px 9px;
  background:linear-gradient(0deg, rgba(30,10,45,.82), rgba(30,10,45,0));
  color:#fff; font-size:12.5px; font-weight:600; line-height:1.3;
  opacity:0; transform:translateY(6px); transition:opacity .3s ease, transform .3s ease;
}
.gallery-item:hover .gallery-cap{ opacity:1; transform:translateY(0); }
@media (max-width:900px){
  .gallery-grid{ grid-template-columns:repeat(3, 1fr); }
}
@media (max-width:600px){
  .gallery-grid{ grid-template-columns:repeat(2, 1fr); gap:10px; }
  .gallery-cap{ opacity:1; transform:none; font-size:11.5px; }
}

/* =========================================================================
   THE MAKSON JOURNEY — 5 milestone story section
   ========================================================================= */
.journey-list{ margin-top:36px; display:flex; flex-direction:column; gap:22px; }
.journey-step{
  display:flex; align-items:center; gap:30px;
  background:#fff; border-radius:18px; padding:20px;
  box-shadow:0 10px 28px rgba(74,33,104,.10);
  transition:transform .3s ease, box-shadow .3s ease;
}
.journey-step:hover{ transform:translateY(-4px); box-shadow:0 18px 40px rgba(74,33,104,.16); }
.journey-step:nth-child(even){ flex-direction:row-reverse; }
.journey-media{
  flex:0 0 280px; aspect-ratio:1/1; border-radius:14px; overflow:hidden; position:relative;
  cursor:pointer;
}
.journey-media img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s ease; }
.journey-media:hover img{ transform:scale(1.05); }
.journey-body{ min-width:0; }
.journey-num{
  display:inline-flex; align-items:center; justify-content:center;
  width:32px; height:32px; border-radius:50%; background:var(--primary-tint); color:var(--primary);
  font-weight:800; font-size:14px; margin-bottom:10px;
}
.journey-body h3{ font-size:22px; margin-bottom:10px; color:var(--primary-darker); }
.journey-body p{ color:var(--gray); font-size:15px; line-height:1.6; }

/* Mobile: stack image above text (fixes long titles/descriptions getting
   clipped by the fixed 280px row layout) and drop the alternating
   row-reverse so all 5 milestones read top-to-bottom in order 1→5. */
@media (max-width:760px){
  .journey-step{ flex-direction:column; align-items:stretch; gap:16px; padding:16px; }
  .journey-step:nth-child(even){ flex-direction:column; }
  .journey-media{ flex:0 0 auto; width:100%; aspect-ratio:16/10; }
}

/* =========================================================================
   RESOURCES & DOWNLOADS — name-only animated list, gated by a request form
   ========================================================================= */
.resource-groups{ margin-top:8px; display:flex; flex-direction:column; gap:34px; }
.resource-group{ }
.resource-group-title{
  font-size:15px; font-weight:800; color:var(--primary); letter-spacing:.03em;
  margin-bottom:14px; padding-bottom:8px; border-bottom:2px solid var(--primary-tint);
}
.resource-list{ display:flex; flex-direction:column; gap:10px; }
.resource-row{ }
.resource-link{
  width:100%; display:flex; align-items:center; gap:14px;
  background:#fff; border:1.5px solid #ece5f4; border-radius:12px;
  padding:15px 18px; cursor:pointer; text-align:left; font-family:inherit;
  box-shadow:0 2px 10px rgba(74,33,104,.05);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.resource-link:hover, .resource-link:focus-visible{
  transform:translateX(6px); border-color:var(--primary-tint);
  background:var(--primary-tint); box-shadow:0 10px 24px rgba(74,33,104,.14);
  outline:none;
}
.resource-link-icon{ font-size:19px; flex:0 0 auto; }
.resource-link-name{ flex:1; font-size:15.5px; font-weight:600; color:var(--ink); }
.resource-link-arrow{
  flex:0 0 auto; font-size:17px; color:var(--primary); font-weight:700;
  transform:translateX(-4px); opacity:0; transition:transform .25s ease, opacity .25s ease;
}
.resource-link:hover .resource-link-arrow, .resource-link:focus-visible .resource-link-arrow{
  transform:translateX(0); opacity:1;
}

/* Staggered reveal for each resource row within its group */
.resource-list li:nth-child(1){ transition-delay:.04s; }
.resource-list li:nth-child(2){ transition-delay:.09s; }
.resource-list li:nth-child(3){ transition-delay:.14s; }

/* Report System — Teacher / Parent / Student role picker */
.role-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; margin-top:18px; }
.role-btn{
  display:flex; flex-direction:column; align-items:center; gap:8px;
  background:#fff; border:1.5px solid #ece5f4; border-radius:12px;
  padding:20px 12px; cursor:pointer; font-family:inherit; font-weight:700; font-size:14.5px;
  color:var(--ink); box-shadow:0 2px 10px rgba(74,33,104,.05);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.role-btn .icon{ font-size:28px; }
.role-btn:hover, .role-btn:focus-visible{
  transform:translateY(-4px); border-color:var(--primary-tint);
  background:var(--primary-tint); box-shadow:0 10px 24px rgba(74,33,104,.14);
  outline:none;
}
@media (max-width:520px){
  .role-grid{ grid-template-columns:1fr; }
}
.resource-list li:nth-child(4){ transition-delay:.19s; }
.resource-list li:nth-child(5){ transition-delay:.24s; }
.resource-list li:nth-child(6){ transition-delay:.29s; }

/* Resource-request modal doc title (set dynamically by site.js) */
#mkResourceDocTitle{ min-height:1.3em; }
.mk-form-success .btn{ width:100%; }

/* =========================================================================
   CAMPUS VIDEO
   ========================================================================= */
.video-wrap{
  max-width:880px; margin:36px auto 0; border-radius:18px; overflow:hidden;
  box-shadow:0 20px 50px rgba(74,33,104,.18); background:#000; line-height:0;
}
.video-wrap video{ width:100%; height:auto; display:block; }

/* =========================================================================
   CAMPUS LOCATIONS
   ========================================================================= */
.campus-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:24px; margin-top:36px;
}
.campus-card{
  background:#fff; border-radius:16px; overflow:hidden; box-shadow:var(--shadow);
  transition:transform .3s ease, box-shadow .3s ease;
}
.campus-card:hover{ transform:translateY(-6px); box-shadow:0 16px 36px rgba(74,33,104,.16); }
.campus-card iframe{
  width:100%; height:220px; border:0; display:block; background:var(--off);
}
.campus-card-body{ padding:20px 22px 24px; }
.campus-card-body h3{ font-size:17px; font-weight:700; color:var(--ink); margin-bottom:8px; }
.campus-card-body p{ font-size:14px; color:var(--gray); line-height:1.55; margin-bottom:14px; }
.campus-directions{
  display:inline-flex; align-items:center; gap:6px; font-weight:700; font-size:14px;
  color:var(--primary); text-decoration:none; transition:gap .2s ease, color .2s ease;
}
.campus-directions:hover{ gap:10px; color:var(--primary-dark); }
@media (max-width:760px){
  .campus-grid{ grid-template-columns:1fr; }
}

/* =========================================================================
   FAQ ACCORDION
   ========================================================================= */
.faq-list{ max-width:820px; margin:36px auto 0; display:flex; flex-direction:column; gap:14px; }
.faq-item{
  background:#fff; border:1.5px solid #ece5f4; border-radius:14px; overflow:hidden;
  transition:border-color .25s ease, box-shadow .25s ease;
}
.faq-item.open{ border-color:var(--primary-tint); box-shadow:0 10px 28px rgba(74,33,104,.12); }
.faq-question{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px;
  background:none; border:0; cursor:pointer; font-family:inherit; text-align:left;
  padding:20px 22px; font-size:15.5px; font-weight:700; color:var(--ink);
}
.faq-question span:first-child{ flex:1; }
.faq-chevron{
  flex-shrink:0; font-size:18px; color:var(--primary); transition:transform .3s ease;
  line-height:1;
}
.faq-item.open .faq-chevron{ transform:rotate(180deg); }
.faq-answer{
  max-height:0; overflow:hidden; transition:max-height .35s ease, opacity .3s ease, padding .3s ease;
  opacity:0; padding:0 22px;
}
.faq-answer p{ font-size:14.5px; color:var(--gray); line-height:1.6; padding-bottom:20px; }
.faq-item.open .faq-answer{ opacity:1; }

/* =========================================================================
   SCHOOL HIGHLIGHTS — quick stat band
   ========================================================================= */
#highlights{
  background:linear-gradient(120deg, var(--primary-darker), var(--primary));
  padding:52px 0;
}
.stats-grid{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:24px; text-align:center;
}
.stat-item{ color:#fff; }
.stat-num{ font-size:clamp(28px,4vw,40px); font-weight:800; color:var(--accent); line-height:1.1; margin-bottom:8px; }
.stat-lbl{ font-size:14px; color:rgba(255,255,255,.85); letter-spacing:.02em; }
@media (max-width:760px){
  .stats-grid{ grid-template-columns:repeat(2, 1fr); gap:28px 20px; }
}

/* =========================================================================
   PRINCIPAL'S MESSAGE
   ========================================================================= */
.principal-card{
  max-width:900px; margin:36px auto 0; background:#fff; border-radius:20px;
  box-shadow:var(--shadow); padding:44px; display:flex; gap:32px; align-items:flex-start;
}
.principal-avatar{
  flex:0 0 90px; width:90px; height:90px; border-radius:50%; background:var(--primary-tint);
  display:flex; align-items:center; justify-content:center; font-size:40px;
}
.principal-body{ min-width:0; }
.principal-quote{
  font-size:16.5px; line-height:1.75; color:var(--ink); font-style:italic; margin-bottom:20px;
}
.principal-name{ font-size:17px; font-weight:800; color:var(--primary-darker); }
.principal-title{ font-size:14px; color:var(--gray); margin-top:2px; }
@media (max-width:700px){
  .principal-card{ flex-direction:column; align-items:center; text-align:center; padding:30px 24px; }
}

/* =========================================================================
   SCHOOL LEADERSHIP
   ========================================================================= */
.leadership-grid{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:24px; margin-top:36px;
}
.leadership-card{
  background:#fff; border-radius:16px; padding:32px 20px; box-shadow:var(--shadow);
  text-align:center; display:flex; flex-direction:column; align-items:center; gap:10px;
  transition:transform .3s ease, box-shadow .3s ease;
}
.leadership-card:hover{ transform:translateY(-6px); box-shadow:0 16px 36px rgba(74,33,104,.16); }
.leadership-avatar{
  width:64px; height:64px; border-radius:50%; background:var(--primary-tint);
  display:flex; align-items:center; justify-content:center; font-size:28px; margin-bottom:6px;
}
.leadership-card h4{ font-size:15.5px; color:var(--primary-darker); line-height:1.35; }
.leadership-card p{ font-size:13px; color:var(--gray); font-style:italic; }
@media (max-width:900px){
  .leadership-grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:520px){
  .leadership-grid{ grid-template-columns:1fr; }
}

/* =========================================================================
   SCHOOL POLICIES
   ========================================================================= */
.policy-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; margin-top:36px;
}
.policy-card{
  background:#fff; border-radius:16px; padding:30px 26px; box-shadow:var(--shadow);
  border-top:3px solid var(--primary-tint);
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.policy-card:hover{
  transform:translateY(-6px); box-shadow:0 16px 36px rgba(74,33,104,.16); border-top-color:var(--primary);
}
.policy-card .icon{
  width:52px; height:52px; border-radius:12px; background:var(--primary-tint);
  display:flex; align-items:center; justify-content:center; font-size:24px; margin-bottom:16px;
}
.policy-card h4{ font-size:16.5px; color:var(--primary-darker); margin-bottom:10px; }
.policy-card p{ font-size:13.5px; color:var(--gray); line-height:1.6; }
@media (max-width:900px){
  .policy-grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:560px){
  .policy-grid{ grid-template-columns:1fr; }
}

/* =========================================================================
   AI CHATBOT WIDGET
   ========================================================================= */
.mk-chat-btn{ cursor:pointer; border:none; padding:0; }
.mk-chatbot-panel{
  position:absolute; right:0; bottom:76px; width:340px; max-width:calc(100vw - 48px);
  background:#fff; border-radius:16px; box-shadow:0 20px 50px rgba(0,0,0,.28);
  display:flex; flex-direction:column; overflow:hidden;
  opacity:0; transform:translateY(12px) scale(.97); pointer-events:none;
  transition:opacity .22s ease, transform .22s ease;
  max-height:min(70vh, 520px);
}
.mk-chatbot-panel.open{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.mk-chatbot-header{
  background:linear-gradient(120deg, var(--primary-darker), var(--primary)); color:#fff;
  padding:16px 18px; display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
}
.mk-chatbot-title{ font-weight:800; font-size:15.5px; }
.mk-chatbot-subtitle{ font-size:12.5px; color:rgba(255,255,255,.8); margin-top:2px; }
.mk-chatbot-close{
  background:rgba(255,255,255,.16); border:none; color:#fff; width:26px; height:26px; border-radius:50%;
  cursor:pointer; font-size:13px; flex-shrink:0; display:flex; align-items:center; justify-content:center;
}
.mk-chatbot-close:hover{ background:rgba(255,255,255,.28); }
.mk-chatbot-body{
  padding:16px; overflow-y:auto; flex:1; display:flex; flex-direction:column; gap:10px;
  background:var(--off); min-height:120px;
}
.mk-chatbot-msg{
  max-width:85%; padding:10px 14px; border-radius:14px; font-size:13.5px; line-height:1.5;
}
.mk-chatbot-msg-bot{
  background:#fff; color:var(--ink); align-self:flex-start; box-shadow:0 2px 8px rgba(74,33,104,.08);
  border-bottom-left-radius:4px;
}
.mk-chatbot-msg-user{
  background:var(--primary); color:#fff; align-self:flex-end; border-bottom-right-radius:4px;
}
.mk-chatbot-questions{
  display:flex; flex-wrap:wrap; gap:8px; padding:12px 16px; border-top:1px solid #ece5f4;
  max-height:150px; overflow-y:auto;
}
.mk-chatbot-chip{
  background:var(--primary-tint); color:var(--primary-darker); border:none; border-radius:16px;
  padding:7px 13px; font-size:12.5px; font-weight:600; cursor:pointer; text-align:left;
  transition:background .2s ease, color .2s ease;
}
.mk-chatbot-chip:hover{ background:var(--primary); color:#fff; }
.mk-chatbot-agent-btn{
  display:flex; align-items:center; justify-content:center; gap:8px;
  background:#229ED9; color:#fff !important; font-weight:700; font-size:13.5px;
  padding:13px 16px; text-decoration:none; transition:background .2s ease;
}
.mk-chatbot-agent-btn:hover{ background:#1c86ba; }
@media (max-width:560px){
  .mk-chatbot-panel{ width:calc(100vw - 32px); right:-8px; }
}

/* Open state: the floating button is hidden and the panel drops to the
   bottom corner, taller so the conversation and menu are easier to read. */
.mk-chat-wrap.chat-open .mk-chat-btn,
.mk-chat-wrap.chat-open .mk-chat-bubble{ display:none; }
.mk-chat-wrap.chat-open .mk-chatbot-panel{
  bottom:0; width:390px; height:min(82vh, 700px); max-height:none;
}
.mk-chat-wrap.chat-open .mk-chatbot-body{ min-height:0; font-size:14px; }
.mk-chat-wrap.chat-open .mk-chatbot-msg{ font-size:14.5px; }
.mk-chat-wrap.chat-open .mk-chatbot-questions{ max-height:260px; }
@media (max-width:560px){
  .mk-chat-wrap.chat-open .mk-chatbot-panel{ width:calc(100vw - 32px); max-width:none; right:0; height:min(86svh, 700px); }
}

/* Board / leadership cards — portrait revealed on hover */
.board-card .board-photo{
  position:absolute; inset:0; z-index:2; opacity:0; pointer-events:none;
  transition:opacity .35s ease; background:var(--primary-darker);
}
.board-card .board-photo img{
  width:100%; height:100%; object-fit:cover; object-position:center 20%; display:block;
  transform:scale(1.04); transition:transform .6s ease;
}
.board-card .board-photo-cap{
  position:absolute; left:0; right:0; bottom:0; padding:44px 18px 16px; color:#fff;
  background:linear-gradient(to top, rgba(30,10,45,.92), rgba(30,10,45,0));
  display:flex; flex-direction:column; gap:3px;
}
.board-card .board-photo-cap strong{ font-size:16px; line-height:1.25; }
.board-card .board-photo-cap span{
  font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--accent);
}
.board-card.has-photo:hover .board-photo,
.board-card.has-photo:focus-visible .board-photo,
.board-card.has-photo.photo-on .board-photo{ opacity:1; }
.board-card.has-photo:hover .board-photo img,
.board-card.has-photo:focus-visible .board-photo img,
.board-card.has-photo.photo-on .board-photo img{ transform:scale(1); }
.board-card.has-photo{ cursor:pointer; }

/* Typing indicator — three bouncing dots shown while the bot "types" */
.mk-chatbot-typing{ display:flex; align-items:center; gap:4px; padding:14px !important; }
.mk-chatbot-typing span{
  width:6px; height:6px; border-radius:50%; background:var(--gray); opacity:.5;
  animation:mkTypingBounce 1s infinite ease-in-out;
}
.mk-chatbot-typing span:nth-child(2){ animation-delay:.15s; }
.mk-chatbot-typing span:nth-child(3){ animation-delay:.3s; }
@keyframes mkTypingBounce{
  0%, 60%, 100%{ transform:translateY(0); opacity:.5; }
  30%{ transform:translateY(-4px); opacity:1; }
}

/* =========================================================================
   V6 REDESIGN — utility bar, mega nav, page heroes, and shared components
   used across the new About / Learning / School Life / Admissions / News
   / Contact pages. Existing classes above are untouched.
   ========================================================================= */

h1,h2,h3,h4,.brand,.nav-links a,.nav-cta,.btn{ font-family:"Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
[id]{ scroll-margin-top:118px; }

/* Utility bar (thin strip above the main header) */
.utility-bar{ background:var(--primary-darker); color:rgba(255,255,255,.82); font-size:13px; position:relative; z-index:1001; }
.utility-bar .container{ display:flex; align-items:center; justify-content:space-between; gap:20px; padding:8px 24px; }
.utility-left, .utility-right{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.utility-bar a, .utility-bar button.utility-link{
  color:rgba(255,255,255,.82); font-weight:600; font-size:12.5px; background:none; border:none;
  cursor:pointer; font-family:inherit; display:inline-flex; align-items:center; gap:5px; white-space:nowrap;
}
.utility-bar a:hover, .utility-bar button.utility-link:hover{ color:#fff; }
.utility-bar .lang-switch{ background:rgba(255,255,255,.12); border-radius:20px; padding:2px; }
.utility-bar .lang-switch button{ color:rgba(255,255,255,.75); padding:3px 10px; font-size:11.5px; border-radius:16px; }
.utility-bar .lang-switch button.active{ background:#fff; color:var(--primary-darker); }
.utility-bar .nav-item{ position:static; }
.utility-bar .dropdown-menu{ top:calc(100% + 8px); }
@media (max-width:900px){ .utility-bar{ display:none; } }

/* Mega-nav dropdowns (desktop) */
.nav-item{ position:relative; }
.nav-item > a{ display:inline-flex; align-items:center; gap:5px; }
.nav-item > a:after{ content:"▾"; font-size:9px; opacity:.6; position:relative; top:1px; }
.dropdown-menu{
  position:absolute; top:100%; left:50%; transform:translateX(-50%) translateY(6px);
  background:#fff; border-radius:12px; box-shadow:0 18px 40px rgba(52,23,88,.18);
  padding:10px; min-width:270px; display:grid; gap:2px;
  opacity:0; visibility:hidden; pointer-events:none; transition:opacity .18s ease, transform .18s ease;
  z-index:1100; text-align:left;
}
.nav-item:hover .dropdown-menu, .nav-item:focus-within .dropdown-menu{
  opacity:1; visibility:visible; pointer-events:auto; transform:translateX(-50%) translateY(0);
}
.dropdown-menu a{ display:block; padding:9px 14px; border-radius:8px; font-size:14px; font-weight:600; color:var(--ink); white-space:nowrap; }
.dropdown-menu a:hover{ background:var(--primary-tint); color:var(--primary); }

/* Mobile collapsible submenus */
.mobile-menu details{ border-bottom:1px solid rgba(102,47,145,.08); }
.mobile-menu details > a{ padding:8px 0; }
.mobile-menu summary{ font-weight:600; padding:10px 0; cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; }
.mobile-menu summary::-webkit-details-marker{ display:none; }
.mobile-menu summary:after{ content:"+"; font-size:18px; color:var(--primary); }
.mobile-menu details[open] summary:after{ content:"–"; }
.mobile-menu .sub-links{ display:flex; flex-direction:column; gap:2px; padding:0 0 10px 12px; }
.mobile-menu .sub-links a{ font-weight:500; font-size:14px; padding:6px 0; color:var(--gray); }

/* Page hero for subpages */
.page-hero{
  background:linear-gradient(150deg, rgba(52,23,88,.94), rgba(102,47,145,.8)) center/cover no-repeat;
  color:#fff; padding:78px 0 60px; text-align:center;
}
.page-hero .eyebrow{ background:rgba(255,255,255,.16); color:#fff; }
.page-hero h1{ font-size:clamp(30px,4.6vw,48px); margin-bottom:14px; }
.page-hero p{ max-width:700px; margin:0 auto; color:rgba(255,255,255,.9); font-size:17px; }
.page-hero .hero-actions{ justify-content:center; margin-top:26px; }
.breadcrumb{ font-size:13px; color:rgba(255,255,255,.72); margin-bottom:16px; }
.breadcrumb a{ color:rgba(255,255,255,.88); font-weight:600; }
.breadcrumb a:hover{ color:#fff; }

/* Quick-nav pill row under a page hero */
.quicknav{ background:var(--off); border-bottom:1px solid rgba(102,47,145,.08); padding:16px 0; }
.quicknav .container{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.quicknav a{ background:#fff; border:1px solid rgba(102,47,145,.15); color:var(--primary-darker); font-size:13.5px; font-weight:700; padding:8px 16px; border-radius:20px; transition:.2s; }
.quicknav a:hover{ background:var(--primary); color:#fff; border-color:var(--primary); }

/* Small stage / category pill */
.stage-pill{ display:inline-flex; align-items:center; gap:6px; background:var(--primary-tint); color:var(--primary-darker); font-size:12.5px; font-weight:700; padding:5px 12px; border-radius:20px; }

/* Data tables (pathway, languages, fees, age & entry, key dates, etc.) */
.data-table-wrap{ overflow-x:auto; border-radius:16px; box-shadow:var(--shadow); background:#fff; margin:28px 0; }
.data-table{ width:100%; border-collapse:collapse; min-width:640px; }
.data-table th, .data-table td{ padding:14px 18px; text-align:left; font-size:14.5px; border-bottom:1px solid rgba(102,47,145,.08); vertical-align:top; }
.data-table th{ background:var(--primary-darker); color:#fff; font-weight:700; font-size:12.5px; text-transform:uppercase; letter-spacing:.03em; }
.data-table tr:last-child td{ border-bottom:none; }
.data-table tbody tr:hover{ background:var(--off); }
.data-table td strong{ color:var(--primary-darker); }
.data-table caption{ caption-side:top; text-align:left; font-weight:700; color:var(--primary-darker); padding:16px 18px 0; font-size:15px; }

/* Callout / notice box — used for items pending confirmation */
.notice-box{ background:#fff8e6; border:1.5px dashed #e0ad2c; border-radius:14px; padding:18px 22px; font-size:14px; color:#7a5b00; display:flex; gap:12px; align-items:flex-start; margin:24px 0; }
.notice-box .notice-icon{ font-size:18px; flex-shrink:0; }
.notice-box strong{ color:#5c4400; }

/* Board & leadership grid */
.board-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:20px; }
.board-card{ background:#fff; border-radius:14px; padding:22px; box-shadow:var(--shadow); border-left:4px solid var(--primary); }
.board-card h4{ color:var(--primary-darker); font-size:15.5px; margin-bottom:4px; }
.board-card .role{ color:#a15e00; font-weight:700; font-size:12px; text-transform:uppercase; letter-spacing:.03em; margin-bottom:8px; display:block; }
.board-card p{ color:var(--gray); font-size:13.5px; }

/* Generic three-across grid (values, promise pillars, etc.) */
.tri-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
@media (max-width:900px){ .tri-grid{ grid-template-columns:1fr; } }

/* Vertical timeline (learning pathway, admissions steps, improvement cycle) */
.timeline{ display:flex; flex-direction:column; gap:0; }
.timeline-step{ display:grid; grid-template-columns:56px 1fr; gap:20px; padding-bottom:34px; position:relative; }
.timeline-step:not(:last-child):before{ content:""; position:absolute; left:27px; top:52px; bottom:-4px; width:2px; background:rgba(102,47,145,.15); }
.timeline-num{ width:56px; height:56px; border-radius:50%; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:18px; flex-shrink:0; }
.timeline-body h3{ color:var(--primary-darker); font-size:18px; margin-bottom:6px; }
.timeline-body p{ color:var(--gray); font-size:14.5px; }

/* Safeguarding / DSL contact grid */
.dsl-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:18px; }
.dsl-card{ background:#fff; border-radius:14px; padding:20px; box-shadow:var(--shadow); }
.dsl-card h4{ color:var(--primary-darker); font-size:15px; margin-bottom:8px; }
.dsl-card p{ font-size:13.5px; color:var(--gray); margin:2px 0; }

/* Icon + short-text info cards (Key Information, Student Services, etc.) */
.info-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:22px; }
.info-card{ background:#fff; border-radius:16px; padding:26px; box-shadow:var(--shadow); }
.info-card .icon{ font-size:26px; margin-bottom:12px; display:block; }
.info-card h4{ color:var(--primary-darker); font-size:16px; margin-bottom:8px; }
.info-card p{ font-size:14px; color:var(--gray); }

/* News & Stories category grid */
.news-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:24px; }
.news-card{ background:#fff; border-radius:16px; padding:28px; box-shadow:var(--shadow); border-top:4px solid var(--accent); }
.news-card h3{ color:var(--primary-darker); font-size:18px; margin-bottom:8px; }
.news-card p{ color:var(--gray); font-size:14px; }

/* Extra meta row inside a campus card (director / phone / programmes) */
.campus-card .campus-meta{ display:flex; flex-wrap:wrap; gap:6px 14px; margin:10px 0 4px; font-size:13px; color:var(--gray); }
.campus-card .campus-meta span{ display:inline-flex; align-items:center; gap:5px; }

/* Founder / leadership quote block */
.quote-block{ background:var(--primary-tint); border-radius:20px; padding:40px; margin:36px 0; }
.quote-block p{ font-size:18px; font-style:italic; color:var(--primary-darker); line-height:1.6; margin-bottom:16px; }
.quote-block .who{ font-weight:700; color:var(--ink); font-size:14.5px; }

/* Centered prose block for long-form narrative copy */
.prose{ max-width:820px; margin:0 auto; }
.prose p{ color:var(--gray); font-size:16px; margin-bottom:18px; line-height:1.75; }
.prose h3{ color:var(--primary-darker); font-size:20px; margin:28px 0 12px; }

/* Fee toggle summary card */
.fee-summary{ background:#fff; border-radius:16px; box-shadow:var(--shadow); padding:26px 30px; margin:26px 0; }
.fee-summary .total{ font-size:26px; font-weight:800; color:var(--primary-darker); }
.fee-summary .terms{ font-size:13.5px; color:var(--gray); margin-top:8px; }

/* Consistent hover lift — matches the treatment already used by
   .pillar/.vm-card/.accred-card/.program-card/.tech-card/.campus-card/etc. */
.info-card, .board-card, .dsl-card, .news-card, .contact-info-card{
  transition:transform .3s ease, box-shadow .3s ease;
}
.info-card:hover, .board-card:hover, .dsl-card:hover, .news-card:hover, .contact-info-card:hover{
  transform:translateY(-6px); box-shadow:0 16px 36px rgba(74,33,104,.16);
}

@media (max-width:900px){
  .board-grid, .dsl-grid, .info-grid, .news-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:600px){
  .board-grid, .dsl-grid, .info-grid, .news-grid{ grid-template-columns:1fr; }
  .quicknav a{ font-size:12.5px; padding:7px 13px; }
  .fee-summary{ padding:22px; }
}

/* Hover-lift fix: .reveal.in-view sets transform:translateY(0) at equal
   specificity and later in the file, which was silently cancelling every
   card's :hover lift. These higher-specificity rules restore it. */
.reveal.in-view:is(.program-card,.pillar,.vm-card,.accred-card,.info-card,.board-card,.dsl-card,.news-card,.contact-info-card,.tech-card,.campus-card,.leadership-card,.policy-card,.help-card,.glance-item,.value-card,.grad-card){
  transition:transform .3s ease, box-shadow .3s ease, opacity .7s ease; transition-delay:0s;
}
.reveal.in-view:is(.program-card,.pillar,.vm-card,.accred-card,.info-card,.board-card,.dsl-card,.news-card,.contact-info-card,.tech-card,.campus-card,.leadership-card,.policy-card,.help-card,.glance-item,.value-card,.grad-card):hover{
  transform:translateY(-8px); box-shadow:0 18px 40px rgba(74,33,104,.18);
}

/* Paged carousel (one full page per slide, e.g. 8-photo gallery pages) */
.carousel-pages .carousel-slide{ flex:0 0 100%; }
.carousel-pages .gallery-grid{ margin-top:0; }


/* =========================================================================
   FLOATING HEADER — transparent over covers; solid purple once scrolled
   ========================================================================= */
.brand{ text-shadow:0 2px 10px rgba(0,0,0,.45); }
.brand img{ filter:drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
header:not(.scrolled) .icon-btn,
header:not(.scrolled) .pill-enquire,
header:not(.scrolled) .pill-menu{ background:rgba(30,10,45,.5); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); }
header:not(.scrolled) .pill-enquire{ border-color:rgba(255,255,255,.7); }
header.scrolled .brand, header.scrolled .brand img{ text-shadow:none; filter:none; }

/* Photo page-hero (subpages) */
.page-hero{ padding:150px 0 90px; position:relative; overflow:hidden; background-size:cover; background-position:center; }
.page-hero.has-photo::before{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(20,8,35,.55) 0%, rgba(20,8,35,.38) 45%, rgba(20,8,35,.62) 100%); }
.page-hero.has-photo > .container{ position:relative; z-index:1; }
.page-hero.has-photo h1, .page-hero.has-photo p{ text-shadow:0 2px 16px rgba(0,0,0,.55); }
.offer-hero{ padding:150px 0 80px; }

/* Reveal variants */
.reveal.reveal-left:not(.in-view){ transform:translateX(-46px); }
.reveal.reveal-right:not(.in-view){ transform:translateX(46px); }
.reveal.reveal-zoom:not(.in-view){ transform:scale(.92); }
.section-head h2{ position:relative; padding-bottom:16px; }
.section-head h2::after{ content:""; position:absolute; left:50%; bottom:0; width:0; height:4px; border-radius:3px; background:linear-gradient(90deg,var(--accent),var(--primary)); transform:translateX(-50%); transition:width .9s cubic-bezier(.22,.7,.4,1) .3s; }
.section-head.in-view h2::after{ width:72px; }

/* Split section: photo + text */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; margin:0 auto; }
.split.reverse .split-media{ order:2; }
.split-media{ position:relative; }
.split-media::before{ content:""; position:absolute; inset:18px -18px -18px 18px; border-radius:22px; border:3px solid var(--accent); opacity:.55; z-index:0; transition:transform .5s ease; }
.split.reverse .split-media::before{ inset:18px 18px -18px -18px; }
.split-media:hover::before{ transform:translate(6px,6px); }
.split-media .photo-frame{ position:relative; z-index:1; border-radius:20px; overflow:hidden; box-shadow:0 22px 50px rgba(74,33,104,.25); aspect-ratio:4/3; }
.split-media img{ width:100%; height:100%; object-fit:cover; transition:transform 1.2s cubic-bezier(.22,.7,.4,1); }
.split-media:hover img{ transform:scale(1.07); }
.split-text h2, .split-text h3{ color:var(--primary-darker); font-size:clamp(26px,3.4vw,36px); margin-bottom:14px; }
.split-text p{ color:var(--gray); font-size:16.5px; margin-bottom:14px; line-height:1.75; }
.split-text .eyebrow{ margin-bottom:14px; }
@media (max-width:900px){ .split{ grid-template-columns:1fr; gap:34px; } .split.reverse .split-media{ order:0; } .split-media::before{ display:none; } }

/* Parallax photo band */
.photo-band{ position:relative; min-height:380px; display:flex; align-items:center; justify-content:center; text-align:center; color:#fff; padding:80px 24px; background-size:cover; background-position:center; background-attachment:fixed; overflow:hidden; }
.photo-band::before{ content:""; position:absolute; inset:0; background:linear-gradient(120deg, rgba(20,8,35,.68), rgba(102,47,145,.45)); }
.photo-band > *{ position:relative; z-index:1; max-width:820px; }
.photo-band h2{ font-size:clamp(26px,4.2vw,44px); line-height:1.2; margin-bottom:12px; text-shadow:0 2px 16px rgba(0,0,0,.5); }
.photo-band h2 span{ color:var(--accent); }
.photo-band p{ font-size:18px; color:rgba(255,255,255,.92); text-shadow:0 2px 12px rgba(0,0,0,.5); }
@media (max-width:900px){ .photo-band{ background-attachment:scroll; min-height:300px; } }

/* Photo tiles (Learning in Action) */
.photo-tiles{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.photo-tile{ position:relative; border-radius:20px; overflow:hidden; aspect-ratio:4/5; box-shadow:var(--shadow); display:block; color:#fff; }
.photo-tile img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform 1s cubic-bezier(.22,.7,.4,1); }
.photo-tile::after{ content:""; position:absolute; inset:0; background:linear-gradient(0deg, rgba(20,8,35,.85) 0%, rgba(20,8,35,0) 60%); }
.photo-tile:hover img{ transform:scale(1.1); }
.photo-tile-body{ position:absolute; left:0; right:0; bottom:0; padding:24px; z-index:1; transform:translateY(8px); transition:transform .4s ease; }
.photo-tile:hover .photo-tile-body{ transform:translateY(0); }
.photo-tile h3{ font-size:20px; margin-bottom:6px; }
.photo-tile p{ font-size:14px; color:rgba(255,255,255,.88); }
.photo-tile .tile-link{ display:inline-block; margin-top:10px; font-weight:700; font-size:13.5px; color:var(--accent); }
@media (max-width:900px){ .photo-tiles{ grid-template-columns:1fr; } .photo-tile{ aspect-ratio:16/10; } }

/* News category cards with photo header */
.news-card.has-photo{ padding:0; overflow:hidden; border-top:none; }
.news-card.has-photo .news-photo{ height:190px; overflow:hidden; }
.news-card.has-photo .news-photo img{ width:100%; height:100%; object-fit:cover; transition:transform 1s ease; }
.news-card.has-photo:hover .news-photo img{ transform:scale(1.1); }
.news-card.has-photo .news-body{ padding:24px 26px 28px; border-top:4px solid var(--accent); }

/* Inline photo row */
.photo-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin:34px 0 0; }
.photo-row .photo-frame{ border-radius:18px; overflow:hidden; aspect-ratio:4/3; box-shadow:var(--shadow); }
.photo-row img{ width:100%; height:100%; object-fit:cover; transition:transform 1s ease; }
.photo-row .photo-frame:hover img{ transform:scale(1.1); }
@media (max-width:700px){ .photo-row{ grid-template-columns:1fr; } }

/* Fee estimator */
.estimator{ background:#fff; border-radius:22px; box-shadow:var(--shadow); padding:34px; margin:34px 0; border-top:5px solid var(--accent); }
.estimator h3{ color:var(--primary-darker); font-size:22px; margin-bottom:6px; }
.estimator-grid{ display:grid; grid-template-columns:1fr 1fr; gap:22px; margin:20px 0; }
.estimator label{ display:block; font-weight:700; font-size:13.5px; color:var(--primary-darker); margin-bottom:8px; }
.estimator select{ width:100%; padding:12px 14px; border-radius:10px; border:1.5px solid #ddd; font-family:inherit; font-size:15px; background:#fff; }
.seg{ display:flex; background:var(--primary-tint); border-radius:30px; padding:4px; }
.seg button{ flex:1; border:none; background:none; padding:10px 8px; border-radius:26px; font-weight:700; font-size:13.5px; color:var(--primary-darker); cursor:pointer; font-family:inherit; transition:.2s; }
.seg button.active{ background:var(--primary); color:#fff; box-shadow:0 4px 12px rgba(102,47,145,.3); }
.est-lines{ border-top:1px dashed #ddd; padding-top:16px; }
.est-line{ display:flex; justify-content:space-between; padding:6px 0; color:var(--gray); font-size:15px; }
.est-total{ display:flex; justify-content:space-between; align-items:center; padding:16px 20px; margin-top:12px; background:linear-gradient(120deg,var(--primary-darker),var(--primary)); color:#fff; border-radius:14px; font-weight:800; font-size:20px; }
.est-note{ font-size:12.5px; color:var(--gray); margin-top:12px; }
@media (max-width:700px){ .estimator{ padding:24px 20px; } .estimator-grid{ grid-template-columns:1fr; } }

/* Contact page enquiry form */
.enq-form{ background:#fff; border-radius:22px; box-shadow:var(--shadow); padding:34px; max-width:900px; margin:0 auto; }
.enq-form .row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px; }
.enq-form label{ display:block; font-weight:700; font-size:13.5px; color:var(--primary-darker); margin-bottom:6px; }
.enq-form input, .enq-form select, .enq-form textarea{ width:100%; padding:12px 14px; border-radius:10px; border:1.5px solid #ddd; font-family:inherit; font-size:15px; background:#fff; }
.enq-form input:focus, .enq-form select:focus, .enq-form textarea:focus{ outline:2px solid var(--primary); outline-offset:1px; }
.enq-form textarea{ min-height:110px; resize:vertical; }
.enq-form .consent{ display:flex; gap:10px; align-items:flex-start; font-size:13.5px; color:var(--gray); margin:6px 0 20px; }
.enq-form .consent input{ width:auto; margin-top:3px; }
.enq-success{ display:none; background:var(--primary-tint); border-radius:14px; padding:22px; margin-top:18px; color:var(--primary-darker); }
.enq-success.show{ display:block; }
@media (max-width:700px){ .enq-form{ padding:24px 20px; } .enq-form .row{ grid-template-columns:1fr; } }

.campus-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.campus-actions .btn{ padding:9px 16px; font-size:13px; border-width:1.5px; }

/* Legibility of hero controls now that the purple wash is gone */
.hero .btn-outline{ background:rgba(30,10,45,.6); border-color:rgba(255,255,255,.85); backdrop-filter:blur(6px); }
.hero .btn-outline:hover{ background:rgba(102,47,145,.85); }
.hero .eyebrow{ background:rgba(30,10,45,.62); backdrop-filter:blur(6px); }

/* Keep offset accents / slide-in reveals from creating sideways scroll */
section{ overflow-x:clip; }


/* ---- Wider, more readable body copy ---- */
.prose{ max-width:1040px; }
.prose p{ font-size:17px; line-height:1.85; }
.prose h3{ font-size:22px; }
.section-head{ max-width:920px; }
.section-head p{ font-size:18px; line-height:1.75; }
.split-text p{ font-size:17px; }
.quote-block{ max-width:1040px; margin-left:auto; margin-right:auto; }

/* ---- Professional enquiry / request modals ---- */
#mkEnquiryOverlay .mk-modal.mk-modal-narrow,
#mkGeneralOverlay .mk-modal.mk-modal-narrow{ max-width:880px; border-radius:22px; }
#mkEnquiryOverlay .mk-modal-body, #mkGeneralOverlay .mk-modal-body{ padding:0; justify-content:flex-start; }
.mk-modal-head{ background:linear-gradient(135deg,#341758 0%,#662f91 100%); color:#fff; padding:38px 48px 30px; position:relative; }
.mk-modal-head::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:4px; background:linear-gradient(90deg,var(--accent),#ffcf5a); }
.mk-modal-head .eyebrow{ background:rgba(255,255,255,.16); color:#fff; margin-bottom:12px; }
.mk-modal-head h3{ color:#fff; font-size:32px; margin-bottom:8px; }
.mk-modal-head p{ color:rgba(255,255,255,.88); margin:0; font-size:16px; max-width:640px; }
#mkEnquiryOverlay .mk-form, #mkGeneralOverlay .mk-form, #mkEnquiryOverlay .mk-form-success, #mkGeneralOverlay .mk-form-success{ padding:32px 48px 40px; }
#mkEnquiryOverlay .mk-form{ display:grid; grid-template-columns:1fr 1fr; gap:18px 22px; }
#mkEnquiryOverlay .mk-form .mk-row-2{ display:contents; }
#mkEnquiryOverlay .mk-form > div:first-child,
#mkEnquiryOverlay .mk-form > div:has(textarea),
#mkEnquiryOverlay .mk-form > .mk-consent,
#mkEnquiryOverlay .mk-form > button,
#mkEnquiryOverlay .mk-form > .mk-form-note{ grid-column:1 / -1; }
#mkEnquiryOverlay .mk-form label, #mkGeneralOverlay .mk-form label{ font-size:13.5px; color:var(--primary-darker); margin-bottom:7px; }
#mkEnquiryOverlay .mk-form input, #mkEnquiryOverlay .mk-form select, #mkEnquiryOverlay .mk-form textarea,
#mkGeneralOverlay .mk-form input, #mkGeneralOverlay .mk-form select, #mkGeneralOverlay .mk-form textarea{
  padding:13px 15px; border-radius:11px; border:1.5px solid #e2dbe9; background:#fbfafd; font-size:15px; transition:border-color .2s, box-shadow .2s, background .2s;
}
#mkEnquiryOverlay .mk-form input:focus, #mkEnquiryOverlay .mk-form select:focus, #mkEnquiryOverlay .mk-form textarea:focus,
#mkGeneralOverlay .mk-form input:focus, #mkGeneralOverlay .mk-form select:focus, #mkGeneralOverlay .mk-form textarea:focus{
  background:#fff; border-color:var(--primary); box-shadow:0 0 0 4px rgba(102,47,145,.12);
}
#mkEnquiryOverlay .mk-form .mk-consent input{ width:auto; padding:0; box-shadow:none; }
#mkEnquiryOverlay .mk-form > button, #mkGeneralOverlay .mk-form > button[type=submit]{ background:var(--accent); color:#2b1a00; padding:15px 28px; font-size:16px; border-radius:12px; border:none; box-shadow:0 8px 20px rgba(242,169,0,.35); }
#mkEnquiryOverlay .mk-form > button:hover, #mkGeneralOverlay .mk-form > button[type=submit]:hover{ background:#ffb827; transform:translateY(-2px); }
.mk-modal-head ~ .mk-form-note{ padding:0 48px; }
#mkEnquiryOverlay .mk-close, #mkGeneralOverlay .mk-close{ background:rgba(255,255,255,.18); color:#fff; z-index:3; }
#mkEnquiryOverlay .mk-close:hover, #mkGeneralOverlay .mk-close:hover{ background:rgba(255,255,255,.34); }
@media (max-width:640px){
  .mk-modal-head{ padding:30px 24px 24px; } .mk-modal-head h3{ font-size:25px; }
  #mkEnquiryOverlay .mk-form, #mkGeneralOverlay .mk-form, #mkEnquiryOverlay .mk-form-success, #mkGeneralOverlay .mk-form-success{ padding:24px; }
  #mkEnquiryOverlay .mk-form{ grid-template-columns:1fr; }
}


/* ---- Facilities carousel: bigger photos + fly-in ---- */
.carousel-slide{ flex:0 0 calc(33.333% - 14px); }
.carousel-slide .fac-item{ aspect-ratio:5/4; border-radius:20px; box-shadow:0 18px 40px rgba(74,33,104,.20); }
.carousel-slide .fac-cap{ padding:22px 22px 20px; font-size:18px; }
@media (max-width:900px){ .carousel-slide{ flex-basis:calc(50% - 10px); } }
@media (max-width:560px){ .carousel-slide{ flex-basis:100%; } }
.carousel-pages .carousel-slide{ flex:0 0 100%; }
@keyframes mkFlyNext{ from{ opacity:0; transform:translateX(220px) scale(.86) rotate(2deg); } to{ opacity:1; transform:none; } }
@keyframes mkFlyPrev{ from{ opacity:0; transform:translateX(-220px) scale(.86) rotate(-2deg); } to{ opacity:1; transform:none; } }
.carousel.in-view:not(.carousel-pages) .carousel-slide{ animation:mkFlyNext .95s cubic-bezier(.22,.7,.4,1) backwards; }
.carousel.in-view:not(.carousel-pages) .carousel-slide:nth-child(2){ animation-delay:.12s; }
.carousel.in-view:not(.carousel-pages) .carousel-slide:nth-child(3){ animation-delay:.24s; }
.carousel.in-view:not(.carousel-pages) .carousel-slide:nth-child(n+4){ animation-delay:.36s; }
.carousel.in-view:not(.carousel-pages) .carousel-slide.fly-next{ animation:mkFlyNext .85s cubic-bezier(.22,.7,.4,1) both; animation-delay:0s; }
.carousel.in-view:not(.carousel-pages) .carousel-slide.fly-prev{ animation:mkFlyPrev .85s cubic-bezier(.22,.7,.4,1) both; animation-delay:0s; }

/* ---- Log in pill ---- */
.pill-login{ background:#fff; color:var(--primary-darker); }
.pill-login:hover{ background:var(--primary-tint); transform:translateY(-1px); }
@media (max-width:1000px){ .pill-login .login-label{ display:none; } .pill-login{ padding:10px 12px; } }
@media (max-width:420px){ .pill-login{ display:none; } }

/* ---- The MAKSON Journey: animated timeline ---- */
#journey{ position:relative; background:linear-gradient(180deg,#fff 0%, var(--primary-tint) 100%); overflow:hidden; }
#journey::before, #journey::after{ content:""; position:absolute; width:420px; height:420px; border-radius:50%; filter:blur(70px); opacity:.35; pointer-events:none; }
#journey::before{ background:var(--accent); top:8%; left:-160px; opacity:.18; }
#journey::after{ background:var(--primary-light); bottom:6%; right:-160px; }
#journey .container{ position:relative; z-index:1; }
.journey-list{ position:relative; margin-top:56px; display:flex; flex-direction:column; gap:72px; --jp:0; }
.journey-list::before{ content:""; position:absolute; left:50%; top:0; bottom:0; width:4px; margin-left:-2px; background:rgba(102,47,145,.14); border-radius:4px; }
.journey-list::after{ content:""; position:absolute; left:50%; top:0; width:4px; margin-left:-2px; height:calc(var(--jp) * 100%); background:linear-gradient(180deg,var(--accent),var(--primary)); border-radius:4px; box-shadow:0 0 18px rgba(242,169,0,.55); }
.journey-step{
  position:relative; display:grid; grid-template-columns:1fr 1fr; gap:92px; align-items:center;
  background:none; box-shadow:none; padding:0; border-radius:0;
}
.journey-step.reveal{ opacity:1; transform:none; transition:none; }
.journey-step:hover{ transform:none; box-shadow:none; }
.journey-step:nth-child(even){ flex-direction:initial; }
.journey-step:nth-child(even) .journey-media{ order:2; }
.journey-step:nth-child(even) .journey-body{ order:1; }
.journey-media{
  flex:none; aspect-ratio:auto; max-width:440px; width:100%; border-radius:22px; overflow:hidden;
  box-shadow:0 26px 55px rgba(74,33,104,.28); border:6px solid #fff; transform:rotate(-2.2deg);
  transition:transform .6s cubic-bezier(.22,.7,.4,1), box-shadow .6s ease, opacity .8s ease;
  justify-self:end;
}
.journey-step:nth-child(even) .journey-media{ justify-self:start; transform:rotate(2.2deg); }
.journey-media.in-view:hover, .journey-step:nth-child(even) .journey-media.in-view:hover{ transform:rotate(0) scale(1.04); box-shadow:0 34px 70px rgba(74,33,104,.36); }
.journey-media img{ width:100%; height:auto; display:block; }
.journey-body{
  position:relative; background:#fff; border-radius:22px; padding:38px 40px; box-shadow:0 18px 44px rgba(74,33,104,.13);
  border-top:5px solid var(--accent); overflow:hidden; min-width:0;
  transition:transform .4s ease, box-shadow .4s ease, opacity .8s ease;
}
.journey-body::after{ content:attr(data-n); position:absolute; right:22px; top:-14px; font-size:130px; font-weight:800; color:var(--primary); opacity:.06; line-height:1; pointer-events:none; }
.journey-body.in-view:hover{ transform:translateY(-8px); box-shadow:0 26px 56px rgba(74,33,104,.2); }
.journey-body h3{ font-size:26px; margin-bottom:12px; color:var(--primary-darker); }
.journey-body p{ font-size:16.5px; line-height:1.75; color:var(--gray); }
.journey-num{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%) scale(.6); z-index:2;
  width:56px; height:56px; border-radius:50%; margin:0; font-size:22px; font-weight:800;
  background:#fff; color:var(--primary); border:4px solid rgba(102,47,145,.25);
  display:flex; align-items:center; justify-content:center; transition:transform .6s cubic-bezier(.34,1.56,.64,1), background .4s, color .4s, border-color .4s;
}
.journey-step.in-view .journey-num{ transform:translate(-50%,-50%) scale(1); background:linear-gradient(135deg,var(--accent),#ffcf5a); color:#2b1a00; border-color:#fff; box-shadow:0 0 0 8px rgba(242,169,0,.22), 0 10px 26px rgba(242,169,0,.45); animation:mkNodePulse 2.6s ease-out 1s infinite; }
@keyframes mkNodePulse{ 0%{ box-shadow:0 0 0 0 rgba(242,169,0,.55), 0 10px 26px rgba(242,169,0,.45); } 70%,100%{ box-shadow:0 0 0 22px rgba(242,169,0,0), 0 10px 26px rgba(242,169,0,.45); } }
@media (max-width:860px){
  .journey-list{ gap:44px; padding-left:8px; }
  .journey-list::before, .journey-list::after{ left:28px; }
  .journey-step{ grid-template-columns:1fr; gap:22px; padding-left:64px; }
  .journey-step:nth-child(even) .journey-media, .journey-step:nth-child(even) .journey-body{ order:initial; }
  .journey-media, .journey-step:nth-child(even) .journey-media{ justify-self:stretch; max-width:none; transform:rotate(0); }
  .journey-num{ left:28px; top:26px; transform:translate(-50%,0) scale(.6); width:46px; height:46px; font-size:18px; }
  .journey-step.in-view .journey-num{ transform:translate(-50%,0) scale(1); }
  .journey-body{ padding:26px 24px; } .journey-body h3{ font-size:22px; }
}

/* =========================================================================
   MAKSON AT A GLANCE — photo + stat grid
   ========================================================================= */
.glance-wrap{ display:grid; grid-template-columns:0.85fr 1.4fr; gap:52px; align-items:center; margin-top:40px; }
.glance-media{ position:relative; max-width:420px; }
.glance-photo-frame{ border-radius:26px; overflow:hidden; aspect-ratio:3/4; box-shadow:0 26px 55px rgba(74,33,104,.22); }
.glance-photo-frame img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform 1.2s cubic-bezier(.22,.7,.4,1); }
.glance-media:hover .glance-photo-frame img{ transform:scale(1.07); }
.glance-badge{
  position:absolute; left:18px; bottom:18px; background:#fff; border-radius:16px; padding:16px 22px;
  box-shadow:0 16px 34px rgba(74,33,104,.28); text-align:center; border-left:5px solid var(--accent);
}
.glance-badge strong{ display:block; font-size:26px; color:var(--primary-darker); line-height:1.1; }
.glance-badge span{ font-size:11px; color:var(--gray); text-transform:uppercase; letter-spacing:.07em; }
.glance-stats{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.glance-item{ background:#fff; border-radius:18px; padding:26px 24px; box-shadow:var(--shadow); }
.glance-icon{
  width:50px; height:50px; border-radius:14px; background:var(--primary-tint);
  display:flex; align-items:center; justify-content:center; font-size:23px; margin-bottom:16px;
  transition:transform .45s cubic-bezier(.34,1.56,.64,1), background .3s ease;
}
.glance-item:hover .glance-icon{ transform:scale(1.14) rotate(-6deg); background:var(--accent); }
.glance-item h4{
  font-size:19px; font-weight:800; margin-bottom:8px; line-height:1.25;
  background:linear-gradient(120deg,var(--primary-darker),var(--primary)); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.glance-item p{ font-size:13.5px; color:var(--gray); line-height:1.6; }
.glance-stats .glance-item:nth-child(1){ transition-delay:.05s; }
.glance-stats .glance-item:nth-child(2){ transition-delay:.12s; }
.glance-stats .glance-item:nth-child(3){ transition-delay:.19s; }
.glance-stats .glance-item:nth-child(4){ transition-delay:.26s; }
.glance-stats .glance-item:nth-child(5){ transition-delay:.33s; }
.glance-stats .glance-item:nth-child(6){ transition-delay:.4s; }
@media (max-width:900px){
  .glance-wrap{ grid-template-columns:1fr; gap:38px; }
  .glance-media{ margin:0 auto; }
}
@media (max-width:560px){
  .glance-stats{ grid-template-columns:1fr; }
  .glance-badge{ left:12px; bottom:12px; padding:12px 18px; }
}

/* =========================================================================
   THE MAKSON LEARNING JOURNEY — photo-topped programme cards
   ========================================================================= */
.program-card{ background:#fff; border-radius:20px; overflow:hidden; box-shadow:var(--shadow); display:flex; flex-direction:column; }
.program-photo{ position:relative; aspect-ratio:16/10; overflow:hidden; }
.program-photo img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform 1s cubic-bezier(.22,.7,.4,1); }
.program-card:hover .program-photo img{ transform:scale(1.09); }
.program-photo::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(20,8,35,.9) 0%, rgba(20,8,35,.25) 58%, rgba(20,8,35,0) 100%);
}
.program-photo .age{
  position:absolute; top:16px; left:16px; z-index:1; background:rgba(255,255,255,.94); color:var(--primary-darker);
  font-size:11.5px; font-weight:800; letter-spacing:.03em; padding:6px 14px; border-radius:20px;
}
.program-photo h3{ position:absolute; left:20px; right:20px; bottom:14px; z-index:1; color:#fff; font-size:21px; margin:0; text-shadow:0 2px 10px rgba(0,0,0,.45); }
.program-body{ padding:22px 24px 26px; flex:1; display:flex; flex-direction:column; }

/* =========================================================================
   WHY FAMILIES CHOOSE MAKSON — photo-topped value cards
   ========================================================================= */
.value-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.value-card{ background:#fff; border-radius:22px; overflow:hidden; box-shadow:var(--shadow); display:flex; flex-direction:column; }
.value-photo{ position:relative; aspect-ratio:16/11; overflow:hidden; }
.value-photo img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform 1s cubic-bezier(.22,.7,.4,1); }
.value-card:hover .value-photo img{ transform:scale(1.09); }
.value-photo::after{ content:""; position:absolute; inset:0; background:linear-gradient(0deg, rgba(20,8,35,.85) 0%, rgba(20,8,35,.05) 65%); }
.value-icon{
  position:absolute; left:20px; bottom:16px; z-index:1; width:46px; height:46px; border-radius:13px;
  background:rgba(255,255,255,.95); color:var(--primary); display:flex; align-items:center; justify-content:center;
  font-size:21px; box-shadow:0 8px 18px rgba(0,0,0,.2); transition:transform .4s cubic-bezier(.34,1.56,.64,1), background .3s, color .3s;
}
.value-card:hover .value-icon{ transform:scale(1.1) rotate(-6deg); background:var(--accent); color:#2b1a00; }
.value-photo h3{ position:absolute; right:20px; bottom:18px; left:78px; z-index:1; color:#fff; font-size:19px; text-align:right; margin:0; text-shadow:0 2px 10px rgba(0,0,0,.45); }
.value-body{ padding:22px 26px 26px; flex:1; display:flex; flex-direction:column; }
.value-body ul{ display:flex; flex-direction:column; gap:9px; margin-bottom:6px; }
.value-body li{ font-size:14px; color:var(--gray); padding-left:20px; position:relative; }
.value-body li:before{ content:"✓"; position:absolute; left:0; color:var(--accent); font-weight:800; }
.value-body .value-link{ margin-top:auto; padding-top:14px; color:var(--primary); font-weight:700; font-size:14px; display:inline-flex; align-items:center; gap:5px; transition:gap .2s ease; }
.value-body .value-link:hover{ gap:9px; }
.value-grid .value-card:nth-child(1){ transition-delay:.05s; }
.value-grid .value-card:nth-child(2){ transition-delay:.15s; }
.value-grid .value-card:nth-child(3){ transition-delay:.25s; }
@media (max-width:900px){ .value-grid{ grid-template-columns:1fr; } }

/* =========================================================================
   THE MAKSON GRADUATE — profile-style photo cards
   ========================================================================= */
.grad-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.grad-card{ background:#fff; border-radius:22px; overflow:hidden; box-shadow:var(--shadow); text-align:center; padding-bottom:28px; }
.grad-photo{ aspect-ratio:16/10; overflow:hidden; }
.grad-photo img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform 1s cubic-bezier(.22,.7,.4,1); }
.grad-card:hover .grad-photo img{ transform:scale(1.09); }
.grad-icon{
  width:64px; height:64px; border-radius:50%; margin:-32px auto 16px; position:relative; z-index:1;
  background:linear-gradient(135deg,var(--accent),#ffcf5a); border:4px solid #fff; box-shadow:0 10px 22px rgba(242,169,0,.4);
  display:flex; align-items:center; justify-content:center; font-size:27px;
  transition:transform .45s cubic-bezier(.34,1.56,.64,1);
}
.grad-card:hover .grad-icon{ transform:scale(1.1) rotate(8deg); }
.grad-body{ padding:0 26px; text-align:left; }
.grad-body h3{ color:var(--primary-darker); font-size:20px; margin-bottom:14px; text-align:center; }
.grad-body ul{ display:flex; flex-direction:column; gap:11px; }
.grad-body li{ font-size:14px; color:var(--gray); padding-left:22px; position:relative; line-height:1.5; }
.grad-body li:before{ content:"✓"; position:absolute; left:0; color:var(--accent); font-weight:800; }
.grad-body li strong{ color:var(--ink); }
.grad-grid .grad-card:nth-child(1){ transition-delay:.05s; }
.grad-grid .grad-card:nth-child(2){ transition-delay:.15s; }
.grad-grid .grad-card:nth-child(3){ transition-delay:.25s; }
@media (max-width:900px){ .grad-grid{ grid-template-columns:1fr; max-width:440px; margin-left:auto; margin-right:auto; } }

/* =========================================================================
   SCHOOL TECHNOLOGY — photo + icon grid split
   ========================================================================= */
.tech-wrap{ display:grid; grid-template-columns:0.85fr 1.3fr; gap:44px; align-items:center; margin-top:40px; }
.tech-media{ position:relative; max-width:420px; }
.tech-wrap .tech-grid{ grid-template-columns:repeat(2,1fr); margin-top:0; }
.tech-card .icon{ transition:transform .45s cubic-bezier(.34,1.56,.64,1), background .3s ease, color .3s ease; }
.tech-card:hover .icon{ transform:scale(1.12) rotate(-6deg); background:var(--accent); color:#2b1a00; }
.tech-grid .tech-card:nth-child(1){ transition-delay:.04s; }
.tech-grid .tech-card:nth-child(2){ transition-delay:.09s; }
.tech-grid .tech-card:nth-child(3){ transition-delay:.14s; }
.tech-grid .tech-card:nth-child(4){ transition-delay:.19s; }
.tech-grid .tech-card:nth-child(5){ transition-delay:.24s; }
.tech-grid .tech-card:nth-child(6){ transition-delay:.29s; }
.tech-grid .tech-card:nth-child(7){ transition-delay:.34s; }
.tech-grid .tech-card:nth-child(8){ transition-delay:.39s; }
@media (max-width:900px){
  .tech-wrap{ grid-template-columns:1fr; gap:32px; }
  .tech-media{ margin:0 auto; }
}
@media (max-width:520px){ .tech-wrap .tech-grid{ grid-template-columns:1fr 1fr; } }

/* =========================================================================
   GALLERY CAROUSEL — smoother page transition + dot indicators
   ========================================================================= */
.carousel-pages .carousel-track{ transition:transform .7s cubic-bezier(.65,0,.35,1); }
@keyframes mkPagePop{ from{ opacity:.25; transform:scale(.96); } to{ opacity:1; transform:scale(1); } }
.carousel-pages .carousel-slide.page-enter{ animation:mkPagePop .6s cubic-bezier(.22,.7,.4,1) both; }
.carousel-dots{ display:flex; justify-content:center; align-items:center; gap:10px; margin-top:26px; }
.carousel-dots button{
  width:10px; height:10px; border-radius:50%; border:none; padding:0; cursor:pointer;
  background:rgba(102,47,145,.22); transition:width .35s cubic-bezier(.34,1.56,.64,1), border-radius .35s ease, background .3s ease, transform .2s ease;
}
.carousel-dots button:hover{ background:var(--primary-light); transform:scale(1.15); }
.carousel-dots button.active{ width:30px; border-radius:6px; background:linear-gradient(90deg,var(--primary),var(--accent)); }

/* =========================================================================
   CAMPUS VIDEO — split layout with quick facts
   ========================================================================= */
.split-media .video-wrap{ margin:0; }
.video-facts{ display:flex; flex-direction:column; gap:12px; margin:18px 0 24px; }
.video-facts li{ font-size:15px; color:var(--gray); padding-left:26px; position:relative; }
.video-facts li:before{ content:"✓"; position:absolute; left:0; top:1px; color:var(--accent); font-weight:800; font-size:15px; }

/* =========================================================================
   PARENT TESTIMONIAL — spotlight frame
   ========================================================================= */
.testimonial-spotlight{ position:relative; max-width:880px; margin:0 auto; }
.testimonial-spotlight .quote-mark{
  position:absolute; top:-46px; left:-8px; font-family:Georgia,'Times New Roman',serif; font-size:140px;
  line-height:1; color:var(--accent); opacity:.28; z-index:0; pointer-events:none; user-select:none;
}
.testimonial-spotlight .video-wrap{
  position:relative; z-index:1; box-shadow:0 0 0 6px rgba(242,169,0,.14), 0 26px 60px rgba(74,33,104,.28);
  transition:transform .4s ease, box-shadow .4s ease;
}
.testimonial-spotlight:hover .video-wrap{ transform:translateY(-4px); box-shadow:0 0 0 6px rgba(242,169,0,.2), 0 32px 70px rgba(74,33,104,.34); }
.testimonial-tag{
  display:inline-flex; align-items:center; gap:8px; background:var(--primary-tint); color:var(--primary-darker);
  font-weight:700; font-size:13.5px; padding:9px 20px; border-radius:20px; margin-top:22px;
}
@media (max-width:640px){ .testimonial-spotlight .quote-mark{ font-size:100px; top:-32px; } }

/* =========================================================================
   BOARD & LEADERSHIP — avatars + org-flow
   ========================================================================= */
.board-card{ position:relative; overflow:hidden; border-left:none; padding-top:24px; }
.board-card::before{ content:""; position:absolute; top:0; left:0; right:0; height:4px; background:linear-gradient(90deg,var(--primary-light),var(--primary)); }
.board-card.exec::before{ background:linear-gradient(90deg,#c98600,var(--accent)); }
.board-avatar{
  width:50px; height:50px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:15.5px; color:#fff; margin-bottom:14px; letter-spacing:.02em;
  background:linear-gradient(135deg,var(--primary-darker),var(--primary)); box-shadow:0 8px 18px rgba(102,47,145,.3);
}
.board-card.exec .board-avatar{ background:linear-gradient(135deg,#c98600,var(--accent)); box-shadow:0 8px 18px rgba(242,169,0,.35); color:#2b1a00; }
.org-flow{ display:flex; justify-content:center; flex-wrap:wrap; gap:10px; align-items:center; margin:30px 0 6px; }
.org-flow .flow-arrow{ color:var(--primary-light); font-weight:700; font-size:15px; }
.board-grid .board-card:nth-child(1){ transition-delay:.04s; }
.board-grid .board-card:nth-child(2){ transition-delay:.08s; }
.board-grid .board-card:nth-child(3){ transition-delay:.12s; }
.board-grid .board-card:nth-child(4){ transition-delay:.16s; }
.board-grid .board-card:nth-child(5){ transition-delay:.2s; }
.board-grid .board-card:nth-child(6){ transition-delay:.24s; }
.board-grid .board-card:nth-child(n+7){ transition-delay:.28s; }

/* News & Stories — category sections */
.news-points{ list-style:none; padding:0; margin:6px 0 20px; display:grid; gap:9px; }
.news-points li{ position:relative; padding-left:28px; color:var(--ink); font-size:15.5px; font-weight:600; }
.news-points li::before{
  content:"✓"; position:absolute; left:0; top:1px; width:20px; height:20px; border-radius:50%;
  background:var(--primary-tint); color:var(--primary); font-size:12px; font-weight:800;
  display:flex; align-items:center; justify-content:center;
}
.news-more{ display:inline-block; font-weight:700; color:var(--primary); border-bottom:2px solid var(--accent); padding-bottom:2px; }
.news-more:hover{ color:var(--primary-darker); }
.news-strip{ margin-top:54px; }
@media (max-width:900px){
  .news-strip{ grid-template-columns:repeat(2,1fr); margin-top:40px; }
}
