:root {
  --green: #245447;
  --green-dark: #12303d;
  --blue: #2d6cdf;
  --warm: #e8614f;
  --yellow: #f0a526;
  --mint: #e6f4ed;
  --soft: #f7faf8;
  --ink: #17231f;
  --muted: #5d6a66;
  --line: rgba(23, 35, 31, 0.12);
  --shadow: 0 16px 45px rgba(18, 48, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  background: #fff;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--warm);
}

img {
  max-width: 100%;
}

section {
  padding: 88px 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 9999;
  background: #fff;
  color: var(--green-dark);
  padding: 10px 14px;
  border-radius: 8px;
}

.skip-link:focus {
  left: 12px;
}

.top-alert {
  background: var(--green-dark);
  color: #fff;
  padding: 8px 0;
  font-size: 0.92rem;
}

.top-alert a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
}

.navbar {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 24px rgba(18, 48, 61, 0.08);
}

.navbar-brand {
  align-items: center;
  color: var(--green-dark);
  display: flex;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
  max-width: 42vw;
  white-space: normal;
}

.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  min-width: 54px;
  padding: 0 9px;
}

.nav-link {
  color: var(--ink);
  font-weight: 700;
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}

.nav-link.active,
.nav-link:hover,
.nav-link:focus {
  color: var(--warm);
}

.lang-switch {
  align-items: center;
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.lang-switch a {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 8px;
}

.lang-switch a:hover,
.lang-switch a:focus {
  background: var(--mint);
  color: var(--green-dark);
}

.btn {
  border-radius: 8px;
  font-weight: 800;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background: #d24f3e;
  border-color: #d24f3e;
}

.btn-outline-primary {
  border-color: var(--green-dark);
  color: var(--green-dark);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.hero,
.page-hero {
  background:
    linear-gradient(90deg, rgba(18, 48, 61, 0.9), rgba(18, 48, 61, 0.42)),
    url("https://picsum.photos/seed/vllss-Community+Impact/1600/960") center/cover no-repeat;
  color: #fff;
  display: flex;
  min-height: 84vh;
  align-items: center;
}

.page-hero {
  min-height: 440px;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.04;
  max-width: 980px;
}

.hero p,
.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 760px;
}

.eyebrow {
  color: var(--warm);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.text-warm {
  color: var(--yellow);
}

.section-soft {
  background: var(--soft);
}

.section-title {
  font-weight: 900;
  letter-spacing: 0;
}

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

.trust-strip {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.trust-pill {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-height: 54px;
  padding: 12px;
}

.stat-card,
.focus-card,
.project-card,
.story-card,
.testimonial-card,
.team-card,
.report-card,
.event-card,
.legal-card,
.filter-panel,
.contact-panel,
.form-panel,
.value-card,
.timeline-card,
.partner-card,
.faq-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 100%;
}

.stat-card {
  padding: 28px;
}

.stat-number {
  color: var(--green-dark);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

.focus-card,
.project-card,
.story-card,
.event-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.focus-card:hover,
.project-card:hover,
.story-card:hover,
.event-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.focus-card img,
.project-card img,
.story-card img,
.event-card img,
.team-card img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.team-card img {
  aspect-ratio: 1 / 1;
}

.focus-card-body,
.project-card-body,
.story-card-body,
.event-card-body {
  padding: 24px;
}

.text-link {
  color: var(--green-dark);
  font-weight: 900;
}

.category-badge,
.status-badge {
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  padding: 7px 10px;
}

.category-badge {
  background: var(--mint);
  color: var(--green-dark);
}

.status-badge {
  background: #eef2f8;
  color: var(--green-dark);
}

.status-ongoing {
  background: #e8f4ff;
  color: var(--blue);
}

.status-completed {
  background: #e5f5ec;
  color: var(--green);
}

.status-upcoming {
  background: #fff3d8;
  color: #9a6508;
}

.mini-list {
  color: var(--muted);
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.mini-list li + li {
  margin-top: 6px;
}

.funding-bar {
  background: #e8eeeb;
  border-radius: 8px;
  height: 9px;
  overflow: hidden;
}

.funding-bar span {
  background: linear-gradient(90deg, var(--green), var(--warm));
  display: block;
  height: 100%;
}

.map-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 520px;
  overflow: hidden;
  width: 100%;
}

.map-box.small-map {
  height: 420px;
}

.map-popup {
  max-width: 230px;
}

.map-popup img {
  border-radius: 8px;
  height: 110px;
  object-fit: cover;
  width: 100%;
}

.pin {
  align-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  display: flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.pin.education { background: var(--green); }
.pin.health { background: var(--blue); }
.pin.women { background: var(--warm); }
.pin.environment { background: #1f7a5c; }
.pin.community { background: var(--yellow); }
.pin.child { background: #8b5cf6; }

.filter-panel,
.contact-panel,
.form-panel {
  padding: 28px;
}

.form-control,
.form-select {
  border-radius: 8px;
  min-height: 48px;
}

textarea.form-control {
  min-height: 140px;
}

.cta-band {
  background: var(--green-dark);
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.84);
}

.gallery-item img,
.detail-gallery img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.timeline {
  border-left: 3px solid var(--mint);
  padding-left: 24px;
}

.timeline-card {
  margin-bottom: 18px;
  padding: 18px;
  position: relative;
}

.timeline-card::before {
  background: var(--warm);
  border: 3px solid #fff;
  border-radius: 50%;
  content: "";
  height: 16px;
  left: -34px;
  position: absolute;
  top: 22px;
  width: 16px;
}

.newsletter-band {
  background: var(--mint);
  padding: 48px 0;
}

.newsletter-form {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
}

.site-footer {
  background: #0f2521;
  color: rgba(255, 255, 255, 0.82);
  padding: 58px 0 28px;
}

.site-footer a {
  color: #fff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 8px 10px;
}

.share-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-block;
  font-weight: 800;
  margin: 0 8px 8px 0;
  padding: 8px 10px;
}

.footer-bottom {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 24px;
}

.footer-bottom a {
  margin-left: 14px;
}

.sticky-donate,
.whatsapp-float {
  border-radius: 8px;
  bottom: 20px;
  box-shadow: var(--shadow);
  color: #fff;
  font-weight: 900;
  padding: 11px 14px;
  position: fixed;
  z-index: 1000;
}

.sticky-donate {
  background: var(--warm);
  left: 20px;
}

.whatsapp-float {
  background: #198754;
  right: 20px;
}

.sticky-donate:hover,
.whatsapp-float:hover {
  color: #fff;
}

.hide-card {
  display: none !important;
}

.table {
  vertical-align: middle;
}

@media (max-width: 1199.98px) {
  .navbar-brand {
    max-width: 72vw;
  }
}

@media (max-width: 767.98px) {
  section {
    padding: 64px 0;
  }

  .hero {
    min-height: 78vh;
  }

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

  .navbar-brand {
    font-size: 0.86rem;
  }

  .brand-mark {
    height: 36px;
    min-width: 48px;
  }

  .lang-switch {
    margin-bottom: 16px;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-bottom a {
    display: inline-block;
    margin: 0 12px 8px 0;
  }

  .sticky-donate,
  .whatsapp-float {
    bottom: 12px;
    font-size: 0.86rem;
  }

  .map-box {
    height: 430px;
  }
}
