@charset "UTF-8";
/* ==========================================================================
   Srinagar Matia Gram Panchayat — design system
   --------------------------------------------------------------------------
   Hand-written CSS, no build step (Hostinger shared hosting: no Node/npm).

   Palette keeps the identity the panchayat already uses — deep navy #003366
   with a gold accent — but corrects a contrast failure in the previous site,
   where gold sat on white at roughly 1.5:1. Gold is now restricted to
   on-navy use (8.8:1) and never carries body text on a light surface.

   Accessibility is a first-class concern, not a retrofit:
     · text-size control          html[data-text-scale]
     · high-contrast mode         html[data-contrast="high"]
     · reduced motion respected   @media (prefers-reduced-motion: reduce)
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */

:root {
  /* Brand */
  --navy-900: #001a33;
  --navy-800: #002347;
  --navy-700: #003366;
  --navy-600: #0a4a8a;
  --navy-500: #1565b0;
  --gold-500: #ffd700;
  --gold-600: #e6c200;
  --gold-700: #a88600;

  /* Neutrals */
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-400: #94a3b8;
  --line-200: #e2e8f0;
  --line-100: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;

  /* Semantic */
  --color-primary: var(--navy-700);
  --color-on-primary: #ffffff;
  --color-accent: var(--gold-500);
  --color-link: #0b5ea8;
  --color-link-hover: var(--navy-800);
  --color-text: var(--ink-900);
  --color-text-muted: var(--ink-600);
  --color-bg: var(--surface-2);
  --color-surface: var(--surface);
  --color-border: var(--line-200);
  --color-danger: #b91c1c;
  --color-danger-bg: #fef2f2;
  --color-success: #15803d;
  --color-success-bg: #f0fdf4;
  --color-warning: #a16207;
  --color-warning-bg: #fffbeb;
  --color-info: #0b5ea8;
  --color-info-bg: #eff6ff;
  --focus-ring: #0b5ea8;

  /* Type
     Both families carry Latin AND Bengali, so an English page and a Bengali
     page share one typographic voice instead of falling back to an unrelated
     font for Bengali. Hind Siliguri is from an Indian foundry and is what
     Bengali-language publishing actually reads like. */
  --font-display: 'Noto Serif Bengali', Georgia, 'Times New Roman', serif;
  --font-body: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'Cascadia Mono', Consolas, monospace;

  --fs-xs: 0.75rem;    /* 12 */
  --fs-sm: 0.875rem;   /* 14 */
  --fs-base: 1rem;     /* 16 — never smaller for body */
  --fs-md: 1.125rem;   /* 18 */
  --fs-lg: 1.25rem;    /* 20 */
  --fs-xl: 1.5rem;     /* 24 */
  --fs-2xl: 1.875rem;  /* 30 */
  --fs-3xl: 2.25rem;   /* 36 */
  --fs-4xl: 3rem;      /* 48 */

  --lh-tight: 1.25;
  --lh-snug: 1.4;
  --lh-body: 1.65;
  --lh-loose: 1.8;

  /* 4/8 spacing rhythm */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem;  --sp-8: 2rem;    --sp-10: 2.5rem;
  --sp-12: 3rem;   --sp-16: 4rem;   --sp-20: 5rem;

  /* Corners stay tight. Government printed matter and official forms are
     square; heavily rounded cards are what makes a civic site look like a
     consumer app template. */
  --radius-sm: 2px;
  --radius: 3px;
  --radius-lg: 4px;
  --radius-pill: 999px;

  /* Shadows are a hairline + a short drop, not a soft glow. Depth comes from
     ruled borders, the way a printed government form does. */
  --shadow-1: 0 1px 0 rgba(15, 23, 42, .04);
  --shadow-2: 0 1px 2px rgba(15, 23, 42, .08), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-3: 0 4px 14px rgba(15, 23, 42, .12);

  --container: 1280px;
  --container-narrow: 800px;
  --header-h: 76px;

  /* z-index scale */
  --z-base: 0; --z-raised: 10; --z-sticky: 40; --z-drawer: 100;
  --z-overlay: 90; --z-toast: 200; --z-skip: 300;

  --dur-fast: 150ms;
  --dur: 220ms;
  --dur-slow: 320ms;
  --ease-out: cubic-bezier(.16, .84, .44, 1);
  --ease-in: cubic-bezier(.55, .06, .68, .19);
}

/* Text-size control in the accessibility bar. Everything is rem-based, so
   changing the root size scales the whole page including spacing. */
html[data-text-scale="0"] { font-size: 93.75%; }  /* 15px */
html[data-text-scale="1"] { font-size: 100%; }    /* 16px — default */
html[data-text-scale="2"] { font-size: 112.5%; }  /* 18px */
html[data-text-scale="3"] { font-size: 125%; }    /* 20px */

/* High-contrast mode — the convention on Indian government portals. Dark
   ground, white text, yellow links; every pair well past AAA. */
