/* ==========================================================================
   One Life Learning Centre — Bespoke Editorial Design System
   User Palette: #45572B (Herbaceous Olive), #E9EBCA (Matcha Cream), #FFFDF6 (Warm Alabaster)
   Typography: Aboreto, Arapey, Work Sans
   ========================================================================== */

:root {
  /* Exact User-Selected Palette */
  --c-deep-olive: #45572B;      /* Primary Brand Olive (User Swatch 1) */
  --c-matcha-cream: #E9EBCA;    /* Pale Celadon / Matcha Cream Linen (User Swatch 2) */
  --c-warm-alabaster: #FFFDF6;  /* Warm Alabaster Canvas (User Swatch 3) */

  /* Applied Color Hierarchy */
  --c-dark-charcoal: #364621;   /* Rich Deep Olive Green (Ribbons, Footer, Dark Buttons) */
  --c-deep-pine: #2C3A1A;       /* Deepest Forest Olive (Hover states) */
  --c-medium-green: #45572B;    /* Exact User Olive Green (Buttons, Active Tabs, Highlights) */
  --c-primary: #45572B;         /* Primary brand color alias */
  --c-primary-dark: #364621;    /* Dark olive hover alias */
  --c-soft-willow: #5A7238;     /* Mid-tone Olive Accent */
  --c-pale-celadon: #E9EBCA;    /* Exact User Matcha Cream (Badges, Frame Borders, Accents) */
  --c-light-linen: #E9EBCA;     /* Exact User Matcha Cream for text on dark backgrounds */

  /* Surface & Neutral Spectrum */
  --bg-main: #FFFDF6;           /* Exact User Warm Alabaster Canvas */
  --bg-card: #ffffff;           /* Crisp White Card Surface */
  --bg-card-subtle: #F6F8ED;    /* Delicate Matcha Cream Tint */
  --bg-tinted: #ECEFD5;         /* Soft Matcha Cream Wash */
  --text-main: #242D16;         /* High-contrast Deep Olive Text */
  --text-muted: #45572B;        /* Primary Olive Text for Subtitles/Accents */
  --text-subtle: #5B6F3E;       /* Muted Olive for Secondary Details */
  --border-light: #E0E4BC;      /* Delicate Matcha Border */
  --border-medium: #CFD5A5;     /* Medium Matcha Border */
  --primary-navy: var(--c-dark-charcoal); /* Backward compatibility alias */

  /* Shadows with Warm Olive Tint */
  --shadow-sm: 0 1px 3px rgba(69, 87, 43, 0.08), 0 1px 2px rgba(69, 87, 43, 0.04);
  --shadow-md: 0 4px 14px rgba(69, 87, 43, 0.10), 0 1px 3px rgba(69, 87, 43, 0.06);
  --shadow-lg: 0 12px 30px rgba(69, 87, 43, 0.12), 0 4px 10px rgba(69, 87, 43, 0.06);
  --shadow-xl: 0 20px 42px -8px rgba(69, 87, 43, 0.18);

  /* User-Specified Font Family Pairing */
  --font-display: 'Aboreto', cursive, sans-serif;
  --font-serif: 'Arapey', Georgia, serif;
  --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout Constants */
  --container-max: 1200px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.68;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: 74px; /* Space for mobile sticky CTA bar */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--c-dark-charcoal);
  font-weight: 600;
  line-height: 1.25;
}

.font-display {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}

.font-serif {
  font-family: var(--font-serif);
}

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

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.section-padding {
  padding-top: 4.75rem;
  padding-bottom: 4.75rem;
}

@media (min-width: 992px) {
  .section-padding {
    padding-top: 6.25rem;
    padding-bottom: 6.25rem;
  }
}

/* Top Announcement Banner */
.announcement-bar {
  background: var(--c-dark-charcoal);
  color: var(--c-light-linen);
  font-size: 0.8125rem;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 0.55rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(233, 235, 202, 0.2);
}

.announcement-bar strong {
  font-weight: 600;
  color: #ffffff;
}

