:root {
  --bg: #fff6fb;
  --surface: #ffffff;
  --surface-soft: #fff0f7;
  --surface-strong: #ffdbe9;
  --text: #4a2740;
  --muted: #7b5b70;
  --accent: #e678a8;
  --accent-dark: #c65488;
  --accent-deep: #9b3f69;
  --border: #f1c7da;
  --shadow: 0 12px 30px rgba(170, 71, 120, 0.12);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(230, 120, 168, 0.18), transparent 34%),
    linear-gradient(180deg, #fff8fc 0%, #fff3f8 100%);
  line-height: 1.65;
}

body { position: relative; }

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

a { color: inherit; text-decoration: none; }

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.section { padding: 4.5rem 0; }

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1.08;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); }

h2 { font-size: clamp(1.9rem, 3.2vw, 3rem); }

h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

.muted { color: var(--muted); }

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.2rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover { transform: translateY(-1px); }

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--accent-deep);
}

.btn-secondary:hover { background: var(--surface-soft); }

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 246, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(241, 199, 218, 0.85);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

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

.brand img {
  width: 58px;
  height: 58px;
  padding: 0.25rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.brand-text strong {
  display: block;
  font-size: 1rem;
}

.brand-text span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  color: var(--muted);
  font-weight: 600;
}

nav a:hover { color: var(--accent-deep); }

.lang-switcher {
  min-width: 124px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-deep);
  font: inherit;
  font-weight: 700;
}

.hero { padding: 3rem 0 1.5rem; }

.hero-grid,
.split,
.leader,
.donation-box,
.contact-grid,
.program-layout,
.program-gallery,
.program-support {
  display: grid;
  gap: 1.5rem;
}

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

.hero-copy {
  padding: 1.5rem;
  border: 1px solid rgba(241, 199, 218, 0.7);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.hero-card,
.card,
.impact-card,
.contact-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-image {
  width: 100%;
  min-height: 500px;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}

.stat { padding: 1rem; }

.stat strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--accent-deep);
  font-size: 1.45rem;
}

.split,
.donation-box,
.contact-grid,
.program-layout,
.program-support {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

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

.media-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.slideshow-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 1 / 1;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.slideshow-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  object-fit: cover;
  object-position: center 22%;
}

.slideshow-frame img.is-active {
  opacity: 1;
}

.card-pad { padding: 1.35rem; }

.values-grid,
.program-grid,
.impact-grid,
.gallery-grid {
  display: grid;
  gap: 1.2rem;
}

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

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

.impact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 960px;
  margin: 0 auto;
}

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

.program-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.program-carousel {
  position: relative;
}

.program-carousel-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.program-carousel-button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-deep);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.program-carousel-button:hover {
  background: var(--surface-soft);
}

.program-carousel-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.program-carousel-viewport {
  overflow: hidden;
}

.program-grid {
  display: flex;
  gap: 1.2rem;
  transition: transform 0.35s ease;
  will-change: transform;
}

.program-grid .program-card {
  flex: 0 0 calc((100% - 2.4rem) / 3);
}

.gallery-carousel {
  position: relative;
}

.gallery-carousel-viewport {
  overflow: hidden;
}

.gallery-grid {
  display: flex;
  gap: 1.2rem;
  transition: transform 0.35s ease;
  will-change: transform;
}

.gallery-grid .gallery-item {
  flex: 0 0 calc((100% - 3.6rem) / 4);
}

.program-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.media-gallery img,
.gallery-grid img,
.leader img {
  width: 100%;
  background: var(--surface-soft);
  object-fit: cover;
  object-position: center 22%;
}

.program-card img,
.program-gallery img,
.program-hero img {
  width: 100%;
  background: #ffffff;
  object-fit: contain;
  object-position: center center;
}

.program-card img { aspect-ratio: 16 / 10; }

.gallery-grid img {
  aspect-ratio: 1 / 1;
  display: block;
}

.program-gallery img { aspect-ratio: 4 / 3; }

.media-gallery img,
.media-gallery video {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--surface-soft);
  object-fit: cover;
}

.media-card {
  padding: 0.7rem;
  display: flex;
  align-items: stretch;
}

.media-card img,
.media-card video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  object-fit: cover;
  object-position: center 22%;
}

.leader {
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: center;
}

.leader img {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  object-position: center top;
}

.program-card .slideshow-frame {
  border-radius: 0;
  aspect-ratio: 16 / 10;
  box-shadow: none;
}

