/* CSS Variables & Design System */
:root {
  /* Colors */
  --color-primary: #111827; /* Deep gray for text when needed */
  --color-primary-foreground: #ffffff;
  --color-secondary: #FFF9DB; /* soft warm yellow background */
  --color-secondary-foreground: #1f2937;
  --color-accent: #FACC15; /* yellow 400 */
  --color-accent-foreground: #111827; /* dark text on yellow */
  --color-background: #ffffff;
  --color-foreground: #1f2937;
  --color-muted: #FDE68A; /* yellow 300 */
  --color-muted-foreground: #6b7280;
  --color-card: #ffffff;
  --color-card-foreground: #1f2937;
  --color-border: #F4F4F5; /* subtle neutral border */
  --color-input: #E5E7EB;
  --color-input-background: #ffffff;
  --color-ring: #FACC15;
  --color-destructive: #dc2626;

  /* Spacing */
  --spacing: 0.25rem;
  --radius: 0.75rem; /* slightly rounder like screenshot */

  /* Typography */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Brown brand tone (as in screenshot) */
  --brown-700: #6b4e16;
  --brown-650: #7a5d1a;
  --brown-600: #8a6b21;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 { font-weight: 700; letter-spacing: -0.01em; }
h2 { font-weight: 600; letter-spacing: -0.005em; }

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-6 { width: 1.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-6 { height: 1.5rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-2 { padding: 0.5rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-6xl { font-size: 3.75rem; }
.text-sm { font-size: 0.875rem; }

.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: calc(var(--radius) + 0.25rem); }
.rounded-full { border-radius: 9999px; }

.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

.transition-all { transition: all 0.3s ease; }
.transition-colors { transition: color 0.3s, background-color 0.3s; }
.transition-opacity { transition: opacity 0.3s; }
.transition-transform { transition: transform 0.3s; }

.hover\:opacity-80:hover { opacity: 0.8; }

.bg-primary { background-color: var(--color-primary); }
.bg-accent { background-color: var(--color-accent); }
.bg-white { background-color: white; }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-foreground { color: var(--color-foreground); }
.text-white { color: white; }
.text-primary-foreground { color: var(--color-primary-foreground); }
.text-accent-foreground { color: var(--color-accent-foreground); }
.text-muted-foreground { color: var(--color-muted-foreground); }

.border { border: 1px solid var(--color-border); }
.border-2 { border-width: 2px; }
.border-t { border-top: 1px solid var(--color-border); }
.border-l-4 { border-left: 4px solid; }

/* Specific Utilities */
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.z-10 { z-index: 10; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; left: 0; right: 0; bottom: 0; }
.overflow-hidden { overflow: hidden; }

/* Header */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

header button, header a {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.nav-link {
  color: var(--color-foreground);
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: 500;
}

.mobile-nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  transition: background-color 0.3s, color 0.3s;
}

.mobile-nav-link:hover {
  background-color: var(--color-secondary);
}

.mobile-nav-link.active {
  background-color: rgba(250, 204, 21, 0.12);
  color: var(--color-primary);
}

/* Mobile nav container styling (make it fixed under header and above overlay) */
#mobile-nav {
  position: fixed;
  top: var(--header-height, 80px);
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 10px 24px -8px rgba(17, 24, 39, 0.12);
  border-radius: 0 0 var(--radius) var(--radius);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 60; /* above overlay (40) and header (50) */
  pointer-events: none; /* disable clicks when closed */
}

#mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  display: block !important;
}

/* Ensure burger button is visible on small screens */
#mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(to right, var(--color-accent), #FDE047);
  color: var(--color-accent-foreground);
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 9999px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(250, 204, 21, 0.35);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  box-shadow: 0 10px 22px rgba(250, 204, 21, 0.45);
  filter: brightness(1.03);
}

/* Small button modifier */
.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
  border-radius: calc(var(--radius) + 2px);
  font-weight: 600;
  box-shadow: 0 6px 12px rgba(250, 204, 21, 0.28);
}

