/* ==============================================
   Grace Early Childhood Center — style.css
   Modern, friendly redesign
   ============================================== */

/* -----------------------------------------------
   NOTE: Sections 1–18 are the home page styles.
   Sections 19+ are sub-page styles (About, Programs, etc.)
----------------------------------------------- */

/* -----------------------------------------------
   1. Reset & Base
----------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Backstop against horizontal scroll. Use `clip`, NOT `hidden`: `hidden`
     establishes a scroll container that breaks `position: sticky` on the
     header, while `clip` does not. Still track down any element that overflows. */
  overflow-x: clip;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 0.55s ease;
  max-width: 100%;
  overflow-x: clip;
}

body.page-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  body { opacity: 1; transition: none; }
}

img {
  max-width: 100%;
  display: block;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

:focus { outline: none; }
:focus-visible {
  box-shadow: 0 0 0 3px var(--orange);
}

a, button {
  -webkit-tap-highlight-color: transparent;
}


/* -----------------------------------------------
   2. Design Tokens
----------------------------------------------- */
:root {
  /* Brand colors */
  --primary:       #0064af;
  --primary-light: #2ea3f2;
  --primary-dark:  #004d87;
  --primary-bg:    #e8f3fb;

  /* Logo accent palette */
  --orange: #fa9628;
  --yellow: #ffd200;
  --green:  #7dbe41;
  --purple: #a54196;

  /* Text */
  --text-dark:  #0f1b2d;
  --text-body:  #374151;
  --text-muted: #6b7280;

  /* Backgrounds */
  --bg-page:  #f8fafc;
  --bg-dark:  #0d2137;

  /* Borders */
  --border: #e5e7eb;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);

  /* Radii */
  --r-sm:   8px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-full: 9999px;

  --ease: 0.2s ease;

  /* Notification bar height — set by JS, used to offset sticky elements */
  --notif-h: 0px;
}


/* -----------------------------------------------
   3. Typography
----------------------------------------------- */
h1, h2, h3, h4 {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; }


/* -----------------------------------------------
   4. Layout
----------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}


/* -----------------------------------------------
   5. Buttons
----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 28px;
  border-radius: var(--r-full);
  font-family: 'Inter', sans-serif;
  font-size: 0.925rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,100,175,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary-bg);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--primary-bg);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  transform: translateY(-1px);
}


/* -----------------------------------------------
   6. Shared Section Helpers
----------------------------------------------- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 12px;
}


/* -----------------------------------------------
   7. Header & Navigation
----------------------------------------------- */
.site-header {
  position: sticky;
  top: var(--notif-h);
  z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo img { width: 48px; height: 48px; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-grace {
  font-family: 'Nunito', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}
.logo-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Nav */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}
.main-nav a {
  display: block;
  padding: 7px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--r-sm);
  transition: all var(--ease);
}
.main-nav a.active { color: var(--primary); background: var(--primary-bg); }
@media (hover: hover) {
  .main-nav a:hover { color: var(--primary); background: var(--primary-bg); }
}
.main-nav a:not(.btn-nav):active,
.nav-dropdown-btn:active,
.nav-dropdown-item:active,
.nav-touching {
  background: var(--primary-bg) !important;
  color: var(--primary) !important;
}
.main-nav .btn-nav {
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--r-full);
  padding: 8px 20px;
  margin-left: 8px;
}
.main-nav .btn-nav:hover {
  background: var(--primary-dark);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--r-sm);
  transition: background var(--ease);
}
.nav-toggle:hover { background: var(--bg-page); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              opacity   0.25s ease,
              width     0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Nav dropdown (Resources) ────────────────────────────────── */
.nav-dropdown-wrap { position: relative; }
.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: inherit;
  color: var(--text-body);
  background: none;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--ease);
  white-space: nowrap;
}
.nav-dropdown-btn.active { color: var(--primary); background: var(--primary-bg); }
.nav-dropdown-wrap.open .nav-dropdown-btn.active { background: none; color: var(--text-body); }
@media (hover: hover) {
  .nav-dropdown-btn:hover { color: var(--primary); background: var(--primary-bg); }
}
.nav-chevron { transition: transform 0.2s ease; flex-shrink: 0; }
.nav-dropdown-wrap.open .nav-chevron { transform: rotate(180deg); }

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  padding: 6px;
  display: flex;
  flex-direction: column;
  z-index: 300;
  transform: translateX(-50%) translateY(-6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease,
              visibility 0s linear 0.18s;
}
.nav-dropdown-wrap.open .nav-dropdown-panel {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.18s ease, transform 0.18s ease,
              visibility 0s linear 0s;
}

.nav-dropdown-item {
  display: block;
  padding: 9px 14px;
  border-radius: calc(var(--r-md) - 4px);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--ease);
}
.nav-dropdown-item.active { color: var(--primary); background: var(--primary-bg); }
@media (hover: hover) {
  .nav-dropdown-item:hover { color: var(--primary); background: var(--primary-bg); }
}


/* -----------------------------------------------
   8. Hero
----------------------------------------------- */
.hero {
  background: #fff;
  overflow: hidden;
  padding: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 72px);
  padding-top: 64px;
  padding-bottom: 88px;
}

.hero-badge {
  display: inline-block;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: var(--r-full);
  margin-bottom: 24px;
}

.hero-content h1 { margin-bottom: 20px; }

.hero-content h1 .highlight {
  color: var(--orange);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat strong {
  font-family: 'Nunito', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.stat span {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-graphic {
  position: relative;
  width: 420px;
  height: 420px;
}
.hero-graphic::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #dff0fb 0%, var(--primary-bg) 60%, #f0f9ff 100%);
}

/* Floating color blobs */
.geo {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}
.geo-1 {
  width: 100px; height: 100px;
  background: var(--orange);
  top: -12px; right: 60px;
  opacity: 0.35;
  border-radius: 50% 30% 60% 40%;
}
.geo-2 {
  width: 72px; height: 72px;
  background: var(--green);
  bottom: 48px; left: 16px;
  opacity: 0.4;
}
.geo-3 {
  width: 52px; height: 52px;
  background: var(--purple);
  top: 72px; left: 24px;
  opacity: 0.3;
}
.geo-4 {
  width: 88px; height: 88px;
  background: var(--yellow);
  bottom: 28px; right: 28px;
  opacity: 0.45;
}

/* ── Hero graphic entrance + float animations ────────────────── */
@keyframes hero-bg-enter {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* Entrance — each ends at the geo's original opacity */
@keyframes geo-1-enter {
  from { transform: translate(60px, -60px) scale(0); opacity: 0; }
  to   { transform: translate(0, 0)        scale(1); opacity: 0.35; }
}
@keyframes geo-2-enter {
  from { transform: translate(-60px, 60px) scale(0); opacity: 0; }
  to   { transform: translate(0, 0)        scale(1); opacity: 0.4; }
}
@keyframes geo-3-enter {
  from { transform: translate(-60px, -60px) scale(0); opacity: 0; }
  to   { transform: translate(0, 0)         scale(1); opacity: 0.3; }
}
@keyframes geo-4-enter {
  from { transform: translate(60px, 60px) scale(0); opacity: 0; }
  to   { transform: translate(0, 0)       scale(1); opacity: 0.45; }
}

/* Float — translate only, no rotation, varied paths */
@keyframes geo-1-float {
  0%   { transform: translate(0,    0);    }
  25%  { transform: translate(-7px, -11px); }
  55%  { transform: translate(4px,  -7px);  }
  80%  { transform: translate(-3px, -14px); }
  100% { transform: translate(0,    0);    }
}
@keyframes geo-2-float {
  0%   { transform: translate(0,   0);   }
  30%  { transform: translate(8px, -9px); }
  60%  { transform: translate(3px, -5px); }
  85%  { transform: translate(6px, -13px);}
  100% { transform: translate(0,   0);   }
}
@keyframes geo-3-float {
  0%   { transform: translate(0,    0);    }
  35%  { transform: translate(5px,  -8px);  }
  65%  { transform: translate(-4px, -12px); }
  100% { transform: translate(0,    0);    }
}
@keyframes geo-4-float {
  0%   { transform: translate(0,    0);    }
  20%  { transform: translate(-5px, -10px); }
  50%  { transform: translate(6px,  -16px); }
  75%  { transform: translate(-3px, -8px);  }
  100% { transform: translate(0,    0);    }
}

.hero-graphic::before {
  animation: hero-bg-enter 0.9s cubic-bezier(0.34, 1.4, 0.64, 1) 0.1s both;
}
.geo-1 {
  animation:
    geo-1-enter 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s both,
    geo-1-float 6.5s ease-in-out                        0.95s infinite;
}
.geo-2 {
  animation:
    geo-2-enter 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both,
    geo-2-float 8.2s ease-in-out                        1.05s infinite;
}
.geo-3 {
  animation:
    geo-3-enter 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s  both,
    geo-3-float 5.8s ease-in-out                        1.00s infinite;
}
.geo-4 {
  animation:
    geo-4-enter 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s  both,
    geo-4-float 9.4s ease-in-out                        1.10s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-graphic::before, .geo-1, .geo-2, .geo-3, .geo-4 {
    animation: none;
  }
}

.hero-logo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-wrap img {
  width: 260px;
  height: 260px;
  filter: drop-shadow(0 12px 40px rgba(0,100,175,0.18));
}


/* -----------------------------------------------
   9. Info Bar
----------------------------------------------- */
.info-bar {
  background: var(--primary);
}
.info-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 28px;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.info-item:last-child { border-right: none; }

.info-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-icon svg { width: 20px; height: 20px; }

.info-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.info-text strong {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-bottom: 2px;
}
.info-text span {
  font-size: 0.875rem;
  font-weight: 500;
}
.info-text a { color: #fff; }
.info-text a:hover { text-decoration: underline; }


/* -----------------------------------------------
   10. About / Mission
----------------------------------------------- */
.about-section { background: var(--bg-page); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-content h2 { margin-bottom: 20px; }
.about-content p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-content .btn { margin-top: 8px; }

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 24px 24px 20px;
  border-left: 4px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), transform var(--ease);
}
.about-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.about-card strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.card-num {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 8px;
}
.card-name {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 8px;
}
.about-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.about-card-yellow { border-left-color: var(--yellow); }
.about-card-blue   { border-left-color: var(--primary); }
.about-card-green  { border-left-color: var(--green); }


/* -----------------------------------------------
   11. Programs
----------------------------------------------- */
.programs-section { background: #fff; }

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.program-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 32px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent, var(--primary));
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--ease);
}
.program-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.program-icon {
  width: 52px; height: 52px;
  background: var(--bg-page);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.program-icon svg {
  width: 28px; height: 28px;
  stroke: var(--accent, var(--primary));
}

.program-card h3 { margin-bottom: 12px; }

.program-card > p {
  font-size: 0.925rem;
  color: var(--text-body);
  margin-bottom: 20px;
  flex: 1;
}

.program-features {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 24px;
}
.program-features li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}
.program-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent, var(--primary));
  font-weight: 700;
  font-size: 0.75rem;
  top: 1px;
}