.program-card .slideshow-frame img {
  object-fit: contain;
  object-position: center top;
  background: #ffffff;
}

#gallery .gallery-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center top;
  background: #ffffff;
}

.gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.full-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.full-gallery-grid img,
.full-gallery-grid video {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.full-gallery-grid img {
  object-fit: contain;
  object-position: center top;
  background: #ffffff;
}

.full-gallery-grid video {
  object-fit: cover;
  object-position: center 22%;
}

.program-card p,
.gallery-grid .gallery-item p { color: var(--muted); }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.tag {
  display: inline-block;
  padding: 0.36rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent-deep);
  font-size: 0.77rem;
  font-weight: 700;
}

.program-card a.more {
  margin-top: 1rem;
  color: var(--accent-deep);
  font-weight: 700;
}

.program-card a.more:hover { text-decoration: underline; }

.impact-card {
  padding: 1.2rem;
  text-align: center;
}

.impact-section {
  text-align: center;
}

.impact-card .number {
  margin-bottom: 0.4rem;
  color: var(--accent-deep);
  font-size: 2rem;
  font-weight: 800;
}

.gallery-note {
  max-width: 780px;
  margin-bottom: 1.2rem;
}

.gallery-grid .gallery-item {
  min-height: 100%;
  overflow: hidden;
  border: 1px dashed var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.gallery-grid .gallery-item p {
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  font-size: 0.92rem;
}

.list {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.tracker {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-soft);
}

.tracker-bar {
  height: 16px;
  margin: 0.6rem 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(155, 63, 105, 0.12);
}

.tracker-fill {
  height: 100%;
  width: 22%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-deep) 100%);
}

.contact-list,
.program-checklist {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.contact-item,
.check-item {
  padding: 1rem;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.program-hero {
  padding: 2.4rem 0 1rem;
}

.program-hero .card {
  overflow: hidden;
}

.program-hero .slideshow-frame,
.program-hero .card > img {
  height: 420px;
  aspect-ratio: auto;
  border-bottom: 1px solid var(--border);
}

.program-hero .slideshow-frame img,
.program-hero .card > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #ffffff;
}

.program-intro {
  padding: 1.5rem;
}

.small { font-size: 0.92rem; }

footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 1024px) {
  .hero-grid,
  .split,
  .leader,
  .donation-box,
  .contact-grid,
  .program-layout,
  .program-support {
    grid-template-columns: 1fr;
  }

  .hero-image { min-height: 360px; }

  .values-grid,
  .impact-grid,
  .program-gallery,
  .media-gallery,
  .full-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid .gallery-item {
    flex-basis: calc((100% - 1.2rem) / 2);
  }

  .program-hero .slideshow-frame,
  .program-hero .card > img {
    height: 360px;
  }

  .program-hero .card > img.fit-contain {
    height: 360px;
  }
}

@media (max-width: 700px) {
  .section { padding: 3.4rem 0; }

  .hero,
  .program-hero {
    padding: 2rem 0 1rem;
  }

  .nav,
  .nav-controls {
    align-items: flex-start;
  }

  nav ul { display: none; }

  .nav {
    flex-wrap: wrap;
  }

  .nav-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .container { width: min(calc(100% - 1.2rem), var(--max)); }

  .hero-copy,
  .card-pad,
  .impact-card,
  .stat,
  .contact-item,
  .check-item,
  .program-intro {
    padding: 1rem;
  }

  .stats,
  .values-grid,
  .impact-grid,
  .program-gallery,
  .media-gallery,
  .full-gallery-grid {
    grid-template-columns: 1fr;
  }

  .program-grid .program-card {
    flex-basis: 100%;
  }

  .gallery-grid .gallery-item {
    flex-basis: 100%;
  }

  .program-header {
    align-items: stretch;
  }

  .program-carousel-controls {
    width: 100%;
    justify-content: space-between;
  }

  .brand-text strong { font-size: 0.95rem; }

  .brand-text span { font-size: 0.82rem; }

  h1 { font-size: clamp(2rem, 9vw, 2.8rem); }

  h2 { font-size: clamp(1.55rem, 7vw, 2.2rem); }

  .btns { gap: 0.7rem; }

  .btn { width: 100%; }

  .hero-image { min-height: 270px; }

  .program-hero .slideshow-frame,
  .program-hero .card > img {
    height: 260px;
  }

  .program-hero .card > img.fit-contain {
    height: 260px;
  }
}
