/**
 * DAYBRIGHT — Preschool & Learning Center HTML Template
 * Developed by Nexora Templates
 * "Thoughtful websites for growing ideas."
 * 
 * Design System & Main Stylesheet
 * ----------------------------------------------------
 * Color Palette:
 * - Forest Ink:   #293C34 (Primary text, deep framing, grounding dark accents)
 * - Warm Paper:   #F8F5ED (Primary page background)
 * - Butter Yellow: #E9C875 (Warm accent, highlights, sunny badges)
 * - Soft Clay:    #D98570 (Earthy terracotta, warm badges, secondary accent)
 * - Sage:         #A6B49D (Muted natural green, botanical touches)
 * - Sky Blue:     #A9C6CE (Soft airy blue, gentle contrasting tone)
 * 
 * Typography:
 * - Fraunces: Display & editorial headings
 * - DM Sans: Body text, UI, navigation, buttons
 */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================================================== */
:root {
  /* Brand Color Tokens */
  --color-forest: #293C34;
  --color-forest-dark: #1C2B25;
  --color-forest-light: #3D554B;
  --color-forest-tint: rgba(41, 60, 52, 0.07);
  --color-forest-subtle: rgba(41, 60, 52, 0.04);
  
  --color-paper: #F8F5ED;
  --color-paper-light: #FCFBF7;
  --color-paper-card: #F2EDE2;
  --color-paper-dark: #E7E0D0;
  
  --color-butter: #E9C875;
  --color-butter-light: #F7E9C4;
  --color-butter-dark: #C9A74E;
  --color-butter-tint: rgba(233, 200, 117, 0.22);
  
  --color-clay: #D98570;
  --color-clay-light: #EBB5A7;
  --color-clay-dark: #B96652;
  --color-clay-tint: rgba(217, 133, 112, 0.16);
  
  --color-sage: #A6B49D;
  --color-sage-light: #CED8C7;
  --color-sage-dark: #7F8F75;
  --color-sage-tint: rgba(166, 180, 157, 0.22);
  
  --color-sky: #A9C6CE;
  --color-sky-light: #D4E5EB;
  --color-sky-dark: #7F9FA8;
  --color-sky-tint: rgba(169, 198, 206, 0.22);

  --color-white: #FFFFFF;
  --color-border: rgba(41, 60, 52, 0.14);
  --color-border-subtle: rgba(41, 60, 52, 0.08);

  /* Typography Tokens */
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Font Weights */
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Spacing Scale (8pt system with editorial rhythm) */
  --space-2xs: 0.25rem;  /* 4px */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 0.75rem;   /* 12px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4.5rem;   /* 72px */
  --space-4xl: 6rem;     /* 96px */

  /* Border Radius System */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-arch: 180px 180px 24px 24px;
  --radius-organic-1: 32px 12px 32px 12px;
  --radius-organic-2: 12px 32px 12px 32px;
  --radius-pill: 9999px;

  /* Elevation & Shadows */
  --shadow-subtle: 0 2px 8px rgba(41, 60, 52, 0.04);
  --shadow-soft: 0 10px 30px rgba(41, 60, 52, 0.07);
  --shadow-card: 0 16px 40px rgba(41, 60, 52, 0.08);
  --shadow-elevated: 0 24px 50px rgba(41, 60, 52, 0.12);

  /* Transition Tokens */
  --transition-fast: 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. GLOBAL BASE & RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-forest);
  background-color: var(--color-paper);
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

main,
section,
footer {
  overflow-x: clip;
}

/* Accessible Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-forest);
  color: var(--color-paper);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  font-weight: var(--fw-semibold);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--color-butter);
}

/* Selection */
::selection {
  background-color: var(--color-butter);
  color: var(--color-forest);
}

