/* =====================================================================
   Platinum Montessori Schools — Main Stylesheet
   Color palette: Primary #8f1f75 | Accent #f7c6b5 | Dark #2a0a22
   ===================================================================== */

/* ── Variables ──────────────────────────────────────────────────── */
:root {
  --primary:     #8f1f75;
  --primary-dk:  #6a1557;
  --primary-lt:  #b8409a;
  --accent:      #f7c6b5;
  --accent-dk:   #e8a48d;
  --gold:        #c9a84c;
  --dark:        #2a0a22;
  --body:        #3d1a32;
  --muted:       #86657c;
  --light:       #fff9f7;
  --white:       #ffffff;
  --surface:     #fdf4f0;
  --border:      #eedde8;
  --shadow-sm:   0 2px 8px color-mix(in srgb, var(--dark) 8%, transparent);
  --shadow-md:   0 8px 30px color-mix(in srgb, var(--dark) 12%, transparent);
  --shadow-lg:   0 20px 60px color-mix(in srgb, var(--dark) 16%, transparent);
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   28px;
  --radius-xl:   40px;
  --font-head:   'DM Serif Display', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
  --trans:       all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  min-width: 320px; /* never collapses below iPhone SE width */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); color: var(--dark); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
h4 { font-size: 1.2rem; }
p  { margin-bottom: 1rem; }

/* ── Container ──────────────────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; border-radius: 50px; font-weight: 600;
  font-size: 0.95rem; transition: var(--trans); white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--primary); color: var(--white);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--primary) 35%, transparent);
}
.btn-primary:hover { background: var(--primary-dk); transform: translateY(-2px); box-shadow: 0 8px 28px color-mix(in srgb, var(--primary) 45%, transparent); }
.btn-secondary { background: var(--accent); color: var(--dark); }
.btn-secondary:hover { background: var(--accent-dk); transform: translateY(-2px); }
.btn-outline-primary { border: 2px solid var(--primary); color: var(--primary-dk); }
.btn-outline-primary:hover { background: var(--primary); color: var(--white); }
/* Heroes sit over a dark photo overlay by default, so outline buttons there go
   light. The light-background hero contexts (split / minimal / overlay-card)
   restore the dark treatment just below. */
.hero .btn-outline-primary { border-color: rgba(255,255,255,.6); color: #fff; }
.hero .btn-outline-primary:hover { background: #fff; color: var(--primary-dk); border-color: #fff; }
.hero-split-text .btn-outline-primary,
.hero-minimal-inner .btn-outline-primary,
.hero-overlay-card .btn-outline-primary { border-color: var(--primary); color: var(--primary-dk); }
.hero-split-text .btn-outline-primary:hover,
.hero-minimal-inner .btn-outline-primary:hover,
.hero-overlay-card .btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--light); transform: translateY(-2px); }
.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.05rem; }

/* ── Section Headings ───────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block; padding: 0.35rem 1rem;
  background: color-mix(in srgb, var(--primary) 12%, #fff); color: var(--primary-dk);
  border-radius: 50px; font-size: 0.8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem;
}
.section-title { margin-bottom: 1rem; }
.section-desc { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ── Top Bar ────────────────────────────────────────────────────── */
.topbar {
  background: var(--dark); color: rgba(255,255,255,.8);
  font-size: 0.82rem; padding: 0.45rem 0; z-index: 200; position: relative;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-left { display: flex; gap: 1.5rem; }
.topbar-left span { display: flex; align-items: center; gap: 0.4rem; }
.topbar-right { display: flex; gap: 0.8rem; }
.topbar-right a { color: rgba(255,255,255,.6); transition: var(--trans); }
.topbar-right a:hover { color: var(--accent); }

/* ── Navbar ─────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 9500;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
}
.navbar-inner { display: flex; align-items: center; gap: 2rem; padding: 1rem 24px; flex-wrap: nowrap; }
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-lt));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 40%, transparent);
}
.nav-logo-name { font-family: var(--font-head); font-size: 1.15rem; color: var(--dark); line-height: 1; }
.nav-logo-tag  { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

.nav-links { display: flex; align-items: center; gap: 0.2rem; margin-left: auto; }
.nav-link {
  padding: 0.5rem 0.9rem; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.92rem; color: var(--body);
  transition: var(--trans); position: relative;
}
.nav-link:hover { color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, transparent); }
.nav-link.active {
  color: var(--primary); font-weight: 700;
  background: color-mix(in srgb, var(--primary) 9%, transparent);
}
.nav-link.active::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 60%; height: 2px; background: var(--primary); border-radius: 2px;
}

.nav-auth { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

/* User menu */
.nav-user-menu { position: relative; }
.nav-user-btn {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 1rem; border-radius: 50px;
  border: 1.5px solid var(--border); font-weight: 500; font-size: 0.9rem;
  color: var(--body); transition: var(--trans);
}
.nav-user-btn:hover { border-color: var(--primary); color: var(--primary); }
.nav-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 200px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 0.5rem;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--trans);
}
.nav-user-menu:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a, .nav-dropdown button {
  display: flex; align-items: center; gap: 0.6rem; width: 100%;
  padding: 0.6rem 0.8rem; border-radius: var(--radius-sm);
  font-size: 0.88rem; color: var(--body); transition: var(--trans); text-align: left;
}
.nav-dropdown a:hover, .nav-dropdown button:hover { background: var(--surface); color: var(--primary); }
.nav-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 0.4rem 0; }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 0.5rem; border-radius: var(--radius-sm);
  margin-left: auto; /* pushes to extreme right when nav-links is hidden */
  flex-shrink: 0;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); transition: var(--trans); border-radius: 2px; }

