/* ==========================================================================
   Redfilex One – NGO & Press Platform · Public site styles
   (c) Redfilex — https://www.redfilex.com
   Colors are injected from Admin → Settings → Appearance as CSS variables.
   ========================================================================== */

/* Self-hosted fonts (SIL Open Font License — see assets/fonts/OFL-*.txt) */
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/hind-siliguri-regular.woff') format('woff'); }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/hind-siliguri-medium.woff') format('woff'); }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/hind-siliguri-semibold.woff') format('woff'); }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 700 800; font-display: swap; src: url('../fonts/hind-siliguri-bold.woff') format('woff'); }
@font-face { font-family: 'Noto Serif Bengali'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/noto-serif-bengali-regular.woff') format('woff'); }
@font-face { font-family: 'Noto Serif Bengali'; font-style: normal; font-weight: 600 700; font-display: swap; src: url('../fonts/noto-serif-bengali-semibold.woff') format('woff'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/plus-jakarta-sans-var.woff2') format('woff2'); }

:root {
  --primary: #008060;
  --primary-ink: #006a4f;
  --accent: #E53935;
  --highlight: #2DD4BF;
  --gold: #D4AF37;
  --navy: #0F172A;

  --bg: #FBFAF6;
  --surface: #FFFFFF;
  --surface-2: #F3F1EA;
  --ink: #16202E;
  --ink-2: #3A4656;
  --muted: #6A7483;
  --line: #E6E2D6;
  --line-2: #EFECE3;
  --primary-soft: color-mix(in srgb, var(--primary) 10%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .28);
  --radius: 18px;
  --radius-sm: 12px;
  --font: 'Hind Siliguri', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Hind Siliguri', system-ui, sans-serif;
  --font-read: 'Noto Serif Bengali', 'Hind Siliguri', Georgia, serif;
  --header-h: 76px;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23000' stroke-width='1'%3E%3Cpath d='M40 6l9.9 24.1L74 40l-24.1 9.9L40 74l-9.9-24.1L6 40l24.1-9.9z'/%3E%3Cpath d='M40 22l5 13 13 5-13 5-5 13-5-13-13-5 13-5z'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0B1220;
  --surface: #111A2B;
  --surface-2: #162236;
  --ink: #E8EDF5;
  --ink-2: #C3CCDA;
  --muted: #8C98AB;
  --line: #22304A;
  --line-2: #1B2840;
  --primary-ink: var(--highlight);
  --primary-soft: color-mix(in srgb, var(--highlight) 12%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html[lang="en"] body { font-size: 16px; line-height: 1.65; }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--primary-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-family: var(--font-display); letter-spacing: -.02em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--highlight) 70%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--surface); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 12px; }
.ico { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.18em; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 860px; }
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }

/* --------------------------------------------------------------- buttons */
.btn {
  --b: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--b); color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.2;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px var(--b); }