html[data-contrast="high"] {
  --color-primary: #000000;
  --color-on-primary: #ffff00;
  --color-accent: #ffff00;
  --color-link: #ffff00;
  --color-link-hover: #ffffff;
  --color-text: #ffffff;
  --color-text-muted: #f1f1f1;
  --color-bg: #000000;
  --color-surface: #0a0a0a;
  --color-border: #ffffff;
  --color-danger: #ff8080;
  --color-danger-bg: #1a0000;
  --color-success: #7dff7d;
  --color-success-bg: #001a00;
  --color-warning: #ffe066;
  --color-warning-bg: #1a1400;
  --color-info: #8ecdff;
  --color-info-bg: #001020;
  --focus-ring: #ffff00;
  --navy-700: #000000;
  --navy-800: #000000;
  --navy-900: #000000;
  --surface: #0a0a0a;
  --surface-2: #000000;
  --surface-3: #141414;
  --line-200: #ffffff;
  --line-100: #cccccc;
  --shadow-1: none; --shadow-2: none; --shadow-3: none;
}
html[data-contrast="high"] img:not(.keep-colour) { filter: contrast(1.15); }
html[data-contrast="high"] .card,
html[data-contrast="high"] .panel { border-width: 2px; }

/* ── Reset ──────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Bengali conjuncts sit taller than Latin, so Bengali pages get a touch more
   size and leading to stay comfortable at the same optical weight. */
html[lang^="bn"] body { font-size: 1.0625rem; line-height: var(--lh-loose); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.005em;
  color: var(--color-text);
  text-wrap: balance;
}
html[lang^="bn"] h1, html[lang^="bn"] h2, html[lang^="bn"] h3,
html[lang^="bn"] h4 { letter-spacing: 0; line-height: 1.35; }

h1 { font-size: clamp(1.6rem, 1.15rem + 2vw, var(--fs-3xl)); }
h2 { font-size: clamp(1.375rem, 1.05rem + 1.4vw, var(--fs-2xl)); }
h3 { font-size: clamp(1.125rem, 1rem + .5vw, var(--fs-xl)); }
h4 { font-size: var(--fs-md); }

p { margin: 0 0 var(--sp-4); max-width: 72ch; }
ul, ol { margin: 0 0 var(--sp-4); padding-left: var(--sp-6); }
li + li { margin-top: var(--sp-2); }
li { max-width: 72ch; }

a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--color-link-hover); text-decoration-thickness: 2px; }

img, svg, video { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--sp-8) 0; }

blockquote {
  margin: 0 0 var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-left: 4px solid var(--color-accent);
  background: var(--surface-3);
  border-radius: 0 var(--radius) var(--radius) 0;
}

code, kbd, samp { font-family: var(--font-mono); font-size: 0.9em; }
strong, b { font-weight: 700; }

/* Tabular figures keep numeric columns from jittering. */
.num, td.num, .stat-value, .counter { font-variant-numeric: tabular-nums; }

/* ── Focus & skip links ─────────────────────────────────────────────────── */

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
/* Never remove focus indication — only replace it where a custom ring reads
   better against a dark surface. */
.on-navy :focus-visible,
.site-header :focus-visible,
.util-bar :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold-500);
}

.skip-links { position: absolute; top: 0; left: 0; z-index: var(--z-skip); }
.skip-links a {
  position: absolute;
  top: -100px; left: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--gold-500);
  border-radius: 0 0 var(--radius) var(--radius);
  white-space: nowrap;
}
.skip-links a:focus { top: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
@media (min-width: 768px)  { .container { padding-inline: var(--sp-6); } }
@media (min-width: 1024px) { .container { padding-inline: var(--sp-8); } }

.container-narrow { max-width: var(--container-narrow); margin-inline: auto; }

.section { padding-block: var(--sp-12); }
@media (min-width: 768px) { .section { padding-block: var(--sp-16); } }
.section--tight { padding-block: var(--sp-10); }
.section--alt { background: var(--color-surface); }
.section--navy { background: var(--navy-800); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #e8eef6; }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

.stack > * + * { margin-top: var(--sp-4); }
.row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; justify-content: space-between; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); } .mt-8 { margin-top: var(--sp-8); }
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-sm { font-size: var(--fs-sm); }

/* ── Section heading ───────────────────────────────────────────────────── */

/* A section heading is announced with a short gold rule and a hairline that
   runs to the edge of the column — the way a ruled heading works on an
   official form, rather than a floating gradient underline. */
.section-head {
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--color-border);
}
.section-head--center { text-align: center; border-bottom: 0; padding-bottom: 0; }
.section-head--center .section-title::after { margin-inline: auto; }

.section-title {
  position: relative;
  margin-bottom: var(--sp-2);
  font-size: clamp(1.375rem, 1.05rem + 1.4vw, var(--fs-2xl));
  color: var(--navy-700);
}
.section-title::after {
  content: '';
  display: block;
  width: 46px; height: 3px;
  margin-top: var(--sp-3);
  background: var(--gold-500);
}
.section--navy .section-title { color: #fff; }
.section--navy .section-head { border-bottom-color: rgba(255, 255, 255, .18); }
.section-sub { max-width: 68ch; color: var(--color-text-muted); font-size: var(--fs-md); margin: 0; }
.section-head--center .section-sub { margin-inline: auto; }

/* Small institutional eyebrow above a heading. */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin-bottom: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-700);
}
html[lang^="bn"] .eyebrow { letter-spacing: .02em; text-transform: none; }
.eyebrow::before {
  content: ''; width: 18px; height: 2px; background: currentColor; flex: none;
}
.section--navy .eyebrow { color: var(--gold-500); }