.program-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent, var(--primary));
  margin-top: auto;
  transition: letter-spacing var(--ease);
}
.program-link:hover { letter-spacing: 0.01em; }

.programs-footer-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg-page);
  border-radius: var(--r-md);
  padding: 24px 32px;
}
.programs-footer-note p {
  color: var(--text-body);
  margin: 0;
}


/* -----------------------------------------------
   12. Facilities
----------------------------------------------- */
.facilities-section { background: var(--bg-page); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-icon {
  width: 50px; height: 50px;
  border-radius: var(--r-sm);
  background: rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* uses --ic custom property set inline */
  background: oklch(from var(--ic, #0064af) l c h / 0.12);
}
/* Fallback for browsers without oklch() */
@supports not (background: oklch(from red l c h / 0.1)) {
  .feature-icon { background: var(--primary-bg); }
}

.feature-icon svg {
  width: 24px; height: 24px;
  stroke: var(--ic, var(--primary));
}
.feature-item h4 { color: var(--text-dark); }
.feature-item p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }


/* -----------------------------------------------
   13. Partnership
----------------------------------------------- */
.partnership-section { background: #fff; padding: 72px 0; }

.partnership-card {
  background: linear-gradient(135deg, var(--primary-bg) 0%, #fff 60%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 52px 56px;
}

.partnership-content {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 64px;
  align-items: center;
}
.partnership-content > * { grid-column: 1; }
.partnership-content .wcs-logo-wrap {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: center;
}

.partnership-content h2 { margin-bottom: 12px; }
.partnership-content p {
  color: var(--text-body);
  margin-bottom: 24px;
  max-width: 500px;
}
.partnership-content .btn { justify-self: start; }

.badge-circle {
  width: 140px; height: 140px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  padding: 16px;
}
.badge-letters {
  font-family: 'Nunito', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.badge-sub {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}


/* -----------------------------------------------
   14. Enroll CTA
----------------------------------------------- */
.enroll-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 88px 0;
}
.enroll-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.enroll-text h2 { color: #fff; margin-bottom: 12px; }
.enroll-text p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0;
}
.enroll-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}


/* -----------------------------------------------
   15. Footer
----------------------------------------------- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr max-content 1.5fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}

/* Brand column */
.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-grace {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.footer-ecc-sub {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.4);
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 260px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.1);
  color: #fff;
  transition: background var(--ease);
  flex-shrink: 0;
}
.social-btn:hover { background: var(--primary-light); }
.social-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Hide social buttons with no URL set */
.social-btn--empty { display: none; }

/* URL text — hidden normally, shown as an editable label in admin mode */
.social-url-text { display: none; }

.admin-mode .social-btn--empty {
  display: inline-flex;
  opacity: 0.4;
}

.admin-mode .social-btn {
  width: auto;
  min-width: 38px;
  border-radius: var(--r-sm);
  padding: 0 10px;
  gap: 6px;
  pointer-events: none;
}

.admin-mode .social-url-text {
  display: inline;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  overflow: hidden;
  max-width: 160px;
  text-overflow: ellipsis;
  pointer-events: auto;
}

.admin-mode .social-url-text.admin-editing {
  outline: 1px dashed #ffd200;
  outline-offset: 2px;
  border-radius: 2px;
  min-width: 120px;
  white-space: normal;
  overflow: visible;
  max-width: 200px;
}

/* Footer columns */
.footer-col h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  font-weight: 700;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col:not([data-egroup]) ul {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 10px 24px;
}
.footer-col:not([data-egroup]) ul li a {
  white-space: nowrap;
}
.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--ease);
}
.footer-col a:hover { color: #fff; }

/* Contact */
.footer-col address p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  margin-bottom: 10px;
}
.footer-note { font-size: 0.8rem !important; opacity: 0.65; }

/* Hours table */
.hours-table {
  border-collapse: collapse;
  font-size: 0.875rem;
  width: 100%;
}
.hours-table tr { border-bottom: 1px solid rgba(255,255,255,0.06); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table th {
  text-align: left;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  padding: 8px 16px 8px 0;
  white-space: nowrap;
  vertical-align: top;
}
.hours-table td {
  color: rgba(255,255,255,0.6);
  padding: 8px 0;
  line-height: 1.4;
  vertical-align: top;
}

/* Footer bottom bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a {
  color: rgba(255,255,255,0.55);
  transition: color var(--ease);
}
.footer-bottom a:hover { color: #fff; }


/* -----------------------------------------------
   16. Responsive — Tablet (≤ 1024px)
----------------------------------------------- */
@media (max-width: 1024px) {
  section { padding: 72px 0; }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 72px;
    text-align: center;
  }
  .hero-content { max-width: 100%; order: 2; }
  .hero-visual { order: 1; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-badge { display: inline-block; }
  .hero-graphic { width: 300px; height: 300px; }
  .hero-logo-wrap img { width: 190px; height: 190px; }

  /* Info bar */
  .info-items { grid-template-columns: repeat(2, 1fr); }
  .info-item:nth-child(2) { border-right: none; }
  .info-item:nth-child(3),
  .info-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.15); }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 48px; }

  /* Programs */
  .programs-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }

  /* Features */
  .features-grid { grid-template-columns: repeat(2, 1fr); }

  /* Partnership */
  .partnership-card {
    text-align: center;
    padding: 40px 36px;
  }
  .partnership-content {
    grid-template-columns: 1fr;
  }
  .partnership-content .wcs-logo-wrap {
    grid-column: 1;
    grid-row: auto;
    width: fit-content;
    margin: 20px auto 20px;
  }
  .partnership-content p { margin-inline: auto; }
  .partnership-content .btn { justify-self: center; }

  /* About page */
  .specials-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-layout { grid-template-columns: 1fr; gap: 40px; }
  .mission-logos { padding-top: 0; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .philosophy-cards { grid-template-columns: 1fr; }

  /* Enroll CTA */
  .enroll-inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  .enroll-text p { margin-inline: auto; }
  .enroll-actions { justify-content: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}


/* -----------------------------------------------
   17. Responsive — Mobile (≤ 768px)
----------------------------------------------- */
@media (max-width: 768px) {
  section { padding: 56px 0; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .main-nav {
    display: block;
    position: fixed;
    top: calc(72px + var(--notif-h));
    left: 0; right: 0;
    z-index: 199;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 16px 24px 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.28s ease,
                transform 0.28s cubic-bezier(0.25, 1, 0.5, 1),
                visibility 0s linear 0.28s;
  }
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.28s ease,
                transform 0.28s cubic-bezier(0.25, 1, 0.5, 1),
                visibility 0s linear 0s;
  }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 12px 16px; font-size: 0.95rem; text-align: center; }
  .main-nav .btn-nav { text-align: center; margin: 8px 0 0; border-radius: var(--r-sm); }

  /* Hero */
  .hero-graphic { width: 240px; height: 240px; }
  .hero-logo-wrap img { width: 150px; height: 150px; }

  /* Programs */
  .programs-grid { max-width: 100%; }
  .programs-footer-note { flex-direction: column; text-align: center; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; gap: 28px; }

  /* About page */
  .specials-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}


/* -----------------------------------------------
   18. Responsive — Small (≤ 480px)
----------------------------------------------- */
@media (max-width: 480px) {
  .info-items { grid-template-columns: 1fr; }
  .info-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
  .info-item:last-child { border-bottom: none; }
  .info-item:nth-child(3),
  .info-item:nth-child(4) { border-top: none; }

  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }
}


/* ==============================================
   19. Page Hero (sub-pages)
   ============================================== */

.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 64px 0 72px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  top: -200px; right: -100px;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  bottom: -100px; left: 10%;
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); transition: color var(--ease); }
.breadcrumb a:hover { color: #fff; }
.bc-sep { opacity: 0.5; }

.page-hero h1 { color: #fff; margin-bottom: 16px; }

.page-hero > .container > p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}


/* ==============================================
   20. About — Mission Section
   ============================================== */

.mission-section { background: var(--bg-page); padding: 80px 0; }

.mission-wrap {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.mission-quote {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.55;
  position: relative;
  padding: 0 8px;
  margin: 16px 0 20px;
}

.mission-quote::before {
  content: '\201C';
  position: absolute;
  top: -32px; left: -8px;
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 1;
  color: var(--primary-light);
  opacity: 0.25;
  pointer-events: none;
}

.mission-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}


/* ==============================================
   21. About — Story Section
   ============================================== */

.story-section { background: #fff; }

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.story-content h2 { margin-bottom: 20px; }
.story-content p { color: var(--text-body); }

.story-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.story-stat {
  background: var(--bg-page);
  border-radius: var(--r-md);
  padding: 28px 24px;
  border-top: 4px solid var(--sc, var(--primary));
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow var(--ease), transform var(--ease);
}
.story-stat:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.ss-num {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}
.ss-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; line-height: 1.3; }


/* ==============================================
   22. About — Philosophy Section
   ============================================== */

.philosophy-section { background: var(--bg-page); }

.philosophy-intro-box {
  background: #fff;
  border-radius: var(--r-md);
  padding: 28px 36px;
  border-left: 4px solid var(--primary);
  max-width: 800px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.7;
  box-shadow: var(--shadow-sm);
}
.philosophy-intro-box p { margin: 0; }

.domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.domain-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--ease), transform var(--ease);
}
.domain-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.domain-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--primary-bg);
}
.domain-icon svg { width: 24px; height: 24px; stroke: var(--dic, var(--primary)); }

.domain-card h3 { margin-bottom: 8px; }
.domain-card p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

