*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light;

  /* Color palette - forest greens */
  --forest-900: #1b2b20;
  --forest-800: #223b2a;
  --forest-700: #2a4e34;
  --forest-600: #2d6a3b;

  /* Color palette - leaf greens */
  --leaf-500: #4c8f55;
  --leaf-400: #7ab383;
  --leaf-200: #cce5d1;
  --leaf-100: #e8f4ea;

  /* Color palette - neutrals */
  --stone-100: #f7f5ef;
  --stone-200: #ede9df;
  --stone-300: #e1ddd1;
  --white: #ffffff;

  /* Color palette - grays (for disabled/placeholder states) */
  --gray-100: #f5f5f5;
  --gray-400: #999999;
  --gray-500: #767676;

  /* Color palette - feedback */
  --error-color: #c62828;
  --error-bg: rgba(198, 40, 40, 0.08);

  /* Card backgrounds */
  --card-bg: #f9fbf7;
  --card-bg-alt: #f6faf4;

  /* Spacing scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;

  /* Shadows */
  --shadow-soft: 0 20px 50px rgba(27, 43, 32, 0.12);
  --shadow-medium: 0 12px 24px rgba(27, 43, 32, 0.1);
  --shadow-tight: 0 10px 24px rgba(27, 43, 32, 0.12);
  --shadow-card: 0 8px 20px rgba(27, 43, 32, 0.08);

  /* Focus outline - visible but soft */
  --focus-ring: 0 0 0 3px rgba(76, 143, 85, 0.55);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* Dark mode variables */
html.dark-mode {
  color-scheme: dark;

  /* Inverted forest greens for text */
  --forest-900: #e8f4ea;
  --forest-800: #cce5d1;
  --forest-700: #a8d5af;
  --forest-600: #7ab383;

  /* Leaf greens adjusted for dark */
  --leaf-500: #5a9f63;
  --leaf-400: #4c8f55;
  --leaf-200: #2a4e34;
  --leaf-100: #1b2b20;

  /* Dark neutrals */
  --stone-100: #1a1a1a;
  --stone-200: #252525;
  --stone-300: #333333;
  --white: #121212;

  /* Card backgrounds */
  --card-bg: #1e1e1e;
  --card-bg-alt: #222222;

  /* Grays for dark mode */
  --gray-100: #2a2a2a;
  --gray-400: #888888;
  --gray-500: #a0a0a0;

  /* Error colors for dark mode */
  --error-color: #ef5350;
  --error-bg: rgba(239, 83, 80, 0.15);

  /* Shadows for dark mode */
  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.4);
  --shadow-medium: 0 12px 24px rgba(0, 0, 0, 0.35);
  --shadow-tight: 0 10px 24px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 8px 20px rgba(0, 0, 0, 0.3);

  /* Focus ring for dark mode */
  --focus-ring: 0 0 0 3px rgba(90, 159, 99, 0.6);
}

