:root {
  --dark-bg: #102017;
  --dark-bg-2: #16291d;
  --light-bg: #f5f5f5;
  --green: #4e9a4a;
  --green-dark: #2f6b45;
  --orange: #f37b3d;
  --text-light: #f5f5f0;
  --text-muted: #c7d2c9;
  --text-dark: #14241b;
  --radius: 10px;
  --container-width: 1280px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.5;
  background: #fff;
}
img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  /* overflow: hidden; */
}

/* ============================================================
   BUTTON SYSTEM
   Usage:
     <a class="btn btn-shine">Label <span class="arrow">→</span></a>
     <a class="btn btn-shine btn-outline">Label</a>
     <a class="btn btn-shine btn-dark">Label</a>
   ============================================================ */

/* — Base: layout only — */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px; /* pill shape — change to 10px for square */
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: none;
  outline: none;

  /* required by shine & wobble */
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}

/* — Shine variant (primary style) — */
.btn-shine {
  background-color: var(--green);
  color: #fff;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.02, 0.01, 0.47, 1);
}
.btn-shine span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0.4px;
  z-index: 20;
  position: relative;
}

/* Arrow stays inline with text */
.btn .arrow {
  font-size: 1rem;
  position: relative;
  z-index: 20;
}

/* Wobble on hover */
.btn-shine:hover {
  animation: btn-wobble 0.7s ease-in-out both;
  box-shadow: 0 8px 28px rgba(76, 175, 110, 0.45);
}
.btn-shine:hover span {
  animation: btn-text-shake 0.7s ease-in-out both;
  animation-delay: 0.06s;
}

/* Shine sweep — the magic stripe */
.btn-shine::after {
  content: "";
  position: absolute;
  top: -50px;
  left: -75px;
  width: 50px;
  height: 155px;
  background: rgba(255, 255, 255, 0.45);
  transform: rotate(35deg);
  transition: left 550ms cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 10;
}
.btn-shine:hover::after {
  left: 120%;
}

/* — Outline variant — */
.btn-outline {
  background-color: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.btn-outline::after {
  background: rgba(76, 175, 110, 0.25);
}
.btn-outline:hover {
  background-color: var(--green);
  color: #fff;
}

/* — Dark variant (for dark backgrounds) — */
.btn-dark {
  background-color: var(--dark-bg-2);
  color: #fff;
  border: 1px solid rgba(76, 175, 110, 0.4);
}
.btn-dark::after {
  background: rgba(76, 175, 110, 0.3);
}
.btn-dark:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

/* ---- Keyframes ---- */
@keyframes btn-wobble {
  0% {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
  25% {
    transform: rotate(3deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotate(-3deg) translate3d(0, 0, 0);
  }
  75% {
    transform: rotate(1deg) translate3d(0, 0, 0);
  }
  100% {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
}
@keyframes btn-text-shake {
  0% {
    transform: translate3d(0, 0, 0);
  }
  25% {
    transform: translate3d(4px, 0, 0);
  }
  50% {
    transform: translate3d(-3px, 0, 0);
  }
  75% {
    transform: translate3d(2px, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* ============ HEADER ============ */
.site-header {
  background: var(--dark-bg);
  position: sticky;
  top: 0;
  z-index: 1999;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.logo img {
  width: 100px;
  height: 70px;
}

.logo-icon {
  color: #4e9a4a;
  width: 100px;
  line-height: 25px;
}

.main-nav ul {
  display: flex;
  gap: 30px;
}
.main-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;

  /* underline anchor */
  position: relative;
  padding-bottom: 4px;
}

/* the underline bar */
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--green);
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.main-nav a:hover {
  color: #fff;
}
.main-nav a:hover::after {
  width: 100%;
}

/* active item keeps the bar always visible */
.main-nav li.active a {
  color: #fff;
  font-weight: 700;
}
.main-nav li.active a::after {
  width: 100%;
}

.caret {
  font-size: 0.7rem;
}

/* new for dropbutton */

.main-nav li#drop.active > button {
  color: #fff;
  font-weight: 700;
}
.main-nav li#drop.active > button::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-btn {
  background: var(--orange);
  display: none;
}

/* dropdown */

/* Make the dropdown trigger look identical to a normal nav link */
.main-nav li#drop {
  position: relative;
}

.main-nav li#drop > button {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 0 4px 0;
  position: relative;
}

/* reuse the same underline-on-hover effect as .main-nav a */
.main-nav li#drop > button::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--green);
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-nav li#drop > button a {
  position: static; /* the inner <a> shouldn't manage its own underline */
}
.main-nav li#drop > button a::after {
  display: none;
}

