/* ================================================================
   INDIAN News Wire — Premium Frontend v5
   Upgraded from v4 — all features preserved + premium polish
   ================================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f4f5f8;
  color: #0a0f1e;
  line-height: 1.55;
  overflow-x: hidden;
  width: 100%;
  min-width: 320px;
}

iframe, object, embed, video { max-width: 100% !important; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; }

/* ── CSS Variables ── */
:root {
  --red:        #d10000;
  --red2:       #ff3333;
  --blue:       #1b3f92;
  --blue2:      #2d5fda;
  --bg:         #f4f5f8;
  --white:      #ffffff;
  --ink:        #0a0f1e;
  --ink2:       #1e2535;
  --muted:      #5a6478;
  --border:     #e0e3ec;
  --border2:    #c8cedd;
  --surface2:   #f0f2f8;
  --nav-h:      80px;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans:  'Segoe UI', Arial, sans-serif;
  --r:          8px;
  --r2:         12px;
  --r3:         16px;
  --sh:         0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
  --sh2:        0 2px 8px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.05);
  --sh3:        0 8px 32px rgba(0,0,0,.12), 0 24px 64px rgba(0,0,0,.08);
}

/* ── Dark Mode ── */
.theme-dark {
  --bg:      #08111e;
  --white:   #0d1a2e;
  --ink:     #e8f0ff;
  --ink2:    #b0c0de;
  --muted:   #7080a0;
  --border:  rgba(255,255,255,0.09);
  --border2: rgba(255,255,255,0.15);
  --surface2:#111f35;
  --sh:      0 1px 3px rgba(0,0,0,.3);
  --sh2:     0 4px 20px rgba(0,0,0,.35);
}

/* ── Utilities ── */
.container { width: min(calc(100% - 32px), 1260px); margin: 0 auto; }
.flex { display: flex; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.eyebrow { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--red); }
.cat-badge {
  display: inline-block; padding: 2px 9px;
  background: var(--red); color: #fff; border-radius: 3px;
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
}
.mt-lg  { margin-top: 24px; }
.muted  { color: var(--muted); }

/* ── Animations ── */
@keyframes blink   { 0%,100%{ opacity:1 } 50%{ opacity:.3 } }
@keyframes marquee { 0%{ transform:translateX(0) } 100%{ transform:translateX(-50%) } }
@keyframes fadeIn  { from{ opacity:0; transform:translateY(6px) } to{ opacity:1; transform:none } }
@keyframes pulse   { 0%,100%{ box-shadow:0 0 0 0 rgba(209,0,0,.4) } 50%{ box-shadow:0 0 0 6px rgba(209,0,0,0) } }
@keyframes slideInLeft { from{ transform:translateX(-100%) } to{ transform:translateX(0) } }

/* ── Reading Progress ── */
#readingProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--red), #ff6b6b);
  z-index: 9999; transition: width 0.1s linear;
}

/* ================================================================
   TOPBAR
   ================================================================ */
.topbar {
  background: #0a0f1e;
  color: rgba(255,255,255,0.65);
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 38px; gap: 16px;
}
.topbar-left  { display: flex; align-items: center; gap: 14px; overflow: hidden; min-width: 0; }
.topbar-date  { white-space: nowrap; font-size: 12px; }
.topbar-tag   { white-space: nowrap; color: rgba(255,255,255,.4); }
.topbar-sep   { color: rgba(255,255,255,.2); }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Weather / AQI chips */
.topbar-weather,
.topbar-aqi,
.topbar-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: rgba(255,255,255,0.65);
  padding: 2px 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px; white-space: nowrap;
}

.btn-theme {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-size: 12px; cursor: pointer;
  transition: background 0.15s;
}
.btn-theme:hover { background: rgba(255,255,255,0.14); }

.btn-livetv {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 14px; border-radius: 999px;
  background: var(--red);
  color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
  transition: background .15s;
}
.btn-livetv:hover { background: #b00000; }
.livetv-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }

/* ================================================================
   BREAKING TICKER — seamless zero-delay loop
   ================================================================ */
