/* ===========================
   Kids Kingdom CIC – style.css
   =========================== */

/* ---------- CSS Variables ---------- */
:root {
  --primary: hsl(213, 56%, 16%);
  --primary-fg: hsl(0, 0%, 100%);
  --primary-light: hsl(213, 56%, 16%, 0.1);

  --secondary: hsl(35, 35%, 55%);
  --secondary-fg: hsl(0, 0%, 100%);
  --secondary-light: hsl(35, 35%, 55%, 0.15);

  --accent: hsl(140, 20%, 55%);
  --accent-fg: hsl(213, 56%, 16%);
  --accent-light: hsl(140, 20%, 55%, 0.2);

  --success: hsl(140, 30%, 45%);
  --success-light: hsl(140, 30%, 45%, 0.15);

  --bg: hsl(210, 20%, 98%);
  --fg: hsl(213, 56%, 16%);
  --muted: hsl(210, 20%, 95%);
  --muted-fg: hsl(213, 20%, 47%);
  --card: hsl(0, 0%, 100%);
  --border: hsl(213, 20%, 90%);

  --hero-gradient: linear-gradient(135deg, hsl(213 56% 16% / 0.92), hsl(213 56% 26% / 0.88));
  --shadow: 0 4px 24px -4px hsl(230 25% 18% / 0.08);
  --shadow-hover: 0 8px 32px -4px hsl(230 25% 18% / 0.14);
  --radius: 1rem;

  --font: 'Nunito', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--fg); line-height: 1.6; overflow-x: hidden; overflow-wrap: break-word; min-width: 320px; }
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select, button, a { -webkit-tap-highlight-color: transparent; }

/* ---------- LOADER ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top, hsl(35 35% 55% / 0.22), transparent 28%),
    linear-gradient(135deg, hsl(213 56% 16%), hsl(213 56% 24%));
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.loader-logo {
  width: 112px;
  height: 112px;
  padding: 0.5rem;
  border-radius: 1.25rem;
  background: hsl(0 0% 100% / 0.96);
  object-fit: contain;
  box-shadow: 0 18px 36px hsl(0 0% 0% / 0.18);
}
.loader-spinner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 4px solid hsl(0 0% 100% / 0.18);
  border-top-color: var(--secondary);
  border-right-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
.page-loader p {
  color: hsl(0 0% 100% / 0.85);
  font-weight: 800;
  letter-spacing: 0.04em;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- SCROLL TOP ---------- */
.scroll-top-btn {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 120;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 10px 24px hsl(213 56% 16% / 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.3s ease;
}
.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  background: var(--secondary);
}

/* ---------- Utilities ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.text-center { text-align: center; }
.text-white { color: var(--primary-fg); }
.bg-primary { background: var(--primary); }
.bg-secondary { background: var(--secondary); }
.bg-accent { background: var(--accent); }
.bg-success { background: var(--success); }
.bg-primary-light { background: var(--primary-light); }
.bg-secondary-light { background: var(--secondary-light); }
.bg-accent-light { background: var(--accent-light); }
.bg-success-light { background: var(--success-light); }
.text-primary { color: var(--primary); }

/* ---------- Fade-in Animation ---------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 2rem; border-radius: 50px; font-weight: 800; font-size: 1rem;
  transition: all 0.3s; text-align: center;
}
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { opacity: 0.9; }
.btn-secondary { background: var(--secondary); color: var(--secondary-fg); box-shadow: 0 4px 20px hsl(35 35% 55% / 0.3); }
.btn-secondary:hover { transform: scale(1.05); box-shadow: 0 6px 28px hsl(35 35% 55% / 0.4); }
.btn-accent { background: var(--accent); color: var(--accent-fg); font-weight: 800; }
.btn-accent:hover { transform: scale(1.05); }
.btn-outline {
  background: rgba(255, 255, 255, 0.9);
  color: var(--fg);
  border: 2px solid var(--primary);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.btn-outline:hover { background: rgba(255, 255, 255, 1); transform: scale(1.05); }
.btn-full { width: 100%; border-radius: var(--radius); }

/* Button Loading State */
.btn {
  position: relative;
  overflow: hidden;
}

.btn-text {
  transition: opacity 0.3s;
}

.btn-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none; /* Hidden by default */
}

.btn--loading .btn-text { opacity: 0; }
.btn--loading .btn-spinner { display: block; }
.btn--loading { pointer-events: none; opacity: 0.8; }