.main-nav li#drop:hover > button {
  color: #fff;
}
.main-nav li#drop:hover > button::after {
  width: 100%;
}

/* rotate the caret when open */
.main-nav li#drop .caret {
  transition: transform 0.25s ease;
}
.main-nav li#drop:hover .caret,
.main-nav li#drop.open .caret {
  transform: rotate(180deg);
}

/* the actual dropdown panel */
.dropdown-content {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 200px;
  background: var(--dark-bg);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
  z-index: 10;
}

.main-nav li#drop:hover .dropdown-content,
.main-nav li#drop.open .dropdown-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
  position: static; /* override the ::after underline positioning from .main-nav a */
}

.dropdown-content a::after {
  display: none; /* don't inherit the underline animation inside dropdown items */
}

.dropdown-content a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* ============ HERO ============ */
.hero {
  background: var(--dark-bg);
  padding: 24px 0 60px;
}
.hero-slide {
  position: relative;
  max-width: var(--container-width);
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 640px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 20, 14, 0.92) 0%,
    rgba(10, 20, 14, 0.65) 45%,
    rgba(10, 20, 14, 0.1) 75%
  );
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 60px;
  padding-bottom: 50px;
}
.hero-content {
  max-width: 620px;
  color: #fff;
}

.badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 4px 16px 4px 16px;
  margin-bottom: 10px;
}
.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 34px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.volunteers {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatars {
  display: flex;
  align-items: center;
}
.avatars img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--dark-bg);
  margin-left: -12px;
  object-fit: cover;
}
.avatars img:first-child {
  margin-left: 0;
}
.avatar-count {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -12px;
  border: 2px solid var(--dark-bg);
}
.volunteers p {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.hero-since {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  max-width: 320px;
}
.since-icon {
  color: var(--green);
  font-size: 1.4rem;
}
.hero-since p {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.hero-since strong {
  color: var(--green);
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-prev {
  left: 24px;
}
.slide-next {
  right: 24px;
  background: var(--green);
}

/* ============ FEATURE CARDS ============ */
.features {
  background: var(--dark-bg);
  padding-bottom: 90px;
  margin-top: -30px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--dark-bg-2);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.feature-icon {
  width: 75px;
  height: 75px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.numba {
  font-weight: bold;
}
.feature-card p {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
}

/* ============ ABOUT SECTION ============ */
.about {
  padding: 100px 0;
  overflow: hidden;
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-media {
  position: relative;
  min-height: 540px;
}
.about-media .img-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  border-radius: 150px 0 150px 0;
  z-index: 1;
  object-fit: cover;
  object-position: 100% 5%;
  height: 60%;
}
.about-media .img-front {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 65%;
  border-radius: 30px;
  z-index: 2;
  border: 8px solid #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.experience-badge {
  position: absolute;
  bottom: 10px;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}
.exp-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green);
}
.experience-badge p {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-dark);
}

.eyebrow {
  display: inline-block;
  border: 1px solid var(--green);
  color: var(--green);
  font-weight: 600;
  font-size: 2rem;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.about-content h4 {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 32px;
  color: var(--text-dark);
}

.about-list {
  margin-bottom: 32px;
}
.about-item {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #e7e7e2;
}
.about-item:first-child {
  padding-top: 0;
}
.about-item-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  background: transparent;
  border: 1px solid #2f6b45;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
}

.about-item-icon:hover {
  background: var(--green);
}

.about-item-icon img {
  width: 36px;
  z-index: 2;
}

.about-item-text h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.about-item-text p {
  font-size: 0.9rem;
  color: #6b756e;
}

/* ============ project cards ============ */
.project-section {
  padding: 100px 0;
  background: #f7f9f7;
  overflow: hidden;
}
.project-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.project-head h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-top: 10px;
}