.ticker-bar {
  background: var(--red);
  overflow: hidden;
  height: 32px;
  display: flex; align-items: center;
}
.ticker-inner { display: flex; align-items: center; height: 100%; width: 100%; overflow: hidden; }
.ticker-tag {
  background: rgba(0,0,0,0.25);
  color: #fff; padding: 0 14px; height: 100%;
  display: flex; align-items: center;
  font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em;
  white-space: nowrap; flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.ticker-scroll { flex: 1; overflow: hidden; height: 100%; display: flex; align-items: center; }
.ticker-track {
  display: inline-flex; white-space: nowrap;
  width: max-content;
  animation: marquee 60s linear infinite;
  animation-delay: 0s;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  color: #fff; font-size: 13px; font-weight: 500;
  padding: 0 32px;
  display: inline-flex; align-items: center; gap: 8px;
}
.ticker-item::before { content: '⬥'; font-size: 8px; opacity: 0.6; }
.ticker-item:first-child::before { display: none; }
.ticker-item a { color: #fff; }

/* ================================================================
   MAIN NAV — NDTV style, strict desktop layout
   ================================================================ */
.main-nav {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky; top: 0; z-index: 500;
  box-shadow: var(--sh);
}
.nav-inner {
  display: flex; align-items: center;
  height: var(--nav-h); gap: 0; overflow: visible;
}
.nav-brand { flex-shrink: 0; margin-right: 20px; position: relative; z-index: 10; }
.nav-brand img { height: 112px; width: auto; max-width: 240px; object-fit: contain; }

/* Desktop nav menu — horizontal scroll if overflow */
.nav-menu {
  display: flex; align-items: center;
  flex: 1; min-width: 0;
  list-style: none !important; padding: 0 !important; margin: 0 !important;
  overflow-x: auto; overflow-y: visible;
  scrollbar-width: none;
  white-space: nowrap;
}
.nav-menu::-webkit-scrollbar { display: none; }
.nav-menu > li { list-style: none !important; flex-shrink: 0; position: relative; }
.nav-menu > li > a {
  display: flex; align-items: center; gap: 5px;
  height: var(--nav-h); padding: 0 12px;
  font-size: 13.5px; font-weight: 600;
  color: var(--ink2);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.is-active { color: var(--red); border-bottom-color: var(--red); }
.nav-live > a { color: var(--red) !important; font-weight: 700 !important; }
.live-dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--red);
  animation: pulse 2s infinite; flex-shrink: 0;
}

/* "More" dropdown */
.nav-more-dropdown { position: relative; }
.nav-more-btn {
  display: flex; align-items: center; gap: 4px;
  height: var(--nav-h); padding: 0 12px;
  font-size: 13.5px; font-weight: 600; color: var(--ink2);
  border: none; border-bottom: 3px solid transparent;
  background: transparent; cursor: pointer; white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.nav-more-btn:hover,
.nav-more-dropdown:hover .nav-more-btn { color: var(--red); border-bottom-color: var(--red); }
.more-arrow { font-size: 10px; transition: transform .2s; }
.nav-more-dropdown:hover .more-arrow { transform: rotate(180deg); }

.more-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: var(--white); min-width: 200px;
  box-shadow: var(--sh3); border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: 0 0 var(--r2) var(--r2);
  padding: 6px 0; z-index: 9999;
  flex-direction: column;
  animation: fadeIn .15s ease;
}
.nav-more-dropdown:hover .more-menu,
.nav-more-dropdown:focus-within .more-menu { display: flex; }
.more-menu li a {
  display: block; padding: 10px 18px;
  font-size: 13.5px; font-weight: 500; color: var(--ink);
  transition: all .15s; white-space: nowrap;
}
.more-menu li a:hover { background: var(--surface2); color: var(--red); padding-left: 22px; }
.more-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.nav-search-box {
  display: flex; align-items: center;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  overflow: hidden; height: 36px;
  transition: border-color 0.15s; position: relative;
}
.nav-search-box:focus-within { border-color: var(--blue); background: var(--white); }
.nav-search-box input {
  padding: 0 12px; background: transparent;
  border: none; outline: none;
  font-size: 13.5px; color: var(--ink); width: 190px; height: 100%;
}
.nav-search-box input::placeholder { color: var(--muted); }
.nav-search-box button {
  padding: 0 12px; background: transparent;
  border: none; border-left: 1px solid var(--border);
  color: var(--muted); cursor: pointer; height: 100%;
  font-size: 16px; transition: color 0.15s;
}
.nav-search-box button:hover { color: var(--red); }

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  background: transparent; cursor: pointer; color: var(--ink2);
  font-size: 20px; transition: background .15s; flex-shrink: 0;
}
.nav-hamburger:hover { background: var(--surface2); }
.ham-line { display: block; width: 18px; height: 2px; background: var(--ink2); border-radius: 2px; transition: all .25s; }
.nav-hamburger.active .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Quicklinks bar */
.quicklinks-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.quicklinks-inner {
  display: flex; align-items: center;
  height: 34px; gap: 0; overflow-x: auto;
  scrollbar-width: none;
}
.quicklinks-inner::-webkit-scrollbar { display: none; }
.quicklinks-label {
  font-size: 11px; font-weight: 800; color: var(--red);
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0 16px 0 0; white-space: nowrap;
  border-right: 1px solid var(--border);
  margin-right: 12px; height: 100%;
  display: flex; align-items: center; flex-shrink: 0;
}
.quicklinks-inner a {
  font-size: 13px; font-weight: 500;
  color: var(--ink2); white-space: nowrap;
  padding: 0 14px; height: 100%;
  display: flex; align-items: center;
  transition: color 0.15s;
  border-right: 1px solid var(--border); flex-shrink: 0;
}
.quicklinks-inner a:hover { color: var(--red); }

