/* ==========================================================================
   মিঠুপল্লী — ডিজাইন সিস্টেম
   ১. টোকেন  ২. বেস  ৩. লেআউট  ৪. কম্পোনেন্ট  ৫. পেজভিত্তিক  ৬. রেসপনসিভ
   ========================================================================== */

/* ---------- ১. টোকেন ---------- */
:root {
  /* সবুজ — মাটি ও ফসল */
  --green-900: #0f4d30;
  --green-800: #146039;
  --green-700: #1c7a4a;
  --green-600: #2f9e63;
  --green-400: #63c48c;
  --green-200: #b6e6c9;
  --green-50:  #eaf7ef;

  /* নীল — পানি ও পুকুর */
  --blue-900: #0a4560;
  --blue-700: #0e6a8c;
  --blue-500: #1a8fb8;
  --blue-300: #7cc9e0;
  --blue-50:  #e8f4fa;

  /* নিরপেক্ষ */
  --sand:   #fbfaf4;
  --paper:  #ffffff;
  --ink:    #13241b;
  --muted:  #56705f;
  --line:   #dfe8e0;
  --amber:  #e0972e;

  --bg: var(--sand);
  --surface: var(--paper);
  --surface-2: var(--green-50);
  --text: var(--ink);
  --text-muted: var(--muted);
  --border: var(--line);
  --brand: var(--green-700);
  --brand-strong: var(--green-800);
  --accent: var(--blue-700);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(15, 77, 48, .06), 0 2px 8px rgba(15, 77, 48, .05);
  --shadow: 0 4px 12px rgba(15, 77, 48, .07), 0 14px 38px rgba(15, 77, 48, .08);
  --shadow-lg: 0 10px 24px rgba(15, 77, 48, .1), 0 30px 60px rgba(15, 77, 48, .12);

  --container: 1200px;
  --gutter: 20px;
  --space-section: clamp(3.25rem, 7vw, 6rem);

  --font-bn: 'Hind Siliguri', 'Noto Sans Bengali', 'SolaimanLipi', system-ui, sans-serif;
  --font-display: 'Baloo Da 2', 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- ২. বেস ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-bn);
  font-size: 1.0625rem;
  line-height: 1.85;           /* বাংলা যুক্তাক্ষরের জন্য বাড়তি লাইন-হাইট */
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.4;
  font-weight: 600;
  color: var(--brand-strong);
  margin: 0 0 .6em;
  letter-spacing: 0;
}
h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.15rem); line-height: 1.28; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.25rem); line-height: 1.32; }
h3 { font-size: clamp(1.18rem, 1rem + .7vw, 1.45rem); }
p  { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
ul, ol { padding-inline-start: 1.25rem; }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -140%);
  z-index: 200; background: var(--brand-strong); color: #fff;
  padding: .7rem 1.4rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- ৩. লেআউট ---------- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}
.section { padding-block: var(--space-section); }
.section-top-0 { padding-top: 0; }
.section-head-only { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-alt { background: var(--surface-2); }

.section-head { max-width: 62ch; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head > :last-child { margin-bottom: 0; }
.section-more { margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.section-head.is-center + .feature-grid { margin-top: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0 0 .75rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--green-600), var(--blue-500));
}
.section-head.is-center .eyebrow { justify-content: center; }

.lead {
  font-size: clamp(1.03rem, .98rem + .3vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.85;
}

/* ---------- ৪. কম্পোনেন্ট ---------- */

/* বোতাম */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.35rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; line-height: 1.5;
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .18s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: linear-gradient(135deg, var(--green-700), var(--green-600)); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--brand-strong); border-color: var(--green-200); }
.btn-ghost:hover { background: var(--green-50); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--brand); border-color: currentColor; }
.btn-outline:hover { background: var(--green-50); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--green-800); }
.btn-sm { padding: .5rem 1rem; font-size: .94rem; }
.btn-lg { padding: .9rem 1.7rem; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

/* হেডার */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(15, 77, 48, .07);
  background: color-mix(in srgb, var(--paper) 95%, transparent);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 74px;
}