/* ---------- NAVBAR ---------- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all 0.3s;
}
#navbar.scrolled {
  background: hsl(0 0% 100% / 0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px hsl(0 0% 0% / 0.08);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; display: flex;
  align-items: center; justify-content: space-between; padding: 1rem; gap: 0.75rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.5rem; min-width: 0; flex: 1 1 auto; }
.nav-logo {
  width: 56px;
  height: 56px;
  padding: 0.35rem;
  border-radius: 1rem;
  background: hsl(0 0% 100% / 0.96);
  object-fit: contain;
  box-shadow: 0 10px 24px hsl(213 56% 16% / 0.16);
  flex-shrink: 0;
}
.nav-title { font-size: 1.125rem; font-weight: 900; color: var(--primary-fg); transition: color 0.3s; white-space: normal; line-height: 1.1; }
#navbar.scrolled .nav-title { color: var(--primary); }
.nav-links { display: none; align-items: center; gap: 1.5rem; }
.nav-links a {
  font-size: 0.875rem; font-weight: 700; color: var(--primary-fg);
  transition: color 0.3s; white-space: nowrap;
}
.nav-links a:hover { color: var(--secondary); }
#navbar.scrolled .nav-links a { color: var(--fg); }
#navbar.scrolled .nav-links a:hover { color: var(--primary); }

/* Hamburger */
.nav-toggle { display: flex; flex-direction: column; gap: 5px; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--primary-fg); border-radius: 2px; transition: all 0.3s; }
#navbar.scrolled .nav-toggle span { background: var(--fg); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none; flex-direction: column; padding: 1rem;
  background: var(--card); border-top: 1px solid var(--border); box-shadow: 0 4px 20px hsl(0 0% 0% / 0.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.75rem; border-radius: var(--radius); font-weight: 700;
  color: var(--fg); transition: background 0.3s;
}
.mobile-menu a:hover { background: var(--muted); }

@media (max-width: 479px) {
  .nav-title { font-size: 0.95rem; }
  .nav-logo { width: 48px; height: 48px; }
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: var(--hero-gradient); }
.hero-content { position: relative; z-index: 10; text-align: center; padding: 7rem 1rem 4rem; max-width: 1000px; width: 100%; }
.hero h1 { font-size: 2.25rem; font-weight: 900; color: var(--primary-fg); margin-bottom: 1.5rem; line-height: 1.15; }
.hero p { font-size: 1.125rem; color: hsl(0 0% 100% / 0.9); max-width: 640px; margin: 0 auto 2.5rem; font-weight: 500; line-height: 1.7; }
.hero-buttons { display: flex; flex-direction: column; gap: 1rem; justify-content: center; align-items: center; width: 100%; }
.hero-buttons .btn { width: 100%; max-width: 320px; }

@media (min-width: 640px) {
  .hero h1 { font-size: 3.25rem; }
  .hero p { font-size: 1.25rem; }
  .hero-buttons { flex-direction: row; }
  .hero-buttons .btn { width: auto; max-width: none; }
}
@media (min-width: 1024px) { .hero h1 { font-size: 4.5rem; } }

@media (max-width: 639px) {
  .hero { min-height: 80vh; }
  .hero-content { padding: 6rem 1rem 3rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { margin-bottom: 2rem; }
  .section { padding: 3rem 0; }
  .section-header { margin-bottom: 2rem; }
  .section-header h2 { font-size: 2rem; }
  .section-subtitle { font-size: 1rem; }
  .card { padding: 1.5rem; }
  .footer { padding: 3rem 0; }
  .footer-grid { gap: 1.5rem; }
  .mobile-menu { padding: 0.75rem 1rem; }
  .mobile-menu a { padding: 0.75rem; }
}

/* ---------- SECTIONS ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--muted); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 1.875rem; font-weight: 900; margin-bottom: 1rem; }
.section-subtitle { color: var(--muted-fg); font-size: 1.125rem; max-width: 640px; margin: 0 auto; }
.section-line { width: 5rem; height: 0.375rem; border-radius: 50px; margin: 1rem auto 0; }
.section-cta { display: flex; justify-content: center; margin: -0.5rem 0 2rem; }

@media (min-width: 768px) { .section-header h2 { font-size: 3rem; } }

/* ---------- PAGE HERO ---------- */
.page-hero {
  position: relative;
  min-height: 78vh;
  min-height: 72svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, hsl(213 56% 16% / 0.9), hsl(213 56% 26% / 0.84)),
    url('assets/hero-children.jpg') center/cover no-repeat;
}
.page-hero-events::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, hsl(35 35% 55% / 0.28), transparent 30%),
    radial-gradient(circle at bottom left, hsl(140 20% 55% / 0.22), transparent 35%);
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, hsl(213 56% 16% / 0.2));
}
.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 8rem 1rem 4rem;
  max-width: 900px;
}
.page-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: hsl(0 0% 100% / 0.85);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.page-eyebrow.text-primary { color: var(--primary); }
.page-hero h1 {
  font-size: 2.4rem;
  line-height: 1.12;
  color: var(--primary-fg);
  margin-bottom: 1rem;
}
.page-hero p {
  max-width: 680px;
  color: hsl(0 0% 100% / 0.88);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .page-hero h1 { font-size: 4rem; }
  .page-hero p { font-size: 1.2rem; }
}
@media (max-width: 639px) {
  .page-hero { min-height: 62vh; min-height: 62svh; }
  .page-hero-content { padding: 6.5rem 1rem 3rem; }
  .page-hero h1 { font-size: 2rem; }
  .page-hero p { font-size: 1rem; margin-bottom: 1.5rem; }
}