/* ── Dark mode nav ── */
.theme-dark .topbar { background: #030810; }
.theme-dark .main-nav { background: var(--white); border-bottom-color: var(--border); }
.theme-dark .nav-menu > li > a { color: rgba(232,240,255,.75); }
.theme-dark .nav-menu > li > a:hover { color: #fff; }
.theme-dark .nav-more-btn { color: rgba(232,240,255,.75); }
.theme-dark .nav-more-btn:hover { color: #fff; }
.theme-dark .nav-search-box { background: rgba(255,255,255,.06); border-color: var(--border); }
.theme-dark .nav-search-box input { color: #fff; }
.theme-dark .quicklinks-bar { background: var(--white); border-color: var(--border); }
.theme-dark .quicklinks-inner a { color: rgba(232,240,255,.7); }
.theme-dark .more-menu { background: #0d1a2e; border-color: var(--border); }
.theme-dark .more-menu li a { color: var(--ink); }
.theme-dark .ham-line { background: rgba(255,255,255,.8); }

/* ================================================================
   MOBILE SLIDE MENU (full-screen, slides from left)
   ================================================================ */
.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 8888;
  opacity: 0; transition: opacity .3s;
  backdrop-filter: blur(2px);
}
.mobile-overlay.open { display: block; opacity: 1; }

.mobile-menu {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(88vw, 360px);
  background: #0a1428;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.25,.8,.25,1);
  overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.1) transparent;
}
.mobile-menu.open { transform: translateX(0); }

.mm-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.mm-logo { height: 36px; object-fit: contain; background: #fff; border-radius: 6px; padding: 4px 8px; }
.mm-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: none;
  color: rgba(255,255,255,.7); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.mm-close:hover { background: rgba(255,255,255,.15); }

.mm-search { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.07); flex-shrink: 0; }
.mm-search form {
  display: flex; border-radius: var(--r); overflow: hidden;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
}
.mm-search input { flex: 1; padding: 9px 14px; background: transparent; border: none; color: #fff; font-size: 14px; outline: none; }
.mm-search input::placeholder { color: rgba(255,255,255,.3); }
.mm-search button { padding: 0 14px; background: var(--red); border: none; color: #fff; font-size: 16px; cursor: pointer; }

.mm-shortcuts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.07); flex-shrink: 0;
}
.mm-shortcut {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 13px; border-radius: var(--r);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.8); font-size: 13px; font-weight: 600;
  transition: all .15s; text-decoration: none;
}
.mm-shortcut:hover { background: rgba(255,255,255,.12); color: #fff; }
.mm-shortcut.mm-live { background: rgba(209,0,0,.2); border-color: rgba(209,0,0,.3); color: #ff9090; }
.mm-shortcut.mm-live:hover { background: var(--red); color: #fff; }
.ms-ic { font-size: 18px; }

.mm-section-title {
  padding: 12px 16px 6px;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,.3); flex-shrink: 0;
}
.mm-links { display: flex; flex-direction: column; flex-shrink: 0; }
.mm-links li a {
  display: flex; align-items: center;
  padding: 12px 18px; font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.75);
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: all .15s;
}
.mm-links li a:hover { color: #fff; background: rgba(255,255,255,.05); padding-left: 22px; }
.mm-footer {
  padding: 20px 18px; margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: 11.5px; color: rgba(255,255,255,.25); line-height: 1.8; flex-shrink: 0;
}

/* Mobile menu search (legacy — inside nav-menu.is-open) */
.mobile-search { display: none !important; }
.nav-menu.is-open .mobile-search { display: flex !important; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 20px; border-radius: var(--r);
  font-size: 13.5px; font-weight: 700;
  border: none; cursor: pointer;
  transition: opacity .15s, transform .1s;
  background: var(--red); color: #fff;
  white-space: nowrap;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--border2); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero { background: var(--white); padding: 20px 0 0; }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0,1.85fr) minmax(0,1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
}
.hero-lead {
  position: relative; overflow: hidden;
  background: #000; min-height: 440px; cursor: pointer;
}
.hero-lead-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block; opacity: .88;
  transition: transform .5s, opacity .3s;
}
.hero-lead:hover .hero-lead-img { transform: scale(1.03); opacity: .95; }
.hero-lead-overlay {
  position: absolute; inset: auto 0 0;
  padding: 20px 24px 26px;
  background: linear-gradient(to top, rgba(5,10,20,.97) 0%, rgba(5,10,20,.7) 55%, transparent 100%);
  color: #fff;
}
.hero-lead-cat {
  display: inline-block; background: var(--red); color: #fff;
  padding: 2px 10px; border-radius: 3px;
  font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px;
}
.hero-lead-title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  font-weight: 700; line-height: 1.15; margin-bottom: 8px; max-width: 580px;
}
.hero-lead-meta { font-size: 12.5px; color: rgba(255,255,255,.55); }

/* Right stack — strictly vertical flex, never 2×2 grid on desktop */
.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--border);
}
.hero-stack-item {
  position: relative; overflow: hidden; background: #000;
  cursor: pointer; flex: 1; min-height: 160px;
}
.hero-stack-img {
  width: 100%; height: 100%;
  object-fit: cover; opacity: .78; display: block;
  transition: transform .4s, opacity .3s;
}
.hero-stack-item:hover .hero-stack-img { transform: scale(1.05); opacity: .9; }
.hero-stack-overlay {
  position: absolute; inset: auto 0 0;
  padding: 8px 12px 12px;
  background: linear-gradient(to top, rgba(5,10,20,.95), transparent);
  color: #fff;
}
.hero-stack-cat { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #ff8080; margin-bottom: 3px; }
.hero-stack-title { font-family: var(--font-serif); font-size: 13px; line-height: 1.25; font-weight: 700; }

/* ================================================================
   MARKET BAR (TradingView)
   ================================================================ */
.market-bar {
  background: #0f172a;
  border-bottom: 2px solid #1e293b;
  overflow: hidden;
  height: 42px;
  width: 100%;
}
.market-bar .container {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
}
.market-bar-inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  height: 42px;
  scrollbar-width: none;
}
.market-bar-inner::-webkit-scrollbar { display: none; }
.market-bar-label {
  background: var(--red); color: #fff; font-weight: 900;
  padding: 0 16px; font-size: 11px; height: 42px;
  display: flex; align-items: center; flex-shrink: 0;
  text-transform: uppercase;
}
.market-bar-item {
  display: flex; align-items: center;
  padding: 0 16px; height: 42px;
  border-right: 1px solid #1e293b;
  white-space: nowrap; flex-shrink: 0;
  text-decoration: none;
  transition: background .15s;
}
.market-bar-item:hover { background: rgba(255,255,255,.05); }
.mi-label { color: #94a3b8; font-weight: 700; font-size: 11.5px; }
.mi-val   { color: #f8fafc; font-weight: 800; margin-left: 6px; font-size: 13.5px; }
.mi-chg   { padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 800; margin-left: 8px; }
.mi-chg.up  { color: #10b981; background: rgba(16,185,129,.15); }
.mi-chg.down{ color: #ef4444; background: rgba(239,68,68,.15); }
.up   { color: #0a8c4f; }
.down { color: #c41d1d; }
.market-bar-more {
  padding: 0 16px; font-size: 12px; font-weight: 700;
  color: #38bdf8; white-space: nowrap; flex-shrink: 0;
  display: flex; align-items: center; height: 42px;
  transition: color .15s;
}
.market-bar-more:hover { color: #fff; }

/* TradingView widget containment */
.tradingview-widget-container { width: 100% !important; max-width: 100% !important; }
.tradingview-widget-container iframe { width: 100% !important; max-width: 100% !important; display: block !important; }

/* ================================================================
   NEWSROOM LAYOUT
   ================================================================ */
.newsroom { padding: 20px 0 48px; }
.newsroom-grid {
  display: grid;
  grid-template-columns: minmax(0,2.5fr) minmax(0,1fr);
  gap: 24px; align-items: start;
}
.main-col { display: flex; flex-direction: column; gap: 32px; }
.sidebar-col {
  display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: calc(var(--nav-h) + 14px);
}

/* ── Section Heading ── */
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2.5px solid var(--ink);
  padding-bottom: 8px; margin-bottom: 16px;
}
.sec-head h2 {
  font-family: var(--font-serif); font-size: 18px; font-weight: 900;
  color: var(--ink); position: relative;
}
.sec-head h2::after {
  content: ''; position: absolute; bottom: -10.5px; left: 0;
  width: 50px; height: 2.5px; background: var(--red);
}
.sec-head a { font-size: 12.5px; font-weight: 600; color: var(--blue); transition: color .15s; }
.sec-head a:hover { color: var(--red); }
.sec-head-red { border-bottom-color: var(--red); }
.sec-head-red h2::after { display: none; }

/* ================================================================
   ARTICLE CARDS
   ================================================================ */
.art-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r2); overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.art-card:hover { transform: translateY(-4px); box-shadow: var(--sh2); }
.art-card-img { overflow: hidden; }
.art-card-img img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; display: block;
  transition: transform .4s;
}
.art-card:hover .art-card-img img { transform: scale(1.05); }
.art-card-body { padding: 13px 15px 15px; flex: 1; display: flex; flex-direction: column; }
.art-cat {
  display: inline-block; font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin-bottom: 6px;
}
.art-card-body h3 {
  font-family: var(--font-serif); font-size: 15px; font-weight: 700;
  line-height: 1.3; color: var(--ink); margin-bottom: 7px; flex: 1;
}
.art-card-body h3 a:hover { color: var(--red); }
.art-card-body p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.art-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted); margin-top: 10px; flex-wrap: wrap;
}
.art-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border2); }
.art-card-lg .art-card-body h3 { font-size: 18px; }
.art-card-lg .art-card-img img { aspect-ratio: 16/10; }

