/* ---------- HERO ---------- */
.hero {
  position: relative;
  display: block;
  padding: 110px 32px 30px; /* Top padding clears the fixed 64px navbar */
  overflow: hidden;
  background: var(--dark-blue);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12; /* Tone down image opacity to make text pop clearly */
  filter: grayscale(20%) contrast(110%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-dark-brand);
  z-index: 1;
}

/* Background floating glow orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 2;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-green) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: orbFloat 12s ease-in-out infinite alternate;
}

.hero-orb-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--accent-orange) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  animation: orbFloat 16s ease-in-out infinite alternate-reverse;
}

.hero-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--medium-blue) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat 20s ease-in-out infinite alternate;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.1); }
}

.hero-title {
  font-size: var(--fs-hero-title);
  font-weight: 900;
  color: var(--white);
  line-height: var(--lh-hero-title);
  letter-spacing: var(--ls-hero-title);
  margin-bottom: 20px;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, var(--white) 50%, var(--light-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 20px rgba(0,0,0,0.15);
}



.hero-accent {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--accent-green);
  position: relative;
  background: linear-gradient(135deg, var(--accent-green) 30%, #34d27a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-accent::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-green) 50%, transparent);
  border-radius: 2px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-hero-body);
  line-height: var(--lh-hero-body);
  letter-spacing: var(--ls-hero-body);
  margin-bottom: 32px;
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center; /* Center buttons horizontally */
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero CTA button premium overrides */
.hero-cta .btn-green {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition);
}

.hero-cta .btn-green:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(40, 167, 69, 0.55);
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 28px;
  border-radius: 50px;
}

.btn-play:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-green);
  transform: translateY(-3px);
}

.play-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; /* Reduced from 32px */
  height: 26px; /* Reduced from 32px */
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
  transition: all var(--transition);
}

.play-circle svg {
  width: 13px !important; /* Scaled down SVG icon */
  height: 13px !important;
}

.btn-play:hover .play-circle {
  border-color: var(--accent-green);
  background: rgba(40, 167, 69, 0.2);
  transform: scale(1.1);
}

/* Compact hero CTA buttons */
.hero-cta .btn {
  padding: 10px 24px; /* Reduced from 14px 32px */
  font-size: 0.95rem; /* Reduced from 1.05rem */
}

.hero-cta .btn-play {
  font-size: 0.95rem; /* Reduced from 1.05rem */
  padding: 9px 24px; /* Reduced from 13px 32px */
}

/* ---------- NEXT UPCOMING EVENT — positioning anchors ----------
   The featured event card lives in the hero on desktop and is moved beneath
   the Stats section on mobile (< 768px) by main.js. These anchors are its two
   homes; card styling lives in the FEATURED UPCOMING EVENT block below. */
#next-event-hero-anchor { display: contents; }

#next-event-mobile-anchor:empty { display: none; }

#next-event-mobile-anchor {
  padding: 28px 16px 4px;
}

/* ---------- MAIN CONTENT (Programs + Sidebar) ---------- */
.main-content {
  padding: 56px 40px 40px;
}

.main-content-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
}

/* Section title */
.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 28px;
}

/* Programs grid */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
}

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

.program-card-img {
  height: 140px;
  overflow: hidden;
}

.program-card-img img,
.program-card-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.program-card:hover .program-card-img img,
.program-card:hover .program-card-img video {
  transform: scale(1.06);
}

.program-card-body {
  padding: 14px 16px 18px;
}

.program-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.program-card-body p {
  font-size: 0.85rem;
  color: var(--gray-700);
}

.clubs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 0.8rem;
  color: var(--gray-700);
}

.clubs-list li::before {
  content: '\2022  ';
  color: var(--accent-green);
}

/* Support sidebar */
.support-sidebar {
  background: var(--dark-blue);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  color: var(--white);
  position: sticky;
  top: 80px;
}

.sidebar-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.support-tier {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: background var(--transition);
}

.support-tier:hover {
  background: rgba(255, 255, 255, 0.12);
}

.tier-emoji {
  font-size: 1.3rem;
}

.tier-amount {
  font-size: 1.25rem;
  font-weight: 800;
}

.tier-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

.btn-donate-large {
  display: block;
  text-align: center;
  margin-top: 18px;
  padding: 13px 0;
  width: 100%;
  background: var(--accent-orange);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all var(--transition);
}

.btn-donate-large:hover {
  background: #d0752f;
  transform: translateY(-2px);
}

/* ---------- STORIES + EVENTS ---------- */
.stories-events {
  padding: 20px 40px 48px;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: start;
}

/* Student stories */
.student-stories {
  padding-top: 8px;
}

.story-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.story-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.story-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-text p {
  font-size: 0.92rem;
  color: var(--gray-700);
  margin-bottom: 8px;
  font-style: italic;
}

.story-author {
  font-size: 0.82rem;
  color: var(--accent-green);
}

/* Events header */
.events-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.view-all {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-green);
  transition: color var(--transition);
}

.view-all:hover {
  color: var(--accent-green-dark);
}

/* Events grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.event-card-img {
  height: 110px;
  overflow: hidden;
}

.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

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

.event-card-body {
  padding: 12px 14px 14px;
}

.event-card-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.event-date {
  font-size: 0.82rem;
  color: var(--gray-500);
}

.event-address {
  font-size: 0.82rem;
  color: var(--gray-500);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--gradient-dark-brand);
  color: var(--white);
  padding-top: 0;
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding: 48px 40px;
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col--links {
  align-items: center;
  text-align: center;
}

.footer-col-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
}

.footer-tagline {
  font-size: 0.72rem;
  color: var(--gray-500);
  letter-spacing: 0.5px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer-info a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-info a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-icon {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.social-icon:hover {
  color: var(--white);
}

.footer-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-footer-outline {
  padding: 9px 22px;
  border: 2px solid var(--white);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all var(--transition);
}

.btn-footer-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-footer-green {
  padding: 9px 22px;
  background: var(--accent-green);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all var(--transition);
}

.btn-footer-green:hover {
  background: var(--accent-green-dark);
  transform: translateY(-1px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 14px 40px;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.footer-legal-links {
  margin-top: 6px;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 0.72rem;
  transition: color var(--transition);
}

.footer-legal-links a:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1100px) {
  .main-content-inner {
    grid-template-columns: 1fr;
  }

  .support-sidebar {
    position: static;
    max-width: 500px;
    margin: 0 auto;
  }

  .stories-events {
    grid-template-columns: 1fr;
  }
}

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

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

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-container {
    padding: 0 18px;
  }

  .hero {
    padding: 70px 20px 60px;
    min-height: 560px;
  }

  .hero-cta {
    gap: 10px;
  }

  .main-content {
    padding: 36px 16px 24px;
  }

  .stories-events {
    padding: 12px 16px 36px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 20px;
  }

  .footer-col--links {
    align-items: flex-start;
    text-align: left;
  }

  .footer-ctas {
    width: 100%;
  }

  .btn-footer-outline,
  .btn-footer-green {
    flex: 1;
    text-align: center;
  }

  /* Mobile nav open state — default (hero / transparent header) */
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #0c1c13;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }

  /* Mobile nav open state — scrolled (white header) */
  .site-header.scrolled .main-nav.open {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--gray-200);
  }

  .site-header.scrolled .main-nav.open .nav-link {
    color: var(--gray-700);
  }

  .site-header.scrolled .main-nav.open .nav-link:hover,
  .site-header.scrolled .main-nav.open .nav-link.active {
    color: var(--dark-blue);
    background: rgba(0, 0, 0, 0.04);
  }
}

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

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

}
/* ========== SHARED PAGE HERO (all interior pages) ========== */

