/* =========================================================
   ICCR ACADEMY — DESIGN TOKENS
   ========================================================= */
:root {
  --paper:        #FFFFFF;
  --paper-alt:    #F2F4F8;   /* near-white, for section alternation only */
  --ink:          #14171D;   /* near-black body text */
  --ink-soft:     #454B58;
  --ink-faint:    #838A99;
  --teal:         #0F2A52;   /* primary navy — kept var name for minimal diff */
  --teal-deep:    #081832;   /* deep navy */
  --teal-mid:     #1B3F73;   /* mid navy, hovers */
  --black:        #0B0C10;   /* used sparingly: footer, occasional emphasis */
  --white:        #FFFFFF;
  --white-70:     rgba(255, 255, 255, 0.82);
  --white-50:     rgba(255, 255, 255, 0.6);
  --brand-navy:   #1B3B6B;   /* exact site navy, provided as a swatch */
  --line:         rgba(15, 20, 30, 0.12);
  --line-light:   rgba(255, 255, 255, 0.22);
  --shadow-sm:    0 2px 10px rgba(8, 16, 32, 0.07);
  --shadow-md:    0 12px 32px rgba(8, 16, 32, 0.12);
  --shadow-lg:    0 24px 60px rgba(4, 10, 24, 0.32);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --section-pad: clamp(64px, 9vw, 128px);
  --gutter: clamp(24px, 5vw, 64px);
  --radius-sm: 4px;
  --radius-md: 10px;
  --max: 1240px;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, blockquote, p { margin: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--teal-deep); color: var(--paper); padding: 12px 20px; z-index: 999; border-radius: 0 0 6px 0; }
.skip-link:focus { left: 0; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }

.eyebrow { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.eyebrow-light { color: var(--white); font-weight: 700; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* =========================================================
   SCROLL REVEALS
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: 0.12s; }
.reveal-delay-2.in-view { transition-delay: 0.22s; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; font-weight: 600; font-size: 0.95rem; border-radius: 3px; transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease; white-space: nowrap; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-outline { border: 1.5px solid var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-white { background: var(--white); color: var(--teal-deep); box-shadow: 0 2px 10px rgba(8,16,32,0.25); }
.btn-white:hover { background: var(--paper-alt); transform: translateY(-1px); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,0.75); color: var(--paper); background: rgba(255,255,255,0.1); font-weight: 700; }
.btn-outline-light:hover { border-color: var(--paper); background: rgba(255,255,255,0.2); }
.btn-block { width: 100%; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248, 245, 238, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1440px; margin: 0 auto; padding: 18px clamp(24px, 4vw, 56px); display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-right: 0; }
.brand-mark { width: 42px; height: 42px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--teal-deep); }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.05em; color: var(--ink-faint); text-transform: uppercase; }

.main-nav { display: flex; gap: clamp(18px, 2vw, 30px); flex: 1; justify-content: center; }
.main-nav a { white-space: nowrap; font-size: 0.96rem; font-weight: 600; color: var(--ink-soft); position: relative; padding: 4px 0; letter-spacing: 0.01em; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--teal-deep); font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: 18px; flex-shrink: 0; margin-left: auto; }
.social-icons { display: flex; align-items: center; gap: 10px; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: var(--teal); border: 1px solid var(--line); transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.social-icon:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.mobile-social { flex-direction: row; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.portal-link { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--teal); border: 1px solid var(--line); padding: 9px 14px; border-radius: 3px; }
.portal-link:hover { border-color: var(--teal); background: var(--paper-alt); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: 0.25s ease; }
.mobile-nav { display: none; flex-direction: column; padding: 8px var(--gutter) 20px; border-top: 1px solid var(--line); }
.mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-apply { margin-top: 14px; text-align: center; border-bottom: none; }
.site-header.nav-open .mobile-nav { display: flex; }

/* =========================================================
   INTERIOR PAGE HERO (image backdrop)
   ========================================================= */
.page-hero { position: relative; padding: 0; color: var(--paper); overflow: hidden; background: var(--brand-navy); display: flex; align-items: flex-end; min-height: min(78vh, 760px); min-height: min(78svh, 760px); }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; object-fit: cover; width: 100%; height: 100%; object-position: center 45%; filter: brightness(1.08) saturate(1.06); }
/* No tint or dark shade over the photos — the text carries its own shadow so it stays readable */
.page-hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 140px) var(--gutter) clamp(40px, 6vw, 72px); }
.breadcrumb { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.85); margin-bottom: 14px; text-shadow: 0 1px 2px rgba(0,0,0,0.7), 0 1px 10px rgba(0,0,0,0.6); }
.breadcrumb a { color: rgba(255,255,255,0.92); }
.breadcrumb a:hover { color: var(--white); }
.page-hero h1 { color: var(--paper); font-weight: 800; font-size: clamp(2.5rem, 4.8vw, 3.9rem); max-width: 16ch; line-height: 1.06; letter-spacing: -0.015em; margin-bottom: 16px; text-shadow: 0 1px 2px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.5), 0 4px 30px rgba(0,0,0,0.45); }
.page-hero-lead { max-width: 46ch; color: var(--white); font-size: 1.1rem; font-weight: 500; line-height: 1.55; text-shadow: 0 1px 2px rgba(0,0,0,0.8), 0 1px 6px rgba(0,0,0,0.65), 0 2px 18px rgba(0,0,0,0.5); }

