@charset "UTF-8";
/* ============================================================
   subhashitam.in — Unified portal (Subhashitam · Gita · Ramayan
   · Sanatan AI · Samskrita Bharati Patrachar · RSS · Ebooks)
   One website · Seven paths of Indian knowledge
   ============================================================ */

:root {
  --saffron: #e8721b;
  --saffron-light: #fb923c;
  --saffron-soft: #fdba74;
  --saffron-lighter: #ffedd5;
  --maroon: #9a3412;
  --maroon-deep: #431407;
  --deep: #1b1206;
  --cream: #fff8ef;
  --paper: #fbf8f3;
  --panel: #f5efe4;
  --line: #e6dfd2;
  --gold: #d4a017;
  --gold-light: #fde047;
  --green: #2e6b4f;
  --teal: #1f6f6b;
  --red: #b91c1c;
  --ink: #292524;
  --ink-soft: #57534e;
  --muted: #8a8175;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(66, 42, 22, .07);
  --shadow: 0 10px 32px rgba(66, 42, 22, .11);
  --shadow-lg: 0 24px 64px rgba(66, 42, 22, .16);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --grad-saffron: linear-gradient(135deg, #e8721b, #c4580a);
  --grad-maroon: linear-gradient(160deg, #431407, #9a3412);
  --grad-brand: linear-gradient(135deg, #e8721b 0%, #d4a017 100%);
  --font-head: "Noto Serif Bengali", "Playfair Display", Georgia, serif;
  --font-body: "Noto Sans Bengali", "Hind Siliguri", "Segoe UI", sans-serif;
  --font-sa: "Tiro Devanagari Sanskrit", "Noto Sans Devanagari", serif;
  --font-bn: "Noto Sans Bengali", "Hind Siliguri", "Segoe UI", sans-serif;
  --texture-dots: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='1.2' fill='%23e8721b' fill-opacity='0.12'/%3E%3Ccircle cx='40' cy='20' r='1' fill='%239a3412' fill-opacity='0.10'/%3E%3Ccircle cx='16' cy='48' r='1.4' fill='%23e8721b' fill-opacity='0.09'/%3E%3Ccircle cx='52' cy='56' r='1' fill='%239a3412' fill-opacity='0.12'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  background-image: var(--texture-dots);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior-y: none;
}
body.no-scroll, body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
button, a, label, select, textarea, input { touch-action: manipulation; }
a { color: var(--maroon); text-decoration: none; transition: color .2s; }
a:hover { color: var(--saffron); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--maroon); color: #fff; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--maroon); line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 52px); }
h2 { font-size: clamp(24px, 3.4vw, 36px); }
h3 { font-size: clamp(18px, 2.2vw, 23px); }
p { margin: 0 0 1em; }
.sa { font-family: var(--font-sa); }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 9999; padding: 9px 14px; border-radius: 8px; background: var(--maroon-deep); color: #fff; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(232, 114, 27, .35);
  color: var(--saffron); font-weight: 800; font-size: .82rem;
  letter-spacing: .04em; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 22px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Entrance animations ---------- */
@keyframes slideUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUpSm { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes shine { from { background-position: -300px 0; } to { background-position: calc(300px + 100%) 0; } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, .25); } 50% { box-shadow: 0 0 0 14px rgba(217, 119, 6, 0); } }
.animate { animation: slideUp .55s cubic-bezier(.22,1,.36,1) both; }
.animate-d1 { animation-delay: .08s; }
.animate-d2 { animation-delay: .16s; }
.animate-d3 { animation-delay: .24s; }
.animate-d4 { animation-delay: .32s; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--maroon-deep); color: rgba(255,255,255,.85);
  font-size: .78rem; letter-spacing: .02em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; padding: 5px 20px; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: #fff; }
.topbar .topbar-contact a { text-decoration: none; }
.topbar .topbar-links a {
  text-decoration: none; padding: 2px 12px; border: 1px solid rgba(255,255,255,.25);
  border-radius: 99px; font-size: .74rem; margin-left: 6px; transition: all .2s;
}
.topbar .topbar-links a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
@media (max-width: 540px) { .topbar .topbar-contact a:first-child { display: none; } }
@media (max-width: 420px) { .topbar .topbar-links { display: none; } }

/* ============================================================
   HEADER + MEGA MENU
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 10px rgba(120, 60, 20, .05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 20px; min-height: 62px; }
@supports (padding: env(safe-area-inset-top)) {
  .site-header .header-inner { padding: calc(8px + env(safe-area-inset-top)) 20px calc(8px + env(safe-area-inset-bottom)); }
  .mobile-menu { padding-top: calc(90px + env(safe-area-inset-top)); }
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-logo { height: 40px; width: auto; }
.brand-text strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--maroon); display: block; line-height: 1.15; }
.brand-text strong span { color: var(--saffron); }
.brand-text small { font-size: .62rem; color: var(--muted); letter-spacing: .08em; display: block; }

.mainnav { display: flex; align-items: center; }
.mainnav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mainnav > ul > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 13px; border-radius: 10px;
  font-size: .86rem; font-weight: 600; color: var(--ink-soft);
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--saffron); background: var(--saffron-lighter); }
.nav-link[aria-current="page"] { color: var(--saffron); background: var(--saffron-lighter); }
.nav-link .caret { font-size: .6rem; opacity: .55; transition: transform .2s; }
.has-mega:hover .caret, .has-mega.open .caret { transform: rotate(180deg); }

.mega {
  display: none; position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(680px, 92vw);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 22px; z-index: 1000;
  transition: transform .22s ease, opacity .22s ease; opacity: 0;
}
.mega.show { display: block; transform: translateX(-50%) translateY(0); opacity: 1; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mega-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px; border-radius: var(--radius-sm);
  transition: background .18s, transform .18s;
}
.mega-item:hover { background: var(--panel); transform: translateX(3px); }
.mega-icon {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.25rem;
  background: var(--grad-brand); color: #fff; box-shadow: 0 4px 12px rgba(232,114,27,.25);
}
.mega-item strong { display: block; color: var(--ink); font-size: .95rem; }
.mega-item strong small { display: block; font-family: var(--font-sa); color: var(--muted); font-size: .72rem; }
.mega-item p { margin: 2px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.has-mega { position: relative; }

.hamburger {
  display: none; background: var(--maroon); border: 0; color: #fff;
  width: 46px; height: 46px; border-radius: 12px; cursor: pointer;
  transition: transform .2s;
}
.hamburger:hover { transform: scale(1.04); }
.hamburger svg { width: 22px; height: 22px; display: block; }
.hamburger svg path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.hamburger .close-icon { display: none; }
body.nav-open .hamburger .menu-icon { display: none; }
body.nav-open .hamburger .close-icon { display: block; }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 480;
  background: var(--paper); overflow-y: auto; padding: 90px 20px 40px;
}
body.nav-open .mobile-menu { display: block; animation: slideUp .3s ease; }
.mobile-menu nav { display: grid; gap: 4px; max-width: 560px; margin: 0 auto; }
.mobile-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; min-height: 50px;
  border: 1px solid var(--line); border-radius: 14px;
  background: #fff; font-weight: 700; color: var(--ink); font-size: 1rem;
}
.mobile-menu a:hover { border-color: var(--saffron); transform: translateX(4px); }
.mobile-menu a .mi { font-size: 1.3rem; flex-shrink: 0; }
.mobile-menu .mm-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
@media (max-width: 820px) {
  .mainnav { display: none; }
  .hamburger { display: block; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  background:
    radial-gradient(70% 120% at 85% 10%, rgba(232, 114, 27, .28), transparent 60%),
    radial-gradient(60% 100% at 5% 95%, rgba(212, 160, 23, .2), transparent 60%),
    linear-gradient(160deg, #2b1a06 0%, #1b1206 55%, #0f0a04 100%);
  color: var(--cream); padding: 44px 0 56px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: var(--texture-dots);
}
.hero-om {
  position: absolute; font-family: var(--font-sa);
  color: rgba(255, 214, 150, .1); user-select: none; animation: floatP 7s ease-in-out infinite;
}
@keyframes floatP {
  0%, 100% { transform: translate3d(0, calc(var(--par, 0px) + 0px), 0); }
  50% { transform: translate3d(0, calc(var(--par, 0px) + -9px), 0); }
}
.hero-om.o1 { font-size: 220px; right: 6%; top: 6%; }
.hero-om.o2 { font-size: 130px; left: 4%; bottom: 10%; animation-delay: 1.4s; }
.hero-om.o3 { font-size: 70px; right: 30%; bottom: 16%; animation-delay: 2.6s; }
.hero-content { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 999px;
  background: rgba(232, 114, 27, .16); border: 1px solid rgba(232, 114, 27, .4);
  color: var(--saffron-soft); font-weight: 800; font-size: .82rem; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 14px; backdrop-filter: blur(6px);
}
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--saffron-soft); animation: pulseGlow 2s ease infinite; }
.hero-om glyph {
  font-size: clamp(34px, 4vw, 46px); color: var(--gold);
  text-shadow: 0 0 34px rgba(212, 160, 23, .8); display: block; margin-bottom: 6px;
}
.om-glyph {
  font-size: clamp(20px, 2.6vw, 26px); color: var(--gold);
  text-shadow: 0 0 24px rgba(212, 160, 23, .6);
  font-weight: 600; margin-bottom: 10px; animation: slideUpSm .5s .1s ease both;
}
.hero-content h1 { color: var(--cream); font-size: clamp(30px, 5vw, 52px); letter-spacing: .5px; margin-bottom: 10px; }
.hero-content h1 span { color: var(--saffron); }
.hero-subtitle { font-size: clamp(16px, 2.2vw, 20px); color: rgba(255, 238, 210, .85); max-width: 640px; margin: 0 auto 8px; }
.hero-sanskrit { font-family: var(--font-sa); color: var(--gold); font-size: clamp(17px, 2.4vw, 22px); margin-bottom: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(24px, 4vw, 48px);
  margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255, 238, 210, .14);
}
.hero-stats .stat { text-align: center; min-width: 100px; }
.hero-stats .stat strong { display: block; font-size: clamp(22px, 3vw, 32px); font-weight: 900; color: var(--gold); line-height: 1.1; }
.hero-stats .stat span { font-size: .84rem; color: rgba(255, 238, 210, .7); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 26px; border: 0; border-radius: 999px;
  background: var(--grad-saffron); color: #fff;
  font-weight: 800; font-family: inherit; font-size: .95rem;
  box-shadow: 0 6px 20px rgba(196, 88, 10, .35);
  cursor: pointer; text-decoration: none;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .3s, background .2s;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(196, 88, 10, .42); color: #fff; }
.btn:active { transform: translateY(0); transition-duration: .08s; }
.btn-light { background: #fff; color: var(--maroon); box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.btn-light:hover { color: var(--saffron); box-shadow: 0 10px 26px rgba(0,0,0,.28); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); box-shadow: none; }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; box-shadow: none; }
.btn-outline-dark { background: #fff; color: var(--maroon); border: 2px solid var(--maroon); box-shadow: none; }
.btn-outline-dark:hover { background: var(--maroon); color: #fff; box-shadow: 0 8px 22px rgba(154,52,18,.3); }
.btn-gold { background: linear-gradient(135deg, #d4a017, #b8860b); }
.btn-gold:hover { box-shadow: 0 10px 26px rgba(184,134,11,.4); }
.btn-sm { min-height: 38px; padding: 6px 18px; font-size: .84rem; }
.btn-block { width: 100%; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(30px, 4.5vw, 56px) 0; position: relative; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-tint { background: linear-gradient(180deg, var(--saffron-lighter) 0%, var(--paper) 60%); }

/* ---------- Path cards (7 sections) ---------- */
.path-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; perspective: 1200px; }
.path-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, border-color .3s;
}
.path-card.tilt-3d { transition: transform 70ms linear, box-shadow .3s, border-color .3s; }
.path-card .path-img { transform: translateZ(16px); }
.path-card .path-body { transform: translateZ(34px); }
.path-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.path-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(232,114,27,.35); }
.path-card:hover::before { transform: scaleX(1); }
.path-img { height: 150px; overflow: hidden; }
.path-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.path-card:hover .path-img img { transform: scale(1.07); }
.path-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.path-body h3 { font-size: 1.25rem; margin-bottom: 2px; }
.path-body h3 small { display: block; font-family: var(--font-sa); color: var(--saffron); font-size: .78rem; font-weight: 600; }
.path-body p { color: var(--muted); font-size: .88rem; line-height: 1.6; margin: 8px 0 0; flex: 1; }
.path-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--saffron); font-weight: 800; font-size: .88rem; }
.path-card:hover .path-go { gap: 10px; }