.btn:active { transform: translateY(0); }
.btn-accent { --b: var(--accent); }
.btn-dark { --b: var(--navy); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-ink); box-shadow: none; }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .85rem; }
.btn-lg { min-height: 54px; padding: 12px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { color: var(--primary-ink); border-color: var(--primary); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: var(--primary-soft); color: var(--primary-ink); line-height: 1.5; }
.chip-accent { background: var(--accent-soft); color: var(--accent); }
.chip-gold { background: color-mix(in srgb, var(--gold) 18%, transparent); color: #8a6d12; }
:root[data-theme="dark"] .chip-gold { color: var(--gold); }
.chip-plain { background: var(--surface-2); color: var(--ink-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }

/* --------------------------------------------------------------- header */
.ribbon { height: 4px; background: linear-gradient(90deg, var(--primary) 0 60%, var(--accent) 60% 100%); }
.notice-bar { background: var(--navy); color: #E2E8F0; font-size: .88rem; }
.notice-bar .wrap { display: flex; gap: 10px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.notice-bar a { color: var(--highlight); }

.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 8px 30px -18px rgba(15,23,42,.35); }
.hdr { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; text-decoration: none !important; }
.brand img { height: 46px; width: auto; }
.brand .brand-text { font-weight: 800; font-size: 1.15rem; color: var(--ink); line-height: 1.1; }
.brand .brand-text small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); }
.logo-dark { display: none !important; }
:root[data-theme="dark"] .has-dark-logo .logo-light { display: none !important; }
:root[data-theme="dark"] .has-dark-logo .logo-dark { display: block !important; }
:root[data-theme="dark"] .brand img.logo-light { background: #fff; border-radius: 10px; padding: 3px 6px; }

.site-header .wrap { max-width: 1440px; }
.nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; min-width: 0; }
.nav a { position: relative; flex: none; white-space: nowrap; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .96rem; text-decoration: none; }
.nav a:hover { color: var(--primary-ink); background: var(--primary-soft); }
.nav a.active { color: var(--primary-ink); }
.nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
.hdr-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.hdr-actions .btn { white-space: nowrap; }
@media (max-width: 1440px) {
  .hdr { gap: 14px; }
  .nav a { padding: 8px 9px; font-size: .93rem; }
  .nav a.active::after { left: 9px; right: 9px; }
  .hdr-actions { gap: 6px; }
}
@media (max-width: 1320px) {
  .brand img { height: 40px; }
  .nav a { padding: 8px 7px; font-size: .9rem; }
  .nav a.active::after { left: 7px; right: 7px; }
  .hdr-actions .btn { padding-left: 14px; padding-right: 14px; }
}

.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.seg a, .seg button { padding: 4px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--muted); border: 0; background: none; cursor: pointer; text-decoration: none; line-height: 1.6; }
.seg .on { background: var(--primary); color: #fff; }

.dd { position: relative; }
.dd > summary { list-style: none; cursor: pointer; }
.dd > summary::-webkit-details-marker { display: none; }
.dd-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 80; }
.dd-menu a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.dd-menu a:hover { background: var(--primary-soft); }
.dd-menu a small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.3; }
.dd-menu .ico { color: var(--primary-ink); width: 20px; height: 20px; }
.dd-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

/* --------------------------------------------------------------- mobile app bar + sheet */
.mbar { display: none; }
.sheet, .sheet-backdrop { display: none; }

@media (max-width: 1140px) {
  .nav, .hdr-actions .hide-m { display: none !important; }
  .hdr { justify-content: space-between; height: 64px; }
  .brand img { height: 40px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

  .mbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 70;
    height: 64px; padding: 0 6px; border-radius: 22px;
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line); box-shadow: 0 18px 40px -16px rgba(15,23,42,.45);
  }
  .mbar a, .mbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 64px;
    font-size: .7rem; font-weight: 600; color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer; }
  .mbar .ico { width: 22px; height: 22px; }
  .mbar .on { color: var(--primary-ink); }
  .mbar .on .ico { stroke-width: 2.3; }
  .mbar .fab { position: relative; }
  .mbar .fab span.ring { width: 58px; height: 58px; margin-top: -30px; border-radius: 20px; display: grid; place-items: center; color: #fff;
    background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000));
    box-shadow: 0 12px 24px -8px var(--accent), 0 0 0 5px var(--bg); transform: rotate(45deg); }
  .mbar .fab span.ring .ico { transform: rotate(-45deg); width: 26px; height: 26px; }
  .mbar .fab b { color: var(--accent); font-weight: 700; margin-top: 4px; }

  .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(8, 13, 24, .5); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .sheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; max-height: 88vh; overflow: auto;
    background: var(--surface); border-radius: 28px 28px 0 0; padding: 10px 18px calc(24px + env(safe-area-inset-bottom));
    transform: translateY(105%); transition: transform .35s cubic-bezier(.2, .9, .2, 1); box-shadow: var(--shadow-lg); }
  .menu-open .sheet { transform: none; }
  .menu-open .sheet-backdrop { opacity: 1; pointer-events: auto; }
  .menu-open { overflow: hidden; }
  .sheet-handle { width: 46px; height: 5px; border-radius: 9px; background: var(--line); margin: 4px auto 16px; }
  .sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .sheet-head strong { font-size: 1.1rem; }
  .sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .tile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; border-radius: 18px; min-height: 96px;
    background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink); font-weight: 600; font-size: .88rem; text-decoration: none !important; overflow: hidden; }
  .tile .ico { width: 26px; height: 26px; color: var(--primary-ink); }
  .tile.on { background: var(--primary); color: #fff; border-color: var(--primary); }
  .tile.on .ico { color: #fff; }
  .tile i { position: absolute; right: 10px; top: 8px; font-style: normal; font-size: .72rem; color: var(--muted); font-weight: 700; }
  .tile.on i { color: rgba(255,255,255,.7); }
  .sheet-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line-2); }
  .sheet-logins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
  .sheet-logins a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; border: 1px dashed var(--line);
    font-size: .8rem; font-weight: 600; color: var(--ink-2); text-decoration: none; }
  .sheet-logins .ico { color: var(--accent); }
}