.page-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 40px 100px;
  overflow: hidden;
  color: var(--white);
}

.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--gradient-dark-brand);
}

.page-hero .hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.35;
}
.page-hero .hero-orb-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--accent-green), transparent 70%);
  top: -120px; left: -80px;
  animation: orbFloat 8s ease-in-out infinite;
}
.page-hero .hero-orb-2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--accent-orange), transparent 70%);
  bottom: -80px; right: -60px;
  animation: orbFloat 11s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--mw-hero-content);
  width: 100%;
}

.page-hero-eyebrow {
  display: inline-block;
  background: rgba(40, 167, 69, 0.2);
  border: 1px solid rgba(40, 167, 69, 0.4);
  color: #6ee08a;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 50px;
  margin-bottom: 20px;
}

.page-hero-title {
  font-size: var(--fs-page-hero-title);
  font-weight: 900;
  line-height: var(--lh-page-hero-title);
  letter-spacing: var(--ls-page-hero-title);
  margin-bottom: 18px;
}

.page-hero-subtitle {
  font-size: var(--fs-page-hero-body);
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--lh-page-hero-body);
  letter-spacing: var(--ls-page-hero-body);
}

.page-hero .hero-wave {
  position: absolute; bottom: -1px; left: 0; right: 0; z-index: 3;
  line-height: 0;
}
.page-hero .hero-wave svg { width: 100%; height: 60px; display: block; }

@media (max-width: 768px) {
  .page-hero { padding: 110px 20px 80px; min-height: 300px; }
}

/* ========== EVENTS PAGE SPECIFIC ========== */
.events-hero {
  background: radial-gradient(circle at 15% 15%, rgba(40, 167, 69, 0.22) 0%, transparent 55%),
              radial-gradient(circle at 85% 85%, rgba(232, 131, 58, 0.18) 0%, transparent 55%),
              radial-gradient(circle at 50% 50%, rgba(42, 63, 107, 0.3) 0%, transparent 70%),
              linear-gradient(135deg, #091220 0%, #0c1c13 50%, #07160c 100%);
  padding: 140px 40px 60px;
  text-align: center;
  color: var(--white);
}

.events-main {
  padding: 60px 40px;
  min-height: 500px;
}

.events-container {
  max-width: 1200px;
  margin: 0 auto;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  font-weight: 600;
  color: var(--gray-700);
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.filter-btn.active {
  background: var(--accent-green);
  color: var(--white);
  border-color: var(--accent-green);
}

.events-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-red);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}

.status-badge.past {
  background: var(--gray-500);
}

.past-event {
  opacity: 0.7;
}

.past-event:hover {
  opacity: 1;
}

.loading-spinner {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--accent-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.end-message,
.error-msg,
.no-events-msg {
  text-align: center;
  color: var(--gray-500);
  margin: 40px 0;
  font-weight: 500;
}

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

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

  .filter-bar {
    flex-wrap: wrap;
  }
}

/* ========== ABOUT PAGE SPECIFIC ========== */
.about-hero {
  background: radial-gradient(circle at 15% 15%, rgba(40, 167, 69, 0.22) 0%, transparent 55%),
              radial-gradient(circle at 85% 85%, rgba(232, 131, 58, 0.18) 0%, transparent 55%),
              radial-gradient(circle at 50% 50%, rgba(42, 63, 107, 0.3) 0%, transparent 70%),
              linear-gradient(135deg, #091220 0%, #0c1c13 50%, #07160c 100%);
  padding: 140px 40px 60px;
  text-align: center;
  color: var(--white);
}

.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px;
}

.about-section {
  margin-bottom: 80px;
}

.section-title-sm {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.section-desc {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 36px;
  color: var(--gray-700);
  font-size: 1.05rem;
}

/* Mission & Vision */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.mission-card,
.vision-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--accent-green);
}

.vision-card {
  border-top-color: var(--accent-orange);
}

.mission-card p,
.vision-card p {
  color: var(--gray-700);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Impact Grid */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.impact-card {
  background: var(--white);
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.impact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.impact-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.impact-stat {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent-green);
  margin-bottom: 8px;
}

.impact-text {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* History Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 16px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-green);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent-green);
  z-index: 2;
}

.timeline-content {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.timeline-content h3 {
  font-size: 1.2rem;
  color: var(--dark-blue);
  margin-bottom: 8px;
  font-weight: 800;
}

.timeline-content p {
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.6;
}



/* Financial Downloads */
.financial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.download-card:hover {
  border-color: var(--accent-green);
  background: #f9fbf9;
  transform: translateY(-2px);
}

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

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

.download-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark-blue);
  margin-bottom: 4px;
}

.download-meta {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Board of Directors */
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.board-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  padding: 36px 28px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--board-accent, var(--medium-blue));
  transition: transform var(--transition), box-shadow var(--transition);
}

.board-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.board-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.board-card-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin: 0 0 4px;
}

.board-card-title {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--board-accent, var(--medium-blue));
  margin-bottom: 14px;
}

