/* ═══════════════════════════════════════════════════════════════════
   LOFTY ACADEMY — Shared Stylesheet
   Used by: index.html, about.html, admissions.html, academics.html,
            news.html, contact.html, gallery.html
   ═══════════════════════════════════════════════════════════════════ */

/* ── RESET & BASE ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  overflow-x: clip;
  max-width: 100vw;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: #fff;
  color: #1a1a1a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }

/* ── COLOURS — edit these to rebrand the whole site ─────────────── */
:root {
  --navy:   #0a192f;
  --gold:   #c59b27;
  --gold-d: #a8821e;
  --green:  #15803d;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --text:   #1a1a1a;
  --muted:  #64748b;
}

/* ── NAVIGATION ──────────────────────────────────────────────────── */
.main-nav {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-shield {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
}
.logo-name { color: #fff; font-size: 17px; font-weight: 600; }
.logo-name span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; }
.nav-portal {
  background: var(--gold) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 7px !important;
  font-weight: 600 !important;
}
.nav-portal:hover { background: var(--gold-d) !important; }

/* ── PAGE HERO (inner pages) ─────────────────────────────────────── */
.pg-hero {
  background: var(--navy);
  padding: 56px 48px 48px;
  border-bottom: 3px solid var(--gold);
}
.pg-breadcrumb { font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 10px; }
.pg-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 10px;
}
.pg-hero p { font-size: 15px; color: rgba(255,255,255,0.6); max-width: 520px; line-height: 1.65; }

