:root {
  --blue: #2196c9;
  --blue-dark: #176d95;
  --yellow: #f9c80e;
  --red: #ef4444;
  --ink: #2b2b2b;
  --muted: #6b6b6b;
  --bg: #fffaf0;
  --bg-soft: #fff3d9;
  --white: #ffffff;
  --border: #f0e2c0;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --container: 1140px;
  --font-heading: "Baloo 2", "Segoe UI", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

a {
  color: var(--blue-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}
.section--soft {
  background: var(--bg-soft);
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--blue-dark);
  margin-bottom: 0.3em;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-heading);
  border: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
}
.btn--secondary {
  background: var(--white);
  color: var(--blue-dark);
  border: 2px solid var(--blue);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-link img {
  height: 52px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}
.main-nav a:hover {
  color: var(--blue-dark);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  gap: 10px;
  align-items: center;
}
.lang-switch a {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 8px;
}
.lang-switch a.is-active {
  color: var(--blue-dark);
  background: var(--bg-soft);
}
.lang-switch a:hover {
  text-decoration: none;
  color: var(--blue-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Donate button duplicated inside the mobile nav menu —
   hidden on desktop to avoid showing it twice */
.main-nav .btn--primary {
  display: none;
}

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 20px 20px;
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav a {
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle {
    display: block;
  }

  /* Hide the header's inline donate button on mobile... */
  .header-actions > .btn--primary {
    display: none;
  }

  /* ...and show the one duplicated inside the nav menu instead */
  .main-nav .btn--primary {
    display: inline-block;
    width: auto;
    margin: 6px 0 14px;
    border-bottom: none;
    text-align: center;
  }

  .logo-link img {
    height: 42px;
  }
  .header-inner {
    padding: 10px 16px;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--blue-dark);
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-media {
    order: -1;
  }
}

/* ---------- Notice / current event callout ---------- */
.notice {
  background: var(--white);
  border: 2px dashed var(--yellow);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.notice h3 {
  color: var(--red);
  font-size: 1.3rem;
}

.notice dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 20px 0 0;
}
.notice dt {
  font-weight: 800;
  color: var(--blue-dark);
}
.notice dd {
  margin: 0;
}

/* ---------- Goals ---------- */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.goal-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 6px solid var(--blue);
}
.goal-card:nth-child(2) {
  border-top-color: var(--yellow);
}
.goal-card:nth-child(3) {
  border-top-color: var(--red);
}

.goal-card .emoji {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 10px;
}

/* ---------- Programs timeline ---------- */
.timeline {
  position: relative;
  margin-top: 20px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding: 0 0 32px 60px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--blue);
}

.timeline-item h4 {
  color: var(--blue-dark);
  margin-bottom: 4px;
}
.timeline-item .years {
  color: var(--red);
  font-weight: 800;
  margin-right: 8px;
}

/* ---------- Reports ---------- */
.reports-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.reports-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  font-weight: 700;
  color: var(--ink);
}
.reports-list a:hover {
  text-decoration: none;
  background: var(--bg-soft);
}
.reports-list .icon {
  font-size: 1.3rem;
}

/* ---------- Partners ---------- */
.partners {
  display: flex;
  justify-content: center;
  align-items: center;
}
.partners img {
  max-height: 90px;
  width: auto;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.gallery-grid button {
  padding: 0;
  border: none;
  background: none;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.gallery-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.gallery-grid button:hover img {
  transform: scale(1.06);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 5, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.lightbox.is-open {
  display: flex;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 10px;
}
.lightbox button {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}
.lightbox .lb-prev,
.lightbox .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.4rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.lightbox .lb-prev {
  left: 12px;
}
.lightbox .lb-next {
  right: 12px;
}

/* ---------- Contact / footer ---------- */
.site-footer {
  background: var(--blue-dark);
  color: #eaf5fb;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.site-footer h4 {
  color: var(--yellow);
  font-size: 1.05rem;
}
.site-footer a {
  color: #eaf5fb;
}
.site-footer a:hover {
  color: var(--yellow);
}
.footer-logo img {
  height: 48px;
  margin-bottom: 12px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #b9d9e8;
}
.footer-bottom a {
  color: #b9d9e8;
  text-decoration: underline;
}

/* ---------- Legal pages ---------- */
.legal-content h2 {
  color: var(--blue-dark);
  margin-top: 1.4em;
}
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}
.legal-content ul {
  padding-left: 1.2em;
}