/* ---------- ABOUT ---------- */
.about-grid { display: grid; gap: 2.5rem; }
.about-text { max-width: 100%; }
.about-text .eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.5rem; font-size: 0.95rem; font-weight: 900;
  color: var(--primary); text-transform: uppercase; letter-spacing: 0.15em;
}
.about-text p { color: var(--muted-fg); font-size: 1.125rem; line-height: 1.8; margin-bottom: 1.25rem; }
.about-text .highlight { font-weight: 700; color: var(--fg); margin-top: 1rem; }
.about-list { display: grid; gap: 1rem; margin: 2rem 0; }
.about-list div { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: flex-start; min-width: 0; }
.about-list span {
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--primary-light); color: var(--primary); font-weight: 900;
  flex-shrink: 0;
}
.about-list p { margin: 0; }
.about-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.highlights-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 0;
}
@media (min-width: 480px) { .highlights-grid { grid-template-columns: repeat(2, 1fr); } }
.highlight-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  padding: 1.75rem; border-radius: var(--radius); background: var(--card);
  box-shadow: var(--shadow); transition: all 0.3s;
}
.highlight-card:hover { box-shadow: var(--shadow-hover); }
.highlight-icon { font-size: 1.75rem; width: 56px; height: 56px; border-radius: 12px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.highlight-card span { font-weight: 800; text-align: center; }
@media (min-width: 992px) { .about-grid { grid-template-columns: 1.25fr 0.95fr; align-items: start; } }

.mission-grid {
  display: grid; gap: 1.5rem; margin-top: 3rem;
}
@media (min-width: 768px) { .mission-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CARDS ---------- */
.card {
  background: var(--card); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow); transition: all 0.3s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.75rem; }
.card p { color: var(--muted-fg); line-height: 1.7; margin-bottom: 1.25rem; }
.card-icon {
  width: 56px; height: 56px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.25rem;
}
.card-icon-lg {
  width: 64px; height: 64px; border-radius: var(--radius); display: flex;
  align-items: center; justify-content: center; font-size: 1.75rem; margin: 0 auto 1.25rem;
}
.card-link { color: var(--primary); font-weight: 800; transition: all 0.3s; }
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.upcoming-detail-trigger { padding: 0; text-align: left; }

.media-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.feature-image-card {
  margin: 0;
  border-radius: calc(var(--radius) + 0.25rem);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card);
}
.feature-image {
  display: block;
  width: 100%;
  height: min(62vw, 420px);
  object-fit: cover;
}
.founder-grid,
.safety-grid {
  align-items: center;
}
.founder-image-card {
  max-width: 520px;
  width: 100%;
  justify-self: center;
}
.founder-image {
  height: min(70vw, 520px);
  object-position: center top;
}
.founder-copy {
  padding: 0.5rem 0;
}
.values-foundation {
  display: grid;
  gap: 2rem;
  align-items: stretch;
}
.values-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: calc(var(--radius) + 0.25rem);
  background:
    linear-gradient(135deg, hsl(213 56% 16% / 0.96), hsl(213 56% 26% / 0.92)),
    url('assets/kids2.jpeg') center/cover no-repeat;
  color: var(--primary-fg);
  box-shadow: var(--shadow);
}
.values-panel-label {
  color: hsl(0 0% 100% / 0.72);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin: 0;
  text-transform: uppercase;
}
.values-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.values-pill-list span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.14);
  color: var(--primary-fg);
  font-weight: 900;
}
.values-copy {
  padding: 2rem;
  border-radius: calc(var(--radius) + 0.25rem);
  background: var(--card);
  box-shadow: var(--shadow);
}
.values-copy p:last-child {
  margin-bottom: 0;
}
.values-lead {
  color: var(--fg) !important;
  font-size: 1.25rem !important;
  font-weight: 900;
  line-height: 1.65 !important;
}
.safety-card .card-icon-lg {
  margin-left: 0;
  margin-right: 0;
}
@media (min-width: 900px) {
  .values-foundation {
    grid-template-columns: 0.8fr 1.2fr;
  }
}
@media (max-width: 639px) {
  .feature-image { height: 260px; }
  .founder-image { height: 360px; }
  .values-panel,
  .values-copy {
    padding: 1.5rem;
  }
}

/* ---------- UTILITIES ---------- */
.hidden { display: none; }

/* ---------- EVENTS PAGE ---------- */
.event-info-grid,
.upcoming-events-grid {
  display: grid;
  gap: 1.5rem;
}
.event-info-grid { margin-top: 2.5rem; }
@media (min-width: 768px) {
  .event-info-grid,
  .upcoming-events-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .event-info-grid,
  .upcoming-events-grid { grid-template-columns: repeat(3, 1fr); }
}
.upcoming-card {
  position: relative;
  background: var(--card);
  border-radius: calc(var(--radius) + 0.25rem);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.upcoming-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.event-badge,
.event-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}
.event-badge {
  background: var(--primary);
  color: var(--primary-fg);
  padding: 0.45rem 0.85rem;
  margin-bottom: 1rem;
}
.event-pill {
  background: var(--secondary-light);
  color: var(--primary);
  padding: 0.35rem 0.8rem;
}
.event-date {
  color: var(--muted-fg);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.upcoming-card h3,
.event-post-content h3 {
  font-size: 1.45rem;
  margin: 0.75rem 0;
}
.upcoming-card p:last-of-type { margin-bottom: 1.25rem; }
.event-posts {
  display: grid;
  gap: 2rem;
}
.event-post-card {
  display: grid;
  gap: 0;
  background: var(--card);
  border-radius: calc(var(--radius) + 0.25rem);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.event-post-media img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}
.event-post-content {
  padding: 2rem;
}
.event-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}
.event-post-lead {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fg);
}
.event-post-content p {
  color: var(--muted-fg);
  margin-bottom: 1rem;
}
.event-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
}
.event-modal.open {
  display: grid;
  place-items: center;
}
.event-modal-backdrop {
  position: absolute;
  inset: 0;
  background: hsl(213 56% 10% / 0.74);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.event-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: var(--card);
  border-radius: calc(var(--radius) + 0.35rem);
  box-shadow: 0 24px 64px hsl(213 56% 10% / 0.28);
}
.event-modal-media img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}
.event-modal-content {
  padding: 2rem;
}
.event-modal-section {
  margin: 1.5rem 0;
}
.event-modal-section h4 {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 0.85rem;
  color: var(--fg);
}
.event-modal-section ul {
  padding-left: 1.25rem;
  color: var(--muted-fg);
}
.event-modal-section li + li {
  margin-top: 0.55rem;
}
.event-modal-cta {
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0;
}
.event-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.92);
  color: var(--fg);
  box-shadow: 0 12px 24px hsl(213 56% 10% / 0.18);
}
.event-modal-close:hover {
  background: hsl(0 0% 100%);
}
@media (min-width: 900px) {
  .event-modal-dialog {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
  }
  .event-modal-media img {
    max-height: 100%;
    height: 100%;
  }
}
@media (max-width: 639px) {
  .event-modal-content {
    padding: 1.5rem;
  }
}
@media (min-width: 900px) {
  .event-post-card {
    grid-template-columns: 1.02fr 1fr;
    align-items: stretch;
  }
  .event-post-card-reverse .event-post-media {
    order: 2;
  }
  .event-post-card-reverse .event-post-content {
    order: 1;
  }
}