.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  margin-inline-end: auto;
  text-decoration: none; color: inherit;
}
.brand-mark {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border-radius: 13px; color: #fff;
  background: linear-gradient(140deg, var(--green-600), var(--green-800));
  box-shadow: var(--shadow-sm);
}
.brand-mark .icon { width: 1.5rem; height: 1.5rem; }
.brand-text { display: grid; line-height: 1.3; }
.brand-text strong {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--brand-strong);
}
.brand-text small { font-size: .76rem; color: var(--text-muted); }

.nav-desktop ul {
  display: flex; align-items: center; gap: .15rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-desktop a {
  display: block; padding: .5rem .78rem; border-radius: 999px;
  color: var(--text); font-size: .98rem; font-weight: 500; text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav-desktop a:hover { background: var(--green-50); color: var(--brand-strong); }
.nav-desktop a[aria-current="page"] { background: var(--green-50); color: var(--brand-strong); font-weight: 600; }

.nav-toggle {
  display: none; place-items: center;
  width: 46px; height: 46px; padding: 0;
  background: var(--green-50); color: var(--brand-strong);
  border: 1px solid var(--green-200); border-radius: 13px; cursor: pointer;
}
.nav-toggle .icon { width: 1.4rem; height: 1.4rem; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }

.nav-mobile {
  display: none;
  padding: .5rem var(--gutter) 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--paper);
}
.nav-mobile ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.nav-mobile a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem .5rem;
  color: var(--text); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a[aria-current="page"] { color: var(--brand); font-weight: 700; }

/* হোম হিরো */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, var(--blue-50), transparent 65%),
    radial-gradient(48rem 26rem at 5% 8%, var(--green-50), transparent 60%);
  overflow: hidden;
}
.hero-inner {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.hero-text h1 { margin-bottom: .45em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }
.hero-media {
  position: relative; margin: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.1deg);
}
.hero-media img { width: 100%; aspect-ratio: 4 / 3.45; object-fit: cover; object-position: center 42%; }
.hero-media figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 2.5rem 1.1rem .9rem;
  background: linear-gradient(transparent, rgba(8, 40, 25, .82));
  color: #fff; font-size: .86rem; line-height: 1.6;
}
.hero-wave {
  position: absolute; inset-inline: 0; bottom: -1px; height: 62px;
  background: var(--bg);
  clip-path: ellipse(72% 100% at 50% 100%);
}

/* পরিসংখ্যান */
.section-stats { padding-block: 0; margin-top: calc(var(--space-section) * -.35); position: relative; z-index: 2; }
.stat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.stat {
  display: grid; gap: .1rem; padding: 1.5rem 1.25rem;
  background: var(--surface); text-align: center;
}
.stat strong {
  font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  font-weight: 700; color: var(--brand); line-height: 1.3;
}
.stat span { font-weight: 600; font-size: .98rem; }
.stat small { color: var(--text-muted); font-size: .82rem; line-height: 1.6; }

/* ফিচার */
.feature-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature {
  padding: 1.6rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-200); }
.feature-icon {
  display: grid; place-items: center; width: 50px; height: 50px;
  margin-bottom: 1rem; border-radius: 14px;
  color: var(--brand-strong);
  background: linear-gradient(140deg, var(--green-50), var(--blue-50));
  border: 1px solid var(--green-200);
}
.feature-icon .icon { width: 1.55rem; height: 1.55rem; }
.feature h3 { margin-bottom: .4em; }
.feature p { color: var(--text-muted); font-size: .98rem; margin: 0; }
.team-role { color: var(--accent) !important; font-weight: 600; font-size: .9rem !important; margin-bottom: .4em !important; }

/* কার্ড গ্রিড */
.card-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card-grid > [data-cat] { display: contents; }
.card-grid > [data-cat][hidden] { display: none; }