html.dark-mode body {
  background: radial-gradient(circle at top, #1a1a1a 0%, #121212 45%, #0d0d0d 100%);
}

html.dark-mode .site-header {
  background: rgba(26, 26, 26, 0.95);
  border-bottom: 1px solid rgba(122, 179, 131, 0.15);
}

html.dark-mode ::selection {
  background: var(--leaf-200);
  color: var(--forest-900);
}

html.dark-mode img {
  opacity: 0.92;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  color: var(--forest-900);
  background: radial-gradient(circle at top, #ffffff 0%, var(--stone-100) 45%, #f0f3ec 100%);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Text selection */
::selection {
  background: var(--leaf-200);
  color: var(--forest-900);
}

/* Balanced text wrapping for headings (progressive enhancement) */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/* ========================================
   Skip to Main Content Link (Accessibility)
   ======================================== */

.skip-link {
  position: fixed;
  left: 50%;
  top: 16px;
  transform: translate(-50%, -120%);
  background: linear-gradient(180deg, var(--forest-700) 0%, var(--forest-800) 100%);
  color: var(--white);
  padding: 12px 24px 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow:
    0 8px 24px rgba(27, 43, 32, 0.25),
    0 2px 8px rgba(27, 43, 32, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 9999;
  opacity: 0;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.2s ease;
}

/* Arrow icon */
.skip-link::before {
  content: "";
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cpolyline points='19 12 12 19 5 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  outline: none;
  box-shadow:
    0 8px 24px rgba(27, 43, 32, 0.25),
    0 2px 8px rgba(27, 43, 32, 0.15),
    0 0 0 4px rgba(122, 179, 131, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.skip-link:hover {
  background: linear-gradient(180deg, var(--forest-600) 0%, var(--forest-700) 100%);
  color: var(--white);
  text-decoration: none;
}

.skip-link:active {
  transform: translate(-50%, 2px);
  transition-duration: 0.1s;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 22px;
  display: block;
}

a {
  color: var(--forest-600);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover,
a:focus {
  color: var(--forest-700);
}

/* Explicit underlines for content links (accessibility) */
.page-content a:not(.btn):not(.button):not([class*="card"]):not([class*="nav"]) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.page-content a:not(.btn):not(.button):not([class*="card"]):not([class*="nav"]):hover,
.page-content a:not(.btn):not(.button):not([class*="card"]):not([class*="nav"]):focus {
  text-decoration-thickness: 2px;
}

.text-center {
  text-align: center;
}

.text-reset {
  font-family: inherit;
  letter-spacing: 0;
}

.link-plain {
  letter-spacing: 0;
  background-color: transparent;
}

.paragraph-tight {
  line-height: 1.38;
  margin: 0;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid rgba(34, 59, 42, 0.08);
  box-shadow: 0 12px 24px rgba(27, 43, 32, 0.05);
  backdrop-filter: blur(10px);
}

/* Scroll-driven shadow: faint at top, deepens as the page scrolls.
   Browsers without animation-timeline keep the static shadow above. */
@supports (animation-timeline: scroll()) {
  .site-header {
    box-shadow: 0 4px 10px rgba(27, 43, 32, 0.02);
    border-bottom-color: rgba(34, 59, 42, 0.04);
    animation: header-shadow-rise linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 96px;
  }

  html.dark-mode .site-header {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-bottom-color: rgba(122, 179, 131, 0.10);
    animation-name: header-shadow-rise-dark;
  }

  @keyframes header-shadow-rise {
    from {
      box-shadow: 0 4px 10px rgba(27, 43, 32, 0.02);
      border-bottom-color: rgba(34, 59, 42, 0.04);
    }
    to {
      box-shadow: 0 14px 32px rgba(27, 43, 32, 0.12);
      border-bottom-color: rgba(34, 59, 42, 0.12);
    }
  }

  @keyframes header-shadow-rise-dark {
    from {
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
      border-bottom-color: rgba(122, 179, 131, 0.10);
    }
    to {
      box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
      border-bottom-color: rgba(122, 179, 131, 0.22);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .site-header {
      animation: none;
      box-shadow: 0 14px 32px rgba(27, 43, 32, 0.12);
      border-bottom-color: rgba(34, 59, 42, 0.12);
    }
    html.dark-mode .site-header {
      box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
      border-bottom-color: rgba(122, 179, 131, 0.22);
    }
  }
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Crimson Text", "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--forest-900);
  letter-spacing: 0.01em;
}

.logo-img {
  height: 80px;
  max-height: 80px;
  width: auto;
  border-radius: 0;
}

.nav-toggle {
  background: var(--forest-600);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: none;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.nav-toggle:hover {
  background: var(--forest-700);
}

.nav-toggle:active {
  transform: scale(0.98);
}

/* Dark mode toggle button */
.dark-mode-toggle {
  background: transparent;
  border: 2px solid var(--forest-600);
  color: var(--forest-600);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-normal), border-color var(--transition-normal), color var(--transition-normal), transform var(--transition-fast);
  flex-shrink: 0;
}

.dark-mode-toggle:hover {
  background: var(--leaf-100);
  border-color: var(--forest-700);
  color: var(--forest-700);
}

.dark-mode-toggle:active {
  transform: scale(0.95);
}

.dark-mode-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.dark-mode-toggle .icon-sun,
.dark-mode-toggle .icon-moon {
  width: 22px;
  height: 22px;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.dark-mode-toggle .icon-sun {
  display: block;
}

.dark-mode-toggle .icon-moon {
  display: none;
}

html.dark-mode .dark-mode-toggle .icon-sun {
  display: none;
}

html.dark-mode .dark-mode-toggle .icon-moon {
  display: block;
}

html.dark-mode .dark-mode-toggle {
  border-color: var(--leaf-400);
  color: var(--leaf-400);
}

html.dark-mode .dark-mode-toggle:hover {
  background: var(--stone-300);
  border-color: var(--forest-600);
  color: var(--forest-600);
}

.site-nav {
  flex: 1;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.nav-list a {
  padding: 6px 14px;
  border-radius: 999px;
  background: transparent;
  transition: background var(--transition-normal), color var(--transition-fast);
  font-weight: 500;
}

.nav-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: -12px;
}

.nav-group-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--forest-700);
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-normal), color var(--transition-fast);
}

.nav-group-title:hover,
.nav-group:hover .nav-group-title {
  background: rgba(45, 106, 59, 0.08);
  color: var(--forest-800);
}

.nav-sublist {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: none;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 8px 0;
  min-width: 220px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid rgba(34, 59, 42, 0.1);
  box-shadow: 0 4px 24px rgba(27, 43, 32, 0.12), 0 0 0 1px rgba(34, 59, 42, 0.04);
  opacity: 0;
  transform-origin: top center;
}

/* Bridge element to prevent hover gap */
.nav-sublist::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.nav-sublist a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--forest-700);
  border-radius: 0;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-sublist a:hover,
.nav-sublist a:focus {
  background: rgba(45, 106, 59, 0.08);
  color: var(--forest-800);
  text-decoration: none;
}

.nav-sublist li:first-child a {
  border-radius: 8px 8px 0 0;
}

.nav-sublist li:last-child a {
  border-radius: 0 0 8px 8px;
}

.nav-group-title::after {
  content: "▾";
  font-size: 0.75em;
  margin-left: 6px;
  color: var(--forest-600);
}

.nav-group.is-open .nav-sublist,
.nav-group:focus-within .nav-sublist,
.nav-group:hover .nav-sublist {
  display: flex;
  opacity: 1;
  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.nav-list a:hover,
.nav-list a:focus {
  background: rgba(45, 106, 59, 0.12);
}

/* Donate button in navigation - white text on green background */
.nav-cta {
  color: #fff !important;
  background: #2d6a3b !important;
  box-shadow: 0 6px 14px rgba(34, 59, 42, 0.2);
  text-decoration: none !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #fff !important;
}

.nav-cta:hover,
.nav-cta:focus {
  background: #245a32 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.page {
  padding: 56px 0 84px;
}

#main-content {
  scroll-margin-top: 96px;
}

.page-content {
  background: var(--white);
  border-radius: 30px;
  padding: 42px clamp(22px, 4vw, 52px);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(34, 59, 42, 0.08);
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5 {
  font-family: "Crimson Text", "Times New Roman", serif;
  color: var(--forest-800);
}

.page-content h1 {
  font-size: clamp(2.2rem, 3vw, 3rem);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.page-content h2 {
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  margin-top: var(--space-9);
  margin-bottom: var(--space-3);
}

.page-content h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
}

.page-content h4 {
  font-size: clamp(1.3rem, 1.6vw, 1.7rem);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.page-content h5 {
  font-size: clamp(1.15rem, 1.3vw, 1.4rem);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--forest-700);
  max-width: 58ch;
}

.page-content p,
.page-content li {
  font-size: 1.05rem;
}

.page-content p {
  margin: 14px 0;
}

.page-content > :is(h1, h2, h3, h4, h5, p, ul, ol) {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

.page-content ul {
  padding-left: 1.2rem;
  margin: 16px 0;
}

.page-content img {
  margin: 24px auto;
  box-shadow: var(--shadow-tight);
}

/* ========================================
   Responsive Video Embed
   ======================================== */

.page-content .responsive-embed {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
  padding-top: 56.25%;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--stone-100) 0%, var(--stone-50) 100%);
  box-shadow:
    0 8px 32px rgba(27, 43, 32, 0.12),
    0 2px 8px rgba(27, 43, 32, 0.08);
  border: 1px solid rgba(34, 59, 42, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-content .responsive-embed:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 48px rgba(27, 43, 32, 0.16),
    0 4px 16px rgba(27, 43, 32, 0.1);
}

/* Decorative frame effect */
.page-content .responsive-embed::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 2;
}

/* Loading state play icon hint */
.page-content .responsive-embed::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232d6a3b'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(27, 43, 32, 0.2);
  opacity: 0.8;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Hide play icon once video loads */
.page-content .responsive-embed:has(iframe[src]) iframe {
  z-index: 3;
}

.page-content .responsive-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 20px;
}

/* Video with caption support */
.video-figure {
  margin: 40px auto;
  max-width: 800px;
  text-align: center;
}

.video-figure .responsive-embed {
  margin: 0;
}

.video-figure figcaption {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--forest-600);
  font-style: italic;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .page-content .responsive-embed {
    margin: 28px -8px;
    border-radius: 16px;
    max-width: calc(100% + 16px);
  }

  .page-content .responsive-embed::before {
    border-radius: 16px;
  }

  .page-content .responsive-embed iframe {
    border-radius: 16px;
  }

  .page-content .responsive-embed::after {
    width: 56px;
    height: 56px;
    background-size: 32px 32px;
  }
}

.page-content figure {
  margin: 24px auto;
}

.media-figure {
  text-align: center;
}

.media-figure img {
  margin: 0 auto;
}

.media-figure figcaption {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--forest-700);
}

/* Decorative graphics - smaller size for illustrations */
.decorative-graphic {
  max-width: 500px;
  margin: 24px auto;
  box-shadow: none;
}

/* ========================================
   Page Header with Decorative Graphics
   ======================================== */

.page-header-with-graphics {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -28px 32px;
  padding: 48px 28px 40px;
  min-height: 100px;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(204, 229, 209, 0.4) 0%, transparent 60%),
    linear-gradient(180deg, var(--stone-50) 0%, var(--white) 100%);
  border-bottom: 1px solid rgba(34, 59, 42, 0.08);
  overflow: hidden;
}

.page-header-with-graphics h1 {
  margin: 0;
  text-align: center;
  position: relative;
  z-index: 2;
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  letter-spacing: -0.02em;
  color: var(--forest-800);
  padding-bottom: 20px;
}

/* Decorative accent line under heading */
.page-header-with-graphics h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--leaf-400), var(--leaf-500), var(--leaf-400));
  border-radius: 2px;
}

.header-graphic {
  position: absolute;
  max-width: 140px;
  height: auto;
  border-radius: 8px;
  box-shadow: none;
  opacity: 0.2;
  z-index: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-header-with-graphics:hover .header-graphic {
  opacity: 0.3;
}

.header-graphic--left {
  transform: scaleX(-1) rotate(-5deg);
  left: 5%;
}

.page-header-with-graphics:hover .header-graphic--left {
  transform: scaleX(-1) rotate(-3deg);
}

.header-graphic--right {
  right: 5%;
  transform: rotate(5deg);
}

.page-header-with-graphics:hover .header-graphic--right {
  transform: rotate(3deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-header-with-graphics {
    margin: 0 -18px 24px;
    padding: 36px 18px 32px;
  }

  .header-graphic {
    max-width: 80px;
    opacity: 0.15;
  }

  .header-graphic--left {
    left: 2%;
  }

  .header-graphic--right {
    right: 2%;
  }
}

@media (max-width: 500px) {
  .header-graphic {
    display: none;
  }
}

/* ========================================
   Content Link Styling
   ======================================== */

.page-content a:not(.button-link):not(.info-card a) {
  font-weight: 600;
  color: var(--forest-600);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

/* Animated underline that grows from center */
.page-content a:not(.button-link):not(.info-card a)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--leaf-500), var(--forest-600));
  border-radius: 1px;
  transition: width 0.25s ease, left 0.25s ease;
}

.page-content a:not(.button-link):not(.info-card a):hover,
.page-content a:not(.button-link):not(.info-card a):focus {
  color: var(--forest-700);
}

.page-content a:not(.button-link):not(.info-card a):hover::after,
.page-content a:not(.button-link):not(.info-card a):focus::after {
  width: 100%;
  left: 0;
}

