/* =========================================================
   PUS – Main Stylesheet
   Structure mirrors the future WordPress theme:
   1. Tokens  2. Base  3. Header  4. Hero  5. Sections
   6. Cards  7. Page-specific  8. Footer  9. Responsive
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --green-900: #06281d;
  --green-800: #0a3a2a;
  --green-700: #0f4b36;
  --green-600: #146b45;
  --green-500: #1f9d4a;   /* primary button */
  --green-400: #35b85e;
  --green-300: #5fd07f;   /* accent text on dark */
  --green-100: #dff1e3;
  --green-50:  #f2f8f2;   /* light section bg */
  --lime:      #c8e05a;   /* logo tile */
  --ink:       #0f2a1f;
  --text:      #3d4f46;
  --muted:     #6b7b73;
  --line:      #dde8df;
  --white:     #ffffff;

  --c-edu:   #1f9d4a;
  --c-health:#1e88e5;
  --c-prot:  #f39c12;
  --c-incl:  #8e5bd6;
  --c-env:   #2e9d57;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(8, 40, 28, .06);
  --shadow:    0 10px 30px rgba(8, 40, 28, .10);

  --font:        "Poppins", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-bn:     "Hind Siliguri", "Noto Sans Bengali", var(--font);
  --font-script: "Caveat", cursive;

  --container: 1200px;
  --header-h: 78px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-500); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-600); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p  { margin: 0 0 1em; }

/* Bangla content (posts marked lang="bn") */
[lang="bn"], .lang-bn { font-family: var(--font-bn); line-height: 1.8; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--light { background: var(--green-50); }
.section--dark  { background: var(--green-800); color: #cfe3d6; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-500); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--green-300); }
.eyebrow--plain::before { display: none; }

.hl { color: var(--green-300); position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'%3E%3Cpath d='M2 6 Q60 1 198 4' stroke='%235fd07f' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/100% 100%;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-radius: var(--radius-sm); border: 0; cursor: pointer;
  font: 600 .9rem/1 var(--font); transition: transform .2s, background .2s, box-shadow .2s;
}
.btn svg { width: 16px; height: 16px; }
.btn { white-space: nowrap; }
.btn--primary { background: var(--green-500); color: var(--white); box-shadow: 0 6px 16px rgba(31,157,74,.3); }
.btn--primary:hover { background: var(--green-600); color: var(--white); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--green-600); border: 1.5px solid var(--green-500); }
.btn--outline:hover { background: var(--green-500); color: var(--white); }
.btn--pill { border-radius: 999px; }
.btn--sm { padding: 9px 18px; font-size: .82rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .86rem; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--green-300); }