/* ── Utility bar (accessibility + language) ─────────────────────────────── */

.util-bar {
  background: var(--navy-900);
  color: #dce6f2;
  font-size: var(--fs-xs);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.util-bar .container {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4);
  align-items: center; justify-content: space-between;
  min-height: 40px; padding-block: var(--sp-1);
}
.util-left, .util-right { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.util-gov { font-weight: 700; color: var(--gold-500); letter-spacing: .02em; }
.util-sep { color: rgba(255, 255, 255, .3); }
.util-date { color: #b9c9dc; }

.a11y-group {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 2px; border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius-sm);
}
.a11y-label { color: #b9c9dc; margin-right: var(--sp-1); }
.a11y-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; min-height: 32px; padding: 0 var(--sp-2);
  background: transparent; color: #fff;
  border: 0; border-radius: var(--radius-sm);
  font: inherit; font-weight: 700; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.a11y-btn:hover { background: rgba(255, 255, 255, .16); }
.a11y-btn[aria-pressed="true"] { background: var(--gold-500); color: var(--navy-900); }
.a11y-btn .ico { width: 16px; height: 16px; }
.a11y-btn--sm { font-size: 11px; }
.a11y-btn--lg { font-size: 15px; }

/* Language switch — a real link so it works without JavaScript. */
.lang-switch { display: inline-flex; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius-sm); overflow: hidden; }
.lang-switch a, .lang-switch span {
  padding: 6px var(--sp-3); min-height: 32px;
  display: inline-flex; align-items: center;
  font-size: var(--fs-xs); font-weight: 700; text-decoration: none;
  color: #dce6f2;
  transition: background var(--dur-fast) var(--ease-out);
}
.lang-switch a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.lang-switch [aria-current="true"] { background: var(--gold-500); color: var(--navy-900); }

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: var(--navy-700);
  color: #fff;
  border-bottom: 4px solid var(--gold-500);
  box-shadow: var(--shadow-2);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3); min-height: var(--header-h); padding-block: var(--sp-2);
}

/* The brand takes the remaining width and is allowed to shrink; the menu
   button never is. Without this the two-line name pushed the toggle off the
   right edge on a narrow phone and mobile navigation became unreachable. */
.brand {
  display: flex; align-items: center; gap: var(--sp-3);
  flex: 1 1 auto; min-width: 0;
  text-decoration: none; color: #fff;
}
.brand:hover { color: #fff; }
.brand-logo {
  flex: none;
  width: 56px; height: 56px;
  background: #fff; border-radius: 50%; padding: 4px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(.95rem, .82rem + .55vw, 1.3rem);
  font-weight: 700;
  /* 1.25 rather than a tighter figure: the name wraps to two lines on a phone,
     and anything tighter lets the second line crowd the line below it. */
  line-height: 1.25;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
}
/*
 * Bengali is not Latin-with-different-glyphs. It carries marks below the
 * baseline (য-ফলা, hasanta, ু/ৃ) that a tight line-height clips outright — in
 * "পঞ্চায়েত" the lower half of the conjunct was being cut off against the line
 * beneath. Uppercase Latin has no descenders, which is why this only showed up
 * on the Bengali side of the site.
 */
html[lang^="bn"] .brand-name {
  text-transform: none;
  line-height: 1.5;
  letter-spacing: 0;
}
.brand-gov {
  font-size: var(--fs-xs); font-weight: 600;
  color: var(--gold-500); line-height: 1.35;
}
html[lang^="bn"] .brand-gov { line-height: 1.6; }
.brand-block { font-size: 11px; color: #c3d4e8; line-height: 1.4; }
html[lang^="bn"] .brand-block { line-height: 1.7; }

/* Desktop navigation */
.nav { display: none; }
@media (min-width: 1024px) { .nav { display: block; } }
.nav-list { display: flex; align-items: center; gap: var(--sp-1); margin: 0; padding: 0; list-style: none; }
.nav-list li { margin: 0; }
.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: var(--sp-3) var(--sp-3);
  color: #fff; font-weight: 600; font-size: var(--fs-sm);
  text-decoration: none; white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.nav-link::after {
  content: ''; position: absolute; left: var(--sp-3); right: var(--sp-3); bottom: 6px;
  height: 2px; background: var(--gold-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav-link:hover { color: var(--gold-500); background: rgba(255, 255, 255, .08); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--gold-500); }
.nav-link .ico { width: 16px; height: 16px; }

/* Mobile drawer trigger */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  flex: 0 0 auto;
  min-width: 48px; min-height: 48px; padding: 0 var(--sp-3);
  background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius);
  font: inherit; font-size: var(--fs-sm); font-weight: 700; cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out);
}
.nav-toggle:hover { background: rgba(255, 255, 255, .2); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* Drawer */
.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: var(--z-drawer);
  width: min(88vw, 360px);
  background: var(--navy-800); color: #fff;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  /*
   * visibility:hidden does two things a transform alone cannot:
   *   1. keeps the off-canvas panel out of the tab order — otherwise a
   *      keyboard user tabs into links that are nowhere on screen
   *   2. stops the translated panel contributing to document scroll width,
   *      which was adding 8px of horizontal overflow on a 360px phone
   * It is transitioned with a delay so the slide-out animation still plays.
   */
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease-out),
              visibility 0s linear var(--dur-slow);
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom);
}
.drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform var(--dur-slow) var(--ease-out), visibility 0s;
}
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-4); border-bottom: 1px solid rgba(255, 255, 255, .15);
  position: sticky; top: 0; background: var(--navy-800);
}
.drawer-title { font-weight: 700; font-size: var(--fs-md); font-family: var(--font-display); }
.drawer-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, .1); color: #fff;
  border: 0; border-radius: var(--radius); cursor: pointer;
}
.drawer-close:hover { background: rgba(255, 255, 255, .2); }
.drawer-nav { list-style: none; margin: 0; padding: var(--sp-3); }
.drawer-nav li { margin: 0; }
.drawer-nav a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-3); min-height: 48px;
  color: #fff; font-weight: 600; text-decoration: none;
  border-radius: var(--radius);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.drawer-nav a:hover, .drawer-nav a.is-active { background: rgba(255, 255, 255, .12); color: var(--gold-500); }