/* ==========================================================================
   3. EDITORIAL TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.font-serif {
  font-family: var(--font-serif);
  color: var(--color-forest);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1, .display-1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h2, .display-2 {
  font-size: clamp(2rem, 4vw, 3.125rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h3, .display-3 {
  font-size: clamp(1.5rem, 2.75vw, 2.125rem);
  font-weight: 500;
  line-height: 1.24;
}

h4 {
  font-size: 1.35rem;
  line-height: 1.35;
}

h5 {
  font-size: 1.15rem;
  line-height: 1.4;
}

h6 {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
}

p.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.7;
  color: rgba(41, 60, 52, 0.88);
  font-weight: 400;
}

.font-italic-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.editorial-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-forest);
  margin-bottom: 0.875rem;
}

.editorial-eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 2px;
  background-color: var(--color-clay);
  border-radius: 1px;
}

/* ==========================================================================
   4. BUTTONS & INTERACTIVE ELEMENTS
   ========================================================================== */
.btn-db {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.01em;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-db svg {
  transition: transform var(--transition-fast);
}

.btn-db:hover svg {
  transform: translateX(3px);
}

/* Primary Forest Button */
.btn-db-forest {
  background-color: var(--color-forest);
  color: var(--color-paper-light);
  border-color: var(--color-forest);
}

.btn-db-forest:hover {
  background-color: var(--color-forest-dark);
  color: var(--color-butter);
  border-color: var(--color-forest-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(41, 60, 52, 0.18);
}

/* Clay Button */
.btn-db-clay {
  background-color: var(--color-clay);
  color: var(--color-white);
  border-color: var(--color-clay);
}

.btn-db-clay:hover {
  background-color: var(--color-clay-dark);
  color: var(--color-white);
  border-color: var(--color-clay-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 133, 112, 0.28);
}

/* Outline Forest */
.btn-db-outline {
  background-color: transparent;
  color: var(--color-forest);
  border-color: var(--color-forest);
}

.btn-db-outline:hover {
  background-color: var(--color-forest);
  color: var(--color-paper-light);
  transform: translateY(-2px);
}

/* Butter Accent Button */
.btn-db-butter {
  background-color: var(--color-butter);
  color: var(--color-forest);
  border-color: var(--color-butter);
}

.btn-db-butter:hover {
  background-color: #dfbc62;
  color: var(--color-forest);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 200, 117, 0.35);
}

/* Ghost Button */
.btn-db-ghost {
  background-color: transparent;
  color: var(--color-forest);
  padding: 0.85rem 1rem;
}

.btn-db-ghost:hover {
  color: var(--color-clay);
}

.btn-db-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.84rem;
}

.btn-db-lg {
  padding: 1.05rem 2.25rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   5. BADGES, PILLS & ORGANIC ACCENTS
   ========================================================================== */
.badge-db {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-sans);
  font-size: 0.775rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.badge-db-clay {
  background-color: var(--color-clay-tint);
  color: var(--color-clay-dark);
  border: 1px solid rgba(217, 133, 112, 0.3);
}

.badge-db-butter {
  background-color: var(--color-butter-tint);
  color: #8c6e1e;
  border: 1px solid rgba(233, 200, 117, 0.5);
}

.badge-db-sage {
  background-color: var(--color-sage-tint);
  color: #4f6346;
  border: 1px solid rgba(166, 180, 157, 0.4);
}

.badge-db-sky {
  background-color: var(--color-sky-tint);
  color: #4a7480;
  border: 1px solid rgba(169, 198, 206, 0.45);
}

.badge-db-forest {
  background-color: var(--color-forest-tint);
  color: var(--color-forest);
  border: 1px solid rgba(41, 60, 52, 0.18);
}

.badge-notice {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-butter);
  color: var(--color-forest);
  flex-shrink: 0;
}

/* Rotating Vintage Montessori Stamp Badge */
.stamp-seal {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-butter);
  border: 2px dashed var(--color-forest);
  border-radius: 50%;
  padding: 0;
  box-shadow: 0 10px 25px rgba(41, 60, 52, 0.12);
  user-select: none;
  box-sizing: border-box;
}

.stamp-seal .rotating-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: rotateSeal 24s linear infinite;
  transform-origin: 50% 50%;
  pointer-events: none;
}