.partners-section {
  padding: 100px 0;
}

/* new card */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 32px;
}

/* 4 cols x 2 rows on desktop -> collapses down on smaller screens */
@media (max-width: 1080px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Nav arrows */
.slider-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 0;
  translate: 0 -50%;
  z-index: 5;
  pointer-events: none;
}
.slider-nav__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  pointer-events: auto;
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.2s ease;
}
.slider-nav__item:hover {
  background: var(--green-dark);
  transform: scale(1.08);
}
.slider-nav__item.disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.slider-nav__item path {
  stroke: currentColor;
}

/* Pagination */
.slider-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 36px;
}
.swiper-pagination-lock {
  display: none !important;
}
.slider-pagination__item {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--green);
  opacity: 0.25;
  transition: all 0.3s ease;
  cursor: pointer;
}
.slider-pagination__item.active {
  width: 28px;
  opacity: 1;
}

/* Card */
.swiper-slide {
  width: auto;
  height: auto;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
  .project-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .about-inner {
    grid-template-columns: 1fr;
  }
  .about-media {
    min-height: 420px;
    margin-bottom: 20px;
  }
  .hero-content h1 {
    font-size: 2.4rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 99;
  }

  .main-nav.open {
    /* JS sets an explicit px value on open — see below */
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
    padding: 20px;
  }

  .main-nav li#drop .dropdown-content {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    display: none;
    padding-left: 12px;
  }
  .main-nav li#drop.open .dropdown-content {
    display: block;
  }

  .menu-btn {
    display: flex;
  }

  /* lang toggle relocated inside the mobile nav */
  .main-nav .lang-toggle-wrap {
    display: flex;
    justify-content: center;
    padding: 16px 20px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
  }

  .header-actions .lang-toggle-wrap {
    display: none;
  }
}

/* map */

/* ── Layout: info left + map right ─────────────────────────── */
.map-layout {
  display: grid;
  grid-template-columns: 1fr 600px;
  gap: 20px;
  /* align-items: center; */
  /* height: 600px; */
}
/* ── Info panel ─────────────────────────────────────────────── */

.map-info h2 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 14px 0 16px;
  color: var(--text-dark);
}
.map-info > p {
  font-size: 0.95rem;
  color: #6b756e;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 380px;
}

/* Legend */
.map-legend {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.map-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #4a5c4f;
  font-weight: 500;
}
.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.legend-dot--active {
  background: #4caf6e;
}
.legend-dot--completed {
  background: #f37b3d;
}
.legend-dot--hq {
  background: #102017;
}

/* Stats row */
.map-stats {
  display: flex;
  gap: 28px;
}
.map-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.map-stat p {
  font-size: 0.82rem;
  color: #8a9b8e;
  font-weight: 500;
  margin-top: 4px;
}

/* ── Map frame: exactly 600×450 ─────────────────────────────── */
.map-frame-wrap {
  width: 600px;
  height: 750px;
  flex-shrink: 0;
}
.homemap {
  width: 600px;
  height: 700px;
  border-radius: 16px;
  overflow: hidden;
  /* border: 2px solid var(--green); */
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

/* ── Custom pin marker ───────────────────────────────────────── */
.eco-pin {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eco-pin__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--pin-color);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease;
}
.eco-pin__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--pin-color);
  opacity: 0.25;
  animation: pin-pulse 2s ease-out infinite;
  z-index: 1;
}
@keyframes pin-pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.35;
  }
  70% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    transform: scale(0.6);
    opacity: 0;
  }
}