.drawer-nav .ico { width: 20px; height: 20px; flex: none; }

.scrim {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: rgba(0, 26, 51, .55);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease-out), visibility var(--dur);
}
.scrim.is-open { opacity: 1; visibility: visible; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero { position: relative; background: var(--navy-800); overflow: hidden; }
.hero-slides { position: relative; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 600ms var(--ease-out), visibility 600ms;
}
.hero-slide:first-child, .hero-slide.is-active { position: relative; opacity: 1; visibility: visible; }
.hero-slide.is-active { z-index: 2; }

.hero-media { position: relative; min-height: clamp(320px, 46vh, 560px); }
.hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-slide.is-active .hero-media img { animation: kenburns 18s var(--ease-out) forwards; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0, 26, 51, .92) 0%, rgba(0, 51, 102, .82) 45%, rgba(0, 51, 102, .55) 100%);
}
.hero-body {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  min-height: clamp(320px, 46vh, 560px);
  padding-block: var(--sp-10);
  color: #fff;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  align-self: flex-start;
  margin-bottom: var(--sp-4);
  padding: 6px var(--sp-4);
  background: rgba(255, 215, 0, .16);
  border: 1px solid rgba(255, 215, 0, .5);
  border-radius: var(--radius-pill);
  color: var(--gold-500);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
html[lang^="bn"] .hero-eyebrow { text-transform: none; letter-spacing: 0; }
.hero-title {
  margin: 0 0 var(--sp-4);
  font-size: clamp(1.85rem, 1.2rem + 3vw, var(--fs-4xl));
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.hero-sub {
  max-width: 60ch; margin: 0 0 var(--sp-8);
  font-size: clamp(1rem, .95rem + .35vw, var(--fs-md));
  color: #e4ecf6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.hero-dots {
  position: absolute; z-index: 3; bottom: var(--sp-5); left: 50%;
  transform: translateX(-50%);
  display: flex; gap: var(--sp-2);
}
.hero-dot {
  width: 44px; height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
}
.hero-dot::before {
  content: ''; width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  border: 2px solid rgba(255, 255, 255, .8);
  transition: background var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.hero-dot[aria-current="true"]::before { background: var(--gold-500); border-color: var(--gold-500); transform: scale(1.25); }

/* ── Notice ticker ──────────────────────────────────────────────────────── */

.ticker {
  background: var(--gold-500);
  color: var(--navy-900);
  border-bottom: 1px solid var(--gold-600);
}
.ticker .container { display: flex; align-items: stretch; gap: 0; padding-inline: 0; }
.ticker-label {
  flex: none;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--navy-800); color: #fff;
  font-size: var(--fs-sm); font-weight: 700; white-space: nowrap;
}
.ticker-label .ico { width: 18px; height: 18px; }
.ticker-viewport { flex: 1 1 auto; overflow: hidden; display: flex; align-items: center; min-width: 0; }
.ticker-track {
  display: flex; align-items: center; gap: var(--sp-10);
  white-space: nowrap;
  animation: marquee 45s linear infinite;
  padding-left: var(--sp-4);
}
.ticker-track a { color: var(--navy-900); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; }
.ticker-track a:hover { text-decoration: underline; }
.ticker-item { display: inline-flex; align-items: center; gap: var(--sp-2); }
.ticker-item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--navy-800); flex: none; }
.ticker.is-paused .ticker-track { animation-play-state: paused; }
/* WCAG 2.2.2 — moving content must be pausable. */
.ticker-pause {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; min-height: 44px;
  background: var(--navy-800); color: #fff;
  border: 0; cursor: pointer;
}
.ticker-pause:hover { background: var(--navy-700); }
.ticker-pause .ico { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-viewport { overflow-x: auto; }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: var(--sp-3) var(--sp-6);
  font-family: var(--font-body); font-size: var(--fs-base); font-weight: 700;
  text-align: center; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 18px; height: 18px; flex: none; }