.domain-highlight {
  background: var(--primary);
  border-color: var(--primary);
}
.domain-highlight h3, .domain-highlight h4 { color: #fff; }
.domain-highlight p { color: rgba(255,255,255,0.8); }
.domain-highlight-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
}
.domain-icon-light { background: rgba(255,255,255,0.2) !important; }
.domain-icon-light svg { stroke: #fff; }


/* ==============================================
   23. About — Approach Section
   ============================================== */

.approach-section { background: var(--primary-bg); }

.approach-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.approach-step {
  background: #fff;
  border-radius: var(--r-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--ease), transform var(--ease);
}
.approach-step:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.step-num {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
  opacity: 0.5;
}

.step-body h4 { margin-bottom: 6px; }
.step-body p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

.approach-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-style: italic;
}


/* ==============================================
   24. About — Church Section
   ============================================== */

.church-section { background: #fff; }

.church-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.church-content h2 { margin-bottom: 16px; }
.church-content p { color: var(--text-body); margin-bottom: 16px; }
.church-content .btn { margin-top: 8px; }

.church-visual { display: flex; justify-content: center; }

.church-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  background: var(--bg-page);
  border-radius: var(--r-lg);
  padding: 40px 36px;
  border: 1px solid var(--border);
  max-width: 280px;
}
.church-badge-text { display: flex; flex-direction: column; gap: 4px; }
.church-badge-text strong { font-size: 0.9rem; color: var(--text-dark); }
.church-badge-text span { font-size: 0.75rem; color: var(--text-muted); }
.church-name {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 1.1rem !important;
  color: var(--primary) !important;
}


/* ==============================================
   25. Programs — Jump Nav
   ============================================== */

.prog-jump-nav {
  position: sticky;
  top: calc(72px + var(--notif-h));
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.prog-jump-nav .container {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.prog-jump-nav .container::-webkit-scrollbar { display: none; }

.prog-jump-nav a {
  display: block;
  padding: 16px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all var(--ease);
}
.prog-jump-nav a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--bg-page);
}


/* ==============================================
   26. Programs — Program Sections
   ============================================== */

.prog-section { background: #fff; }
.prog-section-alt { background: var(--bg-page); }

.prog-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.prog-detail-rev .prog-content { order: 2; }
.prog-detail-rev .prog-visual  { order: 1; }

.prog-age-tag {
  display: inline-block;
  background: var(--primary-bg);
  color: var(--ptc, var(--primary));
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: var(--r-full);
  margin-bottom: 16px;
}

.prog-content h2 { margin-bottom: 16px; }

.prog-lead {
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 16px;
}

.prog-content p { color: var(--text-body); }
.prog-content .btn { margin-top: 8px; }

.prog-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0;
}
.prog-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.925rem;
  color: var(--text-body);
}
.prog-features-list li svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  stroke: var(--green);
}

.prog-visual { display: flex; justify-content: center; align-items: center; }

/* ── Collage layout (circle bg + 3 layered photos) ── */
.prog-collage {
  position: relative;
  width: 400px;
  height: 420px;
  flex-shrink: 0;
}

.collage-circle {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--pcbg, #f0f4ff);
  top: 50%; left: 50%;
  transform: translate(-45%, -45%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.collage-circle svg {
  width: 110px; height: 110px;
  stroke: var(--ppc, var(--primary));
  opacity: 0.25;
}

.collage-photo {
  position: absolute;
  object-fit: cover;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

/* Large portrait — lower-left, pulled away from circle center */
.collage-a {
  width: 210px; height: 270px;
  border-radius: 12px;
  bottom: 0; left: -20px;
  border: 4px solid #fff;
}

/* Medium square — upper-right */
.collage-b {
  width: 170px; height: 145px;
  border-radius: 12px;
  top: 0; right: 0;
  border: 4px solid #fff;
}

/* Smaller landscape — lower-right */
.collage-c {
  width: 145px; height: 115px;
  border-radius: 12px;
  bottom: 20px; right: 0;
  border: 4px solid #fff;
}

.prog-circle {
  width: 320px; height: 320px;
  border-radius: 50%;
  background: var(--pcbg, var(--primary-bg));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  transition: transform var(--ease), box-shadow var(--ease);
}
.prog-circle:hover { transform: scale(1.02); box-shadow: 0 24px 64px rgba(0,0,0,0.12); }

.prog-circle svg {
  width: 100px; height: 100px;
  stroke: var(--pc, var(--primary));
  stroke-width: 0.8;
}

.prog-circle-label {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--pc, var(--primary));
  letter-spacing: 0.02em;
}


/* ==============================================
   27. Programs — Preschool Tracks
   ============================================== */

.tracks-wrap {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.tracks-wrap > h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 28px;
  text-align: center;
}

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.track-card {
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--ease), transform var(--ease);
  display: flex;
  flex-direction: column;
}
.track-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.track-header { background: var(--tc, var(--primary)); padding: 20px 24px; }
.track-age {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}
.track-header h4 { color: #fff; font-size: 1.25rem; }

.track-body { background: #fff; padding: 24px; display: flex; flex-direction: column; flex: 1; }
.track-body p { font-size: 0.9rem; color: var(--text-body); margin-bottom: 16px; }
.track-options { margin-top: auto; }

.track-options { display: flex; flex-wrap: wrap; gap: 8px; }
.track-options span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 4px 10px;
  border-radius: var(--r-full);
}
.track-option-featured {
  background: var(--primary-bg) !important;
  color: var(--primary) !important;
}

.track-card-featured { }

.schedule-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-page);
  border-radius: var(--r-md);
  padding: 20px 24px;
  border-left: 4px solid var(--primary-light);
}

.schedule-note-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--primary-bg);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.schedule-note-icon svg { width: 20px; height: 20px; stroke: var(--primary); }

.schedule-note strong { display: block; font-size: 0.875rem; color: var(--text-dark); margin-bottom: 4px; }
.schedule-note p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }


/* ==============================================
   28. Programs — Nutrition Section
   ============================================== */

.nutrition-section { background: var(--bg-page); }

.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.nutrition-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: center;
  transition: box-shadow var(--ease), transform var(--ease);
}
.nutrition-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.nutrition-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-sm);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.nutrition-icon svg { width: 28px; height: 28px; stroke: var(--primary); }

.nutrition-card h4 { margin-bottom: 10px; }
.nutrition-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.nutrition-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}


/* ==============================================
   29. Responsive — Sub-pages (Tablet <= 1024px)
   ============================================== */

@media (max-width: 1024px) {
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .domains-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-steps { grid-template-columns: repeat(3, 1fr); }
  .church-grid { grid-template-columns: 1fr; gap: 40px; }
  .church-visual { display: none; }

  .prog-detail {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .prog-detail-rev .prog-content { order: 2; }
  .prog-detail-rev .prog-visual  { order: 1; }
  .prog-features-list { text-align: left; max-width: 400px; margin-inline: auto; }

  .prog-collage { width: 310px; height: 330px; }
  .collage-circle { width: 230px; height: 230px; }
  .collage-circle svg { width: 84px; height: 84px; }
  .collage-a { width: 164px; height: 210px; left: -12px; }
  .collage-b { width: 136px; height: 116px; }
  .collage-c { width: 116px; height: 92px; bottom: 14px; }

  .tracks-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .nutrition-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
}


/* ==============================================
   30. Responsive — Sub-pages (Mobile <= 768px)
   ============================================== */

@media (max-width: 768px) {
  .philosophy-intro-box { padding: 20px 24px; }
  .domains-grid { grid-template-columns: 1fr; }
  .approach-steps { grid-template-columns: 1fr; }
  .story-stats { grid-template-columns: repeat(2, 1fr); }
  .prog-jump-nav a { padding: 14px 14px; font-size: 0.8rem; }
  .tracks-grid { max-width: 100%; }
  .nutrition-grid { max-width: 100%; }
}

/* ==============================================
   31. Nutrition Alert (nut-free notice)
   ============================================== */

.nutrition-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff8f0;
  border: 1px solid #fde8c8;
  border-left: 4px solid var(--orange);
  border-radius: var(--r-md);
  padding: 18px 24px;
  margin-bottom: 20px;
  max-width: 800px;
  margin-inline: auto;
}

.nutrition-alert svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--orange);
  margin-top: 2px;
}

.nutrition-alert p {
  font-size: 0.9rem;
  color: var(--text-body);
  margin: 0;
}


/* ==============================================
   32. WCS Logo (partnership sections)
   ============================================== */

.wcs-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  flex-shrink: 0;
  text-align: center;
}

.wcs-logo {
  width: 200px;
  height: auto;
  display: block;
}

.wcs-logo-sq {
  width: 140px;
  height: 140px;
  object-fit: contain;
  display: block;
}

.wcs-partner-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}


/* ==============================================
   33. About — What Makes Us Special
   ============================================== */

.about-specials-section { background: var(--bg-page); }

.specials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.special-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 24px;
}

.special-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: oklch(from var(--sic, #0064af) l c h / 0.1);
}
@supports not (background: oklch(from red l c h / 0.1)) {
  .special-icon { background: var(--primary-bg); }
}

.special-icon svg {
  width: 22px; height: 22px;
  stroke: var(--sic, var(--primary));
}

.special-item h4 { color: var(--text-dark); margin: 0; }
.special-item p  { font-size: 0.9rem; color: var(--text-muted); margin: 0; }


/* ==============================================
   34. About — Mission & Purpose
   ============================================== */

.about-mission-section {
  background: #fff;
}

.mission-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: start;
}

.mission-content h2 { margin-bottom: 20px; }
.mission-content p {
  color: var(--text-body);
  margin-bottom: 16px;
}
.mission-content p:last-child { margin-bottom: 0; }

.mission-logos {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 56px; /* align with text below heading */
  flex-shrink: 0;
}

.mission-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
}

.mission-logo-img {
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.mission-logo-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

a.mission-logo-card {
  text-decoration: none;
  transition: box-shadow var(--ease), transform var(--ease);
}
a.mission-logo-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}


/* ==============================================
   35. About — Philosophy
   ============================================== */

.about-philosophy-section { background: var(--bg-page); }

.philosophy-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.philosophy-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.phil-card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--phc, var(--primary));
}