/* ── Flash Messages ─────────────────────────────────────────────── */
.flash {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.5rem; font-size: 0.92rem; font-weight: 500;
}
.flash-success { background: #f0fdf4; color: #15803d; border-bottom: 2px solid #86efac; }
.flash-error   { background: #fef2f2; color: #dc2626; border-bottom: 2px solid #fca5a5; }
.flash-info    { background: #eff6ff; color: #2563eb; border-bottom: 2px solid #93c5fd; }
.flash-warning { background: #fffbeb; color: #d97706; border-bottom: 2px solid #fcd34d; }
.flash-close   { margin-left: auto; background: none; border: none; font-size: 1.2rem; opacity: 0.6; cursor: pointer; }
.flash-close:hover { opacity: 1; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  min-height: 92vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: var(--dark);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide-1 { background-image: url('/assets/images/hero-1.jpg'); }
.hero-slide-2 { background-image: url('/assets/images/hero-2.jpg'); }
.hero-slide-3 { background-image: url('/assets/images/hero-3.jpg'); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--dark) 85%, transparent) 0%, color-mix(in srgb, var(--dark) 40%, transparent) 60%, color-mix(in srgb, var(--primary) 15%, transparent) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 680px;
  animation: heroFadeIn 1s ease 0.3s both;
}
@keyframes heroFadeIn { from { opacity:0; transform: translateY(30px); } to { opacity:1; transform: translateY(0); } }
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: color-mix(in srgb, var(--accent) 15%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent); padding: 0.4rem 1rem; border-radius: 50px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero-desc { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 2rem; max-width: 540px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  position: absolute; bottom: 3rem; right: 0; left: 0; z-index: 2;
}
.hero-stats-inner {
  display: flex; gap: 2rem; justify-content: flex-end;
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
}
.hero-stat {
  background: rgba(255,255,255,.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  padding: 1rem 1.5rem; border-radius: var(--radius-md); text-align: center;
}
.hero-stat-num { font-family: var(--font-head); font-size: 2rem; color: var(--white); line-height: 1; }
.hero-stat-label { font-size: 0.78rem; color: rgba(255,255,255,.7); margin-top: 0.3rem; text-transform: uppercase; letter-spacing: .06em; }

/* ── Features Strip ─────────────────────────────────────────────── */
.features-strip {
  background: var(--primary);
  padding: 2.5rem 0;
}
.features-strip-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
}
.feature-strip-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.5rem 2rem; color: rgba(255,255,255,.85);
}
.feature-strip-item + .feature-strip-item { border-left: 1px solid rgba(255,255,255,.15); }
.feature-strip-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: rgba(255,255,255,.15); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--accent);
}
.feature-strip-title { font-weight: 700; color: var(--white); margin-bottom: 0.2rem; font-size: 0.95rem; }
.feature-strip-desc  { font-size: 0.8rem; color: #fff; opacity: 1; line-height: 1.3; }

/* ── About Section ──────────────────────────────────────────────── */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-main {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  /* Safety cap: in the normal 2-column grid the image is ~700px tall, so this
     never crops legitimate use — but it stops any design that changes the
     about layout (e.g. to a single block column) from letting the image
     render at its full natural/full-width height. */
  max-height: 760px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.about-img-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--primary); color: var(--white);
  padding: 1.5rem 2rem; border-radius: var(--radius-md);
  text-align: center; box-shadow: var(--shadow-md);
}
.about-img-badge .num { font-family: var(--font-head); font-size: 2.5rem; line-height: 1; }
.about-img-badge .lbl { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }

