/* ===========================================
   RAJYO DARPAN — Bengali News Portal
   Editorial newspaper + modern digital
   =========================================== */

/* -------- Reset & Base -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .25s ease, color .25s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* -------- Theme tokens -------- */
:root {
  --red: #c8102e;
  --red-dark: #9c0a23;
  --blue: #14366b;
  --blue-light: #1f4d97;
  --gold: #d4a017;
  --paper: #faf7f2;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f4ef;
  --ink: #0f1419;
  --ink-2: #2a2f36;
  --muted: #5a6470;
  --line: #e4e1d8;
  --line-strong: #c8c4b8;
  --shadow-sm: 0 1px 2px rgba(15,20,25,.06), 0 1px 3px rgba(15,20,25,.04);
  --shadow-md: 0 4px 12px rgba(15,20,25,.08);
  --shadow-lg: 0 14px 40px rgba(15,20,25,.12);
  --serif: 'Noto Serif Bengali', 'Tiro Bangla', Georgia, serif;
  --sans: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif;
  --display: 'Baloo Da 2', 'Hind Siliguri', system-ui, sans-serif;
}
[data-theme="dark"] {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-2: #1d232c;
  --ink: #f0e9d8;
  --ink-2: #d6d0c0;
  --muted: #97a0ad;
  --line: #2a313c;
  --line-strong: #3a424f;
  --paper: #161b22;
  --red: #ff4d63;
  --red-dark: #d63a4f;
  --blue: #6ea3ff;
  --blue-light: #8db8ff;
}

/* -------- Layout primitives -------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
.row { display: grid; gap: 24px; }
.with-sidebar { grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .with-sidebar { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
}

/* -------- Top utility bar -------- */
.topbar {
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
  z-index: 40;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 36px; gap: 14px; flex-wrap: wrap;
  padding-top: 6px; padding-bottom: 6px;
}
.topbar-left,
.topbar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-family: var(--sans); }
.topbar-left .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.5); flex-shrink: 0; }
.topbar-right a { display: inline-flex; align-items: center; gap: 6px; opacity: .9; transition: opacity .2s; }
.topbar-right a:hover { opacity: 1; color: #ffd84d; }
.topbar-right svg { width: 14px; height: 14px; }

/* Tablet & below */
@media (max-width: 991px) {
  .topbar .container { justify-content: center; gap: 10px; font-size: 12.5px; }
}
/* Mobile */
@media (max-width: 767px) {
  .topbar { font-size: 12px; }
  .topbar .container { gap: 8px; row-gap: 4px; }
  .topbar-left, .topbar-right { gap: 10px; }
  .topbar-left .weather, .topbar-right .epaper-label { display: none; }
}
@media (max-width: 479px) {
  .topbar-left .dot { display: none; }
  .topbar-right a:not([aria-label="Facebook"]):not([aria-label="WhatsApp"]):not([aria-label="YouTube"]) svg { width: 16px; height: 16px; }
}

/* -------- Masthead -------- */
.masthead {
  background: var(--bg);
  border-bottom: 3px double var(--line-strong);
}
.masthead .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 16px;
  gap: 20px;
}
.mast-date {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .02em;
}
.mast-date strong { display: block; color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.logo {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.logo-name {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--red);
  text-shadow: 1px 1px 0 rgba(20,54,107,.08);
}
.logo-name .accent { color: var(--blue); }
.logo-tag {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
}
.mast-ad {
  display: flex; align-items: center; justify-content: flex-end;
}
.ad-slot {
  background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 10px, var(--bg) 10px, var(--bg) 20px);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 320px; height: 90px;
}
.ad-slot.wide { max-width: 728px; height: 90px; margin: 16px auto; }
.ad-slot.box { max-width: 300px; height: 250px; }
.ad-slot.sticky-side { position: sticky; top: 110px; }
@media (max-width: 991px) {
  .masthead .container { grid-template-columns: 1fr; text-align: center; gap: 12px; padding: 14px 16px; }
  .mast-date { text-align: center; }
  .mast-ad { justify-content: center; }
  .ad-slot { max-width: 320px; height: 70px; }
}
@media (max-width: 479px) {
  .masthead .container { padding: 12px 14px; gap: 8px; }
  .logo-name { font-size: clamp(28px, 9vw, 38px); }
  .logo-tag { font-size: 10px; letter-spacing: .25em; }
}

/* -------- Sticky navigation -------- */
.navbar {
  background: var(--red);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 8px rgba(200,16,46,.18);
}
.navbar-inner {
  display: flex; align-items: center; gap: 8px;
  height: 52px;
}
.nav-drawer {
  display: flex; align-items: stretch;
  flex: 1; min-width: 0;
}
.nav-drawer-head { display: none; }
.nav-drawer-close { display: none; }
.nav-menu {
  display: flex; align-items: stretch; gap: 0;
  flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none;
  margin: 0; padding: 0; list-style: none;
}
.nav-menu::-webkit-scrollbar { display: none; }
.nav-menu > li { display: flex; align-items: stretch; }
.nav-menu a {
  padding: 0 14px;
  display: inline-flex; align-items: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.12);
  transition: background .15s ease;
  position: relative;
  color: #fff;
}
.nav-menu > li:first-child a { border-left: 1px solid rgba(255,255,255,.12); }
.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a { background: var(--red-dark); }
.nav-menu a.active::after,
.nav-menu .current-menu-item > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px;
  height: 2px; background: #ffd84d;
}
.nav-actions { display: flex; align-items: center; gap: 4px; padding-right: 6px; flex-shrink: 0; }
.nav-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px;
  color: #fff;
  transition: background .15s;
  flex-shrink: 0;
}
.nav-btn:hover,
.nav-btn:focus-visible { background: var(--red-dark); outline: none; }
.nav-btn svg { width: 20px; height: 20px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-burger { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close  { display: block; }

.breaking-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  background: #ffd84d; color: var(--blue);
  font-family: var(--sans); font-weight: 700; font-size: 13px;
  border-radius: 3px;
  margin-right: 6px;
  flex-shrink: 0;
}
.breaking-btn::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 0 var(--red);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200,16,46,.7); }
  70%  { box-shadow: 0 0 0 8px rgba(200,16,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,16,46,0); }
}