/* External link indicator */
.page-content a[target="_blank"]:not(.button-link)::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d6a3b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.page-content a[target="_blank"]:not(.button-link):hover::before {
  opacity: 1;
}

/* Subtle background highlight variant for dense text */
.page-content p a:not(.button-link):not(.info-card a) {
  background-image: linear-gradient(
    to top,
    rgba(204, 229, 209, 0.4) 0%,
    rgba(204, 229, 209, 0.4) 30%,
    transparent 30%
  );
  background-size: 100% 100%;
  transition: color 0.2s ease, background-size 0.25s ease;
}

.page-content p a:not(.button-link):not(.info-card a):hover {
  background-size: 100% 100%;
  background-image: linear-gradient(
    to top,
    rgba(204, 229, 209, 0.6) 0%,
    rgba(204, 229, 209, 0.6) 40%,
    transparent 40%
  );
}

.page-content a:focus-visible,
.nav-list a:focus-visible,
.nav-toggle:focus-visible,
.nav-group-title:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 6px;
}

.page-content article {
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px solid rgba(34, 59, 42, 0.12);
  background: #f9fbf7;
  box-shadow: 0 12px 24px rgba(27, 43, 32, 0.08);
  margin: 18px 0;
}

.page-content section {
  margin: 32px 0;
}

.hero {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-bottom: 40px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-content h1 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--forest-900);
  text-wrap: balance;
}

/* Decorative accent line under hero heading */
.hero-content h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin-top: 20px;
  background: linear-gradient(90deg, var(--leaf-500), var(--leaf-400));
  border-radius: 2px;
}

.hero-content .lead {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.65;
  color: var(--forest-700);
  max-width: 52ch;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-media img {
  margin: 0;
}

/* ========================================
   Feature Blocks - Image/Text Sections
   ======================================== */

.feature-block {
  display: grid;
  gap: 32px;
  align-items: center;
  margin: 48px 0;
  padding: 24px 0;
}

.feature-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 8px 24px rgba(27, 43, 32, 0.12),
    0 2px 8px rgba(27, 43, 32, 0.08);
}

/* Subtle decorative frame effect */
.feature-media::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
  z-index: 1;
}

.feature-media img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  box-shadow: none;
  border-radius: 0;
  transition: transform 0.5s ease-out;
}

.feature-block:hover .feature-media img {
  transform: scale(1.03);
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-content h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  color: var(--forest-800);
  position: relative;
  padding-bottom: 16px;
}

/* Decorative accent line under heading */
.feature-content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--leaf-500), var(--leaf-400));
  border-radius: 2px;
}

.feature-block--reverse .feature-content h2::after {
  left: auto;
  right: 0;
}

.feature-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--forest-700);
  margin: 0 0 20px;
  max-width: 52ch;
}

.feature-content .button-link {
  align-self: flex-start;
  margin-top: 4px;
}

.feature-block--reverse .feature-content {
  text-align: right;
}

.feature-block--reverse .feature-content p {
  margin-left: auto;
}

.feature-block--reverse .feature-content .button-link {
  align-self: flex-end;
}

/* Mobile: reset text alignment */
@media (max-width: 859px) {
  .feature-block--reverse .feature-content {
    text-align: left;
  }

  .feature-block--reverse .feature-content h2::after {
    left: 0;
    right: auto;
  }

  .feature-block--reverse .feature-content p {
    margin-left: 0;
  }

  .feature-block--reverse .feature-content .button-link {
    align-self: flex-start;
  }
}

/* ========================================
   Section Blocks & Titles
   ======================================== */

.section-block {
  margin: 56px 0;
  padding: 8px 0;
}

.section-block:first-of-type {
  margin-top: 40px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  color: var(--forest-800);
  margin-bottom: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* Decorative lines on sides of title */
.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  max-width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--leaf-300));
  border-radius: 1px;
}

.section-title::after {
  background: linear-gradient(90deg, var(--leaf-300), transparent);
}

/* Centered accent dot below title */
.section-block .section-title {
  margin-bottom: 32px;
}

.section-block .section-title + .card-grid {
  margin-top: 0;
}

/* Variant: section title with subtitle support */
.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-header .section-title {
  margin-bottom: 12px;
}

.section-header .section-subtitle {
  font-size: 1.05rem;
  color: var(--forest-600);
  max-width: 50ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* Alternative: minimal section title without decorations */
.section-title--minimal {
  gap: 0;
}

.section-title--minimal::before,
.section-title--minimal::after {
  display: none;
}

.next-steps {
  margin: 36px 0;
  padding: 24px 28px;
  border-radius: 22px;
  border: 1px solid rgba(34, 59, 42, 0.12);
  background: #f6faf4;
  box-shadow: var(--shadow-tight);
}

.next-steps h2 {
  margin-top: 0;
}

.next-steps-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.next-steps-actions .button-link {
  margin-top: 0;
}

.cta-band {
  margin: 40px 0;
  padding: 28px 32px;
  border-radius: 20px;
  border: 1px solid rgba(45, 106, 59, 0.15);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.3) 100%),
    linear-gradient(135deg, #e8f5e9 0%, #f1f8f2 50%, #e8f5e9 100%);
  box-shadow:
    0 4px 16px rgba(27, 43, 32, 0.06),
    0 1px 3px rgba(27, 43, 32, 0.04);
  position: relative;
  overflow: hidden;
}

/* Decorative accent bar on left */
.cta-band::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--leaf-400) 0%, var(--forest-600) 100%);
  border-radius: 20px 0 0 20px;
}

/* Subtle decorative circle in background */
.cta-band::after {
  content: "";
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 106, 59, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.cta-band-content {
  flex: 1;
  min-width: 240px;
}

.cta-band h2 {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--forest-800);
  letter-spacing: -0.01em;
}

.cta-band p {
  margin: 0;
  color: var(--forest-700);
  font-size: 1rem;
  line-height: 1.5;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .cta-band {
    padding: 24px 20px 24px 24px;
  }

  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cta-band-actions {
    width: 100%;
  }

  .cta-band-actions .button-link {
    flex: 1;
    text-align: center;
  }
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.info-card {
  background: var(--card-bg-alt);
  border-radius: 18px;
  border: 1px solid rgba(34, 59, 42, 0.12);
  padding: 20px 22px;
  box-shadow: 0 12px 24px rgba(27, 43, 32, 0.08);
}

.info-card h3 {
  margin-top: 0;
}

.info-card p {
  max-width: 45ch;
}

.info-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin: 0 0 16px;
  border-radius: 12px;
}

/* ========================================
   Button Styles - Primary, Secondary, Ghost
   ======================================== */

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--forest-600) 0%, var(--forest-700) 100%);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(27, 43, 32, 0.15),
    0 4px 12px rgba(27, 43, 32, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s ease-out,
    background 0.15s ease-out;
  will-change: transform;
}

/* Subtle inner glow on hover */
.button-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.2s ease-out;
  pointer-events: none;
}

.button-link:hover::before,
.button-link:focus::before {
  opacity: 1;
}