.about-text .section-tag { text-align: left; }
.about-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.about-check {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.9rem; font-weight: 500;
}
.about-check-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.75rem;
}

/* ── Programs ───────────────────────────────────────────────────── */
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.program-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 2rem;
  transition: var(--trans); position: relative; overflow: hidden;
}
.program-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-lt));
  transform: scaleX(0); transition: var(--trans); transform-origin: left;
}
.program-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.program-card:hover::before { transform: scaleX(1); }
.program-icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--primary) 8%, transparent); display: flex; align-items: center;
  justify-content: center; font-size: 1.6rem; margin-bottom: 1.2rem;
}
.program-age {
  font-size: 0.75rem; font-weight: 700; color: var(--primary-dk);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 0.5rem;
}
.program-title { margin-bottom: 0.75rem; font-size: 1.2rem; }
.program-desc  { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.2rem; }
.program-features li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.4rem; }
.program-features li::before { content: '✓'; color: var(--primary); font-weight: 700; }

/* ── Stats Ticker ───────────────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dk) 100%);
  padding: 5rem 0; position: relative;
}
.stats-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat-item { text-align: center; padding: 2rem; position: relative; }
.stat-num {
  font-family: var(--font-head); font-size: 3.5rem; color: var(--white);
  line-height: 1; margin-bottom: 0.5rem;
}
.stat-num span { color: var(--accent); }
.stat-label { color: rgba(255,255,255,.65); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .08em; }

/* ── Testimonials ───────────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 2rem;
  box-shadow: var(--shadow-sm); transition: var(--trans);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.testimonial-stars { color: color-mix(in srgb, var(--gold) 68%, #000); font-size: 0.9rem; margin-bottom: 1rem; }
.testimonials-grid { align-items: stretch; }
.testimonial-card { display: flex; flex-direction: column; }
.testimonial-author { margin-top: auto; }
.testimonial-quote {
  font-size: 0.95rem; color: var(--body); line-height: 1.7; margin-bottom: 1.5rem; font-style: italic;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 9;
  overflow: hidden;
}
.testimonial-quote::before { content: '\201C'; font-family: var(--font-head); font-size: 2rem; color: var(--primary); line-height: 0; vertical-align: -0.5rem; margin-right: 0.2rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
.testimonial-role { font-size: 0.78rem; color: var(--muted); }

/* ── News Cards ─────────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.news-card {
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border); transition: var(--trans);
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.news-card-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  background: var(--surface);
}
.news-card-img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lt) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: rgba(255,255,255,.4);
}
.news-card-body { padding: 1.5rem; }
.news-card-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.news-badge {
  padding: 0.2rem 0.7rem; border-radius: 50px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.badge-news         { background: color-mix(in srgb, var(--primary) 12%, #fff); color: var(--primary-dk); }
.badge-event        { background: rgba(201,168,76,.18); color: #6f4e00; }
.badge-announcement { background: rgba(37,99,235,.1); color: #1d4ed8; }
.news-date { font-size: 0.8rem; color: var(--muted); }
.news-card-title { font-size: 1.1rem; margin-bottom: 0.5rem; }
.news-card-title a:hover { color: var(--primary); }
.news-card-excerpt { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.news-card-footer { padding: 0 1.5rem 1.5rem; }
.news-card-link { font-size: 0.85rem; color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 0.4rem; }
.news-card-link:hover { gap: 0.7rem; }

/* ── Admissions CTA ─────────────────────────────────────────────── */
.admissions-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lt) 100%);
  border-radius: var(--radius-xl); padding: 5rem; text-align: center;
  position: relative; overflow: hidden;
}
.admissions-cta::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.admissions-cta h2, .admissions-cta p { color: var(--white); }
.admissions-cta h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 1rem; }
.admissions-cta p  { opacity: 0.85; max-width: 500px; margin: 0 auto 2rem; }
.admissions-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Staff Grid ─────────────────────────────────────────────────── */
.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.staff-card { text-align: center; }
.staff-photo-wrap { position: relative; margin-bottom: 1rem; }
.staff-photo {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.staff-photo-placeholder {
  width: 100%; aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lt) 100%);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 2.5rem; color: rgba(255,255,255,.6);
}
.staff-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.staff-role { font-size: 0.82rem; color: var(--primary); font-weight: 600; margin-bottom: 0.25rem; }
.staff-qual { font-size: 0.78rem; color: var(--muted); }