.icon { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- 3. Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(6, 40, 29, .82);
  backdrop-filter: blur(6px);
  transition: background .3s, box-shadow .3s;
}
.site-header.is-sticky { position: fixed; background: var(--green-800); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700; font-size: 1.55rem; letter-spacing: .02em; }
.logo:hover { color: var(--white); }
.logo__mark { width: 38px; height: 38px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a {
  display: block; padding: 8px 12px; color: #e3efe7; font-size: .88rem; font-weight: 500; position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px;
  background: var(--green-300); transform: scaleX(0); transition: transform .25s;
}
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--white); }
.main-nav a:hover::after, .main-nav .current-menu-item a::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- 4. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--green-800);
  color: #d9e9df;
  padding: calc(var(--header-h) + 70px) 0 80px;
  min-height: 520px;
  display: flex; align-items: center;
}
.hero__media { position: absolute; inset: 0 0 0 38%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--green-800) 34%, rgba(10,58,42,.85) 48%, rgba(10,58,42,.15) 72%, rgba(10,58,42,0) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero__content { max-width: 600px; }
.hero:not(.hero--page) h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.hero h1 { color: var(--white); margin-bottom: .45em; }
.hero p { font-size: 1.02rem; color: #cfe3d6; max-width: 480px; margin-bottom: 1.8em; }
.hero__script {
  position: absolute; right: 5%; bottom: 14%; z-index: 2;
  font: 600 2rem/1.1 var(--font-script); color: var(--white); transform: rotate(-8deg); text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.hero--page { min-height: 400px; padding-bottom: 64px; }
.hero--page h1 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }

.breadcrumb { font-size: .82rem; color: var(--muted); padding: 22px 0 0; }
.breadcrumb a { color: var(--green-500); }
.breadcrumb span { margin: 0 8px; }

/* ---------- 5. Sections ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { max-width: 380px; margin: 0; font-size: .92rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 8px 12px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__icon {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; background: var(--green-100); color: var(--green-700);
}
.stat__icon svg { width: 26px; height: 26px; }
.stat__num { font-size: 1.6rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.stat__label { font-size: .8rem; color: var(--muted); }

.play-link { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: .9rem; color: var(--green-600); }
.play-link__btn { width: 38px; height: 38px; border-radius: 50%; background: var(--green-600); display: grid; place-items: center; color: #fff; transition: transform .2s; }
.play-link__btn svg { width: 14px; height: 14px; margin-left: 2px; }
.play-link:hover .play-link__btn { transform: scale(1.08); }

/* Impact / CTA banner */
.banner { position: relative; background: var(--green-800); color: #cfe3d6; overflow: hidden; }
.banner__grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 340px; }
.banner__media { position: relative; }
.banner__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,58,42,0) 55%, var(--green-800) 100%); }
.banner__body { padding: 56px 48px; display: flex; align-items: center; gap: 32px; }
.banner__body h2 { color: var(--white); }
.banner__quote { font: 600 1.9rem/1.2 var(--font-script); color: var(--white); transform: rotate(-4deg); flex-shrink: 0; }

.quote-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--green-700), var(--green-600));
  color: var(--white); padding: 60px 0; text-align: center;
}
.quote-band blockquote { margin: 0; font: 600 clamp(1.6rem, 3vw, 2.3rem)/1.35 var(--font-script); position: relative; z-index: 1; }
.quote-band .leaf { position: absolute; color: rgba(255,255,255,.25); width: 90px; height: 90px; }
.quote-band .leaf--l { left: 3%; top: 50%; transform: translateY(-50%); }
.quote-band .leaf--r { right: 6%; bottom: -8px; width: 120px; height: 120px; }
.quote-band--image { text-align: left; padding: 0; }
.quote-band--image .container { position: relative; min-height: 220px; display: flex; align-items: center; }
.quote-band--image .qb-media { position: absolute; top: 0; bottom: 0; right: 0; width: 46%; }
.quote-band--image .qb-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.quote-band--image blockquote { padding: 56px 0 56px 90px; max-width: 58%; }
.quote-band--image .leaf--l { left: 0; }

/* ---------- 6. Cards ---------- */
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card__media { display: block; flex-shrink: 0; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-100); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 30px 20px 20px; position: relative; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: .3em; }
.card__body h3 a { color: var(--ink); }
.card__body h3 a:hover { color: var(--green-500); }
.card__body p { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.card__body .link-arrow { margin-top: auto; }
.card__badge {
  position: absolute; top: -22px; left: 18px;
  width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--white);
  display: grid; place-items: center; color: var(--white); background: var(--green-500);
}
.card__badge svg { width: 20px; height: 20px; }
.badge--edu { background: var(--c-edu); } .badge--health { background: var(--c-health); }
.badge--prot { background: var(--c-prot); } .badge--incl { background: var(--c-incl); }
.badge--env { background: var(--c-env); }

.card--compact .card__body { padding: 26px 16px 16px; }
.card--compact h3 { font-size: .98rem; }

.meta { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); margin-bottom: 8px; }
.meta svg { width: 15px; height: 15px; color: var(--green-500); }
.tag { display: inline-block; font-size: .7rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-700); }
.card--news .card__media { aspect-ratio: 16 / 9; }
.card--news .card__body { padding: 18px 20px 20px; }
.card--news h3 { font-size: 1rem; }