/* ---------- PROGRAMME GRID ---------- */
.programmes-grid { display: grid; gap: 2rem; }
@media (min-width: 700px) { .programmes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .programmes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- VALUES GRID ---------- */
/* Spacing Utilities */
.pt-0 { padding-top: 0 !important; }
.pb-tight { padding-bottom: 2rem !important; }

#values .section-header {
  margin-bottom: 1.5rem;
}
.values-grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 2rem; 
  margin-top: 0; 
}
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .values-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3rem; } }

.value-card {
  background: var(--card);
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-top: 4px solid transparent;
}
.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.value-card.v-confidence { border-top-color: #3b82f6; }
.value-card.v-leadership { border-top-color: #a855f7; }
.value-card.v-faith { border-top-color: #ef4444; }
.value-card.v-community { border-top-color: #22c55e; }

.value-icon {
  font-size: 2.5rem;
  width: 80px;
  height: 80px;
  line-height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-card h4 { color: var(--fg); font-size: 1.25rem; font-weight: 800; margin-bottom: 1rem; }
.value-card p { color: var(--muted-fg); font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* ---------- COMMITMENT BANNER ---------- */
.commitment-banner {
  background: var(--primary);
  padding: 5rem 0;
  color: var(--primary-fg);
  position: relative;
  overflow: hidden;
}
.commitment-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--secondary-light), transparent 40%);
  opacity: 0.4;
}
.commitment-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.commitment-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: hsl(0 0% 100% / 0.1);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  border: 1px solid hsl(0 0% 100% / 0.2);
}
.commitment-content h2 { font-size: 2.25rem; font-weight: 900; margin-bottom: 1.5rem; color: var(--secondary); }
.commitment-content p { font-size: 1.35rem; line-height: 1.6; font-weight: 500; color: hsl(0 0% 100% / 0.9); }
@media (max-width: 768px) { .commitment-content h2 { font-size: 1.75rem; } .commitment-content p { font-size: 1.15rem; } }

/* ---------- WHY US ---------- */
.why-grid { display: grid; gap: 2rem; max-width: 900px; margin: 0 auto; }
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.why-card {
  display: flex; gap: 1.25rem; padding: 1.5rem; border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow); transition: box-shadow 0.3s;
}
.why-card:hover { box-shadow: var(--shadow-hover); }
.why-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--success-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0;
}
.why-card h3 { font-size: 1.125rem; font-weight: 800; margin-bottom: 0.25rem; }
.why-card p { color: var(--muted-fg); line-height: 1.6; margin: 0; }

/* ---------- IMPACT ---------- */
.impact-section { padding: 5rem 0; background: var(--hero-gradient); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { text-align: center; padding: 2rem; }
.stat-number { font-size: 2.5rem; font-weight: 900; color: var(--primary-fg); margin-bottom: 0.5rem; }
.stat-label { color: hsl(0 0% 100% / 0.8); font-weight: 700; font-size: 1.125rem; }
@media (min-width: 768px) { .stat-number { font-size: 3rem; } }

/* ---------- GALLERY ACCORDION ---------- */
.gallery-accordion {
  margin-top: 3rem;
}

.accordion-item {
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card);
  transition: all 0.3s ease;
}

.accordion-item:hover {
  box-shadow: var(--shadow-hover);
}

.accordion-header {
  width: 100%;
  padding: 1.5rem 2rem;
  background: var(--card);
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.accordion-header:hover {
  background: var(--muted);
}

.accordion-icon {
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.1em;
}

.accordion-title {
  flex: 1;
  text-align: center;
  color: var(--fg);
  font-size: 1.1rem;
}

.accordion-arrow {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--muted-fg);
  transition: transform 0.3s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--muted);
}