/* ── Gallery ────────────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--dark) 50%, transparent);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--trans); color: #fff; font-size: 1.5rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* ── Contact ────────────────────────────────────────────────────── */
.contact-split { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; }
.contact-info-item {
  display: flex; gap: 1rem; margin-bottom: 2rem;
}
.contact-info-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--primary) 8%, transparent); display: flex; align-items: center;
  justify-content: center; color: var(--primary); font-size: 1.1rem; flex-shrink: 0;
}

/* ── Forms ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; font-size: 0.88rem; color: var(--dark); margin-bottom: 0.5rem; }
.form-label .req { color: var(--primary); }
.form-control {
  width: 100%; padding: 0.8rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.92rem; color: var(--body);
  background: var(--white); transition: var(--trans);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
.form-control::placeholder { color: var(--muted); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-section-title {
  font-family: var(--font-head); font-size: 1.1rem; color: var(--dark);
  padding-bottom: 0.75rem; border-bottom: 2px solid var(--border);
  margin: 2rem 0 1.25rem;
}

/* ── Page Hero ──────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dk) 100%);
  padding: 5rem 0 4rem; text-align: center; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 60px; background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p  { color: rgba(255,255,255,.75); max-width: 540px; margin: 0 auto 1.5rem; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; justify-content: center; font-size: 0.85rem; color: rgba(255,255,255,.6); }
.breadcrumb a { color: var(--accent); }
.breadcrumb-sep { opacity: 0.4; }

/* ── Status Badges ──────────────────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.8rem; border-radius: 50px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.status-submitted        { background: #eff6ff; color: #2563eb; }
.status-under_review     { background: #fffbeb; color: #d97706; }
.status-interview_scheduled { background: #f5f3ff; color: #7c3aed; }
.status-accepted         { background: #f0fdf4; color: #15803d; }
.status-rejected         { background: #fef2f2; color: #dc2626; }
.status-waitlisted       { background: #fff7ed; color: #c2410c; }
.status-enrolled         { background: #ecfdf5; color: #047857; }

/* ── Section Padding ────────────────────────────────────────────── */
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.section-lg { padding: 8rem 0; }
.bg-light   { background: var(--surface); }
.bg-dark    { background: var(--dark); }

/* ── Footer ─────────────────────────────────────────────────────── */
.footer { background: var(--dark); color: rgba(255,255,255,.7); position: relative; }
.footer-wave { color: var(--surface); line-height: 0; }
.footer-wave svg { width: 100%; height: 60px; display: block; }
.footer-body { padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin: 1rem 0 1.5rem; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); display: flex; align-items: center;
  justify-content: center; transition: var(--trans); font-size: 0.85rem;
}
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-col h4 { color: var(--white); font-family: var(--font-head); font-size: 1rem; margin-bottom: 1.2rem; }
.footer-col a, .footer-col p {
  display: block; font-size: 0.88rem; color: rgba(255,255,255,.6);
  margin-bottom: 0.6rem; transition: var(--trans);
  display: flex; align-items: baseline; gap: 0.5rem;
}
.footer-col a:hover { color: var(--accent); padding-left: 4px; }
.footer-col p i { font-size: 0.8rem; color: var(--primary); flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem; display: flex;
  justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: rgba(255,255,255,.4);
}

/* ── Utilities ──────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted   { color: var(--muted); }
.fw-bold      { font-weight: 700; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.gap-1 { gap: 0.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

/* ── Pagination ─────────────────────────────────────────────────── */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 3rem; }
.page-item {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 500; transition: var(--trans);
  border: 1.5px solid var(--border); color: var(--body);
}
.page-item:hover, .page-item.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ── Responsive ─────────────────────────────────────────────────── */
/* Mobile-only auth block — hidden on desktop */
.nav-mobile-auth { display: none; }