.btn-primary { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }
.btn-primary:hover { background: var(--gold-600); border-color: var(--gold-600); color: var(--navy-900); box-shadow: var(--shadow-2); }

.btn-navy { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.btn-navy:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.btn-outline { background: transparent; color: var(--navy-700); border-color: var(--navy-700); }
.btn-outline:hover { background: var(--navy-700); color: #fff; }

.btn-ghost-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost-light:hover { background: #fff; color: var(--navy-800); border-color: #fff; }

.btn-danger { background: var(--color-danger); color: #fff; border-color: var(--color-danger); }
.btn-danger:hover { background: #911616; border-color: #911616; color: #fff; }

.btn-sm { min-height: 40px; padding: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }

.link-more {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-weight: 700; text-decoration: none;
  color: var(--color-link);
}
.link-more .ico { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.link-more:hover { text-decoration: underline; }
.link-more:hover .ico { transform: translateX(3px); }

/* ── Cards ──────────────────────────────────────────────────────────────── */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.card-pad { padding: var(--sp-6); }
.card-hover:hover { box-shadow: var(--shadow-3); transform: translateY(-3px); border-color: var(--navy-500); }

/* Service tile */
.service-card { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-6); height: 100%; text-decoration: none; color: inherit; }
.service-card:hover { color: inherit; }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--navy-700); color: var(--gold-500);
  border-radius: var(--radius);
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.service-icon .ico { width: 28px; height: 28px; }
.card-hover:hover .service-icon { transform: scale(1.08) rotate(-4deg); background: var(--navy-800); }
.service-title { margin: 0; font-size: var(--fs-md); color: var(--navy-700); font-family: var(--font-display); }
html[lang^="bn"] .service-title { font-family: var(--font-bengali-display); }
.service-desc { margin: 0; font-size: var(--fs-sm); color: var(--color-text-muted); }

/* Stat tile */
.stat-card { text-align: center; padding: var(--sp-6) var(--sp-4); }
.stat-icon { display: inline-flex; color: var(--gold-600); margin-bottom: var(--sp-2); }
.stat-icon .ico { width: 32px; height: 32px; }
.stat-value {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.85rem, 1.4rem + 1.6vw, var(--fs-3xl));
  line-height: 1.1; color: var(--navy-700);
}
.section--navy .stat-value { color: var(--gold-500); }
.stat-label { display: block; margin-top: var(--sp-2); font-size: var(--fs-sm); font-weight: 600; color: var(--color-text-muted); }
.section--navy .stat-label { color: #dce6f2; }

/* ── Notice list ────────────────────────────────────────────────────────── */

.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { margin: 0; }
.notice-item {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none; color: inherit;
  transition: background var(--dur-fast) var(--ease-out);
}
.notice-item:hover { background: var(--surface-3); color: inherit; }
.notice-item:last-child { border-bottom: 0; }
.notice-date {
  flex: none; width: 62px;
  text-align: center; padding: var(--sp-2) 0;
  background: var(--navy-700); color: #fff;
  border-radius: var(--radius); line-height: 1.15;
}
.notice-date .d { display: block; font-size: var(--fs-lg); font-weight: 700; font-family: var(--font-display); }
.notice-date .m { display: block; font-size: 11px; text-transform: uppercase; color: var(--gold-500); }
html[lang^="bn"] .notice-date .m { text-transform: none; }
.notice-body { min-width: 0; flex: 1; }
.notice-title { margin: 0 0 var(--sp-1); font-size: var(--fs-base); font-weight: 700; font-family: var(--font-body); color: var(--navy-700); }
.notice-item:hover .notice-title { text-decoration: underline; }
.notice-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); font-size: var(--fs-xs); color: var(--color-text-muted); }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px var(--sp-2);
  font-size: var(--fs-xs); font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--surface-3); color: var(--ink-700);
  border: 1px solid var(--color-border);
}
.badge-pin { background: var(--color-danger-bg); color: var(--color-danger); border-color: currentColor; }
.badge-new { background: var(--color-success-bg); color: var(--color-success); border-color: currentColor; }
.badge-navy { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.badge-gold { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-600); }

/* ── History timeline ───────────────────────────────────────────────────── */