/* --------------------------------------------------------------- hero */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: var(--navy); }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08);
  transition: opacity 1.4s ease, transform 7s ease; }
.hero-slides img.on { opacity: 1; transform: scale(1); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(8, 15, 30, .92) 0%, rgba(8, 15, 30, .72) 45%, rgba(0, 60, 45, .35) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--pattern); opacity: .07; filter: invert(1); }
.hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: end; padding: 110px 0 84px; min-height: min(84vh, 760px); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.7rem); line-height: 1.15; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--highlight); }
.hero-lead { font-size: 1.12rem; color: #D7DEE8; max-width: 640px; }
.hero .chip { background: rgba(45, 212, 191, .16); color: var(--highlight); border: 1px solid rgba(45, 212, 191, .35); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 24px; padding: 22px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hero-card h3 { color: #fff; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.hero-card .acct { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); }
.hero-card .acct b { font-size: 1.15rem; letter-spacing: .02em; color: #fff; }
.hero-card .acct small { display: block; color: #B9C4D3; font-size: .78rem; }
.hero-dots { display: flex; gap: 6px; margin-top: 18px; }
.hero-dots button { width: 26px; height: 4px; border-radius: 4px; border: 0; background: rgba(255,255,255,.3); cursor: pointer; padding: 0; }
.hero-dots button.on { background: var(--highlight); width: 40px; }

/* --------------------------------------------------------------- page hero */
.page-hero { position: relative; isolation: isolate; padding: 64px 0 52px; background: var(--navy); color: #fff; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(900px 400px at 85% 20%, color-mix(in srgb, var(--primary) 55%, transparent), transparent 70%),
              radial-gradient(600px 300px at 10% 110%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--pattern); opacity: .06; filter: invert(1); }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: 6px 0 10px; }
.page-hero p { color: #CBD5E1; max-width: 720px; margin: 0; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: #94A3B8; flex-wrap: wrap; }
.crumbs a { color: #CBD5E1; }
.page-hero .row { margin-top: 20px; }

/* --------------------------------------------------------------- section heads */
.sh { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.sh h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); margin: 0; max-width: 680px; }
.sh p { color: var(--muted); max-width: 560px; margin: 8px 0 0; }

/* --------------------------------------------------------------- facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  margin-top: -48px; position: relative; z-index: 3; box-shadow: var(--shadow); overflow: hidden; }
.fact { padding: 24px 26px; border-right: 1px solid var(--line-2); }
.fact:last-child { border-right: 0; }
.fact b { display: block; font-size: 2rem; font-weight: 800; color: var(--primary-ink); line-height: 1.1; font-family: var(--font-display); }
.fact span { color: var(--muted); font-size: .9rem; }

/* --------------------------------------------------------------- cards */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); }
.card-body { padding: 22px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card h3 a { color: var(--ink); }
.thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ph-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.92);
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 40%, var(--navy))); }
.ph-fallback::after { content: ""; position: absolute; inset: 0; background-image: var(--pattern); opacity: .12; filter: invert(1); }
.ph-fallback .ico { width: 64px; height: 64px; stroke-width: 1.3; position: relative; z-index: 1; }
.ph-fallback.alt { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 45%, var(--navy))); }
.card:hover .thumb img { transform: scale(1.05); }