@keyframes rotateSeal {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.stamp-seal .stamp-center {
  width: 52px;
  height: 52px;
  background-color: var(--color-paper-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-forest);
  box-shadow: inset 0 0 6px rgba(41, 60, 52, 0.1);
  z-index: 2;
  position: relative;
}

/* ==========================================================================
   6. HEADER & NAVIGATION
   ========================================================================== */
.top-notice-bar {
  background-color: var(--color-forest);
  color: var(--color-paper);
  font-size: 0.8125rem;
  padding: 0.55rem 1rem;
  letter-spacing: 0.02em;
  transition: all var(--transition-base);
}

.top-notice-bar a {
  color: var(--color-butter);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: var(--fw-semibold);
}

.top-notice-bar a:hover {
  color: var(--color-white);
}

.btn-close-notice,
.notice-close-btn {
  background: transparent;
  border: 1px solid rgba(248, 245, 237, 0.3);
  color: var(--color-paper);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  transition: all var(--transition-fast);
  opacity: 0.85;
}

.btn-close-notice:hover,
.notice-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  opacity: 1;
  transform: rotate(90deg);
}

/* ==========================================================================
   COLOR UTILITIES (OVERRIDE HEADINGS & FONT-SERIF DEFAULT DARK TONES)
   ========================================================================== */
.text-butter {
  color: var(--color-butter) !important;
}

.text-clay {
  color: var(--color-clay) !important;
}

.text-sage {
  color: var(--color-sage) !important;
}

.text-forest {
  color: var(--color-forest) !important;
}

.text-sky {
  color: var(--color-sky) !important;
}

.text-paper {
  color: var(--color-paper) !important;
}

.py-6 {
  padding-top: clamp(3.5rem, 6.5vw, 5.5rem) !important;
  padding-bottom: clamp(3.5rem, 6.5vw, 5.5rem) !important;
}

.mb-6 {
  margin-bottom: clamp(2.5rem, 5vw, 4rem) !important;
}

.max-w-700 {
  max-width: 700px;
}

.border-white-10 {
  border-color: rgba(255, 255, 255, 0.14) !important;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background-color: rgba(248, 245, 237, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: padding var(--transition-base), background-color var(--transition-base), box-shadow var(--transition-base);
  padding: 1.15rem 0;
}

.site-header.scrolled {
  padding: 0.75rem 0;
  box-shadow: var(--shadow-subtle);
  background-color: rgba(248, 245, 237, 0.98);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-forest);
}

.brand-symbol {
  width: 42px;
  height: 42px;
  background-color: var(--color-forest);
  color: var(--color-butter);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.brand-logo:hover .brand-symbol {
  transform: rotate(6deg) scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--color-forest);
}

.brand-subtitle {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-clay);
  margin-top: 3px;
}

/* Navigation Links */
.nav-link-db {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: var(--fw-medium);
  color: var(--color-forest);
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  position: relative;
  transition: color var(--transition-fast);
  border-radius: var(--radius-sm);
}

.nav-link-db:hover,
.nav-link-db.active {
  color: var(--color-clay);
}

.nav-link-db::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background-color: var(--color-clay);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
}

.nav-link-db:hover::after,
.nav-link-db.active::after {
  transform: scaleX(1);
}

/* Dropdown Menu */
.dropdown-menu-db {
  background-color: var(--color-paper-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 0.75rem;
  min-width: 240px;
  margin-top: 0.5rem;
}

.dropdown-item-db {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--color-forest);
  font-size: 0.88rem;
  font-weight: var(--fw-medium);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.dropdown-item-db:hover {
  background-color: var(--color-forest-tint);
  color: var(--color-forest);
  transform: translateX(4px);
}

.dropdown-item-db .item-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Mobile Offcanvas Drawer */
.offcanvas-db {
  background-color: var(--color-paper);
  border-left: 1px solid var(--color-border);
  width: 320px;
}

.offcanvas-db .btn-close {
  opacity: 0.8;
  filter: invert(20%) sepia(10%) saturate(1000%) hue-rotate(100deg);
}

/* ==========================================================================
   7. HERO SECTION (EDITORIAL ASYMMETRICAL LAYOUT)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  background-color: var(--color-paper);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-visual-grid {
  position: relative;
  min-height: 480px;
}

/* Main Arched Frame */
.arch-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-arch);
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-card);
}

.arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth);
}

.arch-frame:hover img {
  transform: scale(1.03);
}

.hero-main-image {
  width: 82%;
  height: 480px;
  margin-left: auto;
}

/* Overlapping Secondary Card */
.hero-secondary-badge {
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 220px;
  height: 250px;
  border-radius: var(--radius-organic-1);
  overflow: hidden;
  border: 4px solid var(--color-paper);
  box-shadow: var(--shadow-elevated);
  z-index: 3;
}

.hero-secondary-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Live Admissions Floating Card */
.hero-floating-notice {
  position: absolute;
  top: 30px;
  left: -20px;
  background-color: var(--color-paper-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-soft);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 260px;
}

.notice-pulse {
  width: 12px;
  height: 12px;
  background-color: #27ae60;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.notice-pulse::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(39, 174, 96, 0.4);
  animation: pulseGreen 2s infinite ease-out;
}

@keyframes pulseGreen {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero-seal-position {
  position: absolute;
  bottom: 30px;
  right: -25px;
  z-index: 5;
}

/* Organic Floral & Sun SVG Accents */
.hero-sun-accent {
  position: absolute;
  top: -30px;
  right: 15%;
  opacity: 0.85;
  pointer-events: none;
}

/* ==========================================================================
   8. TRUST STRIP & PILLARS
   ========================================================================== */
.trust-strip {
  background-color: var(--color-paper-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.75rem 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-forest);
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
}

.trust-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-forest);
  flex-shrink: 0;
}

/* ==========================================================================
   9. EDITORIAL PHILOSOPHY ("THE DAYLIGHT APPROACH")
   ========================================================================== */
.philosophy-section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  position: relative;
  background-color: var(--color-paper);
}