.board-card-role {
  color: var(--gray-700);
  line-height: 1.6;
  font-size: 0.98rem;
  margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .impact-grid,
  .team-grid,
  .board-grid,
  .financial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {

  .impact-grid,
  .team-grid,
  .board-grid,
  .financial-grid {
    grid-template-columns: 1fr;
  }

  .about-hero-title {
    font-size: 2.2rem;
  }

  .content-wrapper {
    padding: 40px 20px;
  }
}

/* ========== EVENT DETAILS PAGE ========== */
.event-details-hero {
  background: radial-gradient(circle at 15% 15%, rgba(40, 167, 69, 0.22) 0%, transparent 55%),
              radial-gradient(circle at 85% 85%, rgba(232, 131, 58, 0.18) 0%, transparent 55%),
              radial-gradient(circle at 50% 50%, rgba(42, 63, 107, 0.3) 0%, transparent 70%),
              linear-gradient(135deg, #091220 0%, #0c1c13 50%, #07160c 100%);
  padding: 140px 40px 60px;
  text-align: center;
  color: var(--white);
}

.event-details-hero .hero-title {
  margin-bottom: 20px;
}

.event-details-main {
  padding: 60px 40px;
  min-height: 500px;
}

.event-details-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.event-details-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
}

.event-details-content {
  padding: 40px;
}

.event-details-meta {
  display: flex;
  gap: 20px;
  color: var(--gray-700);
  margin-bottom: 30px;
  font-weight: 600;
  flex-wrap: wrap;
}

.event-details-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-details-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 40px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-green);
  font-weight: 600;
  margin-bottom: 24px;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--accent-green-dark);
}

@media (max-width: 768px) {
  .event-details-img {
    height: auto;
    max-height: 400px;
  }

  .event-details-content {
    padding: 24px;
  }
}

/* ========== TAG PILLS ========== */
.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-pill {
  display: inline-block;
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 50px;
  background: rgba(40, 167, 69, 0.1);
  color: var(--accent-green-dark);
  letter-spacing: 0.3px;
  text-transform: capitalize;
  transition: all var(--transition);
}

.tag-pill:hover {
  background: rgba(40, 167, 69, 0.2);
}

.detail-tags {
  margin-bottom: 24px;
}

.detail-tags .tag-pill {
  padding: 5px 16px;
  font-size: 0.8rem;
}

/* ========== PROGRAMS PAGE SPECIFIC ========== */
.programs-hero {
  background: radial-gradient(circle at 15% 15%, rgba(40, 167, 69, 0.22) 0%, transparent 55%),
              radial-gradient(circle at 85% 85%, rgba(232, 131, 58, 0.18) 0%, transparent 55%),
              radial-gradient(circle at 50% 50%, rgba(42, 63, 107, 0.3) 0%, transparent 70%),
              linear-gradient(135deg, #091220 0%, #0c1c13 50%, #07160c 100%);
  padding: 140px 40px 60px;
  text-align: center;
  color: var(--white);
}

.programs-main {
  padding: 60px 40px;
  min-height: 500px;
}

.programs-container {
  max-width: 1200px;
  margin: 0 auto;
}

.programs-grid-full {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.program-full-card {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
}

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

.program-full-card-img {
  width: 220px;
  min-height: 220px;
  flex-shrink: 0;
  overflow: hidden;
}

.program-full-card-img img,
.program-full-card-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.program-full-card:hover .program-full-card-img img,
.program-full-card:hover .program-full-card-img video {
  transform: scale(1.06);
}

.program-full-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.program-full-card-body h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--dark-blue);
}

.program-full-desc {
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.6;
  flex-grow: 1;
}

.program-cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-green);
  transition: color var(--transition);
}

.program-full-card:hover .program-cta {
  color: var(--accent-green-dark);
}

@media (max-width: 900px) {
  .programs-grid-full {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .program-full-card {
    flex-direction: column;
  }

  .program-full-card-img {
    width: 100%;
    min-height: 180px;
    height: 180px;
  }

  .programs-hero {
    padding: 120px 20px 40px;
  }
}

/* ========== CLUBS PAGE SPECIFIC ========== */
.clubs-hero {
  background: radial-gradient(circle at 15% 15%, rgba(40, 167, 69, 0.22) 0%, transparent 55%),
              radial-gradient(circle at 85% 85%, rgba(232, 131, 58, 0.18) 0%, transparent 55%),
              radial-gradient(circle at 50% 50%, rgba(42, 63, 107, 0.3) 0%, transparent 70%),
              linear-gradient(135deg, #091220 0%, #0c1c13 50%, #07160c 100%);
  padding: 140px 40px 60px;
  text-align: center;
  color: var(--white);
}

.clubs-main {
  padding: 60px 40px;
  background: var(--off-white);
  min-height: 400px;
}

.clubs-container {
  max-width: 1100px;
  margin: 0 auto;
}

.clubs-section-header {
  margin-bottom: 36px;
}

.clubs-section-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark-blue);
  margin-bottom: 8px;
}

.clubs-section-header p {
  color: var(--gray-500);
  font-size: 0.95rem;
}

.clubs-section-header a {
  color: var(--accent-green);
  text-decoration: underline;
}

/* Club card grid */
.clubs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.club-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.club-card-header {
  padding: 28px 24px 24px;
  display: flex;
  align-items: flex-end;
  min-height: 110px;
}

.club-card-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.club-card-footer {
  padding: 18px 24px;
  background: var(--white);
}

.club-card-btn {
  display: inline-block;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--accent-green);
  color: var(--white);
  text-decoration: none;
  transition: background var(--transition);
}

.club-card-btn:hover {
  background: var(--accent-green-dark);
}

.club-card-btn-soon {
  background: var(--off-white);
  color: var(--gray-500);
  cursor: default;
}

.club-card-btn-soon:hover {
  background: var(--off-white);
}

/* Club card — image variant (preview) */
.club-card-media .club-card-header {
  position: relative;
  padding: 0;
  min-height: 0;
  align-items: stretch;
  background: var(--club-color, var(--dark-blue));
}

.club-card-media .club-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.club-card-media .club-card-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 24px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}

.clubs-loading,
.clubs-error {
  grid-column: 1 / -1;
  color: var(--gray-500);
  font-size: 0.95rem;
  padding: 40px 0;
  text-align: center;
}

/* Inline clubs list inside program card */
.program-clubs-list {
  list-style: none;
  flex: 1;
  margin-bottom: 14px;
}

.program-clubs-list li {
  font-size: 0.875rem;
  color: var(--gray-900);
  padding: 5px 0;
  border-bottom: 1px solid var(--off-white);
  line-height: 1.4;
}

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

.program-clubs-loading {
  color: var(--gray-500);
  font-style: italic;
}

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