/* Backdrop (only active on tablet/mobile) */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(10,14,20,.55);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.nav-backdrop.open { opacity: 1; visibility: visible; }

/* ===== Desktop default (≥992px): hide hamburger, horizontal nav ===== */
.menu-toggle { display: none; }

/* ===== Tablet & Mobile (≤991px): hamburger + slide-out drawer ===== */
@media (max-width: 991px) {
  .menu-toggle { display: inline-flex; }
  .breaking-btn { display: none; }

  .nav-drawer {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    width: min(320px, 86vw);
    background: var(--red);
    flex-direction: column;
    align-items: stretch;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    z-index: 70;
    box-shadow: 4px 0 20px rgba(0,0,0,.25);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-drawer.open { transform: translateX(0); }

  .nav-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    flex-shrink: 0;
  }
  .nav-drawer-title {
    font-family: var(--serif); font-weight: 800; font-size: 18px; color: #fff;
    letter-spacing: .03em;
  }
  .nav-drawer-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 4px;
    background: transparent; color: #fff; border: none; cursor: pointer;
  }
  .nav-drawer-close:hover,
  .nav-drawer-close:focus-visible { background: var(--red-dark); outline: none; }
  .nav-drawer-close svg { width: 20px; height: 20px; }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px 0;
    gap: 0;
  }
  .nav-menu > li { display: block; }
  .nav-menu a {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
    height: 48px;
    padding: 0 20px;
    width: 100%;
  }
  .nav-menu > li:first-child a { border-left: none; }
  .nav-menu a.active::after,
  .nav-menu .current-menu-item > a::after { left: 20px; right: 20px; bottom: 4px; }

  /* Lock body scroll while drawer open */
  body.nav-open { overflow: hidden; }
}

/* ===== Tablet refinement (768–991) ===== */
@media (min-width: 768px) and (max-width: 991px) {
  .navbar-inner { height: 56px; }
  .nav-drawer { width: min(360px, 60vw); }
}

/* ===== Small mobile (≤479) ===== */
@media (max-width: 479px) {
  .navbar-inner { height: 48px; gap: 4px; }
  .nav-btn { width: 38px; height: 38px; }
  .nav-actions { gap: 2px; padding-right: 4px; }
  .nav-drawer { width: 88vw; }
}

/* ===== Large desktop tweaks (≥1200) ===== */
@media (min-width: 1200px) {
  .nav-menu a { padding: 0 18px; font-size: 15px; }
  .navbar-inner { height: 54px; }
}
@media (min-width: 1440px) {
  .nav-menu a { padding: 0 22px; }
}

/* -------- Breaking ticker -------- */
.ticker {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: stretch;
  overflow: hidden;
}
.ticker-label {
  background: var(--red); color: #fff;
  padding: 0 16px;
  display: inline-flex; align-items: center;
  font-family: var(--sans); font-weight: 700; font-size: 13px;
  letter-spacing: .05em; text-transform: uppercase;
  position: relative; flex-shrink: 0;
  z-index: 2;
}
.ticker-label::after {
  content: ""; position: absolute; right: -14px; top: 0; bottom: 0; width: 14px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.ticker-track-wrap { flex: 1; overflow: hidden; padding-left: 24px; display: flex; align-items: center; height: 40px; }
.ticker-track {
  display: inline-flex; gap: 48px;
  white-space: nowrap;
  animation: tick 60s linear infinite;
  font-family: var(--serif); font-size: 14.5px; color: var(--ink-2);
}
.ticker-track a:hover { color: var(--red); }
.ticker-track span.bullet { color: var(--red); }
@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* -------- Section heading -------- */
.section { padding: 28px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 6px;
  position: relative;
}
.section-head::before {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 80px; height: 4px; background: var(--block-theme, var(--red));
}
.section-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -.01em;
  color: var(--ink);
  display: flex; align-items: center; gap: 12px;
}
.section-title .en {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  color: var(--muted); letter-spacing: .25em; text-transform: uppercase;
}
.see-more {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: var(--block-theme, var(--red)); display: inline-flex; align-items: center; gap: 4px;
}
.see-more:hover { color: color-mix(in srgb, var(--block-theme, var(--red)) 85%, black); gap: 8px; transition: gap .2s; }