/* Horizontal card */
.art-card-h { flex-direction: row; gap: 0; border-radius: var(--r); }
.art-card-h .art-card-img { width: 120px; flex-shrink: 0; }
.art-card-h .art-card-img img { width: 120px; height: 80px; aspect-ratio: auto; border-radius: 0; }
.art-card-h .art-card-body { padding: 10px 12px; }
.art-card-h .art-card-body h3 { font-size: 13.5px; }
.art-card-h .art-card-body p { display: none; }
.art-card-h .art-meta { margin-top: 6px; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-1-2 { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 16px; }
.story-list { display: flex; flex-direction: column; gap: 0; }
.story-list .art-card-h { border-radius: 0; border-left: none; border-right: none; border-top: none; }
.story-list .art-card-h:last-child { border-bottom: none; }

/* ================================================================
   SIDEBAR
   ================================================================ */
.sb-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r2); overflow: hidden; }
.sb-head {
  padding: 11px 15px; border-bottom: 1px solid var(--border);
  font-size: 14px; font-weight: 800; color: var(--ink);
  display: flex; align-items: center; gap: 8px; background: var(--surface2);
}
.sb-head::before { content: ''; width: 3px; height: 16px; background: var(--red); border-radius: 2px; flex-shrink: 0; }
.sb-body { padding: 12px 15px; }
.sb-ad { padding: 0; overflow: hidden; }
.sb-ad-label { font-size: 10px; color: var(--muted); padding: 5px 12px; text-align: right; border-bottom: 1px solid var(--border); }
.sb-ad img  { width: 100%; display: block; max-width: 100%; }
.sb-ad iframe { max-width: 100% !important; border: none; display: block; }