.program { display: flex; flex-direction: column; }
.program .thumb { aspect-ratio: 4 / 3; }
.program .num { position: absolute; left: 14px; top: 14px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface); color: var(--accent); font-weight: 800; box-shadow: var(--shadow-sm); }
.program .card-body { display: flex; flex-direction: column; flex: 1; }
.program .card-body p { color: var(--muted); font-size: .95rem; }
.program .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line); }
.progress { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--highlight)); border-radius: 8px; }

/* split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media { position: relative; }
.split-media .main { border-radius: 28px; overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.split-media .main img { width: 100%; height: 100%; object-fit: cover; }
.split-media .float { position: absolute; right: -18px; bottom: 28px; width: 46%; border-radius: 20px; overflow: hidden; border: 6px solid var(--bg); box-shadow: var(--shadow-lg); }
.split-media .stamp { position: absolute; left: -16px; top: 26px; background: var(--accent); color: #fff; padding: 14px 18px; border-radius: 18px; box-shadow: var(--shadow); }
.split-media .stamp b { display: block; font-size: 1.7rem; line-height: 1; }
.checks { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li .ico { color: var(--primary-ink); margin-top: 5px; }

/* inspiration band */
.band { position: relative; isolation: isolate; border-radius: 32px; overflow: hidden; padding: 56px; color: #fff; background: var(--navy); }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 85%, #000) 0%, var(--navy) 65%); }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--pattern); opacity: .08; filter: invert(1); }
.band h2, .band h3 { color: #fff; }
.band p { color: #D3DBE6; }
.band-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.band-stats div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 18px; }
.band-stats b { display: block; font-size: 1.7rem; color: var(--gold); line-height: 1.2; }
.band-stats span { font-size: .85rem; color: #C7D2E0; }

/* team */
.team { text-align: center; padding: 18px 18px 22px; }
.team .ph { width: 132px; height: 132px; margin: 6px auto 16px; border-radius: 50%; overflow: hidden; position: relative;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px color-mix(in srgb, var(--primary) 40%, transparent); }
.team .ph img { width: 100%; height: 100%; object-fit: cover; }
.team h3 { font-size: 1.05rem; margin-bottom: 2px; }
.team .role { color: var(--accent); font-weight: 600; font-size: .9rem; }
.founder-card { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: center; padding: 28px; }
.founder-card .ph { border-radius: 22px; overflow: hidden; aspect-ratio: 4/5; }
.founder-card .ph img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------- news (newsroom look) */
.ticker { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); margin-bottom: 28px; }
.ticker strong { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--accent); color: #fff; font-size: .9rem; }
.ticker-track { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track div { display: inline-flex; gap: 48px; white-space: nowrap; padding: 10px 0; animation: tick 40s linear infinite; }
.ticker-track a { color: var(--ink); font-weight: 600; }
.ticker-track a::before { content: "◆"; color: var(--accent); margin-right: 12px; font-size: .7em; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker:hover .ticker-track div { animation-play-state: paused; }

.newsroom { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; }
.lead-story { position: relative; border-radius: 26px; overflow: hidden; min-height: 480px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; background: var(--navy); }
.lead-story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s; }
.lead-story:hover img { transform: scale(1.04); }
.lead-story::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, rgba(5, 10, 20, .92) 100%); }
.lead-story .in { padding: 30px; }
.lead-story h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.25rem); margin: 12px 0; }
.lead-story h2 a { color: #fff; }
.lead-story p { color: #D3DBE6; margin: 0; }
.meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.lead-story .meta { color: #B8C3D2; margin-top: 14px; }

.ranked { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 8px 22px; }
.ranked h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; padding: 14px 0 6px; margin: 0; color: var(--accent); }
.ranked ol { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.ranked li { counter-increment: r; display: grid; grid-template-columns: 46px 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.ranked li::before { content: counter(r, bengali); font-size: 2.1rem; font-weight: 800; line-height: 1; color: color-mix(in srgb, var(--primary) 30%, transparent); font-family: var(--font-display); }
html[lang="en"] .ranked li::before { content: counter(r, decimal-leading-zero); }
.ranked li a { color: var(--ink); font-weight: 600; line-height: 1.45; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s; }
.news-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cat, var(--primary)); z-index: 2; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card .thumb { aspect-ratio: 16/10; }
.news-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.news-card h3 { font-size: 1.12rem; line-height: 1.45; margin: 10px 0 8px; }
.news-card h3 a { color: var(--ink); }
.news-card p { color: var(--muted); font-size: .93rem; }
.news-card .meta { margin-top: auto; padding-top: 10px; }
.cat { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cat, var(--primary-ink)); }
.type-badge { position: absolute; top: 12px; right: 12px; z-index: 2; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.filters a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: .88rem; background: var(--surface); }
.filters a.on, .filters a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); text-decoration: none; }
.searchbox { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 6px 4px 16px; }
.searchbox input { border: 0; background: none; outline: none; min-width: 0; flex: 1; padding: 8px 0; color: var(--ink); font: inherit; }