@media (max-width: 600px) {
  .clubs-hero {
    padding: 120px 20px 40px;
  }

  .clubs-main {
    padding: 40px 20px;
  }

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

/* ========== GET INVOLVED PAGE SPECIFIC ========== */
.get-involved-hero {
  background: radial-gradient(circle at 15% 15%, rgba(40, 167, 69, 0.22) 0%, transparent 55%),
              radial-gradient(circle at 85% 85%, rgba(232, 131, 58, 0.18) 0%, transparent 55%),
              radial-gradient(circle at 50% 50%, rgba(42, 63, 107, 0.3) 0%, transparent 70%),
              linear-gradient(135deg, #091220 0%, #0c1c13 50%, #07160c 100%);
  padding: 140px 40px 60px;
  text-align: center;
  color: var(--white);
}

.get-involved-main {
  padding: 72px 40px 80px;
  background: var(--off-white);
}

.get-involved-container {
  max-width: 1100px;
  margin: 0 auto;
}

.gi-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.gi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}

.gi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-green);
}

.gi-card--featured {
  background: var(--gradient-dark-brand);
  color: var(--white);
}

.gi-card--featured .gi-card-desc {
  color: rgba(255, 255, 255, 0.75);
}

.gi-card--featured .gi-card-cta {
  color: var(--accent-green);
}

.gi-card--featured:hover {
  border-color: var(--accent-green);
}

.gi-card-icon {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  flex-shrink: 0;
}

.gi-card--featured .gi-card-icon {
  background: rgba(255, 255, 255, 0.1);
}

.gi-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark-blue);
  margin: 0;
}

.gi-card--featured .gi-card-title {
  color: var(--white);
}

.gi-card-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--gray-700);
  margin: 0;
  flex: 1;
}

.gi-card-cta {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-green);
  margin-top: 8px;
  transition: gap var(--transition);
}

@media (max-width: 900px) {
  .gi-cards-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .get-involved-hero {
    padding: 120px 20px 40px;
  }

  .get-involved-main {
    padding: 48px 20px 60px;
  }
}

/* ========== ROUNDED CARD (reusable base) ========== */
.rounded-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

/* ========== LEADERSHIP TREE ========== */
.leadership-tree {
  max-width: 1080px;
  margin: 0 auto;
}

/* Root row — centers the Executive Director card */
.tree-root-row {
  display: flex;
  justify-content: center;
}

.tree-root-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  cursor: pointer;
  width: 100%;
  max-width: 400px;
  background: var(--dark-blue);
  color: var(--white);
  border: 2px solid transparent;
  text-align: left;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.tree-root-card:hover,
.tree-root-card:focus-visible {
  border-color: var(--accent-orange);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(26, 39, 68, 0.28);
  outline: none;
}

/* Vertical trunk from root to crossbar */
.tree-trunk {
  width: 2px;
  height: 40px;
  background: var(--gray-200);
  margin: 0 auto;
}

/* Branch grid with horizontal crossbar */
.tree-branches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

/* Horizontal crossbar spanning col-1-center → col-3-center.
   Column centers for repeat(3,1fr) with gap:24px = (W-48)/6 from each edge */
.tree-branches::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc((100% - 48px) / 6);
  right: calc((100% - 48px) / 6);
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}

/* Each unit column */
.tree-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Vertical connector from crossbar to unit label */
.tree-unit-connector {
  width: 2px;
  height: 40px;
  background: var(--gray-200);
  flex-shrink: 0;
}

/* Unit label pill */
.tree-unit-label {
  background: var(--medium-blue);
  color: var(--white);
  padding: 7px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  text-align: center;
}

/* Member cards column */
.tree-unit-members {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* Member card */
.tree-member-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
}

.tree-member-card:hover,
.tree-member-card:focus-visible {
  border-color: var(--accent-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  outline: none;
}

/* Avatar circles */
.leader-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.leader-avatar--sm {
  width: 40px;
  height: 40px;
  font-size: 0.82rem;
}

/* Card text block */
.leader-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.leader-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-root-card .leader-name {
  color: var(--white);
  font-size: 1.05rem;
}

.leader-role {
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-root-card .leader-role {
  color: rgba(255, 255, 255, 0.7);
}

/* Info icon */
.leader-info-icon {
  color: var(--gray-500);
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity var(--transition), color var(--transition);
}

.tree-root-card .leader-info-icon {
  color: rgba(255, 255, 255, 0.6);
}

.tree-member-card:hover .leader-info-icon,
.tree-member-card:focus-visible .leader-info-icon {
  opacity: 1;
  color: var(--accent-green);
}

.tree-root-card:hover .leader-info-icon,
.tree-root-card:focus-visible .leader-info-icon {
  opacity: 1;
  color: var(--accent-orange);
}

/* ========== LEADERSHIP MODAL ========== */
.leader-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.leader-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.leader-modal.is-open .leader-modal-overlay {
  opacity: 1;
}

.leader-modal-panel {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 100%;
  padding: 48px 36px 40px;
  transform: translateY(28px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.leader-modal.is-open .leader-modal-panel {
  transform: translateY(0);
  opacity: 1;
}

.leader-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  color: var(--gray-700);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.leader-modal-close:hover {
  background: var(--gray-200);
  color: var(--dark-blue);
}

.leader-modal-close:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

.leader-modal-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.6rem;
  margin: 0 auto 20px;
}

.leader-modal-body {
  text-align: center;
}

.leader-modal-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark-blue);
  margin-bottom: 6px;
}

.leader-modal-role {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-green-dark);
  margin-bottom: 8px;
}

.leader-modal-unit {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 600;
  padding: 3px 14px;
  background: var(--gray-100);
  border-radius: 50px;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

.leader-modal-bio {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--gray-700);
  text-align: left;
}

/* ---- Leadership tree responsive ---- */
@media (max-width: 860px) {
  .tree-branches {
    gap: 14px;
  }

  .tree-member-card {
    padding: 12px;
    gap: 8px;
  }

  .leader-avatar--sm {
    width: 34px;
    height: 34px;
    font-size: 0.72rem;
  }

  .leader-name {
    font-size: 0.85rem;
  }

  .leader-role {
    font-size: 0.72rem;
  }
}

/* Mobile-first: tree collapses to a vertical list */
@media (max-width: 680px) {
  .tree-trunk,
  .tree-branches::before,
  .tree-unit-connector {
    display: none;
  }

  .tree-root-row {
    margin-bottom: 24px;
  }

  .tree-root-card {
    max-width: 100%;
  }

  .tree-branches {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tree-unit {
    align-items: stretch;
  }

  .tree-unit-label {
    align-self: flex-start;
  }

  .leader-modal-panel {
    padding: 40px 20px 28px;
  }
}

/* ==========================================================================
   MIRRORED HERO SECTION WITH CULTURAL FESTIVAL EVENT CARD (COMPACT & RESPONSIVE)
   ========================================================================== */

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035; /* ultra-subtle analog film grain */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 991px) {
  .hero {
    padding: 95px 20px 25px; /* Tighter top padding for mobile viewports */
  }
}