.announcement-bar a {
  color: var(--c-pale-celadon);
  font-weight: 600;
  margin-left: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.announcement-bar a:hover {
  color: #ffffff;
}

/* Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 253, 246, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(36, 45, 22, 0.15);
}

.brand-info {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--c-dark-charcoal);
  line-height: 1.15;
  white-space: nowrap;
}

.brand-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--c-medium-green);
  font-weight: 400;
  line-height: 1.1;
  margin-top: 1px;
  white-space: nowrap;
}

/* Desktop Navigation */
.nav-menu {
  display: none;
  align-items: center;
  list-style: none;
  gap: 1.25rem;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
  }
}

@media (min-width: 1200px) {
  .nav-menu {
    gap: 1.65rem;
  }
}

.nav-link {
  font-size: 0.825rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
  display: inline-block;
}

.nav-link:hover, .nav-link.active {
  color: var(--c-dark-charcoal);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--c-medium-green);
  border-radius: 2px;
}

.header-cta-group {
  display: none;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .header-cta-group {
    display: flex;
  }
}

/* Dedicated Page Header for Subpages (Dark text on light background) */
.page-hero {
  background: linear-gradient(175deg, var(--bg-main) 0%, var(--bg-card-subtle) 45%, var(--bg-tinted) 100%);
  padding: 4.25rem 0 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.page-hero-title {
  color: var(--c-dark-charcoal) !important;
  font-family: var(--font-display) !important;
  font-size: 2.35rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-top: 0.75rem;
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .page-hero-title {
    font-size: 2.85rem;
  }
}

.page-hero-desc {
  color: var(--text-muted) !important;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  transition: var(--transition);
}

@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-dark-charcoal);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-main);
  z-index: 999;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  border-top: 1px solid var(--border-light);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-link {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--c-dark-charcoal);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(226, 229, 190, 0.5);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--bg-tinted);
  color: var(--c-medium-green);
}

.mobile-drawer-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.45rem 1.15rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 0.95rem;
}

/* Primary Button: Herbaceous Olive (#45572B) */
.btn-primary {
  background: var(--c-medium-green);
  color: #ffffff;
  border-color: var(--c-medium-green);
  box-shadow: 0 4px 14px rgba(69, 87, 43, 0.28);
}

.btn-primary:hover {
  background: var(--c-deep-pine);
  border-color: var(--c-deep-pine);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(53, 67, 32, 0.35);
}

/* Dark Button: Forest Olive Charcoal (#242D16) */
.btn-navy {
  background: var(--c-dark-charcoal);
  color: #ffffff;
  border-color: var(--c-dark-charcoal);
}

.btn-navy:hover {
  background: var(--c-deep-pine);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-navy {
  background: transparent;
  color: var(--c-dark-charcoal);
  border-color: var(--c-dark-charcoal);
}

.btn-outline-navy:hover {
  background: var(--c-dark-charcoal);
  color: #ffffff;
}

.btn-whatsapp {
  background: #36652B;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(54, 101, 43, 0.25);
}

.btn-whatsapp:hover {
  background: #2B5222;
  color: #ffffff;
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-gold, .badge-sage {
  background: var(--bg-tinted);
  color: var(--c-dark-charcoal);
  border: 1px solid var(--c-pale-celadon);
}

.badge-navy {
  background: rgba(36, 45, 22, 0.08);
  color: var(--c-dark-charcoal);
  border: 1px solid rgba(36, 45, 22, 0.15);
}

.badge-teal {
  background: var(--bg-card-subtle);
  color: var(--c-dark-charcoal);
  border: 1px solid var(--border-medium);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(175deg, var(--bg-main) 0%, var(--bg-card-subtle) 45%, var(--bg-tinted) 100%);
  padding: 3.5rem 0 4.5rem;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

@media (min-width: 992px) {
  .hero-section {
    padding: 5rem 0 6.5rem;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--c-dark-charcoal);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-title .highlight {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--c-medium-green);
  letter-spacing: 0;
}

.hero-lead {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 400;
}

@media (min-width: 768px) {
  .hero-lead {
    font-size: 1.15rem;
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--c-medium-green);
  flex-shrink: 0;
}

/* Educator Profile Card with Substantially Bigger Photo */
.educator-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
}

.educator-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--c-pale-celadon), var(--c-medium-green), var(--c-dark-charcoal));
}

.educator-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 480px) {
  .educator-header {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1.5rem;
  }
}

.educator-photo-frame {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  border: 3.5px solid var(--c-pale-celadon);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
  background: var(--bg-tinted);
  position: relative;
}