/* ---------- Subhashitam of the day ---------- */
.subhashita-day {
  position: relative;
  background: var(--grad-maroon);
  color: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 32px);
  text-align: center;
  overflow: hidden;
  animation: slideUp .5s ease both;
}
.subhashita-day::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 90% at 80% 0%, rgba(232,114,27,.35), transparent 60%),
    radial-gradient(50% 80% at 10% 100%, rgba(212,160,23,.25), transparent 60%);
}
.subhashita-day::after {
  content: "॥"; position: absolute; right: 22px; bottom: -18px;
  font-family: var(--font-sa); font-size: 6.5rem; color: rgba(255,255,255,.06);
}
.subhashita-day-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.subhashita-day .day-label {
  display: inline-block; padding: 6px 18px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: var(--gold-light); font-size: .78rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 10px;
}
.subhashita-day .day-label::before { content: "◆ "; color: var(--gold); }
.subhashita-day .om {
  font-family: var(--font-sa); color: var(--gold); font-size: 1.5rem;
  margin-bottom: 8px; text-shadow: 0 0 24px rgba(212,160,23,.7);
}
.subhashita-day .dev {
  font-family: var(--font-sa); color: #fff; font-size: clamp(19px, 2.8vw, 26px);
  line-height: 2; font-weight: 600; margin-bottom: 8px;
}
.subhashita-day .roman { font-family: var(--font-sa); color: rgba(255,235,200,.72); font-style: italic; font-size: .95rem; }
.subhashita-day .meaning {
  color: rgba(255,244,230,.95); font-size: clamp(.9rem, 1.6vw, 1.02rem);
  line-height: 1.8; margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.22);
}
.subhashita-day .source {
  display: inline-block; margin-top: 14px; padding: 4px 16px; border-radius: 999px;
  background: var(--grad-saffron); color: #fff; font-size: .78rem; font-weight: 800;
}
.subhashita-day .refresh-hint { margin-top: 16px; font-size: .78rem; color: rgba(255,238,210,.6); letter-spacing: .02em; }
.subhashita-day .day-actions { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.subhashita-day .day-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: .76rem; color: rgba(255,238,210,.55); cursor: pointer;
  border: 1px dashed rgba(255,255,255,.3); border-radius: 999px; padding: 4px 14px;
  background: rgba(255,255,255,.05); transition: color .2s, border-color .2s;
  word-break: break-all;
}
.subhashita-day .day-link:hover { color: var(--gold-light); border-color: rgba(212,160,23,.6); }
.subhashita-day .day-link::before { content: "🔗 "; }
.btn-day {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 8px 20px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.1);
  color: #fff; font: inherit; font-weight: 800; font-size: .88rem; cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s;
}
.btn-day:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.7); transform: translateY(-2px); }
.btn-day:active { transform: translateY(0); }
.btn-day.solid { background: var(--grad-saffron); border-color: transparent; box-shadow: 0 6px 18px rgba(196,88,10,.4); }
.btn-day.solid:hover { background: var(--grad-saffron); box-shadow: 0 10px 24px rgba(196,88,10,.55); }
.subhashita-day.fade { animation: subhashFade .45s ease both; }
@keyframes subhashFade { from { opacity: .15; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }

/* ---------- Shloka cards ---------- */
.shloka-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.shloka-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.shloka-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.shloka-card::after { content: "॥"; position: absolute; right: 18px; bottom: 8px; font-family: var(--font-sa); font-size: 3rem; color: rgba(232,114,27,.08); }
.shloka-deva { font-family: var(--font-sa); font-size: 1.18rem; line-height: 1.9; color: var(--maroon); font-weight: 600; display: block; }
.shloka-roman { font-family: var(--font-sa); font-size: .9rem; color: var(--muted); font-style: italic; display: block; margin-top: 8px; }
.shloka-meaning { font-size: .86rem; color: var(--ink-soft); line-height: 1.6; display: block; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.shloka-source { display: inline-block; margin-top: 12px; padding: 3px 12px; border-radius: 999px; background: var(--saffron-lighter); color: var(--saffron); font-size: .72rem; font-weight: 800; letter-spacing: .03em; }

/* ---------- About ---------- */
.about-grid { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.about-copy { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(20px, 3vw, 30px); }
.about-copy p { color: var(--ink-soft); font-size: .97rem; line-height: 1.75; margin: 0 0 14px; }
.about-copy p:last-child { margin-bottom: 0; }
.about-moto { text-align: center; font-family: var(--font-sa); color: var(--saffron); font-size: 1.2rem; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform .3s, box-shadow .3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--grad-saffron); color: #fff; display: grid; place-items: center;
  font-size: 1.35rem; margin-bottom: 14px; box-shadow: 0 6px 14px rgba(234,88,12,.28);
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature-card p { font-size: .86rem; color: var(--muted); line-height: 1.6; margin: 0; }
.feature-card a { color: var(--saffron); font-weight: 700; font-size: .84rem; display: inline-block; margin-top: 10px; }
.feature-card a:hover { text-decoration: underline; }

/* ---------- Courses ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.course-card {
  border-radius: var(--radius-lg); overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.course-tint { padding: 14px 20px; font-size: .8rem; font-weight: 800; }
.ct-pravesha { background: #fff7c9; color: #705700; }
.ct-parichaya { background: #e3f4ff; color: #075d8c; }
.ct-shiksha { background: #fff0df; color: #9a4500; }
.ct-kovida { background: #e8edff; color: #173caa; }
.course-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.course-body p { font-size: .85rem; color: var(--muted); line-height: 1.6; flex: 1; }
.course-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.course-meta span {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 11px; border-radius: 999px; background: var(--panel);
  color: var(--ink-soft); font-size: .75rem; font-weight: 600;
}
.course-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Audio archive ---------- */
.audio-toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.search-box {
  flex: 1 1 300px; min-height: 52px; padding: 12px 20px 12px 48px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font: inherit; font-size: .95rem; color: var(--ink);
  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='%238a8175' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 16px center;
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(232,114,27,.12); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-bar button {
  min-height: 40px; padding: 6px 16px; border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--muted); font-weight: 700; font-size: .84rem; cursor: pointer;
  transition: all .22s;
}
.filter-bar button:hover { border-color: var(--saffron); color: var(--maroon); transform: translateY(-1px); }
.filter-bar button.active { background: var(--grad-saffron); color: #fff; border-color: transparent; box-shadow: 0 5px 16px rgba(234,88,12,.3); }
.audio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.audio-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; transition: transform .3s, box-shadow .3s;
}
.audio-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.audio-title { font-weight: 800; color: var(--ink); font-size: .98rem; line-height: 1.4; }
.audio-deva { font-family: var(--font-sa); color: var(--saffron); font-size: .84rem; margin-top: 2px; }
.audio-card audio { width: 100%; margin-top: 12px; height: 40px; }
.count-bar { text-align: center; color: var(--muted); font-size: .86rem; margin: 22px 0 0; font-weight: 600; }
.audio-empty { text-align: center; padding: 40px 20px; color: var(--muted); }

/* ---------- eBooks ---------- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.book-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center; display: flex; flex-direction: column; align-items: center;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.book-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(232,114,27,.4); }
.book-item { position: relative; margin: 10px 0 4px; }
.book-icon { width: 76px; height: 104px; border-radius: 8px; display: grid; place-items: center; font-size: 1.6rem; color: #fff; box-shadow: 0 8px 20px rgba(60, 30, 10, .22); }
.book-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 6px; border-radius: 0 0 6px 6px; background: rgba(0,0,0,.18); filter: blur(2px); z-index: -1; }
.book-card h3 { font-size: 1rem; margin: 14px 0 2px; }
.book-card p { font-size: .8rem; color: var(--muted); line-height: 1.5; margin: 0; }
.book-tag { display: inline-block; margin-top: 10px; padding: 3px 12px; border-radius: 999px; background: var(--saffron-lighter); color: var(--saffron); font-size: .7rem; font-weight: 800; }
.bg-red { background: linear-gradient(135deg, #b91c1c, #7f1d1d); }
.bg-saffron { background: linear-gradient(135deg, #e8721b, #b45309); }
.bg-gold { background: linear-gradient(135deg, #d4a017, #92400e); }
.bg-blue { background: linear-gradient(135deg, #1d4ed8, #1e3a8a); }
.bg-green { background: linear-gradient(135deg, #15803d, #14532d); }
.bg-maroon { background: linear-gradient(135deg, #9a3412, #581c87); }

/* ---------- Organizations ---------- */
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.org-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 6px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.org-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(232,114,27,.35); }
.org-head { display: flex; gap: 12px; align-items: flex-start; }
.org-avatar {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #fff0df, #ffe4c4); border: 1px solid var(--line);
  display: grid; place-items: center; font-weight: 900; color: var(--saffron); font-size: 1.05rem;
}
.org-name { font-weight: 800; color: var(--ink); font-size: .95rem; line-height: 1.35; }
.org-field { font-size: .72rem; color: var(--saffron); font-weight: 800; }
.org-card p { font-size: .8rem; color: var(--muted); line-height: 1.55; margin: 0; }
.org-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.org-meta span { font-size: .68rem; color: var(--muted); background: var(--panel); padding: 2px 9px; border-radius: 999px; font-weight: 700; }

/* ============================================================
   SCROLL STRIP (big banner)
   ============================================================ */
.scroll-strip { overflow: hidden; background: var(--grad-maroon); color: #fff; padding: 16px 0; }
.scroll-track { display: flex; gap: 40px; width: max-content; animation: scrollX 32s linear infinite; }
.scroll-track span { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-sa); font-size: 1.06rem; white-space: nowrap; color: rgba(255,255,255,.9); }
.scroll-track span::after { content: "❋"; color: var(--gold); font-size: .8rem; }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   CTA / donation / contact
   ============================================================ */
.cta-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 32px 36px; border-radius: var(--radius-lg);
  background: var(--grad-maroon); color: #fff; position: relative; overflow: hidden;
}
.cta-strip::after { content: "ॐ"; position: absolute; right: 20px; bottom: -26px; font-size: 7rem; color: rgba(255,255,255,.06); font-family: serif; }
.cta-strip h2 { color: #fff; margin: 0 0 4px; }
.cta-strip p { color: rgba(255,255,255,.85); margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.glass-card, .dark-card { border-radius: var(--radius-lg); padding: 28px; }
.glass-card { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.dark-card { background: var(--grad-maroon); color: #fff; }
.dark-card h2, .dark-card h3 { color: #fff; }
.dark-card p, .dark-card li { color: rgba(255,255,255,.85); }
.bank-box { background: rgba(255,255,255,.1); border: 1px dashed rgba(255,255,255,.35); border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; }
.bank-box p { margin: 3px 0; font-size: .88rem; }
.contact-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.contact-list li { position: relative; padding-left: 24px; font-size: .92rem; color: rgba(255,255,255,.88); }
.contact-list li::before { content: "→"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ---------- Accordion / FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: .98rem; display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--saffron); transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 22px 18px; color: var(--muted); font-size: .9rem; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; padding: 20px 0; margin: 20px 0; max-width: 900px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 3px; border-radius: 4px; background: linear-gradient(180deg, var(--saffron), var(--maroon), var(--gold)); }
.timeline-item { position: relative; padding: 8px 0 8px 54px; }
.timeline-item .year { display: inline-block; background: var(--grad-saffron); color: #fff; padding: 2px 12px; border-radius: 999px; font-size: .84rem; font-weight: 800; margin-bottom: 6px; }
.timeline-item .content { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; font-size: .92rem; box-shadow: var(--shadow-sm); }
.timeline-item .dot { position: absolute; left: 11px; top: 22px; width: 20px; height: 20px; background: #fff; border: 4px solid var(--maroon); border-radius: 50%; z-index: 2; }
.timeline-item:hover .dot { background: var(--saffron); border-color: var(--saffron); box-shadow: 0 0 0 5px rgba(232,114,27,.15); }

/* ---------- Stats band ---------- */
.stat-band {
  background: var(--grad-maroon); color: #fff; padding: 40px 0; border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.stat-band::before { content: "ॐ"; position: absolute; left: -16px; top: -48px; font-size: 13rem; color: rgba(255,255,255,.05); font-family: serif; }
.stat-band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; z-index: 1; }
.stat-band-item { text-align: center; padding: 10px; border-right: 1px solid rgba(255,255,255,.15); }
.stat-band-item:last-child { border-right: 0; }
.stat-band-item .num { font-size: 2.4rem; font-weight: 900; font-family: var(--font-head); line-height: 1.1; color: var(--saffron-soft); }
.stat-band-item .label { font-size: .84rem; color: rgba(255,255,255,.8); margin-top: 4px; display: block; }
@media (max-width: 640px) { .stat-band-grid { grid-template-columns: 1fr 1fr; } .stat-band-item { border-right: 0; } }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(154, 52, 18, .05) 55%);
  margin-top: 10px;
}
.footer-main {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 18px;
  padding: clamp(20px, 3vw, 34px) 0 14px;
}
.footer-brand-big { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.footer-brand-big img { height: 34px; }
.footer-brand-big strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--maroon); }
.footer-brand-big strong span { color: var(--saffron); }
.footer-desc { color: var(--muted); font-size: .82rem; line-height: 1.6; max-width: 300px; }
.footer-heading { font-family: var(--font-head); font-size: .94rem; color: var(--ink); margin: 0 0 8px; }
.footer-nav { display: grid; gap: 5px; }
.footer-nav a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: .84rem; }
.footer-nav a::before { content: "›"; color: var(--saffron); font-weight: 700; }
.footer-nav a:hover { color: var(--maroon); padding-left: 3px; }
.footer-copy { border-top: 1px solid var(--line); text-align: center; color: var(--muted); padding: 10px 12px; font-size: .8rem; }
.footer-copy .sa { color: var(--maroon); font-weight: 700; }

/* ============================================================
   NOTICE TICKER (homepage)
   ============================================================ */
.ticker {
  position: relative; overflow: hidden;
  background: linear-gradient(90deg, var(--maroon-deep), var(--maroon));
  color: var(--cream); font-size: .82rem; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 64px; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--maroon-deep), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--maroon-deep), transparent); }