.editorial-quote-card {
  background-color: var(--color-paper-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.quote-ornament {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  color: var(--color-butter);
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  opacity: 0.7;
}

.pillars-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.pillars-grid > .pillar-card {
  flex: 1 1 calc(25% - 1.5rem);
  min-width: 240px;
}

.pillar-card {
  padding: 1.75rem;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  height: 100%;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.pillar-num {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-style: italic;
  color: var(--color-clay);
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   10. PROGRAMS SECTION (DISTINCTIVE CARDS, NOT GENERIC SAAS)
   ========================================================================== */
.programs-section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  background-color: var(--color-paper-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.program-card {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-forest);
}

.program-image-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.program-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.program-card:hover .program-image-wrapper img {
  transform: scale(1.05);
}

.program-badge-floating {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.program-badge-floating .badge-db {
  background-color: var(--color-white);
  box-shadow: 0 4px 12px rgba(41, 60, 52, 0.14);
}

.program-badge-floating .badge-db-clay {
  color: var(--color-clay-dark);
  border-color: var(--color-clay-light);
}

.program-badge-floating .badge-db-butter {
  color: #8c6e1e;
  border-color: var(--color-butter);
}

.program-badge-floating .badge-db-sage {
  color: #4f6346;
  border-color: var(--color-sage);
}

.program-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: rgba(41, 60, 52, 0.75);
}

.program-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.program-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   11. "A DAY AT DAYBRIGHT" INTERACTIVE TIMELINE
   ========================================================================== */
.schedule-section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  background-color: var(--color-paper);
}

.schedule-tabs-nav {
  display: inline-flex;
  background-color: var(--color-paper-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.35rem;
  gap: 0.35rem;
}

.schedule-tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: var(--fw-semibold);
  color: var(--color-forest);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.schedule-tab-btn.active {
  background-color: var(--color-forest);
  color: var(--color-paper-light);
  box-shadow: 0 4px 12px rgba(41, 60, 52, 0.15);
}

.timeline-container {
  position: relative;
  margin-top: 3rem;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 2px;
  background-color: var(--color-border);
}

@media (min-width: 768px) {
  .timeline-line {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 2.25rem;
}

.timeline-dot {
  position: absolute;
  left: 20px;
  top: 24px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--color-butter);
  border: 3px solid var(--color-forest);
  z-index: 2;
}

@media (min-width: 768px) {
  .timeline-dot {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-card {
  background-color: var(--color-paper-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-left: 60px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
  .timeline-item:nth-child(odd) .timeline-card {
    margin-left: 0;
    margin-right: calc(50% + 40px);
    text-align: right;
  }
  .timeline-item:nth-child(even) .timeline-card {
    margin-left: calc(50% + 40px);
    margin-right: 0;
    text-align: left;
  }
}

.timeline-time {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-clay);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   12. CAMPUS SPACES & THE ATELIER
   ========================================================================== */
.campus-section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  background-color: var(--color-paper-light);
  border-top: 1px solid var(--color-border);
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 360px;
  width: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(41, 60, 52, 0.75) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--color-white);
}

.gallery-span-7 {
  width: 100%;
}

.gallery-span-5 {
  width: 100%;
}

@media (min-width: 768px) {
  .gallery-span-7 {
    flex: 7 1 calc(58.333% - 1.5rem);
    width: auto;
    height: 380px;
  }
  .gallery-span-5 {
    flex: 5 1 calc(41.666% - 1.5rem);
    width: auto;
    height: 380px;
  }
}

/* ==========================================================================
   13. TESTIMONIALS & PARENT STORIES
   ========================================================================== */
.testimonial-section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  background-color: var(--color-forest);
  color: var(--color-paper);
  position: relative;
  overflow: hidden;
}

.testimonial-card-dark {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3.25rem);
  backdrop-filter: blur(8px);
}

.parent-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--color-butter);
  object-fit: cover;
}

.stars-rating {
  color: var(--color-butter);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

/* ==========================================================================
   14. FAQ ACCORDION (WARM & ACCESSIBLE)
   ========================================================================== */
.faq-section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  background-color: var(--color-paper);
}

.accordion-db .accordion-item {
  background-color: var(--color-paper-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md) !important;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.accordion-db .accordion-item:hover {
  border-color: var(--color-forest);
}

.accordion-db .accordion-button {
  background-color: var(--color-paper-light);
  color: var(--color-forest);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  padding: 1.25rem 1.5rem;
  box-shadow: none !important;
}

.accordion-db .accordion-button:not(.collapsed) {
  background-color: var(--color-forest-tint);
  color: var(--color-forest-dark);
}

.accordion-db .accordion-button::after {
  filter: invert(20%) sepia(10%) saturate(1000%) hue-rotate(100deg);
}

.accordion-db .accordion-body {
  padding: 1.25rem 1.5rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(41, 60, 52, 0.85);
}

/* ==========================================================================
   15. LEAD CAPTURE & WALKTHROUGH BOOKING
   ========================================================================== */
.booking-section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  background-color: var(--color-paper-card);
  position: relative;
}

.booking-card {
  background-color: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-card);
}

.form-label-db {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  color: var(--color-forest);
  margin-bottom: 0.45rem;
}

.form-control-db,
.form-select-db {
  background-color: var(--color-paper-light);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-forest);
  transition: all var(--transition-fast);
}

.form-control-db:focus,
.form-select-db:focus {
  background-color: var(--color-white);
  border-color: var(--color-forest);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-forest-tint);
}

.form-control-db.is-invalid,
.form-select-db.is-invalid {
  border-color: #d9534f;
  background-color: #fff9f9;
}

.invalid-feedback-db {
  display: none;
  color: #d9534f;
  font-size: 0.8125rem;
  margin-top: 0.35rem;
  font-weight: var(--fw-medium);
}

.is-invalid ~ .invalid-feedback-db {
  display: block;
}

/* ==========================================================================
   16. EDITORIAL JOURNAL PREVIEW
   ========================================================================== */
.journal-preview-section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  background-color: var(--color-paper);
}

.journal-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.journal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--color-clay);
}

.journal-thumb {
  height: 200px;
  overflow: hidden;
}

.journal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.journal-card:hover .journal-thumb img {
  transform: scale(1.05);
}

.journal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.journal-meta {
  font-size: 0.8125rem;
  color: rgba(41, 60, 52, 0.65);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   17. EDITORIAL FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--color-forest);
  color: var(--color-paper);
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 2rem;
  position: relative;
  border-top: 1px solid var(--color-border);
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--color-paper-light);
  margin-bottom: 0.25rem;
}