/* Grow dot on popup open / hover */
.leaflet-marker-icon:hover .eco-pin__dot,
.eco-pin:hover .eco-pin__dot {
  transform: scale(1.3);
}

/* ── Custom popup ────────────────────────────────────────────── */
/* ── Leaflet popup wrapper resets ─────────────────────────────── */
.eco-popup-wrap .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  border: none;
  background: transparent;
}
.eco-popup-wrap .leaflet-popup-content {
  margin: 0;
  width: auto !important;
}
.eco-popup-wrap .leaflet-popup-tip {
  background: #0f3d3a;
}

/* ── Card: two-column grid ─────────────────────────────────────── */
.eco-popup {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  width: 400px;
  min-height: 200px;
  box-sizing: border-box;
}

/* ── Left panel (dark teal) ───────────────────────────────────── */
.eco-popup__left {
  background: #0f3d3a;
  color: #fff;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.eco-popup__badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.eco-popup__title {
  margin: 0 0 30px 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Black info box ────────────────────────────────────────────── */
.eco-popup__info {
  background: #0a1210;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.eco-popup__pin {
  flex-shrink: 0;
  color: #fff;
}

.eco-popup__date {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ── Right panel (light blue) ─────────────────────────────────── */
.eco-popup__right {
  background: #cfe6ef;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eco-popup__desc-label {
  margin: 0 0 12px;
  font-size: 1.3rem;
  font-weight: 500;
  color: #16302d;
}

.eco-popup__desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #2e433f;
  display: -webkit-box;
  text-align: justify;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Read more button ─────────────────────────────────────────── */
.eco-popup__more {
  align-self: flex-end;
  background: var(--green);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.eco-popup__more:hover {
  background: var(--green-dark);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .map-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .map-frame-wrap,
  #projectMap {
    width: 100%;
  }
  .map-info > p {
    max-width: 100%;
  }
  .map-info h2 {
    font-size: 1.9rem;
  }
}

@media (max-width: 640px) {
  #projectMap {
    height: 360px;
  }
  .map-stats {
    gap: 18px;
  }
  .map-stat strong {
    font-size: 1.5rem;
  }

  /* Popup card: stack columns and shrink on small viewports */
  .eco-popup {
    grid-template-columns: 1fr;
    width: 240px;
    min-height: unset;
  }
  .eco-popup__left,
  .eco-popup__right {
    padding: 16px;
  }
  .eco-popup__title {
    font-size: 0.95rem;
  }
  .eco-popup__badge {
    font-size: 0.62rem;
    padding: 5px 12px;
    margin-bottom: 12px;
  }
  .eco-popup__info {
    padding: 12px 14px;
    gap: 6px;
  }
  .eco-popup__loc {
    font-size: 0.8rem;
  }
  .eco-popup__date {
    font-size: 0.72rem;
  }
  .eco-popup__desc-label {
    font-size: 1.1rem;
  }
  .eco-popup__desc {
    font-size: 0.8rem;
  }
  .eco-popup__more {
    padding: 8px 16px;
    font-size: 0.75rem;
  }
}

/* ============================================================
   WHY CHOOSE US SECTION
   ============================================================ */
.why-section {
  position: relative;
  padding: 90px 0 80px;
  background: #edfaf0;
  overflow: hidden;
}

/* Background dot grid pattern */
.why-bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(76, 175, 110, 0.18) 1.5px,
    transparent 1.5px
  );
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Floating deco emoji-icons top corners */
/* Ensure content sits above background */
.why-section .container {
  position: relative;
  z-index: 2;
}

/* ── Header ─────────────────────────────────────────────────── */
.why-header {
  text-align: start;
  margin-bottom: 30px;
}
.why-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-dark);
  margin-top: 14px;
}