.educator-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.4s ease;
}

.educator-photo-frame:hover .educator-photo {
  transform: scale(1.04);
}

.educator-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.educator-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  color: var(--c-dark-charcoal);
  margin-bottom: 0.15rem;
  line-height: 1.15;
}

.educator-role {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--c-medium-green);
  margin-bottom: 0.35rem;
}

.educator-exp {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}
}

.credentials-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 0;
}

.credentials-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.credentials-list li svg {
  color: var(--c-medium-green);
  margin-top: 3px;
  flex-shrink: 0;
}

.educator-quote {
  background: var(--bg-card-subtle);
  border-left: 3px solid var(--c-medium-green);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--c-dark-charcoal);
  line-height: 1.6;
}

/* Key Highlights / Feature Cards */
.highlights-section {
  background: var(--bg-surface-elevated, #FFFFFF);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.highlight-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
}

.highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(36, 45, 22, 0.08);
  border-color: rgba(69, 87, 43, 0.25);
}

.highlight-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg-card-subtle, #F6F8ED);
  border: 1px solid var(--border-light, #E0E4BC);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-medium-green, #45572B);
  margin-bottom: 1.25rem;
  transition: all var(--transition-base, 0.25s ease);
}

.highlight-card:hover .highlight-icon {
  background: var(--c-medium-green, #45572B);
  color: #FFFFFF;
  border-color: var(--c-medium-green, #45572B);
  transform: scale(1.06);
}

.highlight-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  transition: stroke 0.25s ease;
}

.highlight-title {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-dark-charcoal, #364621);
  line-height: 1.3;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.highlight-desc {
  font-size: 0.95rem;
  color: var(--text-subtle, #5B6F3E);
  line-height: 1.6;
  margin: 0;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-subtitle {
  color: var(--c-medium-green);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--c-dark-charcoal);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.35rem;
  }
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Class Formats */
.class-format-section {
  background: var(--bg-main);
}

.format-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .format-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.format-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-medium);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.format-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-medium-green);
}

.format-pill {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

.format-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--bg-tinted);
  color: var(--c-dark-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.format-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--c-dark-charcoal);
  margin-bottom: 0.5rem;
}

.format-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.format-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.format-features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-main);
}

.format-features li svg {
  color: var(--c-medium-green);
  flex-shrink: 0;
}

/* Course Explorer Tabs */
.courses-section {
  background: #ffffff;
}

.course-tabs-wrapper {
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.course-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 0.4rem;
  min-width: max-content;
  background: var(--bg-card-subtle);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  margin: 0 auto;
  border: 1px solid var(--border-light);
}

@media (min-width: 768px) {
  .course-tabs {
    justify-content: center;
    max-width: 860px;
  }
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.825rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--c-dark-charcoal);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(36, 45, 22, 0.25);
}

.tab-btn:hover:not(.active) {
  color: var(--c-dark-charcoal);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.35s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.course-showcase-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 992px) {
  .course-showcase-card {
    padding: 3rem;
  }
}

.course-detail-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.course-detail-title {
  font-size: 1.75rem;
  font-family: var(--font-serif);
  color: var(--c-dark-charcoal);
}

.course-detail-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 800px;
  line-height: 1.7;
}

.syllabus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .syllabus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .syllabus-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.syllabus-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.syllabus-tag {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-medium-green);
  margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
}

.syllabus-box-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-dark-charcoal);
  margin-bottom: 0.75rem;
}

.syllabus-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.syllabus-box li {
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.1rem;
  line-height: 1.55;
}

.syllabus-box li::before {
  content: '•';
  color: var(--c-medium-green);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Complimentary Services Grid */
.services-section {
  background: var(--bg-main);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-medium);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-medium-green);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-tinted);
  color: var(--c-dark-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--c-dark-charcoal);
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Student Achievements Section */
.achievements-section {
  background: #ffffff;
}

.achievements-banner {
  background: linear-gradient(135deg, var(--c-deep-pine), var(--c-dark-charcoal));
  border-radius: var(--radius-lg);
  color: var(--c-light-linen);
  padding: 2.5rem 1.75rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .achievements-banner {
    padding: 3rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.achievements-text h3 {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.achievements-text p {
  color: var(--c-light-linen);
  font-size: 0.925rem;
  max-width: 600px;
}

.awards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .awards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.award-category-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.award-cat-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--c-dark-charcoal);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.award-cat-title svg {
  color: var(--c-medium-green);
}

.award-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.award-list-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.875rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--border-light);
}