/* article */
.read-progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; z-index: 100; background: linear-gradient(90deg, var(--accent), var(--gold)); }
.article-head { padding: 54px 0 30px; }
.article-head h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.22; margin: 14px 0 18px; }
.article-head .standfirst { font-size: 1.18rem; color: var(--ink-2); border-left: 4px solid var(--accent); padding-left: 16px; }
.byline { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 24px; flex-wrap: wrap; }
.avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; color: var(--primary-ink); flex: none; }
.article-cover { border-radius: 26px; overflow: hidden; margin: 8px 0 8px; }
.article-cover img { width: 100%; max-height: 620px; object-fit: cover; }
.figcap { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }
.article-layout { display: grid; grid-template-columns: 72px minmax(0, 720px) 1fr; gap: 40px; padding: 30px 0 70px; }
.rail { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 10px; }
.rail .icon-btn { width: 52px; height: 52px; border-radius: 16px; }
.rail small { text-align: center; font-size: .7rem; color: var(--muted); }

.prose { font-family: var(--font-read); font-size: 1.14rem; line-height: 1.95; color: var(--ink); }
html[lang="en"] .prose { font-family: Georgia, 'Noto Serif Bengali', serif; font-size: 1.1rem; line-height: 1.8; }
.prose[data-size="lg"] { font-size: 1.3rem; }
.prose[data-size="sm"] { font-size: 1rem; }
#post-body > p:first-of-type::first-letter { float: left; font-size: 3.6em; line-height: .9; padding: 6px 10px 0 0; color: var(--accent); font-weight: 700; font-family: var(--font); }
.prose h2, .prose h3 { font-family: var(--font); margin-top: 1.6em; }
.prose img { border-radius: 16px; margin: 1.2em 0; height: auto; }
.prose blockquote { margin: 1.6em 0; padding: 18px 24px; border-radius: 0 18px 18px 0; border-left: 5px solid var(--primary); background: var(--primary-soft); font-size: 1.12em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--font); font-size: .95rem; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.side-box + .side-box { margin-top: 18px; }
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: 20px; overflow: hidden; margin: 24px 0; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------------- press marketplace */
.press-hero-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 24px; }
.press-hero-stats div b { display: block; font-size: 1.6rem; color: var(--highlight); line-height: 1.1; }
.press-hero-stats div span { font-size: .85rem; color: #C1CBDA; }
.press-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.press-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: .25s; }
.press-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.press-card .top { display: flex; gap: 14px; align-items: center; }
.press-card .pic { width: 74px; height: 74px; border-radius: 20px; overflow: hidden; flex: none; background: var(--surface-2); }
.press-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.press-card h3 { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 6px; }
.press-card h3 .ico { color: #1D9BF0; }
.press-card .desig { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.press-card .outlets { display: flex; flex-wrap: wrap; gap: 6px; }
.press-card .foot { margin-top: auto; display: flex; gap: 8px; }
.verified { color: #1D9BF0; }
.svc-list { display: flex; flex-wrap: wrap; gap: 6px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { counter-increment: s; position: relative; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.step::before { content: counter(s, bengali); position: absolute; right: 18px; top: 8px; font-size: 3rem; font-weight: 800; color: var(--primary-soft); }
html[lang="en"] .step::before { content: counter(s); }
.step .ico { width: 30px; height: 30px; color: var(--accent); margin-bottom: 10px; }
.profile-head { display: grid; grid-template-columns: 180px 1fr auto; gap: 28px; align-items: center; }
.profile-head .pic { width: 180px; height: 180px; border-radius: 32px; overflow: hidden; border: 5px solid rgba(255,255,255,.15); }
.profile-head .pic img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------- donate */
.pay-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pay-card { position: relative; border-radius: 24px; padding: 24px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.pay-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: var(--pc, var(--primary)); opacity: .08; }
.pay-card .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.pay-card .head b { font-size: 1.1rem; }
.pay-card .num { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--line); }
.pay-card .num code { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: .04em; color: var(--ink); background: none; word-break: break-all; }
.pay-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0 0; font-size: .92rem; }
.pay-card dt { color: var(--muted); }
.pay-card dd { margin: 0; font-weight: 600; }
.qr-box { display: flex; gap: 16px; align-items: center; margin-top: 14px; }
.qr-box img { width: 140px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.copy-btn { border: 0; background: var(--primary); color: #fff; border-radius: 10px; padding: 7px 12px; font-size: .8rem; font-weight: 700; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.copy-btn.done { background: var(--navy); }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amounts label { position: relative; }
.amounts input { position: absolute; opacity: 0; }
.amounts span { display: block; text-align: center; padding: 11px 6px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 700; cursor: pointer; background: var(--surface); }
.amounts input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink); }

/* --------------------------------------------------------------- forms */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 30px; box-shadow: var(--shadow-sm); }
.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fgrid .full { grid-column: 1 / -1; }
.field label, .lbl { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink-2); }
.field small { color: var(--muted); font-size: .8rem; }
.input, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 11px 14px; font: inherit; font-size: .97rem;
  transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 130px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--primary); }