/* ── SECTIONS ────────────────────────────────────────────────────── */
.section { padding: 72px 48px; }
.section-header { text-align: center; margin-bottom: 48px; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  background: #e8f0fb;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.sec-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
  line-height: 1.2;
}
.sec-sub { font-size: 15px; color: var(--muted); max-width: 520px; margin: 0 auto; line-height: 1.65; }
.body-text { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn-gold {
  background: var(--gold);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background 0.2s;
}
.btn-gold:hover { background: var(--gold-d); }
.btn-navy {
  background: var(--navy);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background 0.2s;
}
.btn-navy:hover { background: #142e4a; }
.btn-outline-navy {
  border: 1.5px solid var(--navy);
  color: var(--navy);
  padding: 11px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ── FORM INPUTS ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: #444; margin-bottom: 5px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--navy);
}
.form-textarea { height: 110px; resize: vertical; }

/* ── CARD BASE ───────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
.main-footer { background: #111; padding: 56px 48px 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.foot-brand p { font-size: 13px; color: #666; line-height: 1.65; margin-top: 6px; }
.foot-col h5 { color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.foot-col a { display: block; color: #666; font-size: 13px; text-decoration: none; margin-bottom: 10px; transition: color 0.15s; }
.foot-col a:hover { color: #ccc; }
.foot-bottom {
  border-top: 1px solid #222;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.foot-bottom p { font-size: 12px; color: #555; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 34px; height: 34px;
  border: 1px solid #333;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #666; font-size: 16px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.social-links a:hover { border-color: var(--gold); color: var(--gold); }

/* ── DIVIDER ─────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 40px 0; }

/* ── GRID HELPERS ────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .main-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .section { padding: 48px 20px; }
  .pg-hero { padding: 40px 20px 36px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero { padding: 64px 20px 48px; }
  .hero h1 { font-size: 34px; }
  .hero-stats { gap: 28px; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE NAV + RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  padding: 6px 8px;
  line-height: 1;
  margin-left: auto;
}

@media (max-width: 900px) {
  
.stats-band { padding: 32px 20px !important; gap: 18px !important; }
  .stats-band .sn { font-size: 26px !important; }
  .stats-band .sl { font-size: 12px !important; }

  .cta-band { padding: 48px 20px !important; }
  .cta-band h2 { font-size: 24px !important; }

  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  .main-footer { padding: 40px 20px 22px !important; }
  .foot-bottom { flex-direction: column; gap: 14px; text-align: center; }

  .level-tabs { flex-wrap: wrap; }
  .ltab { flex: 1 1 50%; border-right: none; border-bottom: 1px solid var(--border); }

  .info-card { padding: 14px; }
  .social-row { flex-wrap: wrap; }
  .social-btn { font-size: 12px; padding: 8px 12px; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO CAROUSEL — auto-cycling background with fade + Ken Burns
   ═══════════════════════════════════════════════════════════════ */
.hero.hero--carousel {
  position: relative;
  background: #0a192f;
  padding: 120px 48px 100px;
  overflow: hidden;
}
.hero-carousel-track {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-carousel-slide {
  position: absolute; inset: 0;
  background-size: cover;
  opacity: 0;
  animation: heroFade 25s infinite;
  will-change: opacity, transform;
}
.hero-carousel-slide:nth-child(1) { animation-delay: 0s; }
.hero-carousel-slide:nth-child(2) { animation-delay: 5s; }
.hero-carousel-slide:nth-child(3) { animation-delay: 10s; }
.hero-carousel-slide:nth-child(4) { animation-delay: 15s; }
.hero-carousel-slide:nth-child(5) { animation-delay: 20s; }
@keyframes heroFade {
  0%   { opacity: 0; transform: scale(1.06); }
  4%   { opacity: 1; }
  20%  { opacity: 1; transform: scale(1); }
  24%  { opacity: 0; }
  100% { opacity: 0; transform: scale(1.06); }
}
.hero-carousel-overlay {
  position: absolute; inset: 0;
  background: rgba(10, 25, 47, 0.55);
  z-index: 1;
}
.hero-carousel-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 100%;
}
.hero-carousel-content h1 { color: #fff; }
.hero-carousel-content .hero-sub { color: rgba(255,255,255,0.78); }

.hero-carousel-dots {
  position: absolute;
  bottom: 28px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 3;
}
.hero-carousel-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  animation: heroDot 25s infinite;
}
.hero-carousel-dots span:nth-child(1) { animation-delay: 0s; }
.hero-carousel-dots span:nth-child(2) { animation-delay: 5s; }
.hero-carousel-dots span:nth-child(3) { animation-delay: 10s; }
.hero-carousel-dots span:nth-child(4) { animation-delay: 15s; }
.hero-carousel-dots span:nth-child(5) { animation-delay: 20s; }
@keyframes heroDot {
  0%, 20%   { background: #c59b27; transform: scale(1.4); }
  24%, 100% { background: rgba(255,255,255,0.35); transform: scale(1); }
}

@media (max-width: 900px) {
  .hero.hero--carousel { padding: 64px 20px 80px; }
  .hero-carousel-dots { bottom: 18px; }
}

/* ── NAV LOGO AS LINK ────────────────────────────────────────────── */
a.nav-logo {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: opacity 0.15s;
}
a.nav-logo:hover { opacity: 0.85; }
a.nav-logo:focus { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }

/* ═══════════════════════════════════════════════════════════════
   CMS-RENDERED SECTION STYLES
   (These were in the old index.html inline <style>; moved here so
   every CMS block renders correctly.)
   ═══════════════════════════════════════════════════════════════ */

/* ── HERO ───────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(150deg, #061021 0%, #0a192f 55%, #112240 100%);
  padding: 100px 48px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 120%, rgba(197,155,39,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197,155,39,0.15);
  border: 1px solid rgba(197,155,39,0.35);
  color: #d4b352;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  max-width: 680px;
  margin: 0 auto 20px;
  letter-spacing: -0.5px;
}
.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-hero-primary {
  background: #c59b27;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-hero-primary:hover { background: #a8821e; }
.btn-hero-outline {
  background: transparent;
  color: #fff;
  padding: 13px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: border-color 0.2s;
}
.btn-hero-outline:hover { border-color: rgba(255,255,255,0.7); }

/* ── STATS BAND ─────────────────────────────────────────────────── */
.stats-band {
  background: #0a192f;
  padding: 48px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-band > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stats-band .sn {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 38px;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.stats-band .sl {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.3px;
}

/* ── FEATURES GRID ──────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat-card {
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 14px;
  padding: 26px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feat-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.feat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
}
.feat-icon.navy  { background: #e8f0fb; color: #0a192f; }
.feat-icon.gold  { background: #fef3de; color: #a8821e; }
.feat-icon.green { background: #e6f4ea; color: #15803d; }
.feat-card h4    { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: #1a1a1a; }
.feat-card p     { font-size: 13px; color: #64748b; line-height: 1.65; }

/* ── GALLERY STRIP ──────────────────────────────────────────────── */



/* ── CTA BAND ───────────────────────────────────────────────────── */
.cta-band {
  background: #0a192f;
  padding: 72px 48px;
  text-align: center;
}
.cta-band h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.cta-band > p { font-size: 15px; color: rgba(255,255,255,0.6); margin-bottom: 36px; }
.cta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
}
.cta-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}
.cta-card:hover { background: rgba(255,255,255,0.12); }
.cta-card i { font-size: 30px; color: #c59b27; display: block; margin-bottom: 10px; }
.cta-card strong { font-size: 13px; color: #fff; display: block; margin-bottom: 3px; }
.cta-card span { font-size: 12px; color: rgba(255,255,255,0.45); }

/* ── NEWS GRID ──────────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { border: 1px solid #eaecf0; border-radius: 14px; overflow: hidden; display: block; text-decoration: none; color: inherit; }
.news-thumb { height: 130px; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.news-thumb i { font-size: 44px; color: rgba(255,255,255,0.3); }
.news-body { padding: 18px; }
.news-cat  { font-size: 11px; font-weight: 600; color: #c59b27; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 6px; }
.news-body h4 { font-size: 14px; font-weight: 600; line-height: 1.45; color: #1a1a1a; margin-bottom: 10px; }
.news-date { font-size: 12px; color: #94a3b8; }

/* ── ABOUT / IMAGE-WITH-TEXT helper ─────────────────────────────── */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-wrap img { border-radius: 20px; width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.about-visual {
  background: linear-gradient(135deg, #0a192f, #061021);
  border-radius: 20px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual i { font-size: 90px; color: rgba(197,155,39,0.25); }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { padding: 64px 20px 56px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 14px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); padding: 32px 20px; gap: 20px; }
  .stats-band .sn { font-size: 28px; }
  .features-grid, .news-grid, .cta-cards { grid-template-columns: 1fr; }
  
  .gal-strip .gs-item, .gal-strip 
.about-wrap { grid-template-columns: 1fr; gap: 24px; }
  .cta-band { padding: 48px 20px; }
  .cta-band h2 { font-size: 24px; }
}


/* ═══════════════════════════════════════════════════════════════
   GALLERY — clean 2-tile layout
   Tiles are light so the image floats without a visible frame.
   background-size:contain → full image always visible, never cropped
   ═══════════════════════════════════════════════════════════════ */




@media (max-width: 900px) {
  
}


/* ═══════════════════════════════════════════════════════════════
   GALLERY — flat cream tiles, sized for near-square images
   ═══════════════════════════════════════════════════════════════ */




@media (max-width: 900px) {
  
}


/* ═══════════════════════════════════════════════════════════════
   GALLERY — images fill tiles edge-to-edge, no frame
   ═══════════════════════════════════════════════════════════════ */
.gal-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 400px;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.gs-item {
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center 30%;   /* bias toward faces */
  background-repeat: no-repeat;
}
.gs-item.tall { grid-row: span 1; }

@media (max-width: 900px) {
  .gal-strip {
    grid-template-columns: 1fr;
    grid-template-rows: 340px 340px;
    gap: 12px;
  }
}

/* ── VIDEO ──────────────────────────────────────────────────────── */
.video-wrap {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(10, 25, 47, 0.15);
  background: #000;
}
.video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  background: #000;
}
@media (max-width: 900px) {
  .video-wrap { border-radius: 12px; }
}

/* ── ANTHEM LYRICS ──────────────────────────────────────────── */
.about-lyrics {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 44px;
  background: #0a192f;
  color: #fff;
  border-radius: 20px;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.9;
  font-style: italic;
}
.about-lyrics p { margin: 0 0 16px; }
.about-lyrics strong { color: #c59b27; font-style: normal; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }

/* ═══ Benefit card bullet list ═══ */
.feat-card .feat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feat-card .feat-list li {
  position: relative;
  padding: 4px 0 4px 22px;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}
.feat-card .feat-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a961' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ═══ Contact form ═══ */
.contact-form-section { padding: 60px 0 80px; background: #fff; }
.contact-form-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.contact-form-header { text-align: center; margin-bottom: 36px; }
.contact-form {
  display: grid;
  gap: 20px;
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cf-field { display: flex; flex-direction: column; }
.cf-field label {
  font-size: 13px;
  font-weight: 600;
  color: #0a1a3a;
  margin-bottom: 8px;
}
.cf-field label .req { color: #c9a961; }
.cf-field label .opt { color: #94a3b8; font-weight: 500; font-size: 12px; }
.cf-field input,
.cf-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: #0a1a3a;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cf-field input:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: #c9a961;
  box-shadow: 0 0 0 3px rgba(201,169,97,0.15);
}
.cf-field textarea { resize: vertical; min-height: 120px; }

.cf-status {
  font-size: 14px;
  padding: 0;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.cf-status:empty { display: none; }
.cf-status--success {
  padding: 12px 16px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.cf-status--error {
  padding: 12px 16px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.cf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: #0a1a3a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  justify-self: start;
  transition: background 0.2s ease, transform 0.15s ease;
}
.cf-submit:hover:not(:disabled) { background: #172554; transform: translateY(-1px); }
.cf-submit:disabled { opacity: 0.7; cursor: not-allowed; }

@media (max-width: 640px) {
  .cf-row { grid-template-columns: 1fr; gap: 16px; }
  .cf-submit { width: 100%; justify-self: stretch; }
}


/* ═══ Contact: 2-column boxes (info | form) ═══ */
.contact-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1180px;
  margin: 40px auto 80px;
  padding: 0 24px;
  align-items: start;
}

.contact-columns > section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 40px 36px !important;
  margin: 0 !important;
  max-width: none !important;
  min-width: 0;
  box-shadow: 0 4px 20px rgba(6,15,34,0.04);
}

.contact-columns > section:first-child {
  background: #fafbfc;
}

/* Inside the info box, stack cards 1 per row for a clean list look */
.contact-columns > section:first-child .info-cards,
.contact-columns > section:first-child .cards,
.contact-columns > section:first-child [class*="grid"] {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

/* Section headers inside the boxes should be left-aligned, not centered */
.contact-columns > section .section-header,
.contact-columns > section .contact-form-header {
  text-align: left;
  margin-bottom: 24px;
}
.contact-columns > section .sec-h2 { font-size: 22px; }
.contact-columns > section .sec-sub { font-size: 14px; }

/* Form fields full width inside the smaller box */
.contact-columns .cf-row {
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}
.contact-columns .cf-submit { width: 100%; justify-self: stretch; }

@media (max-width: 900px) {
  .contact-columns {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 24px auto 60px;
    padding: 0 16px;
  }
  .contact-columns > section { padding: 28px 22px !important; }
  /* Form first on mobile */
  .contact-columns > .contact-form-section { order: -1; }
}

/* ─── Mobile icon size cap ───────────────────────────── */
@media (max-width: 900px) {
  .feat-icon {
    width: 52px !important;
    height: 52px !important;
    font-size: 24px !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .feat-icon i,
  .feat-icon svg {
    font-size: inherit !important;
    width: 24px !important;
    height: 24px !important;
    line-height: 1 !important;
  }
}

/* ─── Mobile video optimization ──────────────────────── */
@media (max-width: 900px) {
  .video-wrap {
    border-radius: 12px;
    margin: 0 12px;
    max-width: 100%;
  }
  .video-wrap video {
    width: 100%;
    height: auto;
    max-height: 55vh;
    object-fit: contain;
  }
}

/* ─── Video: force 16:9 on all screens ────────────── */
.video-wrap {
  max-width: 900px;
  aspect-ratio: 16 / 9;
}
.video-wrap video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  background: #000;
}
@media (max-width: 900px) {
  .video-wrap {
    margin: 0 12px;
    border-radius: 12px;
  }
}

/* ─── Video: force landscape aspect on mobile ────────── */
@media (max-width: 900px) {
  .video-wrap {
    max-width: calc(100% - 32px) !important;
    margin: 16px auto !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }
  .video-wrap video {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    display: block !important;
  }
}

/* ─── Force widescreen video on mobile ──────────────── */
@media (max-width: 900px) {
  .video-wrap {
    width: 100% !important;
    max-width: calc(100% - 32px) !important;
    margin: 16px auto !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    position: relative !important;
  }
  .video-wrap video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-height: none !important;
  }
}



/* Overflow safety net */
html, body { overflow-x: hidden !important; max-width: 100% !important; }
.section, section, .crest-section, .crest-interactive { max-width: 100% !important; overflow-x: clip !important; }
.crest-stage, .crest-svg, .crest-img, .crest-interactive img { max-width: 100% !important; height: auto !important; }
@media (max-width: 900px) {
  .features-grid, .news-grid, .cta-cards, .gal-strip, .stats-band { grid-template-columns: 1fr !important; }
}


/* ─── Mobile nav (restored) ──────────────────────────── */
@media (max-width: 900px) {
  .main-nav { padding: 0 16px; height: 56px; position: relative; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none !important;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #0a192f;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 8px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 9999;
  }
  .nav-links.open { display: flex !important; }
  .nav-links a {
    padding: 14px 20px !important;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 14px !important;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-portal { border-radius: 0 !important; text-align: center; }
}


/* Mission & Vision cards (restored) */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0 0 24px; }
.mv-card {
  border-radius: 16px;
  padding: 28px 26px;
  color: #fff;
}
.mv-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
}
.mv-card p { font-size: 14px; line-height: 1.7; margin: 0; opacity: 0.92; }
.mv-card.navy { background: #0a192f; }
.mv-card.gold { background: #c59b27; }

.values-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.value-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}
.value-pill.filled { background: #0a192f; color: #fff; }
.value-pill.outline { background: transparent; border: 1.5px solid #c59b27; color: #c59b27; }

@media (max-width: 900px) {
  .mv-grid { grid-template-columns: 1fr; gap: 14px; }
  .mv-card { padding: 22px 20px; }
  .mv-card h3 { font-size: 19px; }
  .mv-card p { font-size: 13.5px; }
  .values-pills { gap: 8px; }
  .value-pill { font-size: 11px; padding: 7px 14px; }
}


/* Desktop: center the crest anatomy */
@media (min-width: 901px) {
  .crest-interactive {
    grid-template-columns: 1fr;
    justify-items: center;
    max-width: 860px;
    gap: 20px;
    text-align: center;
  }
  .crest-stage {
    max-width: 460px;
    margin: 0 auto;
    grid-column: 1;
  }
  .crest-legend {
    justify-content: center;
    margin: 12px auto 0;
    max-width: 760px;
  }
  .crest-legend button {
    padding: 10px 18px;
  }
  .crest-panel {
    max-width: 760px;
    margin: 8px auto 0;
    padding: 26px 32px;
    background: linear-gradient(180deg, rgba(201,169,97,0.05), rgba(201,169,97,0.01));
    border: 1px solid rgba(201,169,97,0.22);
    border-radius: 16px;
    text-align: center;
  }
  .crest-panel-idle {
    text-align: center;
  }
  .crest-panel-content {
    text-align: center;
  }
  .crest-panel-icon {
    margin: 0 auto 14px;
  }
  .crest-panel-value,
  .crest-panel-component,
  .crest-panel-desc {
    text-align: center;
  }
}


/* Desktop: force center the crest */
@media (min-width: 901px) {
  .crest-interactive {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    max-width: 900px !important;
    gap: 24px !important;
    text-align: center !important;
  }
  .crest-stage {
    grid-column: auto !important;
    grid-row: auto !important;
    order: 1;
    max-width: 440px !important;
    margin: 0 auto !important;
  }
  .crest-legend {
    order: 2;
    justify-content: center !important;
    margin: 0 auto !important;
    max-width: 720px !important;
  }
  .crest-panel {
    order: 3;
    width: 100% !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    padding: 26px 32px !important;
    border: 1px solid rgba(201,169,97,0.22) !important;
    border-radius: 16px !important;
    text-align: center !important;
  }
  .crest-panel-idle,
  .crest-panel-content,
  .crest-panel-icon,
  .crest-panel-value,
  .crest-panel-component,
  .crest-panel-desc {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .crest-panel-icon { margin: 0 auto 14px !important; }
}


/* Desktop: crest left, description right */
@media (min-width: 901px) {
  .crest-interactive {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-areas:
      "stage panel"
      "legend panel" !important;
    align-items: start !important;
    gap: 40px 48px !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    text-align: left !important;
  }
  .crest-stage {
    grid-area: stage !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .crest-legend {
    grid-area: legend !important;
    justify-content: center !important;
    margin: 16px 0 0 !important;
    max-width: 100% !important;
  }
  .crest-panel {
    grid-area: panel !important;
    align-self: center !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  .crest-panel-idle,
  .crest-panel-content,
  .crest-panel-value,
  .crest-panel-component,
  .crest-panel-desc {
    text-align: left !important;
  }
  .crest-panel-icon { margin: 0 0 14px !important; }
}


/* Desktop: crest centered, panel below */
@media (min-width: 901px) {
  .crest-interactive {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 24px !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
  .crest-stage {
    max-width: 440px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  .crest-legend {
    justify-content: center !important;
    margin: 8px auto 0 !important;
    max-width: 700px !important;
  }
  .crest-panel {
    width: 100% !important;
    max-width: 680px !important;
    margin: 0 auto !important;
    padding: 24px 32px !important;
    border: 1px solid rgba(201,169,97,0.22) !important;
    border-radius: 16px !important;
    text-align: center !important;
  }
  .crest-panel-idle,
  .crest-panel-content,
  .crest-panel-value,
  .crest-panel-component,
  .crest-panel-desc {
    text-align: center !important;
  }
  .crest-panel-icon { margin: 0 auto 14px !important; }
}


/* Bolder crest title */
.crest-section .sec-h2 {
  font-weight: 800 !important;
  font-size: 36px !important;
  letter-spacing: -0.5px !important;
  color: #0a192f !important;
}
@media (max-width: 900px) {
  .crest-section .sec-h2 { font-size: 26px !important; }
}


/* Crest title — H1 visual size */
.crest-section .sec-h2 {
  font-size: 44px !important;
  font-weight: 800 !important;
  letter-spacing: -0.7px !important;
  color: #0a192f !important;
  line-height: 1.15 !important;
}
@media (max-width: 900px) {
  .crest-section .sec-h2 { font-size: 30px !important; }
}
/* ═══════════════════════════════════════════════════════════════════
   LOFTY ACADEMY — Shared Stylesheet
   Used by: index.html, about.html, admissions.html, academics.html,
            news.html, contact.html, gallery.html
   ═══════════════════════════════════════════════════════════════════ */

/* ── RESET & BASE ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  overflow-x: clip;
  max-width: 100vw;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: #fff;
  color: #1a1a1a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }

/* ── COLOURS — edit these to rebrand the whole site ─────────────── */
:root {
  --navy:   #0a192f;
  --gold:   #c59b27;
  --gold-d: #a8821e;
  --green:  #15803d;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --text:   #1a1a1a;
  --muted:  #64748b;
}

/* ── NAVIGATION ──────────────────────────────────────────────────── */
.main-nav {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-shield {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
}
.logo-name { color: #fff; font-size: 17px; font-weight: 600; }
.logo-name span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; }
.nav-portal {
  background: var(--gold) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 7px !important;
  font-weight: 600 !important;
}
.nav-portal:hover { background: var(--gold-d) !important; }

/* ── PAGE HERO (inner pages) ─────────────────────────────────────── */
.pg-hero {
  background: var(--navy);
  padding: 56px 48px 48px;
  border-bottom: 3px solid var(--gold);
}
.pg-breadcrumb { font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 10px; }
.pg-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 10px;
}
.pg-hero p { font-size: 15px; color: rgba(255,255,255,0.6); max-width: 520px; line-height: 1.65; }

/* ── SECTIONS ────────────────────────────────────────────────────── */
.section { padding: 72px 48px; }
.section-header { text-align: center; margin-bottom: 48px; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  background: #e8f0fb;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.sec-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
  line-height: 1.2;
}
.sec-sub { font-size: 15px; color: var(--muted); max-width: 520px; margin: 0 auto; line-height: 1.65; }
.body-text { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn-gold {
  background: var(--gold);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background 0.2s;
}
.btn-gold:hover { background: var(--gold-d); }
.btn-navy {
  background: var(--navy);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background 0.2s;
}
.btn-navy:hover { background: #142e4a; }
.btn-outline-navy {
  border: 1.5px solid var(--navy);
  color: var(--navy);
  padding: 11px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ── FORM INPUTS ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: #444; margin-bottom: 5px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--navy);
}
.form-textarea { height: 110px; resize: vertical; }

/* ── CARD BASE ───────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
.main-footer { background: #111; padding: 56px 48px 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.foot-brand p { font-size: 13px; color: #666; line-height: 1.65; margin-top: 6px; }
.foot-col h5 { color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.foot-col a { display: block; color: #666; font-size: 13px; text-decoration: none; margin-bottom: 10px; transition: color 0.15s; }
.foot-col a:hover { color: #ccc; }
.foot-bottom {
  border-top: 1px solid #222;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.foot-bottom p { font-size: 12px; color: #555; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 34px; height: 34px;
  border: 1px solid #333;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #666; font-size: 16px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.social-links a:hover { border-color: var(--gold); color: var(--gold); }

/* ── DIVIDER ─────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 40px 0; }

/* ── GRID HELPERS ────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .main-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .section { padding: 48px 20px; }
  .pg-hero { padding: 40px 20px 36px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero { padding: 64px 20px 48px; }
  .hero h1 { font-size: 34px; }
  .hero-stats { gap: 28px; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE NAV + RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  padding: 6px 8px;
  line-height: 1;
  margin-left: auto;
}

@media (max-width: 900px) {
  
.stats-band { padding: 32px 20px !important; gap: 18px !important; }
  .stats-band .sn { font-size: 26px !important; }
  .stats-band .sl { font-size: 12px !important; }

  .cta-band { padding: 48px 20px !important; }
  .cta-band h2 { font-size: 24px !important; }

  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  .main-footer { padding: 40px 20px 22px !important; }
  .foot-bottom { flex-direction: column; gap: 14px; text-align: center; }

  .level-tabs { flex-wrap: wrap; }
  .ltab { flex: 1 1 50%; border-right: none; border-bottom: 1px solid var(--border); }

  .info-card { padding: 14px; }
  .social-row { flex-wrap: wrap; }
  .social-btn { font-size: 12px; padding: 8px 12px; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO CAROUSEL — auto-cycling background with fade + Ken Burns
   ═══════════════════════════════════════════════════════════════ */
.hero.hero--carousel {
  position: relative;
  background: #0a192f;
  padding: 120px 48px 100px;
  overflow: hidden;
}
.hero-carousel-track {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-carousel-slide {
  position: absolute; inset: 0;
  background-size: cover;
  opacity: 0;
  animation: heroFade 25s infinite;
  will-change: opacity, transform;
}
.hero-carousel-slide:nth-child(1) { animation-delay: 0s; }
.hero-carousel-slide:nth-child(2) { animation-delay: 5s; }
.hero-carousel-slide:nth-child(3) { animation-delay: 10s; }
.hero-carousel-slide:nth-child(4) { animation-delay: 15s; }
.hero-carousel-slide:nth-child(5) { animation-delay: 20s; }
@keyframes heroFade {
  0%   { opacity: 0; transform: scale(1.06); }
  4%   { opacity: 1; }
  20%  { opacity: 1; transform: scale(1); }
  24%  { opacity: 0; }
  100% { opacity: 0; transform: scale(1.06); }
}
.hero-carousel-overlay {
  position: absolute; inset: 0;
  background: rgba(10, 25, 47, 0.55);
  z-index: 1;
}
.hero-carousel-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 100%;
}
.hero-carousel-content h1 { color: #fff; }
.hero-carousel-content .hero-sub { color: rgba(255,255,255,0.78); }

.hero-carousel-dots {
  position: absolute;
  bottom: 28px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 3;
}
.hero-carousel-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  animation: heroDot 25s infinite;
}
.hero-carousel-dots span:nth-child(1) { animation-delay: 0s; }
.hero-carousel-dots span:nth-child(2) { animation-delay: 5s; }
.hero-carousel-dots span:nth-child(3) { animation-delay: 10s; }
.hero-carousel-dots span:nth-child(4) { animation-delay: 15s; }
.hero-carousel-dots span:nth-child(5) { animation-delay: 20s; }
@keyframes heroDot {
  0%, 20%   { background: #c59b27; transform: scale(1.4); }
  24%, 100% { background: rgba(255,255,255,0.35); transform: scale(1); }
}

@media (max-width: 900px) {
  .hero.hero--carousel { padding: 64px 20px 80px; }
  .hero-carousel-dots { bottom: 18px; }
}

/* ── NAV LOGO AS LINK ────────────────────────────────────────────── */
a.nav-logo {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: opacity 0.15s;
}
a.nav-logo:hover { opacity: 0.85; }
a.nav-logo:focus { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }

/* ═══════════════════════════════════════════════════════════════
   CMS-RENDERED SECTION STYLES
   (These were in the old index.html inline <style>; moved here so
   every CMS block renders correctly.)
   ═══════════════════════════════════════════════════════════════ */

/* ── HERO ───────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(150deg, #061021 0%, #0a192f 55%, #112240 100%);
  padding: 100px 48px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 120%, rgba(197,155,39,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197,155,39,0.15);
  border: 1px solid rgba(197,155,39,0.35);
  color: #d4b352;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  max-width: 680px;
  margin: 0 auto 20px;
  letter-spacing: -0.5px;
}
.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-hero-primary {
  background: #c59b27;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-hero-primary:hover { background: #a8821e; }
.btn-hero-outline {
  background: transparent;
  color: #fff;
  padding: 13px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: border-color 0.2s;
}
.btn-hero-outline:hover { border-color: rgba(255,255,255,0.7); }

/* ── STATS BAND ─────────────────────────────────────────────────── */
.stats-band {
  background: #0a192f;
  padding: 48px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-band > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stats-band .sn {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 38px;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.stats-band .sl {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.3px;
}

/* ── FEATURES GRID ──────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat-card {
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 14px;
  padding: 26px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feat-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.feat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
}
.feat-icon.navy  { background: #e8f0fb; color: #0a192f; }
.feat-icon.gold  { background: #fef3de; color: #a8821e; }
.feat-icon.green { background: #e6f4ea; color: #15803d; }
.feat-card h4    { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: #1a1a1a; }
.feat-card p     { font-size: 13px; color: #64748b; line-height: 1.65; }

/* ── GALLERY STRIP ──────────────────────────────────────────────── */



/* ── CTA BAND ───────────────────────────────────────────────────── */
.cta-band {
  background: #0a192f;
  padding: 72px 48px;
  text-align: center;
}
.cta-band h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.cta-band > p { font-size: 15px; color: rgba(255,255,255,0.6); margin-bottom: 36px; }
.cta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
}
.cta-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}
.cta-card:hover { background: rgba(255,255,255,0.12); }
.cta-card i { font-size: 30px; color: #c59b27; display: block; margin-bottom: 10px; }
.cta-card strong { font-size: 13px; color: #fff; display: block; margin-bottom: 3px; }
.cta-card span { font-size: 12px; color: rgba(255,255,255,0.45); }

/* ── NEWS GRID ──────────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { border: 1px solid #eaecf0; border-radius: 14px; overflow: hidden; display: block; text-decoration: none; color: inherit; }
.news-thumb { height: 130px; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.news-thumb i { font-size: 44px; color: rgba(255,255,255,0.3); }
.news-body { padding: 18px; }
.news-cat  { font-size: 11px; font-weight: 600; color: #c59b27; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 6px; }
.news-body h4 { font-size: 14px; font-weight: 600; line-height: 1.45; color: #1a1a1a; margin-bottom: 10px; }
.news-date { font-size: 12px; color: #94a3b8; }

/* ── ABOUT / IMAGE-WITH-TEXT helper ─────────────────────────────── */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-wrap img { border-radius: 20px; width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.about-visual {
  background: linear-gradient(135deg, #0a192f, #061021);
  border-radius: 20px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual i { font-size: 90px; color: rgba(197,155,39,0.25); }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { padding: 64px 20px 56px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 14px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); padding: 32px 20px; gap: 20px; }
  .stats-band .sn { font-size: 28px; }
  .features-grid, .news-grid, .cta-cards { grid-template-columns: 1fr; }
  
  .gal-strip .gs-item, .gal-strip 
.about-wrap { grid-template-columns: 1fr; gap: 24px; }
  .cta-band { padding: 48px 20px; }
  .cta-band h2 { font-size: 24px; }
}


/* ═══════════════════════════════════════════════════════════════
   GALLERY — clean 2-tile layout
   Tiles are light so the image floats without a visible frame.
   background-size:contain → full image always visible, never cropped
   ═══════════════════════════════════════════════════════════════ */




@media (max-width: 900px) {
  
}


/* ═══════════════════════════════════════════════════════════════
   GALLERY — flat cream tiles, sized for near-square images
   ═══════════════════════════════════════════════════════════════ */




@media (max-width: 900px) {
  
}


/* ═══════════════════════════════════════════════════════════════
   GALLERY — images fill tiles edge-to-edge, no frame
   ═══════════════════════════════════════════════════════════════ */
.gal-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 400px;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.gs-item {
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center 30%;   /* bias toward faces */
  background-repeat: no-repeat;
}
.gs-item.tall { grid-row: span 1; }

@media (max-width: 900px) {
  .gal-strip {
    grid-template-columns: 1fr;
    grid-template-rows: 340px 340px;
    gap: 12px;
  }
}

/* ── VIDEO ──────────────────────────────────────────────────────── */
.video-wrap {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(10, 25, 47, 0.15);
  background: #000;
}
.video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  background: #000;
}
@media (max-width: 900px) {
  .video-wrap { border-radius: 12px; }
}

/* ── ANTHEM LYRICS ──────────────────────────────────────────── */
.about-lyrics {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 44px;
  background: #0a192f;
  color: #fff;
  border-radius: 20px;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.9;
  font-style: italic;
}
.about-lyrics p { margin: 0 0 16px; }
.about-lyrics strong { color: #c59b27; font-style: normal; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }

/* ═══ Benefit card bullet list ═══ */
.feat-card .feat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feat-card .feat-list li {
  position: relative;
  padding: 4px 0 4px 22px;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}
.feat-card .feat-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a961' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ═══ Contact form ═══ */
.contact-form-section { padding: 60px 0 80px; background: #fff; }
.contact-form-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.contact-form-header { text-align: center; margin-bottom: 36px; }
.contact-form {
  display: grid;
  gap: 20px;
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cf-field { display: flex; flex-direction: column; }
.cf-field label {
  font-size: 13px;
  font-weight: 600;
  color: #0a1a3a;
  margin-bottom: 8px;
}
.cf-field label .req { color: #c9a961; }
.cf-field label .opt { color: #94a3b8; font-weight: 500; font-size: 12px; }
.cf-field input,
.cf-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: #0a1a3a;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cf-field input:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: #c9a961;
  box-shadow: 0 0 0 3px rgba(201,169,97,0.15);
}
.cf-field textarea { resize: vertical; min-height: 120px; }

.cf-status {
  font-size: 14px;
  padding: 0;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.cf-status:empty { display: none; }
.cf-status--success {
  padding: 12px 16px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.cf-status--error {
  padding: 12px 16px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.cf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: #0a1a3a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  justify-self: start;
  transition: background 0.2s ease, transform 0.15s ease;
}
.cf-submit:hover:not(:disabled) { background: #172554; transform: translateY(-1px); }
.cf-submit:disabled { opacity: 0.7; cursor: not-allowed; }

@media (max-width: 640px) {
  .cf-row { grid-template-columns: 1fr; gap: 16px; }
  .cf-submit { width: 100%; justify-self: stretch; }
}


/* ═══ Contact: 2-column boxes (info | form) ═══ */
.contact-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1180px;
  margin: 40px auto 80px;
  padding: 0 24px;
  align-items: start;
}

.contact-columns > section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 40px 36px !important;
  margin: 0 !important;
  max-width: none !important;
  min-width: 0;
  box-shadow: 0 4px 20px rgba(6,15,34,0.04);
}

.contact-columns > section:first-child {
  background: #fafbfc;
}

/* Inside the info box, stack cards 1 per row for a clean list look */
.contact-columns > section:first-child .info-cards,
.contact-columns > section:first-child .cards,
.contact-columns > section:first-child [class*="grid"] {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

/* Section headers inside the boxes should be left-aligned, not centered */
.contact-columns > section .section-header,
.contact-columns > section .contact-form-header {
  text-align: left;
  margin-bottom: 24px;
}
.contact-columns > section .sec-h2 { font-size: 22px; }
.contact-columns > section .sec-sub { font-size: 14px; }

/* Form fields full width inside the smaller box */
.contact-columns .cf-row {
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}
.contact-columns .cf-submit { width: 100%; justify-self: stretch; }

@media (max-width: 900px) {
  .contact-columns {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 24px auto 60px;
    padding: 0 16px;
  }
  .contact-columns > section { padding: 28px 22px !important; }
  /* Form first on mobile */
  .contact-columns > .contact-form-section { order: -1; }
}

/* ─── Mobile icon size cap ───────────────────────────── */
@media (max-width: 900px) {
  .feat-icon {
    width: 52px !important;
    height: 52px !important;
    font-size: 24px !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .feat-icon i,
  .feat-icon svg {
    font-size: inherit !important;
    width: 24px !important;
    height: 24px !important;
    line-height: 1 !important;
  }
}

/* ─── Mobile video optimization ──────────────────────── */
@media (max-width: 900px) {
  .video-wrap {
    border-radius: 12px;
    margin: 0 12px;
    max-width: 100%;
  }
  .video-wrap video {
    width: 100%;
    height: auto;
    max-height: 55vh;
    object-fit: contain;
  }
}

/* ─── Video: force 16:9 on all screens ────────────── */
.video-wrap {
  max-width: 900px;
  aspect-ratio: 16 / 9;
}
.video-wrap video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  background: #000;
}
@media (max-width: 900px) {
  .video-wrap {
    margin: 0 12px;
    border-radius: 12px;
  }
}

/* ─── Video: force landscape aspect on mobile ────────── */
@media (max-width: 900px) {
  .video-wrap {
    max-width: calc(100% - 32px) !important;
    margin: 16px auto !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }
  .video-wrap video {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    display: block !important;
  }
}

/* ─── Force widescreen video on mobile ──────────────── */
@media (max-width: 900px) {
  .video-wrap {
    width: 100% !important;
    max-width: calc(100% - 32px) !important;
    margin: 16px auto !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    position: relative !important;
  }
  .video-wrap video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-height: none !important;
  }
}



/* Overflow safety net */
html, body { overflow-x: hidden !important; max-width: 100% !important; }
.section, section, .crest-section, .crest-interactive { max-width: 100% !important; overflow-x: clip !important; }
.crest-stage, .crest-svg, .crest-img, .crest-interactive img { max-width: 100% !important; height: auto !important; }
@media (max-width: 900px) {
  .features-grid, .news-grid, .cta-cards, .gal-strip, .stats-band { grid-template-columns: 1fr !important; }
}


/* ─── Mobile nav (restored) ──────────────────────────── */
@media (max-width: 900px) {
  .main-nav { padding: 0 16px; height: 56px; position: relative; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none !important;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #0a192f;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 8px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 9999;
  }
  .nav-links.open { display: flex !important; }
  .nav-links a {
    padding: 14px 20px !important;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 14px !important;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-portal { border-radius: 0 !important; text-align: center; }
}


/* Mission & Vision cards (restored) */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0 0 24px; }
.mv-card {
  border-radius: 16px;
  padding: 28px 26px;
  color: #fff;
}
.mv-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
}
.mv-card p { font-size: 14px; line-height: 1.7; margin: 0; opacity: 0.92; }
.mv-card.navy { background: #0a192f; }
.mv-card.gold { background: #c59b27; }

.values-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.value-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}
.value-pill.filled { background: #0a192f; color: #fff; }
.value-pill.outline { background: transparent; border: 1.5px solid #c59b27; color: #c59b27; }

@media (max-width: 900px) {
  .mv-grid { grid-template-columns: 1fr; gap: 14px; }
  .mv-card { padding: 22px 20px; }
  .mv-card h3 { font-size: 19px; }
  .mv-card p { font-size: 13.5px; }
  .values-pills { gap: 8px; }
  .value-pill { font-size: 11px; padding: 7px 14px; }
}


/* Desktop: center the crest anatomy */
@media (min-width: 901px) {
  .crest-interactive {
    grid-template-columns: 1fr;
    justify-items: center;
    max-width: 860px;
    gap: 20px;
    text-align: center;
  }
  .crest-stage {
    max-width: 460px;
    margin: 0 auto;
    grid-column: 1;
  }
  .crest-legend {
    justify-content: center;
    margin: 12px auto 0;
    max-width: 760px;
  }
  .crest-legend button {
    padding: 10px 18px;
  }
  .crest-panel {
    max-width: 760px;
    margin: 8px auto 0;
    padding: 26px 32px;
    background: linear-gradient(180deg, rgba(201,169,97,0.05), rgba(201,169,97,0.01));
    border: 1px solid rgba(201,169,97,0.22);
    border-radius: 16px;
    text-align: center;
  }
  .crest-panel-idle {
    text-align: center;
  }
  .crest-panel-content {
    text-align: center;
  }
  .crest-panel-icon {
    margin: 0 auto 14px;
  }
  .crest-panel-value,
  .crest-panel-component,
  .crest-panel-desc {
    text-align: center;
  }
}


/* Desktop: force center the crest */
@media (min-width: 901px) {
  .crest-interactive {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    max-width: 900px !important;
    gap: 24px !important;
    text-align: center !important;
  }
  .crest-stage {
    grid-column: auto !important;
    grid-row: auto !important;
    order: 1;
    max-width: 440px !important;
    margin: 0 auto !important;
  }
  .crest-legend {
    order: 2;
    justify-content: center !important;
    margin: 0 auto !important;
    max-width: 720px !important;
  }
  .crest-panel {
    order: 3;
    width: 100% !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    padding: 26px 32px !important;
    border: 1px solid rgba(201,169,97,0.22) !important;
    border-radius: 16px !important;
    text-align: center !important;
  }
  .crest-panel-idle,
  .crest-panel-content,
  .crest-panel-icon,
  .crest-panel-value,
  .crest-panel-component,
  .crest-panel-desc {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .crest-panel-icon { margin: 0 auto 14px !important; }
}


/* Desktop: crest left, description right */
@media (min-width: 901px) {
  .crest-interactive {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-areas:
      "stage panel"
      "legend panel" !important;
    align-items: start !important;
    gap: 40px 48px !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    text-align: left !important;
  }
  .crest-stage {
    grid-area: stage !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .crest-legend {
    grid-area: legend !important;
    justify-content: center !important;
    margin: 16px 0 0 !important;
    max-width: 100% !important;
  }
  .crest-panel {
    grid-area: panel !important;
    align-self: center !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  .crest-panel-idle,
  .crest-panel-content,
  .crest-panel-value,
  .crest-panel-component,
  .crest-panel-desc {
    text-align: left !important;
  }
  .crest-panel-icon { margin: 0 0 14px !important; }
}


/* Desktop: crest centered, panel below */
@media (min-width: 901px) {
  .crest-interactive {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 24px !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
  .crest-stage {
    max-width: 440px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  .crest-legend {
    justify-content: center !important;
    margin: 8px auto 0 !important;
    max-width: 700px !important;
  }
  .crest-panel {
    width: 100% !important;
    max-width: 680px !important;
    margin: 0 auto !important;
    padding: 24px 32px !important;
    border: 1px solid rgba(201,169,97,0.22) !important;
    border-radius: 16px !important;
    text-align: center !important;
  }
  .crest-panel-idle,
  .crest-panel-content,
  .crest-panel-value,
  .crest-panel-component,
  .crest-panel-desc {
    text-align: center !important;
  }
  .crest-panel-icon { margin: 0 auto 14px !important; }
}


/* Bolder crest title */
.crest-section .sec-h2 {
  font-weight: 800 !important;
  font-size: 36px !important;
  letter-spacing: -0.5px !important;
  color: #0a192f !important;
}
@media (max-width: 900px) {
  .crest-section .sec-h2 { font-size: 26px !important; }
}


/* Crest title — H1 visual size */
.crest-section .sec-h2 {
  font-size: 44px !important;
  font-weight: 800 !important;
  letter-spacing: -0.7px !important;
  color: #0a192f !important;
  line-height: 1.15 !important;
}
@media (max-width: 900px) {
  .crest-section .sec-h2 { font-size: 30px !important; }
}

/* ─── Back to Cube button ─── */
.back-to-cube-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px 0;
}
.back-to-cube {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #0a192f;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 100px;
  padding: 9px 18px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.back-to-cube:hover {
  background: #0a192f;
  border-color: #0a192f;
  color: #fff;
  transform: translateX(-3px);
}
.back-to-cube i { font-size: 16px; }
@media (max-width: 900px) {
  .back-to-cube-wrap { padding: 14px 16px 0; }
}
/* ═══════════════════════════════════════════════════════════════════
   LOFTY ACADEMY — Shared Stylesheet
   Used by: index.html, about.html, admissions.html, academics.html,
            news.html, contact.html, gallery.html
   ═══════════════════════════════════════════════════════════════════ */

/* ── RESET & BASE ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  overflow-x: clip;
  max-width: 100vw;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: #fff;
  color: #1a1a1a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }

/* ── COLOURS — edit these to rebrand the whole site ─────────────── */
:root {
  --navy:   #0a192f;
  --gold:   #c59b27;
  --gold-d: #a8821e;
  --green:  #15803d;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --text:   #1a1a1a;
  --muted:  #64748b;
}

/* ── NAVIGATION ──────────────────────────────────────────────────── */
.main-nav {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-shield {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
}
.logo-name { color: #fff; font-size: 17px; font-weight: 600; }
.logo-name span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; }
.nav-portal {
  background: var(--gold) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 7px !important;
  font-weight: 600 !important;
}
.nav-portal:hover { background: var(--gold-d) !important; }

/* ── PAGE HERO (inner pages) ─────────────────────────────────────── */
.pg-hero {
  background: var(--navy);
  padding: 56px 48px 48px;
  border-bottom: 3px solid var(--gold);
}
.pg-breadcrumb { font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 10px; }
.pg-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 10px;
}
.pg-hero p { font-size: 15px; color: rgba(255,255,255,0.6); max-width: 520px; line-height: 1.65; }

/* ── SECTIONS ────────────────────────────────────────────────────── */
.section { padding: 72px 48px; }
.section-header { text-align: center; margin-bottom: 48px; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  background: #e8f0fb;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.sec-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
  line-height: 1.2;
}
.sec-sub { font-size: 15px; color: var(--muted); max-width: 520px; margin: 0 auto; line-height: 1.65; }
.body-text { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn-gold {
  background: var(--gold);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background 0.2s;
}
.btn-gold:hover { background: var(--gold-d); }
.btn-navy {
  background: var(--navy);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background 0.2s;
}
.btn-navy:hover { background: #142e4a; }
.btn-outline-navy {
  border: 1.5px solid var(--navy);
  color: var(--navy);
  padding: 11px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ── FORM INPUTS ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: #444; margin-bottom: 5px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--navy);
}
.form-textarea { height: 110px; resize: vertical; }

/* ── CARD BASE ───────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
.main-footer { background: #111; padding: 56px 48px 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.foot-brand p { font-size: 13px; color: #666; line-height: 1.65; margin-top: 6px; }
.foot-col h5 { color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.foot-col a { display: block; color: #666; font-size: 13px; text-decoration: none; margin-bottom: 10px; transition: color 0.15s; }
.foot-col a:hover { color: #ccc; }
.foot-bottom {
  border-top: 1px solid #222;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.foot-bottom p { font-size: 12px; color: #555; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 34px; height: 34px;
  border: 1px solid #333;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #666; font-size: 16px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.social-links a:hover { border-color: var(--gold); color: var(--gold); }

/* ── DIVIDER ─────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 40px 0; }

/* ── GRID HELPERS ────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .main-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .section { padding: 48px 20px; }
  .pg-hero { padding: 40px 20px 36px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero { padding: 64px 20px 48px; }
  .hero h1 { font-size: 34px; }
  .hero-stats { gap: 28px; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE NAV + RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  padding: 6px 8px;
  line-height: 1;
  margin-left: auto;
}

@media (max-width: 900px) {
  
.stats-band { padding: 32px 20px !important; gap: 18px !important; }
  .stats-band .sn { font-size: 26px !important; }
  .stats-band .sl { font-size: 12px !important; }

  .cta-band { padding: 48px 20px !important; }
  .cta-band h2 { font-size: 24px !important; }

  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  .main-footer { padding: 40px 20px 22px !important; }
  .foot-bottom { flex-direction: column; gap: 14px; text-align: center; }

  .level-tabs { flex-wrap: wrap; }
  .ltab { flex: 1 1 50%; border-right: none; border-bottom: 1px solid var(--border); }

  .info-card { padding: 14px; }
  .social-row { flex-wrap: wrap; }
  .social-btn { font-size: 12px; padding: 8px 12px; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO CAROUSEL — auto-cycling background with fade + Ken Burns
   ═══════════════════════════════════════════════════════════════ */
.hero.hero--carousel {
  position: relative;
  background: #0a192f;
  padding: 120px 48px 100px;
  overflow: hidden;
}
.hero-carousel-track {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-carousel-slide {
  position: absolute; inset: 0;
  background-size: cover;
  opacity: 0;
  animation: heroFade 25s infinite;
  will-change: opacity, transform;
}
.hero-carousel-slide:nth-child(1) { animation-delay: 0s; }
.hero-carousel-slide:nth-child(2) { animation-delay: 5s; }
.hero-carousel-slide:nth-child(3) { animation-delay: 10s; }
.hero-carousel-slide:nth-child(4) { animation-delay: 15s; }
.hero-carousel-slide:nth-child(5) { animation-delay: 20s; }
@keyframes heroFade {
  0%   { opacity: 0; transform: scale(1.06); }
  4%   { opacity: 1; }
  20%  { opacity: 1; transform: scale(1); }
  24%  { opacity: 0; }
  100% { opacity: 0; transform: scale(1.06); }
}
.hero-carousel-overlay {
  position: absolute; inset: 0;
  background: rgba(10, 25, 47, 0.55);
  z-index: 1;
}
.hero-carousel-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 100%;
}
.hero-carousel-content h1 { color: #fff; }
.hero-carousel-content .hero-sub { color: rgba(255,255,255,0.78); }

.hero-carousel-dots {
  position: absolute;
  bottom: 28px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 3;
}
.hero-carousel-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  animation: heroDot 25s infinite;
}
.hero-carousel-dots span:nth-child(1) { animation-delay: 0s; }
.hero-carousel-dots span:nth-child(2) { animation-delay: 5s; }
.hero-carousel-dots span:nth-child(3) { animation-delay: 10s; }
.hero-carousel-dots span:nth-child(4) { animation-delay: 15s; }
.hero-carousel-dots span:nth-child(5) { animation-delay: 20s; }
@keyframes heroDot {
  0%, 20%   { background: #c59b27; transform: scale(1.4); }
  24%, 100% { background: rgba(255,255,255,0.35); transform: scale(1); }
}

@media (max-width: 900px) {
  .hero.hero--carousel { padding: 64px 20px 80px; }
  .hero-carousel-dots { bottom: 18px; }
}

/* ── NAV LOGO AS LINK ────────────────────────────────────────────── */
a.nav-logo {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: opacity 0.15s;
}
a.nav-logo:hover { opacity: 0.85; }
a.nav-logo:focus { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }

/* ═══════════════════════════════════════════════════════════════
   CMS-RENDERED SECTION STYLES
   (These were in the old index.html inline <style>; moved here so
   every CMS block renders correctly.)
   ═══════════════════════════════════════════════════════════════ */

/* ── HERO ───────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(150deg, #061021 0%, #0a192f 55%, #112240 100%);
  padding: 100px 48px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 120%, rgba(197,155,39,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197,155,39,0.15);
  border: 1px solid rgba(197,155,39,0.35);
  color: #d4b352;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  max-width: 680px;
  margin: 0 auto 20px;
  letter-spacing: -0.5px;
}
.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-hero-primary {
  background: #c59b27;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-hero-primary:hover { background: #a8821e; }
.btn-hero-outline {
  background: transparent;
  color: #fff;
  padding: 13px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: border-color 0.2s;
}
.btn-hero-outline:hover { border-color: rgba(255,255,255,0.7); }

/* ── STATS BAND ─────────────────────────────────────────────────── */
.stats-band {
  background: #0a192f;
  padding: 48px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-band > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stats-band .sn {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 38px;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.stats-band .sl {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.3px;
}

/* ── FEATURES GRID ──────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat-card {
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 14px;
  padding: 26px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feat-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.feat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
}
.feat-icon.navy  { background: #e8f0fb; color: #0a192f; }
.feat-icon.gold  { background: #fef3de; color: #a8821e; }
.feat-icon.green { background: #e6f4ea; color: #15803d; }
.feat-card h4    { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: #1a1a1a; }
.feat-card p     { font-size: 13px; color: #64748b; line-height: 1.65; }

/* ── GALLERY STRIP ──────────────────────────────────────────────── */



/* ── CTA BAND ───────────────────────────────────────────────────── */
.cta-band {
  background: #0a192f;
  padding: 72px 48px;
  text-align: center;
}
.cta-band h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.cta-band > p { font-size: 15px; color: rgba(255,255,255,0.6); margin-bottom: 36px; }
.cta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
}
.cta-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}
.cta-card:hover { background: rgba(255,255,255,0.12); }
.cta-card i { font-size: 30px; color: #c59b27; display: block; margin-bottom: 10px; }
.cta-card strong { font-size: 13px; color: #fff; display: block; margin-bottom: 3px; }
.cta-card span { font-size: 12px; color: rgba(255,255,255,0.45); }

/* ── NEWS GRID ──────────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { border: 1px solid #eaecf0; border-radius: 14px; overflow: hidden; display: block; text-decoration: none; color: inherit; }
.news-thumb { height: 130px; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.news-thumb i { font-size: 44px; color: rgba(255,255,255,0.3); }
.news-body { padding: 18px; }
.news-cat  { font-size: 11px; font-weight: 600; color: #c59b27; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 6px; }
.news-body h4 { font-size: 14px; font-weight: 600; line-height: 1.45; color: #1a1a1a; margin-bottom: 10px; }
.news-date { font-size: 12px; color: #94a3b8; }

/* ── ABOUT / IMAGE-WITH-TEXT helper ─────────────────────────────── */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-wrap img { border-radius: 20px; width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.about-visual {
  background: linear-gradient(135deg, #0a192f, #061021);
  border-radius: 20px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual i { font-size: 90px; color: rgba(197,155,39,0.25); }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { padding: 64px 20px 56px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 14px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); padding: 32px 20px; gap: 20px; }
  .stats-band .sn { font-size: 28px; }
  .features-grid, .news-grid, .cta-cards { grid-template-columns: 1fr; }
  
  .gal-strip .gs-item, .gal-strip 
.about-wrap { grid-template-columns: 1fr; gap: 24px; }
  .cta-band { padding: 48px 20px; }
  .cta-band h2 { font-size: 24px; }
}


/* ═══════════════════════════════════════════════════════════════
   GALLERY — clean 2-tile layout
   Tiles are light so the image floats without a visible frame.
   background-size:contain → full image always visible, never cropped
   ═══════════════════════════════════════════════════════════════ */




@media (max-width: 900px) {
  
}


/* ═══════════════════════════════════════════════════════════════
   GALLERY — flat cream tiles, sized for near-square images
   ═══════════════════════════════════════════════════════════════ */




@media (max-width: 900px) {
  
}


/* ═══════════════════════════════════════════════════════════════
   GALLERY — images fill tiles edge-to-edge, no frame
   ═══════════════════════════════════════════════════════════════ */
.gal-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 400px;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.gs-item {
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center 30%;   /* bias toward faces */
  background-repeat: no-repeat;
}
.gs-item.tall { grid-row: span 1; }

@media (max-width: 900px) {
  .gal-strip {
    grid-template-columns: 1fr;
    grid-template-rows: 340px 340px;
    gap: 12px;
  }
}

/* ── VIDEO ──────────────────────────────────────────────────────── */
.video-wrap {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(10, 25, 47, 0.15);
  background: #000;
}
.video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  background: #000;
}
@media (max-width: 900px) {
  .video-wrap { border-radius: 12px; }
}

/* ── ANTHEM LYRICS ──────────────────────────────────────────── */
.about-lyrics {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 44px;
  background: #0a192f;
  color: #fff;
  border-radius: 20px;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.9;
  font-style: italic;
}
.about-lyrics p { margin: 0 0 16px; }
.about-lyrics strong { color: #c59b27; font-style: normal; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }

/* ═══ Benefit card bullet list ═══ */
.feat-card .feat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feat-card .feat-list li {
  position: relative;
  padding: 4px 0 4px 22px;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}
.feat-card .feat-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a961' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ═══ Contact form ═══ */
.contact-form-section { padding: 60px 0 80px; background: #fff; }
.contact-form-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.contact-form-header { text-align: center; margin-bottom: 36px; }
.contact-form {
  display: grid;
  gap: 20px;
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cf-field { display: flex; flex-direction: column; }
.cf-field label {
  font-size: 13px;
  font-weight: 600;
  color: #0a1a3a;
  margin-bottom: 8px;
}
.cf-field label .req { color: #c9a961; }
.cf-field label .opt { color: #94a3b8; font-weight: 500; font-size: 12px; }
.cf-field input,
.cf-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: #0a1a3a;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cf-field input:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: #c9a961;
  box-shadow: 0 0 0 3px rgba(201,169,97,0.15);
}
.cf-field textarea { resize: vertical; min-height: 120px; }

.cf-status {
  font-size: 14px;
  padding: 0;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.cf-status:empty { display: none; }
.cf-status--success {
  padding: 12px 16px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.cf-status--error {
  padding: 12px 16px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.cf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: #0a1a3a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  justify-self: start;
  transition: background 0.2s ease, transform 0.15s ease;
}
.cf-submit:hover:not(:disabled) { background: #172554; transform: translateY(-1px); }
.cf-submit:disabled { opacity: 0.7; cursor: not-allowed; }

@media (max-width: 640px) {
  .cf-row { grid-template-columns: 1fr; gap: 16px; }
  .cf-submit { width: 100%; justify-self: stretch; }
}


/* ═══ Contact: 2-column boxes (info | form) ═══ */
.contact-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1180px;
  margin: 40px auto 80px;
  padding: 0 24px;
  align-items: start;
}

.contact-columns > section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 40px 36px !important;
  margin: 0 !important;
  max-width: none !important;
  min-width: 0;
  box-shadow: 0 4px 20px rgba(6,15,34,0.04);
}

.contact-columns > section:first-child {
  background: #fafbfc;
}

/* Inside the info box, stack cards 1 per row for a clean list look */
.contact-columns > section:first-child .info-cards,
.contact-columns > section:first-child .cards,
.contact-columns > section:first-child [class*="grid"] {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

/* Section headers inside the boxes should be left-aligned, not centered */
.contact-columns > section .section-header,
.contact-columns > section .contact-form-header {
  text-align: left;
  margin-bottom: 24px;
}
.contact-columns > section .sec-h2 { font-size: 22px; }
.contact-columns > section .sec-sub { font-size: 14px; }

/* Form fields full width inside the smaller box */
.contact-columns .cf-row {
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}
.contact-columns .cf-submit { width: 100%; justify-self: stretch; }

@media (max-width: 900px) {
  .contact-columns {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 24px auto 60px;
    padding: 0 16px;
  }
  .contact-columns > section { padding: 28px 22px !important; }
  /* Form first on mobile */
  .contact-columns > .contact-form-section { order: -1; }
}

/* ─── Mobile icon size cap ───────────────────────────── */
@media (max-width: 900px) {
  .feat-icon {
    width: 52px !important;
    height: 52px !important;
    font-size: 24px !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .feat-icon i,
  .feat-icon svg {
    font-size: inherit !important;
    width: 24px !important;
    height: 24px !important;
    line-height: 1 !important;
  }
}

/* ─── Mobile video optimization ──────────────────────── */
@media (max-width: 900px) {
  .video-wrap {
    border-radius: 12px;
    margin: 0 12px;
    max-width: 100%;
  }
  .video-wrap video {
    width: 100%;
    height: auto;
    max-height: 55vh;
    object-fit: contain;
  }
}

/* ─── Video: force 16:9 on all screens ────────────── */
.video-wrap {
  max-width: 900px;
  aspect-ratio: 16 / 9;
}
.video-wrap video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  background: #000;
}
@media (max-width: 900px) {
  .video-wrap {
    margin: 0 12px;
    border-radius: 12px;
  }
}

/* ─── Video: force landscape aspect on mobile ────────── */
@media (max-width: 900px) {
  .video-wrap {
    max-width: calc(100% - 32px) !important;
    margin: 16px auto !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }
  .video-wrap video {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    display: block !important;
  }
}

/* ─── Force widescreen video on mobile ──────────────── */
@media (max-width: 900px) {
  .video-wrap {
    width: 100% !important;
    max-width: calc(100% - 32px) !important;
    margin: 16px auto !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    position: relative !important;
  }
  .video-wrap video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-height: none !important;
  }
}



/* Overflow safety net */
html, body { overflow-x: hidden !important; max-width: 100% !important; }
.section, section, .crest-section, .crest-interactive { max-width: 100% !important; overflow-x: clip !important; }
.crest-stage, .crest-svg, .crest-img, .crest-interactive img { max-width: 100% !important; height: auto !important; }
@media (max-width: 900px) {
  .features-grid, .news-grid, .cta-cards, .gal-strip, .stats-band { grid-template-columns: 1fr !important; }
}


/* ─── Mobile nav (restored) ──────────────────────────── */
@media (max-width: 900px) {
  .main-nav { padding: 0 16px; height: 56px; position: relative; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none !important;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #0a192f;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 8px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 9999;
  }
  .nav-links.open { display: flex !important; }
  .nav-links a {
    padding: 14px 20px !important;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 14px !important;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-portal { border-radius: 0 !important; text-align: center; }
}


/* Mission & Vision cards (restored) */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0 0 24px; }
.mv-card {
  border-radius: 16px;
  padding: 28px 26px;
  color: #fff;
}
.mv-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
}
.mv-card p { font-size: 14px; line-height: 1.7; margin: 0; opacity: 0.92; }
.mv-card.navy { background: #0a192f; }
.mv-card.gold { background: #c59b27; }

.values-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.value-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}
.value-pill.filled { background: #0a192f; color: #fff; }
.value-pill.outline { background: transparent; border: 1.5px solid #c59b27; color: #c59b27; }

@media (max-width: 900px) {
  .mv-grid { grid-template-columns: 1fr; gap: 14px; }
  .mv-card { padding: 22px 20px; }
  .mv-card h3 { font-size: 19px; }
  .mv-card p { font-size: 13.5px; }
  .values-pills { gap: 8px; }
  .value-pill { font-size: 11px; padding: 7px 14px; }
}


/* Desktop: center the crest anatomy */
@media (min-width: 901px) {
  .crest-interactive {
    grid-template-columns: 1fr;
    justify-items: center;
    max-width: 860px;
    gap: 20px;
    text-align: center;
  }
  .crest-stage {
    max-width: 460px;
    margin: 0 auto;
    grid-column: 1;
  }
  .crest-legend {
    justify-content: center;
    margin: 12px auto 0;
    max-width: 760px;
  }
  .crest-legend button {
    padding: 10px 18px;
  }
  .crest-panel {
    max-width: 760px;
    margin: 8px auto 0;
    padding: 26px 32px;
    background: linear-gradient(180deg, rgba(201,169,97,0.05), rgba(201,169,97,0.01));
    border: 1px solid rgba(201,169,97,0.22);
    border-radius: 16px;
    text-align: center;
  }
  .crest-panel-idle {
    text-align: center;
  }
  .crest-panel-content {
    text-align: center;
  }
  .crest-panel-icon {
    margin: 0 auto 14px;
  }
  .crest-panel-value,
  .crest-panel-component,
  .crest-panel-desc {
    text-align: center;
  }
}


/* Desktop: force center the crest */
@media (min-width: 901px) {
  .crest-interactive {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    max-width: 900px !important;
    gap: 24px !important;
    text-align: center !important;
  }
  .crest-stage {
    grid-column: auto !important;
    grid-row: auto !important;
    order: 1;
    max-width: 440px !important;
    margin: 0 auto !important;
  }
  .crest-legend {
    order: 2;
    justify-content: center !important;
    margin: 0 auto !important;
    max-width: 720px !important;
  }
  .crest-panel {
    order: 3;
    width: 100% !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    padding: 26px 32px !important;
    border: 1px solid rgba(201,169,97,0.22) !important;
    border-radius: 16px !important;
    text-align: center !important;
  }
  .crest-panel-idle,
  .crest-panel-content,
  .crest-panel-icon,
  .crest-panel-value,
  .crest-panel-component,
  .crest-panel-desc {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .crest-panel-icon { margin: 0 auto 14px !important; }
}


/* Desktop: crest left, description right */
@media (min-width: 901px) {
  .crest-interactive {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-areas:
      "stage panel"
      "legend panel" !important;
    align-items: start !important;
    gap: 40px 48px !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    text-align: left !important;
  }
  .crest-stage {
    grid-area: stage !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .crest-legend {
    grid-area: legend !important;
    justify-content: center !important;
    margin: 16px 0 0 !important;
    max-width: 100% !important;
  }
  .crest-panel {
    grid-area: panel !important;
    align-self: center !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  .crest-panel-idle,
  .crest-panel-content,
  .crest-panel-value,
  .crest-panel-component,
  .crest-panel-desc {
    text-align: left !important;
  }
  .crest-panel-icon { margin: 0 0 14px !important; }
}


/* Desktop: crest centered, panel below */
@media (min-width: 901px) {
  .crest-interactive {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 24px !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
  .crest-stage {
    max-width: 440px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  .crest-legend {
    justify-content: center !important;
    margin: 8px auto 0 !important;
    max-width: 700px !important;
  }
  .crest-panel {
    width: 100% !important;
    max-width: 680px !important;
    margin: 0 auto !important;
    padding: 24px 32px !important;
    border: 1px solid rgba(201,169,97,0.22) !important;
    border-radius: 16px !important;
    text-align: center !important;
  }
  .crest-panel-idle,
  .crest-panel-content,
  .crest-panel-value,
  .crest-panel-component,
  .crest-panel-desc {
    text-align: center !important;
  }
  .crest-panel-icon { margin: 0 auto 14px !important; }
}


/* Bolder crest title */
.crest-section .sec-h2 {
  font-weight: 800 !important;
  font-size: 36px !important;
  letter-spacing: -0.5px !important;
  color: #0a192f !important;
}
@media (max-width: 900px) {
  .crest-section .sec-h2 { font-size: 26px !important; }
}


/* Crest title — H1 visual size */
.crest-section .sec-h2 {
  font-size: 44px !important;
  font-weight: 800 !important;
  letter-spacing: -0.7px !important;
  color: #0a192f !important;
  line-height: 1.15 !important;
}
@media (max-width: 900px) {
  .crest-section .sec-h2 { font-size: 30px !important; }
}
/* ═══════════════════════════════════════════════════════════════════
   LOFTY ACADEMY — Shared Stylesheet
   Used by: index.html, about.html, admissions.html, academics.html,
            news.html, contact.html, gallery.html
   ═══════════════════════════════════════════════════════════════════ */

/* ── RESET & BASE ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  overflow-x: clip;
  max-width: 100vw;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: #fff;
  color: #1a1a1a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }

/* ── COLOURS — edit these to rebrand the whole site ─────────────── */
:root {
  --navy:   #0a192f;
  --gold:   #c59b27;
  --gold-d: #a8821e;
  --green:  #15803d;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --text:   #1a1a1a;
  --muted:  #64748b;
}

/* ── NAVIGATION ──────────────────────────────────────────────────── */
.main-nav {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-shield {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
}
.logo-name { color: #fff; font-size: 17px; font-weight: 600; }
.logo-name span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; }
.nav-portal {
  background: var(--gold) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 7px !important;
  font-weight: 600 !important;
}
.nav-portal:hover { background: var(--gold-d) !important; }

/* ── PAGE HERO (inner pages) ─────────────────────────────────────── */
.pg-hero {
  background: var(--navy);
  padding: 56px 48px 48px;
  border-bottom: 3px solid var(--gold);
}
.pg-breadcrumb { font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 10px; }
.pg-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 10px;
}
.pg-hero p { font-size: 15px; color: rgba(255,255,255,0.6); max-width: 520px; line-height: 1.65; }

/* ── SECTIONS ────────────────────────────────────────────────────── */
.section { padding: 72px 48px; }
.section-header { text-align: center; margin-bottom: 48px; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  background: #e8f0fb;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.sec-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
  line-height: 1.2;
}
.sec-sub { font-size: 15px; color: var(--muted); max-width: 520px; margin: 0 auto; line-height: 1.65; }
.body-text { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn-gold {
  background: var(--gold);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background 0.2s;
}
.btn-gold:hover { background: var(--gold-d); }
.btn-navy {
  background: var(--navy);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background 0.2s;
}
.btn-navy:hover { background: #142e4a; }
.btn-outline-navy {
  border: 1.5px solid var(--navy);
  color: var(--navy);
  padding: 11px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ── FORM INPUTS ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: #444; margin-bottom: 5px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--navy);
}
.form-textarea { height: 110px; resize: vertical; }

/* ── CARD BASE ───────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
.main-footer { background: #111; padding: 56px 48px 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.foot-brand p { font-size: 13px; color: #666; line-height: 1.65; margin-top: 6px; }
.foot-col h5 { color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.foot-col a { display: block; color: #666; font-size: 13px; text-decoration: none; margin-bottom: 10px; transition: color 0.15s; }
.foot-col a:hover { color: #ccc; }
.foot-bottom {
  border-top: 1px solid #222;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.foot-bottom p { font-size: 12px; color: #555; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 34px; height: 34px;
  border: 1px solid #333;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #666; font-size: 16px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.social-links a:hover { border-color: var(--gold); color: var(--gold); }

/* ── DIVIDER ─────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 40px 0; }

/* ── GRID HELPERS ────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .main-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .section { padding: 48px 20px; }
  .pg-hero { padding: 40px 20px 36px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero { padding: 64px 20px 48px; }
  .hero h1 { font-size: 34px; }
  .hero-stats { gap: 28px; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE NAV + RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  padding: 6px 8px;
  line-height: 1;
  margin-left: auto;
}

@media (max-width: 900px) {
  
.stats-band { padding: 32px 20px !important; gap: 18px !important; }
  .stats-band .sn { font-size: 26px !important; }
  .stats-band .sl { font-size: 12px !important; }

  .cta-band { padding: 48px 20px !important; }
  .cta-band h2 { font-size: 24px !important; }

  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  .main-footer { padding: 40px 20px 22px !important; }
  .foot-bottom { flex-direction: column; gap: 14px; text-align: center; }

  .level-tabs { flex-wrap: wrap; }
  .ltab { flex: 1 1 50%; border-right: none; border-bottom: 1px solid var(--border); }

  .info-card { padding: 14px; }
  .social-row { flex-wrap: wrap; }
  .social-btn { font-size: 12px; padding: 8px 12px; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO CAROUSEL — auto-cycling background with fade + Ken Burns
   ═══════════════════════════════════════════════════════════════ */
.hero.hero--carousel {
  position: relative;
  background: #0a192f;
  padding: 120px 48px 100px;
  overflow: hidden;
}
.hero-carousel-track {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-carousel-slide {
  position: absolute; inset: 0;
  background-size: cover;
  opacity: 0;
  animation: heroFade 25s infinite;
  will-change: opacity, transform;
}
.hero-carousel-slide:nth-child(1) { animation-delay: 0s; }
.hero-carousel-slide:nth-child(2) { animation-delay: 5s; }
.hero-carousel-slide:nth-child(3) { animation-delay: 10s; }
.hero-carousel-slide:nth-child(4) { animation-delay: 15s; }
.hero-carousel-slide:nth-child(5) { animation-delay: 20s; }
@keyframes heroFade {
  0%   { opacity: 0; transform: scale(1.06); }
  4%   { opacity: 1; }
  20%  { opacity: 1; transform: scale(1); }
  24%  { opacity: 0; }
  100% { opacity: 0; transform: scale(1.06); }
}
.hero-carousel-overlay {
  position: absolute; inset: 0;
  background: rgba(10, 25, 47, 0.55);
  z-index: 1;
}
.hero-carousel-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 100%;
}
.hero-carousel-content h1 { color: #fff; }
.hero-carousel-content .hero-sub { color: rgba(255,255,255,0.78); }

.hero-carousel-dots {
  position: absolute;
  bottom: 28px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 3;
}
.hero-carousel-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  animation: heroDot 25s infinite;
}
.hero-carousel-dots span:nth-child(1) { animation-delay: 0s; }
.hero-carousel-dots span:nth-child(2) { animation-delay: 5s; }
.hero-carousel-dots span:nth-child(3) { animation-delay: 10s; }
.hero-carousel-dots span:nth-child(4) { animation-delay: 15s; }
.hero-carousel-dots span:nth-child(5) { animation-delay: 20s; }
@keyframes heroDot {
  0%, 20%   { background: #c59b27; transform: scale(1.4); }
  24%, 100% { background: rgba(255,255,255,0.35); transform: scale(1); }
}

@media (max-width: 900px) {
  .hero.hero--carousel { padding: 64px 20px 80px; }
  .hero-carousel-dots { bottom: 18px; }
}

/* ── NAV LOGO AS LINK ────────────────────────────────────────────── */
a.nav-logo {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: opacity 0.15s;
}
a.nav-logo:hover { opacity: 0.85; }
a.nav-logo:focus { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }

/* ═══════════════════════════════════════════════════════════════
   CMS-RENDERED SECTION STYLES
   (These were in the old index.html inline <style>; moved here so
   every CMS block renders correctly.)
   ═══════════════════════════════════════════════════════════════ */

/* ── HERO ───────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(150deg, #061021 0%, #0a192f 55%, #112240 100%);
  padding: 100px 48px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 120%, rgba(197,155,39,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197,155,39,0.15);
  border: 1px solid rgba(197,155,39,0.35);
  color: #d4b352;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  max-width: 680px;
  margin: 0 auto 20px;
  letter-spacing: -0.5px;
}
.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-hero-primary {
  background: #c59b27;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-hero-primary:hover { background: #a8821e; }
.btn-hero-outline {
  background: transparent;
  color: #fff;
  padding: 13px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: border-color 0.2s;
}
.btn-hero-outline:hover { border-color: rgba(255,255,255,0.7); }

/* ── STATS BAND ─────────────────────────────────────────────────── */
.stats-band {
  background: #0a192f;
  padding: 48px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-band > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stats-band .sn {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 38px;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.stats-band .sl {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.3px;
}

/* ── FEATURES GRID ──────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat-card {
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 14px;
  padding: 26px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feat-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.feat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
}
.feat-icon.navy  { background: #e8f0fb; color: #0a192f; }
.feat-icon.gold  { background: #fef3de; color: #a8821e; }
.feat-icon.green { background: #e6f4ea; color: #15803d; }
.feat-card h4    { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: #1a1a1a; }
.feat-card p     { font-size: 13px; color: #64748b; line-height: 1.65; }

/* ── GALLERY STRIP ──────────────────────────────────────────────── */



/* ── CTA BAND ───────────────────────────────────────────────────── */
.cta-band {
  background: #0a192f;
  padding: 72px 48px;
  text-align: center;
}
.cta-band h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.cta-band > p { font-size: 15px; color: rgba(255,255,255,0.6); margin-bottom: 36px; }
.cta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
}
.cta-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}
.cta-card:hover { background: rgba(255,255,255,0.12); }
.cta-card i { font-size: 30px; color: #c59b27; display: block; margin-bottom: 10px; }
.cta-card strong { font-size: 13px; color: #fff; display: block; margin-bottom: 3px; }
.cta-card span { font-size: 12px; color: rgba(255,255,255,0.45); }

/* ── NEWS GRID ──────────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { border: 1px solid #eaecf0; border-radius: 14px; overflow: hidden; display: block; text-decoration: none; color: inherit; }
.news-thumb { height: 130px; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.news-thumb i { font-size: 44px; color: rgba(255,255,255,0.3); }
.news-body { padding: 18px; }
.news-cat  { font-size: 11px; font-weight: 600; color: #c59b27; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 6px; }
.news-body h4 { font-size: 14px; font-weight: 600; line-height: 1.45; color: #1a1a1a; margin-bottom: 10px; }
.news-date { font-size: 12px; color: #94a3b8; }

/* ── ABOUT / IMAGE-WITH-TEXT helper ─────────────────────────────── */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-wrap img { border-radius: 20px; width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.about-visual {
  background: linear-gradient(135deg, #0a192f, #061021);
  border-radius: 20px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual i { font-size: 90px; color: rgba(197,155,39,0.25); }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { padding: 64px 20px 56px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 14px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); padding: 32px 20px; gap: 20px; }
  .stats-band .sn { font-size: 28px; }
  .features-grid, .news-grid, .cta-cards { grid-template-columns: 1fr; }
  
  .gal-strip .gs-item, .gal-strip 
.about-wrap { grid-template-columns: 1fr; gap: 24px; }
  .cta-band { padding: 48px 20px; }
  .cta-band h2 { font-size: 24px; }
}


/* ═══════════════════════════════════════════════════════════════
   GALLERY — clean 2-tile layout
   Tiles are light so the image floats without a visible frame.
   background-size:contain → full image always visible, never cropped
   ═══════════════════════════════════════════════════════════════ */




@media (max-width: 900px) {
  
}


/* ═══════════════════════════════════════════════════════════════
   GALLERY — flat cream tiles, sized for near-square images
   ═══════════════════════════════════════════════════════════════ */




@media (max-width: 900px) {
  
}


/* ═══════════════════════════════════════════════════════════════
   GALLERY — images fill tiles edge-to-edge, no frame
   ═══════════════════════════════════════════════════════════════ */
.gal-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 400px;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.gs-item {
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center 30%;   /* bias toward faces */
  background-repeat: no-repeat;
}
.gs-item.tall { grid-row: span 1; }

@media (max-width: 900px) {
  .gal-strip {
    grid-template-columns: 1fr;
    grid-template-rows: 340px 340px;
    gap: 12px;
  }
}

/* ── VIDEO ──────────────────────────────────────────────────────── */
.video-wrap {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(10, 25, 47, 0.15);
  background: #000;
}
.video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  background: #000;
}
@media (max-width: 900px) {
  .video-wrap { border-radius: 12px; }
}

/* ── ANTHEM LYRICS ──────────────────────────────────────────── */
.about-lyrics {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 44px;
  background: #0a192f;
  color: #fff;
  border-radius: 20px;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.9;
  font-style: italic;
}
.about-lyrics p { margin: 0 0 16px; }
.about-lyrics strong { color: #c59b27; font-style: normal; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }

/* ═══ Benefit card bullet list ═══ */
.feat-card .feat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feat-card .feat-list li {
  position: relative;
  padding: 4px 0 4px 22px;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}
.feat-card .feat-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a961' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ═══ Contact form ═══ */
.contact-form-section { padding: 60px 0 80px; background: #fff; }
.contact-form-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.contact-form-header { text-align: center; margin-bottom: 36px; }
.contact-form {
  display: grid;
  gap: 20px;
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cf-field { display: flex; flex-direction: column; }
.cf-field label {
  font-size: 13px;
  font-weight: 600;
  color: #0a1a3a;
  margin-bottom: 8px;
}
.cf-field label .req { color: #c9a961; }
.cf-field label .opt { color: #94a3b8; font-weight: 500; font-size: 12px; }
.cf-field input,
.cf-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: #0a1a3a;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cf-field input:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: #c9a961;
  box-shadow: 0 0 0 3px rgba(201,169,97,0.15);
}
.cf-field textarea { resize: vertical; min-height: 120px; }

.cf-status {
  font-size: 14px;
  padding: 0;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.cf-status:empty { display: none; }
.cf-status--success {
  padding: 12px 16px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.cf-status--error {
  padding: 12px 16px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.cf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: #0a1a3a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  justify-self: start;
  transition: background 0.2s ease, transform 0.15s ease;
}
.cf-submit:hover:not(:disabled) { background: #172554; transform: translateY(-1px); }
.cf-submit:disabled { opacity: 0.7; cursor: not-allowed; }

@media (max-width: 640px) {
  .cf-row { grid-template-columns: 1fr; gap: 16px; }
  .cf-submit { width: 100%; justify-self: stretch; }
}


/* ═══ Contact: 2-column boxes (info | form) ═══ */
.contact-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1180px;
  margin: 40px auto 80px;
  padding: 0 24px;
  align-items: start;
}

.contact-columns > section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 40px 36px !important;
  margin: 0 !important;
  max-width: none !important;
  min-width: 0;
  box-shadow: 0 4px 20px rgba(6,15,34,0.04);
}

.contact-columns > section:first-child {
  background: #fafbfc;
}

/* Inside the info box, stack cards 1 per row for a clean list look */
.contact-columns > section:first-child .info-cards,
.contact-columns > section:first-child .cards,
.contact-columns > section:first-child [class*="grid"] {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

/* Section headers inside the boxes should be left-aligned, not centered */
.contact-columns > section .section-header,
.contact-columns > section .contact-form-header {
  text-align: left;
  margin-bottom: 24px;
}
.contact-columns > section .sec-h2 { font-size: 22px; }
.contact-columns > section .sec-sub { font-size: 14px; }

/* Form fields full width inside the smaller box */
.contact-columns .cf-row {
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}
.contact-columns .cf-submit { width: 100%; justify-self: stretch; }

@media (max-width: 900px) {
  .contact-columns {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 24px auto 60px;
    padding: 0 16px;
  }
  .contact-columns > section { padding: 28px 22px !important; }
  /* Form first on mobile */
  .contact-columns > .contact-form-section { order: -1; }
}

/* ─── Mobile icon size cap ───────────────────────────── */
@media (max-width: 900px) {
  .feat-icon {
    width: 52px !important;
    height: 52px !important;
    font-size: 24px !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .feat-icon i,
  .feat-icon svg {
    font-size: inherit !important;
    width: 24px !important;
    height: 24px !important;
    line-height: 1 !important;
  }
}

/* ─── Mobile video optimization ──────────────────────── */
@media (max-width: 900px) {
  .video-wrap {
    border-radius: 12px;
    margin: 0 12px;
    max-width: 100%;
  }
  .video-wrap video {
    width: 100%;
    height: auto;
    max-height: 55vh;
    object-fit: contain;
  }
}

/* ─── Video: force 16:9 on all screens ────────────── */
.video-wrap {
  max-width: 900px;
  aspect-ratio: 16 / 9;
}
.video-wrap video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  background: #000;
}
@media (max-width: 900px) {
  .video-wrap {
    margin: 0 12px;
    border-radius: 12px;
  }
}

/* ─── Video: force landscape aspect on mobile ────────── */
@media (max-width: 900px) {
  .video-wrap {
    max-width: calc(100% - 32px) !important;
    margin: 16px auto !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }
  .video-wrap video {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    display: block !important;
  }
}

/* ─── Force widescreen video on mobile ──────────────── */
@media (max-width: 900px) {
  .video-wrap {
    width: 100% !important;
    max-width: calc(100% - 32px) !important;
    margin: 16px auto !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    position: relative !important;
  }
  .video-wrap video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-height: none !important;
  }
}



/* Overflow safety net */
html, body { overflow-x: hidden !important; max-width: 100% !important; }
.section, section, .crest-section, .crest-interactive { max-width: 100% !important; overflow-x: clip !important; }
.crest-stage, .crest-svg, .crest-img, .crest-interactive img { max-width: 100% !important; height: auto !important; }
@media (max-width: 900px) {
  .features-grid, .news-grid, .cta-cards, .gal-strip, .stats-band { grid-template-columns: 1fr !important; }
}


/* ─── Mobile nav (restored) ──────────────────────────── */
@media (max-width: 900px) {
  .main-nav { padding: 0 16px; height: 56px; position: relative; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none !important;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #0a192f;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 8px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 9999;
  }
  .nav-links.open { display: flex !important; }
  .nav-links a {
    padding: 14px 20px !important;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 14px !important;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-portal { border-radius: 0 !important; text-align: center; }
}


/* Mission & Vision cards (restored) */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0 0 24px; }
.mv-card {
  border-radius: 16px;
  padding: 28px 26px;
  color: #fff;
}
.mv-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
}
.mv-card p { font-size: 14px; line-height: 1.7; margin: 0; opacity: 0.92; }
.mv-card.navy { background: #0a192f; }
.mv-card.gold { background: #c59b27; }

.values-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.value-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}
.value-pill.filled { background: #0a192f; color: #fff; }
.value-pill.outline { background: transparent; border: 1.5px solid #c59b27; color: #c59b27; }

@media (max-width: 900px) {
  .mv-grid { grid-template-columns: 1fr; gap: 14px; }
  .mv-card { padding: 22px 20px; }
  .mv-card h3 { font-size: 19px; }
  .mv-card p { font-size: 13.5px; }
  .values-pills { gap: 8px; }
  .value-pill { font-size: 11px; padding: 7px 14px; }
}


/* Desktop: center the crest anatomy */
@media (min-width: 901px) {
  .crest-interactive {
    grid-template-columns: 1fr;
    justify-items: center;
    max-width: 860px;
    gap: 20px;
    text-align: center;
  }
  .crest-stage {
    max-width: 460px;
    margin: 0 auto;
    grid-column: 1;
  }
  .crest-legend {
    justify-content: center;
    margin: 12px auto 0;
    max-width: 760px;
  }
  .crest-legend button {
    padding: 10px 18px;
  }
  .crest-panel {
    max-width: 760px;
    margin: 8px auto 0;
    padding: 26px 32px;
    background: linear-gradient(180deg, rgba(201,169,97,0.05), rgba(201,169,97,0.01));
    border: 1px solid rgba(201,169,97,0.22);
    border-radius: 16px;
    text-align: center;
  }
  .crest-panel-idle {
    text-align: center;
  }
  .crest-panel-content {
    text-align: center;
  }
  .crest-panel-icon {
    margin: 0 auto 14px;
  }
  .crest-panel-value,
  .crest-panel-component,
  .crest-panel-desc {
    text-align: center;
  }
}


/* Desktop: force center the crest */
@media (min-width: 901px) {
  .crest-interactive {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    max-width: 900px !important;
    gap: 24px !important;
    text-align: center !important;
  }
  .crest-stage {
    grid-column: auto !important;
    grid-row: auto !important;
    order: 1;
    max-width: 440px !important;
    margin: 0 auto !important;
  }
  .crest-legend {
    order: 2;
    justify-content: center !important;
    margin: 0 auto !important;
    max-width: 720px !important;
  }
  .crest-panel {
    order: 3;
    width: 100% !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    padding: 26px 32px !important;
    border: 1px solid rgba(201,169,97,0.22) !important;
    border-radius: 16px !important;
    text-align: center !important;
  }
  .crest-panel-idle,
  .crest-panel-content,
  .crest-panel-icon,
  .crest-panel-value,
  .crest-panel-component,
  .crest-panel-desc {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .crest-panel-icon { margin: 0 auto 14px !important; }
}


/* Desktop: crest left, description right */
@media (min-width: 901px) {
  .crest-interactive {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-areas:
      "stage panel"
      "legend panel" !important;
    align-items: start !important;
    gap: 40px 48px !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    text-align: left !important;
  }
  .crest-stage {
    grid-area: stage !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .crest-legend {
    grid-area: legend !important;
    justify-content: center !important;
    margin: 16px 0 0 !important;
    max-width: 100% !important;
  }
  .crest-panel {
    grid-area: panel !important;
    align-self: center !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  .crest-panel-idle,
  .crest-panel-content,
  .crest-panel-value,
  .crest-panel-component,
  .crest-panel-desc {
    text-align: left !important;
  }
  .crest-panel-icon { margin: 0 0 14px !important; }
}


/* Desktop: crest centered, panel below */
@media (min-width: 901px) {
  .crest-interactive {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 24px !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
  .crest-stage {
    max-width: 440px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  .crest-legend {
    justify-content: center !important;
    margin: 8px auto 0 !important;
    max-width: 700px !important;
  }
  .crest-panel {
    width: 100% !important;
    max-width: 680px !important;
    margin: 0 auto !important;
    padding: 24px 32px !important;
    border: 1px solid rgba(201,169,97,0.22) !important;
    border-radius: 16px !important;
    text-align: center !important;
  }
  .crest-panel-idle,
  .crest-panel-content,
  .crest-panel-value,
  .crest-panel-component,
  .crest-panel-desc {
    text-align: center !important;
  }
  .crest-panel-icon { margin: 0 auto 14px !important; }
}


/* Bolder crest title */
.crest-section .sec-h2 {
  font-weight: 800 !important;
  font-size: 36px !important;
  letter-spacing: -0.5px !important;
  color: #0a192f !important;
}
@media (max-width: 900px) {
  .crest-section .sec-h2 { font-size: 26px !important; }
}


/* Crest title — H1 visual size */
.crest-section .sec-h2 {
  font-size: 44px !important;
  font-weight: 800 !important;
  letter-spacing: -0.7px !important;
  color: #0a192f !important;
  line-height: 1.15 !important;
}
@media (max-width: 900px) {
  .crest-section .sec-h2 { font-size: 30px !important; }
}

/* ─── Back to Cube button ─── */
.back-to-cube-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px 0;
}
.back-to-cube {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #0a192f;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 100px;
  padding: 9px 18px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.back-to-cube:hover {
  background: #0a192f;
  border-color: #0a192f;
  color: #fff;
  transform: translateX(-3px);
}
.back-to-cube i { font-size: 16px; }
@media (max-width: 900px) {
  .back-to-cube-wrap { padding: 14px 16px 0; }
}

/* ─── Principal / Founder block ─── */
.principal-wrap {
  display: flex; gap: 24px; align-items: flex-start;
  max-width: 1000px; margin: 0 auto;
}
.principal-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  background: #0a192f;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.principal-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.principal-avatar i { font-size: 36px; color: rgba(197,155,39,0.5); }
.principal-name { font-size: 15px; font-weight: 600; margin-bottom: 2px; color: #0a192f; }
.principal-title { font-size: 12px; color: #c59b27; margin-bottom: 14px; }
.principal-quote {
  font-size: 14px; color: #475569;
  line-height: 1.75; font-style: italic;
  border-left: 3px solid #c59b27;
  padding-left: 16px;
}
.principal-quote br { content: ''; display: block; margin-bottom: 12px; }
@media (max-width: 900px) {
  .principal-wrap { flex-direction: column; gap: 16px; padding: 0 20px; }
  .principal-avatar { width: 72px; height: 72px; }
}


/* ═══ Hero image fit (v2) — mixed aspect ratios fill the frame cleanly ═══ */

/* Every carousel slide fills the hero area, cropping excess */
.hero.hero--carousel .hero-carousel-slide {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Make the slides actually stretch full-bleed to their container */
.hero-carousel-track {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Hero height — lock a consistent aspect so all images crop identically */
.hero.hero--carousel {
  min-height: 620px !important;
  height: auto !important;
  padding-top: 140px !important;
  padding-bottom: 140px !important;
}

/* Mobile — keep the hero shorter and centred on the important part */
@media (max-width: 900px) {
  .hero.hero--carousel {
    min-height: 520px !important;
    padding-top: 100px !important;
    padding-bottom: 100px !important;
  }
  .hero.hero--carousel .hero-carousel-slide {
    background-position: center 40% !important;   /* shift focus up a bit */
  }
}

/* Very small phones — shorter still, and focus on the head/face area */
@media (max-width: 500px) {
  .hero.hero--carousel {
    min-height: 460px !important;
    padding-top: 80px !important;
    padding-bottom: 80px !important;
  }
  .hero.hero--carousel .hero-carousel-slide {
    background-position: center 30% !important;
  }
}

/* Ensure the content sits above the images and text stays readable */
.hero-carousel-content {
  position: relative !important;
  z-index: 3 !important;
}
.hero-carousel-overlay {
  z-index: 2 !important;
}
.hero-carousel-track {
  z-index: 1 !important;
}
.hero-carousel-dots {
  z-index: 4 !important;
}


/* ═══ Hero image fit (v3) — less crop, focus on faces ═══ */

/* Reduce hero height so less top/bottom gets cropped */
.hero.hero--carousel {
  min-height: 540px !important;
  padding-top: 120px !important;
  padding-bottom: 120px !important;
}

/* Focus crop on the upper third — where faces/heads usually are */
.hero.hero--carousel .hero-carousel-slide {
  background-position: center 30% !important;
}

@media (max-width: 900px) {
  .hero.hero--carousel {
    min-height: 480px !important;
    padding-top: 90px !important;
    padding-bottom: 90px !important;
  }
  .hero.hero--carousel .hero-carousel-slide {
    background-position: center 25% !important;
  }
}

@media (max-width: 500px) {
  .hero.hero--carousel {
    min-height: 440px !important;
    padding-top: 80px !important;
    padding-bottom: 80px !important;
  }
  .hero.hero--carousel .hero-carousel-slide {
    background-position: center 20% !important;
  }
}