.card {
  --card-accent: var(--green-600);
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; overflow: hidden; background: var(--surface-2); }
.card-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .5s var(--ease);
}
.card:hover .card-media img { transform: scale(1.055); }
.badge {
  position: absolute; inset-block-start: .8rem; inset-inline-start: .8rem;
  padding: .28rem .75rem; border-radius: 999px;
  background: color-mix(in srgb, var(--card-accent) 92%, #000);
  color: #fff; font-size: .76rem; font-weight: 600; letter-spacing: .01em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.3rem 1.4rem; }
.card-title { margin-bottom: .18em; font-size: 1.28rem; }
.card-title a { color: var(--brand-strong); text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-sub { margin: 0 0 .7em; font-size: .84rem; color: var(--text-muted); }
.card-text { margin-bottom: 1.1em; font-size: .97rem; color: var(--text-muted); }
.card-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: .1rem .75rem;
  margin: 0 0 1.1rem; padding: .85rem 0 0; list-style: none;
  border-top: 1px dashed var(--border);
}
.card-meta li { display: grid; font-size: .82rem; }
.card-meta span { color: var(--text-muted); }
.card-meta strong { color: var(--brand-strong); font-size: .92rem; font-weight: 600; }
.card-link {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: auto; color: var(--card-accent);
  font-weight: 600; font-size: .94rem;
}
.card-link .icon { width: 1.05em; height: 1.05em; transition: transform .2s var(--ease); }
.card:hover .card-link .icon { transform: translateX(4px); }

/* ফিল্টার চিপ */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.9rem; }
.chip {
  padding: .5rem 1.05rem;
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--border); border-radius: 999px;
  font: inherit; font-size: .93rem; font-weight: 500; cursor: pointer;
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--green-400); color: var(--brand-strong); }
.chip.is-active {
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  border-color: transparent; color: #fff; font-weight: 600;
}
.empty-note { margin-top: 1.5rem; color: var(--text-muted); text-align: center; }

/* ব্রেডক্রাম্ব */
.breadcrumb { margin-bottom: 1rem; font-size: .88rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: '›'; margin-inline-end: .35rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--brand-strong); font-weight: 600; }

/* পেজ হিরো */
.page-hero { position: relative; isolation: isolate; color: #fff; }
.page-hero-media { position: absolute; inset: 0; z-index: -1; background: var(--green-900); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: .55; }
.page-hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 57, 35, .74), rgba(10, 57, 35, .55) 45%, rgba(9, 48, 30, .88));
}
.page-hero-body {
  position: relative; max-width: 68ch;
  padding-block: clamp(2.75rem, 6vw, 4.75rem);
}
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255, 255, 255, .9); }
.page-hero .eyebrow { color: var(--green-200); }
.page-hero .eyebrow::before { background: var(--green-200); }
.page-hero .breadcrumb a, .page-hero .breadcrumb li::before { color: rgba(255, 255, 255, .72); }
.page-hero .breadcrumb [aria-current] { color: #fff; }

/* আঁকা চিত্রের জন্য হালকা ব্যানার */
.page-hero.is-light { color: var(--text); }
.page-hero.is-light .page-hero-media { background: var(--surface-2); }
.page-hero.is-light .page-hero-media img { opacity: 1; object-position: center 55%; }
.page-hero.is-light .page-hero-media::after {
  background: linear-gradient(100deg,
    color-mix(in srgb, var(--bg) 97%, transparent) 0%,
    color-mix(in srgb, var(--bg) 93%, transparent) 46%,
    color-mix(in srgb, var(--bg) 30%, transparent) 100%);
}
.page-hero.is-light h1 { color: var(--brand-strong); }
.page-hero.is-light .lead { color: var(--text-muted); }
.page-hero.is-light .eyebrow { color: var(--accent); }
.page-hero.is-light .eyebrow::before { background: linear-gradient(90deg, var(--green-600), var(--blue-500)); }
.page-hero.is-light .breadcrumb a,
.page-hero.is-light .breadcrumb li::before { color: var(--text-muted); }
.page-hero.is-light .breadcrumb [aria-current] { color: var(--brand-strong); }
@media (max-width: 860px) {
  /* ছোট পর্দায় লেখা পুরো প্রস্থ জুড়ে থাকে, তাই ওভারলে আরও ঘন */
  .page-hero.is-light .page-hero-media::after {
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 96%, transparent) 0%,
      color-mix(in srgb, var(--bg) 93%, transparent) 62%,
      color-mix(in srgb, var(--bg) 72%, transparent) 100%);
  }
}

