:root {
  --green: #0f5f5c;
  --green-dark: #0a4441;
  --green-soft: #e6f2f1;
  --amber: #c9761b;
  --amber-dark: #a35f12;
  --ink: #1d2523;
  --ink-2: #4a5553;
  --ink-3: #7a8583;
  --line: #e3e8e7;
  --bg: #ffffff;
  --bg-2: #f6f8f7;
  --radius: 10px;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-bn: "Noto Sans Bengali", "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased;
}
html[lang="bn"] body { font-family: var(--font-bn); line-height: 1.75; font-size: 17px; }
.brand-text strong { white-space: nowrap; }
.site-header .brand-text strong { display: none; }
.site-header .brand-text span { font-size: 1.05rem; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3 { line-height: 1.35; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-dark); margin-bottom: 12px; }
html[lang="bn"] .kicker { letter-spacing: 0; text-transform: none; font-size: .9rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; font-size: 1rem; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: var(--amber-dark); }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green-soft); }
.btn-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.12); }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; flex: 1 1 auto; }
.brand img { height: 44px; width: 44px; object-fit: contain; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: .95rem; }
.brand-text span { font-size: .72rem; color: var(--ink-3); }
.nav { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.nav a { padding: 8px 11px; border-radius: 6px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .92rem; white-space: nowrap; }
.btn { white-space: nowrap; }
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a.active { color: var(--green); font-weight: 600; }
.lang-btn { margin-left: 8px; padding: 7px 14px; border: 1.5px solid var(--green); color: var(--green); background: #fff; border-radius: 999px; font-weight: 600; font-size: .85rem; cursor: pointer; font-family: var(--font-bn); }
.lang-btn:hover { background: var(--green-soft); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 70%, #157874 100%); color: #fff; padding: 72px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .kicker { color: #ffd39a; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p { font-size: 1.12rem; color: rgba(255,255,255,.86); max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-media { border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.3); aspect-ratio: 4/3; background: #0a4441; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: -40px; position: relative; background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.06); }
.stat { padding: 22px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 1.7rem; color: var(--green); line-height: 1.1; }
.stat span { color: var(--ink-3); font-size: .9rem; }

/* Cards */
.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); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 1.05rem; margin: 0; }
.card-body .meta { color: var(--ink-3); font-size: .85rem; }
.card-body p { color: var(--ink-2); font-size: .95rem; margin: 0; flex: 1; }
.card-body a { text-decoration: none; }
.feature { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 14px; }
.feature p { color: var(--ink-2); margin: 0; font-size: .95rem; }

/* Media */
.video { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; }
.cert { text-align: center; }
.cert img { border: 1px solid var(--line); border-radius: 6px; margin: 0 auto 10px; max-height: 420px; object-fit: contain; }
.cert span { color: var(--ink-2); font-size: .95rem; }

/* CTA band */
.cta { background: var(--green); color: #fff; padding: 56px 0; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { color: #fff; margin: 0 0 8px; }
.cta p { margin: 0; color: rgba(255,255,255,.85); max-width: 560px; }

/* Page hero */
.page-hero { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 48px 0; }
.page-hero p { color: var(--ink-2); max-width: 680px; font-size: 1.08rem; margin: 0; }

/* Prose */
.prose { max-width: 720px; }
.prose p { font-size: 1.05rem; color: var(--ink-2); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-img { border-radius: var(--radius); overflow: hidden; }

/* Team */
.person { text-align: center; }
.person img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 4px solid #fff; box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.person h3 { font-size: 1.05rem; margin-bottom: 2px; }
.person span { color: var(--ink-3); font-size: .9rem; }

/* Gallery */
.masonry { columns: 3; column-gap: 16px; }
.masonry a { display: block; margin-bottom: 16px; border-radius: 8px; overflow: hidden; break-inside: avoid; }
.masonry img { transition: opacity .2s; }
.masonry a:hover img { opacity: .9; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 6px; }
.lightbox button { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }

/* Story detail */
.story-figs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 32px 0; }
.story-figs figure { margin: 0; }
.story-figs img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.story-figs figcaption { font-size: .9rem; color: var(--ink-3); margin-top: 8px; }
.story-nav { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 40px; }
.callout { background: var(--green-soft); border-left: 4px solid var(--green); padding: 20px 24px; border-radius: 0 8px 8px 0; margin-top: 40px; }
.callout h3 { margin-bottom: 4px; }
.callout p { margin: 0 0 12px; color: var(--ink-2); }
.notice { display: inline-block; font-size: .85rem; color: var(--ink-3); background: var(--bg-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 6px; }

/* Membership */
.member-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; counter-reset: m; }
.member-list div { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.member-list h3 { font-size: 1.05rem; }
.member-list h3::before { counter-increment: m; content: counter(m, lower-alpha) ".  "; color: var(--amber-dark); }
.member-list p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-item .icon { flex: 0 0 40px; height: 40px; border-radius: 8px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.contact-item strong { display: block; font-size: .85rem; color: var(--ink-3); font-weight: 600; margin-bottom: 2px; }
.contact-item a { text-decoration: none; }
.form { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form input, .form textarea { width: 100%; padding: 11px 14px; border: 1px solid #cfd8d6; border-radius: 8px; font: inherit; margin-bottom: 16px; background: #fff; }
.form textarea { min-height: 140px; resize: vertical; }
.form small { color: var(--ink-3); display: block; margin-top: 10px; }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 500; }
.socials a:hover { background: var(--bg-2); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 56px 0 28px; margin-top: 40px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-text span { color: rgba(255,255,255,.6); }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .85rem; color: rgba(255,255,255,.5); }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; }
  .lang-btn { margin: 10px 0 0; align-self: flex-start; }
}
@media (max-width: 720px) {
  .section { padding: 44px 0; }
  .hero { padding: 48px 0 60px; }
  .stats { grid-template-columns: 1fr; margin-top: -24px; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .grid-2, .grid-3, .grid-4, .member-list, .story-figs { grid-template-columns: 1fr; }
  .masonry { columns: 2; column-gap: 10px; }
  .cta .wrap { flex-direction: column; align-items: flex-start; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 28px; }
}

/* Videos */
.vsub { color: var(--ink-3); font-size: .9rem; margin: 10px 0 0; }
/* Donate */
.dcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.drow { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.drow:last-child { border-bottom: 0; }
.drow span { color: var(--ink-3); }
.drow code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; word-break: break-all; }
.drow.muted code { font-family: inherit; color: var(--ink-2); }
.copy { font: inherit; font-size: .8rem; font-weight: 600; padding: 4px 10px; border: 1px solid var(--green); color: var(--green); background: #fff; border-radius: 6px; cursor: pointer; }
.copy:hover { background: var(--green-soft); }
/* Learn */
.learn { max-width: 760px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.toc a { text-decoration: none; font-size: .9rem; font-weight: 500; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.toc a:hover { border-color: var(--green); color: var(--green); }
.learn-sec { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.learn-sec:first-of-type { border-top: 0; padding-top: 0; }
.learn-sec p, .learn-sec li { color: var(--ink-2); font-size: 1.05rem; }
.learn-sec ul { padding-left: 22px; margin: 0 0 1em; }
.learn-sec li { margin-bottom: 8px; }
@media (max-width: 720px) { .drow { grid-template-columns: 1fr auto; } .drow span { grid-column: 1 / -1; font-size: .8rem; padding-bottom: 0; } }

.lead { color: var(--ink-2); font-size: 1.05rem; }
.hosp-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hosp-pics figure { margin: 0; }
.hosp-pics figure:first-child { grid-column: 1 / -1; }
.hosp-pics img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.hosp-pics figure:first-child img { aspect-ratio: 2/1; object-position: center; }
.hosp-pics figcaption { font-size: .85rem; color: var(--ink-3); margin-top: 6px; }
.certs { display: flex; gap: 40px; flex-wrap: wrap; }
.certs .cert img { max-height: 360px; }

.stats-4 { grid-template-columns: repeat(4, 1fr); }
.person .bio { font-size: .88rem; color: var(--ink-2); margin: 10px auto 0; max-width: 300px; line-height: 1.5; }
.namecard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.namecard strong { display: block; margin-bottom: 4px; }
.namecard span { color: var(--ink-2); font-size: .92rem; }
.objectives { margin-top: 28px; background: var(--green-soft); border-radius: var(--radius); padding: 22px 26px; }
.objectives h3 { margin-bottom: 10px; }
.objectives ul { margin: 0; padding-left: 20px; }
.objectives li { margin-bottom: 8px; color: var(--ink-2); font-size: .97rem; }
.member-list .fee { margin-top: 10px; font-size: .9rem; color: var(--green-dark); font-weight: 600; }
.member-list .fee span { color: var(--ink-3); font-weight: 500; }
@media (max-width: 960px) { .stats-4 { grid-template-columns: repeat(2, 1fr); } .stats-4 .stat:nth-child(2) { border-right: 0; } .stats-4 .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 720px) { .stats-4 { grid-template-columns: 1fr; } }