@media (max-width: 1024px) {
  .features-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .staff-grid    { grid-template-columns: repeat(3, 1fr); }
  .footer-grid   { grid-template-columns: repeat(2, 1fr); }
  .about-split   { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-badge { right: 1rem; }
  /* Tighten nav spacing on medium screens */
  .navbar-inner  { gap: 1rem; padding: 1rem 16px; }
  .nav-link      { padding: 0.5rem 0.6rem; font-size: 0.88rem; }
  .nav-logo-name { font-size: 1rem; }
}

/* Switch to hamburger at 900px — before things get too tight */
@media (max-width: 900px) {
  .nav-links {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .nav-auth { display: none !important; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    flex-direction: column;
    position: fixed; top: 73px; left: 0; right: 0; bottom: 0;
    background: var(--white); padding: 2rem;
    gap: 0.5rem; overflow-y: auto; z-index: 9999;
  }
  .nav-links.open .nav-mobile-auth {
    display: flex; flex-direction: column;
    gap: 0.75rem; margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .nav-hamburger { display: flex; }
  .hero { min-height: 80vh; }
  .hero-stats { display: none; }
  .features-strip-grid { grid-template-columns: 1fr; }
  .feature-strip-item + .feature-strip-item { border-left: none; border-top: 1px solid rgba(255,255,255,.15); }
  .programs-grid { grid-template-columns: 1fr; }
  .news-grid     { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .staff-grid    { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); }
  .contact-split { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid   { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .admissions-cta { padding: 3rem 1.5rem; }
  .form-grid     { grid-template-columns: 1fr; }
  .about-checks  { grid-template-columns: 1fr; }
}

/* ── Crest in navbar ────────────────────────────────────────────── */
.nav-crest {
  width: 44px; height: 44px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 30%, transparent);
}

/* ── Citation cards ─────────────────────────────────────────────── */
.citation-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.citation-card:hover {
  transform: rotate(0deg) scale(1.03) !important;
  box-shadow: var(--shadow-lg) !important;
  z-index: 2;
  position: relative;
}

/* ================================================================
   FIXES — Mobile hero, logo, responsive improvements
   ================================================================ */

/* ── Logo — no radius, full image ──────────────────────────────── */
.nav-logo-img {
  height: 54px;
  width: auto;
  flex-shrink: 0;
  display: block;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: contain;
}

/* Remove any inherited border-radius from nav-logo */
.nav-logo .nav-logo-img,
.nav-logo img {
  border-radius: 0 !important;
  background: transparent !important;
}

/* ── Hero — fix button/stats overlap on mobile ──────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 0;
}

.hero-content {
  padding-top: 6rem;
  padding-bottom: 2rem;
  z-index: 2;
  position: relative;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* Stats bar sits below content naturally */
.hero-stats {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0;
  z-index: 2;
  margin-top: auto;
}

.hero-stats-inner {
  display: flex;
  gap: 0;
  justify-content: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-stat {
  flex: 1;
  background: none;
  backdrop-filter: none;
  border: none;
  border-right: 1px solid rgba(255,255,255,.15);
  padding: 0.75rem 1rem;
  text-align: center;
}
.hero-stat:last-child { border-right: none; }

/* ── Responsive hero fixes ──────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { min-height: 100svh; }
  .hero-content { padding-top: 5rem; padding-bottom: 1.5rem; }
  .hero h1 { font-size: clamp(1.8rem, 6vw, 3rem); }
  .hero-desc { font-size: 0.95rem; }
  .hero-actions { gap: 0.75rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats-inner { flex-wrap: wrap; }
  .hero-stat { flex: 1 1 45%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .hero-stat:nth-last-child(-n+2) { border-bottom: none; }
  .hero-stat-num { font-size: 1.5rem; }
  .hero-stat-label { font-size: 0.7rem; }
}

@media (max-width: 480px) {
  .hero-actions .btn-lg { padding: 0.85rem 1.5rem; font-size: 0.9rem; }
}

/* ── Portal sidebar link fixes ──────────────────────────────────── */
.sidebar-link { text-decoration: none; }

/* ── Form button consistency ────────────────────────────────────── */
.btn:focus { outline: none; }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ── Webmanifest meta ───────────────────────────────────────────── */
/* handled in <head> */

/* ── Logo display fix ───────────────────────────────────────────── */
.nav-logo-img {
  height: 52px !important;
  width: auto !important;
  border-radius: 0 !important;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
}

/* Remove any black bg from logo containers */
.nav-logo { background: transparent !important; }
.footer-logo img { background: transparent !important; }

/* ── Mobile nav overlay ─────────────────────────────────────────── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9000; /* below nav drawer (9999) but above everything else */
  cursor: pointer;
}
.nav-overlay.open { display: block; }

/* ── Lightbox ──────────────────────────────────────────────────── */
.lightbox-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.92);
  align-items: center; justify-content: center; gap: 1rem;
  padding: 1rem;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img {
  max-width: 90vw; max-height: 82vh;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 4px 40px rgba(0,0,0,.6);
  animation: lbFadeIn .2s ease;
}
@keyframes lbFadeIn { from { opacity:0; transform:scale(.96); } to { opacity:1; transform:scale(1); } }
.lightbox-btn {
  background: rgba(255,255,255,.15); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.3rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .2s; backdrop-filter: blur(4px);
}
.lightbox-btn:hover { background: rgba(255,255,255,.3); }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem; font-size: 1.1rem;
}
.lightbox-counter {
  position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: .8rem; white-space: nowrap;
}

/* ── Tooltips ─────────────────────────────────────────────────── */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px); left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #1e293b; color: #fff;
    font-size: .72rem; font-weight: 500; line-height: 1.4;
    padding: .35rem .65rem; border-radius: 5px;
    white-space: normal; text-align: center; max-width: 200px;
    pointer-events: none; opacity: 0;
    transition: opacity .15s, transform .15s;
    z-index: 500; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
[data-tooltip]::before {
    content: ''; position: absolute;
    bottom: calc(100% + 2px); left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent; border-top-color: #1e293b;
    pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 500;
}
[data-tooltip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
[data-tooltip]:hover::before { opacity: 1; }
[data-tooltip-pos="below"]::after { bottom: auto; top: calc(100% + 6px); transform: translateX(-50%) translateY(-4px); }
[data-tooltip-pos="below"]:hover::after { transform: translateX(-50%) translateY(0); }
[data-tooltip-pos="below"]::before { bottom: auto; top: calc(100% + 2px); border-top-color: transparent; border-bottom-color: #1e293b; }

/* JS handles all tooltips — disable CSS pseudo-elements */
[data-tooltip]::after,[data-tooltip]::before { display: none !important; }

/* ================================================================
   PUBLIC SITE — MOBILE SAFETY NET (added for go-live)
   Collapses inline multi-column grids the page-level classes miss,
   prevents horizontal overflow, and tightens typography on phones.
   ================================================================ */

/* Never allow horizontal scroll on the public site */
html, body { max-width: 100%; overflow-x: hidden; }

@media (max-width: 768px) {
    /* Inline two/three-column grids built with inline styles → single column.
       Targets the common patterns used across about/home/boarding/admissions/programs. */
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:repeat(2,1fr)"],
    [style*="grid-template-columns: repeat(2, 1fr)"],
    [style*="grid-template-columns:repeat(3,1fr)"],
    [style*="grid-template-columns: repeat(3, 1fr)"],
    [style*="px 1fr"],
    [style*="px 2fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;   /* tame the large 3-4rem desktop gaps */
    }

    /* Inline flex rows wrap on phones */
    [style*="display:flex"][style*="gap"] { flex-wrap: wrap; }

    /* Decorative oversized circles/blobs shouldn't force scroll */
    [style*="width:500px"], [style*="width: 500px"] { max-width: 100%; }

    /* Section padding trim so content isn't cramped against edges */
    section, .section { padding-left: 1rem; padding-right: 1rem; }
}

@media (max-width: 480px) {
    /* Smallest phones: collapse the remaining 2-col grids that hold cards */
    .staff-grid   { grid-template-columns: 1fr !important; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }

    /* Hero / heading sizes a touch smaller so they don't wrap awkwardly */
    .hero h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
    .page-hero h1 { font-size: clamp(1.5rem, 7vw, 2.2rem); }

    /* Buttons go full-width for easy tapping */
    .hero-actions { flex-direction: column; }
    .hero-actions .btn, .hero-actions .btn-lg { width: 100%; justify-content: center; }
}

/* ── Responsive tables / wide content (public site) ──────────────────────
   Body uses overflow-x:hidden, which would CLIP anything wider than the
   viewport. Wrap wide tables so they scroll instead of getting cut off. */
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
#main-content table { max-width: 100%; }
#main-content pre, #main-content code { max-width: 100%; overflow-x: auto; }
#main-content img, #main-content video, #main-content svg { max-width: 100%; height: auto; }

/* ════════════════════════════════════════════════════════════════════════
   Mobile overflow fixes — stats band, contact page, long tokens
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    /* Maroon stats band: the 3.5rem numbers can't fit two columns at 360px —
       shrink them and trim padding so "500+" / "98%" sit inside their cells. */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .stat-item  { padding: 1.25rem 0.6rem; }
    .stat-num   { font-size: 2.1rem; margin-bottom: 0.2rem; }
    .stat-label { font-size: 0.72rem; letter-spacing: .04em; }

    /* Contact info: long emails, phone numbers and opening hours must wrap
       instead of spilling off the right edge. */
    .contact-info-item > div,
    .contact-info-item p,
    .contact-info-item a { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }

    /* Tighter side gutters on the smallest phones. */
    .container { padding-left: 16px; padding-right: 16px; }
}

/* Global safety: no single long word/token forces the page wider than the
   viewport (URLs, emails, hashes in body copy). */
#main-content, .footer { overflow-wrap: break-word; }

/* ════════════════════════════════════════════════════════════════════════
   Comprehensive inline-grid collapse for phones (loaded by public AND portal).
   Any element with an inline grid-template-columns collapses to a single
   column at ≤640px — covering fixed-px tracks (1fr 340px), fr ratios
   (2fr 1fr, 3fr 1.2fr) and future ones — WITHOUT touching:
     • auto-fit / auto-fill minmax grids (already responsive), and
     • the 7-column calendar (its 1fr tracks always fit).
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    [style*="grid-template-columns"]:not([style*="auto-fit"]):not([style*="auto-fill"]):not([style*="repeat(7"]) {
        grid-template-columns: 1fr !important;
    }
    /* Large desktop grid gaps look excessive once stacked — cap them. */
    [style*="grid-template-columns"]:not([style*="auto-fit"]):not([style*="auto-fill"]):not([style*="repeat(7"])[style*="gap:3rem"],
    [style*="grid-template-columns"]:not([style*="auto-fit"]):not([style*="auto-fill"]):not([style*="repeat(7"])[style*="gap:4rem"],
    [style*="grid-template-columns"]:not([style*="auto-fit"]):not([style*="auto-fill"]):not([style*="repeat(7"])[style*="gap:5rem"] {
        gap: 1.5rem !important;
    }
}

/* Public site mobile safety net (mirrors the portal net): flex/grid children
   may shrink, long words break, media never exceeds the viewport. */
@media (max-width: 640px) {
    #main-content, #main-content * { min-width: 0; }
    #main-content img, #main-content video, #main-content svg { max-width: 100%; height: auto; }
    #main-content [style*="width:1000px"], #main-content [style*="width: 1000px"] { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   Home section classes (moved out of inline styles so templates can
   restyle them) + alternate HERO layouts for the template registry.
   Colours all reference CSS variables, so a colour change flows here too.
   ═══════════════════════════════════════════════════════════════ */

/* Awards */
.awards-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.awards-photo { width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); display: block; }
.award-item  { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 1.75rem; }
.award-icon  { width: 50px; height: 50px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.award-title { font-weight: 700; color: var(--dark); margin-bottom: .25rem; }
.award-desc  { color: var(--muted); font-size: .88rem; }

/* Citation */
.citation-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; justify-items: center; }
.citation-fig img { width: 100%; max-width: 420px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); display: block; }
.citation-fig-l img { transform: rotate(-2deg); }
.citation-fig-r img { transform: rotate(2deg); }
.citation-card   { text-align: center; margin: 2.5rem auto 0; background: var(--surface); border-radius: var(--radius-md); padding: 2rem; border: 1px solid var(--border); max-width: 720px; }
.citation-quote  { font-family: var(--font-head); font-size: 1.1rem; color: var(--dark); margin-bottom: .75rem; }
.citation-source { font-size: .85rem; color: var(--primary); font-weight: 700; }