.err { color: var(--accent); font-size: .82rem; margin-top: 4px; display: block; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; margin-bottom: 18px; border: 1px solid; font-size: .95rem; }
.alert-ok { background: color-mix(in srgb, var(--primary) 9%, var(--surface)); border-color: color-mix(in srgb, var(--primary) 35%, transparent); color: var(--primary-ink); }
.alert-err { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--accent); }
.alert-info { background: var(--surface-2); border-color: var(--line); color: var(--ink-2); }
.alert ul { margin: 0; padding-left: 18px; }

/* --------------------------------------------------------------- gallery */
.albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.album { position: relative; display: block; border-radius: 24px; overflow: hidden; aspect-ratio: 4/3; color: #fff; isolation: isolate; text-decoration: none !important; }
.album img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s; }
.album:hover img { transform: scale(1.06); }
.album::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(5,10,20,.88)); }
.album .in { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; }
.album h3 { color: #fff; margin: 6px 0 2px; font-size: 1.15rem; }
.album small { color: #C9D3E0; }
.album .count { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.45); padding: 4px 10px; border-radius: 999px; font-size: .8rem; display: inline-flex; gap: 6px; align-items: center; backdrop-filter: blur(6px); }
.masonry { columns: 3 280px; column-gap: 16px; }
.masonry a { display: block; margin-bottom: 16px; border-radius: 16px; overflow: hidden; break-inside: avoid; cursor: zoom-in; }
.masonry img { width: 100%; height: auto; transition: transform .5s; }
.masonry a:hover img { transform: scale(1.03); }
.lb { position: fixed; inset: 0; z-index: 120; background: rgba(5, 8, 15, .94); display: none; align-items: center; justify-content: center; padding: 30px; }
.lb.on { display: flex; }
.lb img { max-height: 86vh; max-width: 92vw; border-radius: 14px; }
.lb button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lb .x { top: 20px; right: 20px; } .lb .p { left: 20px; } .lb .n { right: 20px; }
.lb .cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #CBD5E1; font-size: .9rem; }

/* --------------------------------------------------------------- contact / offices */
.office { display: flex; gap: 16px; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.office .ic { width: 50px; height: 50px; border-radius: 16px; flex: none; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); }
.office h3 { font-size: 1.02rem; margin-bottom: 4px; }
.office p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.hotlines { display: grid; gap: 10px; }
.hotline { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 1.05rem; text-decoration: none !important; }
.hotline .ico { color: var(--accent); }
.hotline:hover { border-color: var(--primary); }

/* faq */
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 4px 20px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .2s; color: var(--primary-ink); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details > div { padding: 0 0 16px; color: var(--ink-2); }

/* cta */
.cta { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 40px 44px; border-radius: 30px;
  background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--navy))); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--pattern); opacity: .1; filter: invert(1); }
