:root,
[data-theme="light"] {
  --bg: #fbf8fd;
  --surface: #ffffff;
  --surface-soft: #f4ecfa;
  --text: #24142f;
  --muted: #695d72;
  --border: rgba(61, 30, 79, 0.12);
  --primary: #8f5bcc;
  --primary-dark: #6e34b6;
  --accent: #cfa8f0;
  --shadow: 0 18px 50px rgba(75, 30, 97, 0.12);

  --font-display: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;

  --container: 1180px;
  --radius: 22px;
  --radius-sm: 14px;
  --transition: 0.3s ease;
}

[data-theme="dark"] {
  --bg: #120d17;
  --surface: #1a1320;
  --surface-soft: #23192c;
  --text: #f5ecfb;
  --muted: #b8a9c5;
  --border: rgba(255, 255, 255, 0.08);
  --primary: #b27ae9;
  --primary-dark: #c694ff;
  --accent: #6c3ea1;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 1000;
}

.skip-link:focus {
  left: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(251, 248, 253, 0.75);
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .site-header {
  background: rgba(18, 13, 23, 0.8);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand-logo {
  height: 72px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.main-nav a {
  color: var(--muted);
  font-weight: 500;
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-small {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.9rem;
}

.theme-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.banner {
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.banner-image-wrap {
  flex: 1;
}

.banner-image-wrap img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.banner-controls {
  flex-shrink: 0;
}

.banner-upload-label {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.banner-upload-label input {
  display: none;
}

.hero {
  padding: 72px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(187, 129, 234, 0.18), transparent 35%),
    radial-gradient(circle at right, rgba(143, 91, 204, 0.12), transparent 30%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.hero h1,
.section-heading h2,
.impact-copy h2,
.cta-box h2,
.contact-copy h2,
.donation-card h3 {
  font-family: var(--font-display);
  line-height: 1.1;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 4.9rem);
  max-width: 10ch;
  margin-bottom: 20px;
}

.hero-text,
.section-intro {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-card,
.contact-card,
.info-card,
.program-card,
.impact-box,
.cta-box,
.donation-card,
.vm-card,
.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.info-card {
  padding: 30px;
  border-radius: var(--radius);
}

.card-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
}

.info-card h2 {
  font-size: 1.7rem;
  margin-bottom: 14px;
}

.info-card ul {
  padding-left: 18px;
  color: var(--muted);
}

.section {
  padding: 84px 0;
}

.section-grid,
.impact-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.section-heading h2,
.impact-copy h2,
.contact-copy h2,
.cta-box h2 {
  font-size: clamp(2rem, 3vw, 3.4rem);
  margin-bottom: 18px;
}

.section-content p,
.impact-copy p,
.contact-copy p,
.cta-box p {
  color: var(--muted);
  margin-bottom: 16px;
}

.vm-card {
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 20px;
}

.vm-card:last-child {
  margin-bottom: 0;
}

.vm-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.centered {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.program-card {
  border-radius: var(--radius);
  padding: 28px;
}

.program-number {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.program-card h3,
.impact-box h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.program-card p,
.impact-box ul {
  color: var(--muted);
}

.impact-points {
  display: grid;
  gap: 22px;
}

.impact-box {
  padding: 26px;
  border-radius: var(--radius);
}

.impact-box ul,
.info-card ul {
  padding-left: 18px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.event-card {
  border-radius: var(--radius);
  padding: 0px;
  text-align: center;
}

.event-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0px;
}

.event-upload-label {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--primary);
}

.event-upload-label input {
  display: none;
}

/* Media Coverage video box */
.media-coverage-row {
  margin-top: 24px;
}

.media-coverage-card {
  padding: 0;
}

.media-coverage-card h3 {
  padding: 16px 0;
  font-size: 1.2rem;
}

.media-coverage-card video {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
  background: #000;
}

.donate-wrap {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.donation-details {
  margin-top: 24px;
}

.donation-card {
  border-radius: var(--radius);
  padding: 30px;
  text-align: left;
}

.donation-card h3 {
  font-size: 2rem;
  margin-bottom: 22px;
}

.donation-qr {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.donation-qr img {
  width: min(100%, 340px);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.donation-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.donation-row:last-child {
  border-bottom: none;
}

.donation-row span,
.contact-item span {
  display: block;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.donation-row p,
.contact-item p {
  color: var(--text);
}

.contact-card {
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 18px;
}

.contact-item {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-item a:hover {
  color: var(--primary);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--surface-soft);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .section-grid,
  .impact-grid,
  .contact-grid,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .brand-logo {
    height: 58px;
  }

  .banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 48px;
  }

  .section {
    padding: 64px 0;
  }

  .program-card,
  .info-card,
  .impact-box,
  .contact-card,
  .donation-card,
  .vm-card,
  .event-card {
    padding: 22px;
  }

  .footer-wrap {
    flex-direction: column;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .donation-card h3 {
    font-size: 1.6rem;
  }
}