.hero-container-inner {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--mw-hero-content);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

@media (min-width: 992px) {
  .hero-container-inner {
    grid-template-columns: 1.25fr 0.5fr 1.25fr; /* 3-column layout: Event Card | Photo Deck | Stats Grid */
    max-width: 1200px;
    gap: 24px;
    align-items: center; /* Center items vertically */
    justify-items: center;
  }
}

@media (min-width: 1440px) {
  .hero-container-inner {
    grid-template-columns: 1.3fr 0.6fr 1.3fr;
    max-width: 1320px;
    gap: 32px;
  }
}

@media (min-width: 1920px) {
  .hero-container-inner {
    grid-template-columns: 1.45fr 0.7fr 1.45fr;
    max-width: 1500px;
    gap: 40px;
  }
}

/* Flip the indicator arrow horizontally to point towards the left column (Event Card) */
.hero-arrow-flipped {
  transform: scaleX(-1);
}

.hero-left {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-left:empty {
  display: none;
}

/* ---------- FEATURED UPCOMING EVENT (glassmorphic two-column card) ----------
   Semi-transparent navy surface with glass blur, glowing border accents, and an elegant
   layout. Stacks image-on-top on mobile (see layout.css). */
.featured-event-card {
  display: grid;
  grid-template-columns: minmax(110px, 30%) 1fr; /* Squeezed column ratio */
  align-items: stretch;
  gap: 14px; /* Increased slightly for breathing room */
  padding: 12px;
  background: linear-gradient(135deg, rgba(26, 39, 68, 0.75) 0%, rgba(13, 22, 41, 0.75) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.3s ease,
              box-shadow 0.4s ease;
  width: 100%;
  max-width: 460px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

/* Premium horizontal light streak at the top of the card */
.featured-event-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-green) 0%, #20c997 50%, var(--accent-orange) 100%);
  opacity: 0.8;
}

.featured-event-card:hover {
  transform: translateY(-5px);
  border-color: rgba(40, 167, 69, 0.35);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.4),
              0 0 24px rgba(40, 167, 69, 0.15);
}

/* Image: consistent aspect-ratio, fills the column height, flush at the top */
.featured-event-img {
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 125px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.featured-event-card:hover .featured-event-img {
  transform: scale(1.025);
}

/* Details column: content begins flush with the top of the image */
.featured-event-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.featured-event-body > :first-child {
  margin-top: 0;
}

.featured-event-badge {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 3px 8px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* Pulsating status indicator dot next to "Next Upcoming Event" */
.featured-event-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-yellow);
  margin-right: 6px;
  box-shadow: 0 0 8px var(--accent-yellow);
  animation: pulseDot 1.5s infinite alternate;
}

@keyframes pulseDot {
  0% { transform: scale(0.85); opacity: 0.55; }
  100% { transform: scale(1.25); opacity: 1; }
}

/* Date / location capsules */
.event-capsules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.event-capsule {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(40, 167, 69, 0.05);
  border: 1px solid rgba(40, 167, 69, 0.15);
  color: #a8f0b7;
  font-size: 0.68rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.event-capsule:nth-child(2) {
  background: rgba(232, 131, 58, 0.05);
  border-color: rgba(232, 131, 58, 0.15);
  color: #ffd6b8;
}

.event-capsule:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

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

.event-capsule:nth-child(2) .capsule-icon {
  color: var(--accent-orange);
}

.featured-event-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--white);
}

.featured-event-teaser {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Reduced from 3 lines to fit card height */
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-event-teaser:empty {
  display: none;
}

.btn-featured-event-cta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  margin-top: 4px;
  padding: 6px 0;
  background: transparent;
  color: var(--accent-green) !important;
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
  box-shadow: none;
  border: none;
  transition: color 0.3s ease, gap 0.3s ease;
}

.btn-featured-event-cta:hover {
  color: #20c997 !important;
  gap: 8px; /* Slides arrow to the right */
  background: transparent;
  box-shadow: none;
  transform: none;
}

.hero-text-block {
  max-width: var(--mw-hero-text);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-text-block {
    grid-column: 1 / -1; /* Spans full width of the container in CSS Grid */
    max-width: 100%;
    margin-bottom: 20px; /* Reduced from 30px */
  }
}

.hero-text-block .hero-subtitle {
  font-size: var(--fs-hero-body);
  line-height: var(--lh-hero-body);
  letter-spacing: var(--ls-hero-body);
  margin-bottom: 16px; /* Reduced from 24px */
  max-width: 700px;
  text-align: center;
}

.hero-script-accent {
  font-family: 'Caveat', cursive;
  font-size: 1.35em;
  color: #ffa534 !important; /* Brighter high-contrast gold-orange */
  -webkit-text-fill-color: #ffa534 !important; /* Overrides parent transparent fill */
  -webkit-background-clip: initial !important; /* Resets parent text clip */
  background-clip: initial !important;
  background: none !important;
  font-weight: 700;
  display: inline-block;
  transform: rotate(-1.5deg);
  margin-left: 6px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-script-accent::after {
  content: '';
  position: absolute;
  left: -5%;
  bottom: -8px;
  width: 110%;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 8 C 30 2, 70 2, 98 6' stroke='%2328a745' stroke-width='3' stroke-linecap='round' fill='transparent'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 0.85;
}

/* Premium Photo Deck (Stacked initially, fans out on hover) */
.hero-photo-grid {
  position: relative;
  width: 90px; /* Reduced from 120px */
  height: 135px; /* Reduced from 180px */
  margin: 24px auto 36px; /* Reduced from 32px auto 44px */
  /* Allow children to bleed outside during fanning-out animation */
  overflow: visible; 
  z-index: 5; /* Ensures photos sit on top of the left event card and right stats bar on fanning out */
}

@media (min-width: 769px) {
  .hero-photo-grid {
    width: 110px; /* Reduced from 140px */
    height: 165px; /* Reduced from 210px */
    margin: 30px auto 42px; /* Reduced from 40px auto 56px */
  }
}

@media (min-width: 992px) {
  .hero-photo-grid {
    margin: 0 auto; /* Resets vertical margins since it sits in a side-by-side grid row */
  }
}

.grid-img-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* On desktop, let the photo grid fill the right column so its right edge
   lines up with the text block below it — keeps the right gutter symmetric
   with the left card instead of leaving a large empty gap at top-right. */
@media (min-width: 992px) {
  .hero-photo-grid {
    max-width: none;
    grid-template-rows: repeat(2, 120px);
  }
}

.grid-img-wrapper {
  position: relative;
  width: 50px; /* Reduced from 65px */
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 25px 25px 6px 6px; /* Reduced arch shape */
  border: 1.5px solid var(--white);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
              border-color 0.3s ease, 
              box-shadow 0.4s ease;
  background: rgba(255, 255, 255, 0.05);
}

@media (min-width: 769px) {
  .grid-img-wrapper {
    width: 80px; /* Reduced from 100px */
    border-width: 2.0px; /* Reduced from 2.5px */
    border-radius: 45px 45px 10px 10px; /* Reduced arch */
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
  }
}

.grid-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.grid-caption {
  font-family: 'Caveat', cursive;
  font-size: 0.88rem; /* Increased from 0.82rem for readability */
  font-weight: 700; /* Set to match the loaded weight 700 for crisp rendering */
  color: var(--white);
  margin-top: 4px; /* Reduced from 6px */
  display: block;
  text-align: center;
  opacity: 0.95; /* Slightly increased opacity */
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.8); /* Stronger, high-contrast shadows */
  white-space: nowrap;
}