/* Homepage hero — a little taller and tighter than the interior pages */
.home-hero { min-height: min(92vh, 880px); min-height: min(92svh, 880px); }
.home-hero .page-hero-bg { object-position: center 50%; }
.home-hero h1 { max-width: 13ch; }
.page-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* =========================================================
   FACT STRIP
   ========================================================= */
.levels { padding-top: clamp(56px, 7vw, 88px); }
.level-grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.level-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--brand-navy); border-radius: var(--radius-md); padding: 30px 28px 32px; display: flex; flex-direction: column; }
.level-num { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--brand-navy); margin-bottom: 10px; }
.level-kicker { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.level-card h3 { font-size: 1.3rem; line-height: 1.25; margin-bottom: 12px; }
.level-text { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.65; }
.level-text strong { color: var(--ink-soft); font-weight: 600; }
@media (max-width: 940px) { .level-grid { grid-template-columns: 1fr; } }

/* =========================================================
   MISSION (shared block)
   ========================================================= */
.mission { padding: 0; background: var(--teal-deep); color: var(--white); position: relative; overflow: hidden; }
.mission-inner { max-width: 820px; margin: 0 auto; padding: var(--section-pad) var(--gutter); text-align: center; position: relative; }
.mission-star { width: 130px; height: 130px; color: var(--white); opacity: 0.14; position: absolute; top: 10%; left: 50%; transform: translateX(-50%); }
.mission-eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: 22px; position: relative; }
.mission-quote { color: var(--white); font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.45; position: relative; }

/* =========================================================
   SECTION HEAD (shared)
   ========================================================= */
.section-head { max-width: 700px; margin: 0 auto clamp(40px, 5vw, 64px); padding: 0 var(--gutter); text-align: center; }
.section-head.align-left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); line-height: 1.18; margin-bottom: 18px; }
.section-lead { color: var(--ink-soft); font-size: 1.05rem; }

section { padding: var(--section-pad) 0; }
.bg-alt { background: var(--paper-alt); }

/* =========================================================
   PROGRAM PANELS (home + programs page)
   ========================================================= */
.program-panels { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); }
.program-panel { padding: clamp(36px, 4vw, 56px); }
.panel-islamic { background: var(--teal-deep); color: var(--paper); }
.panel-academic { background: var(--white); color: var(--ink); }
.panel-kicker { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.panel-islamic h3 { color: var(--white); }
.panel-islamic .panel-kicker { color: var(--white-70); }
.panel-academic .panel-kicker { color: var(--teal); }
.program-panel h3 { font-size: 1.6rem; margin-bottom: 14px; }
.panel-intro { margin-bottom: 26px; opacity: 0.85; max-width: 42ch; }
.panel-academic .panel-intro { color: var(--ink-soft); }
.panel-list { display: flex; flex-direction: column; gap: 13px; }
.panel-list li { padding-left: 24px; position: relative; font-size: 0.98rem; }
.panel-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border: 1.5px solid currentColor; transform: rotate(45deg); }
.panel-islamic .panel-list li::before { color: var(--white); }
.panel-academic .panel-list li::before { color: var(--teal); }
.program-cta { text-align: center; margin-top: 32px; }

/* =========================================================
   FEATURE ROWS (why-iccra)
   ========================================================= */
.feature-row { max-width: var(--max); margin: 0 auto; padding: clamp(28px, 4vw, 40px) var(--gutter); display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.feature-row-reverse { grid-template-columns: 1fr 0.85fr; }
.feature-row-reverse .feature-media { order: 2; }
.feature-row-reverse .feature-text { order: 1; }
.feature-media img { border-radius: var(--radius-md); box-shadow: var(--shadow-sm); aspect-ratio: 5/4; object-fit: cover; }
.feature-kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.feature-text h3 { font-size: 1.55rem; margin-bottom: 12px; }
.feature-text p { color: var(--ink-soft); max-width: 44ch; }

/* =========================================================
   FACULTY
   ========================================================= */
.admin-grid { max-width: var(--max); margin: 0 auto clamp(56px, 7vw, 84px); padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.admin-card, .teacher-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 30px 26px; transition: box-shadow 0.25s ease, transform 0.25s ease; cursor: pointer; text-align: left; width: 100%; }
.admin-card:hover, .teacher-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--teal-deep); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin-bottom: 18px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 68px; height: 68px; font-size: 1.15rem; }
.admin-card h3, .teacher-card h4 { font-size: 1.2rem; margin-bottom: 3px; }
.role { color: var(--teal); font-weight: 600; font-size: 0.85rem; margin-bottom: 12px; }
.bio { color: var(--ink-soft); font-size: 0.92rem; }
.click-hint { display: block; margin-top: 14px; font-size: 0.8rem; color: var(--ink-faint); font-weight: 600; }