.button-link:hover,
.button-link:focus {
  color: var(--white);
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 4px 8px rgba(27, 43, 32, 0.2),
    0 8px 24px rgba(27, 43, 32, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-decoration: none;
  background: linear-gradient(180deg, var(--forest-500) 0%, var(--forest-600) 100%);
}

.button-link:focus-visible {
  outline: none;
  box-shadow:
    0 4px 8px rgba(27, 43, 32, 0.2),
    0 8px 24px rgba(27, 43, 32, 0.15),
    0 0 0 3px rgba(122, 179, 131, 0.5);
}

.button-link:active {
  transform: translateY(-1px) scale(1.01);
  box-shadow:
    0 2px 4px rgba(27, 43, 32, 0.15),
    0 3px 8px rgba(27, 43, 32, 0.1),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
  transition-duration: 0.1s;
}

/* Secondary button - darker, more subtle */
.button-link--secondary {
  background: linear-gradient(180deg, var(--forest-700) 0%, var(--forest-800) 100%);
  box-shadow:
    0 2px 4px rgba(27, 43, 32, 0.2),
    0 4px 12px rgba(27, 43, 32, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.button-link--secondary:hover,
.button-link--secondary:focus {
  background: linear-gradient(180deg, var(--forest-600) 0%, var(--forest-700) 100%);
  box-shadow:
    0 4px 8px rgba(27, 43, 32, 0.25),
    0 8px 24px rgba(27, 43, 32, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Ghost button - outlined style */
.button-link--ghost {
  background: var(--white);
  border: 2px solid var(--forest-600);
  color: var(--forest-600);
  box-shadow:
    0 2px 8px rgba(34, 59, 42, 0.06),
    0 1px 2px rgba(34, 59, 42, 0.04);
}

.button-link--ghost::before {
  background: var(--forest-600);
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

.button-link.button-link--ghost {
  color: var(--forest-600);
}

.button-link--ghost:hover,
.button-link--ghost:focus {
  color: var(--white);
  background: var(--forest-600);
  border-color: var(--forest-600);
  box-shadow:
    0 4px 12px rgba(45, 106, 59, 0.25),
    0 8px 20px rgba(45, 106, 59, 0.15);
}

.button-link--ghost:hover::before,
.button-link--ghost:focus::before {
  opacity: 0;
}

.button-link--ghost:active {
  background: var(--forest-700);
  border-color: var(--forest-700);
  box-shadow:
    0 2px 6px rgba(45, 106, 59, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.note {
  font-size: 0.95rem;
  color: var(--forest-700);
  margin-top: var(--space-3);
}

.site-footer {
  background: linear-gradient(180deg, var(--forest-800) 0%, var(--forest-900) 100%);
  color: var(--stone-100);
  padding: 48px 0 36px;
  position: relative;
  overflow: hidden;
}

/* Subtle decorative top border with leaf-inspired gradient */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--leaf-400) 0%,
    var(--leaf-500) 25%,
    var(--forest-600) 50%,
    var(--leaf-500) 75%,
    var(--leaf-400) 100%
  );
}

.footer-inner {
  display: grid;
  gap: 12px;
  text-align: center;
}

.footer-inner p:first-child {
  font-family: "Crimson Text", "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.footer-inner p:nth-child(2) {
  font-size: 0.95rem;
  color: var(--leaf-200);
  max-width: 40ch;
  margin: 0 auto;
  line-height: 1.5;
}

.site-footer a {
  color: var(--leaf-100);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: background var(--transition-normal), color var(--transition-fast);
  display: inline-block;
  margin-top: 8px;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

.site-footer a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(122, 179, 131, 0.5);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    position: relative;
  }

  /* Active state for menu button when open */
  .nav-toggle[aria-expanded="true"] {
    background: var(--forest-700);
    box-shadow: var(--shadow-medium), inset 0 1px 2px rgba(0, 0, 0, 0.1);
  }

  .site-nav {
    position: absolute;
    right: 4vw;
    left: 4vw;
    top: calc(100% + 8px);
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-tight);
    padding: 18px 20px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
    /* Animation properties */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  /* Style all top-level nav items consistently */
  .nav-list > li > a,
  .nav-group-title {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    transition: background var(--transition-fast);
  }

  .nav-list > li > a:hover,
  .nav-list > li > a:focus,
  .nav-group-title:hover {
    background: rgba(45, 106, 59, 0.08);
    text-decoration: none;
  }

  /* Active tap feedback */
  .nav-list > li > a:active,
  .nav-group-title:active {
    background: rgba(45, 106, 59, 0.15);
    transform: scale(0.98);
  }

  .nav-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0;
    margin-bottom: 0;
    width: 100%;
  }

  .nav-sublist {
    position: static;
    display: none;
    flex-direction: column;
    transform: none;
    left: auto;
    padding: 0;
    min-width: auto;
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    opacity: 0;
    transition: opacity 0.2s ease, padding 0.2s ease;
    overflow: hidden;
  }

  .nav-sublist > * {
    overflow: visible;
  }

  .nav-sublist::before {
    display: none;
  }

  .nav-sublist a {
    padding: 10px 16px 10px 28px;
    border-radius: 10px;
    display: block;
    position: relative;
    transition: background var(--transition-fast), transform var(--transition-fast);
  }

  /* Subtle indent indicator for submenu items */
  .nav-sublist a::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--leaf-400);
    opacity: 0.6;
  }

  .nav-sublist a:hover,
  .nav-sublist a:focus {
    background: rgba(45, 106, 59, 0.08);
  }

  .nav-sublist a:active {
    transform: scale(0.98);
  }

  .nav-sublist li:first-child a,
  .nav-sublist li:last-child a {
    border-radius: 10px;
  }

  .nav-group:focus-within .nav-sublist,
  .nav-group:hover .nav-sublist {
    display: none;
  }

  .nav-group.is-open .nav-sublist {
    display: flex;
    opacity: 1;
    padding: 8px 0 4px 0;
    animation: none;
  }

  .nav-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .nav-group-title::after {
    content: "";
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d6a3b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    transition: transform 0.3s ease;
  }

  .nav-group-title[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }
}

@media (max-width: 600px) {
  .header-inner {
    gap: 12px;
    padding: 12px 0;
  }

  .logo {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 1.35rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .logo-img {
    height: 56px;
    max-height: 56px;
  }
}

@media (max-width: 420px) {
  .header-inner {
    gap: 10px;
  }

  .logo {
    font-size: 1.2rem;
  }
}

@media (max-width: 360px) {
  .logo {
    flex: 0 0 auto;
    font-size: 0;
    gap: 0;
  }
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-block {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-block--reverse .feature-media {
    order: 2;
  }
}

/* Event date styling */
.event-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest-600);
  margin: 0 0 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.events-footer {
  text-align: center;
  margin-top: 24px;
  color: var(--forest-700);
}

/* FAQ Accordion styles */
.faq-list {
  list-style: none;
  padding: 0;
  margin: 24px auto;
  max-width: 70ch;
}

.faq-item {
  border: 1px solid rgba(34, 59, 42, 0.12);
  border-radius: 14px;
  margin-bottom: 12px;
  background: var(--card-bg);
  overflow: hidden;
  transition:
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    background var(--transition-normal);
}

.faq-item:hover {
  border-color: rgba(45, 106, 59, 0.2);
}

.faq-item[open] {
  background: var(--white);
  border-color: rgba(45, 106, 59, 0.25);
  box-shadow:
    0 4px 12px rgba(27, 43, 32, 0.08),
    0 1px 3px rgba(27, 43, 32, 0.04);
}

.faq-item summary {
  padding: 18px 20px;
  font-family: "Crimson Text", "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--forest-800);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* SVG chevron icon */
.faq-item summary::after {
  content: "";
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d6a3b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
  border-radius: 50%;
  padding: 4px;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-item summary:hover {
  background: rgba(45, 106, 59, 0.05);
  color: var(--forest-900);
}

.faq-item summary:hover::after {
  background-color: rgba(45, 106, 59, 0.08);
}

.faq-item summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px rgba(45, 106, 59, 0.3);
  border-radius: 14px;
}

/* FAQ answer content styling */
.faq-answer {
  padding: 0 20px 20px;
  color: var(--forest-800);
  line-height: 1.7;
  border-top: 1px solid rgba(34, 59, 42, 0.08);
  margin: 0 12px;
  padding-top: 16px;
  animation: faq-fade-in 0.25s ease-out;
}

@keyframes faq-fade-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-answer p {
  margin: 0 0 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  color: var(--forest-600);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.faq-answer a:hover {
  color: var(--forest-800);
}

/* ========================================
   Image Gallery Grid
   ======================================== */

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 32px auto;
  max-width: 100%;
}

.image-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin: 0;
  border-radius: 14px;
  box-shadow:
    0 4px 12px rgba(27, 43, 32, 0.1),
    0 1px 4px rgba(27, 43, 32, 0.06);
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
  cursor: pointer;
}

.image-gallery img:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow:
    0 12px 28px rgba(27, 43, 32, 0.15),
    0 4px 12px rgba(27, 43, 32, 0.1);
}

.image-gallery img:active {
  transform: scale(1.01) translateY(-2px);
  transition-duration: 0.15s;
}

/* Focus state for keyboard navigation */
.image-gallery img:focus-visible {
  outline: none;
  box-shadow:
    0 12px 28px rgba(27, 43, 32, 0.15),
    0 0 0 4px rgba(122, 179, 131, 0.5);
}

/* Portrait variant for vertical images */
@media (min-width: 600px) {
  .image-gallery--portrait {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .image-gallery--portrait img {
    height: 300px;
  }
}

/* Larger screens: slightly bigger images */
@media (min-width: 900px) {
  .image-gallery img {
    height: 280px;
  }

  .image-gallery--portrait img {
    height: 340px;
  }
}

/* Mobile: stack to 2 columns */
@media (max-width: 500px) {
  .image-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .image-gallery img {
    height: 160px;
    border-radius: 10px;
  }

  .image-gallery--portrait {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-gallery--portrait img {
    height: 200px;
  }
}

/* Gallery with figure/figcaption support */
.image-gallery figure {
  margin: 0;
  position: relative;
}

.image-gallery figure img {
  display: block;
}

.image-gallery figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(27, 43, 32, 0.85) 0%, transparent 100%);
  color: var(--white);
  font-size: 0.85rem;
  line-height: 1.4;
  border-radius: 0 0 14px 14px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.image-gallery figure:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* External link indicator */
a[target="_blank"]::after,
.external-link::after {
  content: " ↗";
  font-size: 0.75em;
  vertical-align: super;
  opacity: 0.7;
}

.nav-list a[target="_blank"]::after {
  content: none;
}

/* ========================================
   Card Hover Micro-interactions
   ======================================== */

.info-card,
.teacher-card,
.event-card,
.fee-card {
  transition:
    transform var(--transition-normal) ease-out,
    box-shadow var(--transition-normal) ease-out,
    border-color var(--transition-fast) ease-out;
  will-change: transform;
}

.info-card:hover,
.teacher-card:hover,
.event-card:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow:
    0 12px 28px rgba(27, 43, 32, 0.12),
    0 4px 12px rgba(27, 43, 32, 0.08);
  border-color: rgba(45, 106, 59, 0.2);
}

.fee-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 20px rgba(27, 43, 32, 0.1),
    0 3px 8px rgba(27, 43, 32, 0.06);
  border-color: rgba(45, 106, 59, 0.25);
}

