/* ═══════════════════════════════════════════════════════════
   VSK NAGPUR — PUBLIC SITE THEME (editorial / news portal)
   Loaded after style.css on public pages only (pub-header.ejs),
   so the CMS panels keep their own look.
═══════════════════════════════════════════════════════════ */

:root {
  --primary: #f76707;          /* saffron */
  --primary-dark: #d9480f;
  --primary-light: #fff4e6;
  --rose: #e8356d;
  --gold: #fcc419;
  --secondary: #a61e4d;
  --accent: #fcc419;
  --navy: #0b1437;
  --navy-2: #16205a;
  --dark: #0b1437;
  --dark2: #141a45;
  --dark3: #2b3270;
  --text: #1e2340;
  --muted: #676c8a;
  --bg: #ffffff;
  --band: #f6f3ee;
  --border: #e6e1d9;
  --rule: #0b1437;
  --grad: linear-gradient(90deg, #ff922b 0%, #f76707 45%, #e8356d 100%);
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(11,20,55,0.06), 0 6px 18px rgba(11,20,55,0.05);
  --shadow-hover: 0 14px 34px rgba(11,20,55,0.14);
  --transition: all 0.22s cubic-bezier(.4,0,.2,1);
  --font-head: 'Noto Serif Devanagari', Georgia, serif;
}

body {
  font-family: 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--primary); color: white; }
.container { max-width: 1260px; padding: 0 24px; }

/* ── TOP BAR ── */
.top-bar { background: var(--navy); color: #b8bdd9; padding: 7px 0; font-size: 0.76rem; }
.tb-left { display: flex; align-items: center; gap: 14px; }
.edition { padding-left: 14px; border-left: 1px solid rgba(255,255,255,0.18); color: var(--gold); font-weight: 600; }
.top-social { align-items: center; gap: 14px; }
.top-social a { color: #b8bdd9; }
.top-social a:hover { color: var(--gold); }

/* ── MASTHEAD ── */
.site-header { position: static; box-shadow: none; padding: 22px 0 20px; background: white; border-bottom: 1px solid var(--border); }
.brand-logo { gap: 16px; }
.brand-icon { width: 72px; height: 72px; padding: 3px; background: var(--grad); box-shadow: 0 6px 18px rgba(247,103,7,0.3); }
.brand-icon img { border: 2px solid white; }
.brand-text-wrap .brand-title {
  /* Solid colour: gradient-clipped text breaks Devanagari matra shaping in Chrome */
  font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; color: var(--navy); line-height: 1.1; letter-spacing: -0.3px;
}
.brand-text-wrap .brand-sub { font-size: 0.78rem; color: var(--primary-dark); font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; margin-top: 4px; }
.brand-tag { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.search-form { border: 1.5px solid var(--border); border-radius: 999px; background: var(--band); }
.search-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(247,103,7,0.14); background: white; }
.search-input { background: transparent; padding: 10px 18px; min-width: 260px; font-family: inherit; }
.search-btn { background: var(--navy); color: white; margin: 3px; border-radius: 999px; padding: 8px 14px; }
.search-btn:hover { background: var(--primary); }

/* ── NAV: navy bar, saffron rule, saffron active block ── */
.main-nav {
  position: sticky; top: 0; z-index: 250;
  background: var(--navy); border-top: 3px solid var(--primary);
  transition: box-shadow 0.25s ease;
}
.main-nav::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--grad); opacity: 0; transition: opacity 0.25s ease; }
.main-nav.scrolled { box-shadow: 0 10px 28px rgba(11,20,55,0.28); }
.main-nav.scrolled::after { opacity: 1; }
.nav-list { gap: 0; }
.nav-list > li > a {
  display: flex; align-items: center; gap: 5px; position: relative;
  color: #e3e6f5; padding: 15px 16px; font-size: 0.88rem; font-weight: 600; text-transform: none; letter-spacing: 0.1px;
}
.nav-list > li > a:hover { background: rgba(255,255,255,0.07); color: white; }
.nav-list > li > a.active { background: var(--primary); color: white; }
.chev { width: 12px; height: 12px; opacity: 0.8; transition: transform 0.2s ease; }
.has-dd:hover .chev { transform: rotate(180deg); }

.dd-menu {
  display: block; visibility: hidden; opacity: 0; transform: translateY(6px);
  min-width: 250px; padding: 6px 0; border-radius: 0 0 var(--radius) var(--radius); background: white;
  border-top: 3px solid var(--primary); box-shadow: 0 22px 50px rgba(11,20,55,0.22);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.has-dd:hover .dd-menu, .has-dd:focus-within .dd-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.dd-menu a { border: none; padding: 10px 18px; font-size: 0.87rem; font-weight: 500; color: var(--text); border-left: 3px solid transparent; }
.dd-menu a:hover { background: var(--primary-light); color: var(--primary-dark); border-left-color: var(--primary); }
.hamburger span { background: white; }

/* ── TICKER: continuous marquee ── */
.ticker-wrap { background: white; border-bottom: 1px solid var(--border); }
.ticker-inner { gap: 0; padding: 0 24px; }
.ticker-label {
  display: inline-flex; align-items: center; gap: 8px; align-self: stretch;
  background: var(--rose); padding: 10px 16px; font-size: 0.72rem; letter-spacing: 1.2px; border-radius: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-right: 24px;
}
.ticker-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: white; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.ticker-text { color: var(--navy); font-weight: 600; font-size: 0.84rem; padding: 10px 0 10px 100%; animation: marquee 40s linear -5s infinite; }
.ticker-wrap:hover .ticker-text { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ── SHARED EDITORIAL PIECES ── */
.page-body { padding: 32px 0 0; }
.page-body:not(.home) { padding-bottom: 64px; }
.two-col { grid-template-columns: minmax(0,1fr) 320px; gap: 40px; margin-bottom: 56px; }

.kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--primary-dark); }
.kicker::before { content: ''; width: 8px; height: 8px; background: currentColor; }
.k-news { color: #2f4fd1; } .k-views { color: var(--primary-dark); } .k-personality { color: #0c8a5c; } .k-interview { color: #8b3fd9; }

.byline-row { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.75rem; color: var(--muted); }
.byline-row .by { color: var(--navy); font-weight: 600; }
.byline-row .by::before { content: 'By '; color: var(--muted); font-weight: 400; }

.block-label {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--navy);
  border-top: 4px solid var(--navy); padding-top: 10px; margin-bottom: 14px;
}
.block-label span { font-family: 'Inter', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary-dark); margin-left: 6px; }

.section-head { display: flex; align-items: center; gap: 16px; border: none; padding: 0; margin-bottom: 22px; }
.section-head::after { display: none; }
.section-title {
  display: flex; align-items: baseline; gap: 10px; flex: 1;
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--navy);
  text-transform: none; letter-spacing: -0.2px; border: none; padding: 0;
}
.section-title::after { content: ''; flex: 1; height: 2px; background: var(--navy); align-self: center; min-width: 40px; }
.section-title small { font-family: 'Inter', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary-dark); }
.view-all { border: none; padding: 0; font-size: 0.8rem; font-weight: 700; color: var(--primary-dark); white-space: nowrap; }
.view-all:hover { background: none; color: var(--navy); }

/* Media frames: an article with no photo gets a confident branded cover
   (saffron field + ray texture + emblem) so empty frames look designed,
   never like a broken/blank box. A real image covers the frame on top;
   if it fails to load it removes itself and the branded cover remains. */
.media {
  position: relative; overflow: hidden; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #ff9a3c 0%, #f76707 48%, #d94e00 100%);
}
/* soft light burst + fine ray texture = a filled, textured field, not a void */
.media::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    repeating-conic-gradient(from 0deg at 50% 44%, rgba(255,255,255,0.055) 0deg 7deg, transparent 7deg 14deg),
    radial-gradient(circle at 50% 44%, rgba(255,241,219,0.42), rgba(255,241,219,0) 58%);
}
/* emblem + its double ring, centred a touch high so a caption area reads below */
.media::after {
  content: ''; position: absolute; left: 50%; top: 44%; width: 32%; max-width: 84px; aspect-ratio: 1; transform: translate(-50%,-50%);
  border-radius: 50%; background: white url('/vsk-logo.jpg') center/cover no-repeat; z-index: 1;
  box-shadow: 0 0 0 5px rgba(255,255,255,0.4), 0 0 0 6px rgba(255,255,255,0.25), 0 12px 26px rgba(120,42,0,0.32);
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: 2; transition: transform 0.5s ease; }
a:hover .media img { transform: scale(1.05); }
/* Category-tinted empty covers, matching the kicker colour system, so a grid
   of image-less cards reads as a designed set rather than one repeated box. */