@media (min-width: 769px) {
  .grid-caption {
    font-size: 1.05rem; /* Increased from 0.95rem for readability */
    margin-top: 6px; /* Reduced from 8px */
  }
}

/* --- Default Fanned-out State (Spreads horizontally) --- */
.grid-img-1 { 
  transform: translateX(-105px) rotate(-10deg) translateY(8px); 
  z-index: 4; 
}
.grid-img-2 { 
  transform: translateX(-35px) rotate(-3deg) translateY(-4px); 
  z-index: 3; 
}
.grid-img-3 { 
  transform: translateX(33px) rotate(3deg) translateY(4px); 
  z-index: 2; 
}
.grid-img-4 {
  transform: translateX(100px) rotate(8deg) translateY(-6px);
  z-index: 1;
}

/* Tablet (769–991px): the hero is still a single column here, so the full
   four-photo fan (~210px wide) collides with the event card and stats.
   Drop the two outermost photos and tighten the remaining pair. */
@media (min-width: 769px) and (max-width: 991px) {
  .grid-img-1,
  .grid-img-4 {
    display: none;
  }
  .grid-img-2 {
    transform: translateX(-28px) rotate(-4deg) translateY(-2px);
  }
  .grid-img-3 {
    transform: translateX(28px) rotate(4deg) translateY(2px);
  }
}

/* Mobile fanning positions (default on mobile to prevent touch hover bugs) */
@media (max-width: 768px) {
  .grid-img-1 {
    transform: translateX(-56px) rotate(-8deg) translateY(4px);
  }
  .grid-img-2 {
    transform: translateX(-18px) rotate(-2deg) translateY(-3px);
  }
  .grid-img-3 {
    transform: translateX(18px) rotate(3deg) translateY(3px);
  }
  .grid-img-4 {
    transform: translateX(56px) rotate(8deg) translateY(-2px);
  }
  .hero-event-indicator {
    display: none !important;
  }
  .hero-stat-card .stat-label {
    font-size: 0.82rem; /* Make stat label legible on mobile */
  }
}

/* Individual photo hover effects (Shine, scale, and z-index elevation) for desktop viewports */
@media (min-width: 769px) {
  .grid-img-container:hover {
    z-index: 10 !important; /* Bring hovered photo to front */
  }

  .grid-img-container:hover .grid-img-wrapper {
    transform: scale(1.15) translateY(-8px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  }

  .grid-img-container:hover .grid-caption {
    opacity: 1;
    color: var(--white);
    transform: scale(1.08) translateY(-2px);
  }

  .grid-img-container:hover .grid-img-wrapper img {
    transform: scale(1.12);
  }

  /* Custom glowing borders on active photo hover */
  .grid-img-1:hover .grid-img-wrapper {
    border-color: var(--accent-green);
    box-shadow: 0 12px 24px rgba(40, 167, 69, 0.35), 0 0 15px rgba(40, 167, 69, 0.15);
  }

  .grid-img-2:hover .grid-img-wrapper {
    border-color: var(--accent-orange);
    box-shadow: 0 12px 24px rgba(232, 131, 58, 0.35), 0 0 15px rgba(232, 131, 58, 0.15);
  }

  .grid-img-3:hover .grid-img-wrapper {
    border-color: var(--medium-blue);
    box-shadow: 0 12px 24px rgba(42, 63, 107, 0.5), 0 0 15px rgba(42, 63, 107, 0.2);
  }

  .grid-img-4:hover .grid-img-wrapper {
    border-color: var(--accent-green);
    box-shadow: 0 12px 24px rgba(40, 167, 69, 0.35), 0 0 15px rgba(40, 167, 69, 0.15);
  }
}

/* Handwritten Arrow & Note Indicator pointing to the event card */
.hero-event-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 10px auto 0; /* Reduced from 16px */
  color: var(--accent-orange);
  font-family: 'Caveat', cursive;
  font-size: 1.05rem; /* Reduced from 1.2rem */
  pointer-events: none;
  animation: floatArrow 3s ease-in-out infinite;
}

.hero-handwritten-arrow {
  color: var(--accent-green);
  opacity: 0.85;
  width: 28px; /* Scaled down width */
  height: 20px; /* Scaled down height */
}

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

/* ---------- HERO STATISTICS GRID (Glassmorphic Tiles) ---------- */
.hero-right-stats {
  width: 100%;
  max-width: 460px; /* Reduced from 580px */
  margin-top: 10px;
}

@media (min-width: 992px) {
  .hero-right-stats {
    margin-top: 0;
  }
}

.hero-stats-link-wrapper {
  text-decoration: none !important;
  color: inherit;
  display: block;
  width: 100%;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px; /* Reduced from 12px */
  width: 100%;
}