.subgroup-title { max-width: var(--max); margin: 0 auto 28px; padding: 0 var(--gutter); font-size: 1.3rem; }
.teacher-grid { max-width: var(--max); margin: 0 auto clamp(56px, 7vw, 84px); padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 22px; }
.teacher-card { padding: 22px 20px; }
.teacher-card .avatar { width: 46px; height: 46px; font-size: 0.85rem; margin-bottom: 14px; background: var(--teal); }
.teacher-card h4 { font-size: 1.02rem; }
.teacher-card .role { font-size: 0.78rem; margin-bottom: 9px; }
.teacher-card .bio { font-size: 0.85rem; }
.teacher-card { display: flex; flex-direction: column; }
.teacher-card .click-hint { margin-top: auto; padding-top: 12px; }
.bio-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.modal-body .bio + .bio { margin-top: 14px; }

.committee-grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 22px; }
.committee-card .avatar { width: 72px; height: 72px; font-size: 1.05rem; background: var(--teal-deep); }

/* ---- Faculty modal (bio + bigger image) ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(10,20,18,0.6); backdrop-filter: blur(3px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.open { display: flex; }
.modal-card { background: var(--paper); border-radius: var(--radius-md); max-width: 640px; width: 100%; max-height: 86vh; overflow-y: auto; box-shadow: var(--shadow-lg); position: relative; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; z-index: 2; }
.modal-close:hover { background: var(--paper-alt); }
.modal-photo { width: 100%; aspect-ratio: 16/9; background: var(--teal-deep); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.modal-photo .avatar { width: 96px; height: 96px; font-size: 2rem; margin: 0; }
.modal-body { padding: clamp(24px, 4vw, 40px); }
.modal-body h3 { font-size: 1.6rem; margin-bottom: 4px; }
.modal-body .role { font-size: 0.95rem; margin-bottom: 14px; }
.modal-body .credentials { font-size: 0.88rem; color: var(--ink-faint); margin-bottom: 18px; font-style: italic; }
.modal-body .bio { font-size: 1rem; line-height: 1.7; }

/* =========================================================
   STUDENT LIFE
   ========================================================= */
.life-layout { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 60px); align-items: start; }
.life-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.life-img { border-radius: var(--radius-md); object-fit: cover; box-shadow: var(--shadow-sm); }
.life-img-a { grid-column: 1 / 3; aspect-ratio: 16/10; }
.life-img-b { aspect-ratio: 1/1; }
.content-photo { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); margin: 6px 0 22px; }
.panel-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.panel-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-md); }
.life-list { display: flex; flex-direction: column; gap: 30px; }
.life-item { border-left: 2px solid var(--teal); padding-left: 20px; }
.life-item h3 { font-size: 1.15rem; margin-bottom: 8px; }
.life-item p { color: var(--ink-soft); font-size: 0.95rem; max-width: 46ch; }
.life-photo { margin: 0; }
.life-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 40%; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.life-photo figcaption { margin-top: 10px; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.02em; }

/* =========================================================
   TIMELINE (admissions)
   ========================================================= */
