/* =========================================================
   Crested Crane Academy — Homepage
   Production stylesheet (recreated from design handoff)
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --sky: #0BACF3;
  --sky-dark: #0089C7;
  --navy: #0B2942;
  --navy-2: #0E3C5E;
  --body: #476075;
  --body-2: #5A7286;
  --muted: #5C7388; /* darkened from #7D93A6 to meet WCAG AA on white */
  --gold: #FFB627;
  --coral: #FF6B5E;
  --coral-2: #FF9166;
  --green: #1FB47A;
  --green-2: #15A0A0;
  --green-bright: #3DDC97;
  --page-bg: #F2FAFE;
  --surface: #FFFFFF;
  --blue-tint: #E3F4FD;
  --blue-tint-2: #EAF6FD;
  --blue-border: #D8EEFA;
  --blue-soft: #BFE3F7;
  --footer-text: #9FC1D6;
  --footer-text-2: #CFE8F6;

  --maxw: 1200px;
  --pad-x: 28px;

  --shadow-card: 0 14px 34px rgba(11, 42, 66, .08);
  --shadow-card-hover: 0 26px 50px rgba(11, 42, 66, .14);
  --shadow-cta: 0 14px 30px rgba(11, 172, 243, .4);

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-script: 'Caveat', cursive;
}

/* ---------- Reset / Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--navy);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
::selection { background: var(--sky); color: #fff; }

.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 0 0 10px 10px; transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* Visible keyboard focus across all interactive elements */
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 6px;
}
/* On dark surfaces, use a light ring for contrast */
.topbar a:focus-visible, .nav-cta:focus-visible, .feature-btn:focus-visible,
.btn-primary:focus-visible, .admissions a:focus-visible, .footer a:focus-visible,
.news-form button:focus-visible, .testimonial .next:focus-visible {
  outline-color: #fff;
}

.eyebrow {
  font-family: var(--font-script);
  font-size: clamp(22px, 3vw, 26px);
  color: var(--sky);
  line-height: 1;
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 99px;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  transition: transform .2s, box-shadow .2s, background .2s;
  min-height: 44px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--sky), var(--sky-dark));
  color: #fff;
  box-shadow: var(--shadow-cta);
  padding: 14px 28px;
  font-size: 16px;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 38px rgba(11, 172, 243, .5); }
.btn-ghost {
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
  padding: 14px 26px;
  font-size: 16px;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .26); }

/* =========================================================
   Animations (decorative)
   ========================================================= */
@keyframes ccaFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes ccaFloatB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(14px); } }
@keyframes ccaBlob {
  0%,100% { border-radius: 42% 58% 63% 37% / 42% 45% 55% 58%; }
  50% { border-radius: 62% 38% 38% 62% / 55% 60% 40% 45%; }
}
@keyframes ccaSpin { to { transform: rotate(360deg); } }
@keyframes ccaMarquee { to { transform: translateX(-50%); } }
@keyframes ccaPulse { 0%,100% { transform: scale(.9); opacity: .6; } 50% { transform: scale(1.25); opacity: .12; } }
@keyframes ccaWiggle { 0%,100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Top utility bar
   ========================================================= */
.topbar { background: var(--navy); color: var(--footer-text-2); font-size: 13px; }
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap;
}
.topbar-left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar .status { display: flex; align-items: center; gap: 7px; }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, .25);
}
.topbar .meta { opacity: .6; }
.topbar a { color: var(--footer-text-2); display: inline-flex; align-items: center; gap: 6px; }
.login-pill {
  color: #fff !important; font-weight: 600;
  background: rgba(255, 255, 255, .12); padding: 5px 12px; border-radius: 99px;
  transition: background .2s;
}
.login-pill:hover { background: rgba(255, 255, 255, .22); }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 60;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 16px 0;
}
.nav.scrolled {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 8px 30px rgba(11, 42, 66, .10);
  padding: 10px 0;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; display: block; transition: height .3s ease; }
.nav.scrolled .brand img { height: 46px; }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.05; color: var(--navy); }
.brand-text small {
  display: block; font-weight: 500; font-size: 12px; letter-spacing: .18em;
  color: var(--sky); text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 30px; font-weight: 600; font-size: 15px; }