.footer-brand-tagline {
  color: var(--color-butter);
  font-size: 0.875rem;
  font-style: italic;
  font-family: var(--font-serif);
  margin-bottom: 1.25rem;
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-butter);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--color-clay);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: rgba(248, 245, 237, 0.78);
  text-decoration: none;
  font-size: 0.9125rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-links a:hover {
  color: var(--color-butter);
  transform: translateX(3px);
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: rgba(248, 245, 237, 0.6);
}

.footer-bottom > div:last-child {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.25rem !important;
}

.footer-bottom a {
  color: rgba(248, 245, 237, 0.75);
  text-decoration: underline;
  display: inline-block;
}

.footer-bottom a:hover {
  color: var(--color-butter);
}

/* ==========================================================================
   18. TOAST NOTIFICATIONS & MODALS
   ========================================================================== */
.toast-db {
  background-color: var(--color-forest);
  color: var(--color-paper-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--color-butter);
}

.toast-db .toast-header {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-butter);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-content-db {
  background-color: var(--color-paper-light);
  border: 1.5px solid var(--color-forest);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.modal-header-db {
  background-color: var(--color-forest);
  color: var(--color-paper-light);
  padding: 1.5rem 2rem;
}

.modal-header-db .btn-close {
  filter: invert(1);
}

/* ==========================================================================
   19. RESPONSIVE UTILITIES & FINE TUNING
   ========================================================================== */
@media (max-width: 991.98px) {
  .hero-visual-grid {
    margin-top: 3rem;
  }
  .hero-main-image {
    width: 90%;
    height: 380px;
  }
  .hero-secondary-badge {
    width: 170px;
    height: 200px;
  }
}

@media (max-width: 575.98px) {
  .hero-main-image {
    width: 100%;
    height: 320px;
  }
  .hero-secondary-badge {
    display: none;
  }
  .hero-floating-notice {
    left: 12px;
    top: 14px;
    max-width: calc(100% - 24px);
    padding: 0.75rem 1rem;
  }
  .hero-seal-position {
    right: 8px;
    bottom: -12px;
    transform: scale(0.82);
  }
  .btn-db {
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }
  .btn-db-lg {
    padding: 0.9rem 1.4rem;
    font-size: 0.96rem;
  }
  .schedule-tabs-nav {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: var(--radius-lg);
    width: 100%;
  }
  .schedule-tab-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   20. ANIMATION ENGINE & VITALITY (LIVELY STUDIO INTERACTIONS)
   ========================================================================== */

/* 20.1 Floating Physics */
.floating-slow {
  animation: floatSlow 5s ease-in-out infinite;
}

.floating-gentle {
  animation: floatGentle 6s ease-in-out infinite;
}

.floating-reverse {
  animation: floatReverse 5.5s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes floatGentle {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1.2deg);
  }
}

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(9px);
  }
}

/* 20.2 Infinite Editorial Marquee Ticker */
.editorial-marquee-wrap {
  width: 100%;
  overflow: hidden;
  background-color: var(--color-forest);
  color: var(--color-paper);
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
  user-select: none;
  position: relative;
}

.editorial-marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track {
  display: inline-flex;
  gap: 2.5rem;
  align-items: center;
  animation: marqueeGlide 28s linear infinite;
  will-change: transform;
}

.marquee-content {
  display: inline-flex;
  gap: 2.5rem;
  align-items: center;
}

@keyframes marqueeGlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee-item,
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--color-paper-light);
  text-transform: uppercase;
}

.marquee-item .marquee-bullet,
.ticker-item .ticker-dot {
  color: var(--color-butter);
  font-size: 1rem;
}

/* Alternate Warm Marquee Variant */
.editorial-marquee-warm,
.marquee-warm {
  background-color: var(--color-butter);
  color: var(--color-forest);
  border-color: rgba(41, 60, 52, 0.15);
}

.editorial-marquee-warm .marquee-item,
.marquee-warm .marquee-item,
.marquee-warm .ticker-item {
  color: var(--color-forest);
  font-weight: 600;
}