/* Rectangular button modifier */
.btn-rect {
  border-radius: 10px !important;
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--color-accent);
  border-radius: calc(var(--radius) + 2px);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-accent-foreground);
}

/* Home hero: make the primary button compact and rectangular (not stretched) */
.hero-section .btn-primary.btn-rect {
  border-radius: 8px !important;
  padding: 0.6rem 1rem !important; /* compact horizontal padding */
  width: auto !important;          /* never full-width here */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;             /* avoid multi-line */
  box-shadow: 0 6px 12px rgba(250, 204, 21, 0.28); /* smaller shadow */
}

/* Fix: Hero CTA should be a compact rectangular button and not stretch full width */
#hero-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: none !important;
  padding: 0.6rem 1rem !important;
  border-radius: 8px !important;
  white-space: nowrap;
  line-height: 1.2;
  box-shadow: 0 6px 12px rgba(250, 204, 21, 0.28);
}

/* Safety: prevent any global rule making hero buttons full width */
.hero-section button {
  width: auto !important;
}

/* Cards */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.5rem;
  transition: all 0.3s;
}

.card:hover {
  box-shadow: 0 10px 24px -8px rgba(17, 24, 39, 0.12);
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-height, 80px));
  display: grid;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  z-index: 10;
  color: white;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* ensure children (button) don't stretch */
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.7s ease-in-out forwards;
}

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

/* Reveal on Scroll */
.reveal {
  opacity: 0;
  transform: translateY(0.5rem);
  transition: all 0.7s ease;
}

.reveal.shown {
  opacity: 1;
  transform: translateY(0);
}

/* Feature Cards */
.feature-card {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -12px rgba(17, 24, 39, 0.2);
  border-color: rgba(250, 204, 21, 0.45);
  background: linear-gradient(180deg, rgba(255, 249, 219, 0.35), rgba(255,255,255,1));
}

/* Feature icon visual refresh: outlined icon on yellow circle */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 9999px;
  background: #FACC15; /* solid yellow like screenshot */
  box-shadow: 0 6px 14px rgba(250, 204, 21, 0.35);
  margin-bottom: 1rem;
}
.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: #2d2d2d; /* dark outline */
  fill: none;       /* outlined look */
  stroke-width: 2.25;
}
/* Optional: subtle hover motion */
.feature-card:hover .feature-icon { transform: translateY(-2px); }

/* Photo Gallery */
.photo-grid {
  display: grid;
  gap: 1.5rem;
}

.photo-card {
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: calc(var(--radius) + 6px);
}