.philosophy-card h3 {
  color: var(--text-dark);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.philosophy-card p {
  color: var(--text-body);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.7;
}


/* ==============================================
   36. About — Staff
   ============================================== */

.about-staff-section { background: #fff; }

.staff-layout {
  max-width: 100%;
}

.staff-header { margin-bottom: 24px; }
.staff-header h2 { margin-bottom: 0; }

.staff-body {
  display: flex;
  align-items: center;
  gap: 48px;
}

.staff-text p {
  color: var(--text-body);
  margin-bottom: 16px;
}
.staff-text p:last-child { margin-bottom: 0; }

.staff-logo-wrap {
  flex-shrink: 0;
}

.staff-logo {
  width: 280px;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .staff-body { flex-direction: column; gap: 24px; }
  .staff-logo { width: 220px; }
}


/* ==============================================
   37. Programs — Intro & Philosophy
   ============================================== */

.prog-intro-section {
  background: var(--bg-page);
  padding: 56px 0 0;
}

.prog-intro-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.prog-philosophy-section {
  background: var(--bg-page);
  padding: 48px 0 56px;
}

.prog-philosophy-layout {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 36px 40px;
}

.cc-logo {
  width: 220px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: var(--r-sm);
}

.prog-philosophy-text .section-label { margin-bottom: 12px; }
.prog-philosophy-text p {
  color: var(--text-body);
  margin: 0;
  line-height: 1.75;
}

/* ── Video trigger card ── */
.video-trigger {
  display: flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  margin: 28px auto 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 20px 10px 10px;
  cursor: pointer;
  text-align: left;
  transition: box-shadow var(--ease), transform var(--ease);
}

.video-trigger:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.video-trigger-thumb {
  position: relative;
  width: 120px;
  height: 68px;
  border-radius: var(--r-sm);
  background-color: #1a1a2e;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  overflow: hidden;
}

.video-trigger-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}

.video-trigger-play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-trigger-play svg {
  width: 22px; height: 22px;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.video-trigger-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.video-trigger-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.video-trigger-sub {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

/* ── Video modal ── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal[hidden] { display: none; }

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
}

.video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #000;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.video-modal-close:hover { opacity: 1; }
.video-modal-close svg { width: 28px; height: 28px; }

.video-modal-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.prog-structure-section { background: var(--bg-page); }

.prog-structure-section .section-header p {
  color: var(--text-body);
  max-width: 640px;
  margin-inline: auto;
}

.prog-structure-section .domains-grid {
  margin-bottom: 0;
}

.domains-note {
  max-width: 720px;
  margin: 40px auto 0;
  text-align: center;
  color: var(--text-body);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .prog-philosophy-layout { flex-direction: column; gap: 24px; text-align: center; padding: 28px 24px; }
  .cc-logo { width: 180px; }
}


/* ==============================================
   38. Page hero button
   ============================================== */

.page-hero-btn {
  margin-top: 28px;
  display: inline-flex;
}


/* ==============================================
   33. Two-column philosophy text
   ============================================== */

.philosophy-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.philosophy-two-col p {
  color: var(--text-body);
  margin-bottom: 16px;
}

.philosophy-two-col p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .philosophy-two-col { grid-template-columns: 1fr; gap: 0; }
  .wcs-logo { width: 160px; }
}


/* ==============================================
   34. Scroll-reveal animations
   ============================================== */

.reveal {
  --reveal-delay: 0ms;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease-out var(--reveal-delay),
              transform 0.55s ease-out var(--reveal-delay);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  --reveal-delay: 0ms;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.6s ease-out var(--reveal-delay),
              transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) var(--reveal-delay);
}
.reveal-scale.in-view {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal:not(.in-view),
  .reveal-scale:not(.in-view) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ==============================================
   39. Enrollment Page
   ============================================== */

/* Quick facts bar */
.enroll-facts-bar {
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.enroll-facts-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.enroll-fact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 24px;
  border-right: 1px solid var(--border);
}

.enroll-fact:last-child { border-right: none; }

.enroll-fact svg {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--primary);
  margin-top: 2px;
}

.enroll-fact strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.enroll-fact span,
.enroll-fact a {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
}

.enroll-fact a:hover { color: var(--primary); }

/* Enrollment type cards */
.enroll-types-section { background: var(--bg-page); }

.enroll-type-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Enrollment option rows */
.enroll-option-rows {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.enroll-option-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 28px 32px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.enroll-option-row--next {
  background: var(--bg-page);
}

.enroll-year-divider {
  background: var(--primary);
  color: rgba(255,255,255,0.9);
  text-align: center;
  padding: 8px 24px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.enroll-option-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--eoi-bg, var(--primary-bg));
  color: var(--eoi-color, var(--primary));
}

.enroll-option-icon svg { width: 22px; height: 22px; }

.enroll-option-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.enroll-option-badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: var(--r-full);
  background: var(--bg-page);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.enroll-option-body p {
  color: var(--text-body);
  font-size: 0.925rem;
  margin-bottom: 6px;
}

.enroll-option-body p:last-child { margin-bottom: 0; }

.enroll-option-note {
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
}

.enroll-info-pill {
  font-size: 0.875rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  margin-top: 12px;
  line-height: 1.55;
}

.enroll-priority-list {
  margin: 6px 0 0 0;
  padding-left: 16px;
  list-style: disc;
}
.enroll-priority-list li {
  margin-bottom: 3px;
  font-size: inherit;
}

.enroll-priority-callout {
  font-size: 0.875rem;
  color: var(--text-muted);
  background: #fff;
  border-radius: var(--r-sm);
  padding: 8px 14px;
  margin-top: 10px;
  border: 1px solid var(--border);
  line-height: 1.55;
}

.enroll-option-row--next .enroll-priority-callout {
  background: rgba(255,255,255,0.7);
}

.enroll-option-action {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  align-items: stretch;
  width: 240px;
}
.enroll-option-action .btn {
  justify-content: center;
}

.enroll-type-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--card-color, var(--primary));
  display: flex;
  flex-direction: column;
}

.enroll-type-num {
  font-family: 'Nunito', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--card-color, var(--primary));
  opacity: 0.12;
  margin-bottom: 12px;
}

.enroll-type-card h3 { margin-bottom: 14px; }

.enroll-type-card p { color: var(--text-body); }

.enroll-type-list {
  margin: 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.enroll-type-list li {
  font-size: 0.925rem;
  color: var(--text-body);
  padding-left: 18px;
  position: relative;
}

.enroll-type-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--card-color, var(--primary));
  font-weight: 700;
}

.enroll-type-note {
  font-size: 0.875rem !important;
  color: var(--text-muted) !important;
}

.enroll-fee-badge {
  display: inline-block;
  background: #fff7ed;
  color: #c2690a;
  border: 1px solid #fed7aa;
  border-radius: var(--r-full);
  font-size: 0.825rem;
  font-weight: 600;
  padding: 4px 14px;
  margin: 4px 0 14px;
}

.enroll-card-btn {
  margin-top: auto;
  padding-top: 16px;
  align-self: flex-start;
}

/* Meet & Greet */
.meetgreet-section {
  padding: 88px 0;
}

.meetgreet-box {
  background: var(--primary-bg);
  border-radius: var(--r-md);
  padding: 40px 48px;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  border-left: 5px solid var(--primary);
}

.meetgreet-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.meetgreet-icon svg { width: 24px; height: 24px; }

.meetgreet-body h3 { margin-bottom: 12px; }
.meetgreet-body p { color: var(--text-body); }

/* Program rows */
.enroll-programs-section { background: var(--bg-page); }

.enroll-program-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.enroll-program-row {
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 6px 1fr auto;
  align-items: center;
  gap: 0 32px;
  overflow: hidden;
}

.enroll-program-color {
  background: var(--epc, var(--primary));
  align-self: stretch;
}

.enroll-program-info {
  padding: 28px 0;
}

.enroll-program-info h3 { margin-bottom: 8px; }
.enroll-program-info p { color: var(--text-body); margin: 0; }

.enroll-program-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 28px 28px 0;
  flex-shrink: 0;
}

.enroll-program-tag {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 14px;
  white-space: nowrap;
  text-align: center;
}

.enroll-programs-link {
  text-align: center;
}

/* Responsive — enrollment */
@media (max-width: 900px) {
  .enroll-facts-inner { grid-template-columns: repeat(2, 1fr); }
  .enroll-fact:nth-child(2) { border-right: none; }
  .enroll-fact:nth-child(3),
  .enroll-fact:nth-child(4) { border-top: 1px solid var(--border); }
  .enroll-type-cards { grid-template-columns: 1fr; }
  .enroll-option-row { grid-template-columns: 1fr; gap: 16px; }
  .enroll-option-icon { display: none; }
  .enroll-option-action { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .enroll-program-row { grid-template-columns: 6px 1fr; }
  .enroll-program-meta { display: none; }
}

@media (max-width: 640px) {
  .enroll-facts-inner { grid-template-columns: 1fr; }
  .enroll-fact { border-right: none; border-top: 1px solid var(--border); }
  .enroll-fact:first-child { border-top: none; }
  .meetgreet-box { flex-direction: column; gap: 16px; padding: 28px 24px; }
}


/* Enrollment admin toggle bar (only visible in admin mode) */
.enroll-admin-bar {
  display: none;
  background: #fffbeb;
  border-bottom: 2px solid #ffd200;
}
.admin-mode .enroll-admin-bar {
  display: block;
}
.enroll-admin-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px 0;
}
.enroll-admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}
.enroll-admin-row + .enroll-admin-row {
  border-top: 1px solid #f3d768;
}
.enroll-admin-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}
.enroll-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
}
.enroll-status-dot--closed {
  background: #dc2626;
}
.enroll-status-btn {
  padding: 8px 20px;
  border-radius: var(--r-full);
  border: 2px solid #dc2626;
  background: transparent;
  color: #dc2626;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.enroll-status-btn:hover {
  background: #dc2626;
  color: #fff;
}
.enroll-status-btn--open {
  border-color: #16a34a;
  color: #16a34a;
}
.enroll-status-btn--open:hover {
  background: #16a34a;
  color: #fff;
}
.enroll-status-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Enrollment closed row state — toggled via .enroll-row-closed / .enroll-rows-closed */
.enroll-row-closed .enroll-option-action,
.enroll-rows-closed .enroll-option-action {
  display: none;
}