.accordion-item.active .accordion-arrow {
  transform: rotate(45deg);
  background: var(--primary);
  color: var(--primary-fg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 2000px;
}

.accordion-content .gallery-grid {
  padding: 0 2rem 2rem;
  margin-top: 0;
}

/* ---------- GALLERY SECTIONS ---------- */
.gallery-section {
  margin-bottom: 4rem;
}

.gallery-section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2rem;
  position: relative;
}

.gallery-section-title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* ---------- GALLERY CATEGORIES ---------- */
.gallery-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.category-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
}

.category-label::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  opacity: 0.3;
}

/* ---------- GALLERY ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--card);
  color: var(--muted-fg);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}
.gallery-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 1rem; 
  margin-bottom: 2rem;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(5, 1fr); gap: 2rem; } }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.3s; aspect-ratio: 4/3; padding: 0; border: none;
}
.gallery-item.hidden { display: none; }

/* Gallery Load More */
.gallery-item.visible {
  display: block;
  animation: fadeInUp 0.6s ease forwards;
}

.gallery-load-more {
  text-align: center;
  margin-top: 3rem;
}

.gallery-load-more .btn {
  min-width: 200px;
  transition: all 0.3s ease;
}

.gallery-load-more .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.gallery-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover .gallery-label { opacity: 1; }
.gallery-label {
  position: absolute; inset: 0;
  background: linear-gradient(to top, hsl(0 0% 0% / 0.6), transparent);
  display: flex; align-items: flex-end; padding: 1rem;
  opacity: 0; transition: opacity 0.3s; /* Original gallery label styles */
}
@supports not (aspect-ratio: 4/3) {
  .gallery-item { padding-top: 75%; }
  .gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; }
}
@supports not (backdrop-filter: blur(4px)) {
  .btn-outline { background: rgba(255,255,255,0.85); }
  #navbar.scrolled { background: rgba(255,255,255,0.95); }
  .lightbox { background: rgba(0,0,0,0.85); }
}

.mini-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
@media (max-width: 767px) {
  .mini-gallery-controls { margin-top: 1.5rem; }
}
.gallery-label span { color: white; font-weight: 800; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: hsl(0 0% 0% / 0.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 85vh; border-radius: var(--radius); box-shadow: 0 8px 40px hsl(0 0% 0% / 0.4); object-fit: contain; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem; width: 40px; height: 40px;
  border-radius: 50%; background: hsl(0 0% 100% / 0.2); color: white;
  font-size: 1.25rem; display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
@media (max-width: 640px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.5rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox #lightboxCaption { font-size: 0.9rem; bottom: 0.5rem; }
}
.lightbox-close:hover { background: hsl(0 0% 100% / 0.3); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: hsl(0 0% 100% / 0.2);
  color: white;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
#lightboxCaption {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-weight: 700;
  width: min(90vw, 720px);
}

/* ---------- TESTIMONIALS ---------- */
.testimonial-slider { max-width: 800px; margin: 0 auto; }
.testimonial-card {
  background: var(--card); border-radius: 1.5rem; padding: 2rem;
  box-shadow: var(--shadow); position: relative;
}
@media (min-width: 768px) { .testimonial-card { padding: 3rem; } }
.quote-icon { font-size: 2.5rem; color: hsl(213 56% 16% / 0.15); position: absolute; top: 1rem; left: 1.5rem; }
.testimonial-text { font-size: 1.125rem; line-height: 1.7; font-style: italic; margin-bottom: 2rem; padding-top: 1rem; position: relative; z-index: 1; }
.author-name { font-weight: 800; }
.author-role { color: var(--muted-fg); font-size: 0.875rem; }
.testimonial-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.slider-btn {
  width: 40px; height: 40px; border-radius: 50%; background: var(--muted);
  font-size: 1.25rem; font-weight: 700; display: flex; align-items: center;
  justify-content: center; transition: background 0.3s;
}
.slider-btn:hover { background: var(--primary-light); }
.slider-dots { display: flex; gap: 0.5rem; }
.slider-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: hsl(213 20% 47% / 0.3); border: none; padding: 0;
  transition: background 0.3s; cursor: pointer;
}
.slider-dot.active { background: var(--primary); }

/* ---------- GET INVOLVED ---------- */
.involve-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .involve-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .involve-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; gap: 3rem; max-width: 1000px; margin: 0 auto; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 800; margin-bottom: 0.25rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 1rem; outline: none; transition: all 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px hsl(213 56% 16% / 0.1); }
.form-group textarea { resize: none; }
.form-success { text-align: center; padding: 3rem 0; }
.success-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.form-success p { font-size: 1.25rem; font-weight: 800; }

.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0;
}
.info-item h3 { font-weight: 800; margin-bottom: 0.25rem; }
.info-item p { color: var(--muted-fg); margin: 0; }
.social-links { padding-top: 1rem; }
.social-links h3 { font-weight: 800; margin-bottom: 0.75rem; }
.social-icons { display: flex; gap: 0.75rem; }
.social-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--muted);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-fg); font-weight: 800; font-size: 0.75rem; transition: all 0.3s;
}
.social-icon:hover { background: var(--primary); color: var(--primary-fg); }