.photo-card:hover {
  transform: translateY(-4px);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.photo-overlay {
  pointer-events: none;
}

/* Team Grid */
.team-grid {
  display: grid;
  gap: 1rem;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.team-avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: linear-gradient(to bottom right, var(--color-secondary), var(--color-muted));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Program Cards */
.program-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.program-icon {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Toast Notifications */
.toast {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5rem;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success {
  border-left: 4px solid #22c55e;
}

.toast.error {
  border-left: 4px solid var(--color-destructive);
}

/* Tables */
.table-container {
  overflow-x: auto;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
}
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table caption.table-caption {
  text-align: left;
  padding: 0.75rem 1rem;
  color: var(--color-muted-foreground);
  font-size: 0.9rem;
}
.table thead th {
  text-align: left;
  background: linear-gradient(180deg, rgba(255, 249, 219, 0.35), rgba(255,255,255,1));
  color: var(--color-foreground);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.table tbody th[scope="row"],
.table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: top;
}
.table tbody tr:last-child th,
.table tbody tr:last-child td {
  border-bottom: none;
}
.table-striped tbody tr:nth-child(odd) {
  background: rgba(250, 204, 21, 0.05);
}
.table a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.table a:hover { border-bottom-color: rgba(0,0,0,0.15); }

/* Responsive */
@media (min-width: 768px) {
  .md\:hidden { display: none !important; }
  .md\:flex { display: flex !important; }
  .md\:grid { display: grid !important; }
  .md\:flex-row { flex-direction: row !important; }
  .md\:items-center { align-items: center !important; }
  .md\:justify-between { justify-content: space-between !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
  .md\:py-28 { padding-top: 7rem !important; padding-bottom: 7rem !important; }
  .md\:p-8 { padding: 2rem !important; }
  .md\:p-12 { padding: 3rem !important; }
  .md\:text-3xl { font-size: 1.875rem !important; }
  .md\:text-6xl { font-size: 3.75rem !important; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
}

/* Page Transitions */
.page-content {
  animation: fadeInPage 0.4s ease;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  header,
  footer,
  #toast-container {
    display: none;
  }
}

/* Subtle section backgrounds used on Home */
section[style*="FFF9DB"],
section[style*="FACC15"],
section[style*="FDE047"] {
  border-top: 1px solid rgba(0,0,0,0.03);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

/* CTA brown section */
.cta-brown {
  background: linear-gradient(180deg, var(--brown-650) 0%, var(--brown-700) 100%);
  color: #fff;
}

/* Footer styles */
.site-footer {
  background: linear-gradient(180deg, var(--brown-650) 0%, #5c4212 100%);
  color: #fff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FACC15, #FDE047, #FACC15);
}
.site-footer h3,
.site-footer p,
.site-footer li,
.site-footer a,
.site-footer strong { color: #fff; }
.footer-link {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  color: rgba(255,255,255,0.85);
}
.footer-link:hover { color: #FACC15; border-bottom-color: rgba(250,204,21,0.6); }
.footer-link.as-button { background: none; border: 1px solid transparent; cursor: pointer; padding: 0; font-size: inherit; text-align: left; }
.footer-link.as-button:hover { color: #FACC15; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 3rem;
  padding: 3.5rem 0 2.5rem;
}
.footer-col { min-width: 0; }
.footer-brand { max-width: 340px; }
.footer-logo img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1.15rem;
  opacity: 0.95;
}
.footer-claim {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FACC15 !important;
  margin-bottom: 0.4rem;
  letter-spacing: -0.005em;
}
.footer-tagline {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75) !important;
  line-height: 1.5;
}
.footer-heading {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FACC15 !important;
  font-weight: 800;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-link-external { display: inline-flex; align-items: center; gap: 0.35rem; }
.footer-link-external svg { opacity: 0.7; }

.footer-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.9);
}
.footer-address-line { display: flex; gap: 0.75rem; align-items: flex-start; }
.footer-address-line a { color: rgba(255,255,255,0.9); text-decoration: none; border-bottom: 1px solid rgba(250,204,21,0.4); }
.footer-address-line a:hover { color: #FACC15; }
.footer-icon { flex-shrink: 0; margin-top: 0.2rem; opacity: 0.75; color: #FACC15; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.85rem; color: rgba(255,255,255,0.65) !important; margin: 0; }
.footer-legal {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-legal .footer-link { font-size: 0.85rem; }

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
    padding: 3rem 0 2rem;
  }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 0 1.5rem;
  }
  .footer-logo img { height: 42px; margin-bottom: 0.9rem; }
  .footer-claim { font-size: 1.05rem; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0 1.5rem;
    gap: 0.85rem;
  }
}

/* Contact form panel + fields */
.form-panel {
  background: linear-gradient(180deg, rgba(255, 249, 219, 0.35), rgba(255,255,255,1));
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  padding: 1.25rem;
}
.form-group { margin-bottom: 1rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04) inset;
}
.form-input { height: 48px; }
.form-textarea { min-height: 120px; resize: vertical; }
.checkbox-wrapper { align-items: flex-start; line-height: 1.4; }
.checkbox { width: 18px; height: 18px; accent-color: var(--color-accent); }

/* Placeholder color */
.form-input::placeholder,
.form-textarea::placeholder { color: #9CA3AF; }

/* Inputs focus */
.form-input:focus,
.form-textarea:focus { outline: 2px solid rgba(250, 204, 21, 0.6); outline-offset: 2px; border-color: rgba(250, 204, 21, 0.7); }
.form-input:hover, .form-textarea:hover { border-color: #e5e7eb; background: #fffdfa; }

/* Make primary sections smoother */
.card { border-color: rgba(0,0,0,0.06); }

/* Ensure section before footer has spacing when full-screen hero used */
.page-content { animation: fadeInPage 0.4s ease; }

/* Mobile Menu Overlay */
#mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 40;
}

/* Force-mobile header mode: when header has .force-mobile, show burger & hide desktop nav even on large screens */
#header.force-mobile #desktop-nav { display: none !important; }
#header.force-mobile #mobile-menu-btn { display: inline-flex !important; }
#header.force-mobile #mobile-nav { top: 100%; left: 0; right: 0; }

/* Make sure the header row wraps nicely on very narrow screens */
@media (max-width: 380px) {
  header .h-20 { height: auto; padding-top: 0.75rem; padding-bottom: 0.75rem; }
}

/* Ensure mobile overlay is hidden by default */
#mobile-overlay.hidden { display: none; }

/* Force-mobile header mode overrides (also override md:hidden) */
#header.force-mobile #mobile-nav { display: block !important; }

/* Ensure open mobile menu is always displayed, overriding any .hidden or responsive utility */
#mobile-nav.open { display: block !important; }

/* No absolute URLs used; ensure hero backgrounds or assets referenced via inline styles get './' prefix in HTML/JS. */

/* =========================================
   Redesigned Home Page
   ========================================= */

.home-page { background: linear-gradient(180deg, #FFFDF3 0%, #FFFCEC 60%, #FFF9DB 100%); }

/* Hero fade into showcase (no white gap) */
.hero-section { position: relative; }
.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(255,253,243,0) 0%, #FFFDF3 100%);
  pointer-events: none;
  z-index: 5;
}

/* Section headings */
.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}
.section-heading .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a17e0e;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.18);
  margin-bottom: 0.9rem;
}
.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.section-heading p {
  color: var(--color-muted-foreground);
  font-size: 1.05rem;
}
.section-heading.light .eyebrow { color: #6b4e16; }

/* Showcase / Bento grid */
.showcase-section {
  padding: 4rem 0 3rem;
  background: transparent;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 170px;
  gap: 0.9rem;
}
.bento-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px -14px rgba(17,24,39,0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  grid-column: span 1;
  grid-row: span 1;
  min-height: 170px;
}
.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px -18px rgba(17,24,39,0.4);
}
.bento-item.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-item.bento-wide  { grid-column: span 2; grid-row: span 1; }
.bento-item.bento-tall  { grid-column: span 1; grid-row: span 2; }
.bento-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.65) 100%);
  transition: background 0.3s ease;
}
.bento-item:hover .bento-shade {
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.75) 100%);
}
.bento-caption {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0.85rem;
  z-index: 2;
}
.bento-caption h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  margin: 0;
}
.bento-item.bento-large .bento-caption h3 { font-size: 1.4rem; }
.bento-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1f2937;
  background: #FACC15;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