.cta h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta p { margin: 0; color: rgba(255,255,255,.88); }

.empty { text-align: center; padding: 60px 20px; border: 2px dashed var(--line); border-radius: 26px; color: var(--muted); background: var(--surface); }
.empty .ico { width: 46px; height: 46px; margin: 0 auto 12px; color: var(--primary-ink); }

/* --------------------------------------------------------------- footer */
.site-footer { position: relative; isolation: isolate; background: #0A111F; color: #A9B4C4; padding-top: 70px; margin-top: 40px; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--pattern); opacity: .035; filter: invert(1); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: #CBD5E1; }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.f-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.f-brand img { height: 52px; width: auto; background: #fff; border-radius: 12px; padding: 4px 8px; margin-bottom: 16px; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #fff; }
.socials a:hover { background: var(--primary); }
.f-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.f-bottom .rfx { display: inline-flex; align-items: center; gap: 6px; }
.f-bottom .rfx b { color: #fff; }
.f-bottom .rfx i { width: 18px; height: 18px; border-radius: 5px; background: #e10600; color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .7rem; }

/* --------------------------------------------------------------- text to speech */
.listen-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 16px 8px 8px; border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1); color: #fff; font-weight: 600; cursor: pointer; font-size: .9rem; }
.listen-btn .ico { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--highlight); color: var(--navy); }
.listen-btn.light { border-color: var(--line); background: var(--surface); color: var(--ink); }
.listen-btn:hover { box-shadow: 0 0 0 4px rgba(45,212,191,.2); }
.tts-player { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 85; width: min(560px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 20px; background: var(--navy); color: #fff;
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.6); transition: transform .35s cubic-bezier(.2,.9,.2,1); }
.tts-player:not(.on) { visibility: hidden; }
.tts-player.on { transform: translate(-50%, 0); }
.tts-player .wave { display: flex; gap: 3px; align-items: center; height: 22px; }
.tts-player .wave i { width: 3px; border-radius: 3px; background: var(--highlight); height: 6px; animation: wave 1s ease-in-out infinite; }
.tts-player .wave i:nth-child(2) { animation-delay: .15s; } .tts-player .wave i:nth-child(3) { animation-delay: .3s; } .tts-player .wave i:nth-child(4) { animation-delay: .45s; }
.tts-player.paused .wave i { animation-play-state: paused; }
@keyframes wave { 0%, 100% { height: 5px; } 50% { height: 20px; } }
.tts-player .info { flex: 1; min-width: 0; font-size: .82rem; line-height: 1.35; }
.tts-player .info b { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tts-player .info span { color: #9FB0C5; }
.tts-player button { width: 38px; height: 38px; border-radius: 12px; border: 0; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.tts-player button.main { background: var(--highlight); color: var(--navy); }
.tts-player select { background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 10px; padding: 7px 6px; font: inherit; font-size: .8rem; }
.tts-player select option { color: #000; }
.tts-reading { background: color-mix(in srgb, var(--highlight) 22%, transparent) !important; border-radius: 8px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--highlight) 22%, transparent); transition: background .3s; }
@media (max-width: 1140px) { .tts-player { bottom: calc(90px + env(safe-area-inset-bottom)); } }

/* --------------------------------------------------------------- pagination */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; }
.pager .on { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager .off { opacity: .45; }

/* --------------------------------------------------------------- auth */
.auth { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; isolation: isolate; padding: 60px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--navy); }
.auth-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,15,30,.3), rgba(8,15,30,.92)); }
.auth-side h2 { color: #fff; font-size: 2rem; }
.auth-side p { color: #CBD5E1; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-box { width: 100%; max-width: 440px; }
.role-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 24px; }
.role-tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: .85rem; text-decoration: none !important; }
.role-tabs a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.role-tabs a.on .ico { color: var(--accent); }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1140px) {
  .hero-inner { grid-template-columns: 1fr; padding: 70px 0 90px; min-height: 0; }
  .split, .newsroom { grid-template-columns: 1fr; }
  .g4, .press-grid, .albums, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 20px; }
  .rail { position: static; grid-auto-flow: column; justify-content: start; order: 2; }
  .rail small { display: none; }
  .band-stats { grid-template-columns: repeat(2, 1fr); }
  .auth { grid-template-columns: 1fr; }
  .auth-side { min-height: 220px; padding: 30px; }
  .profile-head { grid-template-columns: 120px 1fr; }
  .profile-head .pic { width: 120px; height: 120px; }
  .profile-head > :last-child { grid-column: 1 / -1; }
  .split-media .float { right: 10px; }
  .split-media .stamp { left: 10px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .wrap { padding: 0 16px; }
  .g2, .g3, .g4, .press-grid, .albums, .news-grid, .pay-grid, .steps, .fgrid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; margin-top: -36px; }
  .fact { padding: 18px; border-bottom: 1px solid var(--line-2); }
  .fact:nth-child(2n) { border-right: 0; }
  .fact b { font-size: 1.5rem; }
  .f-grid { grid-template-columns: 1fr; gap: 28px; }
  .band { padding: 30px 22px; border-radius: 24px; }
  .cta { grid-template-columns: 1fr; padding: 28px 24px; }
  .lead-story { min-height: 380px; }
  .founder-card { grid-template-columns: 1fr; padding: 18px; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .form-card { padding: 20px; border-radius: 20px; }
  .hdr-actions .seg { display: none; }
  .qr-box { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .mbar, .site-footer, .tts-player, .rail, .ribbon { display: none !important; }
}

/* --------------------------------------------------------------- installable app (PWA) */
.app-banner { position: fixed; left: 12px; right: 12px; bottom: 16px; z-index: 75; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.app-banner img { border-radius: 14px; flex: none; }
.app-banner b { display: block; font-size: .95rem; line-height: 1.3; }
.app-banner small { color: var(--muted); font-size: .8rem; line-height: 1.35; display: block; }
.app-banner .icon-btn { width: 34px; height: 34px; border: 0; }
.app-banner[hidden], .app-ios[hidden], [data-install-row][hidden] { display: none !important; }
.app-ios { position: fixed; inset: 0; z-index: 130; background: rgba(8,13,24,.55); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.app-ios .form-card { width: 100%; max-width: 460px; }
.ios-steps { padding-left: 20px; display: grid; gap: 10px; margin: 14px 0 18px; }
.ios-steps b { color: var(--primary-ink); }
@media (max-width: 1140px) { .app-banner { bottom: calc(86px + env(safe-area-inset-bottom)); } }
@media (display-mode: standalone) { .app-banner, [data-install-app], [data-install-row] { display: none !important; } }