.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before {
  content: ''; position: absolute; top: 8px; bottom: 8px; left: 15px;
  width: 2px; background: linear-gradient(180deg, var(--gold-500), var(--navy-500) 60%, transparent);
}
@media (min-width: 900px) {
  .timeline::before { left: 50%; transform: translateX(-1px); }
}
.timeline > li { position: relative; margin: 0 0 var(--sp-8); padding-left: 48px; }
.timeline > li:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; top: 4px; left: 6px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold-500);
  border: 4px solid var(--color-surface);
  box-shadow: 0 0 0 2px var(--navy-700);
  z-index: 2;
}
.timeline-year {
  display: inline-block; margin-bottom: var(--sp-2);
  padding: 4px var(--sp-3);
  background: var(--navy-700); color: var(--gold-500);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em;
}
html[lang^="bn"] .timeline-year { letter-spacing: 0; }
.timeline-title { margin: 0 0 var(--sp-3); font-size: var(--fs-lg); color: var(--navy-700); }
.timeline-body { color: var(--ink-700); }
.timeline-body p:last-child { margin-bottom: 0; }

@media (min-width: 900px) {
  .timeline > li { width: calc(50% - 40px); padding-left: 0; }
  .timeline > li:nth-child(odd) { margin-left: 0; text-align: right; }
  .timeline > li:nth-child(odd) .timeline-dot { left: auto; right: -50px; }
  .timeline > li:nth-child(odd) .timeline-body { text-align: left; }
  .timeline > li:nth-child(even) { margin-left: calc(50% + 40px); }
  .timeline > li:nth-child(even) .timeline-dot { left: -50px; }
  .timeline > li:nth-child(odd) p { margin-left: auto; }
}

/* ── Member cards ───────────────────────────────────────────────────────── */

.member-card { text-align: center; padding: var(--sp-6) var(--sp-4); height: 100%; }
.member-photo {
  width: 116px; height: 116px; margin: 0 auto var(--sp-4);
  border-radius: 50%; object-fit: cover;
  background: var(--surface-3);
  border: 4px solid var(--color-surface);
  box-shadow: 0 0 0 3px var(--gold-500);
}
.member-photo--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-700); color: var(--gold-500);
  font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700;
}
.member-name { margin: 0 0 var(--sp-1); font-size: var(--fs-md); color: var(--navy-700); }
.member-role {
  display: inline-block; margin-bottom: var(--sp-2);
  padding: 3px var(--sp-3);
  background: var(--navy-700); color: var(--gold-500);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs); font-weight: 700;
}
.member-meta { font-size: var(--fs-sm); color: var(--color-text-muted); margin: 0; }
.member-contact { display: flex; flex-direction: column; gap: 4px; margin-top: var(--sp-3); font-size: var(--fs-sm); }
.member-contact a { display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.member-contact .ico { width: 14px; height: 14px; }

/* ── Village chips ──────────────────────────────────────────────────────── */

.chip-list { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.chip-list li { margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5); min-height: 48px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.chip .ico { width: 16px; height: 16px; color: var(--navy-600); }

/* Boundaries panel */
.boundary-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.boundary-item { padding: var(--sp-4) var(--sp-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); }
.boundary-dir { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-2); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--navy-600); }
html[lang^="bn"] .boundary-dir { text-transform: none; letter-spacing: 0; }
.boundary-dir .ico { width: 16px; height: 16px; }
.boundary-item p { margin: 0; font-size: var(--fs-sm); }

/* ── Gallery ────────────────────────────────────────────────────────────── */

.gallery-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.gallery-item {
  position: relative; display: block;
  aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius); background: var(--surface-3);
  border: 1px solid var(--color-border);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: var(--sp-4) var(--sp-3) var(--sp-2);
  background: linear-gradient(transparent, rgba(0, 26, 51, .88));
  color: #fff; font-size: var(--fs-xs); font-weight: 600;
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.gallery-item:hover .gallery-caption, .gallery-item:focus-visible .gallery-caption { opacity: 1; transform: translateY(0); }
.album-count { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--color-text-muted); }