@media (max-width: 820px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; gap: 0.8rem; }
  .bento-item.bento-large { grid-column: span 2; grid-row: span 2; }
  .bento-item.bento-wide  { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 480px) {
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 0.75rem; }
  .bento-item,
  .bento-item.bento-large,
  .bento-item.bento-wide {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 4 / 3;
    min-height: 220px;
  }
}

/* Pillars ribbon */
.pillars-ribbon {
  margin-top: 2.5rem;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 28px -18px rgba(17,24,39,0.2);
  border: 1px solid rgba(250, 204, 21, 0.35);
  flex-wrap: wrap;
}
.pillar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 200px;
  min-width: 200px;
}
.pillar-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #FACC15;
  box-shadow: 0 0 0 5px rgba(250, 204, 21, 0.18);
  flex-shrink: 0;
}
.pillar-label {
  display: block;
  font-weight: 700;
  color: #1f2937;
  font-size: 1rem;
}
.pillar-text {
  display: block;
  color: var(--color-muted-foreground);
  font-size: 0.88rem;
}
.pillar-sep {
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.08), transparent);
}
@media (max-width: 720px) {
  .pillar-sep { display: none; }
}

/* Meeting section – seamless */
.meeting-section {
  padding: 3rem 0 3.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(250, 204, 21, 0.12) 100%);
}
.meet-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.meet-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(250, 204, 21, 0.35);
  padding: 1.5rem 1.25rem;
  text-align: left;
  box-shadow: 0 10px 24px -18px rgba(17, 24, 39, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.meet-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px -18px rgba(17, 24, 39, 0.3);
}
.meet-icon {
  width: 32px; height: 32px;
  color: #b48a10;
  margin-bottom: 0.6rem;
}
.meet-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.meet-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
}
@media (max-width: 780px) {
  .meet-cards { grid-template-columns: 1fr; }
}