/* -------- Cards (universal) -------- */
.card {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-2px); }
.card .thumb {
  position: relative; overflow: hidden; aspect-ratio: 16/10;
  background: var(--surface-2);
}
.card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .thumb img { transform: scale(1.04); }
.cat-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--block-theme, var(--red)); color: #fff;
  font-family: var(--sans); font-weight: 700; font-size: 11px;
  padding: 4px 10px; letter-spacing: .05em;
  z-index: 2;
}
.cat-badge.blue { background: var(--blue); }
.cat-badge.gold { background: var(--gold); color: #1a1a1a; }
.card .body { padding: 12px 0 0; }
.card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 8px;
  transition: color .2s;
}
.card:hover h3 { color: var(--block-theme, var(--red)); }
.card .meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted);
  font-family: var(--sans);
}
.card .meta .author { color: var(--blue-light); font-weight: 600; }

/* -------- Hero grid -------- */
.hero {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 18px;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
  }
  .hero .lead { grid-row: span 2; }
}
.hero .lead .thumb { aspect-ratio: 16/10; }
.hero .lead h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.18;
  margin: 14px 0 10px;
  color: var(--ink);
  letter-spacing: -.01em;
}
.hero .lead p {
  font-family: var(--sans); color: var(--ink-2);
  font-size: 15.5px; line-height: 1.6;
}
.hero .lead .meta { margin-top: 10px; }
.hero .sec-stories {
  display: grid; gap: 14px;
}
@media (min-width: 900px) {
  .hero .sec-stories { grid-template-columns: 1fr; }
  .hero { grid-template-areas: "lead secs" "lead secs"; }
}
.hero .sec-stories .mini {
  display: grid; grid-template-columns: 110px 1fr; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.hero .sec-stories .mini:last-child { border-bottom: none; }
.hero .sec-stories .mini .thumb { aspect-ratio: 1/1; }
.hero .sec-stories .mini h4 {
  font-family: var(--serif); font-weight: 700; font-size: 14.5px; line-height: 1.35; color: var(--ink);
}
.hero .sec-stories .mini:hover h4 { color: var(--red); }
.hero .sec-stories .mini .meta { font-size: 11.5px; margin-top: 6px; color: var(--muted); }

/* -------- Latest news grid -------- */
.cards-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.cards-grid.six { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (min-width: 700px) { .cards-grid.six { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cards-grid.six { grid-template-columns: repeat(3, 1fr); } }

/* -------- Sidebar -------- */
.sidebar { display: flex; flex-direction: column; gap: 26px; }
.widget {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px 16px;
}
.widget h4 {
  font-family: var(--serif); font-weight: 800; font-size: 16px;
  color: var(--blue); margin-bottom: 14px;
  border-bottom: 2px solid var(--red); padding-bottom: 6px;
  display: inline-block;
}
.trending-list { display: flex; flex-direction: column; gap: 14px; }
.trending-item {
  display: grid; grid-template-columns: 32px 1fr; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px dashed var(--line);
}
.trending-item:last-child { border-bottom: none; padding-bottom: 0; }
.trending-item .num {
  font-family: var(--serif); font-weight: 900;
  font-size: 28px; color: var(--red); line-height: 1;
  -webkit-text-stroke: 1px var(--red); color: transparent;
}
.trending-item:hover .num { color: var(--red); }
.trending-item h5 {
  font-family: var(--serif); font-weight: 600; font-size: 14px;
  line-height: 1.4; color: var(--ink);
}
.trending-item:hover h5 { color: var(--red); }
.trending-item .meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* -------- Newsletter -------- */
.newsletter p { color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.newsletter form { display: flex; flex-direction: column; gap: 8px; }
.newsletter input {
  border: 1px solid var(--line-strong); padding: 10px 12px;
  font-family: var(--sans); font-size: 13.5px; background: var(--bg); color: var(--ink);
}
.newsletter input:focus { outline: 2px solid var(--blue); outline-offset: -2px; }
.newsletter button {
  background: var(--red); color: #fff; padding: 10px 14px;
  font-family: var(--sans); font-weight: 700; font-size: 13.5px;
  letter-spacing: .04em;
}
.newsletter button:hover { background: var(--red-dark); }

/* -------- Weather widget -------- */
.weather-widget { text-align: center; }
.weather-widget .city { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.weather-widget .temp {
  font-family: var(--serif); font-weight: 900; font-size: 48px;
  color: var(--blue); line-height: 1; margin: 6px 0;
}
.weather-widget .desc { font-family: var(--sans); font-size: 13px; color: var(--ink-2); }
.weather-widget .grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.weather-widget .grid div strong { color: var(--ink); display: block; font-size: 14px; }

/* -------- Social follow -------- */
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.social-grid a {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
  padding: 12px 4px; background: var(--surface-2);
  font-family: var(--sans); font-size: 11px; color: var(--ink-2);
  transition: all .2s;
}
.social-grid a:hover { background: var(--blue); color: #fff; }
.social-grid a svg { width: 18px; height: 18px; }
.social-grid a strong { font-size: 13px; color: var(--ink); }
.social-grid a:hover strong { color: #fff; }

/* -------- Category section list (3 col) -------- */
.cat-section {
  background: var(--surface);
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.cat-section.alt { background: var(--surface-2); }

/* -------- Photo gallery (masonry) -------- */
.masonry {
  columns: 2 200px;
  column-gap: 12px;
}
.masonry .tile {
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative; overflow: hidden;
  border-radius: 2px;
}
.masonry .tile img { width: 100%; height: auto; transition: transform .5s; }
.masonry .tile:hover img { transform: scale(1.06); }
.masonry .tile .cap {
  position: absolute; inset: auto 0 0 0;
  padding: 24px 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
  color: #fff; font-family: var(--serif); font-size: 13.5px; font-weight: 600;
}

/* -------- Video section -------- */
.video-section { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .video-section { grid-template-columns: 2fr 1fr; } }
.video-feature {
  position: relative; aspect-ratio: 16/9; overflow: hidden; background: #000;
}
.video-feature img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-feature .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.play-btn {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 0 rgba(200,16,46,.5);
  animation: pulse 2s infinite;
}
.play-btn svg { width: 28px; height: 28px; margin-left: 4px; }
.video-feature .info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
  color: #fff;
}
.video-feature .info h3 { font-family: var(--serif); font-size: 20px; }
.video-feature .info .meta { font-family: var(--sans); font-size: 12px; opacity: .85; margin-top: 4px; }
.video-list { display: flex; flex-direction: column; gap: 12px; }
.video-list .item {
  display: grid; grid-template-columns: 120px 1fr; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.video-list .item .thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.video-list .item .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M8 5v14l11-7z'/></svg>") center/24px no-repeat,
              rgba(0,0,0,.25);
}
.video-list h5 { font-family: var(--serif); font-size: 13.5px; line-height: 1.35; }
.video-list .meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* -------- Horoscope -------- */
.zodiac-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.zodiac-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px 14px; text-align: center;
  position: relative; overflow: hidden;
  transition: all .3s;
}
.zodiac-card::before {
  content: ""; position: absolute; top: -30px; right: -30px;
  width: 100px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,.18), transparent 70%);
}
.zodiac-card:hover {
  border-color: var(--red); transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.zodiac-card .symbol {
  font-family: var(--serif); font-size: 32px; color: var(--blue);
  margin-bottom: 4px;
}
.zodiac-card .name {
  font-family: var(--serif); font-weight: 800; font-size: 18px;
  color: var(--ink); margin-bottom: 4px;
}
.zodiac-card .en {
  font-family: var(--sans); font-size: 11px; color: var(--muted);
  letter-spacing: .15em; text-transform: uppercase; margin-bottom: 8px;
}
.zodiac-card .preview {
  font-family: var(--sans); font-size: 12.5px; color: var(--ink-2);
  line-height: 1.5; min-height: 54px;
}

/* -------- Editorial -------- */
.editorial-grid {
  display: grid; gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .editorial-grid { grid-template-columns: 1fr 1fr; } }
.editorial-card {
  background: var(--surface);
  border-left: 4px solid var(--red);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.editorial-card .label {
  font-family: var(--sans); font-size: 11px; color: var(--red);
  letter-spacing: .25em; text-transform: uppercase; font-weight: 700;
}
.editorial-card h3 {
  font-family: var(--serif); font-weight: 800;
  font-size: 22px; line-height: 1.3; margin: 8px 0 12px;
  color: var(--ink);
}
.editorial-card p {
  font-family: var(--sans); font-size: 14.5px; color: var(--ink-2);
  line-height: 1.65;
}
.editorial-card .author {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}
.editorial-card .author .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 800;
}
.editorial-card .author .name { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--ink); }
.editorial-card .author .role { font-size: 12px; color: var(--muted); }

/* -------- Poll widget -------- */
.poll {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff; padding: 22px 18px;
}
.poll h4 { color: #fff; border-bottom-color: var(--gold); }
.poll .q { font-family: var(--serif); font-size: 16px; margin-bottom: 14px; }
.poll .options { display: flex; flex-direction: column; gap: 8px; }
.poll .opt {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  padding: 10px 12px; text-align: left; color: #fff;
  font-family: var(--sans); font-size: 13.5px;
  transition: all .2s; cursor: pointer; width: 100%;
}
.poll .opt:hover { background: rgba(255,255,255,.18); }
.poll .opt.voted { background: var(--gold); color: #1a1a1a; border-color: var(--gold); }

/* -------- App promo -------- */
.app-promo {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff; padding: 36px 24px;
  display: grid; gap: 20px; grid-template-columns: 1fr;
  align-items: center; margin: 32px 0;
  position: relative; overflow: hidden;
}
.app-promo::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
@media (min-width: 700px) { .app-promo { grid-template-columns: 1fr auto; } }
.app-promo h3 {
  font-family: var(--serif); font-size: 26px; font-weight: 800;
  margin-bottom: 6px;
}
.app-promo p { font-family: var(--sans); opacity: .92; max-width: 600px; }
.app-buttons { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.app-buttons a {
  background: #000; color: #fff; padding: 10px 16px;
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,.2);
  font-family: var(--sans); font-size: 12px;
}
.app-buttons a strong { font-size: 15px; display: block; }
.app-buttons a svg { width: 22px; height: 22px; }

/* -------- Footer -------- */
.footer {
  background: var(--footer-bg, #0a0e14); color: #cdd1d8;
  padding: 50px 0 0;
  margin-top: 40px;
}
.footer .container { padding-top: 0; }
.footer-grid {
  display: grid; gap: 30px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h5 {
  font-family: var(--serif); font-weight: 800; font-size: 16px;
  color: #fff; margin-bottom: 14px; padding-bottom: 6px;
  border-bottom: 2px solid var(--red); display: inline-block;
}
.footer-about .logo-name { font-size: 28px; text-align: left; }
.footer-about .logo { align-items: flex-start; }
.footer-about p { font-size: 13.5px; line-height: 1.65; margin: 12px 0; color: #9aa0a8; }
.footer ul li { margin-bottom: 8px; font-size: 13.5px; }
.footer ul li a { color: #cdd1d8; transition: color .2s; }
.footer ul li a:hover { color: var(--red); }
.footer ul li a::before { content: "›"; color: var(--red); margin-right: 8px; }
.footer .social-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.footer .social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  background: #1a2030; display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.footer .social-row a:hover { background: var(--red); }
.footer .social-row svg { width: 16px; height: 16px; color: #fff; }
.footer-bottom {
  margin-top: 40px; padding: 18px 0;
  border-top: 1px solid #1a2030;
  text-align: center; font-size: 12.5px; color: #76808c;
}
.footer-bottom strong { color: #fff; }

/* -------- Misc -------- */
.divider-paper {
  height: 28px; background: var(--surface-2);
  background-image: repeating-linear-gradient(90deg, transparent, transparent 38px, rgba(0,0,0,.04) 38px, rgba(0,0,0,.04) 40px);
}

.live-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--red); color: #fff;
  font-family: var(--sans); font-size: 10px; font-weight: 700;
  padding: 2px 8px; letter-spacing: .1em;
}
.live-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; animation: pulse 1.4s infinite;
}

/* -------- Search overlay -------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,14,20,.85); backdrop-filter: blur(8px);
  display: none; align-items: flex-start; justify-content: center;
  padding-top: 18vh;
}
.search-overlay.open { display: flex; }
.search-box {
  width: min(640px, 92%);
  background: var(--surface); padding: 24px;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.search-box h3 { font-family: var(--serif); margin-bottom: 12px; }
.search-box input {
  width: 100%; padding: 14px 16px; font-size: 16px;
  font-family: var(--sans); border: 2px solid var(--ink);
  background: var(--bg); color: var(--ink);
}
.search-box .filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.search-box .filters button {
  padding: 6px 12px; font-size: 12px; font-family: var(--sans);
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.search-box .filters button:hover { background: var(--red); color: #fff; border-color: var(--red); }
.search-close {
  position: absolute; top: 16px; right: 16px;
  color: #fff; font-size: 24px;
}

/* -------- Reading progress (article) -------- */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: transparent; z-index: 60;
}
.read-progress::after {
  content: ""; display: block; height: 100%;
  width: var(--p, 0%); background: var(--red);
  transition: width .1s;
}

/* -------- Article page -------- */
.breadcrumb {
  font-family: var(--sans); font-size: 12.5px; color: var(--muted);
  padding: 16px 0;
}
.breadcrumb a { color: var(--blue-light); }
.breadcrumb a:hover { color: var(--red); }
.article-header { margin-bottom: 24px; }
.article-header .cat-badge { position: static; display: inline-block; margin-bottom: 12px; }
.article-header h1 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(28px, 4vw, 42px); line-height: 1.2;
  color: var(--ink); margin-bottom: 14px;
}
.article-header .lede {
  font-family: var(--sans); font-size: 17px; color: var(--ink-2);
  line-height: 1.6;
}
.article-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 0; margin: 18px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.article-meta .author-mini { display: flex; align-items: center; gap: 10px; }
.article-meta .author-mini .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 800; font-size: 14px;
}
.article-meta .author-mini strong { color: var(--ink); font-family: var(--sans); }
.share-buttons { display: flex; gap: 6px; margin-left: auto; }
.share-buttons a {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.share-buttons a:hover { background: var(--red); color: #fff; }
.share-buttons svg { width: 14px; height: 14px; }
.article-image { margin-bottom: 24px; }
.article-image img { width: 100%; }
.article-image .caption {
  font-size: 12px; color: var(--muted);
  padding: 6px 0; font-family: var(--sans);
  border-bottom: 1px solid var(--line);
}
.toc {
  background: var(--surface-2); padding: 18px 22px;
  border-left: 4px solid var(--blue); margin: 24px 0;
}
.toc h5 {
  font-family: var(--serif); font-weight: 800; font-size: 15px;
  margin-bottom: 10px; color: var(--blue);
}
.toc ol { padding-left: 20px; font-size: 14px; }
.toc ol li { margin-bottom: 4px; }
.toc ol li a { color: var(--ink-2); }
.toc ol li a:hover { color: var(--red); }
.article-body {
  font-family: var(--serif); font-size: 17px; line-height: 1.8;
  color: var(--ink-2);
}
.article-body h2 {
  font-family: var(--serif); font-weight: 800; font-size: 24px;
  margin: 28px 0 12px; color: var(--ink);
}
.article-body p { margin-bottom: 18px; }
.article-body blockquote {
  border-left: 4px solid var(--red); padding: 8px 22px;
  margin: 24px 0; font-style: italic; color: var(--ink);
  font-size: 19px; line-height: 1.6;
}
.author-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface-2); padding: 22px;
  margin: 32px 0; border-top: 3px solid var(--red);
}
.author-box .avatar-lg {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 800; font-size: 24px;
  flex-shrink: 0;
}
.author-box h5 { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.author-box .role { font-size: 12px; color: var(--red); letter-spacing: .15em; text-transform: uppercase; }
.author-box p { font-family: var(--sans); font-size: 13.5px; color: var(--ink-2); margin-top: 8px; }
.prev-next {
  display: grid; gap: 12px; grid-template-columns: 1fr;
  margin: 24px 0;
}
@media (min-width: 700px) { .prev-next { grid-template-columns: 1fr 1fr; } }
.pn-card {
  background: var(--surface); border: 1px solid var(--line);
  padding: 14px 16px;
}
.pn-card .dir {
  font-family: var(--sans); font-size: 11px; color: var(--red);
  letter-spacing: .2em; text-transform: uppercase; font-weight: 700;
}
.pn-card h4 { font-family: var(--serif); font-size: 15px; margin-top: 6px; color: var(--ink); }
.pn-card.next { text-align: right; }
.comments {
  margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--ink);
}
.comments h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 18px; }
.comment {
  display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.comment .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface-2); color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 800;
}
.comment .body strong { font-family: var(--sans); font-size: 13.5px; }
.comment .body .time { font-size: 11.5px; color: var(--muted); margin-left: 8px; }
.comment .body p { font-family: var(--sans); font-size: 14px; margin-top: 4px; color: var(--ink-2); }
.comment-form {
  display: grid; gap: 10px; margin-top: 18px;
}
.comment-form textarea {
  border: 1px solid var(--line-strong); padding: 12px; font-family: var(--sans);
  font-size: 14px; min-height: 100px; background: var(--bg); color: var(--ink);
}
.comment-form button {
  background: var(--red); color: #fff; padding: 12px 18px;
  font-family: var(--sans); font-weight: 700; justify-self: start;
}

/* -------- Animations on load -------- */
.fade-up { animation: fadeUp .6s ease-out both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* -------- Sticky side ad (desktop) -------- */
@media (min-width: 1280px) {
  .side-ad-fixed {
    position: fixed; top: 120px; right: 14px;
    width: 160px;
  }
}

/* =====================================================================
   v2.0 additions — premium components added by the upgrade
   ===================================================================== */

/* Breaking flag on single articles */
.breaking-flag{
  display:inline-block;background:var(--red);color:#fff;
  font-family:var(--sans);font-weight:700;letter-spacing:.06em;
  padding:6px 12px;border-radius:2px;font-size:12px;margin-bottom:10px;
  animation:rd-pulse 2s ease-in-out infinite;
}
.static-cat-badge{position:static;display:inline-block;margin-bottom:12px;}
@keyframes rd-pulse{0%,100%{opacity:1}50%{opacity:.65}}

/* Latest CTA & generic primary button */
.latest-cta{text-align:center;margin-top:24px;}
.btn-primary{
  display:inline-block;background:var(--red);color:#fff;
  padding:12px 28px;font-family:var(--sans);font-weight:700;letter-spacing:.04em;
  transition:transform .15s ease,background .15s ease;text-decoration:none;
}
.btn-primary:hover{background:#a50e26;transform:translateY(-1px);}

/* Top-bar live weather (icon + city + temp) */
.topbar .weather{display:inline-flex;gap:6px;align-items:center;}
.topbar .weather .icon{font-size:14px;line-height:1;}

/* Sidebar weather widget grid (re-used by live data) */
.weather-widget .grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px;font-size:13px;}
.weather-widget .grid strong{display:block;font-family:var(--sans);font-weight:700;color:var(--red);}

/* Trending tabs */
.trending-widget .trend-tabs{display:flex;gap:0;margin:8px 0 14px;border:1px solid var(--line);}
.trending-widget .trend-tab{
  flex:1;background:transparent;border:none;cursor:pointer;
  padding:8px 6px;font-family:var(--sans);font-size:12px;font-weight:600;
  color:var(--ink-2);border-right:1px solid var(--line);transition:.15s;
}
.trending-widget .trend-tab:last-child{border-right:none;}
.trending-widget .trend-tab.active{background:var(--red);color:#fff;}

/* AJAX search results */
.ajax-results{margin-top:18px;display:flex;flex-direction:column;gap:8px;max-height:50vh;overflow-y:auto;}
.ajax-results .ajax-item{
  display:flex;gap:12px;padding:10px;background:var(--surface-2);
  border:1px solid var(--line);text-decoration:none;color:var(--ink);
  transition:.15s;
}
.ajax-results .ajax-item:hover{background:var(--bg);border-color:var(--red);}
.ajax-results .ajax-item img{width:80px;height:60px;object-fit:cover;flex-shrink:0;}
.ajax-results .ajax-cat{
  font-family:var(--sans);font-size:11px;color:var(--red);
  font-weight:700;text-transform:uppercase;letter-spacing:.05em;
}
.ajax-results .ajax-item h5{font-family:var(--serif);font-size:14px;line-height:1.35;margin:2px 0;}
.ajax-results .ajax-item small{color:var(--muted);font-size:11px;}
.ajax-loading,.ajax-empty{text-align:center;padding:18px;color:var(--muted);font-family:var(--sans);}
.ajax-view-all{
  display:block;text-align:center;padding:10px;background:var(--ink);color:#fff;
  font-family:var(--sans);font-weight:700;letter-spacing:.04em;text-decoration:none;
}
.search-overlay select{
  padding:10px;margin-top:10px;width:100%;
  border:1px solid var(--line-strong);background:var(--bg);color:var(--ink);
  font-family:var(--sans);
}

/* Search filter bar (search.php) */
.search-filter-bar{
  display:grid;gap:12px;background:var(--surface-2);
  padding:18px;border:1px solid var(--line);margin-bottom:24px;
}
.search-filter-bar input[type=search]{
  padding:12px 14px;font-family:var(--sans);font-size:15px;
  border:1px solid var(--line-strong);background:var(--bg);color:var(--ink);
}
.search-filter-bar .filters-row{display:grid;gap:12px;grid-template-columns:1fr 1fr 1fr;}
.search-filter-bar select{
  padding:10px;border:1px solid var(--line-strong);
  background:var(--bg);color:var(--ink);font-family:var(--sans);
}
.search-filter-bar button{
  background:var(--red);color:#fff;padding:10px 16px;
  font-family:var(--sans);font-weight:700;letter-spacing:.04em;border:none;cursor:pointer;
}
@media (max-width:720px){
  .search-filter-bar .filters-row{grid-template-columns:1fr;}
}

/* Ad slots & ad wrappers */
.rajyo-ad{margin:18px 0;text-align:center;overflow:hidden;}
.rajyo-ad-wrap{padding:12px 0;background:var(--surface-2);}
.rajyo-ad-wrap.header{border-bottom:1px solid var(--line);}
.rajyo-ad-wrap.footer{border-top:1px solid var(--line);}
.rajyo-ad-placeholder{
  display:block;padding:18px;background:repeating-linear-gradient(45deg,#f0eee9,#f0eee9 8px,#e8e6e1 8px,#e8e6e1 16px);
  color:#666;font-family:var(--sans);font-size:12px;border:1px dashed #b0a99e;
}
[data-theme=dark] .rajyo-ad-placeholder{background:#1f2127;color:#aaa;border-color:#3a3d44;}
.rajyo-ad-in_article{margin:24px 0;padding:8px;border:1px dashed var(--line);}

/* Push CTA (above footer) */
.push-cta{background:linear-gradient(135deg,var(--red),#a50e26);color:#fff;padding:24px 0;margin-top:30px;}
.push-cta .container{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;}
.push-cta h4{font-family:var(--serif);font-size:22px;margin:0 0 4px;}
.push-cta p{margin:0;opacity:.9;font-family:var(--sans);}
.rajyo-push-btn{
  background:#fff;color:var(--red);border:none;padding:12px 24px;font-weight:700;
  font-family:var(--sans);cursor:pointer;letter-spacing:.03em;border-radius:2px;
}
.rajyo-push-btn:hover{background:#ffeaea;}

/* Author hero (author.php) */
.author-hero{
  display:flex;gap:24px;background:var(--surface-2);
  padding:30px;border:1px solid var(--line);align-items:center;flex-wrap:wrap;
}
.author-hero .author-avatar{
  width:140px;height:140px;border-radius:50%;
  border:4px solid var(--red);object-fit:cover;flex-shrink:0;
}
.author-hero h1{font-family:var(--serif);font-weight:900;font-size:32px;margin:0 0 4px;}
.author-hero .role{color:var(--red);font-family:var(--sans);font-weight:700;letter-spacing:.04em;}
.author-hero .bio{font-family:var(--serif);color:var(--ink-2);margin:10px 0 14px;max-width:680px;}
.author-social{display:flex;gap:8px;flex-wrap:wrap;}
.author-social a{
  padding:6px 12px;background:var(--bg);border:1px solid var(--line);
  font-family:var(--sans);font-size:13px;color:var(--ink);text-decoration:none;
}
.author-social a:hover{background:var(--red);color:#fff;border-color:var(--red);}

/* Single-post author box (improved) */
.author-box{display:flex;gap:18px;margin-top:32px;padding:20px;background:var(--surface-2);border:1px solid var(--line);align-items:flex-start;}
.author-box img,.author-box .avatar-lg{border-radius:50%;width:92px;height:92px;flex-shrink:0;background:var(--red);color:#fff;display:flex;align-items:center;justify-content:center;font-size:36px;font-weight:900;font-family:var(--serif);}
.author-box .role{color:var(--red);font-family:var(--sans);font-size:13px;font-weight:700;}
.author-box .bio{margin:8px 0;color:var(--ink-2);font-family:var(--serif);font-size:14px;line-height:1.55;}
.author-box .author-mini .role{display:inline-block;margin-left:6px;font-size:12px;}

/* Related posts heading */
.related-posts{margin-top:32px;}
.related-title{
  font-family:var(--serif);font-weight:800;font-size:22px;
  border-bottom:2px solid var(--ink);padding-bottom:6px;margin-bottom:18px;
}

/* Category description block */
.cat-description{font-family:var(--serif);color:var(--ink-2);margin:6px 0 20px;max-width:800px;line-height:1.55;}

/* Empty states */
.empty-state{padding:36px;text-align:center;color:var(--muted);}
.empty-state h3{font-family:var(--serif);margin-bottom:10px;}

/* 404 */
.error-404{padding:50px 30px;text-align:center;}
.error-code{font-family:var(--serif);font-weight:900;font-size:clamp(56px,10vw,110px);color:var(--red);line-height:1;}
.error-404 h2{font-family:var(--serif);margin:10px 0;}
.error-404 p{color:var(--muted);max-width:520px;margin:10px auto 22px;}
.mt-30{margin-top:30px;}

/* Branded fallback image */
.rajyo-fallback-img{width:100%;height:100%;object-fit:cover;background:#0d2548;}

/* Popular tags (search empty) */
.popular-tags{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:14px;}
.popular-tags a{padding:6px 12px;background:var(--surface-2);font-family:var(--sans);font-size:13px;border:1px solid var(--line);color:var(--ink);text-decoration:none;}
.popular-tags a:hover{border-color:var(--red);color:var(--red);}

/* Education grid (used in old index.php — kept for backwards compat) */
@media (min-width:900px){.edu-grid{grid-template-columns:1fr 1fr 1fr 1fr !important;}}

/* Pagination defaults */
.pagination{display:flex;justify-content:center;gap:8px;margin-top:30px;flex-wrap:wrap;}
.pagination .page-numbers{
  padding:8px 14px;background:var(--surface-2);border:1px solid var(--line);
  color:var(--ink);text-decoration:none;font-family:var(--sans);font-weight:600;
}
.pagination .page-numbers.current{background:var(--red);color:#fff;border-color:var(--red);}
.pagination .page-numbers:hover{background:var(--ink);color:#fff;border-color:var(--ink);}

/* Mobile readability tweaks for Bengali */
@media (max-width:600px){
  body{font-size:16.5px;line-height:1.65;}
  .article-body{font-size:17px;line-height:1.8;}
  .nav-menu{font-size:15px;}
  h1{font-size:26px;line-height:1.3;}
  .cards-grid{grid-template-columns:1fr;}
  .author-hero{padding:20px;gap:16px;text-align:center;}
  .author-hero .author-avatar{width:96px;height:96px;}
  .push-cta .container{flex-direction:column;text-align:center;}
}


/* --- NEW HEADER ARCHITECTURE --- */
.topbar-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; flex-wrap: wrap; }
.topbar-left, .topbar-center, .topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-center { flex: 1; justify-content: center; }

.masthead-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; flex-wrap: wrap; padding: 15px 0; gap: 20px; }
.mast-col { display: flex; align-items: center; }

/* Layout Types */
.masthead.layout-1 .mast-logo { order: 1; flex: 1; justify-content: flex-start; }
.masthead.layout-1 .mast-ad { order: 3; justify-content: flex-end; }
.masthead.layout-1 .mast-date { display: none; } /* Tagline hidden in layout 1 if we only want logo+ad, but wait, original had tagline. We'll hide tagline by default for layout 1 unless user wants it. Let's keep it order 2. */
.masthead.layout-1 .mast-date { order: 2; flex: 1; justify-content: center; text-align: center; }

.masthead.layout-2 .mast-logo { order: 2; flex: 1; justify-content: center; }
.masthead.layout-2 .mast-ad { order: 3; flex: 1; justify-content: flex-end; }
.masthead.layout-2 .mast-date { order: 1; flex: 1; justify-content: flex-start; }

.masthead.layout-3 .mast-date { order: 2; flex: 1; justify-content: center; text-align: center; }
.masthead.layout-3 .mast-logo { order: 1; flex: 1; justify-content: flex-start; }
.masthead.layout-3 .mast-ad { order: 3; flex: 1; justify-content: flex-end; }

/* Logo Sizing */
.site-logo-wrap { display: flex; align-items: center; height: var(--logo-max-h); margin: 0; padding: 0; }
.site-logo-wrap img { width: auto; height: 100%; max-height: var(--logo-max-h); object-fit: contain; }
.site-logo-wrap a.logo-link { display: flex; align-items: center; text-decoration: none; height: 100%; }

/* Responsive adjustments */
@media (max-width: 991px) {
  .masthead.layout-1 .mast-logo, .masthead.layout-2 .mast-logo, .masthead.layout-3 .mast-logo { order: 1; flex: 1 1 100%; justify-content: center; margin-bottom: 15px; }
  .masthead.layout-1 .mast-ad, .masthead.layout-2 .mast-ad, .masthead.layout-3 .mast-ad { order: 2; flex: 1 1 100%; justify-content: center; }
  .masthead .mast-date { display: none; } /* Hide tagline on tablet/mobile to save space */
  .topbar-center { display: none; } /* Hide weather in center on mobile */
}

/* Sticky Header Options */
.navbar { position: relative; z-index: 100; }
@media (min-width: 992px) {
  .navbar.sticky-desktop { position: sticky; top: 0; }
}
@media (max-width: 991px) {
  .navbar.sticky-mobile { position: sticky; top: 0; }
}

/* Special Event Badge */
.nav-special-event a {
  background-color: var(--event-color, #e3000f);
  color: #fff !important;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
}
.nav-special-event a::before { content: attr(data-badge) " "; opacity: 0.8; font-size: 0.9em; }



/* --- MASTHEAD & LOGO TAGLINE ADJUSTMENTS --- */
.mast-logo { flex-direction: column; align-items: flex-start; justify-content: center; }
.masthead.layout-2 .mast-logo { align-items: center; }
.masthead-tagline { font-size: 0.9em; opacity: 0.8; }