/* Focus states for keyboard navigation */
.info-card:focus-within,
.teacher-card:focus-within,
.event-card:focus-within {
  transform: translateY(-4px) scale(1.005);
  box-shadow:
    0 12px 28px rgba(27, 43, 32, 0.12),
    0 4px 12px rgba(27, 43, 32, 0.08),
    var(--focus-ring);
  border-color: rgba(45, 106, 59, 0.3);
}

.fee-card:focus-within {
  box-shadow:
    0 8px 20px rgba(27, 43, 32, 0.1),
    var(--focus-ring);
}

/* Card link styling */
.info-card h3 a {
  text-decoration: none;
  transition: color var(--transition-fast);
}

.info-card h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  color: var(--forest-600);
}

/* Teacher card photo subtle zoom on hover */
.teacher-card .teacher-photo img {
  transition: transform 0.4s ease-out;
}

.teacher-card:hover .teacher-photo img {
  transform: scale(1.03);
}

/* Event card date badge highlight on hover */
.event-card:hover .event-date-badge,
.event-card:focus-within .event-date-badge {
  background: var(--forest-700);
}

.event-date-badge {
  transition: background var(--transition-normal);
}

/* Quick links styling */
.quick-links {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--card-bg-alt);
  border: 1px solid rgba(34, 59, 42, 0.12);
  border-radius: 16px;
}

.quick-links h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.quick-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.quick-links-list a {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(45, 106, 59, 0.08);
  font-weight: 500;
  transition: background 0.2s ease;
}

.quick-links-list a:hover {
  background: rgba(45, 106, 59, 0.16);
  text-decoration: none;
}

/* Breadcrumb navigation */
.breadcrumb {
  margin-bottom: var(--space-6);
  padding: 0;
  font-size: 0.9rem;
}

.breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  align-items: center;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
  content: "/";
  margin-left: var(--space-2);
  color: var(--gray-400);
}

.breadcrumb-list a {
  color: var(--forest-600);
}

.breadcrumb-list a:hover {
  text-decoration: underline;
}

.breadcrumb-list li:last-child {
  color: var(--gray-500);
}

/* Improved focus visibility */
a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Rate charts gallery for tuition page */
.rate-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.rate-charts figure {
  margin: 0;
  text-align: center;
}

.rate-charts img {
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(27, 43, 32, 0.1);
}

.rate-charts figcaption {
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--forest-700);
}

/* Tuition tables */
.tuition-tables {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 28px 0;
}

.tuition-table-wrapper {
  background: linear-gradient(135deg, #a8d4a8 0%, #d4ecd4 100%);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(27, 43, 32, 0.1);
}

.tuition-table-wrapper h4 {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--forest-900);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tuition-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.tuition-table thead {
  background: rgba(34, 59, 42, 0.08);
}

.tuition-table th {
  padding: 12px 16px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest-800);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 2px solid rgba(34, 59, 42, 0.15);
}

.tuition-table td {
  padding: 12px 16px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--forest-700);
  border-bottom: 1px solid rgba(34, 59, 42, 0.08);
}

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

.tuition-table tbody tr:hover {
  background: rgba(34, 59, 42, 0.03);
}

.tuition-table td:first-child {
  font-weight: 500;
  text-align: left;
}

@media (max-width: 768px) {
  .tuition-table-wrapper {
    padding: 12px;
    overflow-x: auto;
  }

  .tuition-table th,
  .tuition-table td {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .tuition-table-wrapper h4 {
    font-size: 1rem;
  }
}

/* Dark mode tuition tables */
.dark-mode .tuition-table-wrapper {
  background: linear-gradient(135deg, #2d4a35 0%, #1e3325 100%);
}

.dark-mode .tuition-table-wrapper h4 {
  color: var(--forest-100);
}

.dark-mode .tuition-table {
  background: var(--card-bg);
}

.dark-mode .tuition-table thead {
  background: rgba(168, 212, 168, 0.1);
}

.dark-mode .tuition-table th {
  color: var(--forest-200);
  border-bottom-color: rgba(168, 212, 168, 0.2);
}

.dark-mode .tuition-table td {
  color: var(--forest-200);
  border-bottom-color: rgba(168, 212, 168, 0.1);
}

.dark-mode .tuition-table tbody tr:hover {
  background: rgba(168, 212, 168, 0.05);
}

/* Fee cards for tuition page */
.fee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.fee-card {
  background: var(--card-bg);
  border: 1px solid rgba(34, 59, 42, 0.12);
  border-radius: 14px;
  padding: 18px 20px;
  text-align: center;
}

.fee-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--forest-800);
}

.fee-card .fee-amount {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--forest-600);
  margin: 0;
}

.fee-card .fee-note {
  font-size: 0.92rem;
  color: var(--forest-700);
  margin: var(--space-2) 0 0;
  line-height: 1.5;
}

/* Fee schedule list */
.fee-schedule {
  background: var(--card-bg-alt);
  border: 1px solid rgba(34, 59, 42, 0.12);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 20px 0;
}

.fee-schedule h3 {
  margin: 0 0 16px;
  font-size: 1.2rem;
}

.fee-schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.fee-schedule-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--white);
  border-radius: 10px;
  font-size: 0.98rem;
}

.fee-schedule-list .hours {
  color: var(--forest-800);
}

.fee-schedule-list .points-fee {
  font-weight: 600;
  color: var(--forest-600);
  text-align: right;
}

/* Scholarship callout */
.scholarship-callout {
  background: linear-gradient(135deg, #f1f7f0 0%, #e8f0e6 100%);
  border: 1px solid rgba(34, 59, 42, 0.15);
  border-radius: 18px;
  padding: 24px 28px;
  margin: 32px 0;
  text-align: center;
}

.scholarship-callout h2 {
  margin: 0 0 12px;
  color: var(--forest-800);
}

.scholarship-callout p {
  margin: 0 0 16px;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* Note text styling */
.note-text {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--forest-700);
  font-style: italic;
  margin: var(--space-4) 0;
  padding-left: var(--space-4);
  border-left: 3px solid var(--leaf-400);
}

/* Class catalog styles for program pages */
.class-catalog {
  margin: 36px 0;
}

.class-catalog h2 {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--leaf-200);
}

.class-category {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--card-bg);
  border: 1px solid rgba(34, 59, 42, 0.12);
  border-radius: 16px;
}