.nav-links a { position: relative; padding: 4px 0; transition: color .2s; }
.nav-links a:hover { color: var(--sky); }
/* Items that only appear inside the mobile drawer */
.drawer-only { display: none; }
.nav-cta {
  background: linear-gradient(135deg, var(--sky), var(--sky-dark));
  color: #fff; font-weight: 700; font-size: 15px; padding: 12px 22px;
  border-radius: 99px; box-shadow: 0 10px 22px rgba(11, 172, 243, .34);
  transition: transform .2s, box-shadow .2s; min-height: 44px;
  display: inline-flex; align-items: center;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(11, 172, 243, .45); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 10px; min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; max-width: 1280px; margin: 0 auto; padding: 30px var(--pad-x) 70px; overflow: visible; }
.blob {
  position: absolute; z-index: 0; pointer-events: none;
}
.blob-1 { top: -40px; right: 60px; width: 520px; height: 520px; }
.blob-1 > div { width: 100%; height: 100%; background: radial-gradient(circle at 30% 30%, #D8F1FD, #BFE8FB); animation: ccaBlob 14s ease-in-out infinite; }
.blob-2 {
  top: 120px; left: -60px; width: 230px; height: 230px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #FFE6B0, #FFD37A); opacity: .5; animation: ccaFloat 9s ease-in-out infinite;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; min-height: 560px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--blue-border);
  padding: 7px 15px 7px 9px; border-radius: 99px; box-shadow: 0 6px 18px rgba(11, 42, 66, .06); margin-bottom: 22px;
}
.hero-badge .tag {
  background: var(--gold); color: var(--navy); font-weight: 800; font-size: 11px; padding: 3px 9px; border-radius: 99px;
}
.hero-badge .script { font-family: var(--font-script); font-size: 20px; color: var(--sky); line-height: 1; }
.hero h1 {
  font-size: clamp(34px, 6vw, 60px); line-height: 1.04; font-weight: 800; letter-spacing: -.02em; color: var(--navy);
}
.hl { position: relative; color: var(--sky); }
.hl svg { position: absolute; left: 0; bottom: -8px; width: 100%; height: 14px; }
.hero-lead { font-size: clamp(16px, 2vw, 18px); line-height: 1.6; color: var(--body); max-width: 480px; margin: 26px 0 32px; }
.hero-lead strong { color: var(--navy); }
.hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-ctas .btn-primary { font-size: 17px; padding: 16px 30px; }
.play-link { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 16px; color: var(--navy); }
.play-btn {
  width: 50px; height: 50px; border-radius: 50%; background: #fff; border: 1px solid var(--blue-border);
  display: grid; place-items: center; box-shadow: 0 8px 20px rgba(11, 42, 66, .08); transition: transform .2s;
}
.play-link:hover .play-btn { transform: scale(1.08); }
.play-tri {
  width: 0; height: 0; border-left: 13px solid var(--sky);
  border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px;
}
.trust-row { display: flex; align-items: center; gap: 16px; margin-top: 38px; }
.avatars { display: flex; }
.avatars img, .avatars .more {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 3px solid #fff;
}
.avatars img + img, .avatars .more { margin-left: -12px; }
.avatars .more { background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.trust-text { font-size: 14px; line-height: 1.3; }
.trust-text strong { color: var(--navy); }
.trust-text .stars { color: var(--gold); }
.trust-text .muted { color: var(--body); }

/* Hero collage */
.collage { position: relative; height: 560px; }
.photo-a { position: absolute; top: 20px; left: 30px; width: 320px; height: 400px; z-index: 2; }
.photo-a > div {
  width: 100%; height: 100%; overflow: hidden; border-radius: 32px;
  box-shadow: 0 30px 60px rgba(11, 42, 66, .22); animation: ccaFloat 8s ease-in-out infinite;
}
.photo-b { position: absolute; top: 240px; right: 0; width: 240px; height: 280px; z-index: 3; }
.photo-b > div {
  width: 100%; height: 100%; overflow: hidden; border-radius: 28px; border: 5px solid #fff;
  box-shadow: 0 24px 48px rgba(11, 42, 66, .2); animation: ccaFloatB 7s ease-in-out infinite;
}
.collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stat-card { position: absolute; bottom: 8px; left: 0; z-index: 5; }
.stat-card > div {
  background: #fff; border-radius: 20px; padding: 16px 20px; box-shadow: 0 20px 40px rgba(11, 42, 66, .16);
  display: flex; align-items: center; gap: 14px; animation: ccaFloat 6s ease-in-out infinite;
}
.stat-card .icon { width: 46px; height: 46px; border-radius: 14px; background: #E7F8EF; display: grid; place-items: center; font-size: 22px; }
.stat-card .num { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--navy); line-height: 1; }
.stat-card .label { font-size: 12px; color: var(--body); font-weight: 600; }
.spin-badge { position: absolute; top: -6px; right: 48px; z-index: 6; width: 104px; height: 104px; }
.spin-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: ccaSpin 18s linear infinite; }
.spin-badge .emoji { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; }

/* Marquee */
.marquee {
  margin-top: 46px; overflow: hidden;
  border-top: 1px dashed #BFE0F2; border-bottom: 1px dashed #BFE0F2; padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: ccaMarquee 26s linear infinite; will-change: transform; }
.marquee-group {
  display: flex; align-items: center; gap: 46px; padding-right: 46px;
  font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--navy); white-space: nowrap;
}

/* =========================================================
   Stats band
   ========================================================= */
.stats { max-width: var(--maxw); margin: 6px auto 0; padding: 0 var(--pad-x); }
.stats-band {
  background: linear-gradient(135deg, var(--sky), var(--sky-dark));
  border-radius: 30px; padding: 40px 30px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  box-shadow: 0 26px 50px rgba(11, 172, 243, .28); position: relative; overflow: hidden;
}
.stats-band .deco { position: absolute; border-radius: 50%; }
.stats-band .deco-1 { top: -60px; right: -30px; width: 200px; height: 200px; background: rgba(255, 255, 255, .12); }
.stats-band .deco-2 { bottom: -80px; left: 40px; width: 180px; height: 180px; background: rgba(255, 255, 255, .08); }
.stat { position: relative; text-align: center; color: #fff; }
.stat:not(:last-child) { border-right: 1px solid rgba(255, 255, 255, .22); }
.stat .value { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 46px); line-height: 1; }
.stat .desc { font-weight: 600; opacity: .92; margin-top: 6px; }

/* =========================================================
   Section headings
   ========================================================= */
section { position: relative; }
.section-head-center { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.section-head-center h2 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; letter-spacing: -.02em; color: var(--navy); margin-top: 4px; }
.section-head-center p { font-size: 17px; color: var(--body); line-height: 1.65; margin-top: 16px; }
.section-head-split {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 46px;
}
.section-head-split h2 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; letter-spacing: -.02em; color: var(--navy); margin-top: 2px; }
.section-head-split p { max-width: 380px; color: var(--body); line-height: 1.6; font-size: 16px; margin: 0; }
.link-arrow { font-weight: 700; color: var(--sky); display: inline-flex; align-items: center; gap: 6px; transition: gap .2s; }
.link-arrow:hover { gap: 11px; }

/* =========================================================
   About
   ========================================================= */
.about { max-width: var(--maxw); margin: 0 auto; padding: 96px var(--pad-x) 40px; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.about-card {
  background: #fff; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform .3s, box-shadow .3s;
}
.about-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card-hover); }
.about-card .photo { height: 200px; overflow: hidden; }
.about-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.about-card:hover .photo img { transform: scale(1.07); }
.about-card .body { padding: 26px 24px 28px; }
.accent-bar { display: inline-block; width: 42px; height: 5px; border-radius: 9px; margin-bottom: 14px; }
.accent-sky { background: var(--sky); }
.accent-gold { background: var(--gold); }
.accent-green { background: var(--green); }
.about-card h3 { font-size: 21px; font-weight: 700; color: var(--navy); }
.about-card p { color: var(--body); line-height: 1.6; margin-top: 10px; font-size: 15px; }
.about-card.dark { background: var(--navy); box-shadow: 0 14px 34px rgba(11, 42, 66, .14); }
.about-card.dark:hover { box-shadow: 0 26px 50px rgba(11, 42, 66, .22); }
.about-card.dark .body { padding: 30px 26px; }
.about-card.dark h3 { color: #fff; }
.mission-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 13px; }
.mission-list li { display: flex; gap: 11px; color: var(--footer-text-2); font-size: 14.5px; line-height: 1.45; }
.mission-list .tick { color: var(--green-bright); font-weight: 800; }

