:root {
  --bg: #f4f8f2;
  --surface: #ffffff;
  --surface-2: #eff5eb;
  --text: #183126;
  --muted: #5f7267;
  --line: #dbe7d8;
  --primary: #226b4d;
  --primary-dark: #174c36;
  --accent: #ffb347;
  --accent-soft: #fff0d5;
  --shadow: 0 18px 45px rgba(20, 61, 44, 0.12);
  --radius: 24px;
  --radius-sm: 16px;
  --container: min(1180px, calc(100% - 32px));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #edf5e9 0%, #f9fbf8 55%, #eef5f0 100%);
}
body.cookie-modal-open {
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
.container { width: var(--container); margin: 0 auto; }
.section { padding: 72px 0; }
.card {
  background: var(--surface);
  border: 1px solid rgba(34, 107, 77, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}
h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.1; }
p { margin: 0; color: var(--muted); line-height: 1.7; }
.lead { font-size: 1.1rem; color: var(--text); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 22px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
  font-weight: 700;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--primary); color: #fff; }
.button.primary:hover { background: var(--primary-dark); }
.button.ghost { background: rgba(255,255,255,0.72); color: var(--text); border-color: rgba(255,255,255,0.4); }
.button.dark { background: #1d2d24; color: #fff; }
.button.small { padding: 10px 16px; font-size: 0.92rem; }
.button.large { padding: 16px 30px; }
.button.full { width: 100%; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(244, 248, 242, 0.84);
  border-bottom: 1px solid rgba(24, 49, 38, 0.08);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.98rem;
}
.brand strong { display: block; font-size: 1rem; }
.brand small { display: block; color: var(--muted); margin-top: 3px; }
.brand-badge {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d8f1df 0%, #fff2d9 100%);
  box-shadow: inset 0 0 0 1px rgba(34, 107, 77, 0.1);
}
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a {
  color: var(--muted);
  font-weight: 600;
  padding: 10px 0;
}
.menu-toggle { display: none; }
.hero { position: relative; overflow: clip; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; min-height: 760px; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11, 44, 31, 0.75), rgba(34, 107, 77, 0.55) 50%, rgba(255, 179, 71, 0.28));
}
.hero-content {
  position: relative;
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: 28px;
  padding: 148px 0 72px;
}
.glass-card {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 28px;
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 20px 50px rgba(0,0,0,0.14);
}
.hero-copy { padding: 40px; }
.hero-copy .eyebrow,
.hero-copy p,
.hero-copy .hero-meta { color: rgba(255,255,255,0.92); }
.hero-copy h1 { font-size: clamp(2.8rem, 5vw, 4.9rem); margin-bottom: 14px; }
.hero-meta { font-weight: 700; margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-stats { padding: 24px; display: grid; gap: 14px; }
.stat-box {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
}
.stat-box strong { display: block; font-size: 1.2rem; margin-bottom: 4px; }
.stat-box span { color: rgba(255,255,255,0.85); }
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.feature-card { padding: 28px; }
.feature-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent-soft);
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}
.section-heading.compact { align-items: center; }
.section-heading h2 { font-size: clamp(1.8rem, 3.2vw, 3rem); }
.section-text { max-width: 580px; }
.program-shell {
  background: linear-gradient(180deg, #ffffff 0%, #f3f8f1 100%);
  border-radius: 32px;
  padding: 20px;
  border: 1px solid rgba(34, 107, 77, 0.08);
  box-shadow: var(--shadow);
}
.tabs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tab-button {
  flex: 1 1 220px;
  text-align: left;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.tab-button span { display: block; font-weight: 800; margin-bottom: 4px; }
.tab-button small { color: var(--muted); }
.tab-button.is-active {
  background: linear-gradient(135deg, #226b4d, #2f8c64);
  color: #fff;
  border-color: transparent;
}
.tab-button.is-active small { color: rgba(255,255,255,0.88); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.tab-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 6px 22px;
}
.timeline-list { display: grid; gap: 16px; }
.timeline-item {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  padding: 20px;
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(34, 107, 77, 0.09);
}
.timeline-item.featured { border-color: rgba(255, 179, 71, 0.55); box-shadow: 0 15px 35px rgba(255, 179, 71, 0.14); }
.timeline-time strong { display: block; font-size: 1.2rem; color: var(--primary-dark); }
.timeline-time span { color: var(--muted); font-size: 0.95rem; }
.timeline-content h4 { font-size: 1.16rem; margin-top: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e5f3eb;
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 700;
}
.chip.soft { background: #fff3dd; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.gallery-card { overflow: hidden; }
.gallery-card:nth-child(1) { grid-column: span 7; }
.gallery-card:nth-child(2) { grid-column: span 5; }
.gallery-card:nth-child(3), .gallery-card:nth-child(4) { grid-column: span 6; }
.gallery-card img { width: 100%; height: 290px; object-fit: cover; }
.gallery-card figcaption { padding: 16px 18px 18px; }
.donate-grid, .contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.contact-single {
  display: grid;
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}
.donate-card, .downloads-card, .contact-card { padding: 30px; }
.contact-card-wide { width: 100%; }
.accent-card { background: linear-gradient(135deg, #1f5d43 0%, #2e8b63 100%); }
.accent-card .eyebrow,
.accent-card h2,
.accent-card p,
.accent-card span,
.accent-card strong { color: #fff; }
.donation-details {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}
.donation-details div {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  background: rgba(255,255,255,0.09);
  border-radius: 16px;
}
.donation-details span { opacity: 0.82; font-size: 0.92rem; }
.download-list, .contact-list { display: grid; gap: 14px; margin-top: 22px; }
.download-item, .contact-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface-2);
}
.download-item strong { color: var(--primary); }
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.sponsor-card { padding: 26px; }
.sponsor-logo {
  width: 100%;
  max-width: 180px;
  max-height: 74px;
  object-fit: contain;
  margin-bottom: 18px;
}
.sponsor-card a { color: var(--primary); font-weight: 700; margin-top: 12px; display: inline-block; }
.contact-role { color: var(--text); font-weight: 600; }
.contact-list span { color: var(--muted); font-size: 0.92rem; }
.contact-list strong { display: block; color: var(--text); }
.check-list {
  margin: 24px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--muted);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e3f2ea;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.site-footer {
  padding: 28px 0 50px;
  border-top: 1px solid rgba(24, 49, 38, 0.08);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-inner-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.cookie-layer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: flex;
  justify-content: center;
  padding: 0 12px 12px;
}
.cookie-bar {
  width: min(980px, 100%);
  padding: 14px 18px;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(14, 35, 25, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.cookie-bar-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cookie-bar-text strong {
  font-size: 1rem;
  color: var(--text);
}
.cookie-bar-text span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-actions .button {
  padding: 10px 16px;
  font-size: 0.94rem;
}

/* Admin */
.admin-body { background: #f1f5f1; }
.admin-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}
.admin-login-card {
  width: min(540px, 100%);
  padding: 34px;
}
.login-form, .admin-form { display: grid; gap: 22px; }
.login-form label, .form-grid label, .repeater-fields label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}
input[type='text'], input[type='password'], textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 14px 16px;
  background: #fff;
  color: var(--text);
}
textarea { resize: vertical; min-height: 120px; }
code {
  background: #edf4ef;
  border-radius: 8px;
  padding: 2px 7px;
}
.login-hint { font-size: 0.95rem; color: var(--muted); line-height: 1.6; }
.admin-header {
  padding: 24px 0;
  border-bottom: 1px solid rgba(24, 49, 38, 0.08);
  background: rgba(255,255,255,0.82);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
}
.admin-header-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.admin-actions-top { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-main { padding: 30px 0 72px; }
.notice {
  margin-bottom: 18px;
  background: #eaf5ec;
  color: #1b5c40;
  border: 1px solid #d2e7d7;
  border-radius: 18px;
  padding: 16px 18px;
}
.notice.error { background: #fff0ee; color: #a2392b; border-color: #ffd3ce; }
.admin-section { padding: 26px; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.full-row { grid-column: 1 / -1; }
.repeater-list { display: grid; gap: 16px; }
.repeater-item {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fbfdfb;
  overflow: hidden;
}
.repeater-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #eef5ef;
  border-bottom: 1px solid var(--line);
}
.repeater-head strong { font-size: 0.97rem; }
.repeater-fields {
  padding: 18px;
  display: grid;
  gap: 14px;
}
.repeater-actions { display: flex; gap: 10px; }
.upload-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.upload-stack {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}
.save-status { color: var(--muted); font-weight: 600; }
.admin-submit-bar {
  position: sticky;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(24, 49, 38, 0.08);
  box-shadow: 0 20px 40px rgba(14, 35, 25, 0.12);
  width: fit-content;
  margin: 10px auto 0;
}
.hidden-file-input { display: none; }

@media (max-width: 1024px) {
  .hero-content,
  .grid-3,
  .donate-grid,
  .contact-grid,
  .sponsor-grid,
  .form-grid.two { grid-template-columns: 1fr; }
  .gallery-card:nth-child(1),
  .gallery-card:nth-child(2),
  .gallery-card:nth-child(3),
  .gallery-card:nth-child(4) { grid-column: span 12; }
}

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: 82px;
    left: 16px;
    right: 16px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(24,49,38,0.08);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .menu-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    border-radius: 999px;
    padding: 12px 18px;
  }
  .hero-content { padding-top: 120px; min-height: 690px; }
  .hero-copy { padding: 28px; }
  .section-heading, .footer-inner, .footer-inner-simple, .admin-header-inner { flex-direction: column; align-items: flex-start; }
  .timeline-item { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 58px 0; }
  .hero-media img { min-height: 720px; }
  .hero-content { min-height: 720px; }
  .hero-copy h1 { font-size: 2.4rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .tab-button { flex-basis: 100%; }
  .gallery-card img { height: 240px; }
  .download-item, .contact-list div { flex-direction: column; align-items: flex-start; }
  .cookie-layer { padding: 0 10px 10px; }
  .cookie-bar { width: 100%; padding: 14px; flex-direction: column; align-items: stretch; }
  .cookie-actions { flex-direction: column; width: 100%; }
  .cookie-actions .button { width: 100%; }
  .admin-login-card, .admin-section { padding: 22px; }
  .upload-inline, .upload-stack { grid-template-columns: 1fr; }
  .admin-submit-bar { width: 100%; border-radius: 24px; flex-direction: column; text-align: center; }
}