/* Inline closed notice inside a single row (current year) */
.enroll-row-closed-notice {
  display: none;
  margin-top: 10px;
  padding: 10px 80px 10px 14px; /* right pad leaves room for Edit button */
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  color: #92400e;
  line-height: 1.5;
}
.enroll-row-closed-notice a {
  color: #92400e;
  font-weight: 600;
  text-decoration: underline;
}
.enroll-row-closed .enroll-row-closed-notice,
.admin-mode .enroll-row-closed-notice {
  display: block;
}
/* Dimmed preview when enrollment is actually open */
.admin-mode .enroll-row-closed-notice {
  opacity: 0.55;
}
.admin-mode .enroll-row-closed .enroll-row-closed-notice {
  opacity: 1;
}

/* Banner notice spanning the next-year rows */
.enroll-next-closed-notice {
  display: none;
  padding: 14px 90px 14px 32px; /* right pad leaves room for Edit button */
  background: #fff7ed;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: #92400e;
  line-height: 1.55;
}
.enroll-next-closed-notice a {
  color: #92400e;
  font-weight: 600;
  text-decoration: underline;
}
.enroll-rows-closed .enroll-next-closed-notice,
.admin-mode .enroll-next-closed-notice {
  display: block;
}
/* Dimmed preview when enrollment is actually open */
.admin-mode .enroll-next-closed-notice {
  opacity: 0.55;
}
.admin-mode .enroll-rows-closed .enroll-next-closed-notice {
  opacity: 1;
}

@media (max-width: 640px) {
  .enroll-admin-bar-inner { gap: 10px; }
  .enroll-next-closed-notice { padding: 12px 20px; }
}

/* ==============================================
   40. Billing Page
   ============================================== */

/* Highlight cards */
.billing-highlights-section { background: var(--bg-page); }

.billing-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.billing-highlight-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bh-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--ic-bg, var(--primary-bg));
  color: var(--ic-color, var(--primary));
}

.bh-icon svg { width: 24px; height: 24px; }

.bh-value {
  font-family: 'Nunito', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 10px;
}

.billing-highlight-card h4 { margin-bottom: 10px; }
.billing-highlight-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
.bh-small-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.bh-small-link:hover { text-decoration: underline; }

.billing-discount-list {
  margin: 6px 0 0 0;
  padding-left: 0;
  list-style: none;
}
.billing-discount-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

/* Billing schedule table */
.billing-schedule-section { padding-bottom: 40px; }

.billing-table-wrap {
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

.billing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.billing-table th,
.billing-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.billing-table thead th {
  background: var(--primary);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.billing-table tbody tr:last-child td { border-bottom: none; }
.billing-table tbody tr:hover { background: var(--primary-bg); }

.billing-schedule-note {
  text-align: center;
  font-size: 0.925rem;
  color: var(--text-muted);
  margin: 0;
}

.billing-schedule-note a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

.billing-te-cta {
  text-align: center;
  margin-top: 20px;
}

/* Policy cards */
.billing-policies-section { background: var(--bg-page); }

.billing-policy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.billing-policy-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.billing-policy-accent {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--bpc, var(--primary));
}

.billing-policy-card h3 { margin-bottom: 14px; }
.billing-policy-card p { color: var(--text-body); font-size: 0.95rem; }

.billing-policy-fee {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  background: var(--bg-page);
  border-radius: var(--r-sm);
  padding: 6px 16px;
  margin: 8px 0 16px;
}

/* Billing contact */
.billing-contact-section { }

.billing-contact-box {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 48px 40px;
  text-align: center;
}

.billing-contact-icon {
  width: 64px; height: 64px;
  background: var(--primary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary);
}

.billing-contact-icon svg { width: 28px; height: 28px; }

.billing-contact-box .section-label { margin-bottom: 16px; }

.bc-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.bc-role {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.billing-contact-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


.bf-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.bf-column-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  letter-spacing: -0.01em;
}

.bf-add-btn {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #ffd200;
  color: #1a1a2e;
  border: none;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.admin-mode .bf-add-btn { display: inline-flex; }
.bf-add-btn:hover { opacity: 0.85; }

.bf-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bf-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  transition: background 0.15s;
  position: relative;
  cursor: pointer;
}
.bf-item:hover { background: var(--bg-page); }

.bf-item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--primary-bg, #e8f3fb);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary, #0064af);
  margin-top: 1px;
}
.bf-item-icon svg { width: 17px; height: 17px; }

.bf-item-body {
  flex: 1;
  min-width: 0;
}