/* =========================================================
   Programs
   ========================================================= */
.programs { padding: 80px 0 90px; margin-top: 40px; }
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.program-card {
  background: #fff; border-radius: 24px; padding: 30px 26px 28px;
  box-shadow: 0 12px 30px rgba(11, 42, 66, .07); border: 1px solid #EAF4FB;
  position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.program-card:hover { transform: translateY(-8px); box-shadow: 0 28px 52px rgba(11, 42, 66, .14); border-color: var(--blue-soft); }
.program-card .corner { position: absolute; top: -30px; right: -30px; width: 120px; height: 120px; border-radius: 50%; opacity: .5; }
.program-icon {
  position: relative; width: 66px; height: 66px; border-radius: 18px;
  display: grid; place-items: center; margin-bottom: 20px; transition: transform .4s;
}
.program-card:hover .program-icon { transform: rotate(-6deg) scale(1.05); }
.program-icon img { width: 38px; height: 38px; object-fit: contain; }
.program-card h3 { position: relative; font-size: 21px; font-weight: 700; color: var(--navy); }
.program-card p { position: relative; color: var(--body-2); line-height: 1.6; margin-top: 10px; font-size: 14.5px; }
.program-card .learn { position: relative; display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-weight: 700; color: var(--sky); font-size: 14.5px; transition: gap .2s; }
.program-card .learn:hover { gap: 12px; }

/* =========================================================
   Languages & Sports
   ========================================================= */
.feature { max-width: var(--maxw); margin: 0 auto 10px; padding: 0 var(--pad-x); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.feature-panel {
  position: relative; border-radius: 30px; overflow: hidden; min-height: 340px; padding: 40px 38px;
  color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
}
.feature-panel.coral { background: linear-gradient(135deg, var(--coral), var(--coral-2)); }
.feature-panel.green { background: linear-gradient(135deg, var(--green), var(--green-2)); }
.feature-panel .emoji { position: absolute; top: 24px; right: 30px; font-size: 74px; }
.feature-panel.coral .emoji { animation: ccaWiggle 4s ease-in-out infinite; }
.feature-panel.green .emoji { animation: ccaFloat 5s ease-in-out infinite; }
.feature-panel .script { font-family: var(--font-script); font-size: 26px; opacity: .95; }
.feature-panel h3 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -.01em; margin-top: 4px; line-height: 1.08; }
.feature-panel p { line-height: 1.6; margin-top: 12px; max-width: 420px; opacity: .95; font-size: 15.5px; }
.feature-btn {
  margin-top: 22px; align-self: flex-start; background: #fff; font-weight: 700;
  padding: 13px 24px; border-radius: 99px; transition: transform .2s; min-height: 44px; display: inline-flex; align-items: center;
}
.feature-btn:hover { transform: translateY(-3px); }
.feature-panel.coral .feature-btn { color: #FF5A4D; }
.feature-panel.green .feature-btn { color: #0E8F6B; }

/* =========================================================
   Gallery
   ========================================================= */
.gallery { max-width: 1240px; margin: 0 auto; padding: 96px var(--pad-x) 50px; }
.gallery .section-head-center { margin-bottom: 34px; }
.gallery .section-head-center h2 { font-size: clamp(28px, 4.5vw, 42px); margin-top: 2px; }
.filters { display: flex; flex-wrap: wrap; gap: 11px; justify-content: center; margin-bottom: 30px; }
.filter-chip {
  font-family: var(--font-body); font-weight: 700; font-size: 14px; cursor: pointer;
  padding: 9px 18px; border-radius: 99px; transition: all .2s;
  border: 1px solid var(--blue-border); background: #fff; color: var(--navy); min-height: 40px;
}
.filter-chip.active {
  border-color: var(--sky); background: linear-gradient(135deg, var(--sky), var(--sky-dark));
  color: #fff; box-shadow: 0 10px 22px rgba(11, 172, 243, .32);
}
.masonry { columns: 4; column-gap: 14px; }
.masonry .tile {
  display: block; break-inside: avoid; margin-bottom: 14px; border-radius: 18px;
  overflow: hidden; position: relative; box-shadow: 0 8px 22px rgba(11, 42, 66, .1);
}
.masonry .tile img { width: 100%; display: block; transition: transform .55s ease; }
.masonry .tile:hover img { transform: scale(1.08); }
.masonry .tile .cat {
  position: absolute; left: 10px; bottom: 10px; background: rgba(11, 41, 66, .78); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px; backdrop-filter: blur(4px);
}
.tile.hidden { display: none; }

/* =========================================================
   Student life banner
   ========================================================= */
.life-banner { max-width: var(--maxw); margin: 30px auto; padding: 0 var(--pad-x); }
.life-banner .inner {
  position: relative; border-radius: 34px; overflow: hidden; min-height: 300px; display: flex; align-items: center;
}
.life-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.life-banner .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11, 42, 66, .92) 30%, rgba(11, 42, 66, .45) 75%, rgba(11, 42, 66, .1));
}
.life-banner .content { position: relative; padding: 50px 46px; color: #fff; max-width: 600px; }
.life-banner .script { font-family: var(--font-script); font-size: 26px; color: #7FD4FB; }
.life-banner h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -.01em; margin-top: 4px; line-height: 1.1; }
.life-banner p { line-height: 1.6; margin-top: 14px; opacity: .92; font-size: 16px; }
.life-banner .ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* =========================================================
   Why choose us + Testimonials
   ========================================================= */
.why { max-width: var(--maxw); margin: 0 auto; padding: 80px var(--pad-x) 30px; }
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.why h2 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 800; letter-spacing: -.02em; color: var(--navy); margin-top: 2px; line-height: 1.1; }
.why-list { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-item .tile { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; }
.tile-blue { background: var(--blue-tint); }
.tile-gold { background: #FFF2D6; }
.tile-green { background: #E7F8EF; }
.why-item h3 { font-size: 18px; font-weight: 700; color: var(--navy); }
.why-item p { color: var(--body-2); line-height: 1.55; margin-top: 4px; font-size: 14.5px; }

.testimonial {
  background: #fff; border-radius: 30px; padding: 40px 38px; box-shadow: 0 24px 56px rgba(11, 42, 66, .12);
  position: relative; overflow: hidden;
}
.testimonial .quote-mark {
  position: absolute; top: -30px; right: -10px; font-family: var(--font-display); font-weight: 800;
  font-size: 160px; color: var(--blue-tint-2); line-height: 1; z-index: 0;
}
.testimonial .script { position: relative; font-family: var(--font-script); font-size: 24px; color: var(--sky); }
.testimonial .quote {
  position: relative; font-size: clamp(18px, 2.5vw, 23px); line-height: 1.5; font-weight: 600;
  color: var(--navy); margin: 16px 0 26px; min-height: 140px; transition: opacity .3s;
}
.testimonial .foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.testimonial .person { display: flex; align-items: center; gap: 14px; }
.testimonial .initials {
  width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--sky), var(--sky-dark));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--font-display);
}
.testimonial .name { font-weight: 700; color: var(--navy); }
.testimonial .role { color: var(--muted); font-size: 13.5px; }
.testimonial .nav-btns { display: flex; gap: 10px; }
.testimonial .nav-btns button {
  width: 44px; height: 44px; border-radius: 50%; font-size: 18px; cursor: pointer; transition: background .2s, transform .2s;
}
.testimonial .prev { border: 1px solid var(--blue-border); background: #fff; color: var(--navy); }
.testimonial .prev:hover { background: var(--blue-tint); }
.testimonial .next { border: none; background: var(--sky); color: #fff; }
.testimonial .next:hover { transform: scale(1.08); }

/* =========================================================
   FAQ
   ========================================================= */
.faq { max-width: 880px; margin: 0 auto; padding: 80px var(--pad-x) 30px; }
.faq .section-head-center h2 { font-size: clamp(28px, 4.5vw, 40px); margin-top: 2px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #fff; border-radius: 18px; padding: 22px 26px;
  box-shadow: 0 8px 22px rgba(11, 42, 66, .06); border: 1px solid #EAF4FB; transition: all .3s;
}
.faq-item.open { box-shadow: 0 18px 40px rgba(11, 42, 66, .12); border-color: var(--blue-soft); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; cursor: pointer; text-align: left; padding: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--navy);
}
.faq-icon {
  flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  font-size: 22px; font-weight: 400; transition: all .3s; background: var(--blue-tint); color: var(--sky);
}
.faq-item.open .faq-icon { background: var(--sky); color: #fff; transform: rotate(45deg); }
.faq-a { overflow: hidden; transition: all .35s ease; max-height: 0; opacity: 0; }
.faq-item.open .faq-a { max-height: 260px; opacity: 1; }
.faq-a p { margin: 14px 0 0; color: var(--body-2); line-height: 1.65; font-size: 15px; }

/* =========================================================
   News
   ========================================================= */
.news { max-width: var(--maxw); margin: 0 auto; padding: 80px var(--pad-x) 30px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 12px 30px rgba(11, 42, 66, .08);
  display: block; transition: transform .3s, box-shadow .3s;
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card-hover); }
.news-card .photo { height: 190px; overflow: hidden; }
.news-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-card:hover .photo img { transform: scale(1.06); }
.news-card .body { padding: 22px 22px 26px; }
.news-card .cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.cat-sky { color: var(--sky); }
.cat-coral { color: var(--coral); }
.cat-green { color: var(--green); }
.news-card h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin-top: 8px; line-height: 1.3; }