.ticker-track { display: flex; width: max-content; animation: tickerMove 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-items { display: flex; flex: 0 0 auto; align-items: center; }
.tk { display: inline-flex; align-items: center; white-space: nowrap; padding: 7px 0; }
.tk + .tk::before { content: "◆"; margin: 0 22px; color: var(--gold); font-size: .7rem; }
.tk-link { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.tk-link:hover { color: var(--gold-light); }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; width: auto; flex-wrap: wrap; }
  .ticker-items { flex-wrap: wrap; }
  .tk { white-space: normal; padding: 3px 0; }
}
@media (max-width: 560px) {
  .ticker { font-size: .76rem; }
  .ticker::before, .ticker::after { width: 30px; }
  .tk + .tk::before { margin: 0 14px; }
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 850;
  transform: translateX(-50%) translateY(140%);
  background: var(--maroon-deep); color: #fff;
  padding: 12px 24px; border-radius: 999px;
  font-size: .9rem; font-weight: 700; box-shadow: var(--shadow-lg);
  max-width: 92vw; text-align: center;
  transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .35s;
  opacity: 0; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* Back to top */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 400;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--grad-saffron); color: #fff; font-size: 1.15rem; cursor: pointer;
  box-shadow: 0 8px 22px rgba(196, 88, 10, .4);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .3s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .mega { width: 90vw; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-main > div:first-child { grid-column: 1 / -1; }
  .footer-desc { max-width: 100%; }
}
@media (max-width: 640px) {
  .footer-main { grid-template-columns: 1fr; gap: 20px; }
  .footer-main > div:first-child { grid-column: auto; text-align: center; }
  .footer-brand-big { justify-content: center; }
  .footer-desc { margin-inline: auto; max-width: 100%; }
  .mega { position: fixed; top: 62px; left: 10px; right: 10px; width: auto; transform: none; }
  .mega.show { transform: none; }
  .mega-grid { grid-template-columns: 1fr; }
  .back-to-top { bottom: max(18px, env(safe-area-inset-bottom)); right: 18px; width: 50px; height: 50px; }
  .toast { bottom: max(22px, env(safe-area-inset-bottom)); }
  .mobile-menu { padding-bottom: max(40px, env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .hero-badge { letter-spacing: .08em; padding: 8px 14px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: calc(50% - 5px); padding: 10px 12px; font-size: .9rem; }
  .hero-actions .btn-gold { width: 100%; }
  .hero-actions .btn#installApp { width: 100%; margin-top: 2px; }
  .topbar .container { flex-wrap: nowrap; gap: 4px; }
  .topbar .topbar-links a { font-size: .78rem; }
  .footer-heading { margin-bottom: 8px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); gap: 4px 16px; }
  .footer-nav a { padding: 10px 2px; }
}
@media (max-width: 480px) {
  .hero { padding-top: 36px; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 30px; }
  .hero-stats .stat { min-width: 0; }
  .hero-om.o1 { font-size: 150px; }
  .hero-om.o2 { font-size: 96px; }
  .hero-om.o3 { font-size: 50px; }
  .btn { min-height: 46px; padding: 9px 20px; font-size: .9rem; }
  .path-img { height: 150px; }
  .container { width: min(100% - 28px, 1180px); }
  .footer-copy { padding: calc(16px + env(safe-area-inset-bottom)) 16px; font-size: .8rem; }
  .visitor-counter { max-width: 100%; }
  .day-actions .btn-day { padding: 8px 14px; font-size: .82rem; }
  .subhashita-day .day-link { max-width: 94%; }
  .subhashita-day { padding: 24px 14px; }
  .subhashita-day .dev { font-size: clamp(17px, 4.6vw, 21px); line-height: 1.9; margin-top: 4px; }
  .hero-content h1 { font-size: clamp(30px, 8.5vw, 40px); }
  .brand-logo { height: 36px; }
  .brand-text strong { font-size: .97rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   DONATE PAGE
   ============================================================ */
.donate-page h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 8px; }
.donate-page .section-head .sa { color: var(--saffron); font-size: 1.15rem; }

.donation-shell {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 22px; align-items: start; max-width: 1000px; margin: 0 auto;
}
.donation-form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 20px; padding: clamp(20px, 3vw, 34px);
  box-shadow: 0 18px 46px rgba(27, 18, 6, .1);
}
.donation-form-head { margin-bottom: 18px; }
.donation-form-head h2 { margin: 6px 0 4px; }
.donation-form-head p { color: var(--muted); font-size: .95rem; }
.step-badge {
  display: inline-block; background: var(--maroon); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 12px;
}
.amount-options { border: 0; margin: 0 0 16px; padding: 0; }
.amount-options legend { font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.amount-options label {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px solid var(--line); border-radius: 14px; padding: 12px 6px; cursor: pointer;
  background: var(--paper); transition: border-color .2s, background .2s, transform .2s;
  min-height: 74px; text-align: center;
}
.amount-options label:hover { border-color: var(--saffron); transform: translateY(-1px); }
.amount-options label.is-selected { border-color: var(--maroon); background: var(--saffron-lighter); box-shadow: 0 6px 16px rgba(154, 52, 18, .14); }
.amount-options input { position: absolute; opacity: 0; pointer-events: none; }
.amount-options span { font-weight: 800; color: var(--maroon); font-size: 1.06rem; }
.amount-options small { color: var(--muted); font-size: .74rem; }
.field-label { display: block; font-weight: 600; margin: 12px 0 6px; color: var(--ink); }
.field-input {
  width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px;
  background: var(--paper); font: inherit; color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s; box-sizing: border-box;
}
.field-input:focus { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(232, 114, 27, .18); }
.field-input.has-value { border-color: var(--saffron); }
textarea.field-input { resize: vertical; min-height: 84px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.donate-submit { margin-top: 18px; }
.checkout-status { min-height: 22px; margin: 12px 0 0; font-size: .9rem; font-weight: 500; }
.checkout-status.is-success { color: #1b7a3d; }
.checkout-status.is-error { color: #c0392b; }
.checkout-status.is-warning { color: #a67c00; }
.checkout-status.is-pending { color: var(--maroon); }
.checkout-status:empty::before { content: "\00a0"; }

.donation-aside { display: grid; gap: 16px; }
.donation-summary, .donation-security {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 20px; padding: 22px; box-shadow: 0 14px 36px rgba(27, 18, 6, .08);
}
.donation-summary h3, .donation-security h3 { margin: 0 0 12px; font-size: 1.05rem; }
.donation-summary dl { margin: 0; display: grid; gap: 10px; }
.donation-summary dl div { display: contents; }
.donation-summary dt { font-size: .82rem; color: var(--muted); }
.donation-summary dd { margin: 0; font-weight: 700; }
.donation-summary dd a { color: var(--maroon); }
.small-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.donation-security ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.donation-security li { font-size: .9rem; }
.donation-security strong { display: block; color: var(--ink); margin-bottom: 2px; }
.donation-security span { color: var(--muted); font-size: .85rem; }

.nav-link-gold {
  background: linear-gradient(135deg, #d4a017, #b8860b); color: #fff !important;
  padding: 8px 16px; border-radius: 999px; font-weight: 700; margin-left: 6px;
}
.nav-link-gold:hover { filter: brightness(1.08); }

@media (max-width: 860px) {
  .donation-shell { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .amount-options label { min-height: 68px; padding: 10px 4px; }
  .field-input { min-height: 50px; }
}
@media (max-width: 400px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .donation-shell { gap: 14px; }
  .donation-form, .donation-summary, .donation-security { border-radius: 16px; }
}

/* ============================================================
   QR ALTERNATIVE PAYMENT (donate page)
   ============================================================ */
.qr-option { max-width: 460px; margin: 26px auto 0; }
.qr-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(20px, 3vw, 28px); text-align: center;
  box-shadow: 0 14px 36px rgba(27, 18, 6, .08);
}
.qr-card h3 { margin: 0 0 8px; }
.qr-card p { color: var(--muted); font-size: .92rem; }
.qr-card p strong { color: var(--ink); }
.qr-card img {
  max-width: 240px; width: 100%; margin: 14px auto; border-radius: 14px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.qr-card .small-note { text-align: center; margin: 4px 0 0; }

/* ============================================================
   DONATE FAB + POPUP
   ============================================================ */
.fab-donate {
  position: fixed; left: 18px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 460;
  display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 20px;
  border-radius: 999px; border: 2px solid rgba(255, 255, 255, .6);
  background: var(--grad-saffron); color: #fff; font-weight: 800; font-size: .95rem; cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
  transition: transform .2s, box-shadow .2s;
}
.fab-donate:hover { transform: scale(1.05); box-shadow: 0 14px 32px rgba(0, 0, 0, .38); }
.fab-donate .fab-icon {
  width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .22);
  display: grid; place-items: center; font-size: .95rem; line-height: 1; font-weight: 900;
}

.donate-overlay {
  position: fixed; inset: 0; z-index: 900; display: grid; place-items: center;
  background: rgba(20, 10, 2, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; padding: 20px;
  overflow-y: auto; overscroll-behavior: contain;
}
.donate-overlay.show { opacity: 1; visibility: visible; }
.donate-dialog {
  background: #fffaf3; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .4); width: min(560px, 100%); position: relative;
  margin: auto;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px); overflow-y: auto;
  padding: clamp(20px, 4vw, 30px); transform: translateY(14px); transition: transform .28s ease;
}
.donate-overlay.show .donate-dialog { transform: translateY(0); }
.donate-dialog .dialog-title { font-size: 1.3rem; font-weight: 800; color: var(--maroon); margin: 0 36px 4px 0; line-height: 1.35; }
.donate-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1.3rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center; padding: 0;
}
.donate-close:hover { background: var(--saffron-lighter); }
.donate-methods { display: grid; gap: 14px; margin-top: 16px; }
.donate-method { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; padding: 18px; }
.donate-method h4 { margin: 0 0 4px; font-size: 1rem; color: var(--ink); }
.donate-method p { margin: 0 0 12px; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.amount-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.amount-pill {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 8px 16px; font-weight: 700; font-size: .9rem; color: var(--ink); cursor: pointer; transition: all .18s;
}
.amount-pill:hover { border-color: var(--saffron); }
.amount-pill.is-on { background: var(--saffron); border-color: var(--saffron); color: #fff; box-shadow: 0 4px 12px rgba(232, 114, 27, .35); }
.btn-don-prim {
  width: 100%; border: 0; border-radius: 12px; padding: 13px 18px; cursor: pointer; font-weight: 800; font-size: 1rem;
  background: var(--grad-saffron); color: #fff; box-shadow: 0 8px 20px rgba(232, 114, 27, .35);
  transition: transform .18s, box-shadow .18s;
}
.btn-don-prim:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(232, 114, 27, .45); }
.donate-method-qr { max-width: 200px; width: 100%; margin: 4px auto 0; border-radius: 14px; border: 1px solid var(--line); display: block; }
.donate-note { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 14px; }
@media (max-width: 640px) {
  .fab-donate { left: 14px; height: 46px; padding: 0 16px; font-size: .9rem; }
  .donate-dialog { padding: 18px; }
}

/* ============================================================
   VISITOR COUNTER (footer)
   ============================================================ */
#collection[hidden] { display: none !important; }
.visitor-counter {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px; padding: 8px 16px; border-radius: 999px;
  background: rgba(232, 114, 27, .08); border: 1px dashed rgba(232, 114, 27, .35);
  color: var(--muted); font-size: .84rem; font-weight: 600;
}
.visitor-counter .v-icon { color: var(--saffron); font-weight: 900; }
#visitorCount { color: var(--maroon); font-weight: 800; font-variant-numeric: tabular-nums; min-width: 2.6em; }

/* ============================================================
   STATIC PAGES (about / contact / terms)
   ============================================================ */
.page-hero {
  position: relative; padding: clamp(40px, 7vw, 72px) 0 clamp(28px, 5vw, 48px);
  background:
    radial-gradient(900px 380px at 20% 0%, rgba(232, 114, 27, .10), transparent 60%),
    linear-gradient(180deg, var(--saffron-lighter), var(--paper));
  text-align: center; overflow: hidden;
}
.page-hero .kicker { color: var(--saffron); font-weight: 800; letter-spacing: .14em; font-size: .82rem; text-transform: uppercase; }
.page-hero h1 { margin: 8px 0 0; font-family: var(--font-head); font-size: clamp(28px, 6vw, 40px); color: var(--maroon); }
.page-hero p { color: var(--muted); max-width: 640px; margin: 12px auto 0; font-size: .98rem; line-height: 1.75; }
.page-body { padding: clamp(28px, 5vw, 52px) 0; }
.page-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: clamp(20px, 3vw, 30px); margin-bottom: 18px;
}
.page-card:last-child { margin-bottom: 0; }
.page-card h2 { color: var(--maroon); font-family: var(--font-head); font-size: 1.25rem; margin: 0 0 12px; }
.page-card h2 .num { color: var(--saffron); margin-right: 6px; }
.page-card p { color: var(--ink-soft); font-size: .96rem; line-height: 1.75; }
.page-card ul, .page-card ol { padding-left: 22px; }
.page-card li { color: var(--ink-soft); font-size: .95rem; line-height: 1.8; margin: 4px 0; }
.terms-date { display: inline-block; background: var(--saffron-lighter); color: var(--saffron); padding: 4px 14px; border-radius: 999px; font-size: .78rem; font-weight: 800; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-grid { display: grid; gap: 14px; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-size: .86rem; font-weight: 700; color: var(--ink); }
.form-row label .req { color: var(--saffron); }
.form-control {
  width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 12px 14px; font-size: .95rem; font-family: var(--font-bn); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(232, 114, 27, .18); }
textarea.form-control { min-height: 130px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.form-status { display: none; border-radius: 12px; padding: 12px 16px; font-size: .9rem; font-weight: 600; }
.form-status.is-show { display: block; }
.form-status.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-status.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.btn.btn-primary {
  width: 100%; justify-content: center; margin-top: 4px;
  background: var(--grad-saffron); border-color: transparent; color: #fff;
}
.btn.btn-primary:hover { background: var(--grad-saffron); box-shadow: 0 10px 24px rgba(232, 114, 27, .45); }
.btn.btn-primary:disabled { opacity: .65; cursor: not-allowed; transform: none; box-shadow: none; }
.contact-guide { display: grid; gap: 12px; }
.contact-guide-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.contact-guide-item .cg-ic { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: var(--saffron-lighter); color: var(--saffron); display: grid; place-items: center; font-weight: 900; }
.contact-guide-item b { color: var(--ink); display: block; }
.contact-guide-item a { color: var(--maroon); font-weight: 700; overflow-wrap: anywhere; }

/* ============================================================
   FOOTER SAFETY (narrow screens)
   ============================================================ */
.footer-main > div { min-width: 0; }
.footer-nav a, .footer-desc { overflow-wrap: anywhere; }

@media (max-width: 480px) {
  .visitor-counter { font-size: .78rem; padding: 6px 12px; }
  .page-card { padding: 18px; }
}

/* ============================================================
   ARTICLES (hub + article pages)
   ============================================================ */
.article-block { margin-bottom: 26px; }
.article-cat {
  font-family: var(--font-head); font-size: 1.2rem; color: var(--maroon);
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
}
.article-cat::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--saffron), transparent); }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.article-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 20px; display: flex; flex-direction: column; gap: 8px;
  transition: transform .25s, box-shadow .25s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-card h3 { margin: 0; font-size: 1.02rem; line-height: 1.45; }
.article-card h3 a { color: var(--maroon); }
.article-card h3 a:hover { color: var(--saffron); text-decoration: underline; }
.article-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.article-chip {
  align-self: flex-start; padding: 3px 12px; border-radius: 999px;
  background: var(--saffron-lighter); color: var(--saffron);
  font-size: .7rem; font-weight: 800; letter-spacing: .04em;
}

.article-hero { padding-bottom: 16px; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0 0; padding: 0; font-size: .8rem; color: var(--muted); }
.crumbs a { color: var(--saffron); font-weight: 600; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #cbb59a; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.article-meta span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .76rem; color: var(--muted); font-weight: 600; }
.article-body .page-card h2 { border-bottom: 1px dashed var(--line); padding-bottom: 8px; margin-bottom: 14px; }
.article-body .page-card h3 { color: var(--ink); margin: 18px 0 8px; font-size: 1.05rem; }
.shruti {
  margin: 18px 0; padding: 14px 18px; border-left: 4px solid var(--saffron);
  background: var(--saffron-lighter); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-sa); color: var(--maroon); line-height: 1.9; font-size: 1rem;
}
.shruti .bn { display: block; margin-top: 6px; font-family: var(--font-bn); color: var(--ink-soft); font-size: .9rem; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.article-nav a {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 14px 16px; font-size: .9rem; color: var(--ink); font-weight: 700;
  text-align: center; transition: border-color .2s, color .2s;
}
.article-nav a:hover { border-color: var(--saffron); color: var(--saffron); }
.article-nav .next { text-align: right; }
@media (max-width: 560px) { .article-nav { grid-template-columns: 1fr; } }

/* Curator card */
.curator-body {
  display: grid; grid-template-columns: 148px 1fr; gap: 22px; align-items: start;
  padding-top: 6px;
}
.curator-avatar {
  width: 148px; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand); color: #fff; font-size: 1.25rem; line-height: 1.6;
  border-radius: 50%; box-shadow: var(--shadow-sm); text-align: center; padding: 10px;
}
.curator-main h3 { margin: 0 0 4px; font-family: var(--font-head); color: var(--maroon); font-size: 1.25rem; }
.curator-deg { margin: 0 0 10px; color: var(--saffron); font-weight: 800; font-size: .95rem; letter-spacing: .02em; }
.curator-card p { line-height: 1.7; }
.curator-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.curator-list li {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fdf6ee; border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px;
  font-size: .92rem;
}
.curator-list .cl-ic { color: var(--saffron); font-style: normal; min-width: 1.1em; }
.curator-list li a { color: var(--saffron); font-weight: 700; word-break: break-word; }
.curator-list li b { min-width: 3.4em; }
@media (max-width: 560px) {
  .curator-body { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .curator-list { text-align: left; justify-items: stretch; }
}