/* Lightbox (built by app.js on demand) */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-toast);
  display: none; align-items: center; justify-content: center;
  padding: var(--sp-6);
  background: rgba(0, 12, 24, .92);
}
.lightbox.is-open { display: flex; }
.lightbox-figure { margin: 0; max-width: min(1100px, 94vw); text-align: center; }
.lightbox-figure img {
  max-width: 100%; max-height: 78vh;
  margin-inline: auto;
  border-radius: var(--radius);
  border: 3px solid var(--gold-500);
  background: #000;
}
.lightbox-figure figcaption { margin-top: var(--sp-4); color: #fff; font-size: var(--fs-sm); }
.lightbox-close {
  position: absolute; top: var(--sp-4); right: var(--sp-4);
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: rgba(255, 255, 255, .12); color: #fff;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--radius);
  cursor: pointer;
}
.lightbox-close:hover { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }

/* ── Page banner + breadcrumbs ──────────────────────────────────────────── */

.page-banner {
  position: relative;
  background: var(--navy-700);
  color: #fff;
  padding-block: var(--sp-8);
  border-bottom: 3px solid var(--gold-500);
}
/* A fine horizontal rule pattern, like security ruling on official
   stationery — not the dotted mesh that every template ships with. */
.page-banner::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    to bottom, rgba(255, 255, 255, .045) 0 1px, transparent 1px 6px);
  pointer-events: none;
}
.page-banner > .container { position: relative; z-index: 1; }
.page-banner h1 { margin: 0; color: #fff; }
.page-banner .page-lead { margin: var(--sp-3) 0 0; color: #dce6f2; max-width: 70ch; }

.breadcrumb { margin-bottom: var(--sp-4); font-size: var(--fs-sm); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--sp-2); margin: 0; }
.breadcrumb a { color: #cfe0f2; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current="page"] { color: var(--gold-500); font-weight: 600; }
.breadcrumb .sep { color: rgba(255, 255, 255, .4); }
.breadcrumb .ico { width: 14px; height: 14px; }

.updated-stamp {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-sm); color: var(--color-text-muted);
}
.updated-stamp .ico { width: 15px; height: 15px; }

/* ── Prose (admin-authored body copy) ──────────────────────────────────── */

.prose { font-size: var(--fs-md); line-height: var(--lh-loose); color: var(--ink-700); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: var(--sp-10); font-size: var(--fs-xl); color: var(--navy-700); }
.prose h3 { margin-top: var(--sp-8); font-size: var(--fs-lg); color: var(--navy-700); }
.prose ul, .prose ol { padding-left: var(--sp-6); }
.prose li::marker { color: var(--navy-600); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-6); font-size: var(--fs-sm); }
.prose th, .prose td { padding: var(--sp-3); border: 1px solid var(--color-border); text-align: left; }
.prose th { background: var(--surface-3); font-weight: 700; }
.prose img { border-radius: var(--radius); margin-block: var(--sp-6); }

/* Wide content must scroll inside its own box, never the page. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Forms ──────────────────────────────────────────────────────────────── */

.field { margin-bottom: var(--sp-5); }
.label {
  display: block; margin-bottom: var(--sp-2);
  font-size: var(--fs-sm); font-weight: 700; color: var(--ink-900);
}
.label .req { color: var(--color-danger); margin-left: 2px; }
.label .opt { color: var(--color-text-muted); font-weight: 400; font-size: var(--fs-xs); }

.input, .textarea, .select {
  width: 100%;
  min-height: 48px; /* touch target */
  padding: var(--sp-3) var(--sp-4);
  font-family: inherit; font-size: var(--fs-base); color: var(--color-text);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.textarea { min-height: 140px; line-height: var(--lh-body); resize: vertical; }
.select {
  appearance: none;
  padding-right: var(--sp-10);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-3) center;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(11, 94, 168, .18);
}
/* The soft ring replaces the outline for pointer focus only. Written as
   :not(:focus-visible) rather than relying on declaration order, so the
   keyboard focus ring below cannot be lost by someone reordering these rules. */
.input:focus:not(:focus-visible),
.textarea:focus:not(:focus-visible),
.select:focus:not(:focus-visible) { outline: none; }

.input:focus-visible, .textarea:focus-visible, .select:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 1px;
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--color-danger); }
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }

.hint { margin: var(--sp-2) 0 0; font-size: var(--fs-sm); color: var(--color-text-muted); }
.field-error {
  display: flex; align-items: flex-start; gap: 6px;
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-sm); font-weight: 600; color: var(--color-danger);
}
.field-error .ico { width: 16px; height: 16px; flex: none; margin-top: 2px; }

.check { display: flex; align-items: flex-start; gap: var(--sp-3); cursor: pointer; padding: var(--sp-2) 0; min-height: 44px; }
.check input[type="checkbox"], .check input[type="radio"] { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy-700); flex: none; cursor: pointer; }
.check span { font-size: var(--fs-sm); }

fieldset { margin: 0 0 var(--sp-6); padding: var(--sp-5); border: 1px solid var(--color-border); border-radius: var(--radius); }
legend { padding-inline: var(--sp-2); font-weight: 700; font-size: var(--fs-sm); color: var(--navy-700); }

/* Bilingual field pairs, side by side on wide screens */
.lang-pair { display: grid; gap: var(--sp-4); }
@media (min-width: 860px) { .lang-pair { grid-template-columns: 1fr 1fr; } }
.lang-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 6px; margin-left: var(--sp-2);
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  border-radius: var(--radius-sm);
  background: var(--navy-700); color: #fff;
  text-transform: uppercase;
}
.lang-tag--bn { background: var(--gold-600); color: var(--navy-900); }

/* ── Alerts ─────────────────────────────────────────────────────────────── */