/* Feature (mission/vision/value, ways to get involved) */
.feature {
  background: var(--green-50); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .25s, box-shadow .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: var(--white); }
.feature__icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--green-100); color: var(--green-700); margin-bottom: 16px; }
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { margin-bottom: .35em; }
.feature p { font-size: .88rem; margin: 0; }
.feature--row { display: flex; gap: 16px; align-items: flex-start; }
.feature--row .feature__icon { flex-shrink: 0; margin: 0; width: 50px; height: 50px; }
.feature--row .btn { margin-top: 16px; }
.feature--row { padding: 24px 18px; }

/* Blob image (About page) */
.blob { position: relative; max-width: 420px; margin-left: auto; }
.blob::before {
  content: ""; position: absolute; inset: -6% -4% -4% -6%; z-index: 0;
  background: var(--green-400); opacity: .9;
  border-radius: 58% 42% 52% 48% / 46% 56% 44% 54%; transform: rotate(-6deg);
}
.blob img { position: relative; z-index: 1; border-radius: 48% 52% 44% 56% / 52% 44% 56% 48%; aspect-ratio: 5/4; object-fit: cover; width: 100%; }

/* ---------- 7. Page-specific ---------- */
/* Filters (News) */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
  padding: 8px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font: 500 .86rem var(--font); color: var(--text); cursor: pointer; transition: all .2s;
}
.filter-btn:hover { border-color: var(--green-500); color: var(--green-600); }
.filter-btn.is-active { background: var(--green-500); border-color: var(--green-500); color: var(--white); }
.is-hidden { display: none !important; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination a, .pagination span {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px;
  font-size: .88rem; font-weight: 500; color: var(--text); border: 1px solid var(--line); background: var(--white);
}
.pagination .current { background: var(--green-700); color: var(--white); border-color: var(--green-700); }
.pagination a:hover { border-color: var(--green-500); color: var(--green-600); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; }
.contact-grid > div { padding: 0 48px; }
.contact-grid > div:first-child { padding-left: 0; border-right: 1px solid var(--line); }
.contact-grid > div:last-child { padding-right: 0; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.form-group label .req { color: #d64545; }
.form-control {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: 400 .9rem var(--font); color: var(--ink); background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { outline: 0; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(31,157,74,.15); }
textarea.form-control { min-height: 130px; resize: vertical; }
select.form-control { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7b73' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center/18px; }
.form-control.is-invalid { border-color: #d64545; }
.form-note { font-size: .85rem; margin-top: 12px; }
.form-note.success { color: var(--green-600); }
.form-note.error { color: #d64545; }

.info-list { list-style: none; padding: 0; margin: 0 0 28px; }
.info-list li { display: flex; gap: 16px; margin-bottom: 18px; }
.info-list .icon { color: var(--green-600); width: 26px; height: 26px; margin-top: 4px; }
.info-list small { display: block; color: var(--muted); font-size: .8rem; }
.info-list strong, .info-list a { color: var(--ink); font-weight: 500; }
.social { display: flex; gap: 10px; }
.social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--green-700); color: var(--white); transition: background .2s, transform .2s; }
.social a:hover { background: var(--green-500); transform: translateY(-2px); }
.social svg { width: 16px; height: 16px; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 230px; margin-top: 24px; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Single (program / news details) */
.single-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; }
.entry-content { font-size: 1rem; }
.entry-content img { border-radius: var(--radius); margin: 24px 0; }
.entry-content h2 { font-size: 1.5rem; margin-top: 1.4em; }
.entry-content ul { padding-left: 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote { border-left: 4px solid var(--green-500); margin: 24px 0; padding: 8px 20px; background: var(--green-50); font-style: italic; }
.entry-featured { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; aspect-ratio: 16/8; }
.entry-featured img { width: 100%; height: 100%; object-fit: cover; }
.sidebar .widget { background: var(--green-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.sidebar .widget h3 { font-size: 1rem; margin-bottom: 14px; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { border-bottom: 1px solid var(--line); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar li a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; color: var(--text); font-size: .9rem; }
.sidebar li a:hover, .sidebar li.active a { color: var(--green-600); font-weight: 500; }
.widget--cta { background: var(--green-800) !important; color: #cfe3d6; border: 0 !important; }
.widget--cta h3 { color: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.gallery-grid img { border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; margin: 0; }
.share { display: flex; align-items: center; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); margin-top: 32px; font-weight: 500; color: var(--ink); }

/* Documents list */
.doc-list { display: grid; gap: 14px; }
.doc-item { display: flex; align-items: center; gap: 18px; padding: 18px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, border-color .2s; }
.doc-item:hover { box-shadow: var(--shadow-sm); border-color: var(--green-400); }
.doc-item__icon { width: 46px; height: 46px; border-radius: 10px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; flex-shrink: 0; }
.doc-item h3 { font-size: 1rem; margin: 0; }
.doc-item small { color: var(--muted); }
.doc-item .btn { margin-left: auto; }

/* Donate box */
.donate-box { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 36px; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.amount-btn { padding: 12px 6px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; font: 600 .95rem var(--font); color: var(--ink); cursor: pointer; }
.amount-btn.is-active, .amount-btn:hover { border-color: var(--green-500); color: var(--green-600); background: var(--green-50); }
.pay-methods { display: flex; gap: 10px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: 14px; }
.pay-methods span { padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; }

/* ---------- 8. Footer ---------- */
.site-footer { background: var(--green-900); color: #a9c4b4; font-size: .86rem; position: relative; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1.3fr; gap: 40px; padding: 64px 0 40px; }
.site-footer h4 { color: var(--white); font-size: .95rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #a9c4b4; }
.site-footer a:hover { color: var(--green-300); }
.footer-about p { margin: 14px 0 20px; max-width: 240px; }
.site-footer .social a { background: rgba(255,255,255,.08); }
.site-footer .social a:hover { background: var(--green-500); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 17px; height: 17px; color: var(--green-300); margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; }
.footer-leaf { position: absolute; right: 24px; bottom: 16px; width: 90px; height: 90px; color: rgba(95,208,127,.25); pointer-events: none; }

.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-500); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top svg { width: 20px; height: 20px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 9. Responsive ----------
   Breakpoints: 1200 (small laptop) · 1100 · 960 (tablet, mobile menu)
                · 720 (large phone / small tablet) · 560 (phone) · 380 (small phone)
   ------------------------------------------------------------------------ */
.news-intro { display: grid; grid-template-columns: minmax(220px, 1fr) 3fr; gap: 40px; align-items: center; }
main { overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; }
.grid > * { min-width: 0; }

@media (max-width: 1200px) {
  .feature--row { flex-direction: column; }
  .feature--row .feature__icon { margin-bottom: 4px; }
  .banner__body { flex-direction: column; align-items: flex-start; gap: 20px; padding: 48px 40px; }
  .banner__quote { font-size: 1.6rem; transform: rotate(-3deg); }
  .news-intro { grid-template-columns: 1fr; gap: 28px; }
  .news-intro > div:first-child { max-width: 560px; }
}

@media (max-width: 1100px) {
  .header-inner { gap: 16px; }
  .main-nav ul { gap: 0; }
  .main-nav a { padding: 8px 7px; font-size: .82rem; }
  .main-nav a::after { left: 7px; right: 7px; }
  .logo { font-size: 1.35rem; }
  .logo__mark { width: 34px; height: 34px; }
  /* 5 program cards → rows of 3, last row centred */
  .grid-5 { display: flex; flex-wrap: wrap; justify-content: center; }
  .grid-5 > * { flex: 0 0 calc((100% - 48px) / 3); }
  .split--stats { grid-template-columns: 1fr; gap: 40px; }
  .split--stats > div:first-child { max-width: 640px; }
  .footer-top { gap: 28px; }
  .single-layout { grid-template-columns: 1fr 280px; gap: 32px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .section { padding: 72px 0; }

  /* Mobile menu (backdrop-filter must be off, otherwise the fixed menu is trapped inside the header) */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(6, 40, 29, .94); }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--green-800); padding: 12px 24px 32px; overflow-y: auto;
    opacity: 0; transform: translateY(-10px); transition: opacity .25s ease, transform .25s ease, visibility .25s; visibility: hidden;
  }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 15px 4px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav a::after { display: none; }
  .main-nav .current-menu-item a { color: var(--green-300); }
  body.nav-open { overflow: hidden; }
  .site-header.nav-is-open { background: var(--green-800); }
  .logo { font-size: 1.45rem; }

  /* Hero: image visible, text readable */
  .hero { min-height: 480px; }
  .hero--page { min-height: 360px; }
  .hero__media { inset: 0; }
  .hero::before { background: linear-gradient(90deg, rgba(10,58,42,.95) 0%, rgba(10,58,42,.8) 55%, rgba(10,58,42,.35) 100%); }
  .hero__script { display: none; }

  /* Layouts */
  .single-layout, .contact-grid, .banner__grid { grid-template-columns: 1fr; }
  .split { gap: 36px; }
  .contact-grid > div { padding: 0 !important; border: 0 !important; }
  .contact-grid > div + div { margin-top: 48px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature--row { flex-direction: row; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .sidebar .widget { margin: 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 16px; }
  .section-head p { max-width: 560px; }

  .banner__media { min-height: 280px; }
  .banner__media::after { background: linear-gradient(180deg, rgba(10,58,42,0) 55%, var(--green-800) 100%); }
  .banner__body { padding: 40px 24px 56px; }
  .quote-band--image .qb-media { position: relative; width: 100%; height: 240px; }
  .quote-band--image .qb-media img { -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%); mask-image: linear-gradient(180deg, transparent, #000 35%); }
  .quote-band--image blockquote { padding: 36px 16px 44px; max-width: none; text-align: center; }
  .quote-band .leaf--l { left: 2%; width: 60px; height: 60px; }
  .blob { max-width: 380px; margin: 0 auto; width: 88%; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 28px; padding-top: 56px; }
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  /* 3-column card grids → 2 per row, last card centred */
  .grid-3 { display: flex; flex-wrap: wrap; justify-content: center; }
  .grid-3 > * { flex: 0 0 calc((100% - 24px) / 2); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stat:nth-child(3) { border-left: 0; }
  .sidebar { grid-template-columns: 1fr; }
  .entry-featured { aspect-ratio: 16/10; }
}

@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }
  h2 { font-size: 1.55rem; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { display: grid; grid-template-columns: 1fr; }
  .grid-5 { gap: 12px; }
  .grid-5 > * { flex: 0 0 calc((100% - 12px) / 2); }
  .card--compact .card__body { padding: 24px 12px 14px; }
  .card--compact .card__body p { display: none; }
  .card--compact h3 { font-size: .9rem; }
  .card__badge { width: 38px; height: 38px; top: -19px; left: 12px; }
  .card__badge svg { width: 17px; height: 17px; }

  .hero { min-height: 0; padding: calc(var(--header-h) + 44px) 0 52px; }
  .hero::before { background: linear-gradient(180deg, rgba(10,58,42,.72) 0%, rgba(10,58,42,.88) 55%, rgba(10,58,42,.96) 100%); }
  .hero h1, .hero--page h1 { font-size: 1.75rem; }
  .hero p { font-size: .95rem; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 8px 14px; }

  .stat { padding: 8px 6px; }
  .stat__icon { width: 52px; height: 52px; margin-bottom: 10px; }
  .stat__num { font-size: 1.4rem; }
  .feature { padding: 22px 18px; }
  .banner__media { min-height: 220px; }
  .banner__quote { font-size: 1.4rem; }
  .quote-band { padding: 44px 0; }
  .quote-band blockquote { font-size: 1.45rem; }
  .quote-band--image .qb-media { height: 200px; }
  .quote-band .leaf--l, .quote-band .leaf--r { display: none; }

  .amounts { grid-template-columns: repeat(2, 1fr); }
  .donate-box { padding: 24px 18px; border-radius: var(--radius); }
  .form-row { grid-template-columns: 1fr !important; }
  .doc-item { flex-wrap: wrap; padding: 16px; gap: 14px; }
  .doc-item .btn { margin-left: 62px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .filters { gap: 8px; }
  .filter-btn { padding: 7px 16px; font-size: .82rem; }
  .map { height: 200px; }

  /* Footer: brand full width, the two link lists side by side, contact full width */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding: 48px 0 32px; }
  .footer-about, .footer-contact { grid-column: 1 / -1; }
  .footer-about p { max-width: none; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .footer-leaf { width: 60px; height: 60px; }
  .back-to-top { right: 14px; bottom: 14px; width: 40px; height: 40px; }
}

@media (max-width: 380px) {
  .logo span { font-size: 1.25rem; }
  .header-actions .btn { padding: 7px 10px; font-size: .78rem; }
  .header-actions .btn svg { display: none; }
  .hero h1, .hero--page h1 { font-size: 1.55rem; }
  .amounts { gap: 8px; }
}
@media (max-width: 340px) {
  .grid-5 > * { flex: 0 0 100%; }
  .card--compact .card__body p { display: block; }
  .footer-top { grid-template-columns: 1fr; }
}


/* =========================================================
   WordPress additions
   ========================================================= */
.split--top { align-items: start; }
.section-title { margin-bottom: 32px; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.h-sm { font-size: 1.5rem; }
.rounded-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split__text { white-space: normal; }
.form-row { gap: 0 16px; }
.share-block { margin-top: 28px; }
.doc-item__desc { margin: 2px 0; font-size: .86rem; color: var(--text); }
.doc-item h3 { color: var(--ink); }
.section--features .eyebrow + .section-title { margin-top: 0; }
.main-nav .current-menu-parent > a, .main-nav .current_page_parent > a, .main-nav .current-menu-ancestor > a { color: var(--white); }
.main-nav .current_page_parent > a::after, .main-nav .current-menu-ancestor > a::after { transform: scaleX(1); }
.logo img, .custom-logo { max-height: 44px; width: auto; }
.admin-bar .site-header { top: 32px; }
.admin-bar .site-header.is-sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } .admin-bar .site-header.is-sticky { top: 0; } }

/* Regular (non-PUS) blocks inside page/post content */
.entry-blocks > *:not(.alignfull):not([class*="wp-block-pus-"]) { max-width: calc(var(--container) - 48px); margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }
@media (max-width: 1248px) { .entry-blocks > *:not(.alignfull):not([class*="wp-block-pus-"]) { margin-left: 24px; margin-right: 24px; } }
@media (max-width: 640px) { .entry-blocks > *:not(.alignfull):not([class*="wp-block-pus-"]) { margin-left: 16px; margin-right: 16px; } }
.entry-blocks > p:not([class]):first-child, .entry-blocks > .wp-block-group:first-child { margin-top: 48px; }
.entry-blocks > :not([class*="wp-block-pus-"]):last-child { margin-bottom: 72px; }
.page-plain { padding: 40px 0 72px; }

/* Content typography (posts, programs, plain pages) */
.entry-content > * + * { margin-top: 1em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content .wp-block-image img, .entry-content figure img { border-radius: var(--radius); margin: 0; }
.entry-content figure { margin: 24px 0; }
.entry-content figcaption { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content .wp-block-gallery { gap: 12px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content td, .entry-content th { border: 1px solid var(--line); padding: 8px 12px; }
.entry-content .wp-block-button__link { background: var(--green-500); color: #fff; border-radius: var(--radius-sm); text-decoration: none; padding: 12px 24px; font-weight: 600; }
.entry-content .wp-block-embed iframe { max-width: 100%; border-radius: var(--radius); }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wp-caption-text { font-size: .82rem; color: var(--muted); }

/* WP pagination */
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { width: auto; min-width: 38px; padding: 0 10px; height: 38px; display: grid; place-items: center; border-radius: 8px; font-size: .88rem; font-weight: 500; color: var(--text); border: 1px solid var(--line); background: var(--white); }
.pagination .page-numbers.current { background: var(--green-700); color: var(--white); border-color: var(--green-700); }
.pagination a.page-numbers:hover { border-color: var(--green-500); color: var(--green-600); }
.pagination .dots { border: 0; background: none; }
a.filter-btn { display: inline-block; }

/* Search & 404 */
.search-form { display: flex; gap: 8px; max-width: 460px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; }
.search-form .search-submit { padding: 12px 20px; border: 0; border-radius: var(--radius-sm); background: var(--green-500); color: #fff; font: 600 .9rem var(--font); cursor: pointer; }
.error-404 { text-align: center; padding: 100px 0; }
.error-404 .big { font-size: 6rem; font-weight: 700; color: var(--green-100); line-height: 1; }
.error-404 .search-form { margin: 24px auto 0; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; font-weight: 500; }
.entry-blocks > :not([class*="wp-block-pus-"]) + :not([class*="wp-block-pus-"]) { margin-top: 1em; }
.entry-blocks > h2:not([class*="wp-block-pus-"]), .entry-blocks > h3:not([class*="wp-block-pus-"]) { margin-top: 1.4em; }
.sidebar li a svg { width: 15px; height: 15px; flex-shrink: 0; }
.grid > * { min-width: 0; }
.form-group label .optional { font-weight: 400; color: var(--muted); font-size: .78rem; }

.footer-note { margin: 0 0 18px; font-size: .85rem; color: #a9c4b4; }
.footer-note p { margin: 0 0 6px; }

/* Footer – supported payment methods banner */
.footer-payments { border-top: 1px solid rgba(255,255,255,.08); margin-top: 8px; padding: 24px 0 8px; text-align: center; }
.footer-payments__caption { margin: 0 0 14px; font-size: .82rem; color: #a9c4b4; }
.footer-payments__list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.footer-payments__list span { font-size: .78rem; color: #cfe3d6; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 5px 12px; background: rgba(255,255,255,.04); }
.footer-payments__list a { display: inline-block; }

/* Wide "Pay With …" banner from SSLCommerz: white panel, full container width */
.footer-payments--image .footer-payments__media {
  background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.footer-payments__img { display: block; width: 100%; height: auto; margin: 0 auto; }
.footer-payments--image a { display: block; }

.footer-payments__hint { display: none; margin: 8px 0 0; font-size: .72rem; color: #a9c4b4; }

/* Narrow screens: the banner is very wide, so let it scroll sideways instead of shrinking to nothing */
@media (max-width: 900px) {
  .footer-payments--image .footer-payments__media {
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; padding: 12px;
    -webkit-mask-image: linear-gradient(90deg, #000 90%, rgba(0,0,0,.25));
    mask-image: linear-gradient(90deg, #000 90%, rgba(0,0,0,.25));
  }
  .footer-payments__hint { display: block; }
  .footer-payments--image .footer-payments__media::-webkit-scrollbar { height: 6px; }
  .footer-payments--image .footer-payments__media::-webkit-scrollbar-thumb { background: #c9d8cd; border-radius: 3px; }
  .footer-payments__img { min-width: 720px; }
}
@media (max-width: 560px) {
  .footer-payments { padding-top: 20px; }
  .footer-payments__caption { margin-bottom: 10px; }
}

/* Policy consent checkbox (added by the donations plugin) */
.pus-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: .86rem; line-height: 1.55; color: var(--text); }
.pus-consent input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--green-500); cursor: pointer; }
.pus-consent label { cursor: pointer; }
.pus-consent a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pus-consent .req { color: #d64545; }
.pus-consent input.is-invalid { outline: 2px solid #d64545; outline-offset: 2px; }
.pus-consent.is-invalid-row { color: #cc1818; }