/* বিস্তারিত পেজ */
.detail-layout, .story-layout { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
.detail-sci { color: var(--text-muted); font-size: .92rem; margin-bottom: 1.4em; }

.prose { font-size: 1.06rem; }
.prose h2 { margin-top: 1.9em; }
.prose h2:first-child { margin-top: 0; }
.prose > p { color: var(--text); }

.check-list { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .65rem; align-items: start; }
.check-list .icon {
  width: 1.3rem; height: 1.3rem; margin-top: .3rem;
  padding: .12rem; border-radius: 50%;
  background: var(--green-50); color: var(--green-700);
  stroke-width: 2.4;
}

.panel {
  padding: 1.5rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.panel + .panel { margin-top: 1.25rem; }
.panel h2 {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .9em; font-size: 1.22rem;
}
.panel h2 .icon { width: 1.2rem; height: 1.2rem; color: var(--accent); }
.panel-accent {
  background: linear-gradient(150deg, var(--green-50), var(--blue-50));
  border-color: var(--green-200);
}
.detail-aside { position: sticky; top: 94px; }

.fact-grid { display: grid; gap: .2rem; margin: 0; }
.fact-grid > div {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  padding: .6rem 0; border-bottom: 1px dashed var(--border);
}
.fact-grid > div:last-child { border-bottom: 0; }
.fact-grid dt { color: var(--text-muted); font-size: .92rem; }
.fact-grid dd { margin: 0; font-weight: 600; color: var(--brand-strong); font-size: .96rem; }

/* ধাপ */
.steps {
  display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
.step {
  position: relative; padding: 1.5rem 1.35rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: grid; place-items: center; width: 42px; height: 42px;
  margin-bottom: .9rem; border-radius: 12px;
  background: linear-gradient(140deg, var(--blue-500), var(--blue-700));
  color: #fff; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
}
.step h3 { font-size: 1.12rem; margin-bottom: .35em; }
.step p { margin: 0; font-size: .95rem; color: var(--text-muted); }

/* টাইমলাইন */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 1.1rem; }
.timeline::before {
  content: ''; position: absolute; inset-block: .6rem; inset-inline-start: 13px;
  width: 2px; background: linear-gradient(var(--green-400), var(--blue-300));
  opacity: .5;
}
.timeline-item { position: relative; padding-inline-start: 3rem; }
.timeline-item::before {
  content: ''; position: absolute; inset-inline-start: 6px; top: .65rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--green-600);
}
.timeline-year {
  display: inline-block; margin-bottom: .2rem;
  font-family: var(--font-display); font-weight: 700; color: var(--accent);
}
.timeline-body h3 { font-size: 1.15rem; margin-bottom: .25em; }
.timeline-body p { margin: 0; color: var(--text-muted); font-size: .97rem; }

/* টেবিল */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; min-width: 520px; }
.table th, .table td { padding: .95rem 1.1rem; text-align: start; border-bottom: 1px solid var(--border); }
.table thead th { background: var(--surface-2); color: var(--brand-strong); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.table tbody th { color: var(--brand-strong); font-weight: 600; white-space: nowrap; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table td { color: var(--text-muted); font-size: .97rem; }

/* ব্লগ কার্ড */
.post-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post-grid + .post-grid { margin-top: 1.5rem; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-media { display: block; overflow: hidden; background: var(--surface-2); }
.post-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.05); }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.3rem 1.4rem; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .7em; font-size: .85rem; color: var(--text-muted); }
.tag {
  padding: .22rem .7rem; border-radius: 999px;
  background: var(--blue-50); color: var(--blue-700);
  font-size: .78rem; font-weight: 600;
}
.post-body h3 { font-size: 1.22rem; margin-bottom: .4em; }
.post-body h3 a { color: var(--brand-strong); text-decoration: none; }
.post-body h3 a:hover { text-decoration: underline; }
.post-body p { color: var(--text-muted); font-size: .97rem; margin-bottom: 1.1em; }
.post-body .card-link { color: var(--accent); }

.post-grid-featured { grid-template-columns: 1fr; }
.post-card.is-featured { flex-direction: column; }
.post-card.is-featured .post-media img { aspect-ratio: 16 / 9; }

/* CTA ব্যান্ড */
.cta-band {
  padding-block: clamp(2.75rem, 6vw, 4.25rem);
  background: linear-gradient(120deg, var(--green-800), var(--green-700) 45%, var(--blue-700));
  color: #fff;
}
.cta-inner { display: grid; gap: 1.6rem; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .88); max-width: 60ch; }