.media.m-news      { background: linear-gradient(135deg, #4661d6 0%, #2f4fd1 48%, #1a339e 100%); }
.media.m-views     { background: linear-gradient(135deg, #ff9a3c 0%, #f76707 48%, #d94e00 100%); }
.media.m-personality { background: linear-gradient(135deg, #1ac796 0%, #0c8a5c 48%, #086b47 100%); }
.media.m-interview { background: linear-gradient(135deg, #9f7bfb 0%, #7048e8 48%, #5a37c0 100%); }
.r-16x9 { aspect-ratio: 16 / 9; }
.r-3x2 { aspect-ratio: 3 / 2; }
.r-1x1 { aspect-ratio: 1; }

/* ── TOP STORIES ── */
.top-stories {
  display: grid; grid-template-columns: minmax(0,1.75fr) minmax(0,1fr) minmax(0,0.95fr); gap: 32px;
  padding-bottom: 36px; margin-bottom: 40px; border-bottom: 1px solid var(--border);
}
.ts-lead .media { margin-bottom: 16px; }
.ts-lead-title { font-family: var(--font-head); font-size: 2.1rem; line-height: 1.28; color: var(--navy); margin: 10px 0 12px; letter-spacing: -0.3px; }
.ts-lead a:hover .ts-lead-title { color: var(--primary-dark); }
.ts-lead-excerpt { font-size: 1rem; line-height: 1.65; color: #444a68; margin-bottom: 12px; }

.ts-list { border-left: 1px solid var(--border); border-right: 1px solid var(--border); padding: 0 28px; }
.ts-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.ts-item:first-of-type { padding-top: 0; }
.ts-item:last-child { border-bottom: none; }
.ts-item.has-img .media { margin-bottom: 12px; }
.ts-item h3 { font-family: var(--font-head); font-size: 1.02rem; line-height: 1.45; color: var(--navy); margin: 6px 0; }
.ts-item a:hover h3 { color: var(--primary-dark); }
.ts-item time, .list-item time { font-size: 0.73rem; color: var(--muted); }

.most-read ol { list-style: none; }
.most-read li { border-bottom: 1px solid var(--border); }
.most-read li:last-child { border-bottom: none; }
.most-read li a { display: flex; gap: 14px; padding: 14px 0; align-items: flex-start; }
.mr-num {
  font-family: Georgia, serif; font-size: 2.6rem; line-height: 0.9; font-weight: 700; min-width: 34px;
  color: transparent; -webkit-text-stroke: 1.5px var(--primary);
}
.most-read li:first-child .mr-num { color: var(--primary); }
.mr-body { display: flex; flex-direction: column; gap: 4px; }
.mr-title { font-family: var(--font-head); font-size: 0.95rem; font-weight: 600; line-height: 1.45; color: var(--navy); }
.most-read a:hover .mr-title { color: var(--primary-dark); }
.mr-meta { font-size: 0.72rem; color: var(--muted); }

/* ── NEWS GRID / CARDS (also restyles .art-card on category & search) ── */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px 24px; margin-bottom: 48px; }
.news-card a { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.news-card .media { margin-bottom: 6px; }
.news-card .card-title, .art-card .card-title { font-family: var(--font-head); font-size: 1.08rem; line-height: 1.45; color: var(--navy); margin: 0; }
.news-card a:hover .card-title, .art-card:hover .card-title { color: var(--primary-dark); }
.news-card .card-excerpt { font-size: 0.85rem; line-height: 1.6; color: var(--muted); margin: 0; flex: 1; }

.article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.art-card { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.art-card:hover { transform: none; box-shadow: none; }
.card-img, .card-img-empty { height: auto; aspect-ratio: 3 / 2; border-radius: var(--radius-sm); overflow: hidden; }
.art-card:hover .card-img img { transform: scale(1.05); }
.card-img-empty { position: relative; font-size: 0; background: linear-gradient(135deg, #fff4e6, #ffe6ee); }
.card-img-empty::after { content: ''; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%,-50%); border-radius: 50%; background: white url('/vsk-logo.jpg') center/cover no-repeat; box-shadow: 0 0 0 4px rgba(255,255,255,0.7); }
.art-card .card-body { padding: 12px 0 0; }
.card-meta-row { font-size: 0.74rem; gap: 12px; }
.cat-tag { background: none !important; padding: 0; border-radius: 0; font-size: 0.7rem; letter-spacing: 1px; color: var(--primary-dark); }
.cat-tag::before { content: ''; display: inline-block; width: 8px; height: 8px; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.cat-news { color: #2f4fd1 !important; } .cat-views { color: var(--primary-dark) !important; }
.cat-personality { color: #0c8a5c !important; } .cat-interview { color: #8b3fd9 !important; }
.hero-info .cat-tag { color: white !important; }

/* ── PERSONALITY / INTERVIEW LISTS ── */
.home-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.list-item a { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.list-item .media::after { width: 40px; }
.list-item h3 { font-family: var(--font-head); font-size: 0.95rem; line-height: 1.45; color: var(--navy); margin-bottom: 4px; }
.list-item a:hover h3 { color: var(--primary-dark); }

/* ── OPINION BAND ── */
.opinion-band {
  position: relative; padding: 56px 0 60px; color: white;
  background: radial-gradient(700px 320px at 95% 0%, rgba(247,103,7,0.35), transparent 60%),
              radial-gradient(600px 300px at 0% 100%, rgba(232,53,109,0.25), transparent 60%),
              var(--navy);
}
.opinion-band .section-title, .opinion-band .section-title::after { color: white; }
.opinion-band .section-title::after { background: rgba(255,255,255,0.35); }
.opinion-band .section-title small, .opinion-band .view-all { color: var(--gold); }
.opinion-band .view-all:hover { color: white; }
.opinion-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.op-card a {
  display: flex; flex-direction: column; height: 100%; padding: 22px 20px 20px; border-radius: var(--radius);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); transition: var(--transition);
}
.op-card a:hover { background: rgba(255,255,255,0.1); border-color: var(--primary); transform: translateY(-4px); }
.op-quote { font-family: Georgia, serif; font-size: 3.6rem; line-height: 0.6; color: var(--primary); height: 26px; }
.op-card h3 { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.5; margin: 6px 0 10px; }
.op-card p { font-size: 0.84rem; line-height: 1.6; color: #b8bdd9; flex: 1; margin-bottom: 18px; }
.op-author { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.12); }
.op-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.op-author strong { display: block; font-size: 0.82rem; }
.op-author time { font-size: 0.72rem; color: #9097bf; }

/* ── EXPLORE TILES ── */
.explore { background: var(--band); padding: 52px 0 60px; }
.explore-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 16px; }
.ex-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 26px 12px 22px; background: white; border-radius: var(--radius); border: 1px solid var(--border);
  border-bottom: 3px solid var(--border); transition: var(--transition);
}
.ex-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-bottom-color: var(--primary); }
.ex-icon { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary-dark); margin-bottom: 10px; transition: var(--transition); }
.ex-icon svg { width: 24px; height: 24px; }
.ex-tile:hover .ex-icon { background: var(--grad); color: white; }
.ex-tile strong { font-family: var(--font-head); font-size: 1rem; color: var(--navy); }
.ex-tile > span:last-child { font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ── SIDEBAR ── */
.sidebar { gap: 30px; position: sticky; top: 80px; }
.sw { border: none; box-shadow: none; border-radius: 0; background: transparent; overflow: visible; }
.sw-title {
  background: none; color: var(--navy); padding: 10px 0 0; border-top: 4px solid var(--navy);
  font-family: var(--font-head); font-size: 1.05rem; text-transform: none; letter-spacing: 0;
}
.sw-body { padding: 12px 0 0; }
.recent-thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); }
.recent-text a { font-family: var(--font-head); font-size: 0.88rem; line-height: 1.45; color: var(--navy); }
.cat-list a { padding: 10px 0; font-weight: 500; }
.cat-list a:hover { color: var(--primary-dark); padding-left: 6px; }
.tg { background: white; border: 1px solid var(--border); border-radius: 4px; padding: 5px 11px; font-weight: 500; }
.tg:hover { background: var(--navy); border-color: var(--navy); }
.sidebar-search input { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font-family: inherit; }
.sidebar-search input:focus { box-shadow: 0 0 0 4px rgba(247,103,7,0.14); }
.sidebar-search button { background: var(--navy); border-radius: var(--radius-sm); padding: 11px; }
.sidebar-search button:hover { background: var(--primary); }

/* ── ARTICLE ── */
.article-wrap { border: none; box-shadow: none; padding: 0; background: transparent; border-radius: 0; }
.art-title { font-family: var(--font-head); font-size: 2.4rem; line-height: 1.28; letter-spacing: -0.4px; color: var(--navy); margin-top: 12px; }
.art-meta-bar { border-top: 2px solid var(--navy); border-bottom: 1px solid var(--border); padding: 14px 0; }
.share-btn { border-radius: 4px; padding: 6px 14px; transition: var(--transition); }
.share-btn:hover { transform: translateY(-2px); }
.sh-tw { background: var(--navy); }
.art-feat-img { border-radius: var(--radius); }
.art-body { font-size: 1.08rem; line-height: 1.95; color: #262b48; }
.art-body > p:first-child::first-letter {
  float: left; font-family: var(--font-head); font-size: 3.4rem; line-height: 0.9; font-weight: 700;
  color: var(--primary); margin: 6px 10px 0 0;
}
.art-body h2, .art-body h3 { font-family: var(--font-head); font-size: 1.35rem; color: var(--navy); }
.art-body a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.art-body blockquote { border-left: 4px solid var(--primary); background: var(--primary-light); padding: 16px 22px; margin: 22px 0; font-family: var(--font-head); font-size: 1.12rem; }
.breadcrumb { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.8px; }
.breadcrumb a { color: var(--primary-dark); font-weight: 600; }

/* ── PAGE BANNER ── */
.page-banner {
  position: relative; overflow: hidden; margin-bottom: 0; padding: 26px 0 24px;
  background: radial-gradient(600px 300px at 92% 0%, rgba(247,103,7,0.45), transparent 60%),
              radial-gradient(500px 260px at 55% 130%, rgba(232,53,109,0.35), transparent 60%),
              var(--navy);
}
.page-banner::after { content: ''; position: absolute; inset: 0; opacity: 0.08; background-image: radial-gradient(white 1px, transparent 1px); background-size: 20px 20px; }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; letter-spacing: -0.3px; }
.page-banner h1::before { content: ''; display: block; width: 48px; height: 4px; margin-bottom: 12px; background: var(--grad); }
.page-banner p { font-size: 0.95rem; opacity: 0.85; margin-top: 6px; }
.page-banner + .page-body { padding-top: 32px; }

/* ── FOOTER ── */
.site-footer { position: relative; color: #d0d4ee; padding: 64px 0 0; margin-top: 0; background: var(--navy); }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.footer-grid { gap: 40px; margin-bottom: 48px; }
.footer-brand-title { font-family: var(--font-head); font-size: 1.4rem; }
.footer-brand-desc { color: #a3a9cc; }
.footer-social a { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.footer-social a:hover { background: var(--primary); border-color: var(--primary); }
.footer-h { border-bottom: none; padding: 10px 0 0; border-top: 3px solid var(--primary); margin-bottom: 14px; font-size: 0.78rem; letter-spacing: 1.8px; color: white; display: inline-block; }
.footer-links a { color: #a3a9cc; }
.footer-links a:hover { color: var(--gold); }
.footer-bar { background: rgba(0,0,0,0.25); border-top: 1px solid rgba(255,255,255,0.07); padding: 16px 0; }
.footer-bar p { color: #7d83a8; }

/* ── BUTTONS / FORMS ── */
.btn { border-radius: var(--radius-sm); }
.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 18px rgba(247,103,7,0.3); }
.form-control { border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: white; }
.form-control:focus { box-shadow: 0 0 0 4px rgba(247,103,7,0.14); }

/* ── SCROLL REVEAL — class only added by JS, so content shows without it ── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-text { animation-duration: 120s; }
  .ticker-label::before { animation: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1180px) {
  .top-stories { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); }
  .most-read { grid-column: 1 / -1; }
  .most-read ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); column-gap: 24px; }
  .most-read li:last-child { border-bottom: 1px solid var(--border); }
  .ts-list { border-right: none; padding-right: 0; }
  .opinion-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .explore-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .nav-list > li > a { padding: 15px 11px; font-size: 0.84rem; }
}
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-list {
    display: none; flex-direction: column; gap: 0; width: 100%;
    position: absolute; top: 100%; left: 0; padding: 8px 16px 16px;
    background: white; border-top: 3px solid var(--primary); box-shadow: 0 20px 40px rgba(11,20,55,0.2);
    max-height: calc(100vh - 60px); overflow-y: auto;
  }
  .nav-list.open { display: flex; }
  .nav-list > li > a { color: var(--navy); padding: 12px 8px; border-bottom: 1px solid var(--border); }
  .nav-list > li > a:hover { background: transparent; color: var(--primary-dark); }
  .nav-list > li > a.active { background: transparent; color: var(--primary-dark); box-shadow: inset 3px 0 0 var(--primary); padding-left: 14px; }
  .chev { display: none; }
  .nav-list .dd-menu { position: static; visibility: visible; opacity: 1; transform: none; border: none; box-shadow: none; padding: 4px 0 8px 12px; min-width: 0; background: transparent; }
  .nav-list .dd-menu a { color: var(--muted); padding-left: 12px; border-left: none; }
  .news-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 768px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .search-form-wrap, .search-form { width: 100%; }
  .search-input { min-width: 0; flex: 1; }
  .edition { display: none; }
  .top-stories { grid-template-columns: 1fr; gap: 24px; }
  .ts-list { border: none; padding: 0; }
  .ts-lead-title { font-size: 1.55rem; }
  .home-duo { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .art-title { font-size: 1.65rem; }
  .page-banner { padding: 38px 0 34px; }
  .page-banner h1 { font-size: 1.7rem; }
  .brand-text-wrap .brand-title { font-size: 1.6rem; }
  .brand-icon { width: 60px; height: 60px; }
}
@media (max-width: 680px) {
  /* Article grids drop from 3 → 2 columns before stacking, so cards never
     stretch oddly on tablets/large phones. */
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .ticker-inner { padding: 0 16px; }
  .top-bar #liveDate { display: none; }
  .top-bar-inner { justify-content: flex-end; }
  .brand-icon { width: 52px; height: 52px; }
  .brand-text-wrap .brand-title { font-size: 1.3rem; }
  .brand-tag { display: none; }
  .news-grid, .opinion-grid, .article-grid { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.25rem; }
}
.page-body:not(.home) .two-col { margin-bottom: 0; }

/* ── IMAGES: framing & alignment ── */
/* Keep faces in frame when portrait photos are cropped into landscape slots */
.media img, .card-img img, .recent-thumb, .side-thumb { object-position: center 30%; }

/* Featured image: show the whole photo, letterboxed on a blurred copy of itself */
.art-feat-img { position: relative; overflow: hidden; background: var(--navy); margin-bottom: 26px; }
.art-feat-img::before {
  content: ''; position: absolute; inset: -20px; background: var(--feat) center/cover no-repeat;
  filter: blur(24px) brightness(0.75); transform: scale(1.1);
}
.art-feat-img img { position: relative; display: block; width: auto; max-width: 100%; max-height: 540px; margin: 0 auto; object-fit: contain; }

/* Images inside article text (incl. WordPress block markup) */
.art-body::after { content: ''; display: table; clear: both; }
.art-body img { max-width: 100%; height: auto; display: block; margin: 26px auto; border-radius: var(--radius-sm); }
.art-body figure { margin: 26px auto; max-width: 100%; text-align: center; }
.art-body figure img { margin: 0 auto; }
.art-body figcaption, .art-body .wp-element-caption, .art-body .wp-caption-text {
  font-size: 0.82rem; line-height: 1.5; color: var(--muted); margin-top: 10px; text-align: center;
}
.art-body .alignleft { float: left; margin: 6px 26px 14px 0; max-width: 48%; }
.art-body .alignright { float: right; margin: 6px 0 14px 26px; max-width: 48%; }
.art-body .aligncenter { margin-left: auto; margin-right: auto; }
.art-body .wp-block-gallery, .art-body .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 26px 0; }
.art-body .wp-block-gallery figure, .art-body .gallery figure { margin: 0; }
.art-body .wp-block-gallery img, .art-body .gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; }
.art-body iframe, .art-body video { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-sm); margin: 26px 0; }
@media (max-width: 560px) {
  .art-body .alignleft, .art-body .alignright { float: none; max-width: 100%; margin: 22px auto; }
}

/* Card thumbnails fill their frame (cover) — no letterbox bands. The whole
   uncropped picture is still shown on the article page via .art-feat-img. */
.recent-media img { object-fit: cover; object-position: center 30%; }

/* Cards: equal-height columns, meta line pinned to the bottom on one row */
.art-card > a { display: flex; flex-direction: column; height: 100%; }
.art-card .media { margin-bottom: 4px; }
.art-card .card-body { display: flex; flex-direction: column; flex: 1; }
.art-card .card-excerpt { flex: 1; }
.card-meta-row, .news-card .byline-row {
  flex-wrap: nowrap; white-space: nowrap; overflow: hidden; margin-top: auto;
  padding-top: 10px; border-top: 1px solid var(--border);
}
.card-meta-row span, .byline-row span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card-meta-row span:first-child, .card-meta-row span:last-child, .byline-row span:last-child { flex-shrink: 0; }

/* Sidebar recent list */
.recent-item { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 12px; align-items: center; }
.recent-media::after { width: 34px; }
.recent-title { display: block; font-family: var(--font-head); font-size: 0.88rem; line-height: 1.45; color: var(--navy); margin-bottom: 3px; }
.recent-item:hover .recent-title { color: var(--primary-dark); }
.recent-text time { font-size: 0.72rem; color: var(--muted); }

/* Ticker headlines */
.ticker-text a { color: var(--navy); }
.ticker-text a:hover { color: var(--primary-dark); }
.ticker-text a + a::before { content: '•'; color: var(--primary); margin: 0 18px; }

/* ── CONTENT PAGES (About, sections, Contact) ── */
.content-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 40px; }
.prose h2 { font-family: var(--font-head); font-size: 1.6rem; color: var(--navy); margin-bottom: 16px; }
.prose h3 { font-family: var(--font-head); font-size: 1.2rem; color: var(--navy); margin: 26px 0 12px; }
.prose p { line-height: 1.9; margin-bottom: 14px; }
.prose li { position: relative; padding-left: 24px; margin-bottom: 10px; line-height: 1.7; }
.prose li::before { content: ''; position: absolute; left: 4px; top: 0.72em; width: 8px; height: 8px; background: var(--primary); }
.sub-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 24px; }
.sub-links a {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: white;
  border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; color: var(--navy); transition: var(--transition);
}
.sub-links a span { font-family: 'Inter', 'Noto Sans Devanagari', sans-serif; font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.sub-links a:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.empty-state-card { text-align: center; padding: 56px 32px; }
.empty-logo { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 18px; box-shadow: 0 0 0 5px var(--primary-light); }
.empty-state-card h2 { font-family: var(--font-head); color: var(--navy); font-size: 1.5rem; margin-bottom: 8px; }
.empty-state-card p { color: var(--muted); margin-bottom: 22px; }

.contact-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 32px; align-items: start; }
.card-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-family: var(--font-head); font-size: 1.4rem; color: var(--navy); margin-bottom: 22px; }
.card-heading small { font-family: 'Inter', 'Noto Sans Devanagari', sans-serif; font-size: 0.72rem; letter-spacing: 1px; color: var(--primary-dark); font-weight: 700; }
.contact-info { position: relative; overflow: hidden; background: var(--navy); color: white; border-radius: var(--radius); padding: 36px 32px; }
.contact-info::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.contact-info .card-heading { color: white; }
.contact-info .card-heading small { color: var(--gold); }
.ci-row { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.ci-row:last-child { border-bottom: none; padding-bottom: 0; }
.ci-label { font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; color: #9097bf; font-weight: 700; }
.ci-value { font-size: 0.95rem; color: #e3e6f5; }

@media (max-width: 768px) {
  .contact-grid, .sub-links { grid-template-columns: 1fr; }
  .content-card { padding: 26px 20px; }
}

/* ── BOOKS (Archives → Books) ── */
.books-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: inherit; font-size: 0.84rem; font-weight: 600; color: var(--navy); cursor: pointer;
  background: white; border: 1.5px solid var(--border); border-radius: 999px; padding: 7px 14px; transition: var(--transition);
}
.chip span { margin-left: 4px; font-size: 0.72rem; color: var(--muted); }
.chip:hover { border-color: var(--primary); }
.chip.active { background: var(--navy); border-color: var(--navy); color: white; }
.chip.active span { color: var(--gold); }
.books-search { font-family: inherit; font-size: 0.88rem; width: 320px; max-width: 100%; padding: 10px 16px; border: 1.5px solid var(--border); border-radius: 999px; outline: none; background: var(--band); }
.books-search:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(247,103,7,0.14); }

.books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 36px 24px; }
.book-card { display: flex; flex-direction: column; }
.book-card[hidden] { display: none; }
.book-cover {
  position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; padding: 0; border: 0; cursor: pointer; overflow: hidden;
  border-radius: 4px 10px 10px 4px; background: linear-gradient(135deg, #fff4e6, #ffe6ee);
  box-shadow: inset 6px 0 10px -6px rgba(0,0,0,0.35), 0 10px 24px rgba(11,20,55,0.16);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 10px; background: linear-gradient(90deg, rgba(0,0,0,0.25), rgba(255,255,255,0.15), transparent); }
.book-card:hover .book-cover { transform: translateY(-6px) rotate(-1deg); box-shadow: inset 6px 0 10px -6px rgba(0,0,0,0.35), 0 22px 40px rgba(11,20,55,0.25); }
.book-badge { position: absolute; top: 10px; right: 10px; z-index: 1; background: var(--rose); color: white; font-size: 0.65rem; font-weight: 700; letter-spacing: 1px; padding: 3px 8px; border-radius: 4px; }
.book-info { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; flex: 1; }
.book-title { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.4; color: var(--navy); margin-top: 2px; }
.book-author { font-size: 0.86rem; color: var(--primary-dark); font-weight: 600; }
.book-meta { font-size: 0.76rem; color: var(--muted); }
.book-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.btn-outline { border-width: 1.5px; }
.books-empty { text-align: center; color: var(--muted); padding: 40px 0; }

.book-dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(820px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 30px 80px rgba(11,20,55,0.4); }
.book-dialog::backdrop { background: rgba(11,20,55,0.65); backdrop-filter: blur(3px); }
.dlg-close { position: absolute; top: 10px; right: 14px; z-index: 1; border: 0; background: none; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; }
.dlg-close:hover { color: var(--primary-dark); }
.dlg-body { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 32px; padding: 36px; }
.dlg-cover img { width: 100%; border-radius: 4px 10px 10px 4px; box-shadow: 0 14px 30px rgba(11,20,55,0.25); }
.dlg-body h2 { font-family: var(--font-head); font-size: 1.6rem; line-height: 1.3; color: var(--navy); margin: 6px 0 4px; }
.dlg-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin: 18px 0; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dlg-facts dt { font-size: 0.68rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.dlg-facts dd { font-size: 0.92rem; color: var(--navy); font-weight: 600; }
.dlg-desc { font-size: 0.95rem; line-height: 1.8; color: var(--text); margin-bottom: 18px; }

@media (max-width: 640px) {
  .books-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 16px; }
  .books-search { width: 100%; }
  .dlg-body { grid-template-columns: 1fr; padding: 28px 20px; }
  .dlg-cover img { max-width: 180px; margin: 0 auto; }
}

/* ── TIMELINE (About Us → Timeline) ── */
.tl-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 26px; }
.tl-stats div { background: white; border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: var(--radius); padding: 18px 20px; }
.tl-stats strong { display: block; font-family: Georgia, serif; font-size: 2rem; line-height: 1.1; color: var(--navy); }
.tl-stats span { font-size: 0.8rem; color: var(--muted); }

.tl-decades {
  position: sticky; top: 60px; z-index: 20; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  padding: 12px 0; margin-bottom: 30px; background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.tl-decades a { font-size: 0.8rem; font-weight: 700; color: var(--navy); padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--border); transition: var(--transition); }
.tl-decades a:hover { background: var(--navy); border-color: var(--navy); color: white; }

/* ── TIMELINE: medallion rail + bubble cards ── */
.tl-banner { background: linear-gradient(120deg, #7a1f00 0%, var(--primary-dark) 50%, var(--primary) 100%); }
.tl-rail { position: relative; list-style: none; max-width: 940px; margin: 10px auto 0; padding: 6px 0 40px; }
/* the glowing bhagwa rail that threads through the year medallions */
.tl-rail::before {
  content: ''; position: absolute; top: 14px; bottom: 32px; left: 56px; width: 4px; border-radius: 4px; z-index: 0;
  background: linear-gradient(var(--gold), var(--primary) 25%, var(--rose) 75%, var(--navy));
}

/* full-width era (decade) header band */
.tl-era { position: relative; z-index: 2; margin: 20px 0 26px; scroll-margin-top: 130px; }
.tl-era:first-child { margin-top: 2px; }
.tl-era span {
  display: inline-flex; align-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  letter-spacing: 1px; color: white; padding: 10px 28px; border-radius: 999px; background: var(--grad);
  box-shadow: 0 10px 24px rgba(247,103,7,0.28);
}
.tl-era::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--border); z-index: -1; }

/* a year row: medallion on the rail + a bubble card pointing to it */
.tl-row { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 24px; align-items: start; margin-bottom: 26px; scroll-margin-top: 130px; }
.tl-med { display: flex; justify-content: center; }
.tl-med span {
  position: relative; z-index: 2; width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-family: Georgia, serif; font-weight: 700; font-size: 1.35rem; color: white;
  background: var(--grad);
  box-shadow: 0 8px 20px rgba(247,103,7,0.34), 0 0 0 6px #fff, 0 0 0 8px rgba(247,103,7,0.16);
}
.tl-row.is-key .tl-med span {
  background: linear-gradient(135deg, var(--gold), var(--primary));
  box-shadow: 0 8px 22px rgba(252,196,25,0.42), 0 0 0 6px #fff, 0 0 0 8px rgba(252,196,25,0.3);
}

.tl-bubble { position: relative; background: white; border: 1px solid var(--border); border-radius: 12px; padding: 16px 22px 6px; box-shadow: var(--shadow); transition: var(--transition); }
.tl-bubble:hover { box-shadow: var(--shadow-hover); border-color: #f3c9a8; transform: translateX(3px); }
.tl-row.is-key .tl-bubble { border-top: 3px solid var(--gold); }
/* the arrow that makes the card point back to the medallion */
.tl-bubble::before { content: ''; position: absolute; left: -9px; top: 28px; width: 16px; height: 16px; background: white; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); transform: rotate(45deg); }
.tl-bubble ul { list-style: none; }
.tl-bubble li { position: relative; padding: 0 0 11px 16px; font-size: 0.92rem; line-height: 1.7; color: var(--text); }
.tl-bubble li::before { content: ''; position: absolute; left: 2px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.tl-bubble li.ev-key { background: #fff7e6; border-left: 3px solid var(--gold); border-radius: 0 6px 6px 0; padding: 10px 12px 10px 14px; margin-bottom: 11px; }
.tl-bubble li.ev-key::before { display: none; }
.tl-bubble li.ev-vsk { background: var(--primary-light); border-left: 3px solid var(--primary); border-radius: 0 6px 6px 0; padding: 10px 12px 10px 14px; margin-bottom: 11px; }
.tl-bubble li.ev-vsk::before { display: none; }
.ev-tag { display: inline-block; font-size: 0.6rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; margin: 0 4px 5px 0; vertical-align: middle; }
.ev-tag-key { background: var(--gold); color: #5a3b00; }
.ev-tag-vsk { background: var(--grad); color: white; }
.ev-text { display: inline; }
.ev-detail { font-size: 0.86rem; line-height: 1.65; color: var(--muted); margin-top: 6px; }
.ev-detail p { margin: 0 0 6px; }

@media (max-width: 620px) {
  .tl-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tl-decades { top: 0; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }
  .tl-rail::before { left: 30px; }
  .tl-row { grid-template-columns: 60px 1fr; gap: 14px; }
  .tl-med span { width: 54px; height: 54px; font-size: 0.95rem; box-shadow: 0 6px 14px rgba(247,103,7,0.3), 0 0 0 4px #fff; }
  .tl-bubble::before { top: 18px; }
  .tl-era span { font-size: 1rem; padding: 8px 20px; }
}

/* ── SWAYAMSEVAK (long-form discourse) ── */
.sw-lead { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.75; color: var(--navy); padding: 4px 0 22px 20px; border-left: 4px solid var(--primary); margin-bottom: 26px; }
.discourse { padding: 44px 52px; }
.discourse-head { padding-bottom: 20px; margin-bottom: 26px; border-bottom: 2px solid var(--navy); }
.discourse-head h2 { font-size: 2rem; line-height: 1.25; margin: 8px 0 6px; }
.discourse-meta { font-size: 0.82rem; color: var(--muted); margin: 0 !important; }
.discourse h3 { scroll-margin-top: 80px; padding-top: 10px; }
.discourse p { font-size: 1.02rem; }
.foreword { background: var(--band); border-radius: var(--radius); padding: 24px 28px 14px; margin-bottom: 34px; scroll-margin-top: 80px; }
.foreword h3 { margin-top: 0 !important; padding-top: 0; font-size: 0.78rem !important; letter-spacing: 2px; text-transform: uppercase; color: var(--primary-dark) !important; font-family: 'Inter', sans-serif !important; }
.foreword p { font-size: 0.95rem !important; color: #3d4262; }
.foreword-by { text-align: right; font-family: var(--font-head); font-weight: 700; color: var(--navy) !important; }
.num-list { list-style: none; padding: 0; margin: 4px 0 22px; counter-reset: none; }
.num-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--border); line-height: 1.75; }
.num-list li::before { display: none; }
.num-list li:last-child { border-bottom: none; }
.num-list .num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.pull-quote { position: relative; margin: 36px 0 6px; padding: 30px 32px 26px 70px; background: var(--navy); color: white; border-radius: var(--radius); font-family: var(--font-head); font-size: 1.2rem; line-height: 1.6; }
.pull-quote::before { content: '“'; position: absolute; left: 22px; top: 12px; font-family: Georgia, serif; font-size: 4rem; line-height: 1; color: var(--primary); }
.pull-quote cite { display: block; margin-top: 12px; font-family: 'Inter', sans-serif; font-style: normal; font-size: 0.82rem; color: var(--gold); }
.toc { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--border); }
.toc a { display: flex; gap: 10px; padding: 9px 0; font-size: 0.86rem; color: var(--text); line-height: 1.4; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-weight: 700; font-size: 0.75rem; color: var(--primary); padding-top: 1px; }
.toc a:hover { color: var(--primary-dark); }
.join-cta { display: block; padding: 22px; border-radius: var(--radius); background: var(--grad); color: white; box-shadow: 0 10px 26px rgba(247,103,7,0.3); transition: var(--transition); }
.join-cta strong { display: block; font-family: var(--font-head); font-size: 1.3rem; }
.join-cta span { font-size: 0.84rem; opacity: 0.92; }
.join-cta:hover { transform: translateY(-3px); }

/* ── JOIN RSS FORM ── */
.join-form { padding: 36px 40px; }
.join-form-head { padding-bottom: 18px; margin-bottom: 22px; border-bottom: 2px solid var(--navy); }
.join-form-head h2 { font-family: var(--font-head); font-size: 1.8rem; color: var(--navy); margin: 6px 0 4px; }
.join-form-head p { font-size: 0.84rem; color: var(--muted); }
.req { color: var(--rose); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.res-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 5px; background: var(--band); border-radius: 999px; margin-bottom: 22px; }
.res-tab { cursor: pointer; }
.res-tab input { position: absolute; opacity: 0; pointer-events: none; }
.res-tab span { display: block; text-align: center; padding: 11px 14px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; color: var(--muted); transition: var(--transition); }
.res-tab input:checked + span { background: var(--navy); color: white; box-shadow: 0 6px 16px rgba(11,20,55,0.2); }
.res-tab input:focus-visible + span { outline: 3px solid rgba(247,103,7,0.4); }

.form-block { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.form-block legend { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; padding-left: 12px; border-left: 4px solid var(--primary); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.84rem; font-weight: 600; color: var(--navy); }
.field.span-2 { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 0.95rem; font-weight: 400; color: var(--text); width: 100%;
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: white; outline: none; transition: var(--transition);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(247,103,7,0.14); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--rose); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 0.88rem; line-height: 1.5; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.check.consent { padding: 14px 16px; background: var(--band); border-radius: var(--radius-sm); margin: 0 0 22px; }
.form-note { font-size: 0.84rem; color: var(--muted); background: var(--primary-light); border-left: 3px solid var(--primary); padding: 10px 14px; border-radius: 0 8px 8px 0; margin: -6px 0 22px; }
.form-block .form-note { margin: 14px 0 0; }
.join-submit { width: 100%; padding: 15px; font-size: 1.02rem; }

/* Bharat / diaspora switching (JS sets .is-abroad and disables hidden fieldsets) */
.join-form .abroad-only { display: none; }
.join-form.is-abroad .abroad-only { display: block; }
.join-form.is-abroad span.abroad-only { display: inline; }
.join-form.is-abroad .bharat-only { display: none; }
.join-form.same-addr .perm-block { display: none; }

.join-success { text-align: center; padding: 56px 36px; }
.join-success-icon { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: var(--grad); color: white; font-size: 2.2rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(247,103,7,0.35); }
.join-success h2 { font-family: var(--font-head); font-size: 1.6rem; color: var(--navy); margin-bottom: 10px; }
.join-success p { color: var(--muted); max-width: 520px; margin: 0 auto 22px; line-height: 1.7; }

.join-steps { list-style: none; counter-reset: step; }
.join-steps li { counter-increment: step; position: relative; padding: 0 0 18px 44px; }
.join-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: white; font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.join-steps strong { display: block; color: var(--navy); font-size: 0.92rem; }
.join-steps span { font-size: 0.82rem; color: var(--muted); }

@media (max-width: 768px) {
  .discourse { padding: 26px 20px; }
  .discourse-head h2 { font-size: 1.5rem; }
  .pull-quote { padding: 56px 22px 22px; }
  .join-form { padding: 26px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .res-tabs { border-radius: 14px; grid-template-columns: 1fr; }
  .res-tab span { border-radius: 10px; }
}

/* ── TOPIC CLOUD (sidebar) & TOPIC GLOBE (home) ──
   Weight 1–5 drives size and colour: rarer topics are small and navy,
   the most covered ones large and saffron. */
.topic-cloud { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.tc { display: inline-block; line-height: 1.25; border-radius: 999px; padding: 4px 11px; font-weight: 600; border: 1px solid var(--border); background: white; transition: var(--transition); }
.tc:hover { background: var(--navy); border-color: var(--navy); color: white !important; transform: translateY(-2px); }
.tc-w1 { font-size: 0.74rem; color: var(--muted); }
.tc-w2 { font-size: 0.82rem; color: var(--navy); }
.tc-w3 { font-size: 0.92rem; color: var(--secondary); border-color: #f3c9d8; }
.tc-w4 { font-size: 1.02rem; color: var(--primary-dark); border-color: #fbd5b5; background: var(--primary-light); }
.tc-w5 { font-size: 1.12rem; color: white; border-color: transparent; background: var(--grad); }

.topics-band {
  position: relative; overflow: hidden; padding: 64px 0;
  background: radial-gradient(520px 320px at 78% 50%, rgba(247,103,7,0.10), transparent 70%), white;
  border-top: 1px solid var(--border);
}
.topics-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.topics-intro { color: var(--muted); line-height: 1.7; margin: -6px 0 22px; max-width: 420px; }
.topic-rank { list-style: none; counter-reset: none; }
.topic-rank a { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--border); transition: var(--transition); }
.topic-rank li:first-child a { border-top: 1px solid var(--border); }
.topic-rank a:hover { padding-left: 12px; background: var(--primary-light); }
.tr-num { font-family: Georgia, serif; font-size: 1.15rem; font-weight: 700; color: var(--primary); }
.tr-label { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.tr-count { font-size: 0.72rem; font-weight: 700; color: var(--muted); background: var(--band); border-radius: 999px; padding: 3px 9px; }
.tr-count::after { content: ' articles'; font-weight: 500; }

.topic-globe-wrap { position: relative; }
.topic-globe {
  position: relative; margin: 0 auto; width: min(520px, 100%); aspect-ratio: 1;
  /* Without JS / reduced motion: a flat weighted cloud */
  display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px 12px; padding: 20px;
}
.topic-globe .tg-item { border-radius: 999px; padding: 5px 12px; font-weight: 700; white-space: nowrap; background: white; border: 1px solid var(--border); }
.topic-globe .tg-item.tc-w4, .topic-globe .tg-item.tc-w5 { font-family: var(--font-head); }
.topic-globe .tg-item.tc-w4 { background: white; border-color: white; color: var(--primary-dark); }
.topic-globe .tg-item.tc-w5 { background: var(--grad); border-color: transparent; color: white; box-shadow: 0 6px 18px rgba(247,103,7,0.3); }
/* On the saffron Earth the top topics switch to navy so they stand out */
.topic-globe.is-3d .tg-item { z-index: 1; box-shadow: 0 4px 12px rgba(80,22,0,0.18); }
.topic-globe.is-3d .tg-item.tc-w5 { background: var(--navy); color: white; border-color: var(--navy); box-shadow: 0 8px 20px rgba(11,20,55,0.35); }
/* JS-driven sphere */
.topic-globe.is-3d { display: block; padding: 0; cursor: grab; touch-action: none; user-select: none; }
.topic-globe.is-3d.dragging { cursor: grabbing; }
.topic-globe.is-3d::before, .topic-globe.is-3d::after { content: ''; position: absolute; inset: 9%; border-radius: 50%; pointer-events: none; }
/* Bhagwa Earth: cream continents on a saffron ocean; the map scrolls with the
   globe's spin (--earth-x is set by topic-globe.js). */
.topic-globe.is-3d::before {
  background:
    url('/img/earth-land.svg') var(--earth-x, 0px) 50% / auto 100% repeat-x,
    radial-gradient(circle at 38% 32%, #ffa94d 0%, #f76707 42%, #d9480f 70%, #9c330a 100%);
}
/* Sunlight, shadowed limb and a saffron atmosphere glow */
.topic-globe.is-3d::after {
  background:
    radial-gradient(circle at 32% 26%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.14) 20%, transparent 42%),
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(80,22,0,0.55) 100%);
  box-shadow: 0 0 0 1px rgba(255,190,120,0.45), 0 0 36px 6px rgba(247,103,7,0.35), 0 0 100px 26px rgba(255,146,43,0.16);
}
.topic-globe.is-3d .tg-item { position: absolute; left: 50%; top: 50%; will-change: transform, opacity; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.topic-globe.is-3d .tg-item:hover, .topic-globe.is-3d .tg-item:focus-visible { background: var(--navy); color: white !important; border-color: var(--navy); box-shadow: 0 8px 22px rgba(11,20,55,0.25); outline: none; }
.globe-hint { text-align: center; font-size: 0.75rem; color: var(--muted); margin-top: 6px; letter-spacing: 0.5px; }
.topic-globe:not(.is-3d) + .globe-hint { display: none; }

@media (max-width: 900px) {
  .topics-inner { grid-template-columns: 1fr; }
  .topic-globe { width: min(420px, 100%); }
}


/* ── CATEGORY / SEARCH: full-width, uniform cards, 3 per row. A partial last
   row is centred (not left with an empty cell), so it always looks balanced. ── */
.cat-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 34px 26px; }
.cat-grid > .art-card { flex: 0 1 calc((100% - 52px) / 3); min-width: 0; }
@media (max-width: 920px) { .cat-grid > .art-card { flex-basis: calc((100% - 26px) / 2); } }
@media (max-width: 560px) { .cat-grid > .art-card { flex-basis: 100%; } }

/* ════════ ARCHIVE PUBLIC PAGES (Pracharak / Photos / Videos) ════════ */
/* Apne Pracharak — "Hall of Pracharaks": alternating editorial features,
   each a framed portrait + a magazine-style profile, not a gallery grid. */
.prach-roster { max-width: 1060px; margin: 6px auto 0; display: flex; flex-direction: column; gap: 68px; }
.prach-feature { display: grid; grid-template-columns: 0.82fr 1fr; gap: 48px; align-items: center; position: relative; }
.prach-feature.flip { grid-template-columns: 1fr 0.82fr; }
.prach-feature.flip .pf-media { order: 2; }
.prach-feature.flip .pf-body  { order: 1; }

/* portrait, with an offset bhagwa frame behind it and a soft shadow */
.pf-media { position: relative; }
.pf-photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; z-index: 1;
  background: linear-gradient(135deg, #ff9a3c 0%, var(--primary) 48%, var(--primary-dark) 100%);
  box-shadow: 0 20px 44px rgba(11,20,55,0.16); border: 4px solid white;
}
.pf-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
/* the saffron frame peeking out behind the photo */
.pf-media::before {
  content: ''; position: absolute; z-index: 0; inset: 22px -18px -18px 22px; border-radius: 16px;
  background: var(--grad); opacity: 0.9;
}
.prach-feature.flip .pf-media::before { inset: 22px 22px -18px -18px; }
/* branded placeholder when no portrait */
.pf-photo.no-img::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 42%; max-width: 110px; aspect-ratio: 1; transform: translate(-50%,-50%);
  border-radius: 50%; background: white url('/vsk-logo.jpg') center/cover no-repeat; box-shadow: 0 0 0 6px rgba(255,255,255,0.35);
}
/* large faint index numeral as a design accent */
.pf-index {
  position: absolute; z-index: 2; top: -34px; font-family: Georgia, serif; font-weight: 700; font-size: 5.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(247,103,7,0.34); letter-spacing: -2px;
}
.prach-feature .pf-index { right: -8px; }
.prach-feature.flip .pf-index { left: -8px; right: auto; }

/* profile text */
.pf-role { display: inline-flex; align-items: center; gap: 10px; font-size: 0.74rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 12px; }
.pf-role::before { content: ''; width: 26px; height: 2px; background: var(--primary); }
.pf-name { font-family: var(--font-head); font-size: 2.15rem; line-height: 1.2; color: var(--navy); margin: 0; letter-spacing: -0.3px; }
.pf-rule { display: block; width: 54px; height: 3px; border-radius: 3px; background: var(--grad); margin: 16px 0 18px; }
.pf-bio { font-size: 1rem; line-height: 1.78; color: #3a4066; }
.pf-bio p { margin: 0 0 12px; }
.pf-bio p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .prach-roster { gap: 46px; }
  .prach-feature, .prach-feature.flip { grid-template-columns: 1fr; gap: 26px; max-width: 460px; margin: 0 auto; }
  .prach-feature.flip .pf-media { order: 1; }
  .prach-feature.flip .pf-body  { order: 2; }
  .pf-media::before, .prach-feature.flip .pf-media::before { inset: 16px -12px -12px 16px; }
  .pf-index, .prach-feature.flip .pf-index { right: 4px; left: auto; top: -30px; font-size: 4.4rem; }
  .pf-name { font-size: 1.7rem; }
}

/* Photos — masonry-ish responsive grid */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.photo-item { margin: 0; background: white; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.photo-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.photo-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-item figcaption { padding: 10px 14px 12px; }
.photo-item figcaption strong { display: block; font-size: 0.9rem; color: var(--navy); line-height: 1.4; }
.photo-item figcaption span { font-size: 0.76rem; color: var(--muted); }

/* Videos — 16:9 cards */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.video-item { background: white; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.video-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.video-item .embed-16x9 { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-item .embed-16x9 iframe, .video-item .embed-16x9 video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.video-meta { padding: 14px 16px 16px; }
.video-meta h3 { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.4; color: var(--navy); margin: 0 0 4px; }
.video-meta span { font-size: 0.78rem; color: var(--muted); }

/* ════════ SANGHA PARIVAR — ORG TREE ════════ */
.sp-intro { max-width: 820px; margin: 0 auto 30px; text-align: center; font-size: 1.02rem; line-height: 1.75; color: #3a4066; }
.org-tree { max-width: 900px; margin: 0 auto; }

/* Banyan canopy (= RSS) */
.banyan { max-width: 920px; margin: 0 auto; }
.banyan-hero { position: relative; max-width: 560px; margin: 0 auto; }
.banyan-svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(31,107,46,0.22)); }
.banyan-emblem { position: absolute; left: 50%; top: 53%; transform: translate(-50%,-50%); width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: white; box-shadow: 0 0 0 4px #fff, 0 6px 16px rgba(90,52,24,0.5); }
.banyan-emblem img { width: 100%; height: 100%; object-fit: cover; }
.banyan-caption { position: relative; z-index: 2; text-align: center; margin: 10px 0 4px; }
.banyan-caption strong { display: block; font-family: var(--font-head); font-size: 1.45rem; color: var(--navy); line-height: 1.2; }
.banyan-caption > span { display: block; font-size: 0.84rem; color: var(--primary-dark); }
.banyan-count { margin-top: 8px; display: inline-block; background: #1f6b2e; color: white; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px; padding: 5px 14px; border-radius: 999px; }

/* Nested tree with elbow connectors — themed as banyan branches / aerial roots */
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree { position: relative; padding-left: 28px; max-width: 760px; margin: 20px auto 0; }
.tree li { position: relative; padding-left: 34px; }
/* vertical line (branch) */
.tree li::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; border-left: 3px solid #cbae8f; }
/* horizontal elbow to the node */
.tree li::after { content: ''; position: absolute; left: 0; top: 30px; width: 24px; border-top: 3px solid #cbae8f; }
/* last child: stop the vertical line at the elbow */
.tree li:last-child::before { height: 30px; }
/* top-level branches get a bolder bark connector */
.tree > li::before, .tree > li::after { border-color: #8a5a32; border-width: 4px; }
.tree > li { padding-top: 16px; }
.tree > li > ul { margin-top: 6px; }
.banyan-tree { margin-top: 14px; }

/* Node cards */
.org-node { display: inline-flex; align-items: center; background: white; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); transition: var(--transition); }
.org-node:hover { box-shadow: var(--shadow-hover); transform: translateX(3px); border-color: #f3c9a8; }

.org-cat { gap: 12px; padding: 10px 16px; border-left: 4px solid var(--primary); }
.org-cat-ico { font-size: 1.3rem; line-height: 1; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-light); border-radius: 10px; }
.org-cat-text strong { display: block; font-family: var(--font-head); font-size: 1.1rem; color: var(--navy); line-height: 1.25; }
.org-cat-text span { font-size: 0.78rem; color: var(--primary-dark); }
.org-cat-count { margin-left: 6px; min-width: 24px; height: 24px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: white; font-size: 0.72rem; font-weight: 700; border-radius: 999px; }

.org-leaf { flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 16px 10px 18px; margin: 7px 0; position: relative; }
.org-leaf strong { font-size: 0.95rem; color: var(--navy); line-height: 1.3; }
.org-leaf-hi { font-size: 0.8rem; color: var(--primary-dark); font-weight: 600; }
.org-leaf-desc { font-size: 0.78rem; color: var(--muted); }

/* Banyan node theming: branches = bark, leaves = foliage green */
.banyan-tree .org-cat { border-left: 4px solid #1f6b2e; }
.banyan-tree .org-cat-ico { background: #e6f4ea; }
.banyan-tree .org-cat-count { background: #1f6b2e; }
.banyan-tree .org-leaf { border-left: 3px solid #4caf50; }
.banyan-tree .org-leaf::before { content: '🌿'; position: absolute; left: -32px; top: 22px; font-size: 0.8rem; }
.banyan-tree .org-leaf:hover { border-color: #2e8b3d; }

@media (max-width: 560px) {
  .org-root-node { gap: 12px; padding: 14px 18px; }
  .org-root-emblem { width: 48px; height: 48px; }
  .org-root-text strong { font-size: 1.12rem; }
  .tree li { padding-left: 24px; }
  .tree li::after { width: 16px; }
  .org-cat-text strong { font-size: 1rem; }
  .org-node { width: 100%; }
  .banyan-caption strong { font-size: 1.12rem; }
  .banyan-tree .org-leaf::before { left: -30px; }
}

/* ── Language toggle (EN / हिं / मरा) in the top bar ── */
.lang-toggle { display: inline-flex; gap: 2px; margin-right: 8px; }
.lang-toggle a { color: #9aa0c0; padding: 1px 7px; border-radius: 10px; font-weight: 700; font-size: 0.72rem; line-height: 1.5; }
.lang-toggle a.on { background: var(--primary); color: #fff; }
.lang-toggle a:hover { color: #fff; }

/* ════════ LIVE BROADCAST ════════ */
/* Site-wide bar shown only while a broadcast is on air */
.live-bar { display: flex; align-items: center; gap: 12px; padding: 9px 24px; max-width: 1260px; margin: 0 auto;
  color: #fff; text-decoration: none; }
.live-bar { background: linear-gradient(90deg, #c0122b, #e01f3d 60%, #ff3b57); }
.live-bar-wrap, .live-bar { width: 100%; }
.live-bar { box-sizing: border-box; }
.live-dot { width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,0.7); animation: live-pulse 1.3s ease-out infinite; flex-shrink: 0; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); } 100% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } }
.live-tag { font-weight: 800; letter-spacing: 1.5px; font-size: 0.72rem; text-transform: uppercase; flex-shrink: 0; }
.live-title { font-weight: 600; font-size: 0.86rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-cta { font-weight: 800; font-size: 0.78rem; flex-shrink: 0; background: rgba(0,0,0,0.18); padding: 4px 12px; border-radius: 999px; }
.live-bar:hover .live-cta { background: rgba(0,0,0,0.3); }

/* Public /live page */
.live-wrap { max-width: 960px; margin: 0 auto; }
.live-head { display: inline-flex; align-items: center; gap: 10px; }
.live-head .live-dot { background: #e01f3d; box-shadow: 0 0 0 0 rgba(224,31,61,0.6); animation: live-pulse2 1.3s ease-out infinite; }
@keyframes live-pulse2 { 0% { box-shadow: 0 0 0 0 rgba(224,31,61,0.6); } 100% { box-shadow: 0 0 0 10px rgba(224,31,61,0); } }
.live-head .live-tag { color: #e01f3d; }
.live-h { font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); margin: 8px 0 14px; line-height: 1.25; }
.live-embed { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 44px rgba(11,20,55,0.2); }
.live-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-meta { margin-top: 14px; color: var(--muted); font-size: 0.9rem; }
.live-meta #liveEnd { color: var(--navy); font-weight: 600; }

@media (max-width: 560px) {
  .live-bar { padding: 8px 16px; gap: 9px; }
  .live-title { font-size: 0.8rem; }
  .live-cta { padding: 3px 9px; font-size: 0.72rem; }
}

/* ════════ VISION & MISSION ════════ */
.vm-wrap { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 30px; }
.vm-block { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.vm-block:has(.vm-media) { display: grid; grid-template-columns: 300px 1fr; }
.vm-media { background: #0b1437; }
.vm-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vm-text { padding: 26px 30px; }
.vm-h { font-family: var(--font-head); font-size: 1.6rem; color: var(--navy); margin: 0 0 4px; border-left: 4px solid var(--primary); padding-left: 14px; }
.vm-sub { color: var(--primary-dark); font-weight: 600; margin: 0 0 14px; padding-left: 18px; }
.vm-body { font-size: 1rem; line-height: 1.8; color: #3a4066; }
.vm-body p { margin: 0 0 12px; }
@media (max-width: 680px) { .vm-block:has(.vm-media) { grid-template-columns: 1fr; } .vm-media { aspect-ratio: 16/9; } }

/* ════════ PRATINIDHI SABHA / KARYAKARI MANDAL ════════ */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.member-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.member-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.member-photo { position: relative; aspect-ratio: 1; overflow: hidden; background: linear-gradient(135deg, #ff9a3c, var(--primary) 48%, var(--primary-dark)); }
.member-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.member-photo.no-img::after { content: ''; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%,-50%); border-radius: 50%; background: #fff url('/vsk-logo.jpg') center/cover no-repeat; box-shadow: 0 0 0 5px rgba(255,255,255,0.4); }
.member-body { padding: 16px 18px 20px; }
.member-body h3 { font-family: var(--font-head); font-size: 1.1rem; color: var(--navy); margin: 0 0 3px; line-height: 1.3; }
.member-role { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 8px; }
.member-bio { font-size: 0.86rem; line-height: 1.6; color: var(--muted); }
.member-bio p { margin: 0 0 6px; }

/* ════════ BOOKS (DB-backed cards) ════════ */
.book-cover.no-img { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #ff9a3c, var(--primary) 48%, var(--primary-dark)); }
.book-cover.no-img::after { content: '📚'; font-size: 2.4rem; }
.book-desc { font-size: 0.85rem; line-height: 1.6; color: var(--muted); margin: 6px 0 10px; }
.book-desc p { margin: 0 0 6px; }

/* ════════ HOME LEAD BANNER TEMPLATES ════════ */
/* Template 1 (crop): heading on top, text left of a cropped photo, content below */
.ts-lead.lead-crop .ts-lead-title { margin-top: 4px; }
.lead-crop-row { display: flex; gap: 18px; align-items: flex-start; margin: 6px 0 10px; }
.lead-crop-row .ts-lead-excerpt { flex: 1 1 auto; min-width: 0; margin: 0; }
.lead-crop-media { flex: 0 0 46%; max-width: 46%; }
.lead-crop-media .media { margin: 0; }
.lead-crop-below { margin: 0 0 12px; }

/* Template 2 (full): heading on top, the whole uncropped photo, content below */
.lead-full-media { width: 100%; margin: 6px 0 12px; border-radius: var(--radius-sm); overflow: hidden;
  background: #0b1437; display: flex; align-items: center; justify-content: center; max-height: 440px; }
.lead-full-media img { width: 100%; height: auto; max-height: 440px; object-fit: contain; display: block; }

@media (max-width: 680px) {
  .lead-crop-row { flex-direction: column; }
  .lead-crop-media { flex-basis: auto; max-width: 100%; width: 100%; }
}

/* ── Gallery: fixed-ratio media ────────────────────────────────────────────
   Photos sit in a fixed 4:3 frame and videos in a fixed 16:9 frame, so every
   card in the grid is the same shape whatever was uploaded. Photos are shown
   whole (contain, never cropped/stretched) over a blurred copy of themselves,
   so portrait and odd-sized pictures still fill the frame neatly. */
.photo-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.video-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.photo-item, .video-item { display: flex; flex-direction: column; min-width: 0; }
.photo-frame { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #1b1f2e; }
.photo-frame::before {
  content: ''; position: absolute; inset: -20px; z-index: 0;
  background: var(--img) center / cover no-repeat; filter: blur(18px) brightness(0.75); transform: scale(1.1);
}
.photo-item .photo-frame img {
  position: relative; z-index: 1; width: 100%; height: 100%; aspect-ratio: auto;
  object-fit: contain; transition: transform 0.4s ease;
}
.photo-item:hover .photo-frame img { transform: scale(1.03); }
.photo-item figcaption strong, .video-meta h3 {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.photo-item figcaption span, .video-meta span {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Devanagari glyphs are taller than Latin ones: fix the line box so exactly
   two lines show (no sliver of a third line under the ellipsis). */
.video-meta h3, .photo-item figcaption strong { line-height: 1.5; max-height: 3em; }
.video-meta h3 { min-height: 3em; }
.video-item .embed-16x9 { flex-shrink: 0; border-radius: 0; }

/* ── Video gallery ─────────────────────────────────────────────────────────
   Every card is the same 16:9 thumbnail. Vertical clips (phone recordings,
   YouTube Shorts) show their sharp 9:16 frame centred over a blurred, dimmed
   fill of the same picture. Clicking opens a player in the video's own shape. */
.vg-grid {
  display: grid; gap: 28px 24px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr));
}
.vg-card { display: flex; flex-direction: column; min-width: 0; }

.vg-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate;
  border-radius: 12px; background: linear-gradient(135deg, #1a2350 0%, #0b1437 100%);
  box-shadow: 0 1px 2px rgba(11,20,55,0.08), 0 8px 24px -10px rgba(11,20,55,0.35);
  color: #fff; cursor: pointer; transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.vg-thumb:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(11,20,55,0.08), 0 16px 34px -12px rgba(11,20,55,0.45); }
.vg-thumb:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* sharp foreground: full-bleed for 16:9, a centred 9:16 column for vertical */
.vg-fore { position: absolute; inset: 0; z-index: 1; display: block; }
.vg-fore video, .vg-fore img {
  display: block; width: 100%; height: 100%; object-fit: cover; border: 0; pointer-events: none;
  transition: transform 0.45s ease;
}
.vg-thumb:hover .vg-fore video, .vg-thumb:hover .vg-fore img { transform: scale(1.035); }
.vg-thumb.is-portrait .vg-fore {
  left: 50%; right: auto; width: auto; height: 100%; aspect-ratio: 9 / 16; transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 0 40px rgba(0,0,0,0.55);
}
.vg-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.2rem; opacity: 0.8; }

/* blurred fill behind vertical clips (YouTube image, or the clip's own frame on a canvas) */
.vg-backdrop { position: absolute; inset: 0; z-index: 0; display: none; }
.vg-thumb.is-portrait .vg-backdrop { display: block; }
.vg-backdrop img, .vg-backdrop canvas {
  position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover;
  filter: blur(22px) saturate(1.2) brightness(0.55);
}
.vg-backdrop canvas { opacity: 0; transition: opacity 0.3s ease; }
.vg-thumb.has-backdrop .vg-backdrop canvas { opacity: 1; }

/* soft bottom shade so the chips stay readable on any picture */
.vg-shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,8,20,0) 55%, rgba(5,8,20,0.55) 100%);
  transition: background 0.25s ease;
}
.vg-thumb:hover .vg-shade { background: linear-gradient(180deg, rgba(5,8,20,0.12) 0%, rgba(5,8,20,0.6) 100%); }

.vg-play {
  position: absolute; left: 50%; top: 50%; z-index: 3; display: grid; place-items: center;
  width: 54px; height: 54px; transform: translate(-50%, -50%); border-radius: 50%;
  background: rgba(255,255,255,0.22); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.55), 0 8px 24px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.vg-play svg { margin-left: 3px; }
.vg-thumb:hover .vg-play, .vg-thumb:focus-visible .vg-play {
  transform: translate(-50%, -50%) scale(1.08); background: var(--primary); box-shadow: 0 0 0 1.5px var(--primary), 0 10px 28px rgba(247,103,7,0.45);
}

.vg-chip {
  position: absolute; bottom: 10px; z-index: 3; padding: 3px 8px; border-radius: 6px;
  background: rgba(5,8,20,0.72); color: #fff; font-size: 0.72rem; font-weight: 600; line-height: 1.4;
  letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
}
.vg-chip[hidden] { display: none; }
.vg-chip-src { left: 10px; }
.vg-chip-dur { right: 10px; }

.vg-meta { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 6px; }
.vg-title {
  margin: 0; font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--navy);
  line-height: 1.5; min-height: 3em; max-height: 3em;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.vg-card:hover .vg-title { color: var(--primary-dark); }
.vg-sub { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 0.78rem; color: var(--muted); }
.vg-place { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vg-sub time { flex-shrink: 0; }
.vg-place + time::before { content: '·'; margin-right: 8px; }

/* ── Player ── */
.vg-modal {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh;
  max-width: none; max-height: none; overflow: hidden; background: transparent; color: #fff;
}
.vg-modal::backdrop { background: rgba(4, 7, 18, 0.92); }
.vg-modal[open] { display: block; }
.vg-modal-stage {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 64px 16px 20px;
}
.vg-modal-frame {
  position: relative; flex-shrink: 0; aspect-ratio: var(--ratio, 16 / 9); background: #000;
  border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
/* Landscape: as wide as fits (max 1120px) with the caption still on screen. */
.vg-modal-frame.is-landscape { width: min(1120px, calc(100vw - 32px), calc((100dvh - 170px) * 16 / 9)); }
/* Vertical: as tall as fits; width follows from the ratio. */
.vg-modal-frame.is-portrait  { height: min(calc(100dvh - 170px), calc((100vw - 32px) * 16 / 9)); }
.vg-modal-frame iframe, .vg-modal-frame video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain;
}
.vg-modal-caption { max-width: min(760px, calc(100vw - 32px)); text-align: center; }
.vg-modal-title { margin: 0; font-family: var(--font-head); font-size: 1.02rem; font-weight: 700; line-height: 1.5; color: #fff; }
.vg-modal-sub { margin: 2px 0 0; font-size: 0.8rem; color: rgba(255,255,255,0.65); }
.vg-modal-sub[hidden] { display: none; }

.vg-modal-btn {
  position: absolute; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.vg-modal-btn:hover, .vg-modal-btn:focus-visible { background: var(--primary); outline: none; }
.vg-modal-btn[hidden] { display: none; }
.vg-modal-close { top: 14px; right: 16px; }
.vg-modal-prev, .vg-modal-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.vg-modal-prev { left: 18px; }
.vg-modal-next { right: 18px; }
/* Phones: arrows move below the player so they never cover the video. */
@media (max-width: 700px) {
  .vg-grid { gap: 24px; }
  .vg-modal-stage { padding: 60px 12px 84px; }
  .vg-modal-frame.is-landscape { width: calc(100vw - 24px); }
  .vg-modal-frame.is-portrait  { height: min(calc(100dvh - 230px), calc((100vw - 24px) * 16 / 9)); }
  .vg-modal-prev, .vg-modal-next { top: auto; bottom: 18px; transform: none; }
  .vg-modal-prev { left: calc(50% - 60px); }
  .vg-modal-next { right: calc(50% - 60px); }
}
html.vg-modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .vg-thumb, .vg-fore video, .vg-fore img, .vg-play { transition: none; }
  .vg-thumb:hover { transform: none; }
}