/* Trending list */
.trend-list { display: flex; flex-direction: column; }
.trend-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.trend-item:last-child { border-bottom: none; }
.trend-num { font-size: 20px; font-weight: 900; line-height: 1; color: var(--border2); width: 26px; flex-shrink: 0; padding-top: 2px; }
.trend-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--ink); transition: color .15s; }
.trend-title:hover { color: var(--red); }
.trend-time { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* Market sidebar */
.market-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 15px 14px; }
.m-tick { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--r); padding: 9px 11px; }
.m-tick-lbl { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.m-tick-val { font-size: 15px; font-weight: 900; color: var(--ink); margin: 2px 0; }
.m-tick-chg { font-size: 12px; font-weight: 700; }

/* Ad slots — contained */
.ad-728 { width: 100%; max-width: 728px; margin: 0 auto; overflow: hidden; }
.ad-728 iframe, .ad-728 img { max-width: 100% !important; }
.ad-300 { width: 100%; max-width: 300px; overflow: hidden; }
.ad-300 iframe, .ad-300 img { max-width: 100% !important; }
.in-article-ad { margin: 24px 0; overflow: hidden; text-align: center; }
.in-article-ad iframe, .in-article-ad img { max-width: 100% !important; margin: 0 auto; }

/* ================================================================
   LIVE BLOCK
   ================================================================ */
.live-section {
  background: linear-gradient(135deg, #08122a 0%, #132256 100%);
  border-radius: var(--r3); padding: 24px; color: #fff;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: center;
}
.live-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red); color: #fff;
  padding: 3px 10px; border-radius: 3px;
  font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px;
  animation: blink 1.5s infinite;
}
.live-section h3 { font-family: var(--font-serif); font-size: 20px; line-height: 1.2; margin-bottom: 10px; }
.live-section p   { color: rgba(255,255,255,.6); font-size: 13.5px; margin-bottom: 16px; }
.live-embed { border-radius: var(--r2); overflow: hidden; background: #000; aspect-ratio: 16/9; }
.live-embed iframe { width: 100%; height: 100%; border: none; display: block; }

/* ================================================================
   NEWSLETTER
   ================================================================ */
.newsletter {
  background: linear-gradient(135deg, #0c1e45 0%, #1a3580 100%);
  border-radius: var(--r3); padding: 28px 32px; color: #fff;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; align-items: center;
}
.newsletter h2 { font-family: var(--font-serif); font-size: 20px; margin-bottom: 5px; }
.newsletter p   { color: rgba(255,255,255,.55); font-size: 13.5px; }
.nl-form { display: flex; gap: 0; border-radius: var(--r); overflow: hidden; border: 1.5px solid rgba(255,255,255,.2); }
.nl-form input { flex: 1; padding: 11px 16px; background: rgba(255,255,255,.07); border: none; color: #fff; font-size: 14px; outline: none; }
.nl-form input::placeholder { color: rgba(255,255,255,.3); }
.nl-form button { padding: 0 20px; background: var(--red); border: none; color: #fff; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background .15s; }
.nl-form button:hover { background: #b00000; }

/* ================================================================
   EPAPER BLOCK
   ================================================================ */
.epaper-block {
  display: flex; gap: 20px; align-items: center;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 20px; box-shadow: var(--sh);
}
.epaper-cover { width: 100px; flex-shrink: 0; border-radius: var(--r); box-shadow: var(--sh2); border: 1px solid var(--border); }
.epaper-info h3 { font-family: var(--font-serif); font-size: 18px; font-weight: 700; margin-bottom: 5px; }
.epaper-info .eyebrow { margin-bottom: 6px; }
.epaper-info p  { font-size: 13.5px; color: var(--muted); margin-bottom: 13px; }
.epaper-btns    { display: flex; gap: 10px; }

/* ================================================================
   CATEGORY / LISTING PAGES
   ================================================================ */
.page-banner {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  padding: 22px 0 18px;
}
.page-banner .eyebrow { margin-bottom: 6px; }
.page-banner h1 { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; }
.page-banner p  { color: var(--muted); font-size: 14.5px; margin-top: 5px; }
.listing-newsroom { padding: 20px 0 48px; }
.listing-grid {
  display: grid;
  grid-template-columns: minmax(0,2.5fr) minmax(0,1fr);
  gap: 24px; align-items: start;
}

/* ================================================================
   ARTICLE PAGE
   ================================================================ */
.art-page { padding: 0 0 48px; }
.art-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 24px; align-items: start; padding-top: 20px;
}
.art-main { background: var(--white); border: 1px solid var(--border); border-radius: var(--r2); overflow: hidden; box-shadow: var(--sh); }
.art-hero-img { width: 100%; display: block; }
.art-body { padding: 24px 28px 32px; }
.art-cat-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.art-badge {
  display: inline-block; padding: 3px 10px;
  background: var(--red); color: #fff; border-radius: 3px;
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
}
.art-badge-blue { background: var(--blue); }
.art-body h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800; line-height: 1.15; color: var(--ink); margin-bottom: 10px;
}
.art-dek { font-size: 16px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.art-meta-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
}
.art-meta-bar a { color: var(--blue); font-weight: 600; }
.art-meta-bar a:hover { color: var(--red); }
.art-share {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 0 15px; border-bottom: 1px solid var(--border);
  margin-bottom: 22px; flex-wrap: wrap;
}
.share-lbl { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 3px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  background: var(--surface2); border: 1.5px solid var(--border);
  color: var(--ink2); cursor: pointer; transition: all .15s;
}
.share-btn:hover { border-color: var(--red); color: var(--red); }
.share-btn-fb:hover { border-color: #1877f2; color: #1877f2; }
.share-btn-wa:hover { border-color: #25d366; color: #25d366; }
.art-content {
  font-family: var(--font-serif);
  font-size: 17px; line-height: 1.85; color: var(--ink);
}
.art-content p   { margin-bottom: 1.35em; }
.art-content h2  { font-size: 1.4rem; margin: 1.8em 0 .5em; }
.art-content h3  { font-size: 1.2rem; margin: 1.4em 0 .4em; }
.art-content blockquote {
  border-left: 4px solid var(--red); margin: 1.4em 0; padding: .4em 1.4em;
  color: var(--ink2); font-style: italic;
  background: var(--surface2); border-radius: 0 var(--r) var(--r) 0;
}
.art-content img { border-radius: var(--r); margin: 1.4em auto; }
.art-content a   { color: var(--blue); text-decoration: underline; }
.art-content iframe { max-width: 100% !important; }
.art-tags { display: flex; gap: 7px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--border); margin-top: 22px; }
.art-tags a {
  padding: 4px 13px; border-radius: 999px;
  background: var(--surface2); border: 1px solid var(--border);
  font-size: 12.5px; color: var(--ink2); transition: all .15s;
}
.art-tags a:hover { border-color: var(--red); color: var(--red); }
.author-box {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r2); margin: 20px 0;
}
.author-box img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box h3  { font-size: 15px; margin-bottom: 3px; }
.author-box p   { font-size: 13px; color: var(--muted); }
.comment-form { display: grid; gap: 12px; }
.form-input {
  width: 100%; padding: 10px 13px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r); color: var(--ink); font-size: 14px;
  transition: border-color .15s;
}
.form-input:focus { outline: none; border-color: var(--blue); }
.comment-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: none; }
.comment-top { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.comment-top strong { font-size: 14px; }
.comment-top span   { font-size: 12px; color: var(--muted); }
.comment-item p     { font-size: 14.5px; color: var(--ink2); line-height: 1.6; }

/* ================================================================
   LIVE / MARKET / EPAPER / TEAM PAGES
   ================================================================ */
.live-main { border-radius: var(--r3); overflow: hidden; background: #000; aspect-ratio: 16/9; box-shadow: var(--sh2); }
.live-main iframe { width: 100%; height: 100%; border: none; display: block; }
.update-feed { display: flex; flex-direction: column; }
.update-item { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.update-item:last-child { border-bottom: none; }
.update-time { font-size: 12px; font-weight: 800; color: var(--red); flex-shrink: 0; width: 54px; padding-top: 2px; }
.update-text { font-size: 14px; line-height: 1.55; color: var(--ink2); }
.market-tickers { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 28px; }
.ticker-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 16px; text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.ticker-card:hover { transform: translateY(-2px); box-shadow: var(--sh2); }
.tc-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tc-val { font-size: 22px; font-weight: 900; font-family: var(--font-serif); margin: 4px 0; }
.tc-chg { font-size: 13px; font-weight: 700; }
.epaper-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.ep-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r2); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.ep-card:hover { transform: translateY(-3px); box-shadow: var(--sh2); }
.ep-cover  { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--surface2); display: block; }
.ep-body   { padding: 12px 14px; }
.ep-body h4{ font-family: var(--font-serif); font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.ep-body p { font-size: 12px; color: var(--muted); }
.ep-actions{ padding: 0 14px 14px; display: flex; gap: 8px; }
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.team-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r2); overflow: hidden; text-align: center; transition: transform .2s, box-shadow .2s; }
.team-card:hover { transform: translateY(-3px); box-shadow: var(--sh2); }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface2); }
.team-card-body { padding: 13px; }
.team-card-body h3  { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.team-card-body .eyebrow { font-size: 10.5px; }
.team-card-body p   { font-size: 13px; color: var(--muted); margin-top: 5px; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer { background: #06101e; color: #b0bdd8; margin-top: 48px; }
.footer-top { padding: 44px 0 32px; }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 36px; }
.footer-logo        { height: 60px; width: auto; max-width: 200px; object-fit: contain; margin-bottom: 14px; display: block; }
.footer-logo-main   { height: 60px; width: auto; max-width: 220px; object-fit: contain; margin-bottom: 14px; display: block; }
.footer-logo-text   { font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 14px; }
.footer-about       { font-size: 13.5px; line-height: 1.7; color: #7a8dab; max-width: 270px; }
.footer-social { display: flex; gap: 9px; margin-top: 14px; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: rgba(255,255,255,.5); transition: all .15s;
}
.footer-social a:hover { border-color: var(--red); background: var(--red); color: #fff; }
.footer-notif-btn {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  padding: 8px 16px; background: rgba(209,0,0,.15);
  border: 1px solid rgba(209,0,0,.3); border-radius: 999px;
  color: #ff8080; font-size: 12.5px; font-weight: 700;
  cursor: pointer; transition: all .15s;
}
.footer-notif-btn:hover   { background: var(--red); color: #fff; border-color: var(--red); }
.footer-notif-btn:disabled{ opacity: .7; cursor: default; }
.footer-col-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13.5px; color: #7a8dab; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-nl { display: flex; border-radius: var(--r); overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.footer-nl input { flex: 1; padding: 9px 13px; background: rgba(255,255,255,.05); border: none; color: #fff; font-size: 13.5px; outline: none; }
.footer-nl input::placeholder { color: rgba(255,255,255,.25); }
.footer-nl button { padding: 0 14px; background: var(--red); border: none; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.footer-weather { margin-top: 8px; }
.fw-loading { font-size: 11px; color: #4a5e7a; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 14px 0; }
.footer-bottom-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: #5a6e8d; }
.footer-bottom-row a { color: #7a8dab; transition: color .15s; }
.footer-bottom-row a:hover { color: #fff; }

/* ── Mobile Bottom Nav ── */
.mobile-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white); border-top: 1px solid var(--border);
  z-index: 400; box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}
.mobile-bottom-nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.mobile-bottom-nav ul li { flex: 1; }
.mobile-bottom-nav ul li a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px 4px 10px; font-size: 10px; font-weight: 600; color: var(--muted);
  text-decoration: none; gap: 3px; transition: color .15s;
}
.mobile-bottom-nav ul li a .mbn-icon { font-size: 18px; line-height: 1; }
.mobile-bottom-nav ul li a:hover,
.mobile-bottom-nav ul li a.is-active { color: var(--red); }

/* ── Back to Top ── */
.back-top {
  position: fixed; right: 20px; bottom: 24px;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: var(--red); color: #fff; font-size: 18px; cursor: pointer;
  box-shadow: var(--sh2); display: none; align-items: center; justify-content: center;
  transition: background .15s, transform .15s; z-index: 600;
}
.back-top.show { display: flex; }
.back-top:hover { background: #b00000; transform: translateY(-2px); }

/* ── Misc ── */
.alert { padding: 11px 15px; border-radius: var(--r); font-size: 14px; margin-bottom: 14px; }
.alert-success { background: rgba(5,150,105,.1); border: 1px solid rgba(5,150,105,.2); color: #065f46; }
.alert-danger  { background: rgba(220,38,38,.1);  border: 1px solid rgba(220,38,38,.2);  color: #991b1b; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.auth-page  { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card  { width: min(100%, 420px); background: var(--white); border: 1px solid var(--border); border-radius: var(--r3); padding: 32px; box-shadow: var(--sh2); text-align: center; }
.auth-form  { display: grid; gap: 12px; text-align: left; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.weather-card:hover { transform: translateY(-2px); box-shadow: var(--sh2); }

/* ================================================================
   DARK MODE OVERRIDES
   ================================================================ */
.theme-dark .hero { background: var(--white); }
.theme-dark .market-bar { background: #080e1a; border-color: rgba(255,255,255,.06); }
.theme-dark .art-card, .theme-dark .ep-card, .theme-dark .ticker-card,
.theme-dark .team-card, .theme-dark .sb-card, .theme-dark .art-main,
.theme-dark .epaper-block { background: var(--white); border-color: var(--border); }
.theme-dark .author-box  { background: var(--surface2); border-color: var(--border); }
.theme-dark .form-input  { background: var(--surface2); border-color: var(--border); color: var(--ink); }
.theme-dark .share-btn   { background: var(--surface2); border-color: var(--border); color: var(--ink2); }
.theme-dark .m-tick      { background: var(--surface2); border-color: var(--border); }
.theme-dark .alert-success { color: #6ee7b7; }
.theme-dark .alert-danger  { color: #fca5a5; }
.theme-dark .mobile-bottom-nav { background: #0d1a2e; border-color: rgba(255,255,255,.08); }
.theme-dark .mobile-bottom-nav ul li a { color: rgba(255,255,255,.45); }
.theme-dark .mobile-bottom-nav ul li a:hover { color: #fff; }
.theme-dark .more-menu li a { color: var(--ink); }

/* ================================================================
   COMPATIBILITY ALIASES — all original class names preserved
   ================================================================ */
.listing-page { padding-bottom: 48px; }
.page-heading { background: var(--white); border-bottom: 3px solid var(--red); padding: 22px 0 18px; margin-bottom: 20px; }
.page-heading h1 { font-family: Georgia, serif; font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 900; }
.page-heading p  { color: var(--muted); font-size: 14.5px; margin-top: 5px; }
.newsroom-layout { display: grid; grid-template-columns: minmax(0,2.5fr) minmax(0,1fr); gap: 24px; align-items: start; padding: 20px 0 48px; }
.content-column  { display: flex; flex-direction: column; gap: 28px; }
.sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--nav-h) + 10px); }
.article-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--sh2); }
.article-card-media { overflow: hidden; }
.article-card-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .4s; display: block; }
.article-card:hover .article-card-media img { transform: scale(1.04); }
.article-card-body { padding: 13px 15px 15px; flex: 1; display: flex; flex-direction: column; }
.article-card-body h3 { font-family: Georgia, serif; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ink); margin: 5px 0 7px; }
.article-card-body h3 a:hover { color: var(--red); }
.article-card-body p  { font-size: 13.5px; color: var(--muted); line-height: 1.5; flex: 1; }
.article-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 9px; flex-wrap: wrap; }
.category-badge { display: inline-block; padding: 2px 9px; background: var(--red); color: #fff; border-radius: 3px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.headline-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.headline-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.section-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 14px; }
.section-heading h2 { font-family: Georgia, serif; font-size: 18px; font-weight: 900; }
.section-heading a  { font-size: 12.5px; font-weight: 600; color: var(--blue); }
.sidebar-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.sidebar-card-head { padding: 11px 15px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 8px; background: var(--surface2); }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--border); border-radius: 12px; background: var(--white); }
.epaper-featured { display: flex; gap: 20px; align-items: flex-start; }
.epaper-actions { display: flex; gap: 10px; margin-top: 12px; }
.epaper-archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.epaper-issue-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.epaper-issue-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.epaper-issue-card h4 { font-size: 13px; font-weight: 700; padding: 8px 10px 4px; }
.epaper-issue-card p  { font-size: 12px; color: var(--muted); padding: 0 10px 8px; }
.epaper-issue-card a  { display: block; padding: 0 10px 10px; font-size: 12.5px; font-weight: 600; color: var(--blue); }
.market-dashboard { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 24px; }
.market-ticker-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 14px; text-align: center; }
.ticker-label  { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ticker-value  { display: block; font-size: 20px; font-weight: 900; margin: 3px 0; }
.ticker-change { font-size: 12.5px; font-weight: 700; }
.breaking-card { padding: 12px 0; border-bottom: 1px solid var(--border); }
.live-and-video { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.live-card, .epaper-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.live-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--red); color: #fff; padding: 3px 10px; border-radius: 3px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; margin-bottom: 10px; }
.live-pill.offline { background: var(--muted); }
.profile-hero { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: flex-start; padding: 20px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 20px; }
.author-avatar-lg { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border); }
.author-info h1 { font-family: Georgia, serif; font-size: 24px; font-weight: 800; }
.newsletter-band { background: linear-gradient(135deg,#0c1e45,#1a3580); border-radius: 16px; padding: 28px 32px; color: #fff; display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; align-items: center; }
.newsletter-band h2 { font-family: Georgia, serif; font-size: 20px; }
.newsletter-band p  { color: rgba(255,255,255,.55); font-size: 13.5px; margin-top: 5px; }
.newsletter-form, .newsletter-inline { display: flex; gap: 0; }
.newsletter-form input, .newsletter-inline input { flex: 1; padding: 11px 14px; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.2); border-radius: 8px 0 0 8px; color: #fff; font-size: 14px; outline: none; }
.newsletter-form .btn, .newsletter-inline .btn { border-radius: 0 8px 8px 0; }
.widget-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.widget { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.market-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 10px; }
.market-card em { font-style: normal; font-size: 12px; font-weight: 700; }
.trending-list { display: flex; flex-direction: column; }
.trending-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.trending-item:last-child { border-bottom: none; }
.trending-item span:first-child { font-size: 20px; font-weight: 900; color: var(--border2); width: 26px; flex-shrink: 0; }
.list-story { padding: 12px 0; border-bottom: 1px solid var(--border); }
.list-story:last-child { border-bottom: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.85fr) minmax(0,1fr); gap: 2px; border-radius: 12px; overflow: hidden; }
.article-page { padding: 0 0 48px; }
.article-layout { display: grid; grid-template-columns: minmax(0,2.2fr) minmax(0,1fr); gap: 24px; align-items: start; padding-top: 20px; }
.article-main { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.article-feature-image { width: 100%; display: block; }
.article-dek { font-size: 16px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.article-meta-bar { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.article-meta-bar a { color: var(--blue); font-weight: 600; }
.article-top, .article-body, .art-body { padding: 24px 28px 8px; }
.article-content { font-family: Georgia, serif; font-size: 17px; line-height: 1.85; color: var(--ink); }
.article-content p { margin-bottom: 1.35em; }
.article-tags { display: flex; gap: 7px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--border); margin-top: 20px; }
.article-tags a { padding: 4px 12px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--border); font-size: 12.5px; color: var(--ink2); }
.article-tags a:hover { border-color: var(--red); color: var(--red); }
.author-box { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; margin: 18px 0; }
.author-box img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box h3  { font-size: 15px; margin-bottom: 3px; }
.author-box p   { font-size: 13px; color: var(--muted); }
.comment-form { display: grid; gap: 12px; }
.comment-form input, .comment-form textarea { padding: 10px 13px; background: var(--white); border: 1.5px solid var(--border); border-radius: 8px; color: var(--ink); width: 100%; font-size: 14px; }
.comment-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.comment-item strong { font-size: 14px; }
.comment-item span   { font-size: 12px; color: var(--muted); }
.comment-item p      { font-size: 14.5px; margin-top: 6px; color: var(--ink2); }
.share-toolbar { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; flex-wrap: wrap; }
.share-toolbar a, .share-toolbar button { padding: 5px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface2); border: 1.5px solid var(--border); color: var(--ink2); cursor: pointer; transition: all .15s; }
.share-toolbar a:hover, .share-toolbar button:hover { border-color: var(--red); color: var(--red); }
.alert-success { background: rgba(5,150,105,.1); border: 1px solid rgba(5,150,105,.2); color: #065f46; }
.alert-danger  { background: rgba(220,38,38,.1);  border: 1px solid rgba(220,38,38,.2);  color: #991b1b; }
.global-alert  { padding: 11px 15px; border-radius: 8px; margin-bottom: 14px; }
.global-alert-success { background: rgba(5,150,105,.1); color: #065f46; }
.global-alert-danger  { background: rgba(220,38,38,.1);  color: #991b1b; }
.contact-form  { display: grid; gap: 14px; }
.prose-block   { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.profile-page, .static-page, .auth-page-wrap { padding-bottom: 48px; }
.team-section  { margin-top: 24px; }

/* ================================================================
   RESPONSIVE — 1060px
   ================================================================ */
@media (max-width: 1060px) {
  .newsroom-grid, .art-layout, .listing-grid { grid-template-columns: 1fr; }
  .sidebar-col { position: static; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .team-grid   { grid-template-columns: repeat(3,1fr); }
}

/* ================================================================
   RESPONSIVE — 900px (mobile nav)
   ================================================================ */
@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-stack  { flex-direction: row; flex-wrap: wrap; }
  .hero-stack-item { min-width: 50%; flex: 1; min-height: 140px; }
  .nav-menu    { display: none; }
  .nav-hamburger { display: flex; }
  .nav-search-box { display: none; }
  .live-section, .newsletter { grid-template-columns: 1fr; }
  .market-tickers { grid-template-columns: repeat(2,1fr); }
  .quicklinks-bar { display: none; }
  .topbar-weather, .topbar-aqi, .topbar-chip { display: none !important; }
  .topbar-tag  { display: none; }
  .topbar-date { font-size: 11.5px; }
  .nav-brand img { height: 76px; max-width: 180px; }
  :root { --nav-h: 64px; }

  /* Legacy mobile open menu (fallback for old navbar) */
  .nav-menu.is-open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: var(--nav-h) !important;
    left: 0 !important; right: 0 !important; bottom: 0 !important;
    background: var(--white) !important;
    z-index: 99999 !important;
    overflow-y: auto !important;
    padding-bottom: 80px !important;
    max-height: calc(100vh - var(--nav-h));
  }
  .nav-menu.is-open li { border-bottom: 1px solid var(--border); }
  .nav-menu.is-open a  { height: 48px; padding-left: 20px; font-size: 14px; }
  .nav-menu.is-open .mobile-search { display: flex !important; padding: 10px 16px; border-bottom: 1px solid var(--border); }
  .nav-menu.is-open .mobile-search input { flex: 1; padding: 9px 14px; border: 1.5px solid var(--border); border-radius: 8px 0 0 8px; outline: none; font-size: 14px; color: var(--ink); background: var(--surface2); }
  .nav-menu.is-open .mobile-search button { padding: 0 14px; background: var(--red); border: none; border-radius: 0 8px 8px 0; color: #fff; cursor: pointer; font-size: 16px; }

  .newsroom-layout, .article-layout, .live-and-video, .newsletter-band { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .market-dashboard { grid-template-columns: repeat(2,1fr); }
}

/* ================================================================
   RESPONSIVE — 640px
   ================================================================ */
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-1-2 { grid-template-columns: 1fr; }
  .epaper-grid  { grid-template-columns: repeat(2,1fr); }
  .team-grid    { grid-template-columns: repeat(2,1fr); }
  .footer-cols  { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .epaper-block { flex-direction: column; align-items: flex-start; }
  .market-tickers { grid-template-columns: repeat(2,1fr); }
  .art-body, .article-top, .article-body { padding: 16px; }
  .nav-brand img { height: 60px; max-width: 160px; }
  .ticker-bar   { height: 28px; }
  .ticker-item  { font-size: 12px; padding: 0 20px; }
  .topbar-inner { height: 34px; }
  .topbar-date  { font-size: 11px; }
  .hero-lead    { min-height: 260px; }
  .hero-lead-title { font-size: 1.2rem; }
  .hero-stack   { display: none; }
  .market-bar-inner { height: 36px; }
  .mi-val       { font-size: 12px; }
  .mi-label     { font-size: 10px; }
  .footer-logo, .footer-logo-main { height: 48px; }
  .newsletter   { padding: 20px; }
  .article-card-body h3 { font-size: 14px; }
  .nav-hamburger { width: 40px; height: 40px; font-size: 20px; }
  .mobile-bottom-nav { display: block; }
  body { padding-bottom: 58px; }
  .footer { margin-bottom: 0; }
  .headline-grid, .widget-row, .epaper-archive-grid { grid-template-columns: 1fr; }
  .profile-hero { grid-template-columns: 1fr; }
  .newsletter-band { grid-template-columns: 1fr; }
}

/* ── Weather Grid ── */
@media (max-width: 900px) { #weatherGrid { grid-template-columns: repeat(3,1fr) !important; } }
@media (max-width: 640px) { #weatherGrid { grid-template-columns: repeat(2,1fr) !important; } }
@media (max-width: 400px) { #weatherGrid { grid-template-columns: 1fr !important; } }