/* ============================================================
   आज ख़बर / AAJ KHABAR — Modern News Portal (Fluid & Responsive)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@400;500;600;700;800&family=Teko:wght@500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --red:        #e60012;
  --red-dark:   #b3000e;
  --red-hot:    #ff1a2e;
  --ink:        #0f0f0f;
  --ink-soft:   #333333;
  --meta:       #6b7280;
  --line:       #e5e7eb;
  --bg:         #ffffff;
  --bg-soft:    #f8f9fa;
  --bg-warm:    #fafaf9;
  --dark:       #0a0a0a;
  --yellow:     #fbbf24;
  --font-body:  'Inter', 'Noto Sans Devanagari', 'Mukta', system-ui, sans-serif;
  --font-logo:  'Teko', 'Noto Sans Devanagari', sans-serif;
  --wrap:       1280px;
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,.1);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.12);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --ink:        #f9fafb;
  --ink-soft:   #e5e7eb;
  --meta:       #9ca3af;
  --line:       #1f2937;
  --bg:         #0a0a0a;
  --bg-soft:    #111827;
  --bg-warm:    #1f2937;
  --dark:       #030712;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.4);
  --shadow-md:  0 4px 20px rgba(0,0,0,.5);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.6);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; overflow-x: hidden; }
body { font-family:var(--font-body); color:var(--ink); background:var(--bg); line-height:1.6; -webkit-font-smoothing:antialiased; overflow-x:hidden; min-height: 100vh; display: flex; flex-direction: column; top: 0 !important; transition: background-color 0.3s, color 0.3s; width: 100%; max-width: 100vw; }
img { max-width:100%; height: auto; display:block; object-fit: cover; }
a { color:inherit; text-decoration:none; }
ul { list-style:none; }
.wrap { max-width:var(--wrap); margin:0 auto; padding:0 20px; width: 100%; }

/* General Layout Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.two-col { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 32px; }

.sec-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--red); margin-bottom: 20px; }
.sec-head h2 { font-size: 1.1rem; font-weight: 800; color: #fff; background: var(--red); padding: 6px 18px; border-top-left-radius: var(--radius-sm); border-top-right-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: .5px; position: relative; margin: 0; }
.sec-head h2::after { content: ""; position: absolute; right: -10px; top: 0; bottom: 0; border-top: 16px solid transparent; border-bottom: 16px solid transparent; border-left: 10px solid var(--red); }


/* Hide Google Translate Toolbar Banner */
.goog-te-banner-frame, .skiptranslate, .goog-te-spinner-pos { display: none !important; }
body { top: 0px !important; position: static !important; }
#google_translate_element { display: none !important; }