.hero-stat-card {
  background: rgba(26, 39, 68, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.3s ease,
              box-shadow 0.4s ease,
              background-color 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Subtle background radial glow */
.hero-stat-card::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.6s ease;
}

.hero-stat-card:hover::before {
  transform: scale(1.1) translate(3%, 3%);
}

/* Individual Card Color Themes (with light, highly-visible colors) */
.stat-students {
  background: linear-gradient(135deg, rgba(90, 240, 125, 0.06) 0%, rgba(26, 39, 68, 0.45) 100%);
  border-color: rgba(90, 240, 125, 0.15);
}
.stat-students .stat-card-icon-wrapper {
  color: #5af07d; /* Lighter, highly visible green */
  background: rgba(90, 240, 125, 0.1);
  border-color: rgba(90, 240, 125, 0.2);
}
.stat-students .stat-plus {
  color: #5af07d;
}

.stat-mentors {
  background: linear-gradient(135deg, rgba(255, 158, 89, 0.06) 0%, rgba(26, 39, 68, 0.45) 100%);
  border-color: rgba(255, 158, 89, 0.15);
}
.stat-mentors .stat-card-icon-wrapper {
  color: #ff9e59; /* Lighter, highly visible orange */
  background: rgba(255, 158, 89, 0.1);
  border-color: rgba(255, 158, 89, 0.2);
}
.stat-mentors .stat-plus {
  color: #ff9e59;
}

.stat-leaders {
  background: linear-gradient(135deg, rgba(97, 240, 194, 0.06) 0%, rgba(26, 39, 68, 0.45) 100%);
  border-color: rgba(97, 240, 194, 0.15);
}
.stat-leaders .stat-card-icon-wrapper {
  color: #61f0c2; /* Lighter, highly visible mint */
  background: rgba(97, 240, 194, 0.1);
  border-color: rgba(97, 240, 194, 0.2);
}
.stat-leaders .stat-plus {
  color: #61f0c2;
}

.stat-programs {
  background: linear-gradient(135deg, rgba(117, 180, 255, 0.06) 0%, rgba(26, 39, 68, 0.45) 100%);
  border-color: rgba(117, 180, 255, 0.15);
}
.stat-programs .stat-card-icon-wrapper {
  color: #75b4ff; /* Lighter, highly visible blue */
  background: rgba(117, 180, 255, 0.1);
  border-color: rgba(117, 180, 255, 0.2);
}

.stat-camps {
  background: linear-gradient(135deg, rgba(255, 211, 92, 0.06) 0%, rgba(26, 39, 68, 0.45) 100%);
  border-color: rgba(255, 211, 92, 0.15);
}
.stat-camps .stat-card-icon-wrapper {
  color: #ffd35c; /* Lighter, highly visible gold */
  background: rgba(255, 211, 92, 0.1);
  border-color: rgba(255, 211, 92, 0.2);
}

/* Individual Card Hover Styles */
.stat-students:hover {
  border-color: rgba(90, 240, 125, 0.45);
  background: linear-gradient(135deg, rgba(90, 240, 125, 0.12) 0%, rgba(26, 39, 68, 0.55) 100%);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35), 0 0 20px rgba(90, 240, 125, 0.15);
}

.stat-mentors:hover {
  border-color: rgba(255, 158, 89, 0.45);
  background: linear-gradient(135deg, rgba(255, 158, 89, 0.12) 0%, rgba(26, 39, 68, 0.55) 100%);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35), 0 0 20px rgba(255, 158, 89, 0.15);
}

.stat-leaders:hover {
  border-color: rgba(97, 240, 194, 0.45);
  background: linear-gradient(135deg, rgba(97, 240, 194, 0.12) 0%, rgba(26, 39, 68, 0.55) 100%);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35), 0 0 20px rgba(97, 240, 194, 0.15);
}

.stat-programs:hover {
  border-color: rgba(117, 180, 255, 0.45);
  background: linear-gradient(135deg, rgba(117, 180, 255, 0.12) 0%, rgba(26, 39, 68, 0.55) 100%);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35), 0 0 20px rgba(117, 180, 255, 0.15);
}

.stat-camps:hover {
  border-color: rgba(255, 211, 92, 0.45);
  background: linear-gradient(135deg, rgba(255, 211, 92, 0.12) 0%, rgba(26, 39, 68, 0.55) 100%);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35), 0 0 20px rgba(255, 211, 92, 0.15);
}

.hero-stat-card:hover {
  transform: translateY(-5px);
}

/* Icons */
.stat-card-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              background-color 0.3s ease, 
              border-color 0.3s ease,
              color 0.3s ease;
}

.stat-card-icon-wrapper .stat-icon {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0;
  color: inherit; /* Inherit the light themed colors from parent wrappers */
}

.hero-stat-card:hover .stat-card-icon-wrapper {
  transform: scale(1.15) rotate(8deg);
  background: rgba(255, 255, 255, 0.12);
  border-color: currentColor; /* Glowing theme-specific borders */
}

/* Number & Label styles */
.stat-number-wrapper {
  display: flex;
  align-items: baseline;
  z-index: 1;
}

.hero-stat-card .stat-number {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  transition: text-shadow 0.3s ease;
}

.hero-stat-card:hover .stat-number {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.stat-plus {
  font-size: 1.0rem;
  font-weight: 800;
  margin-left: 2px;
}

.hero-stat-card .stat-label {
  font-size: 0.78rem; /* Increased from 0.65rem for legibility */
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  z-index: 1;
  transition: color 0.3s ease;
}

.hero-stat-card:hover .stat-label {
  color: var(--white);
}

/* Grid Layout overrides for 5th item */
.stat-camps {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
}

.stat-camps .stat-number-wrapper {
  order: 2;
}
.stat-camps .stat-label {
  order: 1;
}
.stat-camps .stat-card-icon-wrapper {
  order: 0;
}

/* ========== DNA TIMELINE ========== */
.dna-timeline-container {
  padding: 80px 40px;
  background: var(--surface-bg);
  position: relative;
}

.dna-timeline-spine-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
}

/* The Spine (Central Vertical Line) */
.dna-timeline-spine-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(to bottom, var(--accent-green) 0%, var(--accent-orange) 50%, var(--dark-blue) 100%);
  transform: translateX(-50%);
  z-index: 1;
}