.editorial-marquee-warm .marquee-bullet,
.marquee-warm .marquee-bullet,
.marquee-warm .ticker-dot {
  color: var(--color-clay);
}

/* 20.3 Progressive Scroll-Driven Reveal System */
.reveal-fade-up,
.reveal-fade-in,
.reveal-scale,
.reveal-fade-right,
.reveal-fade-left {
  opacity: 1;
  transform: none;
}

.js-motion-active .reveal-fade-up:not(.is-revealed) {
  opacity: 0;
  transform: translateY(32px);
}

.js-motion-active .reveal-fade-in:not(.is-revealed) {
  opacity: 0;
}

.js-motion-active .reveal-scale:not(.is-revealed) {
  opacity: 0;
  transform: scale(0.94);
}

.js-motion-active .reveal-fade-right:not(.is-revealed) {
  opacity: 0;
  transform: translateX(-35px);
}

.js-motion-active .reveal-fade-left:not(.is-revealed) {
  opacity: 0;
  transform: translateX(35px);
}

/* Active State Triggered by IntersectionObserver */
.js-motion-active .is-revealed {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stagger Delays for Grid Children */
.stagger-1 { transition-delay: 0.06s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.18s; }
.stagger-4 { transition-delay: 0.24s; }
.stagger-5 { transition-delay: 0.30s; }

/* 20.4 Animated Hand-Drawn Wiggle Underline */
.editorial-underline-wrap {
  position: relative;
  display: inline-block;
}

.editorial-underline-svg {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 9px;
  overflow: visible;
  pointer-events: none;
}

.editorial-underline-svg path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 1s ease-out 0.2s;
}

.is-revealed .editorial-underline-svg path {
  stroke-dashoffset: 0;
}

/* 20.5 Interactive Spring Physics for Cards and Elements */
.program-card {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.3s ease;
}

.program-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px rgba(41, 60, 52, 0.12);
}

.pillar-card {
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(41, 60, 52, 0.1);
}

.journal-card {
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease;
}

.journal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(41, 60, 52, 0.1);
}

/* Interactive Rotating Seal Acceleration on Hover */
.stamp-seal {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stamp-seal:hover {
  transform: scale(1.08) rotate(8deg);
}

.stamp-seal:hover .rotating-text {
  animation-duration: 9s; /* Sped up rotation on hover */
}

/* Animated Pulsing Halo for Badges */
.pulse-halo {
  animation: pulseHalo 2.5s infinite;
}

@keyframes pulseHalo {
  0% {
    box-shadow: 0 0 0 0 rgba(233, 200, 117, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(233, 200, 117, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(233, 200, 117, 0);
  }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  .floating-slow,
  .floating-gentle,
  .floating-reverse,
  .marquee-track,
  .stamp-seal .rotating-text,
  .pulse-halo {
    animation: none !important;
  }

  .reveal-fade-up,
  .reveal-fade-in,
  .reveal-scale,
  .reveal-fade-right,
  .reveal-fade-left {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   21. SUBPAGE EDITORIAL HEADERS & BREADCRUMBS
   ========================================================================== */
.page-hero {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
  background-color: var(--color-paper-light);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.breadcrumb-db {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.84rem;
  color: var(--color-forest-muted);
}

.breadcrumb-db a {
  color: var(--color-forest-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb-db a:hover {
  color: var(--color-clay);
}

.breadcrumb-db .separator {
  opacity: 0.5;
  font-size: 0.75rem;
}

.breadcrumb-db .active-page {
  color: var(--color-clay);
  font-weight: var(--fw-medium);
}

/* ==========================================================================
   22. PROGRAM & TUITION MATRIX COMPONENTS
   ========================================================================== */
.table-db-wrap {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-sm);
}

.table-db {
  width: 100%;
  min-width: 660px;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.table-db th {
  background-color: var(--color-paper-light);
  color: var(--color-forest);
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.table-db td {
  padding: 1.15rem 1.25rem;
  font-size: 0.92rem;
  color: var(--color-forest);
  border-bottom: 1px solid var(--color-border-subtle);
  vertical-align: middle;
}

.table-db tr:last-child td {
  border-bottom: none;
}

.table-db tr:hover td {
  background-color: rgba(248, 245, 237, 0.4);
}

.spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: var(--fw-medium);
}

.spec-box {
  background-color: var(--color-paper-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

/* ==========================================================================
   23. CURRICULUM ALBUM & PILLAR CARDS
   ========================================================================== */
.curriculum-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  height: 100%;
}

.curriculum-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-clay);
}

.curriculum-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   24. FACULTY & EDUCATOR CARDS
   ========================================================================== */
.faculty-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.faculty-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-clay);
}

.faculty-img-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
  background-color: var(--color-forest-tint);
}

.faculty-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.faculty-card:hover .faculty-img-wrap img {
  transform: scale(1.05);
}

.faculty-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Filter Pills */
.filter-pill {
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: var(--fw-medium);
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  color: var(--color-forest);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-block;
}

.filter-pill:hover,
.filter-pill.active {
  background-color: var(--color-forest);
  border-color: var(--color-forest);
  color: var(--color-white);
}

/* ==========================================================================
   25. JOURNAL & EDITORIAL ARTICLE LAYOUT
   ========================================================================== */
.journal-featured-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.journal-featured-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.journal-featured-card img {
  max-width: 100%;
  display: block;
}

.journal-img-wrap {
  height: 220px;
  overflow: hidden;
  background-color: var(--color-forest-tint);
}

.journal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth);
}

.journal-card:hover .journal-img-wrap img {
  transform: scale(1.05);
}

.program-img-wrap {
  overflow: hidden;
  background-color: var(--color-forest-tint);
}

.program-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth);
}