/* Admissions CTA eyebrow sits on a coloured band — keep it light regardless of theme */
.cta-tag { background: rgba(255,255,255,.15) !important; color: #fff !important; }

/* ── HERO variant: split (text beside an image, light background) ── */
.hero--split { min-height: auto; padding: 5rem 0; background: var(--surface); display: flex; align-items: center; }
.hero--split .hero-split-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; width: 100%; }
.hero--split .hero-split-text h1 { color: var(--dark); }
.hero--split .hero-split-text h1 em { color: var(--primary); font-style: normal; }
.hero--split .hero-desc { color: var(--body); max-width: 520px; }
/* High specificity so it stays readable on the light band whatever the theme sets */
.hero--split .hero-split-text .hero-tag { background: color-mix(in srgb, var(--primary) 10%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); color: var(--primary); }
.hero--split .hero-split-media { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero--split .hero-split-media .hero-slides { position: absolute; inset: 0; }
.hero--split .hero-split-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); display: block; }

/* ── HERO variant: statement (large centred headline over a muted photo) ── */
.hero--statement { min-height: auto; padding: 7rem 0 5rem; text-align: center; }
.hero--statement .hero-statement-inner { max-width: 860px; margin: 0 auto; position: relative; z-index: 2; animation: heroFadeIn 1s ease .3s both; }
.hero--statement .hero-statement-inner h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.hero--statement .hero-desc { margin-left: auto; margin-right: auto; }
.hero--statement .hero-actions { justify-content: center; }
.hero--statement .hero-tag { margin-left: auto; margin-right: auto; }

