:root {
  --bg: #f7faf8;
  --surface: #ffffff;
  --surface-2: #eef6f1;
  --text: #173227;
  --muted: #5f756b;
  --primary: #1f7a4f;
  --primary-dark: #155c3a;
  --border: #d9e7df;
  --shadow: 0 10px 30px rgba(23, 50, 39, 0.08);
  --radius: 20px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217, 231, 223, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2da86b, #145c39);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 18px;
}

.brand-title {
  font-size: 1rem;
}

.brand-subtitle {
  color: var(--muted);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 600;
}

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

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 18px;
  cursor: pointer;
}

.hero {
  padding: 64px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.hero-card,
.card,
.program-card,
.video-card,
.update-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 8px 14px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.hero-text {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 22px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: #e6f1eb;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 8px;
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-media {
  overflow: hidden;
  position: relative;
  min-height: 480px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  max-width: 290px;
}

.media-badge-text {
  color: var(--muted);
  margin-top: 6px;
}

.section {
  padding: 34px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.section-head p {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card {
  padding: 24px;
}

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

.program-card {
  padding: 24px;
}

.program-card h3 {
  margin-bottom: 10px;
}

.program-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.update-card {
  overflow: hidden;
}

.update-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.update-body {
  padding: 18px;
}

.update-body h3 {
  margin-bottom: 10px;
}

.update-body p {
  color: var(--muted);
  margin-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.video-card {
  overflow: hidden;
}

.video-frame iframe {
  width: 100%;
  min-height: 280px;
  border: 0;
  display: block;
}

.video-body {
  padding: 18px;
}

.video-body h3 {
  margin-bottom: 6px;
}

.video-body p {
  margin-bottom: 0;
  color: var(--muted);
}

.cta-banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
  padding: 28px;
  background: linear-gradient(135deg, #184f35, #236c49);
  color: white;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.banner-title {
  margin-bottom: 8px;
}

.banner-text {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.85);
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cta-actions .btn-primary {
  background: white;
  color: var(--primary-dark);
}

.cta-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.22);
}

footer {
  padding: 30px 0 42px;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.empty-note {
  padding: 18px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: var(--surface);
}

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

.no-margin {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .cta-banner,
  .programs-grid,
  .updates-grid,
  .videos-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-actions {
    justify-content: flex-start;
  }

  .hero-media {
    min-height: 320px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 8px;
  }

  .nav-links.open {
    display: flex;
  }

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

@media (max-width: 640px) {
  .hero {
    padding-top: 36px;
  }

  .hero-card,
  .card,
  .program-card {
    padding: 20px;
  }

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

  .video-frame iframe {
    min-height: 220px;
  }
}