/* ── 3-column grid ──────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0 20px;
  align-items: center;
}

/* ── Feature columns ────────────────────────────────────────── */
.why-col--left,
.why-col--center {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 350px;
}

/* ── Feature box (pill card) ────────────────────────────────── */
.why-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 50px;
  padding: 14px 14px 14px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
  cursor: default;
}
.why-box:hover {
  box-shadow: 0 10px 32px rgba(76, 175, 110, 0.18);
  transform: translateY(-3px);
}

/* Animated corner border lines on hover */
.why-box__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  transition:
    width 0.3s ease,
    height 0.3s ease,
    opacity 0.3s ease;
  opacity: 0;
}
.why-box:hover .why-box__corner {
  opacity: 1;
  width: 18px;
  height: 18px;
}

.why-box__corner--tl {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--green);
  border-left: 2px solid var(--green);
  border-radius: 4px 0 0 0;
}
.why-box__corner--tr {
  top: -1px;
  right: -1px;
  border-top: 2px solid var(--green);
  border-right: 2px solid var(--green);
  border-radius: 0 4px 0 0;
}
.why-box__corner--bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 2px solid var(--green);
  border-left: 2px solid var(--green);
  border-radius: 0 0 0 4px;
}
.why-box__corner--br {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--green);
  border-right: 2px solid var(--green);
  border-radius: 0 0 4px 0;
}

.why-box__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why-box__icon--green {
  background: var(--green);
}
.why-box__icon--orange {
  background: var(--orange);
}
.why-box__icon--dark {
  background: var(--dark-bg);
}