/* Journey (3 steps) section */
.journey-section {
  padding: 4rem 0 5rem;
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.12) 0%, rgba(250, 204, 21, 0.28) 100%);
  position: relative;
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.step-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 12px 28px -18px rgba(17,24,39,0.2);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -18px rgba(17,24,39,0.28);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #FACC15, #FDE047);
  color: #1f2937;
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 50%;
  margin-bottom: 0.9rem;
  box-shadow: 0 6px 14px rgba(250, 204, 21, 0.4);
}
.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  font-weight: 700;
  color: #1f2937;
}
.step-card p {
  color: var(--color-muted-foreground);
  font-size: 0.95rem;
  line-height: 1.55;
}
.step-arrow {
  align-self: center;
  color: #b48a10;
  font-size: 1.75rem;
  font-weight: 700;
  opacity: 0.6;
}
@media (max-width: 860px) {
  .steps-grid { grid-template-columns: 1fr; }
  .step-arrow { transform: rotate(90deg); justify-self: center; }
}

/* Journey CTA */
.journey-cta {
  text-align: center;
  margin-top: 3rem;
}
.journey-quote {
  font-size: 1.35rem;
  font-style: italic;
  color: #4b3714;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
  padding: 0 0.5rem;
}
.quote-mark {
  color: #FACC15;
  font-size: 2rem;
  font-family: Georgia, serif;
  line-height: 0;
  vertical-align: -0.35em;
}
.quote-mark-end { vertical-align: -0.1em; }
.btn-cta {
  padding: 0.95rem 2rem !important;
  font-size: 1.05rem !important;
  box-shadow: 0 12px 26px rgba(250, 204, 21, 0.45) !important;
}

/* =========================================
   Semesterprogramm Page
   ========================================= */