/* Keyframe Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero, .cat-block, .stories-band, .video-band {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ---------- Progress Bar ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--yellow), var(--red-hot));
  z-index: 2000;
  transition: width .08s linear;
  box-shadow: 0 0 12px rgba(255,26,46,.4);
}

/* ---------- Top Strip (Z-Index Fixed to 3000) ---------- */
.topbar { background:var(--dark); color:#9ca3af; font-size:.78rem; position:relative; z-index:3000; border-bottom:1px solid rgba(255,255,255,0.06); }
.topbar .wrap { display:flex; align-items:center; justify-content:space-between; height:42px; }
.topbar-left { display:flex; gap:20px; align-items:center; }
.topbar-date { color:#d1d5db; font-weight:600; }
.topbar-links { display:flex; gap:18px; }
.topbar-links a { color:#9ca3af; transition:color .2s; font-weight:500; }
.topbar-links a:hover { color:#fff; }

.topbar-right { display:flex; gap:12px; align-items:center; position:relative; z-index:3001; }

/* Language Selector Pill */
.lang-dropdown { position:relative; display:inline-block; z-index:999999; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #111827;
  color: #f3f4f6;
  border: 1px solid #374151;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.lang-btn:hover, .lang-dropdown.open .lang-btn { background: #1f2937; color: #fff; border-color: var(--red); }
.lang-btn .in-badge {
  background: #374151;
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  letter-spacing: .5px;
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  background: #111827;
  border: 1px solid #374151;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.7);
  min-width: 185px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 999999;
  padding: 6px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--red) #1f2937;
}

.lang-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.lang-dropdown:hover .lang-menu, .lang-dropdown.open .lang-menu { display: block; }

.lang-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 16px;
  color: #d1d5db;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background .2s, color .2s;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.lang-menu button:last-child { border-bottom: none; }
.lang-menu button:hover { background: var(--red); color: #fff; }

/* Vector SVG Social Icons Container */
.social-strip { display: flex; gap: 8px; align-items: center; }
.social-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #111827;
  display: grid;
  place-items: center;
  transition: var(--transition);
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.social-dot svg { fill: currentColor; width: 14px; height: 14px; display: block; }
.social-dot:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230,0,18,.3);
}

/* ---------- Masthead Header & Category Nav Bar Alignment ---------- */
.masthead { background:var(--bg); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:1000; backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); transition: background-color 0.3s; }
.masthead-inner { display:flex; align-items:center; justify-content:space-between; gap:20px; height:68px; }
.logo { display:flex; align-items:baseline; gap:3px; font-family:var(--font-logo); font-weight:700; font-size:2.4rem; letter-spacing:.5px; line-height:1; flex-shrink:0; }
.logo .logo-aaj { background:var(--red); color:#fff; padding:4px 12px 2px; border-radius:var(--radius-sm); transform:skewX(-6deg); display:inline-block; box-shadow:0 2px 8px rgba(230,0,18,.3); }
.logo .logo-khabar { color:var(--ink); padding:4px 8px 2px; }
.logo-tag { font-family:var(--font-body); font-size:.65rem; font-weight:600; letter-spacing:2.5px; color:var(--meta); text-transform:uppercase; align-self:flex-end; margin-bottom:6px; margin-left:4px; }

/* Clean Category Navigation */
.mainnav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 6px;
  flex-shrink: 0;
}

.mainnav a {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  font-weight: 700;
  font-size: .84rem;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  color: var(--ink-soft);
  text-transform: uppercase;
  flex-shrink: 0;
}
.mainnav a:hover { background: var(--bg-soft); color: var(--red); }
.mainnav a.active { background: var(--red); color: #fff; box-shadow: 0 2px 10px rgba(230,0,18,.3); }

/* MORE Dropdown Component */
.more-nav-dropdown {
  position: relative;
  display: inline-block;
  z-index: 1001;
  flex-shrink: 0;
  margin-right: 12px;
}

.more-nav-btn {

  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: var(--font-body);
}

.more-nav-btn:hover, .more-nav-dropdown.open .more-nav-btn {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.more-nav-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 99999;
  padding: 6px 0;
}

.more-nav-dropdown:hover .more-nav-menu, .more-nav-dropdown.open .more-nav-menu {
  display: block;
}

.more-nav-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 700;
  transition: background .2s, color .2s;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.more-nav-menu a:last-child {
  border-bottom: none;
}

.more-nav-menu a:hover {
  background: var(--red);
  color: #fff;
}

.head-actions { display:flex; align-items:center; gap:10px; flex-shrink:0; margin-left:auto; }
.btn-livetv { display:flex; align-items:center; gap:8px; background:var(--red); color:#fff; font-weight:700; font-size:.8rem; padding:8px 18px; border-radius:999px; transition:var(--transition); box-shadow:0 2px 12px rgba(230,0,18,.3); flex-shrink:0; }
.btn-livetv:hover { transform:translateY(-2px); box-shadow:0 4px 20px rgba(230,0,18,.4); }
.live-dot { width:8px; height:8px; border-radius:50%; background:#fff; animation:pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(255,255,255,.6)} 50%{box-shadow:0 0 0 6px rgba(255,255,255,0)} }
.btn-search, .btn-theme { background:var(--bg-soft); border:1px solid var(--line); color:var(--ink-soft); font-size:1.1rem; cursor:pointer; padding:10px; border-radius:50%; width:40px; height:40px; display:grid; place-items:center; transition:var(--transition); flex-shrink:0; }
.btn-search:hover, .btn-theme:hover { background:var(--red); color:#fff; border-color:var(--red); transform: scale(1.05); }

/* ---------- Breaking News Ticker ---------- */
.ticker { background:var(--bg); border-bottom:1px solid var(--line); display:flex; align-items:center; height:44px; overflow:hidden; position:relative; }
.ticker::before { content:''; position:absolute; left:0; top:0; bottom:0; width:130px; background:linear-gradient(90deg,var(--red),var(--red-dark)); z-index:2; }
.ticker-label { background:transparent; color:#fff; font-weight:800; font-size:.78rem; letter-spacing:.5px; height:100%; display:flex; align-items:center; gap:8px; padding:0 16px; flex-shrink:0; position:relative; z-index:3; }
.ticker-label .txt-mobile { display: none; }
.ticker-label .txt-desktop { display: inline; }
.blink { width:8px; height:8px; background:var(--yellow); border-radius:50%; animation:pulse 1.2s infinite; }
.ticker-track { display:flex; gap:60px; white-space:nowrap; animation:ticker 35s linear infinite; padding-left:30px; }
.ticker:hover .ticker-track { animation-play-state:paused; }
.ticker-track span { font-weight:600; font-size:.88rem; color:var(--ink-soft); position:relative; }
.ticker-track span::before { content:""; position:absolute; left:-30px; top:50%; transform:translateY(-50%); width:6px; height:6px; border-radius:50%; background:var(--red); }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ---------- Thumbnails (Default Aspect Ratio 16:9) ---------- */
.thumb { position:relative; overflow:hidden; border-radius:var(--radius-md); background:#0f0f0f; display:block; aspect-ratio: 16 / 9; }
.thumb img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; transition:transform .5s ease; }
.card:hover img, .lead:hover img { transform:scale(1.06); }

.badge-cat { position:absolute; left:12px; bottom:12px; background:var(--red); color:#fff; font-size:.68rem; font-weight:800; padding:4px 10px; border-radius:999px; letter-spacing:.5px; text-transform:uppercase; backdrop-filter:blur(8px); }
.badge-video { position:absolute; right:12px; bottom:12px; width:40px; height:40px; border-radius:50%; background:rgba(0,0,0,.7); display:grid; place-items:center; color:#fff; font-size:.85rem; padding-left:3px; backdrop-filter:blur(8px); transition:var(--transition); z-index: 2; }
.card:hover .badge-video { transform:scale(1.1); background:var(--red); }
.badge-live { position:absolute; left:12px; top:12px; background:var(--red-hot); color:#fff; font-size:.7rem; font-weight:800; padding:5px 12px; border-radius:999px; display:flex; align-items:center; gap:6px; box-shadow:0 2px 12px rgba(255,26,46,.4); }
.badge-live .live-dot { background:#fff; width:6px; height:6px; }

/* ---------- Hero Auto-Slider Carousel Layout ---------- */
.hero { padding:28px 0 32px; }
.hero-grid { display:grid; grid-template-columns:1.8fr 1fr; gap:24px; }

.hero-slider {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.02);
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.hero-slide .lead {
  height: 100%;
  width: 100%;
  box-shadow: none;
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: grid;
  place-items: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.slider-arrow:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 16px;
  right: 24px;
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dots .dot.active, .slider-dots .dot:hover {
  background: var(--red);
  width: 24px;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(230,0,18,0.6);
}

.lead { display:block; position:relative; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-lg); transition: var(--transition); }
.lead:hover { transform: translateY(-3px); }
.lead .thumb { border-radius:0; aspect-ratio: 16 / 9; }
.lead-content { position:absolute; bottom:0; left:0; right:0; padding:40px 28px 28px; background:linear-gradient(transparent 10%,rgba(0,0,0,.85) 60%); color:#fff; }
.lead h1 { font-size:1.85rem; font-weight:800; line-height:1.25; margin-top:0; transition:color .15s; text-shadow:0 2px 8px rgba(0,0,0,.3); }
.lead:hover h1 { color:var(--yellow); }
.lead p { color:rgba(255,255,255,.85); font-size:1rem; margin-top:8px; max-width:90%; }
.lead .meta { color:rgba(255,255,255,.7); font-size:.8rem; margin-top:10px; font-weight:500; display:flex; gap:10px; align-items:center; }
.lead .meta .cat { color:var(--yellow); font-weight:700; text-transform:uppercase; letter-spacing:.5px; }

.sub-leads { display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; margin-top:20px; }
.card { display:block; position:relative; }
.card .thumb { border-radius:var(--radius-md); aspect-ratio: 16 / 9; }
.card h3 { font-size:.92rem; font-weight:700; line-height:1.35; margin-top:8px; transition:var(--transition); color:var(--ink); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card:hover h3 { color:var(--red); }
.card .meta { color:var(--meta); font-size:.75rem; margin-top:4px; font-weight:500; }

/* ---------- Latest Sidebar ---------- */
.side { border:1px solid var(--line); border-radius:var(--radius-lg); overflow:hidden; align-self:start; background:var(--bg); box-shadow:var(--shadow-sm); }
.side-head { background:var(--dark); color:#fff; font-weight:700; font-size:.95rem; padding:14px 18px; display:flex; align-items:center; justify-content:space-between; }
.live-chip { background:var(--red); font-size:.68rem; font-weight:800; padding:4px 12px; border-radius:999px; display:flex; align-items:center; gap:6px; box-shadow:0 2px 12px rgba(230,0,18,.3); }
.latest { max-height:540px; overflow-y:auto; }
.latest li { border-bottom:1px solid var(--line); }
.latest li:last-child { border-bottom:none; }
.latest a { display:flex; gap:14px; align-items:flex-start; padding:14px 16px; transition:var(--transition); border-left:4px solid transparent; }
.latest a:hover { background:var(--bg-soft); transform:translateX(4px); border-left-color:var(--red); }
.lthumb { width:72px; aspect-ratio: 1 / 1; border-radius:var(--radius-sm); flex-shrink:0; overflow:hidden; position:relative; box-shadow:var(--shadow-sm); background: #0f0f0f; }
.lthumb img { width:100%; height:100%; object-fit:cover; object-position:center; }
.latest .txt { flex:1; min-width:0; }
.latest .time { color:var(--red); font-size:.72rem; font-weight:700; display:flex; align-items:center; gap:6px; margin-bottom:4px; }
.latest .time::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--red); box-shadow:0 0 0 3px rgba(230,0,18,.12); flex-shrink:0; }
.latest h4 { font-size:.87rem; font-weight:600; line-height:1.45; transition:color .2s; }
.latest a:hover h4 { color:var(--red); }

/* ---------- Smart Multi-Ad Sidebar Engine ---------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.side-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.side-box .side-head {
  background: var(--dark);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

/* In-Feed Native Ad Banner inside Latest News List */
.sidebar-infeed-ad {
  background: var(--bg-soft);
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  padding: 14px 16px;
  list-style: none;
}

.ad-native-unit {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ad-native-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ad-badge {
  background: #fbbf24;
  color: #111;
  font-size: .62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.ad-sponsor {
  font-size: .72rem;
  font-weight: 600;
  color: var(--meta);
}

.ad-native-link {
  text-decoration: none;
  display: block;
}

.ad-native-link h4 {
  font-size: .86rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  transition: color .2s;
  margin: 2px 0;
}

.ad-native-link:hover h4 {
  color: var(--red);
}

.ad-native-domain {
  font-size: .68rem;
  color: var(--meta);
  font-weight: 500;
}

/* Sponsored Banner Ad Card (300x250) */
.sidebar-ad-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.ad-header-label {
  font-size: .65rem;
  font-weight: 800;
  color: var(--meta);
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.ad-banner-300 {
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 20px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.ad-mark {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: .65rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

.ad-main-content h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: 6px;
  line-height: 1.3;
}

.ad-main-content p {
  font-size: .82rem;
  color: #d4d4d8;
  margin-bottom: 12px;
  line-height: 1.4;
}

.btn-ad-cta {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(230,0,18,0.4);
  transition: var(--transition);
}

.btn-ad-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(230,0,18,0.6);
}

/* Sticky Vertical Multi-Ad Unit */
.sticky-multi-ad-card {
  position: sticky;
  top: 80px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
  z-index: 10;
}

.multi-ad-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.multi-ad-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-decoration: none;
}

.multi-ad-item:hover {
  border-color: var(--red);
  transform: translateX(3px);
}

.badge-g {
  background: #4285F4;
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.multi-ad-txt h5 {
  font-size: .84rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 4px;
}

.multi-ad-txt .ad-url {
  font-size: .7rem;
  color: var(--meta);
}

/* ---------- Live TV Band ---------- */
.tvband { background:linear-gradient(135deg,var(--dark) 0%,#1a0a0a 50%,var(--red-dark) 100%); color:#fff; margin:0; position:relative; overflow:hidden; }
.tvband .wrap { display:flex; align-items:center; gap:28px; padding:20px 20px; position:relative; z-index:1; flex-wrap:wrap; }
.tvband-title { display:flex; align-items:center; gap:14px; font-weight:800; font-size:1.3rem; }
.tvband-title .live-chip { background:var(--red-hot); font-size:.72rem; font-weight:800; padding:4px 12px; border-radius:999px; display:flex; align-items:center; gap:6px; letter-spacing:1px; box-shadow:0 2px 12px rgba(255,26,46,.4); }
.tvband p { color:#d4d4d8; font-size:.9rem; flex:1; min-width:220px; }
.btn-watch { background:var(--yellow); color:#1a1a1a; font-weight:800; font-size:.85rem; padding:12px 28px; border-radius:999px; transition:var(--transition); flex-shrink:0; box-shadow:0 4px 16px rgba(251,191,36,.3); }
.btn-watch:hover { transform:translateY(-2px); box-shadow:0 6px 24px rgba(251,191,36,.4); }

/* ============================================================
   CATEGORY BLOCK DESIGN (COMPACT TIGHT GAP FOR 4 STACKED CARDS)
   ============================================================ */
.cat-block { margin-top: 40px; margin-bottom: 40px; }

/* Header with Underline Bar & Red View All Button */
.cat-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.cat-block-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: uppercase;
  position: relative;
}

.cat-block-title::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

.btn-view-all {
  background: var(--red);
  color: #fff !important;
  font-size: .8rem;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(230,0,18,.3);
  letter-spacing: .5px;
}
.btn-view-all:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(230,0,18,.4);
}

/* Category Grid: Featured Card (Left) + 4 Stacked Cards (Right) */
.cat-block-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* Left Featured Card */
.cat-feat-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.cat-feat-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cat-feat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: #d1d5db;
}

.cat-feat-card .feat-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f0f0f;
  flex-shrink: 0;
}

.cat-feat-card .feat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.cat-feat-card:hover .feat-img img {
  transform: scale(1.05);
}

.cat-feat-card .feat-content {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cat-feat-card .feat-meta {
  font-size: .78rem;
  color: var(--meta);
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-feat-card .feat-title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.cat-feat-card:hover .feat-title {
  color: var(--red);
}

.cat-feat-card .feat-desc {
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: auto;
}

/* Right Side 4 Stacked Cards with Tight Modern Gap */
.cat-stack-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cat-side-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  flex: 1;
  display: flex;
  align-items: center;
}

.cat-side-card a {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.cat-side-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  border-color: #d1d5db;
}

.cat-side-card .side-img {
  width: 125px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: #0f0f0f;
}

.cat-side-card .side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.cat-side-card:hover .side-img img {
  transform: scale(1.06);
}

.cat-side-card .side-content {
  flex: 1;
  min-width: 0;
}

.cat-side-card .side-title {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin: 2px 0;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-side-card:hover .side-title {
  color: var(--red);
}

.cat-side-card .side-meta {
  font-size: .72rem;
  color: var(--meta);
  font-weight: 500;
}

/* ---------- Web Stories ---------- */
.stories-band { background:var(--bg-warm); padding:32px 0 36px; margin-top:32px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.stories-row { display:grid; grid-auto-flow:column; grid-auto-columns:170px; gap:16px; overflow-x:auto; padding-bottom:8px; scrollbar-width:thin; scrollbar-color:var(--red) var(--line); }
.stories-row::-webkit-scrollbar { height:6px; }
.stories-row::-webkit-scrollbar-thumb { background:var(--red); border-radius:999px; }
.story { position:relative; border-radius:var(--radius-lg); overflow:hidden; height:280px; display:flex; align-items:flex-end; color:#fff; transition:var(--transition); box-shadow:var(--shadow-sm); cursor:pointer; }
.story:hover { transform:translateY(-6px); box-shadow:var(--shadow-lg); }
.story img.bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.story::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 30%,rgba(0,0,0,.9) 100%); }
.story h4 { position:relative; z-index:1; font-size:.85rem; font-weight:700; line-height:1.4; padding:16px; }
.story .ring { position:absolute; top:12px; left:12px; z-index:1; width:32px; height:32px; border-radius:50%; border:2.5px solid var(--yellow); background:var(--red); display:grid; place-items:center; font-size:.7rem; font-weight:800; box-shadow:0 2px 8px rgba(0,0,0,.3); }

/* ---------- Video Band Fix ---------- */
.video-band { background:var(--dark); color:#fff; padding:40px 0 44px; margin-top:36px; position:relative; }
.video-band::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background:linear-gradient(90deg,var(--red),var(--yellow),var(--red)); }
.video-band .sec-head { border-color:var(--red-hot); margin-bottom: 24px; }
.video-band .sec-head h2 { background:var(--red-hot); }
.video-band .sec-head h2::after { border-left-color:var(--red-hot); }
.video-band .sec-more { color:#fbbf24; }

.video-band .grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.video-band .card {
  display: flex;
  flex-direction: column;
}

.video-band .card .thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0f0f0f;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}

.video-band .card .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.video-band .card:hover .thumb img {
  transform: scale(1.06);
}

.video-band .card h3 {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.4;
  color: #f3f4f6;
  margin-top: 12px;
  transition: color 0.2s;
}

.video-band .card:hover h3 { color: var(--yellow); }
.video-band .meta { color: #9ca3af; font-size: .78rem; margin-top: 6px; }

/* ---------- Article Page Layout ---------- */
.article-wrap { display:grid; grid-template-columns:minmax(0,2.2fr) minmax(0,1fr); gap:36px; padding:28px 20px 48px; max-width:var(--wrap); margin:0 auto; overflow:hidden; }
.article-wrap > * { min-width: 0; overflow: hidden; }
.crumb { font-size:.82rem; color:var(--meta); margin-bottom:18px; display:flex; gap:8px; flex-wrap:wrap; }
.crumb a { color:var(--red); font-weight:600; }
.a-cat { display:inline-flex; align-items:center; gap:8px; background:var(--red); color:#fff; font-size:.72rem; font-weight:800; letter-spacing:1.5px; padding:6px 16px; border-radius:999px; margin-bottom:14px; text-transform:uppercase; box-shadow:0 2px 12px rgba(230,0,18,.25); }
h1.a-title { font-size:2.1rem; font-weight:800; line-height:1.25; letter-spacing:-0.02em; word-break: break-word; overflow-wrap: break-word; }
.a-standfirst { font-size:1.1rem; color:var(--ink-soft); font-weight:500; margin-top:14px; padding-left:16px; border-left:4px solid var(--yellow); line-height:1.55; word-break: break-word; }
/* ---------- Premium Article Byline Component ---------- */
.a-byline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.byline-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #990000);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 2px solid var(--red);
  box-shadow: 0 2px 10px rgba(230,0,18,0.25);
}

.byline-meta-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.byline-name-date {
  font-size: .92rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.byline-name-date .by-txt, .byline-name-date .on-txt {
  color: var(--meta);
  font-weight: 500;
}

.verified-badge {
  width: 16px;
  height: 16px;
  fill: var(--red);
  flex-shrink: 0;
}

.byline-stats {
  font-size: .78rem;
  color: var(--meta);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.byline-stats .dot-sep {
  color: var(--line);
}

/* Byline Right Actions */
.byline-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.social-share-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.share-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.share-btn.fb { background: #1877F2; }
.share-btn.x { background: #0f1419; }
.share-btn.wa { background: #25D366; }
.share-btn.copy { background: #27272a; }

.share-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

/* Google News Preferred Source Box (Matching Screenshot) */
.google-source-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 8px 14px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  flex-shrink: 0;
}

[data-theme="dark"] .google-source-box {
  background: #18181b;
  border-color: #27272a;
}

.google-source-box:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.google-source-box .g-logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.google-source-box .g-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.google-source-box .g-txt .l1,
.google-source-box .g-txt .l2 {
  font-size: .75rem;
  font-weight: 600;
  color: var(--ink);
}

.a-figure { margin:24px 0; }
.a-figure .img { position:relative; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-md); }
.a-figure .img img { width:100%; max-height:480px; object-fit:cover; }
.a-figure figcaption { font-size:.8rem; color:var(--meta); padding:10px 4px; border-bottom:1px dashed var(--line); display:flex; align-items:center; gap:6px; }

.highlights {
  background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
  border: 1px solid #fecaca;
  border-left: 5px solid #e60012;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(230,0,18,0.05);
}

[data-theme="dark"] .highlights {
  background: #1c1012;
  border-color: #3f1d24;
  border-left-color: #e60012;
}

.highlights h3 {
  font-size: .88rem;
  font-weight: 800;
  color: #e60012;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.highlights li {
  font-size: .86rem;
  font-weight: 600;
  padding: 4px 0 4px 22px;
  position: relative;
  color: var(--ink);
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: break-word;
}

.highlights li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #e60012;
  font-size: 1.25rem;
  font-weight: 800;
  top: -1px;
}

/* ---------- In-Article Related News Carousel (Matching Screenshot 1) ---------- */
.in-article-carousel-box {
  margin: 32px 0;
  border: 1px solid #1e3a8a;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.in-article-carousel-head {
  background: #002b66;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 10px 18px;
  display: flex;
  align-items: center;
}

.in-article-carousel-wrap {
  position: relative;
  padding: 16px 40px;
}

.in-article-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.in-article-carousel-track::-webkit-scrollbar { display: none; }

.in-carousel-card {
  flex: 0 0 240px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border-right: 1px solid var(--line);
  padding-right: 14px;
  transition: var(--transition);
}

.in-carousel-card:last-child {
  border-right: none;
  padding-right: 0;
}

.in-carousel-card .ic-thumb {
  width: 76px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #0f0f0f;
}

.in-carousel-card .ic-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.in-carousel-card .ic-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.in-carousel-card:hover .ic-title {
  color: var(--red);
}

.in-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  font-size: .9rem;
  cursor: pointer;
  z-index: 5;
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.in-carousel-nav:hover { background: #002b66; }
.in-carousel-nav.prev { left: 6px; }
.in-carousel-nav.next { right: 6px; }

/* ---------- Community Join Channel Cards (Matching Screenshot 2) ---------- */
.join-channels-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0;
}

.join-btn-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: var(--transition);
}

.join-btn-card .join-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
  font-weight: 700;
}

.join-btn-card .join-left svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.join-btn-card .btn-action {
  font-size: .8rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 6px;
  color: #fff;
}

/* WhatsApp Channel */
.join-btn-card.wa {
  background: #f0fdf4;
  border: 1.5px solid #22c55e;
  color: #15803d;
}
.join-btn-card.wa .btn-action { background: #22c55e; }

/* Telegram Channel */
.join-btn-card.tg {
  background: #f0f9ff;
  border: 1.5px solid #0284c7;
  color: #0369a1;
}
.join-btn-card.tg .btn-action { background: #0284c7; }

/* YouTube Channel */
.join-btn-card.yt {
  background: #fef2f2;
  border: 1.5px solid #ef4444;
  color: #b91c1c;
}
.join-btn-card.yt .btn-action { background: #ef4444; }

/* Instagram Channel */
.join-btn-card.ig {
  background: #fdf2f8;
  border: 1.5px solid #ec4899;
  color: #be185d;
}
.join-btn-card.ig .btn-action {
  background: linear-gradient(135deg, #f59e0b, #ec4899, #8b5cf6);
}

.join-btn-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* ---------- Full Width Bottom Share Strip (Matching Screenshot 2) ---------- */
.bottom-share-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 24px 0;
}

.bottom-share-strip .share-lbl {
  font-size: .8rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: .5px;
  margin-right: 4px;
}

.share-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.share-pill svg { width: 14px; height: 14px; fill: #fff; }
.share-pill.fb { background: #1877F2; }
.share-pill.x { background: #0f1419; }
.share-pill.wa { background: #25D366; }
.share-pill.tg { background: #0088cc; }
.share-pill.li { background: #0A66C2; }

.share-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

/* ---------- Author Bio Card (Matching Screenshot 2) ---------- */
.author-bio-card {
  display: flex;
  gap: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
  overflow: hidden;
  min-width: 0;
}

.author-bio-card .bio-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-size: 2.5rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 3px solid var(--red);
  box-shadow: 0 4px 14px rgba(230,0,18,0.25);
}

.author-bio-card .bio-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

.author-bio-card .bio-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.author-bio-card .verified-blue {
  width: 18px;
  height: 18px;
  fill: #3b82f6;
  flex-shrink: 0;
}

.author-bio-card .bio-desc {
  font-size: .86rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 12px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.author-bio-card .bio-socials {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.bio-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.bio-icon svg {
  width: 16px;
  height: 16px;
}

.bio-icon:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
  color: #fff;
  border-color: var(--red);
}

.tags { display:flex; gap:10px; flex-wrap:wrap; margin:28px 0 8px; }
.tags a { font-size:.8rem; font-weight:700; border:1.5px solid var(--line); border-radius:999px; padding:6px 16px; transition:var(--transition); color:var(--ink-soft); }
.tags a:hover { background:var(--red); border-color:var(--red); color:#fff; transform:translateY(-2px); box-shadow:0 4px 12px rgba(230,0,18,.2); }

.next-story { margin-top:32px; background:linear-gradient(135deg,var(--red),var(--red-dark)); border-radius:var(--radius-lg); color:#fff; padding:20px 24px; display:flex; align-items:center; gap:16px; transition:var(--transition); overflow:hidden; position:relative; box-shadow:var(--shadow-md); }
.next-story:hover { transform:translateX(6px); box-shadow:0 8px 30px rgba(230,0,18,.3); }

/* Forms & Inputs */
.form-control { width:100%; padding:0.8rem 1rem; background:var(--bg-soft); border:1px solid var(--line); border-radius:var(--radius-sm); color:var(--ink); font-size:0.95rem; font-family:var(--font-body); }
.form-control:focus { outline:none; border-color:var(--red); }
.btn-primary { display:inline-block; width:100%; padding:0.85rem 1.5rem; background:var(--red); color:#ffffff; border:none; border-radius:var(--radius-sm); font-weight:700; cursor:pointer; font-size:0.95rem; text-align:center; transition:var(--transition); }
.btn-primary:hover { background:var(--red-dark); }

/* ---------- Reading Progress Bar ---------- */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow), var(--red));
  width: 0%;
  z-index: 999999;
  transition: width 0.1s ease-out;
}

/* ---------- Automatic Table of Contents (TOC) Box ---------- */
.toc-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 5px solid #0284c7;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 24px 0 32px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.toc-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.toc-toggle {
  font-size: .75rem;
  font-weight: 700;
  color: #0284c7;
}

.toc-list {
  margin: 14px 0 0 20px;
  padding: 0;
}

.toc-item {
  font-size: .92rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.toc-item.h3 {
  margin-left: 18px;
  font-size: .86rem;
  font-weight: 500;
}

.toc-item a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: var(--transition);
}

.toc-item a:hover {
  color: var(--red);
  text-decoration: underline;
}

/* ---------- Responsive Data Tables inside Article Body ---------- */
.a-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: .92rem;
  background: var(--bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.a-body th {
  background: var(--dark);
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  font-size: .85rem;
  letter-spacing: .5px;
}

.a-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.a-body tr:nth-child(even) td {
  background: var(--bg-soft);
}

.a-body tr:hover td {
  background: rgba(230,0,18,0.04);
}

/* ---------- World-Class Article Typography & Editorial Layout ---------- */
.a-body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
  letter-spacing: -0.01em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
  overflow: hidden;
}

/* Paragraph Spacing & Line Length */
.a-body p {
  margin-top: 0;
  margin-bottom: 22px;
  max-width: 72ch;
  font-weight: 400;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* First Letter Drop Cap (Only for the very first paragraph) */
.a-body > p:first-of-type::first-letter {
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--red);
  float: left;
  line-height: 0.85;
  padding: 6px 12px 0 0;
  font-family: var(--font-logo);
}

/* Subheadings H2, H3 & Bold Paragraph Titles */
.a-body h2, .a-body h3, .a-body p strong:first-child, .a-body p b:first-child {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
  margin-top: 36px;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}

.a-body h2, .a-body h3 {
  display: block;
  padding-left: 14px;
  border-left: 4px solid var(--red);
}

.a-body h3 {
  font-size: 1.2rem;
  border-left-color: var(--yellow);
}

/* Bold text inside content */
.a-body strong, .a-body b {
  color: var(--ink);
  font-weight: 700;
}

/* Unordered & Ordered Lists in Article Content */
.a-body ul, .a-body ol {
  margin: 20px 0 28px 24px;
  padding: 0;
}

.a-body li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* Pullquote Styling */
.pullquote {
  margin: 36px 0;
  padding: 24px 28px;
  background: var(--bg-soft);
  border-left: 5px solid var(--red);
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

/* ---------- Footer ---------- */
footer { background:var(--dark); color:#9ca3af; margin-top:auto; }
.foot-top { display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:40px; padding:48px 0 36px; font-size:.86rem; }
.foot-logo { font-family:var(--font-logo); font-size:2.2rem; color:#fff; font-weight:700; display:inline-flex; gap:3px; align-items:baseline; margin-bottom:16px; }
.foot-logo .logo-aaj { background:var(--red); color:#fff; padding:4px 12px 2px; border-radius:var(--radius-sm); transform:skewX(-6deg); }
.foot-top p { line-height:1.8; color:#9ca3af; font-size:.85rem; }
.foot-top h5 { color:#fff; font-size:.95rem; margin-bottom:16px; letter-spacing:.5px; font-weight:700; }
.foot-top li { margin-bottom:10px; }
.foot-top a { color:#9ca3af; transition:var(--transition); }
.foot-top a:hover { color:#fff; padding-left:4px; }
.foot-bottom { border-top:1px solid #1f2937; padding:20px 0; font-size:.78rem; color:#6b7280; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.foot-bottom a { color:#9ca3af; transition:color .2s; }
.foot-bottom a:hover { color:#fff; }

.scroll-top { position:fixed; bottom:24px; right:24px; width:44px; height:44px; border-radius:50%; background:var(--red); color:#fff; display:grid; place-items:center; cursor:pointer; opacity:0; pointer-events:none; transform:translateY(20px); transition:opacity .3s ease, transform .3s ease; box-shadow:0 4px 16px rgba(230,0,18,.4); z-index:99; border:none; line-height:1; }
.scroll-top.visible { opacity:1; transform:translateY(0); pointer-events:auto; }
.scroll-top:hover { transform:translateY(-4px) !important; box-shadow:0 6px 24px rgba(230,0,18,.5); }
.scroll-top svg { width:20px; height:20px; display:block; }

/* Mobile bottom nav — hidden on desktop by default */
.mobile-bottom-nav { display:none; }


/* ---------- Slide-Over Mobile Drawer Styling ---------- */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}
.mobile-menu-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.mobile-drawer-overlay.open { opacity: 1; visibility: visible; }

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 290px;
  background: var(--bg);
  z-index: 99999;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open { transform: translateX(0); }

.drawer-head {
  padding: 16px 20px;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.drawer-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.drawer-content {
  padding: 16px 0;
  overflow-y: auto;
  flex: 1;
}

.drawer-link {
  display: block;
  padding: 12px 20px;
  font-size: .92rem;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: background .2s, color .2s;
  text-transform: uppercase;
}
.drawer-link:hover, .drawer-link.active {
  background: var(--red);
  color: #fff;
}

/* ============================================================
   MOBILE RESPONSIVE ENGINE (Fluid, Fast & Touch Friendly)
   ============================================================ */

@media (max-width: 1024px){
  .wrap { padding: 0 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .cat-block-grid { grid-template-columns: 1fr; gap: 20px; }
  .grid-4, .video-band .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .article-wrap { grid-template-columns: 1fr !important; padding: 16px; gap: 24px; }
  .a-body p { max-width: 100%; }
  h1.a-title { font-size: 1.7rem; }
}

@media (max-width: 768px){
  /* ---- Prevent all horizontal overflow ---- */
  html, body { overflow-x: hidden !important; width: 100% !important; max-width: 100vw !important; }
  .wrap { padding: 0 14px !important; overflow: hidden; }

  /* Layout Grids stack cleanly to 1 column on Mobile */
  .hero-grid { grid-template-columns: 1fr !important; gap: 20px; }
  .sub-leads { grid-template-columns: 1fr !important; gap: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; gap: 16px; }
  .cat-block-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .two-col { grid-template-columns: 1fr !important; gap: 24px; }

  /* ---- Article Page Full Width Layout ---- */
  .article-wrap {
    display: block !important;
    padding: 12px 14px !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .article-wrap > * { min-width: 0; overflow: hidden; }

  /* ---- Article Title, Standfirst ---- */
  h1.a-title {
    font-size: 1.42rem !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  .a-standfirst {
    font-size: .92rem !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* ---- Article Body Typography ---- */
  .a-body {
    font-size: .97rem !important;
    line-height: 1.78 !important;
    overflow: hidden !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
  .a-body p {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
  .a-body h2, .a-body h3 {
    font-size: 1.1rem !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  /* ---- Article Feature Image ---- */
  .a-figure { margin: 16px 0 !important; }
  .a-figure .img img {
    width: 100% !important;
    max-height: 240px !important;
    object-fit: cover !important;
  }

  /* ---- TOC Box Mobile ---- */
  .toc-box {
    padding: 12px 14px !important;
    margin: 16px 0 20px !important;
    overflow: hidden !important;
  }
  .toc-list { margin-left: 14px !important; }
  .toc-item a {
    font-size: .85rem !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* ---- Highlights Box Mobile ---- */
  .highlights {
    padding: 14px 16px !important;
    margin: 16px 0 !important;
  }
  .highlights li { font-size: .88rem !important; }

  /* ---- Pullquote Mobile ---- */
  .pullquote {
    padding: 14px 16px !important;
    font-size: 1rem !important;
    margin: 20px 0 !important;
  }

  /* ---- Data Tables Mobile Scroll ---- */
  .a-body table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100% !important;
    font-size: .82rem !important;
  }

  /* ---- In-Article Carousel Mobile ---- */
  .in-article-carousel-wrap { padding: 12px 36px !important; }
  .in-carousel-card { flex: 0 0 200px !important; }

  /* ---- Mobile Header Navigation & Actions ---- */
  .mainnav { display: none !important; }
  .mobile-menu-btn { display: flex !important; width: 36px !important; height: 36px !important; font-size: 1.15rem !important; }
  
  .masthead-inner { height: 56px !important; padding: 0 10px !important; gap: 6px !important; justify-content: space-between !important; }
  .logo { font-size: 1.45rem !important; gap: 2px !important; flex-shrink: 0 !important; }
  .logo .logo-aaj { padding: 2px 6px 1px !important; font-size: 1.4rem !important; }
  .logo .logo-khabar { padding: 2px 4px 1px !important; }
  .logo-tag { display: none !important; }
  .head-actions { gap: 4px !important; margin-left: 0 !important; flex-shrink: 0 !important; }
  .btn-livetv { display: none !important; }
  .btn-search, .btn-theme {
    width: 34px !important;
    height: 34px !important;
    font-size: .9rem !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
  }

  /* ---- Compact Hero Slider on Mobile ---- */
  .slider-wrapper { aspect-ratio: 16 / 10 !important; }
  .slider-arrow { width: 32px !important; height: 32px !important; font-size: .85rem !important; }
  .slider-arrow.prev { left: 8px !important; }
  .slider-arrow.next { right: 8px !important; }
  .slider-dots { bottom: 10px !important; right: 12px !important; gap: 6px !important; }
  .slider-dots .dot { width: 8px !important; height: 8px !important; }
  .slider-dots .dot.active { width: 18px !important; }
  .lead-content { padding: 16px 12px 12px !important; background: linear-gradient(transparent 5%, rgba(0,0,0,.9) 55%) !important; }
  .lead h1 { font-size: 1.05rem !important; line-height: 1.3 !important; -webkit-line-clamp: 2 !important; display: -webkit-box !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }
  .lead p { display: none !important; }
  .cat-side-card a { flex-direction: row; }
  .cat-side-card .side-img { width: 100px !important; }

  /* ---- Article Byline Mobile ---- */
  .a-byline-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 12px 0 !important;
    flex-wrap: wrap !important;
  }
  .byline-left { width: 100% !important; gap: 10px !important; }
  .byline-right {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }
  .byline-name-date { font-size: .82rem !important; flex-wrap: wrap !important; }
  .social-share-group { gap: 6px !important; }
  .google-source-box { padding: 6px 10px !important; gap: 8px !important; }
  .google-source-box .g-logo { width: 20px !important; height: 20px !important; }
  .google-source-box .g-txt .l1,
  .google-source-box .g-txt .l2 { font-size: .68rem !important; }
  .a-byline { flex-direction: column; align-items: flex-start; gap: 10px; }
  .share { margin-left: 0; }

  /* ---- Topbar Mobile ---- */
  .topbar { height: auto; padding: 6px 0; }
  .topbar .wrap { flex-direction: column; gap: 6px; height: auto; padding: 0 10px; }
  .topbar-left { width: 100%; justify-content: center; font-size: .75rem; }
  .topbar-links { display: none; }
  .topbar-right { width: 100%; justify-content: space-between; }
  .lang-dropdown { position: relative !important; }
  .lang-menu { left: 0 !important; right: auto !important; transform: none !important; min-width: 175px !important; }

  /* ---- Ticker Mobile ---- */
  .ticker::before { width: 72px !important; }
  .ticker-label { padding: 0 8px 0 10px !important; font-size: .72rem !important; gap: 4px !important; }
  .ticker-label .txt-desktop { display: none !important; }
  .ticker-label .txt-mobile { display: inline !important; }

  /* ---- Live TV Band Mobile ---- */
  .tvband .wrap { flex-direction: column !important; text-align: center !important; justify-content: center !important; align-items: center !important; padding: 24px 16px !important; gap: 12px !important; }
  .tvband-title { font-size: 1.1rem !important; justify-content: center !important; flex-wrap: wrap !important; }
  .tvband p { text-align: center !important; font-size: .84rem !important; margin: 0 !important; }
  .btn-watch { max-width: 240px !important; text-align: center !important; padding: 10px 20px !important; }

  /* ---- Footer Mobile ---- */
  .foot-top { grid-template-columns: 1fr 1fr !important; gap: 24px 16px !important; padding: 32px 16px 24px !important; }
  .foot-brand { grid-column: 1 / -1 !important; margin-bottom: 8px !important; }
  .foot-logo { font-size: 1.8rem !important; }
  .foot-bottom { flex-direction: column; text-align: center; gap: 8px; padding: 16px 0; }

  /* ---- Community Join Channels Mobile ---- */
  .join-btn-card {
    padding: 10px 14px !important;
    flex-wrap: wrap !important;
  }
  .join-btn-card .join-left { font-size: .88rem !important; }

  /* ---- Bottom Share Strip Mobile ---- */
  .bottom-share-strip { flex-wrap: wrap !important; gap: 6px !important; }
  .share-pill { padding: 6px 10px !important; font-size: .78rem !important; }

  /* ---- Reading Progress Bar stays fixed ---- */
  .reading-progress-bar { height: 3px !important; }

  /* ---- Author Bio Card Mobile ---- */
  .author-bio-card {
    flex-direction: row !important;
    gap: 12px !important;
    padding: 14px !important;
    align-items: flex-start !important;
    overflow: hidden !important;
  }
  .author-bio-card .bio-avatar {
    width: 56px !important;
    height: 56px !important;
    font-size: 1.4rem !important;
    flex-shrink: 0 !important;
  }
  .author-bio-card .bio-content {
    min-width: 0 !important;
    overflow: hidden !important;
    word-break: break-word !important;
  }
  .author-bio-card .bio-name { font-size: 1rem !important; }
  .author-bio-card .bio-desc { font-size: .82rem !important; line-height: 1.5 !important; }
  .author-bio-card .bio-socials { gap: 6px !important; }
  .bio-icon { width: 28px !important; height: 28px !important; }
  .bio-icon svg { width: 13px !important; height: 13px !important; }

  /* ---- Highlights Box Mobile ---- */
  .highlights { padding: 12px 14px !important; margin: 14px 0 !important; }
  .highlights h3 { font-size: .82rem !important; margin-bottom: 8px !important; }
  .highlights li { font-size: .82rem !important; padding: 3px 0 3px 20px !important; }

  /* ---- Mobile Bottom Sticky Nav ---- */
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #616e7f;
    font-size: 0.7rem;
    font-weight: 600;
    transition: color 0.2s;
  }
  .mobile-bottom-nav a svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    fill: currentColor;
  }
  .mobile-bottom-nav a:hover,
  .mobile-bottom-nav a.active {
    color: var(--red);
  }
  .mobile-bottom-nav a span {
    display: block;
  }
  .mobile-nav-handle {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
  }
  body {
    padding-bottom: 70px !important; /* Space for sticky nav */
  }
  .scroll-top {
    bottom: 80px !important; /* Push scroll-to-top button above nav */
  }
}

@media (max-width: 480px){
  .logo { font-size: 1.35rem !important; }
  .cat-block-title { font-size: 1.15rem !important; }
  .btn-view-all { padding: 6px 12px; font-size: .72rem; }
  .cat-feat-card .feat-title { font-size: 1.05rem !important; }
  .video-band .grid-4 { grid-template-columns: 1fr !important; }
  .foot-top { grid-template-columns: 1fr 1fr !important; }
  h1.a-title { font-size: 1.28rem !important; }
  .a-body { font-size: .93rem !important; }
  .in-carousel-card { flex: 0 0 180px !important; }
  .a-figure .img img { max-height: 200px !important; }
}