.award-name {
  font-weight: 500;
  color: var(--c-dark-charcoal);
}

.award-link {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.award-link:hover {
  color: var(--c-primary-dark);
  text-decoration: underline;
}

.award-medal {
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}

.medal-gold {
  background: var(--bg-tinted);
  color: var(--c-dark-charcoal);
  border: 1px solid var(--c-pale-celadon);
}

.medal-silver {
  background: #ffffff;
  color: var(--text-muted);
  border: 1px solid var(--border-medium);
}

.medal-bronze {
  background: #fdf5ea;
  color: #8c531b;
  border: 1px solid #ebd3b4;
}

/* Missions & Outreach Section */
.missions-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-tinted) 100%);
  position: relative;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .mission-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.mission-quote-box {
  background: var(--c-dark-charcoal);
  color: #ffffff;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mission-motto {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--c-light-linen);
}

.mission-author {
  color: var(--c-pale-celadon);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.mission-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 576px) {
  .mission-pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-medium);
  text-align: center;
}

.pillar-icon {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.pillar-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-dark-charcoal);
  margin-bottom: 0.25rem;
}

.pillar-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* Testimonials Screenshot Gallery */
.testimonials-section {
  background: #ffffff;
}

.testimonials-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonials-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.75rem;
  }
}

.testimonial-thumb-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  aspect-ratio: 4 / 5;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-base);
}

.testimonial-thumb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(36, 45, 22, 0.12);
  border-color: var(--c-primary);
}

.testimonial-thumb-card:hover img {
  transform: scale(1.03);
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 45, 22, 0) 60%, rgba(36, 45, 22, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.testimonial-thumb-card:hover .thumb-overlay {
  opacity: 1;
}

.thumb-overlay span {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--c-primary);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 12, 0.88);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: relative;
  z-index: 10;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  object-fit: contain;
  background: #ffffff;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--c-pale-celadon);
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-initials {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--c-dark-charcoal);
  color: var(--c-pale-celadon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.author-info h4 {
  font-family: var(--font-sans);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--c-dark-charcoal);
  margin-bottom: 0.15rem;
}

.author-info span {
  font-size: 0.785rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-section {
  background: var(--bg-main);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--c-medium-green);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-dark-charcoal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 1rem;
}

.faq-toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  color: var(--c-dark-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  font-size: 0.75rem;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
  background: var(--bg-tinted);
  color: var(--c-medium-green);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.65;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Contact Section & Form */
.contact-section {
  background: #ffffff;
}

.contact-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

@media (min-width: 992px) {
  .contact-card-grid {
    grid-template-columns: 1fr 1.15fr;
  }
}

.contact-info-panel {
  background: var(--c-dark-charcoal);
  color: #ffffff;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-panel h3 {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.contact-info-panel p {
  color: var(--c-light-linen);
  font-size: 0.925rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-method-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.method-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(233, 235, 202, 0.15);
  border: 1px solid rgba(233, 235, 202, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-pale-celadon);
  flex-shrink: 0;
}

.method-text h5 {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.method-text a, .method-text p {
  color: var(--c-light-linen);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.method-text a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.contact-form-panel {
  padding: 2.5rem 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 576px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-col-full {
    grid-column: span 2;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--c-dark-charcoal);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--c-medium-green);
  box-shadow: 0 0 0 3px rgba(69, 87, 43, 0.18);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.location-card {
  margin-top: 2rem;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .location-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Footer */
.site-footer {
  background: var(--c-dark-charcoal);
  color: var(--c-light-linen);
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(233, 235, 202, 0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.footer-brand h4 {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.footer-motto-quote {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--c-light-linen);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-motto-author {
  color: var(--c-pale-celadon);
  font-size: 0.825rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--c-light-linen);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(233, 235, 202, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--c-pale-celadon);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 990;
  background: rgba(255, 253, 246, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-medium);
  box-shadow: 0 -4px 16px rgba(36, 45, 22, 0.1);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 992px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.mobile-sticky-bar .btn {
  flex: 1;
  padding: 0.75rem 0.5rem;
  font-size: 0.85rem;
}