.class-category h3 {
  margin: 0 0 12px;
  color: var(--forest-800);
}

.class-category > p {
  margin: 0 0 16px;
  font-size: 0.98rem;
  color: var(--forest-700);
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.class-grid--electives {
  gap: 20px;
}

.class-grid--electives .class-category {
  margin: 0;
}

.class-group {
  background: var(--white);
  border-radius: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(34, 59, 42, 0.08);
}

.class-group h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--forest-700);
}

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

.class-list li {
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--forest-900);
  border-bottom: 1px solid rgba(34, 59, 42, 0.06);
}

.class-list li:last-child {
  border-bottom: none;
}

.class-category > .class-list {
  columns: 2;
  column-gap: 24px;
}

.class-category > .class-list li {
  break-inside: avoid;
}

/* Schedule year cards for high school page (uses .schedule-grid defined below) */
.schedule-year {
  background: var(--card-bg-alt);
  border: 1px solid rgba(34, 59, 42, 0.12);
  border-radius: 16px;
  padding: 20px 22px;
}

.schedule-year h3 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--leaf-200);
  font-size: 1.2rem;
  color: var(--forest-800);
}

.schedule-year .class-list li {
  padding: 8px 0;
}

.schedule-year .class-list li strong {
  color: var(--forest-700);
  font-weight: 600;
}

@media (max-width: 600px) {
  .class-category > .class-list {
    columns: 1;
  }

  .class-grid {
    grid-template-columns: 1fr;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }
}

/* Calendar and events page styles */
.calendar-links {
  background: linear-gradient(135deg, #f1f7f0 0%, #e8f0e6 100%);
  border: 1px solid rgba(34, 59, 42, 0.15);
  border-radius: 18px;
  padding: 24px 28px;
  margin: 24px 0;
  text-align: center;
}

.calendar-links h2 {
  margin: 0 0 12px;
}

.calendar-links p {
  margin: 0 0 16px;
}

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

.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}

.event-card {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  background: var(--card-bg);
  border: 1px solid rgba(34, 59, 42, 0.12);
  border-radius: 14px;
  align-items: flex-start;
}

.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 10px 12px;
  background: var(--forest-600);
  border-radius: 10px;
  color: var(--white);
  text-align: center;
  flex-shrink: 0;
}

.event-month {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.event-details h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.event-time {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest-600);
}

.event-description {
  margin: 0;
  font-size: 0.95rem;
  color: var(--forest-700);
}

@media (max-width: 600px) {
  .event-card {
    flex-direction: column;
    align-items: stretch;
  }

  .event-date-badge {
    flex-direction: row;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
  }

  .event-day {
    font-size: 1.2rem;
  }
}

/* Teacher cards for faculty page */
.teachers-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 32px 0;
}

.teacher-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid rgba(34, 59, 42, 0.1);
  border-radius: 16px;
}

.teacher-photo {
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.teacher-photo img {
  width: 252px;
  height: 252px;
  object-fit: cover;
  border-radius: 0;
  border: 3px solid var(--white);
  box-shadow: none;
  display: block;
}

.teacher-photo-placeholder {
  width: 252px;
  height: 252px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--leaf-100) 0%, var(--leaf-200) 100%);
}

.teacher-info h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: var(--forest-800);
}

.teacher-info p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--forest-700);
}

.teacher-info p + p {
  margin-top: 10px;
}

.teacher-role {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--forest-600);
  margin: 0 0 4px;
}

@media (max-width: 600px) {
  .teacher-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .teacher-photo img,
  .teacher-photo-placeholder {
    width: 216px;
    height: 216px;
  }

  .teacher-info {
    text-align: left;
  }
}

/* Mission highlight for donate page */
.mission-highlight {
  margin: 36px 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, #f6faf4 0%, #eef5ec 100%);
  border: 1px solid rgba(34, 59, 42, 0.12);
  border-radius: 18px;
}

.mission-highlight h2 {
  margin: 0 0 12px;
}

.mission-highlight > p {
  margin: 0 0 16px;
  color: var(--forest-700);
}

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

.mission-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 0.95rem;
  color: var(--forest-800);
  border-bottom: 1px solid rgba(34, 59, 42, 0.08);
}

.mission-list li:last-child {
  border-bottom: none;
}

.mission-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 12px;
  height: 12px;
  background: var(--leaf-400);
  border-radius: 50%;
}

/* Address styling for donate page */
.info-card address {
  font-style: normal;
  margin-top: 8px;
  padding: 12px 14px;
  background: rgba(34, 59, 42, 0.04);
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .page-content {
    padding: 28px 18px;
    border-radius: 22px;
  }

  .image-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .image-gallery img {
    height: 180px;
  }

  .fee-schedule-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .fee-schedule-list .points-fee {
    text-align: left;
  }
}

/* Board of Directors section */
.board-section {
  margin: 48px 0 32px;
  text-align: center;
}

.board-list {
  list-style: none;
  padding: 0;
  margin: 20px auto;
  max-width: 400px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}

.board-list li {
  padding: 8px 12px;
  background: var(--card-bg);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--forest-800);
}

@media (max-width: 480px) {
  .board-list {
    grid-template-columns: 1fr;
  }
}

/* Visually hidden (screen reader only) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   Testimonial Blockquotes
   ======================================== */

.testimonial {
  margin: 40px auto;
  padding: 32px 36px 28px;
  max-width: 60ch;
  background: linear-gradient(145deg, #f8fbf7 0%, #f0f6ee 100%);
  border: 1px solid rgba(45, 106, 59, 0.1);
  border-radius: 20px;
  font-style: italic;
  position: relative;
  box-shadow:
    0 4px 16px rgba(27, 43, 32, 0.06),
    0 1px 4px rgba(27, 43, 32, 0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.testimonial:hover {
  box-shadow:
    0 8px 24px rgba(27, 43, 32, 0.1),
    0 2px 8px rgba(27, 43, 32, 0.06);
  transform: translateY(-2px);
}

/* Large decorative opening quote */
.testimonial::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 28px;
  width: 40px;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232d6a3b' opacity='0.2'%3E%3Cpath d='M11.192 15.757c0-.88-.23-1.618-.69-2.217-.326-.412-.768-.683-1.327-.812-.55-.128-1.07-.137-1.54-.028-.16-.95.1-1.956.76-3.022.66-1.065 1.515-1.867 2.558-2.403L9.373 5c-.8.396-1.56.898-2.26 1.505-.71.607-1.34 1.305-1.9 2.094s-.98 1.68-1.25 2.69-.346 2.04-.217 3.1c.168 1.4.62 2.52 1.356 3.35.735.84 1.652 1.26 2.748 1.26.965 0 1.766-.29 2.4-.878.628-.576.94-1.365.94-2.368l.002.003zm9.124 0c0-.88-.23-1.618-.69-2.217-.326-.42-.768-.695-1.327-.825-.55-.13-1.07-.14-1.54-.03-.16-.94.09-1.95.75-3.02.66-1.06 1.514-1.86 2.557-2.4L18.49 5c-.8.396-1.555.898-2.26 1.505-.708.607-1.34 1.305-1.894 2.094-.556.79-.97 1.68-1.24 2.69-.273 1.01-.345 2.04-.217 3.1.168 1.4.62 2.52 1.356 3.35.735.84 1.652 1.26 2.748 1.26.965 0 1.766-.29 2.4-.878.628-.576.94-1.365.94-2.368l.002.003z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.35;
}

/* Decorative accent line at bottom */
.testimonial::after {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--leaf-400), var(--leaf-500));
  border-radius: 2px;
  opacity: 0.6;
}

.testimonial p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--forest-800);
  text-align: center;
}

/* Multiple paragraphs in testimonial */
.testimonial p + p {
  margin-top: 12px;
}

/* Attribution styling */
.testimonial cite,
.testimonial footer {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--forest-600);
  text-align: center;
}

.testimonial cite::before,
.testimonial footer::before {
  content: "— ";
}

/* Variant: Compact testimonial for inline use */
.testimonial--compact {
  padding: 20px 24px;
  max-width: 50ch;
}

.testimonial--compact::before {
  width: 28px;
  height: 28px;
  top: -8px;
  left: 20px;
}

.testimonial--compact::after {
  display: none;
}

.testimonial--compact p {
  font-size: 1.05rem;
}