/* ---------- NEWSLETTER ---------- */
.newsletter-section { padding: 5rem 0; background: var(--hero-gradient); }
.newsletter-section h2 { font-size: 1.875rem; font-weight: 900; margin-bottom: 0.75rem; }
.newsletter-subtitle { color: hsl(0 0% 100% / 0.8); font-size: 1.125rem; max-width: 560px; margin: 0 auto 2rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 500px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; padding: 1rem 1.25rem; border-radius: var(--radius);
  background: hsl(0 0% 100% / 0.2); color: white; border: 1px solid hsl(0 0% 100% / 0.3);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); font-family: var(--font); font-size: 1rem; outline: none; transition: border 0.3s;
}
.newsletter-form input::placeholder { color: hsl(0 0% 100% / 0.5); }
.newsletter-form input:focus { border-color: hsl(0 0% 100% / 0.6); }
.newsletter-success { color: white; font-weight: 800; font-size: 1.125rem; margin-top: 1rem; }
@media (min-width: 640px) { .newsletter-form { flex-direction: row; } }
@media (min-width: 768px) { .newsletter-section h2 { font-size: 2.5rem; } }

/* ---------- FOOTER ---------- */
.footer { background: var(--fg); padding: 4rem 0; }
.footer-grid { display: grid; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.footer-logo {
  width: 64px;
  height: 64px;
  padding: 0.4rem;
  border-radius: 1rem;
  background: hsl(0 0% 100% / 0.96);
  object-fit: contain;
  box-shadow: 0 10px 28px hsl(0 0% 0% / 0.18);
  flex-shrink: 0;
}
.footer h3 { font-size: 1.25rem; font-weight: 900; color: var(--bg); }
.footer h4 { font-weight: 800; color: var(--bg); margin-bottom: 0.75rem; }
.footer-desc { color: hsl(0 0% 100% / 0.6); line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: hsl(0 0% 100% / 0.6); transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid hsl(0 0% 100% / 0.1); padding-top: 2rem; text-align: center; }
.footer-bottom p { color: hsl(0 0% 100% / 0.4); font-size: 0.875rem; }

/* ---------- SUCCESS POPUP ---------- */
.success-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.success-popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.success-popup.active .popup-content {
  transform: scale(1);
}

.popup-icon {
  font-size: 3rem;
  font-weight: 900;
  color: #22c55e;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.popup-content h3 {
  color: #1e293b;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.popup-content p {
  color: #64748b;
  margin-bottom: 2rem;
  line-height: 1.6;
}

@supports not ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  #navbar.scrolled { background: rgba(255, 255, 255, 0.98); }
  .btn-outline { background: rgba(255, 255, 255, 0.98); }
  .lightbox { background: rgba(0, 0, 0, 0.92); }
  .newsletter-form input { background: rgba(255, 255, 255, 0.16); }
}

@media (max-width: 480px) {
  .popup-content {
    padding: 2rem;
    margin: 1rem;
  }
  
  .popup-content h3 {
    font-size: 1.25rem;
  }
  
  .popup-icon {
    font-size: 2.5rem;
  }
}

/* ---------- HONEYPOT FIELD ---------- */
.honeypot-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}
.footer-bottom p { color: hsl(0 0% 100% / 0.4); font-size: 0.875rem; }

/* ---------- SUCCESS POPUP ---------- */
.success-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.success-popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.success-popup.active .popup-content {
  transform: scale(1);
}

.popup-icon {
  font-size: 3rem;
  font-weight: 900;
  color: #22c55e;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.popup-content h3 {
  color: #1e293b;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.popup-content p {
  color: #64748b;
  margin-bottom: 2rem;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .popup-content {
    padding: 2rem;
    margin: 1rem;
  }
  
  .popup-content h3 {
    font-size: 1.25rem;
  }
  
  .popup-icon {
    font-size: 2.5rem;
  }
}

/* ---------- EVENT CARD STYLES ---------- */
.event-card {
  background: linear-gradient(135deg, var(--card) 0%, var(--bg) 100%);
  border-radius: calc(var(--radius) * 1.5);
  padding: 3rem;
  box-shadow: 0 10px 40px -8px hsl(213 56% 16% / 0.12);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  margin-bottom: 3rem;
  border: 1px solid hsl(213 56% 16% / 0.06);
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.event-card:hover::before {
  opacity: 1;
}

.event-card:hover {
  box-shadow: 0 20px 60px -8px hsl(213 56% 16% / 0.18);
  transform: translateY(-6px);
  border-color: hsl(213 56% 16% / 0.12);
}

.event-header {
  margin-bottom: 2.5rem;
  position: relative;
}

.event-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.event-badge-upcoming {
  background: linear-gradient(135deg, var(--secondary), hsl(35, 35%, 65%));
  color: var(--secondary-fg);
  box-shadow: 0 4px 15px hsl(35 35% 55% / 0.2);
}

.event-badge-past {
  background: linear-gradient(135deg, var(--accent), hsl(140, 20%, 65%));
  color: var(--primary);
  box-shadow: 0 4px 15px hsl(140 20% 55% / 0.15);
}

.event-header h3 {
  font-size: 2rem;
  font-weight: 900;
  margin: 1rem 0;
  line-height: 1.25;
  background: linear-gradient(135deg, var(--primary), hsl(213, 56%, 30%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.event-date {
  font-size: 1rem;
  color: var(--muted-fg);
  font-weight: 700;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.event-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--fg);
  font-weight: 500;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
  border-radius: calc(var(--radius) * 1.2);
  border-left: 4px solid var(--secondary);
}

.event-intro p {
  margin: 0;
}

.event-details {
  display: grid;
  gap: 2rem;
  padding: 1.5rem 0;
}

.event-details h4 {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.event-details h4::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--secondary), var(--accent));
  border-radius: 2px;
}

.event-details p {
  color: var(--muted-fg);
  line-height: 1.8;
  margin: 0.5rem 0;
  font-size: 1rem;
}

.event-details strong {
  color: var(--primary);
  font-weight: 800;
}

.event-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-list li {
  color: var(--muted-fg);
  padding-left: 2rem;
  position: relative;
  line-height: 1.7;
  font-weight: 500;
  transition: all 0.3s ease;
}

.event-list li:hover {
  color: var(--primary);
  padding-left: 2.25rem;
}

.event-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 900;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.event-note {
  background: linear-gradient(135deg, hsl(213 56% 16% / 0.04), hsl(35 35% 55% / 0.04));
  padding: 1.75rem;
  border-radius: calc(var(--radius) * 1.2);
  border-left: 5px solid var(--secondary);
  color: var(--muted-fg);
  font-size: 1rem;
  line-height: 1.8;
  margin: 1.5rem 0;
  position: relative;
}

.event-note::before {
  content: '💡';
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  font-size: 1.5rem;
  opacity: 0.5;
}

.event-tagline {
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1.8;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--secondary-light), var(--accent-light));
  border-radius: calc(var(--radius) * 1.2);
  font-style: italic;
  font-weight: 600;
  border-left: 4px solid var(--accent);
}