.timeline { max-width: 920px; margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.timeline::before { content: ""; position: absolute; left: calc(var(--gutter) + 23px); top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline-step { display: grid; grid-template-columns: 48px 1fr; gap: 24px; padding-bottom: 44px; position: relative; }
.timeline-step:last-child { padding-bottom: 0; }
.step-index { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--teal-deep); background: var(--white); border: 1.5px solid var(--teal); width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 1; }
.step-body h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step-body p { color: var(--ink-soft); max-width: 50ch; }

/* =========================================================
   ADMISSIONS ACTION CARDS
   ========================================================= */
.admission-actions { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.action-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 34px 28px; background: var(--white); display: flex; flex-direction: column; }
.action-card.featured { background: var(--teal-deep); color: var(--paper); border-color: var(--teal-deep); }
.action-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.action-card p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 24px; flex-grow: 1; }
.action-card.featured h3 { color: var(--white); }
.action-card.featured p { color: rgba(255,255,255,0.9); }
.action-card .btn { align-self: flex-start; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonial-layout { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 56px); align-items: start; }
.testimonial-feature { background: var(--teal-deep); color: var(--paper); border-radius: var(--radius-md); padding: clamp(36px, 4vw, 52px); }
.testimonial-feature p { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.5; font-weight: 500; margin-bottom: 22px; }
.testimonial-feature footer { color: var(--white-70); font-size: 0.9rem; font-weight: 600; }
.testimonial-side { display: flex; flex-direction: column; gap: 22px; }
.testimonial-small { background: var(--white); border-radius: var(--radius-md); padding: 24px 26px; border: 1px solid var(--line); }
.testimonial-small p { font-size: 0.96rem; color: var(--ink); margin-bottom: 12px; }
.testimonial-small footer { font-size: 0.82rem; color: var(--ink-faint); font-weight: 600; }
.testimonial-grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-answer a { color: var(--teal); font-weight: 600; }
.faq-list { max-width: 780px; margin: 0 auto; padding: 0 var(--gutter); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; text-align: left; font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; }
.faq-icon { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--teal); transition: transform 0.3s ease; }
.faq-icon::before { top: 9px; left: 2px; right: 2px; height: 2px; }
.faq-icon::after { left: 9px; top: 2px; bottom: 2px; width: 2px; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: rotate(90deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-answer p { padding: 0 4px 22px; color: var(--ink-soft); max-width: 62ch; }
.faq-item.open .faq-answer { max-height: 320px; }

/* =========================================================
   NEWSLETTER
   ========================================================= */
.newsletter { background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius-md); padding: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.newsletter h3 { font-size: 1.4rem; margin-bottom: 8px; }
.newsletter p { color: var(--ink-soft); font-size: 0.95rem; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input[type="email"] { flex: 1; padding: 13px 16px; border: 1px solid var(--line); border-radius: 3px; font: inherit; background: var(--white); color: var(--ink); -webkit-text-fill-color: var(--ink); caret-color: var(--ink); }
.newsletter-form input[type="email"]::placeholder { color: var(--ink-faint); -webkit-text-fill-color: var(--ink-faint); opacity: 1; }
.newsletter-form input[type="email"]:focus { border-color: var(--teal); }
.newsletter-note { font-size: 0.78rem; color: var(--ink-faint); margin-top: 10px; }
.newsletter-error { font-size: 0.85rem; font-weight: 600; color: #B42318; margin-top: 10px; }
.newsletter-error:empty { display: none; }
.newsletter.submitted .newsletter-error { display: none; }
.newsletter-success { display: none; font-weight: 600; color: var(--teal-deep); }
.newsletter.submitted .newsletter-form,
.newsletter.submitted .newsletter-note { display: none; }
.newsletter.submitted .newsletter-success { display: block; }

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta { background: var(--teal-deep); color: var(--paper); position: relative; overflow: hidden; padding: var(--section-pad) var(--gutter); text-align: center; }
.cta-star { position: absolute; width: 340px; height: 340px; color: var(--white); opacity: 0.07; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.final-cta-inner { max-width: 680px; margin: 0 auto; position: relative; }
.final-cta h2 { color: var(--paper); font-size: clamp(2rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.final-cta-lead { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 34px; }
.final-cta .hero-actions { justify-content: center; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.final-cta-meta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; color: rgba(255,255,255,0.65); font-size: 0.9rem; }

/* =========================================================
   HUB CARDS (parents & community)
   ========================================================= */
.hub-grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hub-grid.hub-grid-2 { grid-template-columns: repeat(2, 1fr); }
.hub-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 30px 26px; background: var(--white); transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease; display: flex; flex-direction: column; height: 100%; }
.hub-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--teal); }
.hub-card-index { font-family: var(--font-display); color: var(--teal); font-size: 0.9rem; margin-bottom: 14px; }
.hub-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.hub-card p { color: var(--ink-soft); font-size: 0.93rem; flex-grow: 1; margin-bottom: 18px; }
.hub-card .link-arrow { font-weight: 600; color: var(--teal); font-size: 0.9rem; }
.hub-card:hover .link-arrow { color: var(--teal-deep); }

/* =========================================================
   SIMPLE CONTENT PAGE (resources, handbook, gatherings, volunteering)
   ========================================================= */
.content-block { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.content-block h2 { font-size: 1.7rem; margin: 40px 0 16px; }
.content-block h2:first-child { margin-top: 0; }
.content-block h3 { font-size: 1.15rem; margin: 26px 0 8px; }
.content-block p + p { margin-top: 12px; }
.enrichment-grid { max-width: var(--max); margin: 32px auto 40px; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.enrichment-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px 26px; }
.enrichment-img { width: calc(100% + 52px); max-width: none; margin: -28px -26px 20px; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 30%; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.enrichment-card { overflow: hidden; }
.enrichment-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.enrichment-card p { color: var(--ink-soft); font-size: 0.95rem; }
.enrichment-card p + p { margin-top: 10px; }
@media (max-width: 940px) { .enrichment-grid { grid-template-columns: 1fr; } }
.content-block li strong { color: var(--ink); font-weight: 600; }
.content-block p { color: var(--ink-soft); margin-bottom: 16px; }
.content-block ul { margin: 0 0 16px; }
.content-block ul li { position: relative; padding-left: 22px; color: var(--ink-soft); margin-bottom: 10px; }
.content-block ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border: 1.5px solid var(--teal); transform: rotate(45deg); }
/* Scope & Sequence download (bottom of Curriculum) */
.scope-download { padding: clamp(48px, 6vw, 80px) var(--gutter); }
.scope-grid { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.scope-download-inner { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 6px 18px; background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px 26px 24px; }
.scope-download-inner:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 9px); }
.scope-download-icon { width: 44px; height: 44px; color: var(--teal); grid-row: 1; }
.scope-download-text h2 { font-size: 1.3rem; line-height: 1.25; margin: 2px 0 6px; }
.scope-download-text p { color: var(--ink-soft); font-size: 0.92rem; }
.scope-download-inner .btn { grid-column: 1 / -1; margin-top: 16px; width: 100%; }
@media (max-width: 720px) {
  .scope-grid { grid-template-columns: 1fr; }
  .scope-download-inner:last-child:nth-child(odd) { width: auto; justify-self: stretch; }
}
.download-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px 26px; margin-top: 12px; }
.download-card span { font-weight: 600; }
.download-card-featured { background: var(--paper-alt); margin: 0 0 36px; }
.download-card-featured p { margin: 4px 0 0; font-size: 0.9rem; color: var(--ink-soft); }

/* =========================================================
   CALENDAR TABS
   ========================================================= */
.tabs { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.tab-buttons { display: flex; gap: 10px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.tab-btn { padding: 12px 4px; margin-right: 26px; font-weight: 600; color: var(--ink-faint); border-bottom: 2px solid transparent; }
.tab-btn.active { color: var(--teal-deep); border-color: var(--teal); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.calendar-frame { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--white); }
.calendar-frame iframe { display: block; width: 100% !important; height: clamp(560px, 78vh, 780px) !important; border: 0; }
.calendar-note { margin-top: 14px; color: var(--ink-soft); font-size: 0.92rem; }
.calendar-note a { color: var(--teal); font-weight: 600; }
.subscribe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.subscribe-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px 24px; background: var(--white); display: flex; flex-direction: column; }
.subscribe-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.subscribe-card p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 20px; flex-grow: 1; }
.subscribe-card .btn { align-self: flex-start; }
@media (max-width: 940px) { .subscribe-grid { grid-template-columns: 1fr; } }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--black); color: rgba(255,255,255,0.72); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { width: 44px; margin-bottom: 14px; opacity: 0.9; }
.footer-brand p { font-family: var(--font-display); color: var(--paper); font-size: 1.05rem; }
.footer-accreditation { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.footer-brand .footer-accreditation img { width: 96px; height: 96px; margin: 0; opacity: 1; border-radius: 50%; flex-shrink: 0; }
.footer-brand .footer-accreditation p { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; line-height: 1.4; color: rgba(255,255,255,0.85); }
.footer-col h4 { color: var(--paper); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; }
.footer-col a { display: block; padding: 6px 0; font-size: 0.92rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--white); }
.footer-col p { font-size: 0.92rem; margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px var(--gutter); text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .admin-grid, .admission-actions, .testimonial-grid, .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .teacher-grid, .committee-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1240px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 940px) {
  .program-panels { grid-template-columns: 1fr; }
  .feature-row, .feature-row-reverse { grid-template-columns: 1fr; }
  .feature-row-reverse .feature-media, .feature-row .feature-media { order: -1; }
  .feature-row-reverse .feature-text { order: 2; }
  .life-layout, .testimonial-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .admin-grid, .admission-actions, .testimonial-grid, .hub-grid { grid-template-columns: 1fr; }
  .teacher-grid, .committee-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero h1 { max-width: none; }
  /* Phones: photo on top (faces fully visible), bold text below on navy */
  .page-hero { display: block; min-height: 0; background: #0A1A38; }
  .page-hero .page-hero-bg { position: relative; height: auto; aspect-ratio: 1 / 1; }
  .home-hero .page-hero-bg { object-position: center 52%; }
  .page-hero::after { display: none; }
  .page-hero .page-hero-inner { margin-top: 0; padding-top: 28px; padding-bottom: 48px; }
  .footer-inner { grid-template-columns: 1fr; }
  .timeline::before { left: 23px; }
  .newsletter-form { flex-direction: column; }
}
@media (max-width: 560px) {
  .teacher-grid, .committee-grid { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
}

/* While Sanity photos load, hide the built-in ones so they don't visibly swap */
.cms-loading img[data-cms] { opacity: 0; }
img[data-cms] { transition: opacity 0.3s ease; }

/* =========================================================
   PHOTO CAROUSEL (homepage)
   ========================================================= */
.moments { overflow: hidden; }
.carousel-track {
  position: relative; display: flex; gap: clamp(12px, 2vw, 22px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 18px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { box-shadow: inset 0 0 0 2px var(--teal); border-radius: var(--radius-md); }
.carousel-slide {
  flex: 0 0 auto; margin: 0; scroll-snap-align: center;
  height: clamp(300px, 58vh, 560px); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-md); opacity: 0.45; transform: scale(0.94);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.carousel-slide.is-active { opacity: 1; transform: none; }
.carousel-slide img { display: block; height: 100%; width: auto; max-width: min(84vw, 860px); object-fit: cover; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; padding: 0 var(--gutter); }
.carousel-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--teal); background: transparent;
  color: var(--teal); display: grid; place-items: center; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.carousel-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel-btn:hover, .carousel-btn:focus-visible { background: var(--teal); color: #fff; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: rgba(15, 42, 82, 0.25); cursor: pointer; transition: width 0.3s, background 0.3s; }
.carousel-dot[aria-selected="true"] { width: 26px; background: var(--teal); }
@media (prefers-reduced-motion: reduce) { .carousel-track { scroll-behavior: auto; } .carousel-slide { transition: none; } }
@media (max-width: 720px) { .carousel-slide { height: auto; } .carousel-slide img { width: 84vw; max-width: none; height: auto; aspect-ratio: 4 / 3; object-position: center 40%; } }

/* =========================================================
   STUDENT VIDEO (admissions)
   ========================================================= */
.video-feature-inner { max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 80px); align-items: center; }
.video-feature-text h2 { margin-bottom: 14px; }
.video-feature-text .section-lead { margin-bottom: 26px; }
.video-frame { width: min(360px, 100%); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-md); background: #000; }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 576 / 960; }
@media (max-width: 760px) {
  .video-feature-inner { grid-template-columns: 1fr; text-align: center; }
  .video-frame { margin: 0 auto; width: min(340px, 100%); }
}

/* =========================================================
   SLIDESHOW (Why ICCRA — Growing beyond the classroom)
   ========================================================= */
.slideshow-frame { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); background: var(--teal); outline: none; }
.slideshow-frame:focus-visible { box-shadow: 0 0 0 3px var(--teal), var(--shadow-md); }
.feature-media .slideshow-img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; box-shadow: none; opacity: 0; transition: opacity 0.9s ease; }
.slideshow-img.is-active { opacity: 1; }
.slideshow-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.88); color: var(--teal); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,0.18); opacity: 0.85; transition: opacity 0.2s, background 0.2s; }
.slideshow-btn:hover, .slideshow-btn:focus-visible { opacity: 1; background: #fff; }
.slideshow-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.slideshow-prev { left: 14px; }
.slideshow-next { right: 14px; }
.slideshow-count { position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: 4px 11px; border-radius: 999px; background: rgba(8,16,32,0.6); color: #fff; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; }
.slideshow-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 16px; }
.slideshow-dot { width: 7px; height: 7px; border-radius: 999px; border: 0; padding: 0; background: rgba(15,42,82,0.22); cursor: pointer; transition: width 0.3s, background 0.3s; }
.slideshow-dot[aria-current="true"] { width: 22px; background: var(--teal); }
@media (prefers-reduced-motion: reduce) { .feature-media .slideshow-img { transition: none; } }

/* =========================================================
   SPLIT HERO — for tall photos: words on navy, full photo on the right
   ========================================================= */
@media (min-width: 721px) {
  .hero-split { background: var(--brand-navy); align-items: center; }
  .hero-split .page-hero-bg {
    left: auto; right: 0; width: 52%;
  }
  .hero-split::before, .hero-split::after { display: none; }
  .hero-split .page-hero-inner { padding-top: clamp(110px, 12vw, 150px); }
  .hero-split h1 { max-width: 13ch; font-size: clamp(2.3rem, 4.2vw, 3.6rem); }
  .hero-split .page-hero-inner > * { max-width: 46%; }
}

/* =========================================================
   HOMEPAGE BANNER SLIDESHOW (cross-fading photos behind the headline)
   ========================================================= */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slides .page-hero-bg { opacity: 0; transition: opacity 1.4s ease; }
.hero-slides .page-hero-bg.is-active { opacity: 1; }
.hero-dots { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(24px, 4vw, 40px); display: flex; gap: 8px; }
.hero-dot { width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,0.5); cursor: pointer; transition: width 0.3s, background 0.3s; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.hero-dot:hover { background: rgba(255,255,255,0.8); }
.hero-dot[aria-current="true"] { width: 28px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .hero-slides .page-hero-bg { transition: none; transform: none; } }
@media (max-width: 720px) {
  .hero-slides { position: relative; aspect-ratio: 1 / 1; }
  .hero-slides .page-hero-bg { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; -webkit-mask-image: none; mask-image: none; }
  .hero-dots { right: 50%; transform: translateX(50%); bottom: 16px; }
}

/* Text panel on banner photos — keeps the words readable without darkening the photo itself */
.hero-card { display: inline-block; max-width: min(660px, 100%); padding: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 38px); border-radius: 16px; background: rgba(8, 24, 50, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 18px 48px rgba(4, 12, 28, 0.28); }
.hero-card > :last-child { margin-bottom: 0; }
.hero-card h1, .hero-card .page-hero-lead, .hero-card .breadcrumb, .hero-card .eyebrow { text-shadow: none; }
.hero-split .hero-card { background: none; padding: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; max-width: none; }
@media (max-width: 720px) {
  .hero-card { display: block; background: none; padding: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; max-width: none; border-radius: 0; }
}

/* Banner text panel on the right — for photos whose subject is on the left */
@media (min-width: 721px) {
  .hero-right .page-hero-inner { display: flex; justify-content: flex-end; }
  .hero-right .hero-card { max-width: 540px; }
}

/* Featured testimonial — pull quote + expandable full story */
.testimonial-feature { position: relative; }
.testimonial-feature .quote-mark { width: 44px; height: 33px; fill: rgba(255,255,255,0.22); margin-bottom: 18px; }
.testimonial-feature .testimonial-highlight { font-family: var(--font-display); font-size: clamp(1.3rem, 2.1vw, 1.65rem); line-height: 1.45; font-weight: 600; margin-bottom: 24px; }
.testimonial-story { position: relative; max-height: 9.6em; overflow: hidden; transition: max-height 0.6s ease; }
.testimonial-story::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4.5em; background: linear-gradient(180deg, rgba(8,24,50,0), var(--teal-deep)); transition: opacity 0.3s; }
.testimonial-feature .testimonial-story p { font-family: var(--font-body, inherit); font-size: 0.98rem; line-height: 1.65; font-weight: 400; color: rgba(255,255,255,0.86); margin-bottom: 14px; }
.testimonial-feature.is-open .testimonial-story { max-height: 120em; }
.testimonial-feature.is-open .testimonial-story::after { opacity: 0; }
.testimonial-more { margin: 6px 0 22px; padding: 0; border: 0; background: none; color: #fff; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,0.5); }
.testimonial-more:hover { text-decoration-color: #fff; }
.testimonial-small { border-left: 3px solid var(--teal); }

/* Compact banner text panel — small enough that the photo stays the focus */
@media (min-width: 721px) {
  .page-hero-inner { padding-bottom: clamp(24px, 3vw, 40px); }
  .hero-card { max-width: 470px; padding: 22px 26px 24px; border-radius: 14px; background: rgba(8, 24, 50, 0.7); }
  .hero-card h1 { font-size: clamp(1.7rem, 2.6vw, 2.35rem); max-width: none; margin-bottom: 10px; line-height: 1.1; }
  .hero-card .page-hero-lead { font-size: 0.95rem; line-height: 1.5; max-width: none; }
  .hero-card .breadcrumb { margin-bottom: 8px; font-size: 0.75rem; }
  .hero-card .eyebrow { margin-bottom: 8px; }
  .hero-card .page-hero-actions { margin-top: 18px; }
  .hero-card .btn-lg { padding: 11px 20px; font-size: 0.92rem; }
  .hero-right .hero-card { max-width: 470px; }
  .home-hero .hero-card { max-width: 520px; }
}

/* Homepage intro line under the banner (keeps the banner panel small) */
.home-intro { padding: clamp(40px, 5vw, 64px) var(--gutter) clamp(8px, 2vw, 16px); }
.home-intro-text { max-width: 860px; margin: 0 auto; text-align: center; font-family: var(--font-display); font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.55; color: var(--ink); font-weight: 500; }
@media (min-width: 721px) { .home-hero .hero-card { max-width: 440px; } }

/* Banner text panel sits close to the left (or right) edge so more of the photo shows */
@media (min-width: 721px) {
  .page-hero-inner { max-width: none; padding-left: clamp(20px, 2.4vw, 36px); padding-right: clamp(20px, 2.4vw, 36px); padding-bottom: clamp(20px, 2.4vw, 32px); }
  .hero-card { max-width: 420px; padding: 18px 22px 20px; }
  .hero-card h1 { font-size: clamp(1.55rem, 2.3vw, 2.1rem); }
  .hero-card .page-hero-lead { font-size: 0.9rem; }
  .home-hero .hero-card { max-width: 400px; }
  .hero-right .hero-card { max-width: 420px; }
}

/* Homepage banner panel: headline on the left, buttons stacked on the right — a wide, short rectangle */
@media (min-width: 900px) {
  .home-hero .hero-card { display: inline-grid; grid-template-columns: auto auto; column-gap: 28px; align-items: end; max-width: none; }
  .home-hero .hero-card .eyebrow { grid-column: 1; }
  .home-hero .hero-card h1 { grid-column: 1; margin-bottom: 0; max-width: 15ch; }
  .home-hero .hero-card .page-hero-actions { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; gap: 10px; margin-top: 0; align-self: end; }
  .home-hero .hero-card .page-hero-actions .btn { justify-content: center; text-align: center; }
}

/* Islamic Studies panel: photos grow to fill the panel's leftover height on laptops */
.photo-brighten { filter: brightness(1.32) contrast(1.05) saturate(1.08); }
@media (min-width: 901px) {
  .program-panel.panel-islamic { display: flex; flex-direction: column; }
  .panel-islamic .panel-photos { flex: 1 1 0; min-height: 300px; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  .panel-islamic .panel-photos > img { width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; contain: size; }
}

/* "Fit" banner — for tall photos: the whole photo shows on the right, a blurred copy fills the rest */
.page-hero-blur { display: none; }
@media (min-width: 721px) {
  .hero-fit .page-hero-blur { display: block; position: absolute; top: -120px; left: -120px; width: calc(100% + 240px); height: calc(100% + 240px); max-width: none; object-fit: cover; filter: blur(30px) brightness(0.95) saturate(1.1); z-index: 0; }
  .hero-fit .page-hero-bg { object-fit: contain; object-position: 88% center; z-index: 0; }
}

/* "Fit" banner v2 — navy gradient with the words on the left, large photo on the right fading into it */
@media (min-width: 721px) {
  .hero-fit { background: linear-gradient(100deg, #081832 0%, #0F2A52 55%, #1B3B6B 100%); align-items: center; }
  .hero-fit .page-hero-blur { display: none; }
  .hero-fit .page-hero-bg { left: auto; right: 0; width: 54%; object-fit: cover; object-position: center 45%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%); mask-image: linear-gradient(90deg, transparent 0%, #000 16%); }
  .hero-fit .page-hero-inner { padding-left: clamp(24px, 6vw, 96px); }
  .hero-fit .hero-card { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; padding: 0; max-width: 44%; }
  .hero-fit .hero-card h1 { font-size: clamp(2rem, 3.6vw, 3.2rem); text-shadow: none; }
}

/* Text box in the top corner — for photos where faces fill the bottom */
@media (min-width: 721px) {
  .hero-top { align-items: flex-start; }
  .hero-top .page-hero-inner { padding-top: clamp(20px, 2.4vw, 32px); padding-bottom: 0; }
}
@media (min-width: 721px) { .hero-top .hero-card { max-width: 340px; } }

/* Heading with a button beside it (e.g. ESA application link) */
.heading-with-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 28px 0 10px; }
.heading-with-action h3 { margin: 0; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

/* Bigger banner words (Parent Resources) */
.hero-big h1 { font-size: clamp(2.6rem, 5vw, 4.4rem) !important; line-height: 1.04; }
.hero-big .page-hero-lead { font-size: clamp(1.1rem, 1.5vw, 1.35rem) !important; line-height: 1.5; }
.hero-big .breadcrumb { font-size: 0.92rem !important; }
@media (min-width: 721px) { .hero-fit.hero-big .hero-card { max-width: 46%; } }
@media (min-width: 721px) { .hero-top.hero-big .hero-card { max-width: 560px; } }

/* "Below" banner — full photo with nothing on it, big title underneath on the page background */
.hero-below { display: block; min-height: 0; background: var(--paper); color: var(--ink); }
.hero-below::before, .hero-below::after { display: none; }
.hero-below .page-hero-bg { position: relative; display: block; width: 100%; height: clamp(320px, 62vh, 640px); aspect-ratio: auto; }
.hero-below .page-hero-inner { padding: clamp(28px, 4vw, 48px) var(--gutter) clamp(8px, 2vw, 16px); max-width: var(--max); margin: 0 auto; }
.hero-below .hero-card { display: block; background: none; box-shadow: none; padding: 0; max-width: 900px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero-below h1 { color: var(--ink); text-shadow: none; font-size: clamp(2.6rem, 5vw, 4.4rem) !important; line-height: 1.04; max-width: none; }
.hero-below .page-hero-lead { color: var(--ink-soft); text-shadow: none; font-size: clamp(1.1rem, 1.5vw, 1.35rem) !important; max-width: 60ch; }
.hero-below .breadcrumb, .hero-below .breadcrumb a { color: var(--ink-soft); text-shadow: none; }
@media (max-width: 720px) { .hero-below .page-hero-bg { height: auto; aspect-ratio: 4 / 3; } }
@media (min-width: 721px) { .hero-tl .hero-card { max-width: 360px; } }

/* Slideshow dots must stay clickable: the text layer spans the banner, so let clicks pass through it */
.page-hero-inner { pointer-events: none; }
.page-hero-inner a, .page-hero-inner button, .page-hero-inner .hero-card { pointer-events: auto; }
.hero-slides { z-index: auto; }
.hero-slides .page-hero-bg { z-index: 0; }
.hero-dots { z-index: 5; }
.hero-dot { position: relative; }
.hero-dot::after { content: ""; position: absolute; inset: -8px; } /* bigger tap area */