.program-page {
  background: linear-gradient(180deg, #FFFDF3 0%, #FFF9DB 100%);
  padding-bottom: 3rem;
}
.program-hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
}
.program-hero .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a17e0e;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.18);
  margin-bottom: 0.9rem;
}
.program-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
}
.program-lead {
  color: var(--color-muted-foreground);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 1.5rem;
}
.program-cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.program-legend-section { padding: 0.5rem 0 1.5rem; }
.program-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 26px -20px rgba(17, 24, 39, 0.25);
}
.legend-item { display: flex; align-items: center; gap: 0.75rem; }
.legend-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 12px;
  font-weight: 800;
  color: #1f2937;
  flex-shrink: 0;
}
.legend-badge-G { background: #FACC15; }
.legend-badge-B { background: #F97316; color: #fff; }
.legend-badge-C { background: #DC2626; color: #fff; }
.legend-label { font-weight: 700; color: #1f2937; }
.legend-desc { font-size: 0.85rem; color: var(--color-muted-foreground); }
@media (max-width: 780px) {
  .program-legend { grid-template-columns: 1fr; }
}

.program-list-section { padding: 1rem 0 2rem; }
.program-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}
.program-event-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 22px -18px rgba(17, 24, 39, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.program-event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -20px rgba(17, 24, 39, 0.3);
  border-color: rgba(250, 204, 21, 0.5);
}
.pec-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.55rem;
  background: linear-gradient(180deg, rgba(255, 249, 219, 0.7), rgba(250, 204, 21, 0.18));
  border-radius: 14px;
  min-width: 72px;
  text-align: center;
}
.pec-date-range { min-width: 96px; padding-left: 0.75rem; padding-right: 0.75rem; }
.pec-date-range .pec-day { font-size: 1.35rem; letter-spacing: -0.02em; white-space: nowrap; }
.pec-day { font-size: 1.6rem; font-weight: 800; color: #1f2937; line-height: 1; }
.pec-month { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: #a17e0e; font-weight: 700; margin-top: 0.15rem; }
.program-event-card-weekend { grid-template-columns: 108px 1fr; }
.program-event-card-weekend::after {
  content: 'Wochenende';
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: #a17e0e;
  background: rgba(250, 204, 21, 0.18);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.program-event-card { position: relative; }
.pec-body { min-width: 0; }
.pec-weekday { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted-foreground); font-weight: 700; }
.pec-title { font-size: 1.1rem; font-weight: 700; color: #1f2937; margin: 0.15rem 0 0.2rem; }
.pec-time { font-size: 0.9rem; color: var(--color-muted-foreground); }
@media (max-width: 780px) {
  .program-list { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .program-event-card { grid-template-columns: 72px 1fr; gap: 0.75rem; padding: 0.85rem 0.9rem; }
  .program-event-card-weekend { grid-template-columns: 96px 1fr; }
  .pec-date { min-width: 60px; padding: 0.5rem 0.3rem; }
  .pec-date-range { min-width: 84px; }
  .pec-day { font-size: 1.4rem; }
  .pec-date-range .pec-day { font-size: 1.15rem; }
  .pec-title { font-size: 1rem; }
  .program-event-card-weekend::after { top: 0.5rem; right: 0.6rem; font-size: 0.6rem; }
}
.program-footnote {
  text-align: center;
  color: var(--color-muted-foreground);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

/* =========================================
   Team Page
   ========================================= */

.team-page {
  background: linear-gradient(180deg, #FFFDF3 0%, #FFF9DB 100%);
  padding-bottom: 4rem;
}
.team-hero {
  padding: 3.5rem 0 1.5rem;
}
.team-hero .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a17e0e;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.18);
  margin-bottom: 0.9rem;
}
.team-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
}
.team-lead {
  color: var(--color-muted-foreground);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
}
.team-content { padding: 1.5rem 0 2rem; }
.team-group { margin-bottom: 2.75rem; }
.team-group-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #6b4e16;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.25rem;
}
.team-group-title span { flex-shrink: 0; }
.team-group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.5), transparent);
}
.team-grid-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .team-grid-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .team-grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .team-grid-cards { grid-template-columns: 1fr; } }

.member-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 26px -18px rgba(17, 24, 39, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px -18px rgba(17, 24, 39, 0.28);
  border-color: rgba(250, 204, 21, 0.5);
}
.member-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #eee;
  overflow: hidden;
}
.member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.member-card:hover .member-photo { transform: scale(1.05); }
.member-role-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(255,255,255,0.95);
  color: #1f2937;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 10px -6px rgba(0,0,0,0.3);
}
.member-role-tag-lead {
  background: linear-gradient(135deg, #FACC15, #FDE047);
  color: #1f2937;
}
.member-info { padding: 1rem 1.1rem 1.15rem; }
.member-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.15rem;
}
.member-role {
  font-size: 0.88rem;
  color: var(--color-muted-foreground);
}