.alert {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-5);
  border: 1px solid; border-left-width: 4px;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
}
.alert .ico { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert p { margin: 0; }
.alert p + p { margin-top: var(--sp-2); }
.alert-success { background: var(--color-success-bg); border-color: var(--color-success); color: #14532d; }
.alert-error   { background: var(--color-danger-bg);  border-color: var(--color-danger);  color: #7f1d1d; }
.alert-info    { background: var(--color-info-bg);    border-color: var(--color-info);    color: #0c4a6e; }
.alert-warning { background: var(--color-warning-bg); border-color: var(--color-warning); color: #713f12; }
html[data-contrast="high"] .alert { color: var(--color-text); }

/* ── Empty state ────────────────────────────────────────────────────────── */

.empty { padding: var(--sp-12) var(--sp-6); text-align: center; color: var(--color-text-muted); }
.empty .ico { width: 44px; height: 44px; color: var(--ink-400); margin-bottom: var(--sp-3); display: inline-block; }
.empty p { margin: 0 auto; max-width: 46ch; }

/* ── Pagination ─────────────────────────────────────────────────────────── */

.pagination { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; justify-content: center; margin-top: var(--sp-8); }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 var(--sp-3);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  background: var(--color-surface);
  font-weight: 600; text-decoration: none; color: var(--color-text);
}
.pagination a:hover { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.pagination [aria-current="page"] { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.pagination .is-disabled { opacity: .4; pointer-events: none; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer { background: var(--navy-900); color: #cbd8e7; border-top: 5px solid var(--gold-500); }
.footer-main { padding-block: var(--sp-12); }
.footer-grid { display: grid; gap: var(--sp-8); grid-template-columns: 1fr; }
@media (min-width: 720px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }

.footer-col h2, .footer-col h3 {
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-base); font-weight: 700;
  color: var(--gold-500); text-transform: uppercase; letter-spacing: .06em;
  font-family: var(--font-body);
}
html[lang^="bn"] .footer-col h2, html[lang^="bn"] .footer-col h3 { text-transform: none; letter-spacing: 0; }
.footer-logo { width: 78px; height: 78px; background: #fff; border-radius: 50%; padding: 5px; object-fit: contain; margin-bottom: var(--sp-4); }
.footer-col p { font-size: var(--fs-sm); line-height: var(--lh-body); color: #b8c8da; }
.footer-name { font-weight: 700; color: #fff; font-size: var(--fs-md); margin-bottom: var(--sp-2); }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0; }
.footer-links a {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) 0; min-height: 40px;
  color: #cbd8e7; font-size: var(--fs-sm); text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.footer-links a:hover { color: var(--gold-500); transform: translateX(4px); }
.footer-links .ico { width: 14px; height: 14px; flex: none; }

.footer-contact { list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); }
.footer-contact li { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-3); align-items: flex-start; }
.footer-contact .ico { width: 18px; height: 18px; color: var(--gold-500); flex: none; margin-top: 2px; }
.footer-contact a { color: #cbd8e7; }
.footer-contact a:hover { color: var(--gold-500); }

.social-row { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius);
  transition: background var(--dur-fast) var(--ease-out);
}
.social-btn:hover { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }

.footer-bottom {
  padding-block: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: var(--fs-xs); color: #9db0c6;
}
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); align-items: center; justify-content: space-between; }
.footer-bottom p { margin: 0; }
.visitor-count { display: inline-flex; align-items: center; gap: var(--sp-2); }
.visitor-count .ico { width: 15px; height: 15px; color: var(--gold-500); }
.visitor-count strong { color: #fff; font-variant-numeric: tabular-nums; }

/* Back to top */
.to-top {
  position: fixed; right: var(--sp-4); bottom: var(--sp-4); z-index: var(--z-sticky);
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: var(--navy-700); color: #fff;
  border: 2px solid var(--gold-500); border-radius: 50%;
  box-shadow: var(--shadow-3); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--dur) var(--ease-out), visibility var(--dur), transform var(--dur) var(--ease-out), background var(--dur-fast);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--navy-800); }

/* ── Animations ─────────────────────────────────────────────────────────── */

@keyframes kenburns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.09) translate3d(-1.5%, -1%, 0); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(255, 215, 0, .6); }
  70%  { box-shadow: 0 0 0 12px rgba(255, 215, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* Scroll reveal. Motion conveys "this content just arrived"; it is not
   decorative, and it degrades to plain visible content when JS is off or
   reduced motion is requested. */
[data-reveal] { opacity: 0; transform: translate3d(0, 18px, 0); }
[data-reveal].is-visible {
  animation: fadeUp var(--dur-slow) var(--ease-out) forwards;
  animation-delay: calc(var(--reveal-i, 0) * 60ms);
}
.no-js [data-reveal], .no-js [data-reveal].is-visible { opacity: 1; transform: none; animation: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-slide.is-active .hero-media img { animation: none; }
  .card-hover:hover { transform: none; }
  .gallery-item:hover img { transform: none; }
}

/* ── Print ──────────────────────────────────────────────────────────────── */

@media print {
  .util-bar, .site-header, .drawer, .scrim, .ticker, .to-top,
  .hero-dots, .site-footer .footer-main, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .card, .panel { border: 1px solid #999; box-shadow: none; break-inside: avoid; }
  .section { padding-block: 12pt; }
  .page-banner { background: #fff; color: #000; border-bottom: 2pt solid #000; }
  .page-banner h1, .page-banner .page-lead { color: #000; }
  .timeline > li { break-inside: avoid; }
}