/* আর্টিকেল */
.article-head { max-width: 72ch; padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.article-head h1 { margin-bottom: .4em; }
.article-media { margin: clamp(1.5rem, 4vw, 2.5rem) auto; }
.article-media img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.article-media figcaption { margin-top: .7rem; font-size: .87rem; color: var(--text-muted); text-align: center; }
.article-body { max-width: 72ch; }

/* পেজার */
.pager-section { padding-top: 0; }
.pager { display: grid; gap: 1rem; }
.pager-item {
  display: grid; gap: .1rem; padding: 1.1rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}
.pager-item:hover { transform: translateY(-3px); border-color: var(--green-400); }
.pager-item small { color: var(--text-muted); font-size: .84rem; }
.pager-item strong { color: var(--brand-strong); font-family: var(--font-display); font-size: 1.1rem; }
.pager-item.is-next { text-align: end; }

/* গ্যালারি */
.gallery-grid { display: grid; gap: 1rem; align-items: start; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery-item {
  margin: 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-item.is-wide { grid-column: span 2; }
.gallery-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
}
.gallery-btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-item.is-wide .gallery-btn img { aspect-ratio: 16 / 9; }
.gallery-item figcaption { padding: .85rem 1rem; font-size: .9rem; color: var(--text-muted); }

.lightbox {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center; padding: var(--gutter);
  background: rgba(8, 30, 20, .92);
  animation: fade .2s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
.lightbox[hidden] { display: none; }
.lightbox-inner { margin: 0; max-width: min(1000px, 100%); max-height: 100%; }
.lightbox-inner img {
  max-width: 100%; max-height: 78vh; margin-inline: auto;
  object-fit: contain; border-radius: var(--radius);
}
.lightbox-inner figcaption { margin-top: 1rem; color: #fff; text-align: center; font-size: .95rem; }
.lightbox-close {
  position: absolute; inset-block-start: 1rem; inset-inline-end: 1rem;
  width: 46px; height: 46px; padding: 0;
  background: rgba(255, 255, 255, .14); color: #fff;
  border: 0; border-radius: 50%; cursor: pointer;
  font-size: 1.9rem; line-height: 1;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .26); }

/* যোগাযোগ */
.contact-layout { display: grid; gap: clamp(1.75rem, 4vw, 2.75rem); align-items: start; }
.contact-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.contact-card {
  display: grid; gap: .15rem; padding: 1.4rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}
.contact-card:not(.is-static):hover { transform: translateY(-4px); border-color: var(--green-400); color: inherit; }
.contact-icon {
  display: grid; place-items: center; width: 44px; height: 44px;
  margin-bottom: .7rem; border-radius: 12px;
  background: linear-gradient(140deg, var(--green-50), var(--blue-50));
  border: 1px solid var(--green-200); color: var(--brand-strong);
}
.contact-label { font-size: .82rem; color: var(--text-muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.contact-card strong { color: var(--brand-strong); font-size: 1.06rem; overflow-wrap: anywhere; }
.contact-card small { color: var(--text-muted); font-size: .86rem; line-height: 1.6; }

/* ফর্ম */
.contact-form h2 { margin-bottom: .3em; }
.form-note { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.4em; }
.field { display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.field-row { display: grid; gap: 0 1rem; }
.field label { font-weight: 600; font-size: .95rem; color: var(--brand-strong); }
.field label small { font-weight: 400; color: var(--text-muted); }
.field label span { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%; padding: .72rem .9rem;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-600);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green-400) 28%, transparent);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0392b; }
.field-error { margin: 0; color: #c0392b; font-size: .86rem; }
.form-status { margin: 1rem 0 0; font-size: .94rem; font-weight: 600; color: var(--brand); }

.map-wrap {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); background: var(--surface-2);
}
.map-wrap iframe { display: block; width: 100%; height: clamp(300px, 45vw, 440px); border: 0; }

/* ফুটার */
.site-footer {
  margin-top: 0;
  padding-block: clamp(2.75rem, 6vw, 4rem) 1.5rem;
  background: var(--green-900); color: rgba(255, 255, 255, .82);
}
.footer-grid { display: grid; gap: 2.25rem; }
.site-footer h2 { color: #fff; font-size: 1.14rem; margin-bottom: .9em; }
.site-footer p { font-size: .95rem; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.brand-footer { margin-bottom: 1.1rem; }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: rgba(255, 255, 255, .65); }
.brand-footer .brand-mark { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); }
.footer-about p { max-width: 46ch; }

.social { display: flex; gap: .6rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.social a {
  display: grid; place-items: center; width: 42px; height: 42px;
  background: rgba(255, 255, 255, .1); border-radius: 12px;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.social a:hover { background: var(--green-600); transform: translateY(-2px); }
.social .icon { width: 1.25rem; height: 1.25rem; }

.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .95rem; }
.footer-contact li { display: flex; gap: .65rem; align-items: start; }
.footer-contact .icon { width: 1.2rem; height: 1.2rem; margin-top: .35rem; color: var(--green-400); }

.footer-bottom {
  display: grid; gap: .3rem;
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .87rem; color: rgba(255, 255, 255, .62);
}
.footer-bottom p { margin: 0; font-size: inherit; }

/* উপরে যান */
.to-top {
  position: fixed; inset-block-end: 1.1rem; inset-inline-end: 1.1rem; z-index: 90;
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  background: var(--brand); color: #fff;
  border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .25s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-strong); }
.to-top .icon { width: 1.3rem; height: 1.3rem; transform: rotate(-90deg); }

/* ---------- ৬. রেসপনসিভ ---------- */
@media (max-width: 600px) {
  .gallery-item.is-wide { grid-column: span 1; }
}

@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .pager { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
  .post-card.is-featured { flex-direction: row; align-items: stretch; }
  .post-card.is-featured .post-media { flex: 1 1 52%; }
  .post-card.is-featured .post-media img { height: 100%; aspect-ratio: auto; min-height: 280px; }
  .post-card.is-featured .post-body { flex: 1 1 48%; justify-content: center; padding: 2rem; }
  .post-card.is-featured h3 { font-size: 1.5rem; }
}

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; }
  .detail-layout { grid-template-columns: minmax(0, 1.6fr) minmax(300px, .95fr); }
  .story-layout { grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); }
  .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr); }
  .cta-inner { grid-template-columns: 1fr auto; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1.7fr 1fr 1.25fr; }
  .footer-about { grid-column: auto; }
}