.dna-timeline-list {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.dna-timeline-item {
  position: relative;
  margin-bottom: 70px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start;
}

.dna-timeline-item:nth-child(odd) .dna-timeline-card {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

.dna-timeline-item:nth-child(odd) .dna-timeline-image-block {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
}

.dna-timeline-item:nth-child(even) .dna-timeline-card {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
}

.dna-timeline-item:nth-child(even) .dna-timeline-image-block {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

/* DNA Node on the Spine */
.dna-timeline-node {
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--accent-green);
  z-index: 2;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
  transition: all 0.3s ease;
}

.dna-timeline-item:nth-child(even) .dna-timeline-node {
  border-color: var(--accent-orange);
  box-shadow: 0 0 10px rgba(232, 131, 58, 0.4);
}

.dna-timeline-item:nth-child(3n) .dna-timeline-node {
  border-color: var(--dark-blue);
  box-shadow: 0 0 10px rgba(26, 39, 68, 0.4);
}

/* Image Block Styling */
.dna-timeline-image-block {
  width: 100%;
  max-width: 380px;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.dna-timeline-image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dna-timeline-image-block:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

/* Timeline Cards */
.dna-timeline-card {
  background: var(--surface-card);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border-subtle);
  position: relative;
  max-width: 460px;
  transition: all 0.3s ease;
  width: 100%;
}

/* Color thematic borders for alternating cards */
.dna-timeline-item:nth-child(odd) .dna-timeline-card {
  border-left: 5px solid var(--accent-green);
}

.dna-timeline-item:nth-child(even) .dna-timeline-card {
  border-left: 5px solid var(--accent-orange);
}

.dna-timeline-item:nth-child(3n) .dna-timeline-card {
  border-left: 5px solid var(--dark-blue);
}

.dna-timeline-year {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  background: var(--accent-green);
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.dna-timeline-item:nth-child(even) .dna-timeline-year {
  background: var(--accent-orange);
}

.dna-timeline-item:nth-child(3n) .dna-timeline-year {
  background: var(--dark-blue);
}

.dna-timeline-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.dna-timeline-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Interaction Hovers */
.dna-timeline-card:hover {
  transform: scale(1.05);
  border-color: transparent;
}

.dna-timeline-item:nth-child(odd) .dna-timeline-card:hover {
  box-shadow: 0 10px 25px rgba(40, 167, 69, 0.25), 0 0 15px rgba(40, 167, 69, 0.15);
}

.dna-timeline-item:nth-child(even) .dna-timeline-card:hover {
  box-shadow: 0 10px 25px rgba(232, 131, 58, 0.25), 0 0 15px rgba(232, 131, 58, 0.15);
}

.dna-timeline-item:nth-child(3n) .dna-timeline-card:hover {
  box-shadow: 0 10px 25px rgba(26, 39, 68, 0.25), 0 0 15px rgba(26, 39, 68, 0.15);
}

.dna-timeline-item:hover .dna-timeline-node {
  transform: translateX(-50%) scale(1.25);
  background: var(--white);
}

.dna-timeline-cta {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-green-dark);
  transition: color var(--transition);
}

.dna-timeline-item:nth-child(even) .dna-timeline-cta {
  color: var(--accent-orange);
}

.dna-timeline-item:nth-child(3n) .dna-timeline-cta {
  color: var(--medium-blue);
}

.dna-timeline-card:hover .dna-timeline-cta {
  color: var(--accent-orange) !important;
  text-decoration: underline;
}

/* Mobile: switch from the centred spine to a left-aligned single column. */
@media (max-width: 768px) {
  .dna-timeline-container {
    padding: 56px 20px;
  }

  .dna-timeline-spine-wrapper::before {
    left: 9px;
    transform: none;
  }

  .dna-timeline-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-left: 38px;
    margin-bottom: 40px;
  }

  /* Collapse the alternating desktop placement into one stacked column */
  .dna-timeline-item:nth-child(odd) .dna-timeline-card,
  .dna-timeline-item:nth-child(even) .dna-timeline-card,
  .dna-timeline-item:nth-child(odd) .dna-timeline-image-block,
  .dna-timeline-item:nth-child(even) .dna-timeline-image-block {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
  }

  .dna-timeline-card {
    max-width: 100%;
  }

  .dna-timeline-image-block {
    max-width: 100%;
    height: 180px;
  }

  .dna-timeline-node {
    left: 9px;
    top: 8px;
  }
}

/* ---------- DNA EVENT DETAILS MODAL ---------- */
.dna-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dna-modal.open {
  opacity: 1;
  visibility: visible;
}

.dna-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
}

.dna-modal-content {
  position: relative;
  background: var(--surface-card);
  width: 90%;
  max-width: 780px;
  max-height: 92vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-subtle);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  z-index: 2;
}

.dna-modal.open .dna-modal-content {
  transform: scale(1);
}

.dna-modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
  z-index: 3;
  padding: 0;
}

.dna-modal-close:hover {
  color: var(--accent-red);
}

.dna-modal-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

@media (max-width: 768px) {
  .dna-modal-body {
    grid-template-columns: 1fr;
  }
}

.dna-modal-img-wrapper {
  position: relative;
  width: 100%;
  min-height: 320px;
  background: var(--gray-100);
}

.dna-modal-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.dna-modal-info {
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.dna-modal-year {
  align-self: flex-start;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  background: var(--accent-green);
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.dna-modal-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.dna-modal-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Full chronological event list inside the modal */
.dna-modal-events-heading {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 18px;
}

.dna-modal-events-heading[hidden],
.dna-modal-events[hidden] {
  display: none;
}

.dna-modal-events {
  list-style: none;
  margin: 12px 0 0;
  padding: 0 8px 0 0;
  max-height: 300px;
  overflow-y: auto;
}

.dna-modal-month {
  margin: 14px 0 4px;
}

.dna-modal-month:first-child {
  margin-top: 0;
}

.dna-modal-month span {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent-green-dark);
}

.dna-modal-event {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.dna-modal-event-title {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Colour-coded category badges */
.dna-event-badge {
  flex: none;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 9px;
  border-radius: 50px;
  white-space: nowrap;
}

.dna-cat-camp { background: rgba(40, 167, 69, 0.14); color: var(--accent-green-dark); }
.dna-cat-faith { background: rgba(232, 131, 58, 0.16); color: #b85e1a; }
.dna-cat-festival { background: rgba(139, 92, 246, 0.16); color: #6d28d9; }
.dna-cat-activity { background: rgba(220, 53, 69, 0.14); color: #b02a37; }
.dna-cat-program { background: rgba(42, 63, 107, 0.14); color: var(--medium-blue); }
.dna-cat-general { background: var(--gray-100); color: var(--gray-700); }

/* Mobile modal: image stacks on top and the whole panel scrolls as one. */
@media (max-width: 768px) {
  .dna-modal-content {
    overflow-y: auto;
  }

  .dna-modal-img-wrapper {
    min-height: 200px;
  }

  .dna-modal-events {
    max-height: none;
  }
}

/* ============================================
   HERO VIDEO MODAL
   ============================================ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.open {
  opacity: 1;
  visibility: visible;
}

.video-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 960px;
  z-index: 2;
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.video-modal.open .video-modal-content {
  transform: scale(1);
}

.video-modal-player {
  display: block;
  width: 100%;
  max-height: 82vh;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow-lg);
}

.video-modal-close {
  position: absolute;
  top: -3rem;
  right: 0;
  font-size: 2.5rem;
  line-height: 1;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
  z-index: 3;
  padding: 0;
}

.video-modal-close:hover {
  color: var(--accent-red);
}

@media (max-width: 768px) {
  .video-modal-close {
    top: -2.75rem;
    right: 0.25rem;
  }
}