.event-cta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.event-cta .btn {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 900;
}

.event-cta-note {
  color: var(--muted-fg);
  font-size: 0.95rem;
  margin: 0;
  font-weight: 500;
}

.cta-box {
  text-align: center;
  padding: 4rem 2.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, hsl(213, 56%, 26%) 100%);
  border-radius: calc(var(--radius) * 1.5);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px -10px hsl(213 56% 16% / 0.2);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  opacity: 0.1;
  pointer-events: none;
}

.cta-box::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.08;
  pointer-events: none;
}

.cta-box h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--primary-fg);
  position: relative;
  z-index: 1;
}

.cta-box p {
  font-size: 1.1rem;
  color: hsl(0 0% 100% / 0.8);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.cta-box .hero-buttons {
  position: relative;
  z-index: 1;
}

.mt-2 {
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .event-card {
    padding: 3.5rem;
  }

  .event-header h3 {
    font-size: 2.25rem;
  }

  .cta-box {
    padding: 5rem 4rem;
  }

  .cta-box h2 {
    font-size: 3rem;
  }

  .event-intro {
    font-size: 1.15rem;
  }
}

/* ---------- MODERN EVENTS PAGE ---------- */
.events-hero {
  min-height: 82vh;
  min-height: 78svh;
}
.event-highlights {
  padding: 0;
  margin-top: -4rem;
  position: relative;
  z-index: 2;
}
.event-highlights-grid {
  display: grid;
  gap: 1rem;
}
.event-stat-card {
  background: var(--card);
  border: 1px solid hsl(213 20% 90% / 0.85);
  border-radius: calc(var(--radius) + 0.25rem);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.event-stat-card span {
  display: block;
  color: var(--primary);
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
  margin-bottom: 0.45rem;
}
.event-stat-card p {
  color: var(--muted-fg);
  font-weight: 800;
  margin: 0;
}
.section-kicker {
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.section-kicker-accent {
  color: var(--accent);
}
.events-section .section-header {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.events-stack {
  display: grid;
  gap: 2rem;
}
.events-section .event-card {
  display: grid;
  padding: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid hsl(213 20% 90% / 0.9);
  border-radius: calc(var(--radius) + 0.5rem);
  box-shadow: var(--shadow);
}
.events-section .event-card:hover {
  transform: translateY(-4px);
}
.events-section .event-card::before {
  opacity: 1;
}
.event-card-media {
  min-height: 260px;
  margin: 0;
  background: var(--muted);
}
.event-card-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}
.event-card-body {
  padding: 1.5rem;
}
.events-section .event-header {
  margin-bottom: 1.5rem;
}
.events-section .event-header h3 {
  font-size: 1.55rem;
  letter-spacing: 0;
  -webkit-text-fill-color: currentColor;
  background: none;
  color: var(--primary);
}
.events-section .event-date {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  line-height: 1.3;
}
.events-section .event-content {
  gap: 1.5rem;
}
.event-preview-toggle {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 900;
  transition: transform 0.25s ease, background 0.25s ease;
}
.event-preview-toggle:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}
.events-section .event-card:not(.expanded) .event-details,
.events-section .event-card:not(.expanded) .event-cta {
  display: none;
}
.events-section .event-card.expanded .event-preview-toggle {
  background: var(--secondary);
}
.events-section .event-intro {
  border-left: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-light), hsl(140 20% 55% / 0.08));
  font-size: 1rem;
}
.events-section .event-details {
  gap: 1.25rem;
  padding: 0;
}
.events-section .event-details h4 {
  margin-top: 0.75rem;
}
.events-section .event-details h4:first-child {
  margin-top: 0;
}
.events-section .event-list {
  margin: 0.5rem 0 0;
  gap: 0.75rem;
}
.events-section .event-list li::before {
  content: "\2713";
}
.events-section .event-note::before {
  content: "";
}
.events-section .event-note,
.events-section .event-tagline {
  margin: 0.5rem 0 0;
  padding: 1.25rem;
  border-radius: var(--radius);
}
.events-section .event-cta {
  align-items: flex-start;
}