/* ছোট পর্দায় মোবাইল মেনু */
@media (max-width: 1049px) {
  .nav-desktop, .header-cta { display: none; }
  .nav-toggle { display: grid; }
  .nav-mobile { display: block; }
  .nav-mobile[hidden] { display: none; }
  .detail-aside { position: static; }
}

/* ---------- ডার্ক মোড ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1712;
    --surface: #132119;
    --surface-2: #0f1c15;
    --text: #e6f0e8;
    --text-muted: #a3bdac;
    --border: #23392c;
    --brand: #63c48c;
    --brand-strong: #a7e3bf;
    --accent: #7cc9e0;
    --green-50: #15251c;
    --blue-50: #10222b;
    --green-200: #2c4a38;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 6px 20px rgba(0, 0, 0, .4);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, .5);
  }
  .site-header { background: color-mix(in srgb, var(--surface) 88%, transparent); }
  .site-header.is-scrolled { background: color-mix(in srgb, var(--surface) 96%, transparent); }
  .nav-mobile { background: var(--surface); }
  .hero { background: radial-gradient(60rem 30rem at 85% -10%, #10222b, transparent 65%), radial-gradient(48rem 26rem at 5% 8%, #15251c, transparent 60%); }
  .site-footer { background: #091310; }
  .tag { background: #10222b; color: var(--blue-300); }
  .btn-light { --btn-bg: #e6f0e8; --btn-fg: #0f4d30; }
  .table thead th { background: var(--surface-2); }
  .page-hero-media img { opacity: .38; }
}

/* ---------- প্রিন্ট ---------- */
@media print {
  .site-header, .site-footer, .to-top, .filters, .cta-band, .pager-section, .map-wrap { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1rem; }
}

/* ৪০৪ পাতা */
.notfound { text-align: center; max-width: 60ch; margin-inline: auto; }
.notfound .eyebrow { justify-content: center; }
.notfound .hero-actions { justify-content: center; }
.notfound-links { margin-top: 3rem; }
.notfound-links .footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem;
}
.notfound-links a { color: var(--brand); }