/* Featured Hauptleiter */
.team-group-featured .member-card-featured {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  overflow: hidden;
  max-width: 780px;
}
.team-group-featured .member-card-featured .member-photo-wrap { aspect-ratio: auto; height: 100%; min-height: 340px; }
.team-group-featured .member-card-featured .member-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.team-group-featured .member-card-featured .member-name { font-size: 1.75rem; }
.team-group-featured .member-card-featured .member-role { font-size: 1rem; margin-bottom: 0.75rem; }
.member-quote {
  font-style: italic;
  color: #4b3714;
  border-left: 3px solid #FACC15;
  padding-left: 0.85rem;
  margin-top: 0.5rem;
  font-size: 0.98rem;
}
@media (max-width: 700px) {
  .team-group-featured .member-card-featured { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .team-group-featured .member-card-featured .member-photo-wrap { min-height: 300px; aspect-ratio: 4/5; }
}

/* =========================================
   Contact Page
   ========================================= */

.contact-page {
  background: linear-gradient(180deg, #FFFDF3 0%, #FFF9DB 100%);
  padding-bottom: 4rem;
}
.contact-hero {
  padding: 3.5rem 0 1.5rem;
}
.contact-hero .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a17e0e;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.18);
  margin-bottom: 0.9rem;
}
.contact-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
}
.contact-lead {
  color: var(--color-muted-foreground);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
}
.contact-body { padding: 1.5rem 0 2rem; }
.contact-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-side { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.35rem 1.4rem;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 26px -20px rgba(17,24,39,0.2);
}
.contact-info-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: #1f2937;
}
.contact-info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.contact-info-list li { display: flex; flex-direction: column; gap: 0.15rem; }
.ci-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  font-weight: 700;
}
.contact-info-list a { color: #1f2937; text-decoration: none; border-bottom: 1px solid rgba(250, 204, 21, 0.6); font-weight: 500; }
.contact-info-list a:hover { color: #a17e0e; }

.contact-info-quote {
  background: linear-gradient(135deg, rgba(255, 249, 219, 0.9), rgba(250, 204, 21, 0.2));
  border-color: rgba(250, 204, 21, 0.5);
}
.contact-info-quote p {
  font-style: italic;
  color: #4b3714;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.contact-info-quote span {
  font-size: 0.85rem;
  color: var(--color-muted-foreground);
  font-weight: 600;
}

.contact-form {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 14px 30px -20px rgba(17,24,39,0.25);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form .form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-form .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
}
.contact-form .form-input,
.contact-form .form-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: #1f2937;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: none;
}
.contact-form .form-input { height: 48px; }
.contact-form .form-textarea { min-height: 140px; resize: vertical; }
.contact-form .form-input:focus,
.contact-form .form-textarea:focus {
  outline: none;
  border-color: #FACC15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.18);
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.form-hint { color: var(--color-muted-foreground); font-size: 0.85rem; }

/* Reduce footer top-margin since pages now flow */
footer.site-footer { margin-top: 0 !important; }

/* Remove old top/bottom hairlines that caused visible "bars" */
section[style*="FFF9DB"],
section[style*="FACC15"],
section[style*="FDE047"] {
  border-top: none;
  border-bottom: none;
}

/* =========================================
   Mobile responsiveness fine-tuning
   ========================================= */

/* Tablet & small laptop */
@media (max-width: 900px) {
  .showcase-section { padding: 3rem 0 2rem; }
  .meeting-section  { padding: 2.5rem 0 3rem; }
  .journey-section  { padding: 3rem 0 4rem; }
  .program-hero, .team-hero, .contact-hero { padding: 2.75rem 0 1.25rem; }
  .section-heading  { margin-bottom: 2rem; }
  .pillars-ribbon   { padding: 1rem 1.15rem; gap: 0.85rem; }
}

/* Phones */
@media (max-width: 640px) {
  .container { padding: 0 1rem; }

  /* Hero */
  .hero-section { min-height: calc(100vh - 64px); }
  .hero-content { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .hero-content h1 { font-size: clamp(2rem, 8vw, 2.6rem); line-height: 1.15; }
  .hero-content h2 { font-size: clamp(1rem, 4.5vw, 1.25rem); margin-top: 0.75rem; }
  .hero-fade { height: 80px; }

  /* Section headings */
  .section-heading { margin: 0 auto 1.75rem; }
  .section-heading h2 { font-size: clamp(1.35rem, 6vw, 1.7rem); }
  .section-heading p { font-size: 0.98rem; }
  .section-heading .eyebrow,
  .program-hero .eyebrow,
  .team-hero .eyebrow,
  .contact-hero .eyebrow { font-size: 0.72rem; padding: 0.25rem 0.6rem; }

  /* Showcase / bento */
  .showcase-section { padding: 2.25rem 0 1.75rem; }
  .bento-caption h3 { font-size: 1rem; }
  .bento-item.bento-large .bento-caption h3 { font-size: 1.15rem; }
  .bento-tag { font-size: 0.62rem; padding: 0.2rem 0.45rem; }

  /* Pillars */
  .pillars-ribbon {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    margin-top: 1.75rem;
    gap: 0.85rem;
  }
  .pillar { flex: 1 1 100%; min-width: 0; width: 100%; }
  .pillar-sep { display: none; }

  /* Meeting section */
  .meeting-section { padding: 2rem 0 2.5rem; }
  .meet-cards { gap: 0.75rem; }
  .meet-card { padding: 1.15rem 1rem; }
  .meet-icon { width: 26px; height: 26px; margin-bottom: 0.4rem; }
  .meet-value { font-size: 1rem; }

  /* Journey */
  .journey-section { padding: 2.5rem 0 3rem; }
  .step-card { padding: 1.3rem 1.15rem; }
  .step-card h3 { font-size: 1.05rem; }
  .step-card p { font-size: 0.9rem; }
  .step-number { width: 38px; height: 38px; font-size: 1.05rem; margin-bottom: 0.65rem; }
  .step-arrow { font-size: 1.4rem; margin: -0.25rem 0; }
  .journey-cta { margin-top: 2rem; }
  .journey-quote { font-size: 1.1rem; }
  .btn-cta { padding: 0.85rem 1.5rem !important; font-size: 1rem !important; }

  /* Program */
  .program-hero h1 { font-size: clamp(1.7rem, 7vw, 2rem); }
  .program-lead   { font-size: 1rem; }
  .program-cta-row { gap: 0.5rem; }
  .program-cta-row .btn-primary,
  .program-cta-row .btn-outline { width: 100%; text-align: center; }

  /* Team */
  .team-hero h1  { font-size: clamp(1.7rem, 7vw, 2rem); }
  .team-lead     { font-size: 1rem; }
  .team-group    { margin-bottom: 2rem; }
  .team-group-title { font-size: 1rem; }
  .team-grid-cards { gap: 0.9rem; }
  .member-name { font-size: 1.05rem; }
  .member-role { font-size: 0.82rem; }
  .member-role-tag { font-size: 0.7rem; padding: 0.25rem 0.55rem; top: 0.6rem; left: 0.6rem; }

  /* Contact */
  .contact-hero h1 { font-size: clamp(1.7rem, 7vw, 2rem); }
  .contact-lead    { font-size: 1rem; }
  .contact-grid    { gap: 1rem; }
  .contact-form    { padding: 1.15rem; border-radius: 16px; }
  .contact-info-card { padding: 1.1rem 1.15rem; border-radius: 14px; }
  .form-actions   { flex-direction: column; align-items: stretch; }
  .form-actions .btn-primary { width: 100%; text-align: center; }
  .form-hint      { text-align: center; }

  /* Footer */
  .site-footer .grid { gap: 1.5rem; }
}

/* Very small phones */
@media (max-width: 380px) {
  .container { padding: 0 0.85rem; }
  .hero-content h1 { font-size: 1.9rem; }
  .hero-content h2 { font-size: 0.95rem; }
  .bento-item,
  .bento-item.bento-large,
  .bento-item.bento-wide { min-height: 200px; }
  .step-card { padding: 1.15rem 1rem; }
  .contact-form { padding: 1rem; }
}