@media (min-width: 700px) {
  .event-highlights-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .events-section .event-card {
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  }
  .events-section .event-card-featured {
    grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  }
  .event-card-media,
  .event-card-media img {
    min-height: 100%;
  }
  .event-card-body {
    padding: 2.5rem;
  }
  .events-section .event-header h3 {
    font-size: 2rem;
  }
}
@media (max-width: 639px) {
  .events-hero {
    min-height: 68vh;
    min-height: 68svh;
  }
  .event-highlights {
    margin-top: -2rem;
  }
  .event-stat-card {
    padding: 1.25rem;
  }
  .event-card-body {
    padding: 1.25rem;
  }
  .event-card-media,
  .event-card-media img {
    min-height: 220px;
  }
  .events-section .event-header h3 {
    font-size: 1.35rem;
  }
  .events-section .event-date {
    width: 100%;
  }
}

/* ---------- RESPONSIVE & BROWSER HARDENING ---------- */
html,
body {
  width: 100%;
  max-width: 100%;
}

main,
section,
header,
footer,
nav,
.container,
.card,
.event-card,
.gallery-item,
.feature-image-card,
.cta-box {
  max-width: 100%;
}

.container {
  width: 100%;
}

.about-grid > *,
.programmes-grid > *,
.why-grid > *,
.media-grid > *,
.values-foundation > *,
.event-highlights-grid > *,
.events-stack > *,
.footer-grid > *,
.contact-grid > *,
.involve-grid > *,
.gallery-grid > * {
  min-width: 0;
}

.btn,
.event-preview-toggle,
.filter-btn,
.nav-links a,
.mobile-menu a {
  white-space: normal;
  overflow-wrap: anywhere;
}

.btn-full {
  min-width: 0;
}

.page-hero-content,
.hero-content,
.section-header,
.about-text,
.event-card-body,
.card,
.cta-box,
.footer {
  overflow-wrap: anywhere;
}

.feature-image {
  height: 360px;
}

.founder-image {
  height: 460px;
}

.events-section .event-date {
  width: auto;
  max-width: 100%;
}

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

.gallery-item {
  min-height: 140px;
}

.gallery-item img {
  display: block;
}

.lightbox {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox img {
  width: auto;
  height: auto;
}

@supports (height: min(62vw, 420px)) {
  .feature-image {
    height: min(62vw, 420px);
  }
  .founder-image {
    height: min(70vw, 520px);
  }
}

@supports not (width: fit-content) {
  .events-section .event-date {
    width: auto;
  }
}

@media (hover: none) {
  .card:hover,
  .event-card:hover,
  .gallery-item:hover,
  .upcoming-card:hover {
    transform: none;
  }
}

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

@media (max-width: 900px) {
  .nav-container {
    align-items: flex-start;
  }
  .mobile-menu.open {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .events-section .event-card {
    grid-template-columns: 1fr;
  }
  .event-card-media img {
    height: 320px;
  }
}

@media (max-width: 767px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .section {
    padding: 3rem 0;
  }
  .page-hero-content,
  .hero-content {
    width: 100%;
  }
  .hero-buttons,
  .about-buttons,
  .event-cta {
    align-items: stretch;
  }
  .hero-buttons .btn,
  .about-buttons .btn,
  .event-cta .btn,
  .newsletter-section .btn {
    width: 100%;
  }
  .card,
  .values-panel,
  .values-copy,
  .event-stat-card,
  .event-card-body,
  .cta-box {
    padding: 1.25rem;
  }
  .gallery-grid {
    gap: 0.85rem;
  }
  .contact-grid,
  .about-grid {
    gap: 2rem;
  }
}

@media (max-width: 479px) {
  .container {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }
  .nav-container {
    padding: 0.75rem;
  }
  .hero h1,
  .page-hero h1 {
    font-size: 1.85rem;
    line-height: 1.16;
  }
  .section-header h2,
  .newsletter-section h2,
  .cta-box h2 {
    font-size: 1.85rem;
    line-height: 1.18;
  }
  .card,
  .values-panel,
  .values-copy,
  .event-card-body,
  .cta-box {
    border-radius: 0.875rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item {
    min-height: 220px;
  }
  .scroll-top-btn {
    right: 0.875rem;
    bottom: 0.875rem;
    width: 46px;
    height: 46px;
  }
}

@supports not (display: grid) {
  .about-grid,
  .programmes-grid,
  .why-grid,
  .media-grid,
  .values-foundation,
  .event-highlights-grid,
  .events-stack,
  .footer-grid,
  .contact-grid,
  .involve-grid,
  .gallery-grid {
    display: flex;
    flex-wrap: wrap;
  }

  .about-grid > *,
  .programmes-grid > *,
  .why-grid > *,
  .media-grid > *,
  .values-foundation > *,
  .event-highlights-grid > *,
  .events-stack > *,
  .footer-grid > *,
  .contact-grid > *,
  .involve-grid > *,
  .gallery-grid > * {
    flex: 1 1 280px;
  }

  .about-list div,
  .info-item,
  .why-card {
    display: flex;
  }
}