.bf-item-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary, #0064af);
  text-decoration: none;
  line-height: 1.35;
  transition: color 0.15s;
}
.bf-item-name::after {
  content: '';
  position: absolute;
  inset: 0;
}
.bf-item:hover .bf-item-name { color: var(--primary-dark, #004f8a); text-decoration: underline; }

.bf-item-desc {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.bf-item-controls {
  display: none;
  flex-shrink: 0;
  gap: 4px;
  align-items: center;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}
.admin-mode .bf-item-controls { display: flex; }

.bf-edit-btn,
.bf-delete-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.bf-edit-btn:hover { background: #fffbe6; border-color: #ffd200; color: #1a1a1a; }
.bf-delete-btn:hover { background: #fff0f0; border-color: #fed7d7; color: #c53030; }

/* Policies page — Parent Handbook featured section */
.pf-handbook-section {
  background: var(--primary-bg, #e8f3fb);
}

.pf-handbook-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.pf-handbook-icon {
  width: 80px;
  height: 80px;
  background: var(--primary, #0064af);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  color: #fff;
}

.pf-handbook-title {
  font-family: 'Nunito', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 14px;
  letter-spacing: -0.025em;
}

.pf-handbook-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.7;
  margin: 0 0 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.pf-handbook-desc p {
  margin: 0 0 1em;
}
.pf-handbook-desc p:last-child {
  margin-bottom: 0;
}

.pf-handbook-btn {
  font-size: 1rem;
  padding: 14px 32px;
}

.pf-handbook-admin {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.pf-handbook-admin .bf-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  height: auto;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
}

/* Policies page — full-width section layout */
.pf-section {
  background: #fff;
}
.pf-section--alt {
  background: var(--bg-page);
}

.pf-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.pf-section-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
  letter-spacing: -0.02em;
}

.pf-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 48px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 640px) {
  .pf-items-grid { grid-template-columns: 1fr; gap: 2px; }
  .pf-section-title { font-size: 1.2rem; }
}

/* Responsive — billing */
@media (max-width: 900px) {
  .billing-highlights-grid { grid-template-columns: 1fr; gap: 16px; }
  .billing-policy-cards { grid-template-columns: 1fr; }
  .billing-table th:nth-child(3),
  .billing-table th:nth-child(4),
  .billing-table td:nth-child(3),
  .billing-table td:nth-child(4) { display: none; }
}

@media (max-width: 640px) {
  .billing-contact-box { padding: 36px 24px; }
}


/* ==============================================
   41. News page
   ============================================== */

/* ── Calendar of Closures ── */
.closures-section {
  padding: 72px 0 64px;
  background: var(--bg-page);
}

.closures-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.closures-year-label {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--r-full);
  margin-bottom: 16px;
}

.closures-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.closures-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 32px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.closures-row dt {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
  padding-top: 1px;
}
.closures-row dd {
  margin: 0;
  font-size: 0.925rem;
  color: var(--text-body);
  line-height: 1.85;
}

/* Admin editing state */
.closures-row--edit {
  grid-template-columns: 160px 1fr auto;
}
.closures-row--edit dt[contenteditable],
.closures-row--edit dd[contenteditable] {
  outline: none;
  border-radius: 3px;
  min-width: 40px;
  cursor: text;
}
.closures-row--edit dt[contenteditable]:focus,
.closures-row--edit dd[contenteditable]:focus {
  outline: 2px dashed #ffd200;
  background: rgba(255,210,0,0.08);
  padding: 2px 4px;
}
.closures-row--edit dt[contenteditable]:empty::before,
.closures-row--edit dd[contenteditable]:empty::before {
  content: attr(data-placeholder);
  color: #bbb;
  pointer-events: none;
  font-weight: 400;
}
.closures-delete-btn {
  align-self: center;
  width: 28px;
  height: 28px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.closures-delete-btn:hover { border-color: #e84393; color: #e84393; }
.closures-add-btn {
  align-items: center;
  gap: 6px;
  background: #ffd200;
  color: #1a1a1a;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  padding: 7px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  margin-top: 16px;
}
.closures-add-btn:not([hidden]) { display: inline-flex; }
.closures-add-btn:hover { background: #e6bd00; }
.closures-add-btn svg { width: 14px; height: 14px; }

/* ── Policies & Forms / Food Menu ───────────────────────────── */
.doc-section {
  padding: 72px 0 88px;
  background: #fff;
}
.doc-section--alt { background: var(--bg-page); }

.doc-list {
  margin-top: 40px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.doc-row {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 24px 36px 24px 28px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  box-sizing: border-box;
}
.doc-row:last-child { border-bottom: none; }
.doc-section--alt .doc-row:nth-child(even) { background: var(--bg-page); }
.doc-row-body { flex: 1; }
.doc-row-title {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.doc-row-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}
.doc-row-btn { flex-shrink: 0; white-space: nowrap; }

.food-menu-admin-bar:not([hidden]) {
  display: flex;
}
.food-menu-admin-bar {
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  background: #fffbe6;
  border: 1px solid #ffd200;
  border-radius: var(--r-sm);
  margin-bottom: 24px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}

.food-menu-placeholder {
  text-align: center;
  padding: 72px 32px;
  background: #fff;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  color: var(--text-body);
}
.food-menu-placeholder p { margin: 0; font-size: 1.05rem; font-weight: 600; }
.food-menu-placeholder-sub {
  margin-top: 8px !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  color: var(--text-muted) !important;
}

.food-menu-content { margin-top: 40px; }

.food-menu-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.food-menu-week {
  font-family: 'Nunito', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
}

.food-menu-table-scroll {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.food-menu-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: #fff;
}
.food-menu-table thead th {
  background: var(--primary);
  color: #fff;
  padding: 12px 14px;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.food-menu-table thead th:last-child { border-right: none; }
.food-menu-table thead th.fmt-label-col {
  background: var(--primary-dark);
  width: 88px;
  min-width: 88px;
}
.fmt-day {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.85;
}
.fmt-date {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 2px;
}

.food-menu-table tbody td {
  padding: 14px 16px;
  vertical-align: top;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-body);
  border: 1px solid var(--border);
}
.fmt-label {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  vertical-align: middle !important;
  width: 88px;
  min-width: 88px;
}
.fmt-label--breakfast { background: #fff7ed; color: #7c3700; }
.fmt-label--lunch     { background: #e8f3fb; color: var(--primary-dark); }
.fmt-label--snack     { background: #f0fbe8; color: #3a6b10; }

.food-menu-table tbody tr:nth-child(even) td:not(.fmt-label) { background: var(--bg-page); }

.food-menu-legend {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.food-menu-cell-editing {
  outline: 2px dashed #ffd200;
  border-radius: 2px;
  min-height: 1.2em;
  cursor: text;
}

/* ── Food menu print view ────────────────────────────────────── */
@media print {
  .site-header, #notif-bar, #notif-admin-bar,
  .page-hero, .section-header,
  #food-menu-admin-bar, .food-menu-placeholder,
  #food-menu-print-btn, .admin-edit-trigger,
  footer { display: none !important; }

  body { background: #fff; }
  .doc-section { padding: 12px 0; }
  .food-menu-content { margin-top: 0; }
  .food-menu-table-scroll { overflow: visible; }
  .food-menu-table { width: 100%; border-collapse: collapse; }
  .food-menu-table th, .food-menu-table td { border: 1px solid #ccc; }
}

/* ── Careers ─────────────────────────────────────────────────── */
.careers-section {
  padding: 72px 0 88px;
  background: var(--bg-page);
}
.careers-empty {
  max-width: 480px;
  margin: 40px auto 0;
  text-align: center;
  padding: 40px 0 8px;
}
.careers-empty p {
  color: var(--text-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 10px;
}
.careers-empty a {
  color: var(--primary);
  font-weight: 600;
}
.careers-empty--preview { opacity: 0.45; }
.careers-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.career-card-wrap { position: relative; }
.career-card {
  background: #fff;
  padding: 32px 40px 32px 32px;
  border-bottom: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 48px;
  box-sizing: border-box;
}
.career-card-wrap:last-child .career-card { border-bottom: none; }
.career-card-wrap:nth-child(even) .career-card { background: var(--bg-page); }
.career-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.career-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
  letter-spacing: -0.01em;
}
.career-desc {
  color: var(--text-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
}
.career-apply-btn { flex-shrink: 0; white-space: nowrap; }
.career-admin-controls {
  display: none;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
body.admin-mode .career-admin-controls { display: flex; }
.career-edit-btn,
.career-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.career-edit-btn { background: #ffd200; color: #1a1a2e; }
.career-edit-btn:hover { background: #e6bd00; }
.career-delete-btn { background: #fee2e2; color: #dc2626; }
.career-delete-btn:hover { background: #fecaca; }
.careers-add-btn {
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 10px 22px;
  background: #ffd200;
  color: #1a1a2e;
  border: none;
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.careers-add-btn:not([hidden]) { display: inline-flex; }
.careers-add-btn:hover { background: #e6bd00; }

.news-section {
  padding: 72px 0 88px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--ease), transform var(--ease);
}
.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.news-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}
.news-meta-sep { color: var(--border); }

.news-card-category {
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--r-full);
}

.news-card-meta time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.news-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.news-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.news-card-link:hover { text-decoration: underline; }

/* ── Admin news edit button ── */
.news-admin-edit-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  z-index: 2;
}
.news-admin-edit-btn svg { width: 13px; height: 13px; }

.news-card { position: relative; }

/* ── News grid footer ── */
.news-grid-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.news-older-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.news-older-btn:hover { color: var(--primary-dark, #004f8c); }

.news-create-btn {
  align-items: center;
  gap: 6px;
  background: #ffd200;
  color: #1a1a1a;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  padding: 7px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.news-create-btn:not([hidden]) { display: inline-flex; }
.news-create-btn:hover { background: #e6bd00; }
.news-create-btn svg { width: 15px; height: 15px; }

/* ── News modals (lightbox / view-all / form) ── */
body.news-modal-open { overflow: hidden; }

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.news-modal:not([hidden]) { display: flex; }

@keyframes nl-backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes nl-modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes nl-sheet-in {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.news-modal:not([hidden]) .news-modal-backdrop {
  animation: nl-backdrop-in 0.22s ease forwards;
}
.news-modal:not([hidden]) .news-modal-inner {
  animation: nl-modal-in 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@media (max-width: 600px) {
  .news-modal:not([hidden]) .news-modal-inner {
    animation: nl-sheet-in 0.32s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  }
}

.news-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.news-modal-inner {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  padding: 40px 44px;
  max-height: 88vh;
  overflow-y: auto;
  width: 100%;
}

.news-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.news-modal-close:hover { color: var(--text-dark); }

/* Lightbox */
.nl-inner {
  max-width: 680px;
  height: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}
.nl-header {
  flex-shrink: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.nl-date {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
  margin-bottom: 4px;
}
.nl-title {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 0;
}
.nl-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
}
.nl-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-dark);
}
.nl-body p { margin-bottom: 1em; }
.nl-body p:last-child { margin-bottom: 0; }
.nl-footer {
  flex-shrink: 0;
  height: 58px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.nl-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  width: 100%;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.nl-links::-webkit-scrollbar { height: 3px; }
.nl-links::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
.nl-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 5px 14px;
  font-size: 0.78rem;
  border-width: 1.5px;
}
.nl-link svg { width: 12px; height: 12px; flex-shrink: 0; }

/* View all (older) modal */
.na-inner { max-width: 640px; }
.na-heading {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 24px;
}
.na-list { display: flex; flex-direction: column; gap: 24px; }
.na-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}
.na-item:last-child { border-bottom: none; padding-bottom: 0; }
.na-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 6px 0 6px;
}
.na-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Admin form modal */
.news-form-modal .news-modal-inner { max-width: 700px; }
.nf-inner {
  max-width: 700px;
  height: 680px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}
.nf-heading {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 24px;
  padding-right: 36px;
}
.nf-fields { display: flex; flex-direction: column; gap: 16px; overflow-y: auto; flex: 1; padding-bottom: 4px; }
.nf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nf-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
}
.nf-hint { font-weight: 400; color: var(--text-muted); }
.nf-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 400;
  color: var(--text-dark);
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.nf-input:focus {
  outline: none;
  border-color: var(--primary);
}
textarea.nf-input { resize: none; }
.nf-input[contenteditable] {
  height: 180px;
  overflow-y: auto;
  resize: none;
  line-height: 1.65;
}
.nf-input[contenteditable]:empty::before {
  content: attr(data-placeholder);
  color: #aaa;
  pointer-events: none;
}
.nf-body-toolbar {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}
.nf-fmt-btn {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  padding: 3px 9px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  color: var(--text-dark);
}
.nf-fmt-btn:hover { background: var(--bg-page); }
.nf-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  margin-top: 0;
  padding: 20px 0 24px;
  border-top: 1px solid var(--border);
}
.nf-actions-right { display: flex; gap: 10px; }
.nf-delete-btn {
  background: none;
  border: 1px solid #e84393;
  color: #e84393;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
}
.nf-delete-btn:hover { background: #fde8f4; }
.nf-cancel-text-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
}
.nf-cancel-text-btn:hover { background: var(--bg-page); }
.nf-save-btn {
  background: var(--primary);
  border: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
}
.nf-save-btn:hover { opacity: 0.88; }

/* Link rows in the form */
.nf-links-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.nf-link-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.nf-lr-top {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nf-lr-drag {
  flex-shrink: 0;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: grab;
  opacity: 0.6;
}
.nf-lr-drag:active { cursor: grabbing; }
.nf-lr-drag svg { width: 14px; height: 14px; }
.nf-link-row--dragging { opacity: 0.45; outline: 2px dashed var(--primary); outline-offset: 2px; }
.nf-lr-top .nf-input { flex: 1; min-width: 0; }
.nf-lr-url-wrap {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nf-lr-url-wrap .nf-input { flex: 1; min-width: 0; }
.nf-lr-upload-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nf-lr-upload-btn:hover { border-color: var(--primary); color: var(--primary); }
.nf-lr-upload-btn svg { width: 14px; height: 14px; }
.nf-link-remove {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nf-link-remove:hover { border-color: #e84393; color: #e84393; }
.nf-add-link-btn {
  background: none;
  border: 1.5px dashed var(--border);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.nf-add-link-btn:hover { border-color: var(--primary); background: var(--primary-bg, #e8f3fb); }

@media (max-width: 600px) {
  .news-modal-inner { padding: 28px 20px; }
  .nf-row { grid-template-columns: 1fr; }
  .nf-link-row { grid-template-columns: 1fr auto; }
  .nf-link-row .nf-lr-url { grid-column: 1; }
}

@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ==============================================
   Admin editing mode
   ============================================== */

/* ── Footer toggle button ── */
.admin-toggle-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.35);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-top: 8px;
}
.admin-toggle-btn:hover {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.4);
}
.admin-mode .admin-toggle-btn {
  color: #ffd200;
  border-color: rgba(255,210,0,0.5);
}

/* Header exit button — only visible in admin mode */
.admin-header-exit-btn {
  display: none;
  flex-shrink: 0;
}
.admin-mode .admin-header-exit-btn {
  display: flex;
  align-items: center;
  background: #ffd200;
  color: #1a1a1a;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background 0.2s;
}
.admin-mode .admin-header-exit-btn:hover {
  background: #f0c800;
}

/* ── Alert / Notification Bar ── */
#notif-bar {
  position: sticky;
  top: 0;
  z-index: 201;
  background: #f59e0b;
  color: #1a1a2e;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}
#notif-bar[hidden] { display: none; }
.notif-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto;
}
.notif-bar-inner svg {
  flex-shrink: 0;
}
/* In admin mode the bar sits below the fixed admin banner */
.admin-mode #notif-bar {
  top: 34px;
}

/* ── Alert Admin Control Bar ── */
#notif-admin-bar {
  display: none;
  background: #fffbeb;
  border-bottom: 2px solid #ffd200;
  padding-top: 34px; /* clear the fixed admin banner when at top of page */
}
.admin-mode #notif-admin-bar {
  display: block;
}
.notif-admin-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.notif-admin-view,
.notif-admin-edit {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  flex-wrap: wrap;
}
.notif-admin-edit[hidden] { display: none; }
.notif-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dc2626;
  flex-shrink: 0;
}
.notif-status-dot--on {
  background: #16a34a;
}
.notif-status-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}
.notif-admin-preview {
  font-size: 0.85rem;
  color: #6b7280;
  font-style: italic;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notif-admin-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.notif-admin-btn {
  padding: 6px 14px;
  border-radius: var(--r-full);
  border: 2px solid #d1b800;
  background: transparent;
  color: #1a1a2e;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.notif-admin-btn:hover {
  background: #ffd200;
  border-color: #ffd200;
}
.notif-admin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.notif-toggle-btn--on {
  border-color: #dc2626;
  color: #dc2626;
}
.notif-toggle-btn--on:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
.notif-admin-input {
  flex: 1;
  min-width: 220px;
  padding: 7px 12px;
  border: 1.5px solid #ffd200;
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.notif-admin-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.2);
}
.notif-admin-btn--save {
  background: #ffd200;
  border-color: #ffd200;
}
.notif-admin-btn--save:hover {
  background: #f5c800;
  border-color: #f5c800;
}
.notif-admin-btn--edit {
  margin-left: auto;
}

/* ── Admin mode banner ── */
.admin-mode::before {
  content: 'Admin Mode — click the pencil icon next to any section to edit it';
  display: block;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: #1a1a2e;
  color: #ffd200;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: 0.03em;
}
.admin-mode .site-header { top: calc(34px + var(--notif-h)); }
.admin-mode .prog-jump-nav { top: calc(106px + var(--notif-h)); }

/* ── Group containers ── */
.admin-mode [data-egroup] {
  position: relative;
}

/* ── Edit trigger button ── */
.admin-edit-trigger {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  align-items: center;
  gap: 6px;
  background: #ffd200;
  color: #1a1a1a;
  border: none;
  border-radius: 6px;
  padding: 6px 12px 6px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: background 0.15s, transform 0.15s;
}
.admin-edit-trigger svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
}
.admin-edit-trigger:hover {
  background: #e6bd00;
  transform: translateY(-1px);
}
.admin-mode .admin-edit-trigger {
  display: inline-flex;
}
.admin-editing-active .admin-edit-trigger {
  display: none;
}

/* ── Editable element highlight ── */
/* Force font so paste can't introduce external fonts or sizes */
.admin-editing,
.admin-editing * {
  font-family: inherit !important;
  font-size: inherit !important;
}

/* Buttons that become editable need dark text so it reads on yellow tint */
.btn.admin-editing {
  background: #fffbe6 !important;
  border-color: #ffd200 !important;
  color: #1a1a1a !important;
  box-shadow: none !important;
}

.admin-editing {
  outline: 2px dashed #ffd200 !important;
  outline-offset: 3px;
  border-radius: 3px;
  background: rgba(255,210,0,0.08) !important;
  cursor: text;
  min-height: 1em;
}

/* ── Button URL input (injected during btn-type editing) ── */
.admin-url-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  padding: 8px 10px;
  background: #fffbe6;
  border: 1px solid #ffd200;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}
.admin-url-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7a6000;
}
.admin-url-input {
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  border: 1px solid #e0c800;
  border-radius: 4px;
  padding: 5px 8px;
  background: #fff;
  color: var(--text-body);
  width: 100%;
  box-sizing: border-box;
  outline: none;
}
.admin-url-input:focus {
  border-color: #ffd200;
  box-shadow: 0 0 0 2px rgba(255,210,0,0.3);
}

/* ── Save / Cancel bar ── */
.admin-action-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.admin-bar-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-bar-sep {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  margin: 2px 2px;
}
.admin-bar-format { display: flex; gap: 2px; }
.admin-fmt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: none;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  color: var(--text-dark);
  transition: background 0.1s, border-color 0.1s;
}
.admin-fmt-btn:hover {
  background: var(--bg-page);
  border-color: var(--border);
}
.admin-fmt-btn[data-cmd="bold"]      { font-weight: 700; }
.admin-fmt-btn[data-cmd="italic"]    { font-style: italic; }
.admin-fmt-btn[data-cmd="underline"] { text-decoration: underline; }

.admin-bar-btns { display: flex; gap: 6px; }

.admin-unlink-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: none;
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s;
}
.admin-unlink-btn:hover {
  background: #fff0f0;
  border-color: #fed7d7;
}
.admin-unlink-btn[hidden] { display: none; }

[data-eid-format="rich"] a { text-decoration: underline; }

body.admin-editing-active [data-eid] a[contenteditable="false"] {
  cursor: pointer;
  border-radius: 2px;
  outline: 1px dashed rgba(255, 210, 0, 0.7);
}
body.admin-editing-active [data-eid] a.admin-link-selected {
  outline: 2px solid #ffd200;
  background: rgba(255, 210, 0, 0.15);
}

.admin-link-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.admin-link-row[hidden] { display: none; }
.admin-link-text-input {
  height: 28px;
  width: 130px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  outline: none;
}
.admin-link-text-input:focus { border-color: var(--primary); }
.admin-link-input {
  height: 28px;
  width: 200px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  outline: none;
}
.admin-link-input:focus { border-color: var(--primary); }
.admin-link-apply-btn,
.admin-link-cancel-btn {
  height: 28px;
  border: none;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.admin-link-apply-btn {
  padding: 0 10px;
  background: var(--primary);
  color: #fff;
}
.admin-link-cancel-btn {
  padding: 0 8px;
  background: var(--bg-page);
  color: var(--text-dark);
  border: 1px solid var(--border);
}

.admin-save-btn,
.admin-cancel-btn {
  border: none;
  border-radius: 5px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.admin-save-btn {
  background: var(--primary);
  color: #fff;
}
.admin-cancel-btn {
  background: var(--bg-page);
  color: var(--text-dark);
  border: 1px solid var(--border);
}
.admin-save-btn:hover,
.admin-cancel-btn:hover { opacity: 0.85; }

/* ── Program Feature List editor ── */
.pfl-edit-btn {
  display: none;
  margin-top: 10px;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: #ffd200;
  color: #1a1a2e;
  border: none;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: opacity 0.15s;
}
body.admin-mode .pfl-edit-btn { display: inline-flex; }
body.admin-mode .pfl-edit-btn:hover { opacity: 0.85; }
body.admin-editing-active .pfl-edit-btn { display: none !important; }

.pfl-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-top: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  min-width: 260px;
}
.pfl-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.pfl-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pfl-row-input {
  flex: 1;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  outline: none;
}
.pfl-row-input:focus { border-color: #ffd200; box-shadow: 0 0 0 2px rgba(255,210,0,0.25); }
.pfl-row-remove {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  background: none;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
}
.pfl-row-remove:hover { background: #fff0f0; border-color: #fed7d7; color: #c53030; }
.pfl-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.pfl-add-btn {
  height: 28px;
  padding: 0 10px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  cursor: pointer;
  transition: opacity 0.15s;
}
.pfl-add-btn:hover { opacity: 0.8; }
.pfl-btn-group { display: flex; gap: 6px; }
.pfl-save-btn,
.pfl-cancel-btn {
  height: 28px;
  border: none;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: opacity 0.15s;
}
.pfl-save-btn { background: var(--primary); color: #fff; }
.pfl-cancel-btn {
  background: var(--bg-page);
  color: var(--text-dark);
  border: 1px solid var(--border);
}
.pfl-save-btn:hover,
.pfl-cancel-btn:hover { opacity: 0.85; }
.pfl-save-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Toast ── */
.admin-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #1a1a2e;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 99px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 9999;
}
.admin-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ==============================================
   42. Mobile — Comprehensive Enhancements
   ============================================== */

/* ── Tighter container on small phones ── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

/* ── Section & header spacing ── */
@media (max-width: 768px) {
  .section-header { margin-bottom: 40px; }
}
@media (max-width: 480px) {
  section { padding: 40px 0; }
  .section-header { margin-bottom: 28px; }
  h3 { font-size: 1.15rem; }
  h4 { font-size: 0.975rem; }
}

/* ── Page hero (sub-pages) ── */
@media (max-width: 768px) {
  .page-hero { padding: 48px 0 56px; }
  .page-hero > .container > p { font-size: 1rem; }
}
@media (max-width: 480px) {
  .page-hero { padding: 36px 0 44px; }
}

/* ── Homepage hero ── */
@media (max-width: 480px) {
  .hero-inner { padding-top: 36px; padding-bottom: 48px; }
  .hero-graphic { width: 200px; height: 200px; }
  .hero-logo-wrap img { width: 126px; height: 126px; }
  .info-bar { padding: 16px 0; }
  .info-item { padding: 16px 20px; }
}

/* ── Partnership card ── */
@media (max-width: 480px) {
  .partnership-card { padding: 24px 20px; gap: 24px; }
}

/* ── Programs page ── */
@media (max-width: 480px) {
  .prog-philosophy-layout { padding: 20px 16px; gap: 16px; }
  .prog-jump-nav a { padding: 10px 11px; font-size: 0.75rem; }
  /* Shrink collage on small phones */
  .prog-collage { width: 260px; height: 278px; }
  .collage-circle { width: 195px; height: 195px; }
  .collage-circle svg { width: 70px; height: 70px; }
  .collage-a { width: 138px; height: 176px; left: -10px; }
  .collage-b { width: 114px; height: 98px; }
  .collage-c { width: 98px; height: 76px; bottom: 10px; }
}

/* ── Enroll page ── */
@media (max-width: 900px) {
  /* Remove fixed width so action buttons fill the row naturally */
  .enroll-option-action { width: auto; }
}
@media (max-width: 640px) {
  .enroll-option-action { width: 100%; justify-content: center; }
  .meetgreet-box { padding: 20px 16px; }
}
@media (max-width: 480px) {
  .enroll-type-card { padding: 28px 20px; }
}

/* ── Billing page ── */
@media (max-width: 640px) {
  /* Allow table to scroll rather than clip if needed */
  .billing-table-wrap { overflow: auto; }
  .billing-table th,
  .billing-table td { padding: 12px 14px; font-size: 0.875rem; }
  .billing-contact-box { padding: 28px 20px; }
}
@media (max-width: 480px) {
  .billing-highlight-card { padding: 28px 20px; }
  .billing-policy-card { padding: 36px 20px; }
}

/* ── Calendar of closures ── */
@media (max-width: 480px) {
  .closures-row { grid-template-columns: 110px 1fr; gap: 0 12px; }
  .closures-row dt { font-size: 0.85rem; }
  .closures-row dd { font-size: 0.875rem; }
}

/* ── News modals — bottom-sheet on mobile ── */
@media (max-width: 600px) {
  .news-modal { padding: 0; align-items: flex-end; }
  .news-modal-inner {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    width: 100%;
    max-width: 100%;
  }
  .nl-inner {
    height: 88vh;
    max-height: 88vh;
    border-radius: 20px 20px 0 0;
  }
  .nf-inner {
    height: 88vh;
    max-height: 88vh;
    border-radius: 20px 20px 0 0;
  }
  .na-inner { border-radius: 20px 20px 0 0; }
}

/* ── Photo editing overlay ── */
.admin-photo-wrap {
  overflow: hidden; /* clips img to the inherited border-radius */
}
.admin-photo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-photo-btn {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  z-index: 20;
  transition: background 0.15s;
}
.admin-photo-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
body.admin-mode .admin-photo-wrap:hover .admin-photo-btn {
  display: flex;
}
body.admin-mode .admin-photo-wrap:hover .admin-photo-btn:hover {
  background: rgba(0, 0, 0, 0.68);
}
.admin-photo-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: admin-spin 0.7s linear infinite;
}
@keyframes admin-spin {
  to { transform: rotate(360deg); }
}

/* ── Admin — desktop-only on mobile ── */
@media (max-width: 768px) {
  /* Admin button stays visible so users see it; JS handles the desktop-only message */
  .admin-toggle-btn {
    opacity: 0.5;
    pointer-events: auto;
  }
  /* Hide edit triggers, action bar, and photo buttons — JS won't show them, but belt-and-suspenders */
  .admin-mode::before { display: none; }
  .admin-mode .admin-edit-trigger { display: none !important; }
  .admin-action-bar { display: none !important; }
  .admin-mode .admin-photo-btn { display: none !important; }
  .admin-mode #notif-admin-bar { display: none; }
}


/* ==============================================
   Address Popup
   ============================================== */

/* Clickable address elements */
[data-addr] {
  cursor: pointer;
  text-decoration: none;
}
.admin-mode [data-addr] {
  cursor: text;
  text-decoration: none;
}

/* Desktop popup */
.addr-popup {
  position: fixed;
  z-index: 1200;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  min-width: 210px;
  animation: addr-popup-in 0.14s ease;
}
@keyframes addr-popup-in {
  from { opacity: 0; transform: translateY(5px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.addr-popup-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background 0.12s;
  white-space: nowrap;
}
.addr-popup-btn:hover { background: var(--bg-page); }
.addr-popup-btn + .addr-popup-btn { border-top: 1px solid var(--border); }
.addr-popup-btn svg { flex-shrink: 0; color: var(--text-muted); }

/* Mobile backdrop */
.addr-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1199;
  background: rgba(0,0,0,0.45);
  animation: addr-backdrop-in 0.2s ease;
}
@keyframes addr-backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Mobile bottom sheet */
@media (max-width: 600px) {
  .addr-popup {
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    border-radius: 18px 18px 0 0;
    min-width: unset;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    animation: addr-sheet-in 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  }
  @keyframes addr-sheet-in {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
  .addr-popup-btn {
    padding: 18px 24px;
    font-size: 1rem;
  }
}

/* ==============================================
   43. Mobile — About Page & Hero Animation Fixes
   ============================================== */

/* ── Hero: scale geo blobs proportionally with the smaller graphic ── */
/* Desktop baseline: 420px container. Scale = container ÷ 420        */
@media (max-width: 1024px) { /* 300px container, scale ≈ 0.71 */
  .geo-1 { width: 70px;  height: 70px;  top: -8px;  right: 42px; }
  .geo-2 { width: 50px;  height: 50px;  bottom: 34px; left: 12px; }
  .geo-3 { width: 36px;  height: 36px;  top: 52px;  left: 16px;  }
  .geo-4 { width: 62px;  height: 62px;  bottom: 20px; right: 20px; }
}
@media (max-width: 768px) { /* 240px container, scale ≈ 0.57 */
  .geo-1 { width: 56px;  height: 56px;  top: -6px;  right: 34px; }
  .geo-2 { width: 40px;  height: 40px;  bottom: 28px; left: 10px; }
  .geo-3 { width: 30px;  height: 30px;  top: 42px;  left: 14px;  }
  .geo-4 { width: 50px;  height: 50px;  bottom: 16px; right: 16px; }
}
@media (max-width: 480px) { /* 200px container, scale ≈ 0.48 */
  .geo-1 { width: 48px;  height: 48px;  top: -6px;  right: 28px; }
  .geo-2 { width: 34px;  height: 34px;  bottom: 22px; left: 8px;  }
  .geo-3 { width: 24px;  height: 24px;  top: 34px;  left: 11px;  }
  .geo-4 { width: 42px;  height: 42px;  bottom: 14px; right: 14px; }
}

/* ── Hero: on mobile use scale-only entrance so blobs don't fly
      in from outside the hero section's overflow:hidden boundary ── */
@media (max-width: 768px) {
  @keyframes geo-1-enter {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 0.35; }
  }
  @keyframes geo-2-enter {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 0.4; }
  }
  @keyframes geo-3-enter {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 0.3; }
  }
  @keyframes geo-4-enter {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 0.45; }
  }
}

/* ── Homepage — Facilities grid: keep 2×3 on mobile ── */
@media (max-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .feature-item { align-items: center; text-align: center; }
  /* Pairs in same row animate simultaneously */
  .features-grid > :nth-child(1),
  .features-grid > :nth-child(2) { transition-delay: 0ms; }
  .features-grid > :nth-child(3),
  .features-grid > :nth-child(4) { transition-delay: 80ms; }
  .features-grid > :nth-child(5),
  .features-grid > :nth-child(6) { transition-delay: 160ms; }
}

/* ── Footer: consolidated mobile layout ── */
@media (max-width: 768px) {
  .site-footer { padding: 40px 0 24px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    padding-bottom: 32px;
    margin-bottom: 20px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-brand p { max-width: 100%; margin-bottom: 12px; }
  .footer-col:not([data-egroup]) { display: none; } /* hide Quick Links */
}

/* ── About — What Makes Us Special: grouped list on mobile ── */
@media (max-width: 768px) {
  .specials-grid {
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    background: #fff;
  }
  .special-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 3px;
    padding: 14px 18px;
    background: #fff;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .special-item:last-child { border-bottom: none; }
  .special-icon {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    width: 36px; height: 36px;
    border-radius: 8px;
  }
  .special-icon svg { width: 17px; height: 17px; }
  .special-item h4 { grid-column: 2; grid-row: 1; font-size: 0.9rem; margin: 0; align-self: center; }
  .special-item p  { grid-column: 2; grid-row: 2; font-size: 0.8rem; margin: 0; align-self: start; }
}

/* ── About — Mission & Purpose: logos below text, full-width, stacked ── */
@media (max-width: 768px) {
  .mission-layout { grid-template-columns: 1fr; }
  .mission-logos { flex-direction: column; align-items: stretch; padding-top: 0; }
  .mission-logo-card { padding: 16px 20px; }
  .about-mission-section .container { padding-left: 28px; padding-right: 28px; }
}

/* ── About — Philosophy: 1×4 single column + side padding ── */
@media (max-width: 768px) {
  .philosophy-cards { grid-template-columns: 1fr; }
  .about-philosophy-section .container { padding-left: 28px; padding-right: 28px; }
}
@media (max-width: 480px) {
  .philosophy-card { padding: 24px 20px; }
}

/* ── About — Staff: side padding ── */
@media (max-width: 768px) {
  .about-staff-section .container { padding-left: 28px; padding-right: 28px; }
}

/* ── Programs — Program Structure: keep 2×3 on mobile ── */
@media (max-width: 768px) {
  .domains-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 162px; gap: 12px; }
  /* Pairs in same row animate simultaneously */
  .domains-grid > :nth-child(1),
  .domains-grid > :nth-child(2) { transition-delay: 0ms; }
  .domains-grid > :nth-child(3),
  .domains-grid > :nth-child(4) { transition-delay: 80ms; }
  .domains-grid > :nth-child(5),
  .domains-grid > :nth-child(6) { transition-delay: 160ms; }
  .domain-card { padding: 20px 14px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 0; }
  .domain-icon { width: 44px; height: 44px; flex-shrink: 0; margin-bottom: 0; }
  .domain-icon svg { width: 22px; height: 22px; }
  .domain-card h3 { margin-top: auto; margin-bottom: 10px; font-size: 0.875rem; line-height: 1.35; min-height: calc(0.875rem * 1.35 * 2); display: flex; align-items: center; justify-content: center; }
  .domain-highlight-label { margin-top: auto; margin-bottom: auto; font-size: 0.55rem; letter-spacing: 0.04em; white-space: nowrap; }
  .domain-highlight h3 { margin-top: 0; }
}

/* ── Programs — Fun in the Son circle + icon ── */
@media (max-width: 768px) {
  .prog-circle { width: 200px; height: 200px; gap: 10px; }
  .prog-circle svg { width: 56px; height: 56px; }
}

/* ── Programs — Collage/visual always above content when stacked ── */
@media (max-width: 1024px) {
  .prog-visual { order: 1; }
  .prog-content { order: 2; }
}

/* ── Nav dropdown — mobile (inline accordion) ── */
@media (max-width: 768px) {
  .nav-dropdown-wrap.open .nav-dropdown-btn.active {
    background: none;
    color: var(--text-body);
  }
  .nav-dropdown-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    justify-content: center;
    border-radius: var(--r-sm);
  }
  .nav-dropdown-panel {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    min-width: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-dropdown-wrap.open .nav-dropdown-panel {
    transform: none;
    pointer-events: auto;
    max-height: 300px;
    transition: max-height 0.25s ease;
  }
  .nav-dropdown-item {
    padding: 10px 16px;
    font-size: 0.95rem;
    white-space: normal;
    text-align: center;
    border-radius: var(--r-sm);
  }
}