/* =========================================================
   Admissions CTA
   ========================================================= */
.admissions { max-width: var(--maxw); margin: 60px auto 0; padding: 0 var(--pad-x); }
.admissions .inner {
  position: relative; border-radius: 34px; background: linear-gradient(135deg, var(--navy), var(--navy-2));
  padding: 56px 50px; overflow: hidden; text-align: center;
}
.admissions .pulse { position: absolute; border-radius: 50%; }
.admissions .pulse-1 { top: -50px; left: -30px; width: 220px; height: 220px; background: rgba(11, 172, 243, .25); animation: ccaPulse 6s ease-in-out infinite; }
.admissions .pulse-2 { bottom: -60px; right: -20px; width: 260px; height: 260px; background: rgba(255, 182, 39, .18); animation: ccaPulse 7s ease-in-out infinite; }
.admissions .content { position: relative; }
.admissions .script { font-family: var(--font-script); font-size: 28px; color: #7FD4FB; }
.admissions h2 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -.02em; color: #fff; margin-top: 4px; line-height: 1.1; }
.admissions p { color: #bcd5e6; font-size: 17px; line-height: 1.6; max-width: 520px; margin: 14px auto 30px; }
.admissions .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.admissions .btn-primary { font-size: 17px; padding: 16px 32px; box-shadow: 0 16px 34px rgba(11, 172, 243, .45); }
.admissions .btn-ghost { font-size: 17px; padding: 16px 32px; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.admissions .btn-ghost:hover { background: rgba(255, 255, 255, .2); }

/* =========================================================
   Footer
   ========================================================= */
.footer { margin-top: 70px; background: var(--navy); color: var(--footer-text); padding: 60px var(--pad-x) 30px; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.footer .brand { margin-bottom: 16px; }
.footer .brand img { height: 48px; }
.footer .brand-text { color: #fff; font-size: 18px; line-height: 1.1; }
.footer .brand-text small { font-size: 11px; }
.footer p { line-height: 1.6; font-size: 14.5px; max-width: 300px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08);
  display: grid; place-items: center; color: #fff; transition: background .2s;
}
.socials a:hover { background: var(--sky); }
.footer h3 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-col-links { display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.footer-col-links a { transition: color .2s; }
.footer-col-links a:hover { color: #fff; }
.newsletter p { margin-bottom: 14px; }
.news-form {
  display: flex; gap: 8px; background: rgba(255, 255, 255, .08); border-radius: 99px; padding: 5px 5px 5px 16px;
}
.news-form input {
  flex: 1; background: none; border: none; outline: none; color: #fff; font-family: inherit; font-size: 14px; min-width: 0;
}
.news-form input::placeholder { color: var(--footer-text); }
.news-form button {
  background: var(--sky); color: #fff; border: none; font-weight: 700; padding: 10px 18px;
  border-radius: 99px; cursor: pointer; transition: transform .2s;
}
.news-form button:hover { transform: scale(1.04); }
.footer-contact { font-size: 13.5px; margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--maxw); margin: 40px auto 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .nav .container { gap: 12px; }
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(82vw, 330px);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 4px; background: #fff; padding: 88px 24px 28px; font-size: 17px;
    box-shadow: -8px 0 40px rgba(11, 42, 66, .12);
    transform: translateX(100%); transition: transform .3s ease; z-index: 70;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 14px 2px; width: 100%; border-bottom: 1px solid #EAF4FB; }
  /* Apply / Login surfaced inside the drawer instead of the crowded bar */
  .drawer-only { display: block; }
  .drawer-cta {
    margin-top: 16px; text-align: center; border-bottom: none !important;
    background: linear-gradient(135deg, var(--sky), var(--sky-dark)); color: #fff;
    font-weight: 700; padding: 14px 18px !important; border-radius: 99px;
    box-shadow: 0 10px 22px rgba(11, 172, 243, .34);
  }
  /* Hide the standalone bar CTA so the header stays clean and inline */
  .nav-cta { display: none; }
  .nav-toggle { display: flex; z-index: 80; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(11, 42, 66, .4); opacity: 0; pointer-events: none;
    transition: opacity .3s; z-index: 65;
  }
  .nav-backdrop.show { opacity: 1; pointer-events: auto; }

  .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .masonry { columns: 3; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; min-height: 0; }
  .collage { height: 420px; margin: 10px auto 0; max-width: 460px; width: 100%; }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .stat:nth-child(2) { border-right: none; }
  .stat { border-right: none !important; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .about-card.dark { grid-column: 1 / -1; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer .brand-wrap, .newsletter { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .masonry { columns: 2; }
  .topbar { font-size: 12px; }
  .topbar .meta { display: none; }
  .topbar .container { gap: 10px; }
  .topbar-right { gap: 12px; }
  /* Keep the header compact and inline */
  .brand img { height: 44px; }
  .brand-text { font-size: 15px; }
  .brand-text small { font-size: 10px; letter-spacing: .16em; }
  /* Gallery chips scroll horizontally instead of wrapping into tall rows */
  .filters {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-left: calc(var(--pad-x) * -1); margin-right: calc(var(--pad-x) * -1);
    padding: 4px var(--pad-x) 8px;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter-chip { flex: 0 0 auto; }
}

@media (max-width: 640px) {
  :root { --pad-x: 18px; }
  /* Top bar: a single, centred announcement — phone & login move into the menu */
  .topbar-right { display: none; }
  .topbar .container { justify-content: center; }
  .topbar-left { justify-content: center; }
  .hero { padding-top: 18px; padding-bottom: 50px; }
  .collage { height: 360px; }
  .photo-a { width: 240px; height: 300px; top: 10px; left: 10px; }
  .photo-b { width: 170px; height: 200px; top: 170px; }
  .spin-badge { width: 84px; height: 84px; right: 10px; }
  .stat-card > div { padding: 12px 16px; }
  .about-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .marquee-group { font-size: 18px; gap: 32px; padding-right: 32px; }
  .life-banner .content { padding: 36px 26px; }
  .admissions .inner { padding: 44px 26px; }
  .testimonial, .feature-panel { padding: 30px 26px; }
  .section-head-split { gap: 12px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
  .masonry { columns: 1; }
  .hero-ctas { gap: 12px; }
  .trust-row { flex-wrap: wrap; }
}