.program-card:hover .program-img-wrap img {
  transform: scale(1.04);
}

.article-prose {
  font-family: var(--font-sans);
  font-size: 1.08rem;
  line-height: 1.85;
  color: rgba(41, 60, 52, 0.9);
}

.article-prose p {
  margin-bottom: 1.6rem;
}

.article-prose h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--color-forest);
  margin-top: 2.75rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.article-prose h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  color: var(--color-forest);
  margin-top: 2.2rem;
  margin-bottom: 1rem;
}

.drop-cap::first-letter {
  font-family: var(--font-serif);
  float: left;
  font-size: 4.2rem;
  line-height: 0.85;
  padding-top: 4px;
  padding-right: 12px;
  padding-bottom: 2px;
  color: var(--color-clay);
  font-style: italic;
  font-weight: 600;
}

.pull-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--color-forest);
  border-left: 3px solid var(--color-clay);
  padding: 1.25rem 0 1.25rem 1.75rem;
  margin: 2.5rem 0;
  background: linear-gradient(to right, rgba(217, 133, 112, 0.06), transparent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-callout {
  background-color: var(--color-paper-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2.25rem 0;
}

.article-author-box {
  background-color: var(--color-paper-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 3.5rem;
}

/* ==========================================================================
   26. CONTACT & VISITATION COMPONENTS
   ========================================================================== */
.contact-info-tile {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.map-card-mockup {
  background-color: var(--color-forest-tint);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   27. FLOATING PROGRESS BACK-TO-TOP BUTTON ($50 PREMIUM SPEC)
   ========================================================================== */
.btn-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: none;
  box-shadow: 0 10px 30px rgba(41, 60, 52, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-forest);
  cursor: pointer;
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.35s ease, box-shadow 0.25s ease;
}

.btn-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.btn-back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 16px 36px rgba(41, 60, 52, 0.22);
  color: var(--color-clay);
}

.btn-back-to-top svg.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.btn-back-to-top .progress-ring-circle {
  stroke: var(--color-clay);
  stroke-width: 2.5;
  stroke-dasharray: 138.2; /* 2 * PI * 22 */
  stroke-dashoffset: 138.2;
  transition: stroke-dashoffset 0.1s linear;
  fill: none;
}

.btn-back-to-top .top-arrow-icon {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.btn-back-to-top:hover .top-arrow-icon {
  transform: translateY(-2px);
}



