:root {
  --forest: #123320;
  --fern: #2f7a4f;
  --sun: #f8c24e;
  --sand: #f4f5ef;
  --ink: #0f2118;
  --muted: #345646;
  --accent: #e86566;
  --page-bg: linear-gradient(120deg, rgba(232, 245, 234, 0.9), rgba(240, 242, 234, 0.96));
  --page-texture: url('assets/images/BackgroundImg3.png');
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
  background: var(--page-bg);
  background-image: var(--page-bg), var(--page-texture);
  background-repeat: no-repeat, no-repeat;
  background-size: cover, 1400px;
  background-position: center top, right -120px top 160px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--fern);
  text-decoration: none;
  font-weight: 600;
}

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

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(180deg, rgba(18, 32, 25, 0.82), rgba(18, 32, 25, 0.25));
  color: #fff;
  z-index: 40;
}

.brand {
  font-weight: 900;
  letter-spacing: 0.28em;
  font-size: 1.1rem;
  text-transform: uppercase;
  background: linear-gradient(120deg, #ff8a00 0%, #e52e71 30%, #2f7a4f 70%, #f8c24e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  color: #fff;
  padding: 0.35rem 0.8rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.nav a:hover {
  border-color: var(--sun);
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.hero {
  width: 100%;
  min-height: 86vh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  color: #fff;
  background: linear-gradient(120deg, rgba(18, 32, 25, 0.82), rgba(47, 122, 79, 0.52), rgba(248, 194, 78, 0.32)),
    url('assets/images/BackgroundImg1.png') center/cover no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(249, 200, 70, 0.28), transparent 36%);
  pointer-events: none;
}

.hero-surface {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: min(1100px, 92vw);
  padding: 5.4rem 2rem 3.2rem;
  display: grid;
  gap: 1rem;
}

.logo-lockup {
  font-weight: 900;
  letter-spacing: 0.22em;
  font-size: clamp(2.5rem, 6vw, 3.6rem);
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.hero .lede {
  color: #eef5ee;
  max-width: 900px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, #f9c846, #2f7a4f);
  color: #122019;
  box-shadow: 0 20px 46px rgba(18, 32, 25, 0.28);
}

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

.btn.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn.outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.btn.text {
  padding: 0.5rem 0;
  border: none;
  background: transparent;
  color: var(--fern);
}

.gallery {
  width: 100%;
  margin-top: 1rem;
  padding-top: 1.2rem;
  position: relative;
  z-index: 2;
}

.carousel {
  width: min(1340px, 96vw);
  margin: 0 auto;
  overflow: hidden;
}

.scroll-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: 1rem;
  padding: 0.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.scroll-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 26px rgba(18, 32, 25, 0.12);
  overflow: hidden;
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: 180px 1fr;
}

.scroll-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scroll-card .card-body {
  padding: 0.9rem 1rem 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.slides {
  display: flex;
  transition: transform 0.7s ease;
  scrollbar-width: none;
}

.slides::-webkit-scrollbar {
  display: none;
}

.slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
}

.slide img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.caption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  padding: 1rem 1.6rem 1.4rem;
  align-items: center;
  background: linear-gradient(90deg, rgba(18, 32, 25, 0.82), rgba(47, 122, 79, 0.58));
  color: #f7f9f5;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.tag {
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
}

.carousel-footer {
  padding: 0.7rem 1.2rem 1.2rem;
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  background: rgba(18, 32, 25, 0.75);
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.control {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: #f7f9f5;
}

.dots { display: flex; gap: 0.5rem; }
.dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
}
.dots button.active { width: 32px; background: linear-gradient(120deg, #f9c846, #2f7a4f); }

.progress-track {
  width: 80%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.progress-thumb {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #f9c846, #ec6f5e);
}

.section {
  width: min(1250px, 95vw);
  margin: 0 auto;
  padding: 2rem 0 0.4rem;
  text-align: center;
}

.section-header {
  max-width: 900px;
  margin: 0 auto 1rem;
  display: grid;
  gap: 0.4rem;
}

.section h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); letter-spacing: -0.015em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); font-weight: 800; font-size: 0.82rem; }
.lede { color: #2f4637; }

.grid { display: grid; gap: 1.1rem; text-align: left; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.five { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); justify-items: center; }

.story-blocks > div,
.program-cards > div {
  padding: 1rem 1.2rem;
  background: transparent;
}

.list { margin-top: 0.6rem; display: grid; gap: 0.4rem; color: #30503f; }
.list.compact li { font-size: 0.97rem; }

.pill {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(47, 122, 79, 0.12);
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.hero-impact .impact-bubbles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  min-height: 150px;
  box-shadow: 0 14px 30px rgba(18, 32, 25, 0.12);
  text-align: left;
}

.metric-card .value { font-size: 2rem; font-weight: 900; color: var(--fern); }
.metric-card p { margin-top: 0.2rem; color: #294133; }

.impact-page .country-switcher {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.background-band {
  width: 100%;
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 0.4rem;
}

.band {
  min-height: 160px;
  border-radius: 18px;
  width: min(1250px, 95vw);
  margin: 0 auto;
  box-shadow: 0 14px 28px rgba(18, 32, 25, 0.12);
  background-size: cover;
  background-position: center;
  animation: floatBand 12s ease-in-out infinite alternate;
}

.band-one { background-image: url('assets/images/BackgroundImg1.png'); }
.band-two { background-image: url('assets/images/BackgroundImg2.png'); animation-delay: 2s; }
.band-three { background-image: url('assets/images/BackgroundImg3.png'); animation-delay: 4s; }

@keyframes floatBand {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

.switch-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 32, 25, 0.18);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.switch-btn.active {
  background: linear-gradient(120deg, #f9c846, #2f7a4f);
  color: #122019;
  border-color: transparent;
}

.country-hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(18, 32, 25, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.2rem;
}

.country-photo {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(18, 32, 25, 0.75), rgba(47, 122, 79, 0.6)),
    url('assets/images/image2.png') center/cover no-repeat;
  filter: brightness(0.9);
}

.impact-panel {
  position: relative;
  z-index: 1;
  padding: 2rem;
  display: grid;
  gap: 0.8rem;
  text-align: left;
  color: #f7f9f5;
  max-width: 700px;
  margin: 0 auto;
}

.impact-pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.impact-pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  color: #fff;
  font-weight: 800;
}

.impact-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.8rem; }
.stat-card {
  background: rgba(0, 0, 0, 0.32);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.stat-card strong { font-size: 1.4rem; color: #f8c24e; }

.impact-cta {
  margin-top: 1.1rem;
  padding: 1.2rem 1.3rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
  align-items: center;
  box-shadow: 0 12px 26px rgba(18, 32, 25, 0.1);
}

.curriculum-card,
.plan-card,
.team-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 14px 26px rgba(18, 32, 25, 0.1);
  border: 1px solid rgba(18, 32, 25, 0.08);
}

.plan-grid { align-items: stretch; }
.plan-card h3 { margin-bottom: 0.4rem; }

.team-card h3 { margin-bottom: 0.4rem; }
.team-grid { align-items: stretch; }

.faq-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.faq details {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  box-shadow: 0 12px 22px rgba(18, 32, 25, 0.08);
  border: 1px solid rgba(18, 32, 25, 0.08);
}

.faq summary {
  font-weight: 800;
  cursor: pointer;
}

.faq p { margin-top: 0.4rem; color: #2f4637; }

.timeline { display: grid; gap: 1rem; text-align: left; }
.step { position: relative; padding-left: 2.2rem; }
.step .dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(120deg, #f9c846, #2f7a4f);
  box-shadow: 0 0 0 8px rgba(47, 122, 79, 0.12);
}

.volunteer .chip {
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 20px rgba(18, 32, 25, 0.08);
  font-weight: 800;
}

.volunteer .cta {
  margin-top: 1.2rem;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  border: none;
  text-align: center;
}

.contact { text-align: left; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.contact-form {
  display: grid;
  gap: 0.6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 244, 239, 0.96));
  padding: 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(18, 32, 25, 0.12);
  box-shadow: 0 12px 22px rgba(18, 32, 25, 0.1);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(18, 32, 25, 0.18);
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(47, 122, 79, 0.3);
}

.footer {
  text-align: center;
  padding: 1.4rem;
  color: var(--muted);
  background: #f0f4ef;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .country-hero { grid-template-columns: 1fr; }
  .country-photo { min-height: 220px; }
  .gallery { margin-top: -2rem; }
  .slide img { height: 320px; }
}

@media (max-width: 720px) {
  .topbar { position: absolute; background: rgba(18, 32, 25, 0.7); }
  .hero { min-height: 70vh; }
}

.cursor-trail { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.trail-dot {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 194, 78, 0.2), rgba(47, 122, 79, 0.18), rgba(0, 0, 0, 0));
  filter: blur(18px);
  opacity: 0;
  transform: translate(-999px, -999px);
  transition: transform 0.12s ease-out;
  mix-blend-mode: screen;
}

@keyframes fadeTrail {
  0% { opacity: 0.65; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.7); }
}
