:root {
  --green-950: #07261c;
  --green-900: #0d3d2c;
  --green-800: #145a3c;
  --green-700: #1b6e49;
  --green-100: #e4f3eb;
  --green-50: #f3faf6;
  --terra: #c45c3a;
  --terra-dark: #9a3d24;
  --terra-soft: #f3d8cf;
  --gold: #d4a24a;
  --cream: #fbf6ef;
  --paper: #fffdf9;
  --ink: #1c1612;
  --muted: #5e534c;
  --line: #eadfd3;
  --shadow: 0 12px 40px rgba(28, 22, 18, 0.08);
  --radius: 18px;
  --latin: ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hind Siliguri", var(--latin);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
  background: var(--cream);
}

:lang(bn) { font-family: "Hind Siliguri", var(--latin); }

.latin,
input[type="email"],
input[type="url"],
.brand-text strong {
  font-family: var(--latin);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-800); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra); }
h1, h2, h3, h4 { line-height: 1.35; font-weight: 700; margin: 0 0 0.6em; color: var(--green-950); }
p { margin: 0 0 1em; }

.container {
  width: min(1120px, calc(100% - 1.6rem));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--green-900);
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { top: 0.5rem; color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--green-900);
}
.brand-text span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--green-900);
  border-radius: 2px;
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 4.4rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 1rem 1.2rem;
  flex-direction: column;
  gap: 0.15rem;
  box-shadow: var(--shadow);
}
.site-nav.is-open { display: flex; }
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-weight: 500;
}
.site-nav a.is-active,
.site-nav a:hover { background: var(--green-50); color: var(--green-800); }
.nav-cta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--green-800); color: #fff; }
.btn-primary:hover { background: var(--green-900); color: #fff; }
.btn-accent { background: var(--terra); color: #fff; }
.btn-accent:hover { background: var(--terra-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--green-800);
  border: 1.5px solid var(--green-800);
}
.btn-ghost:hover { background: var(--green-50); color: var(--green-900); }
.btn-light { background: #fff; color: var(--green-900); }
.btn-danger { background: #9b2c2c; color: #fff; }
.btn-sm { padding: 0.4rem 0.85rem; min-height: 38px; font-size: 0.95rem; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(212, 162, 74, 0.18), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(196, 92, 58, 0.16), transparent 26%),
    linear-gradient(160deg, var(--green-950), var(--green-800) 55%, #1e5a40);
  color: #fbf6ef;
  padding: 3.2rem 0 3.6rem;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1.2px, transparent 1.4px);
  background-size: 18px 18px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-kicker {
  display: inline-block;
  background: rgba(251, 246, 239, 0.12);
  border: 1px solid rgba(251, 246, 239, 0.22);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 6vw, 3.4rem);
  max-width: 16ch;
  margin-bottom: 0.3rem;
}
.hero .tagline {
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.hero .lede {
  max-width: 38rem;
  color: #f3e8dc;
  font-size: 1.12rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

.section { padding: 3rem 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.section-head p { margin: 0; color: var(--muted); max-width: 40rem; }
.kicker {
  color: var(--terra);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}

.grid {
  display: grid;
  gap: 1rem;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.35rem; }
.card-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.card-link:hover { border-color: var(--green-700); color: inherit; }
.card-meta { color: var(--muted); font-size: 0.95rem; }

.country-card {
  text-align: center;
  padding: 1.2rem 0.8rem 1.3rem;
}
.flag {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 0.4rem;
  font-family: var(--latin);
}
.badge {
  display: inline-block;
  background: var(--gold);
  color: var(--green-950);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}
.badge-soft { background: var(--green-100); color: var(--green-800); }

.values .card { text-align: left; }
.value-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.cta-banner {
  background: linear-gradient(120deg, var(--green-800), var(--green-950));
  color: #fff;
  border-radius: 24px;
  padding: 2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.cta-banner h2 { color: #fff; margin: 0; }
.cta-banner p { margin: 0; color: #f3e8dc; }

.page-hero {
  padding: 2.2rem 0 1.4rem;
  background:
    linear-gradient(180deg, var(--green-50), var(--cream));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }

.prose { max-width: 46rem; }
.prose p { font-size: 1.06rem; }

.person-card { text-align: center; }
.avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto 0.8rem;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--green-700), var(--terra));
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.form {
  display: grid;
  gap: 0.9rem;
}
.form label { font-weight: 600; display: block; margin-bottom: 0.25rem; }
.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  line-height: 1.6;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--green-700);
  border-color: var(--green-700);
}
.form input.is-invalid,
.form select.is-invalid,
.form textarea.is-invalid {
  border-color: #9b2c2c;
}
.hint { color: var(--muted); font-size: 0.92rem; font-weight: 400; }
.field-error { color: #9b2c2c; font-size: 0.9rem; }

.flash-wrap { padding-top: 1rem; display: grid; gap: 0.5rem; }
.flash {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 500;
}
.flash-success { background: #e3f6ea; color: #145a3c; }
.flash-error { background: #fde8e4; color: #9a3d24; }
.flash-info { background: #fff4d6; color: #6b4e12; }

.muted { color: var(--muted); }
.split {
  display: grid;
  gap: 1.5rem;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 240px;
  background: var(--green-100);
}
.map-wrap iframe { width: 100%; height: 280px; border: 0; }

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem 1rem;
  margin-bottom: 0.6rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--green-900);
}

.story-card { position: relative; }
.story-card::before {
  content: "“";
  font-size: 3rem;
  color: var(--terra);
  line-height: 1;
  display: block;
}

.list-card {
  display: grid;
  gap: 0.3rem;
}
.cover {
  height: 160px;
  border-radius: 14px;
  margin: -0.3rem -0.3rem 0.8rem;
  background:
    linear-gradient(135deg, rgba(13,61,44,0.65), rgba(196,92,58,0.45)),
    var(--green-800);
}

.reach-visual {
  background: var(--green-950);
  color: #fff;
  border-radius: 24px;
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  position: relative;
  overflow: hidden;
}
.reach-visual svg { width: 100%; height: auto; display: block; opacity: 0.95; }
.reach-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}
.reach-dots span {
  background: rgba(255,255,255,0.1);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.88rem;
}

.site-footer {
  background: var(--green-950);
  color: #efe6dc;
  padding: 2.6rem 0 1.2rem;
  margin-top: 2rem;
}
.site-footer h2 { color: #fff; font-size: 1.1rem; }
.site-footer a { color: #d8efe4; }
.footer-grid {
  display: grid;
  gap: 1.6rem;
}
.footer-tagline { color: var(--gold); font-weight: 600; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 0.2rem 0; }
.footer-bottom {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.92rem;
}
.social { display: flex; gap: 0.5rem; margin-top: 0.8rem; }
.social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
  font-family: var(--latin);
  font-weight: 700;
}
.newsletter-form { display: grid; gap: 0.5rem; }
.newsletter-form input {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 0;
}

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
}
table.data th,
table.data td {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data th { background: var(--green-50); }

.admin-body { background: #f4efe8; }
.admin-shell {
  display: grid;
  min-height: 100vh;
}
.admin-side {
  background: var(--green-950);
  color: #efe6dc;
  padding: 1.2rem;
}
.admin-side a {
  display: block;
  color: #efe6dc;
  text-decoration: none;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
}
.admin-side a.is-active,
.admin-side a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-main { padding: 1.2rem; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.stat {
  background: var(--paper);
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid var(--line);
}
.stat b { display: block; font-size: 1.6rem; color: var(--green-800); font-family: var(--latin); }

@media (max-width: 719px) {
  .admin-side nav { display: flex; flex-wrap: wrap; gap: 0.2rem; }
  .admin-side nav a { display: inline-block; }
}

.auth-card {
  max-width: 440px;
  margin: 2.5rem auto;
}

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1.1fr 0.9fr; }
  .cta-banner { flex-direction: row; align-items: center; justify-content: space-between; padding: 2.2rem; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; }
  .admin-shell { grid-template-columns: 240px 1fr; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .header-inner { min-height: 4.6rem; }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.1rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .site-nav a { font-size: 0.92rem; padding: 0.35rem 0.5rem; }
  .nav-cta { margin: 0 0 0 0.4rem; padding: 0 0 0 0.5rem; border: 0; border-left: 1px solid var(--line); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 979px) {
  body.nav-open { overflow: hidden; }
}