.why-box span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ── right image ───────────────────────────────────────────── */
.why-col--right {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-image-frame {
  width: 100%;
  border-radius: 15px; /* arch top */
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 2px solid #4fc3f7; /* sky-blue frame matching design */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
.why-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Floating shapes bottom corners of center column */

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .why-col--right {
    width: 280px;
  }
  .why-deco {
    display: none;
  }
}

@media (max-width: 860px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
  }
  .why-col--right {
    grid-column: 1 / -1;
    order: -1;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  .why-shape {
    display: none;
  }
  .why-header h2 {
    font-size: 1.9rem;
  }
}

@media (max-width: 580px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
  .why-col--right {
    max-width: 300px;
  }
  .why-box {
    border-radius: 16px;
  }
  .why-header h2 {
    font-size: 1.6rem;
  }
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--dark-bg);
  color: var(--text-muted);
  padding-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-logo {
  margin-bottom: 18px;
}
.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 320px;
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  transition: background 0.2s ease;
}
.footer-socials a:hover {
  background: var(--green);
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-col ul a {
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-col ul a:hover {
  color: var(--green);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.footer-contact li span {
  color: var(--green);
  flex-shrink: 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 0;
  font-size: 0.85rem;
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a:hover {
  color: var(--green);
}

@media (max-width: 860px) {
  .slider-nav {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 36px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  :root {
    font-size: 15px;
  }
  .hero-slide {
    min-height: auto;
    padding-bottom: 20px;
  }
  .hero-inner {
    padding-top: 40px;
    padding-bottom: 30px;
  }
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .hero-cta-row {
    gap: 16px;
  }
  .slide-arrow {
    width: 38px;
    height: 38px;
  }
  .slide-prev {
    left: 12px;
  }
  .slide-next {
    right: 12px;
  }
  .about-content h2 {
    font-size: 1.8rem;
  }
  .about-media .img-front {
    width: 75%;
  }
  .about-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ============================================================
   LANGUAGE TOGGLE
   ============================================================ */
.lang-toggle-wrap {
  display: flex;
  align-items: center;
}
.switch {
  position: relative;
  display: inline-block;
  margin: 0 5px;
}
.switch > span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  width: 50%;
  text-align: center;
  transition: color 0.2s ease;
}
.switch > span.on {
  left: 0;
  padding-left: 2px;
  color: #000;
}
.switch > span.off {
  right: 0;
  padding-right: 4px;
  color: #000;
}
input.check-toggle-round-flat:checked ~ .on {
  color: #000;
}
input.check-toggle-round-flat:checked ~ .off {
  color: #000;
}

.check-toggle {
  position: absolute;
  margin-left: -9999px;
  visibility: hidden;
}
.check-toggle + label {
  display: block;
  position: relative;
  cursor: pointer;
  outline: none;
  user-select: none;
}
input.check-toggle-round-flat + label {
  padding: 2px;
  width: 90px;
  height: 40px;
  background-color: #266210;
  border-radius: 60px;
}
input.check-toggle-round-flat + label:before,
input.check-toggle-round-flat + label:after {
  display: block;
  position: absolute;
  content: "";
}
input.check-toggle-round-flat + label:before {
  top: 2px;
  left: 2px;
  bottom: 2px;
  right: 2px;
  background-color: #90b800;
  border-radius: 60px;
}
input.check-toggle-round-flat + label:after {
  top: 4px;
  left: 4px;
  bottom: 4px;
  width: 40px;
  background-color: #fff;
  border-radius: 52px;
  transition: margin 0.2s ease;
}
input.check-toggle-round-flat:checked + label:after {
  margin-left: 40px;
}

/* Bangla font hint for body when BN active */
html[lang="bn"] body {
  font-family: "Segoe UI", "Noto Sans Bengali", Arial, sans-serif;
}

@media (max-width: 640px) {
  .lang-toggle-wrap {
    order: -1;
  }
}

/* about us page */

/* profile card */

.profile-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 10px;
}

.profile-card {
  width: 350px;
  background: var(--dark-bg-2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(14, 28, 23, 0.5);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -12px rgba(14, 28, 23, 0.6);
}

.profile-icon-wrap {
  padding: 0px 0px 10px 0px;
}

.profile-icon {
  width: 100%;
  height: 300px;
  object-fit: cover;
  /* border-radius: 14px; */
  display: block;
}

.profile-body {
  padding: 5px 14px 15px;
  color: var(--text-light);
}

.profile-name {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 21px;
  line-height: 1.3;
  margin: 6px 0 10px;
}

.profile-position {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dark);
  background: var(--green);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 5px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--light-bg);
  text-decoration: none;
  border-radius: 999px;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.button:hover {
  background: var();
  transform: translateX(2px);
}

@media screen and (max-width: 400px) {
  .profile-card {
    width: 100%;
    max-width: 320px;
  }
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 30px 0 60px;
}

.pagination button {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #ddd;
  background: #fff;
  color: #555;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.pagination button:hover:not(:disabled) {
  border-color: #748dff;
  color: #748dff;
}

.pagination button.active {
  background: #748dff;
  border-color: #748dff;
  color: #fff;
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* about us */


  .parent.containter {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    /* FIX 1: bare `1fr` rows need a defined container height to mean anything.
       Without one they collapse to content size, so mixed fixed/fluid children
       (350px images next to text) produced wildly uneven, overlapping rows.
       `minmax()` gives every row a sane floor and lets it grow with content. */
    grid-auto-rows: minmax(70px, auto);
    gap: 25px;
    max-width: 1200px;
    margin: 30px auto;
  }
 
  /* FIX 2: every item gets an explicit start/end instead of relying on
     span-only auto-placement. This is what was letting div2 and div3
     silently fight over row 4, and made the whole layout fragile to any
     content-length change. */
  .div1 { grid-column: 1 / 5;  grid-row: 1 / 4; }
  .div2 { grid-column: 5 / 13; grid-row: 1 / 5; }
  .div3 { grid-column: 1 / 5;  grid-row: 4 / 8; }
  .div4 { grid-column: 5 / 9;  grid-row: 5 / 8; }
  .div5 { grid-column: 9 / 13; grid-row: 5 / 8; }
  .div6 { grid-column: 1 / 7;  grid-row: 8 / 13; }
  .div7 { grid-column: 7 / 13; grid-row: 8 / 13; }
 
  /* ===================== PANELS ===================== */
 
  .green-panel {
    width: 100%;
    height: 100%;
    background: var(--green);
    padding: 40px 60px;
    border-radius: 15px;
  }
 
  .green-panel h2 { margin: 0 0 16px; font-size: 22px; }
 
  .green-panel p {
    margin: 0;
    font-size: 18px;
    color: var(--text-dark);
    text-align: justify;
    /* FIX 3: fixed `width: 600px` here was overflowing the panel at any
       viewport narrower than ~780px. Fluid width lets it respect padding. */
    width: 100%;
  }
 
  /* ===================== IMAGES ===================== */
 
  .image-box {
    width: 100%;
    /* FIX 4: fixed 420x350px replaced with aspect-ratio, so the box gets a
       real intrinsic height (grid rows can't derive height from a
       height:100% image) while staying fluid at every width. */
    aspect-ratio: 4 / 3;
    background: var(--img-bg);
    border-radius: 15px;
    overflow: hidden;
  }
 
  .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
  }

  .image-box img:hover{
    scale: 1.1;
    transition: 0.5s;
    transition-timing-function: ease-in-out;
  }
 
  /* ===================== MISSION / VISION TEXT ===================== */
 
  .txt-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(168, 159, 162, 0.18);
    border-radius: 15px;
    padding: 20px 24px;
  }
 
  .txt-box h3 { margin: 0 0 8px; font-size: 20px; }
  .txt-box p  { margin: 0; font-size: 16px; text-align: justify; }
 
  .txt-box img{
    position: relative;
    width: 60px;
    height: 60px;
    top: -10px;
  }
  /* ===================== OBJECTIVES ===================== */
 
  .objectives-image {
    /* FIX 5 (the big one): this was `position: absolute` with no
       `position: relative` on its parent (.div6), so it broke out of the
       grid entirely and positioned against whatever ancestor happened to
       be positioned — overlapping div7 or the page itself. It's now a
       normal, fluid grid child. */
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 15px;
    overflow: hidden;
  }
 
  .objectives-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
  }
 
  .list-text {
    /* FIX 6: fixed `width: 600px` removed — same overflow issue as the
       mission panel above. */
    width: 100%;
    height: 100%;
    background: var(--green);
    padding: 20px;
    border-radius: 15px;
  }
 
  .list-text h2 { margin: 0 0 16px; font-size: 20px; }
 
  .unon { list-style-type: disc; margin: 0; padding-left: 20px; }
 
  .txtli { text-align: justify; font-size: 17px; margin-bottom: 14px; }
 
  .hedtex { font-size: 18px; font-weight: 700; }
 
  /* ===================== MOBILE RESPONSIVE ===================== */
  /* FIX 7: nothing here at all before — the grid was 12 fixed columns
     regardless of viewport, so everything below ~1000px just overflowed
     horizontally. Collapse to a single stacked column, in the same
     reading order as the DOM. */
 
  @media (max-width: 900px) {
    .parent.containter {
      grid-template-columns: 1fr;
      grid-auto-rows: auto;
      gap: 16px;
    }
 
    .div1, .div2, .div3, .div4, .div5, .div6, .div7 {
      grid-column: 1 / -1;
      grid-row: auto;
    }
 
    .green-panel { padding: 28px 24px; }
    .green-panel p { font-size: 16px; }
 
    .image-box { aspect-ratio: 16 / 10; }
 
    .objectives-image { aspect-ratio: 16 / 10; }
 
    .txtli { font-size: 15px; }
  }
 
  @media (max-width: 480px) {
    body { padding: 20px 12px; }
    .green-panel { padding: 20px 16px; }
    .green-panel h2 { font-size: 19px; }
  }


  .page_title {
  display: flex;
  font-family: var(--pub-font-display);
  color: var(--pub-text);
  font-size: clamp(28px, 4vw, 38px);
  margin: 10px 0 32px;
  justify-content: center;
}