/* Schedule examples section */
.schedule-examples {
  margin: 40px 0;
}

/* Unified schedule grid - used for both high school 4-year plan and schedule examples */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.schedule-card {
  background: var(--card-bg);
  border: 1px solid rgba(34, 59, 42, 0.12);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 8px 20px rgba(27, 43, 32, 0.08);
}

.schedule-card h3 {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--leaf-200);
  font-size: 1.3rem;
  color: var(--forest-800);
}

.schedule-day {
  margin: 16px 0;
}

.schedule-day h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--forest-600);
}

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

.schedule-list li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(34, 59, 42, 0.06);
}

.schedule-list li:last-child {
  border-bottom: none;
}

.schedule-list .time {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--forest-700);
  min-width: 90px;
}

@media (max-width: 600px) {
  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .testimonial {
    padding: 20px 22px;
    margin: 24px 0;
  }
}

/* Homework levels display */
.homework-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 24px auto;
  max-width: 600px;
}

.homework-level {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  background: var(--card-bg);
  border: 1px solid rgba(34, 59, 42, 0.12);
  border-radius: 12px;
  text-align: center;
  min-width: 140px;
}

.homework-level strong {
  font-size: 1rem;
  color: var(--forest-800);
  margin-bottom: 4px;
}

.homework-level span {
  font-size: 0.9rem;
  color: var(--forest-600);
}

@media (max-width: 480px) {
  .homework-levels {
    flex-direction: column;
    align-items: stretch;
  }

  .homework-level {
    flex-direction: row;
    justify-content: space-between;
    min-width: auto;
  }
}

/* ========================================
   Tuition Calculator
   ======================================== */

.tuition-calculator {
  margin: 32px 0 48px;
  padding: 28px 32px;
  background: linear-gradient(145deg, #f8fbf7 0%, #f0f6ee 100%);
  border: 1px solid rgba(45, 106, 59, 0.15);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(27, 43, 32, 0.06);
}

.tuition-calculator h3 {
  margin: 0 0 8px;
  text-align: center;
  color: var(--forest-800);
}

.calculator-intro {
  text-align: center;
  color: var(--forest-700);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.calculator-form {
  max-width: 500px;
  margin: 0 auto;
}

.calculator-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.calculator-hours {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(45, 106, 59, 0.12);
  align-items: start;
}

.calculator-hours .input-group {
  display: grid;
  grid-template-rows: auto auto auto;
}

.calculator-hours .input-group label {
  min-height: 2.8em;
  line-height: 1.4;
}

.tuition-calculator .input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tuition-calculator label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest-800);
}

.tuition-calculator select,
.tuition-calculator input[type="number"] {
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid rgba(45, 106, 59, 0.25);
  border-radius: 10px;
  background: #fff;
  color: var(--forest-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tuition-calculator select:focus,
.tuition-calculator input[type="number"]:focus {
  outline: none;
  border-color: var(--forest-600);
  box-shadow: 0 0 0 3px rgba(45, 106, 59, 0.15);
}

.tuition-calculator input::placeholder,
.tuition-calculator select::placeholder {
  color: var(--gray-500);
  opacity: 1;
}

.tuition-calculator select:disabled {
  background: var(--gray-100);
  color: var(--gray-400);
  cursor: not-allowed;
}

.rate-hint {
  font-weight: 400;
  color: var(--forest-600);
  font-size: 0.85em;
}

.input-hint {
  font-size: 0.82rem;
  color: var(--forest-600);
  font-style: italic;
}

/* Form validation states */
.tuition-calculator input[aria-invalid="true"],
.tuition-calculator select[aria-invalid="true"] {
  border-color: var(--error-color);
  background-color: var(--error-bg);
}

.tuition-calculator input[aria-invalid="true"]:focus,
.tuition-calculator select[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.2);
}

.form-error {
  display: block;
  color: var(--error-color);
  font-size: 0.85rem;
  margin-top: var(--space-1);
}

.noscript-notice {
  background: var(--leaf-100);
  border: 2px solid var(--leaf-400);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
  text-align: center;
}

.noscript-notice p {
  margin: 0 0 8px;
}

.noscript-notice p:last-child {
  margin-bottom: 0;
}

.rate-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(45, 106, 59, 0.12);
}

.rate-label {
  font-size: 0.95rem;
  color: var(--forest-700);
}

.rate-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--forest-600);
}

.calculator-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 2px solid rgba(45, 106, 59, 0.15);
}

.result-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px;
  background: #fff;
  border: 1px solid rgba(45, 106, 59, 0.12);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(27, 43, 32, 0.05);
}

.result-card-primary {
  background: linear-gradient(145deg, var(--forest-600) 0%, var(--forest-700) 100%);
  border-color: var(--forest-600);
}

.result-card-primary .result-label,
.result-card-primary .result-value,
.result-card-primary .result-breakdown {
  color: #fff;
}

.result-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--forest-700);
  margin-bottom: 6px;
}

.result-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--forest-600);
  line-height: 1.2;
}

.result-breakdown {
  font-size: 0.8rem;
  color: var(--forest-600);
  margin-top: 6px;
  min-height: 1.2em;
}

@media (max-width: 600px) {
  .tuition-calculator {
    padding: 20px 18px;
    margin: 24px 0 36px;
  }

  .calculator-inputs,
  .calculator-hours {
    grid-template-columns: 1fr;
  }

  .calculator-results {
    grid-template-columns: 1fr;
  }

  .result-card {
    flex-direction: row;
    justify-content: space-between;
    padding: 16px 20px;
  }

  .result-card-primary {
    flex-direction: column;
  }

  .result-label {
    margin-bottom: 0;
  }

  .result-value {
    font-size: 1.3rem;
  }

  .result-breakdown {
    margin-top: 0;
    margin-left: 8px;
  }

  .result-card-primary .result-breakdown {
    margin-left: 0;
    margin-top: 4px;
  }
}

/* ========================================
   Tuition Calculator - Collapsible Header
   ======================================== */

.calculator-header {
  margin: 0 0 8px;
}

.calculator-header button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 12px;
  transition: opacity 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  font-family: "Crimson Text", "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--forest-800);
}

.calculator-header button:hover {
  opacity: 0.8;
}

.calculator-header button:focus {
  outline: none;
}

.calculator-header button:focus-visible {
  outline: 2px solid var(--forest-600);
  outline-offset: 4px;
  border-radius: 8px;
}

.calculator-toggle-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.calculator-toggle-icon::before,
.calculator-toggle-icon::after {
  content: '';
  position: absolute;
  background-color: var(--forest-600);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.calculator-toggle-icon::before {
  top: 50%;
  left: 4px;
  width: 16px;
  height: 2px;
  transform: translateY(-50%);
}

.calculator-toggle-icon::after {
  top: 4px;
  left: 50%;
  width: 2px;
  height: 16px;
  transform: translateX(-50%);
}

/* Collapsed state - show plus icon */
#calculator-toggle[aria-expanded="false"] .calculator-toggle-icon::after {
  transform: translateX(-50%) rotate(0deg);
  opacity: 1;
}

/* Expanded state - show minus icon (hide vertical bar) */
#calculator-toggle[aria-expanded="true"] .calculator-toggle-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.calculator-content {
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  max-height: 2000px;
  opacity: 1;
}

.calculator-content.collapsed {
  max-height: 0;
  opacity: 0;
}

/* ========================================
   Rate Charts - Collapsible Section
   ======================================== */

.rate-charts-collapsible {
  margin-top: 32px;
}

.collapsible-header {
  margin: 0 0 8px;
}

.collapsible-header button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 12px;
  transition: opacity 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  font-family: "Crimson Text", "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--forest-800);
}

.collapsible-header button:hover {
  opacity: 0.8;
}

.collapsible-header button:focus {
  outline: none;
}

.collapsible-header button:focus-visible {
  outline: 2px solid var(--forest-600);
  outline-offset: 4px;
  border-radius: 8px;
}

