/* =========================================================================
   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:sticky; top:0; left:0; right:0; z-index:1000;
  background:rgba(255,255,255,0.97); backdrop-filter:blur(6px);
  border-bottom:1px solid rgba(102,47,145,0.08);
  transition:transform .3s ease;
}
/* 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:var(--primary-darker); 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:var(--ink); position:relative; padding:4px 0;}
.nav-links a:hover{color:var(--primary);}
.nav-links .nav-promo{color:var(--accent-strong,#a15e00); position:relative;}
.nav-cta{
  background:var(--primary); color:#fff !important; padding:11px 30px; border-radius:8px;
  font-weight:600; font-size:12.5px; letter-spacing:.01em;
  box-shadow:0 2px 8px rgba(102,47,145,.22);
  transition:background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.nav-cta:hover{
  background:var(--primary-dark); box-shadow:0 4px 14px rgba(102,47,145,.32); 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:var(--primary-darker); 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;}

/* HERO */
.hero{
  position:relative; min-height:86vh; display:flex; align-items:center;
  background:linear-gradient(150deg, rgba(52,23,88,.92), rgba(102,47,145,.75)) center/cover no-repeat;
  color:#fff;
}
.hero-inner{max-width:860px;}
.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;}
.hero h1 span{color:var(--accent);}
.hero p{font-size:18px; color:rgba(255,255,255,.88); max-width:640px; margin-bottom:34px;}
.hero-actions{display:flex; gap:16px; flex-wrap:wrap;}
.hero-badges{display:flex; gap:28px; margin-top:56px; flex-wrap:wrap;}
.hero-badge .num{font-size:30px; font-weight:800; color:var(--accent);}
.hero-badge .lbl{font-size:13px; color:rgba(255,255,255,.75); text-transform:uppercase; letter-spacing:.06em;}

/* 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(-4px);}
.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 */
.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;
}
.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;
}
.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(--primary); 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; }
}

/* 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; }
}