/* Hero stats row (used by split/statement instead of the absolute band) */
.hero-stats-row { display: flex; gap: 2.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-stat-row-num { font-family: var(--font-head); font-size: 1.9rem; color: var(--primary); line-height: 1; }
.hero-stat-row-label { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: .3rem; }

@media (max-width: 860px) {
  .hero--split .hero-split-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero--split .hero-split-media { order: -1; }
  .awards-split, .citation-figures { grid-template-columns: 1fr; }
  .hero-stats-row { gap: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════════
   Additional HERO variants for the design registry (structure only;
   colour comes from the active feel's variables).
   ═══════════════════════════════════════════════════════════════ */

/* split-reverse — photo on the left, message on the right */
.hero--split.hero--reverse .hero-split-media { order: -1; }
.hero--split.hero--reverse .hero-split-inner { grid-template-columns: .95fr 1.05fr; }

/* minimal — text only, no photo, light band, left aligned, airy */
.hero--minimal { min-height: auto; padding: 7.5rem 0; background: var(--surface); display: flex; align-items: center; }
.hero--minimal .hero-statement-inner { max-width: 840px; margin: 0; text-align: left; }
.hero--minimal h1 { color: var(--dark); font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
.hero--minimal .hero-desc { color: var(--body); margin-left: 0; margin-right: 0; font-size: 1.2rem; }
.hero--minimal .hero-actions { justify-content: flex-start; }
.hero--minimal .hero-tag { background: color-mix(in srgb, var(--primary) 10%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); color: var(--primary); }
.hero--minimal h1 em { color: var(--primary); font-style: normal; }

/* banner — solid colour band, big type, inline stat cards, no photo */
.hero--banner { min-height: auto; padding: 5.5rem 0; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%); display: flex; align-items: center; }
.hero--banner .hero-banner-inner { max-width: 920px; margin: 0 auto; text-align: center; position: relative; z-index: 2; animation: heroFadeIn 1s ease .3s both; }
.hero--banner h1 { color: #fff; }
.hero--banner .hero-desc { color: rgba(255,255,255,.85); margin: 0 auto 2rem; }
.hero--banner .hero-actions { justify-content: center; }
.hero--banner .hero-tag { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; margin-left: auto; margin-right: auto; }
.hero--banner .btn-primary { background: #fff; color: var(--primary); box-shadow: none; }
.hero--banner .btn-primary:hover { background: var(--light); transform: translateY(-2px); }
.hero--banner .btn-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.hero--banner .btn-white:hover { background: rgba(255,255,255,.12); }
.hero--banner .hero-stats-row { justify-content: center; }
.hero--banner .hero-stat-row-num { color: #fff; }
.hero--banner .hero-stat-row-label { color: rgba(255,255,255,.8); }

/* overlay-card — full-bleed photo with the message in a floating card */
.hero--overlay-card { min-height: 84vh; display: flex; align-items: flex-end; }
.hero--overlay-card .hero-overlay-wrap { position: relative; z-index: 2; width: 100%; padding-bottom: 3.5rem; }
.hero--overlay-card .hero-overlay-card { background: var(--light); border-radius: var(--radius-lg); padding: 2.5rem 2.75rem; max-width: 580px; box-shadow: var(--shadow-lg); animation: heroFadeIn 1s ease .3s both; }
.hero--overlay-card .hero-overlay-card h1 { color: var(--dark); font-size: clamp(2rem, 3.6vw, 2.9rem); }
.hero--overlay-card .hero-overlay-card .hero-desc { color: var(--body); }
.hero--overlay-card .hero-overlay-card .hero-tag { background: color-mix(in srgb, var(--primary) 10%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); color: var(--primary); }
.hero--overlay-card .hero-overlay-card h1 em { color: var(--primary); font-style: normal; }

@media (max-width: 860px) {
  .hero--overlay-card .hero-overlay-card { max-width: 100%; padding: 1.75rem; }
  .hero--minimal { padding: 4.5rem 0; }
}