.collapsible-toggle-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.collapsible-toggle-icon::before,
.collapsible-toggle-icon::after {
  content: '';
  position: absolute;
  background-color: var(--forest-600);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.collapsible-toggle-icon::before {
  top: 50%;
  left: 4px;
  width: 16px;
  height: 2px;
  transform: translateY(-50%);
}

.collapsible-toggle-icon::after {
  top: 4px;
  left: 50%;
  width: 2px;
  height: 16px;
  transform: translateX(-50%);
}

/* Collapsed state - show plus icon */
#rate-charts-toggle[aria-expanded="false"] .collapsible-toggle-icon::after {
  transform: translateX(-50%) rotate(0deg);
  opacity: 1;
}

/* Expanded state - show minus icon (hide vertical bar) */
#rate-charts-toggle[aria-expanded="true"] .collapsible-toggle-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.collapsible-content {
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  max-height: 3000px;
  opacity: 1;
}

.collapsible-content.collapsed {
  max-height: 0;
  opacity: 0;
}

/* ========================================
   Tuition Calculator - Improved Light Mode Contrast
   ======================================== */

/* Light mode uses original subtle box styling - contrast improvements are for text colors below */

.tuition-calculator label {
  color: #2d4a32;
  font-weight: 600;
}

.calculator-intro {
  color: #3d5a43;
}

.rate-label {
  color: #3d5a43;
}

.rate-value {
  color: #2d6a3b;
}

.result-label {
  color: #3d5a43;
}

.result-value {
  color: #2d6a3b;
}

.result-breakdown {
  color: #4a6b50;
}

.tuition-calculator select,
.tuition-calculator input[type="number"] {
  color: #1b2b20;
  border-color: rgba(45, 106, 59, 0.35);
}

.tuition-calculator select:disabled {
  background: #eaeaea;
  color: #666;
}

.rate-display {
  background: #fff;
  border-color: rgba(45, 106, 59, 0.2);
}

.result-card {
  background: #fff;
  border-color: rgba(45, 106, 59, 0.2);
}

.result-card-primary {
  background: linear-gradient(145deg, var(--forest-600) 0%, var(--forest-700) 100%);
  border-color: var(--forest-600);
}

/* ========================================
   Tuition Calculator - Dark Mode Styles
   ======================================== */

html.dark-mode .tuition-calculator {
  background: linear-gradient(145deg, var(--card-bg) 0%, var(--card-bg-alt) 100%);
  border-color: rgba(122, 179, 131, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

html.dark-mode .tuition-calculator h3,
html.dark-mode .calculator-header button,
html.dark-mode .collapsible-header button {
  color: var(--forest-900);
}

html.dark-mode .calculator-intro {
  color: var(--forest-800);
}

html.dark-mode .calculator-toggle-icon::before,
html.dark-mode .calculator-toggle-icon::after {
  background-color: var(--forest-700);
}

html.dark-mode .tuition-calculator label {
  color: var(--forest-800);
}

html.dark-mode .tuition-calculator select,
html.dark-mode .tuition-calculator input[type="number"] {
  background: var(--stone-200);
  color: var(--forest-900);
  border-color: rgba(122, 179, 131, 0.3);
}

html.dark-mode .tuition-calculator select:focus,
html.dark-mode .tuition-calculator input[type="number"]:focus {
  border-color: var(--leaf-500);
  box-shadow: var(--focus-ring);
}

html.dark-mode .tuition-calculator input::placeholder {
  color: #a0a0a0;
}

html.dark-mode .tuition-calculator select:disabled {
  background: var(--stone-300);
  color: #888;
}

html.dark-mode .rate-display {
  background: var(--stone-200);
  border-color: rgba(122, 179, 131, 0.15);
}

html.dark-mode .rate-label {
  color: var(--forest-800);
}

html.dark-mode .rate-value {
  color: var(--forest-700);
}

html.dark-mode .rate-hint {
  color: var(--forest-700);
}

html.dark-mode .input-hint {
  color: var(--forest-700);
}

html.dark-mode .calculator-hours {
  border-top-color: rgba(122, 179, 131, 0.15);
}

html.dark-mode .calculator-results {
  border-top-color: rgba(122, 179, 131, 0.2);
}

html.dark-mode .result-card {
  background: var(--stone-200);
  border-color: rgba(122, 179, 131, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

html.dark-mode .result-label {
  color: var(--forest-800);
}

html.dark-mode .result-value {
  color: var(--forest-700);
}

html.dark-mode .result-breakdown {
  color: var(--forest-700);
}

html.dark-mode .result-card-primary {
  background: linear-gradient(145deg, var(--leaf-400) 0%, var(--leaf-200) 100%);
  border-color: var(--leaf-400);
}

html.dark-mode .result-card-primary .result-label,
html.dark-mode .result-card-primary .result-value,
html.dark-mode .result-card-primary .result-breakdown {
  color: var(--forest-900);
}

/* ========================================
   404 Error Page
   ======================================== */

.error-page {
  text-align: center;
  padding: var(--space-16) var(--space-6);
}

.error-page h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.error-page .lead {
  font-size: 1.25rem;
  color: var(--forest-700);
  margin-bottom: var(--space-2);
}

.error-page p {
  margin-bottom: var(--space-8);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* ========================================
   Accessibility: High Contrast / Forced Colors
   ======================================== */
@media (forced-colors: active) {
  .button-link,
  .nav-toggle,
  .dark-mode-toggle {
    border: 2px solid currentColor;
  }

  .skip-link:focus {
    outline: 3px solid currentColor;
  }

  .breadcrumb-list li:not(:last-child)::after {
    color: currentColor;
  }

  .info-card,
  .fee-card,
  .schedule-card {
    border: 1px solid currentColor;
  }

  a:focus,
  button:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
  }
}

/* ========================================
   Accessibility: Touch Target Sizing
   ======================================== */
@media (pointer: coarse) {
  .nav-list a,
  .nav-toggle,
  .button-link,
  .dark-mode-toggle {
    min-height: 44px;
    min-width: 44px;
  }

  .breadcrumb-list a {
    padding: var(--space-2) var(--space-1);
  }

  .faq-item summary {
    min-height: 48px;
  }
}

/* ========================================
   Accessibility: Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .button-link,
  .info-card,
  .nav-sublist {
    transition: none;
  }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .site-header,
  .site-footer,
  .nav-toggle,
  .skip-link,
  .cta-band,
  .button-link {
    display: none !important;
  }

  .page {
    padding: 0;
  }

  .page-content {
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
    color: #666;
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    break-after: avoid;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }

  /* Tuition calculator print styles */
  .tuition-calculator {
    border: 1px solid #ccc !important;
    padding: 1rem !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .tuition-calculator select,
  .tuition-calculator input {
    border: 1px solid #999 !important;
    background: #fff !important;
  }

  .result-card {
    border: 1px solid #999 !important;
    padding: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  .rate-charts-table {
    border-collapse: collapse;
    width: 100%;
  }

  .rate-charts-table th,
  .rate-charts-table td {
    border: 1px solid #333 !important;
    padding: 0.25rem 0.5rem !important;
  }

  /* Schedule print styles */
  .schedule-card {
    border: 1px solid #999 !important;
    padding: 1rem !important;
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 1rem !important;
  }

  .schedule-grid {
    display: block !important;
  }

  .schedule-list {
    list-style: none !important;
    padding: 0 !important;
  }

  .schedule-list li {
    padding: 0.25rem 0 !important;
    border-bottom: 1px dotted #ccc !important;
  }

  /* FAQ print styles */
  .faq-item {
    border-bottom: 1px solid #ccc !important;
    padding: 0.5rem 0 !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .faq-item summary {
    font-weight: bold !important;
  }

  .faq-item[open] .faq-answer {
    display: block !important;
  }

  details[open] summary::after {
    content: "" !important;
  }

  /* Card grid print styles */
  .card-grid {
    display: block !important;
  }

  .info-card {
    border: 1px solid #ccc !important;
    padding: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Hide decorative elements */
  .header-graphic,
  .decorative-graphic,
  .dark-mode-toggle,
  .hero-media {
    display: none !important;
  }

  /* Ensure tables print properly */
  table {
    border-collapse: collapse !important;
    width: 100% !important;
  }

  th, td {
    border: 1px solid #333 !important;
    padding: 0.25rem 0.5rem !important;
    text-align: left !important;
  }

  /* Homepage events print styles */
  .event-card {
    border-bottom: 1px solid #ccc !important;
    padding: 0.5rem 0 !important;
  }

  .event-date-badge {
    display: inline !important;
    border: none !important;
    background: none !important;
  }
}
