/* ============================================================
   আল মুস্তাকিম — Bangla News Portal
   Design tokens, layout, components, dark mode, responsive
   ============================================================ */

:root {
  --crimson: #b91c1c;
  --crimson-dark: #7f1d1d;
  --crimson-soft: #fee2e2;
  --accent: #d4af37;
  --ink: #1a1a1a;
  --ink-soft: #4b5563;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f8f8f8;
  --bg-card: #ffffff;
  --bg-dark: #1a1a1a;
  --white: #ffffff;

  --font: "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
  --fs-h1: 26px;
  --fs-h2: 20px;
  --fs-h3: 18px;
  --fs-body: 15px;
  --fs-sm: 13px;
  --lh-body: 1.6;
  --lh-head: 1.25;

  --gap: 24px;
  --radius: 10px;
  --radius-sm: 6px;

  --container: 1200px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --transition: 0.25s ease;
}

.dark {
  --crimson: #ef4444;
  --crimson-dark: #b91c1c;
  --crimson-soft: #450a0a;
  --ink: #eeeeee;
  --ink-soft: #b3b3b3;
  --line: #2a2a2a;
  --bg: #121212;
  --bg-alt: #1a1a1a;
  --bg-card: #1e1e1e;
  --bg-dark: #0a0a0a;
  --white: #121212;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; pointer-events: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: var(--lh-head); font-weight: 700; }
p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============ LAYOUT ============ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}

/* ============ TOPBAR ============ */
.topbar {
  background: var(--crimson-dark);
  color: #fff;
  font-size: var(--fs-sm);
  position: relative;
  z-index: 60;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
}
.topbar__date { opacity: 0.9; }
.topbar__socials a {
  margin-left: 16px;
  opacity: 0.9;
  transition: opacity var(--transition);
  pointer-events: auto;
}
.topbar__socials a:hover { opacity: 1; }

/* ============ HEADER ============ */
.site-header {
  background: var(--bg);
  border-bottom: 3px solid var(--crimson);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  pointer-events: auto;
}
.brand__name {
  font-size: 28px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.5px;
  transition: color var(--transition);
}
.brand:hover .brand__name { color: var(--crimson); }
.brand--footer .brand__name { color: #fff; }
.brand--footer:hover .brand__name { color: var(--accent); }

.header__actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.theme-toggle:hover { background: var(--bg-alt); transform: rotate(15deg); }
.theme-toggle .icon-moon { display: none; }
.dark .theme-toggle .icon-sun { display: none; }
.dark .theme-toggle .icon-moon { display: block; }

/* ============ LIVE BUTTON ============ */
.live-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 700; color: #fff;
  background: var(--crimson);
  text-decoration: none; white-space: nowrap;
  transition: opacity .2s, transform .2s;
}
.live-btn:hover { opacity: .85; transform: scale(1.05); }
.live-btn__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff; display: inline-block;
  animation: live-pulse 1.5s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

/* ============ HAMBURGER ============ */
.hamburger {
  width: 40px; height: 40px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============ PRIMARY NAV ============ */
.primary-nav {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 40;
}
.primary-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.primary-nav__list a {
  display: block;
  padding: 12px 16px;
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--ink);
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  pointer-events: auto;
}
.primary-nav__list a:hover { color: var(--crimson); background: var(--bg-card); }
.primary-nav__list a.is-active { color: var(--crimson); border-bottom-color: var(--crimson); font-weight: 600; }

/* ============ TICKER ============ */
.ticker {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  position: relative;
  z-index: 30;
}
.dark .ticker { background: #000; }
.ticker__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
}
.ticker__label {
  flex: 0 0 auto;
  background: var(--crimson);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}
.ticker__viewport {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
}
.ticker__track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-scroll 38s linear infinite;
  gap: 48px;
  font-size: var(--fs-sm);
}
.ticker__track span { font-weight: 500; }
.ticker__track:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ TICKER SPACING (gap below breaking news) ============ */
.ticker { margin-bottom: 28px; }

/* ============ MOBILE DRAWER ============ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed;
  top: 0; left: -280px;
  width: 280px;
  height: 100vh;
  background: var(--bg);
  z-index: 100;
  box-shadow: var(--shadow-lg);
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
}
.drawer.is-open { left: 0; }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--crimson);
  color: #fff;
}
.drawer__title { font-size: 18px; font-weight: 700; }
.drawer__close {
  font-size: 28px;
  line-height: 1;
  color: #fff;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}
.drawer__close:hover { background: rgba(255,255,255,0.2); }
.drawer__list a {
  display: block;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--ink);
  transition: background var(--transition), color var(--transition);
  pointer-events: auto;
}
.drawer__list a:hover { background: var(--bg-alt); color: var(--crimson); }

/* ============ MAIN GRID ============ */
.main-grid {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: var(--gap);
  padding-block: 32px;
}

/* ============ SECTION HEAD ============ */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
  position: relative;
}
.section-head::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--crimson);
  border-radius: 1px;
}
.section-head__title {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--ink);
  position: relative;
  padding-left: 14px;
}
.section-head__title::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 4px;
  background: var(--crimson);
  border-radius: 2px;
}
.section-head__more {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--crimson);
  transition: opacity var(--transition);
  pointer-events: auto;
}
.section-head__more:hover { opacity: 0.75; }

/* ============ FEATURED / LEAD GRID (with proper spacing) ============ */
.lead-section {
  margin-top: 0;
  margin-bottom: 48px;
}
.lead-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 20px;
}
.lead-story {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.lead-story:hover { box-shadow: var(--shadow-lg); }
.lead-story__media {
  position: relative;
  display: block;
  overflow: hidden;
  pointer-events: auto;
}
.lead-story__media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.lead-story__media:hover img { transform: scale(1.04); }
.lead-story__body { padding: 20px; }
.lead-story__title {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}
.lead-story__title a { pointer-events: auto; }
.lead-story__title a:hover { color: var(--crimson); }
.lead-story__excerpt {
  color: var(--ink-soft);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin-bottom: 12px;
}

.lead-grid__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lead-grid__item {
  display: flex;
  gap: 14px;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 12px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.lead-grid__item:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }
.lead-grid__item-media {
  position: relative;
  flex: 0 0 120px;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  pointer-events: auto;
}
.lead-grid__item-media img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.lead-grid__item:hover .lead-grid__item-media img { transform: scale(1.06); }
.lead-grid__item-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.lead-grid__item-title {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
}
.lead-grid__item-title a { pointer-events: auto; }
.lead-grid__item-title a:hover { color: var(--crimson); }
.lead-grid__item-body time {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

/* ============ BADGE ============ */
.badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--crimson);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  z-index: 2;
}
.badge--lead { font-size: var(--fs-body); }

/* ============ META ============ */
.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.meta__dot { opacity: 0.6; }

/* ============ LATEST GRID ============ */
.latest { margin-bottom: 48px; }
.latest__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.news-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  pointer-events: auto;
}
.news-card__media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__title {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.35;
  padding: 12px 14px 6px;
}
.news-card__title a { pointer-events: auto; }
.news-card__title a:hover { color: var(--crimson); }
.news-card__excerpt {
  padding: 0 14px 8px;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: var(--lh-body);
}
.news-card time {
  display: block;
  padding: 0 14px 14px;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

/* ============ SIDEBAR ============ */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

.trending__list { counter-reset: trend; }
.trending__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.trending__list li:last-child { border-bottom: none; }
.trending__rank {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 700;
  color: var(--crimson);
  font-variant-numeric: tabular-nums;
  min-width: 28px;
}
.trending__list a {
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.4;
  transition: color var(--transition);
  pointer-events: auto;
}
.trending__list a:hover { color: var(--crimson); }

.most-read__list { display: flex; flex-direction: column; gap: 14px; }
.most-read__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: opacity var(--transition);
}
.most-read__item:hover { opacity: 0.8; }
.most-read__item img {
  width: 80px; height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex: 0 0 auto;
}
.most-read__item h3 {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
}
.most-read__item:hover h3 { color: var(--crimson); }
.most-read__item time {
  font-size: 12px;
  color: var(--ink-soft);
}

/* ============ SECTION BLOCKS ============ */
.section-block {
  padding-block: 48px;
}
.section-block--special { background: var(--bg-alt); }

/* ============ SPECIAL REPORT ============ */
.special-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.special-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.special-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.special-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  pointer-events: auto;
}
.special-card__media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.special-card:hover .special-card__media img { transform: scale(1.05); }
.special-card__body { padding: 18px; }
.special-card__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}
.special-card__title a { pointer-events: auto; }
.special-card__title a:hover { color: var(--crimson); }
.special-card__excerpt {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: var(--lh-body);
  margin-bottom: 10px;
}

/* ============ REGIONAL NEWS ============ */
.regional-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.regional-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.regional-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.regional-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  pointer-events: auto;
}
.regional-card__media img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.regional-card:hover .regional-card__media img { transform: scale(1.08); }
.regional-card__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.35;
  padding: 10px 12px;
}
.regional-card__title a { pointer-events: auto; }
.regional-card__title a:hover { color: var(--crimson); }

/* ============ LEAD CAPTURE BANNER ============ */
.lead-capture-banner {
  background: linear-gradient(135deg, var(--crimson-dark) 0%, var(--crimson) 100%);
  color: #fff;
  padding-block: 40px;
  margin-top: 0;
}
.lead-capture-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.lead-capture-banner__text { flex: 1; min-width: 280px; }
.lead-capture__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}
.lead-capture__sub {
  font-size: var(--fs-body);
  opacity: 0.92;
  line-height: var(--lh-body);
}
.lead-capture-banner__form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.lead-capture__input {
  padding: 14px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: var(--fs-body);
  color: var(--ink);
  background: #fff;
  min-width: 220px;
}
.lead-capture__input::placeholder { color: #9ca3af; }
.lead-capture__input:focus { outline: 3px solid var(--accent); }
.lead-capture__btn {
  padding: 14px 28px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: var(--fs-body);
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}
.dark .lead-capture__btn { background: #000; }
.lead-capture__btn:hover { transform: translateY(-2px); }
.lead-capture__msg {
  font-size: var(--fs-sm);
  min-height: 18px;
  font-weight: 500;
  width: 100%;
}
.lead-capture__msg.is-ok { color: #fff; }
.lead-capture__msg.is-err { color: #ffe4e6; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink);
  color: #fff;
}
.dark .site-footer { background: #000; }
.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-block: 40px;
}
.site-footer__brand p {
  margin-top: 14px;
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
  opacity: 0.85;
  max-width: 360px;
}
.site-footer__nav h3 {
  font-size: var(--fs-h3);
  margin-bottom: 14px;
  color: #fff;
}
.site-footer__nav li { margin-bottom: 8px; }
.site-footer__nav a {
  font-size: var(--fs-sm);
  opacity: 0.85;
  transition: opacity var(--transition), color var(--transition);
  pointer-events: auto;
}
.site-footer__nav a:hover { opacity: 1; color: var(--accent); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-block: 20px;
  text-align: center;
}
.site-footer__copyright {
  font-size: var(--fs-sm);
  opacity: 0.85;
  margin-bottom: 6px;
}
.site-footer__editor {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.3px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .main-grid { grid-template-columns: 1fr; }
  .latest__grid { grid-template-columns: repeat(2, 1fr); }
  .lead-grid { grid-template-columns: 1fr; }
  .lead-story__media img { height: 300px; }
  .special-grid { grid-template-columns: repeat(2, 1fr); }
  .regional-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .lead-capture-banner__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .hamburger { display: inline-flex; }
  .primary-nav { display: none; }
  .topbar__socials { display: none; }
  .latest__grid { grid-template-columns: 1fr; }
  .lead-grid { grid-template-columns: 1fr; }
  .lead-story__media img { height: 220px; }
  .lead-story__title { font-size: 22px; }
  .special-grid { grid-template-columns: 1fr; }
  .regional-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .section-head__title { font-size: 18px; }
  .section-block { padding-block: 32px; }
  .lead-capture-banner__form { flex-direction: column; align-items: stretch; }
  .lead-capture__input { min-width: 0; width: 100%; }
  .lead-capture__btn { width: 100%; }
  .ticker { margin-bottom: 20px; }
}

@media (max-width: 420px) {
  .container { padding-inline: 12px; }
  .brand__name { font-size: 24px; }
  .regional-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  * { transition: none !important; }
}

/* ============ ARTICLE DETAIL PAGE ============ */
.main-content { max-width: var(--container); }
.article-detail { max-width: 800px; margin: 0 auto; }
.article-detail__header { margin-bottom: 24px; }
.article-detail__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin: 12px 0 10px;
}
.article-detail__excerpt {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: var(--lh-body);
  margin-bottom: 16px;
}
.article-detail__image { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; }
.article-detail__image img { width: 100%; border-radius: var(--radius); }
.article-detail__body { font-size: 16px; line-height: 1.8; color: var(--ink); }
.article-detail__body p { margin-bottom: 16px; }
.article-detail__body h2 { font-size: 20px; margin: 24px 0 12px; }
.article-detail__body h3 { font-size: 18px; margin: 20px 0 10px; }
.article-detail__body img { border-radius: var(--radius); margin: 16px 0; }
.article-detail__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.tag {
  background: var(--bg-alt);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
}

/* ============ HOME COLUMNS ============ */
.home-columns {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: var(--gap);
  padding-block: 48px;
}
.home-sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.widget-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
  position: relative;
}
.widget-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--crimson);
  border-radius: 1px;
}

/* ============ AUTHOR PROFILE ============ */
.author-profile {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.author-profile__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-profile__info h1 { font-size: 24px; margin-bottom: 4px; }
.author-profile__role { color: var(--crimson); font-weight: 600; margin-bottom: 12px; }
.author-profile__bio { color: var(--ink-soft); line-height: var(--lh-body); margin-bottom: 12px; }
.author-profile__socials { display: flex; gap: 12px; }
.author-profile__socials a {
  font-size: 14px;
  font-weight: 600;
  color: var(--crimson);
  transition: opacity var(--transition);
  pointer-events: auto;
}
.author-profile__socials a:hover { opacity: 0.7; }

/* ---- Reporter Avatar (perfect circle, object-fit: cover) ---- */
.reporter-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: inline-block;
}
.reporter-byline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.author-profile__photo--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--crimson);
  color: #fff;
  font-size: 48px;
  font-weight: 700;
}
.reporter-byline__name {
  color: var(--crimson);
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--transition);
}
.reporter-byline__name:hover { opacity: 0.75; }

@media (max-width: 768px) {
  .home-columns { grid-template-columns: 1fr; }
  .author-profile { flex-direction: column; align-items: center; text-align: center; }
  .article-detail__title { font-size: 22px; }
}

/* ---- Desktop Logo & Menu Alignment (Web only) ---- */
.site-header--logo-center .site-header__inner {
  justify-content: center;
  text-align: center;
}
.site-header--logo-center .brand {
  margin: 0 auto;
}
.primary-nav--center .primary-nav__list {
  justify-content: center;
}

/* ---- Live TV Button Pulse ---- */
.live-btn__dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; margin-left: 6px; vertical-align: middle;
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}

/* ---- Custom Ad Placements (CLS-safe) ---- */
.ad-banner { max-width: 100%; height: auto; margin: 0 auto; overflow: hidden; border-radius: 8px; background: #f9fafb; }
.ad-banner img { display: block; width: 100%; height: auto; border-radius: 8px; }
.ad-banner--leaderboard { max-width: 970px; aspect-ratio: 970 / 90; }
.ad-banner--square { max-width: 500px; aspect-ratio: 1 / 1; }
.ad-banner--regional { max-width: 970px; aspect-ratio: 970 / 90; }
.ad-banner--leaderboard img { object-fit: contain; }
.ad-banner--square img { object-fit: contain; }
.ad-banner--regional img { object-fit: contain; }
@media (max-width: 768px) {
  .ad-banner--leaderboard { aspect-ratio: 728 / 90; }
}
@media (max-width: 480px) {
  .ad-banner--leaderboard { aspect-ratio: 320 / 50; }
  .ad-banner--regional { aspect-ratio: 320 / 50; }
  .ad-banner--square { max-width: 300px; }
}
html.dark .ad-banner { background: #1f2937; }

/* ---- Hide Reporter Avatar on Mobile News Detail Page Only ---- */
@media (max-width: 768px) {
  .article-detail .reporter-avatar { display: none !important; }
}

/* ============================================================
   NEWS DETAIL — Share Bar, Sidebar, Related Grid
   ============================================================ */

/* ---- Two-column news layout ---- */
.news-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
.article-detail { max-width: 100%; min-width: 0; }
.article-detail__title { font-size: 30px; line-height: 1.3; }
.article-detail__excerpt { font-size: 17px; }

/* ---- Sticky Share Bar ---- */
.share-bar {
  position: sticky;
  top: 80px;
  z-index: 20;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin: 16px 0 24px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.share-bar__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.share-bar__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-right: 4px;
  white-space: nowrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: transform var(--transition), opacity var(--transition), box-shadow var(--transition);
  pointer-events: auto;
  flex: 0 0 auto;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.share-btn--facebook { background: #1877f2; }
.share-btn--twitter  { background: #000; }
.share-btn--whatsapp { background: #25d366; }
.share-btn--telegram { background: #0088cc; }
.share-btn--linkedin { background: #0a66c2; }
.share-btn--messenger{ background: #00b2ff; }
.share-btn--print {
  width: auto;
  padding: 0 14px;
  border-radius: 18px;
  background: var(--crimson);
  margin-left: auto;
}
.share-btn--print span { white-space: nowrap; }

/* ---- News Sidebar ---- */
.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 80px;
  align-self: start;
}

/* ---- Square Ad (300x300) ---- */
.sidebar-ad-square {
  width: 300px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}
.sidebar-ad-square__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-ad-square--placeholder {
  border: 2px dashed var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
}

/* ---- Latest News Feed ---- */
.latest-feed {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.latest-feed__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
  position: relative;
}
.latest-feed__title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--crimson);
  border-radius: 1px;
}
.latest-feed__list { display: flex; flex-direction: column; }
.latest-feed__item {
  border-bottom: 1px solid var(--line);
}
.latest-feed__item:last-child { border-bottom: none; }
.latest-feed__link {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  align-items: flex-start;
  transition: opacity var(--transition);
  pointer-events: auto;
}
.latest-feed__link:hover { opacity: 0.8; }
.latest-feed__thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex: 0 0 auto;
}
.latest-feed__body { flex: 1; min-width: 0; }
.latest-feed__headline {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.latest-feed__time {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--ink-soft);
}

/* ---- Related Grid (20 cards) ---- */
.related-grid-section { margin-top: 48px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.related-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.related-card__media {
  display: block;
  overflow: hidden;
  pointer-events: auto;
}
.related-card__media img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.related-card:hover .related-card__media img { transform: scale(1.05); }
.related-card__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  padding: 10px 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card__title a { pointer-events: auto; }
.related-card__title a:hover { color: var(--crimson); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar-ad-square { flex: 0 0 300px; }
  .latest-feed { flex: 1 1 300px; }
  .related-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .share-bar { top: 70px; padding: 8px 12px; }
  .share-bar__label { display: none; }
  .share-btn { width: 32px; height: 32px; }
  .share-btn--print { padding: 0 10px; }
  .share-btn--print span { display: none; }
  .article-detail__title { font-size: 22px; }
  .news-sidebar { flex-direction: column; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ---- Print Styles ---- */
@media print {
  .topbar, .site-header, .primary-nav, .ticker, .drawer, .drawer-overlay,
  .news-sidebar, .related-grid-section, .share-bar,
  .site-footer, .badge, .meta { display: none !important; }
  body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  .news-layout { display: block !important; }
  .article-detail { max-width: 100% !important; }
  .article-detail__title { font-size: 20pt; margin-bottom: 8pt; }
  .article-detail__excerpt { font-size: 13pt; margin-bottom: 12pt; }
  .article-detail__image { margin-bottom: 16pt; }
  .article-detail__image img { max-height: 400px; object-fit: contain; }
  .article-detail__body { font-size: 11pt; line-height: 1.6; }
  .article-detail__body p { margin-bottom: 10pt; }
  .article-detail__tags { page-break-inside: avoid; }
  .container { max-width: 100% !important; padding: 0 !important; }
  a { color: #000 !important; text-decoration: none !important; }
}

/* ============================================================
   HOMEPAGE — Banner Spaces (1904x127 aspect ratio)
   ============================================================ */
.banner-space {
  width: 100%;
  margin: 0;
  padding: 8px 0;
  background: var(--bg-alt);
  text-align: center;
}
.banner-space .container { max-width: var(--container); }
.banner-space a, .banner-space img {
  display: block;
  width: 100%;
  aspect-ratio: 1904 / 127;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin: 0 auto;
}
.banner-space--a { padding-top: 10px; }
.banner-space--b { padding-bottom: 10px; }

/* ============================================================
   HOMEPAGE — 20-News Newspaper Grid (25% | 50% | 25%)
   ============================================================ */
.newspaper-grid-section { width: 100%; }
.newspaper-grid {
  display: grid;
  grid-template-columns: 25% 50% 25%;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.np-col {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.np-col:last-child { border-right: none; }
.np-col--1, .np-col--3 { padding: 14px; gap: 14px; }
.np-col--2 { padding: 16px; gap: 16px; }

/* Headlines */
.np-headline-top { font-size: 17px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.np-headline-top a:hover { color: var(--crimson); }
.np-headline-large { font-size: 24px; font-weight: 700; line-height: 1.25; margin-bottom: 12px; }
.np-headline-large a:hover { color: var(--crimson); }
.np-headline-sm { font-size: 14px; font-weight: 600; line-height: 1.35; }
.np-headline-sm a:hover { color: var(--crimson); }
.np-headline-xs { font-size: 13px; font-weight: 600; line-height: 1.3; }
.np-excerpt-sm { font-size: 12px; color: var(--ink-soft); margin-top: 4px; line-height: 1.4; }

/* Media */
.np-media { display: block; overflow: hidden; border-radius: var(--radius-sm); margin-bottom: 10px; }
.np-media img { width: 100%; height: 180px; object-fit: cover; transition: transform 0.4s ease; }
.np-media--large img { height: 320px; }
.np-media--small img { height: 120px; }
.np-slot--featured:hover .np-media img,
.np-slot--large:hover .np-media img { transform: scale(1.04); }

/* Reporter avatar (circular) */
.np-slot--reporter { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.np-reporter-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 2px solid var(--line);
}

/* Stacked items */
.np-slot--stack { padding: 10px 0; border-top: 1px solid var(--line); }

/* Wide pair (column 2 middle) */
.np-wide-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.np-slot--wide { display: flex; flex-direction: column; }

/* Sub-section pair (column 2 bottom) */
.np-sub-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.np-slot--sub { display: flex; flex-direction: column; }

/* Thumb items (column 3) */
.np-slot--thumb { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.np-thumb-media { flex: 0 0 auto; overflow: hidden; border-radius: var(--radius-sm); }
.np-thumb-media img { width: 64px; height: 64px; object-fit: cover; }
.np-thumb-body { flex: 1; min-width: 0; }
.np-time-ago { display: block; margin-top: 4px; font-size: 11px; color: var(--ink-soft); }

/* Ad slots (column 3) */
.np-ad-slot { width: 100%; margin: 0 0 10px; }
.np-ad-slot img { width: 100%; border-radius: var(--radius-sm); }
.np-ad-slot--placeholder {
  aspect-ratio: 1 / 1;
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-alt);
}

/* Live Update widget */
.np-live-update--top { margin-top: 0; border-top: none; padding-top: 0; padding-bottom: 12px; border-bottom: 2px solid var(--crimson); }
.np-live-update { margin-top: 6px; border-top: 2px solid var(--crimson); padding-top: 12px; }
.np-live-update__title {
  font-size: 15px; font-weight: 700; color: var(--crimson);
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.np-live-dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; background: var(--crimson);
  animation: np-blink 1.2s infinite;
}
@keyframes np-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--crimson); }
  50% { opacity: 0.2; box-shadow: none; }
}
.np-live-update__list { display: flex; flex-direction: column; }
.np-live-update__item {
  padding: 8px 0; border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 600;
}
.np-live-update__item:last-child { border-bottom: none; }
.np-live-update__item a { display: block; line-height: 1.3; }
.np-live-update__item a:hover { color: var(--crimson); }
.np-live-update__time { display: block; margin-top: 3px; font-size: 11px; font-weight: 400; color: var(--ink-soft); }

/* Responsive */
@media (max-width: 1024px) {
  .newspaper-grid { grid-template-columns: 1fr; }
  .np-col { border-right: none; border-bottom: 1px solid var(--line); }
  .np-col:last-child { border-bottom: none; }
  .np-media--large img { height: 240px; }
}
@media (max-width: 640px) {
  .np-wide-pair, .np-sub-pair { grid-template-columns: 1fr; }
  .np-headline-large { font-size: 20px; }
  .np-media--large img { height: 200px; }
  .banner-space a, .banner-space img { aspect-ratio: 4 / 1; }
}

/* ============================================================
   ADMIN — Feature Customization page styles
   ============================================================ */
.admin-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.admin-card__head {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 10px 10px 0 0;
}
.admin-card__head h2 { font-size: 16px; font-weight: 700; }
.admin-form .form-row { display: flex; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.admin-form .form-group { flex: 1; min-width: 200px; }
.admin-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: #374151; }
.admin-form input[type="text"], .admin-form input[type="url"], .admin-form input[type="number"], .admin-form select {
  width: 100%; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; font-family: inherit;
}
.admin-form input[type="color"] { width: 100%; border: 1px solid #d1d5db; border-radius: 6px; cursor: pointer; }
.admin-form input[type="file"] { font-size: 13px; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-secondary { background: #6b7280; color: #fff; }
.btn-danger { background: #dc2626; color: #fff; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; padding: 8px 10px; border-bottom: 2px solid #e5e7eb; font-weight: 600; color: #374151; }
.admin-table td { padding: 8px 10px; border-bottom: 1px solid #e5e7eb; }
.alert-success { background: #d1fae5; color: #065f46; padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-weight: 600; }

/* ============================================================
   TYPOGRAPHY — Noto Serif Bengali (global newspaper feel)
   ============================================================ */
body, body * {
  font-family: 'Noto Serif Bengali', 'Hind Siliguri', serif;
}
h1, h2, h3, h4, h5, h6,
.np-headline-top, .np-headline-large, .np-headline-sm, .np-headline-xs,
.np-opinion__headline, .np-opinion__title, .np-live-update__title {
  font-family: 'Noto Serif Bengali', serif;
  font-weight: 700;
}
.np-headline-top, .np-headline-large, .np-opinion__headline {
  font-weight: 800;
}

/* ============================================================
   COLUMN 1 — মতামত (Opinion) Section
   ============================================================ */
.np-opinion {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.np-opinion__title {
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.5px;
}
.np-opinion__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.np-opinion__item:last-child { border-bottom: none; }
.np-opinion__avatar-wrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 70px;
}
.np-opinion__avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--line);
  margin-bottom: 6px;
}
.np-opinion__author {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.2;
  word-break: break-word;
}
.np-opinion__headline {
  flex: 1;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  padding-top: 4px;
}
.np-opinion__headline a:hover { color: var(--crimson); }
.np-opinion__prefix {
  color: var(--crimson);
  font-weight: 800;
  margin-right: 4px;
  display: inline;
}
.np-opinion__dot {
  display: inline-block;
  width: 1em;
  height: 1em;
  text-align: center;
  line-height: 1em;
  font-size: 0.85em;
  vertical-align: middle;
  margin: 0 3px;
  color: var(--crimson);
  font-weight: 800;
}

/* ============================================================
   COLUMN 2 — Bottom Featured Slot
   ============================================================ */
.np-slot--bottom {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.np-media--bottom img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.4s ease;
}
.np-slot--bottom:hover .np-media--bottom img { transform: scale(1.03); }
.np-slot--bottom .np-headline-sm { margin-top: 10px; font-size: 15px; font-weight: 700; }

/* ============================================================
   1. DESKTOP ZOOM — 125% scale at 100% browser zoom
   ============================================================ */
@media (min-width: 1025px) {
  body {
    zoom: 1.25;
    -moz-transform: scale(1.25);
    -moz-transform-origin: 0 0;
  }
  @supports (-moz-appearance: none) {
    html { height: auto; }
    body { width: 80%; }
  }
}

/* ============================================================
   2. MOBILE — Strict Conditional Layout (max-width: 640px)
   ============================================================ */
@media (max-width: 640px) {
  /* Hide all grid slots by default on mobile */
  .np-col--1 .np-slot--reporter,
  .np-col--1 .np-slot--stack,
  .np-col--2 .np-sub-pair,
  .np-col--2 .np-slot--bottom,
  .np-col--3 .np-slot--thumb,
  .np-col--3 .np-ad-slot {
    display: none !important;
  }

  /* Stack columns vertically in correct order */
  .newspaper-grid {
    display: flex !important;
    flex-direction: column;
    border: none;
    border-radius: 0;
    background: transparent;
  }
  .np-col {
    border-right: none !important;
    border-bottom: none !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  /* --- Mobile Ad Banners (1904x127): full image, edge-to-edge, no crop --- */
  .banner-space {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--bg-alt);
  }
  .banner-space .container {
    max-width: 100%;
    padding: 0;
  }
  .banner-space a,
  .banner-space img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 0;
    margin: 0;
    display: block;
  }

  /* --- Featured News: full-width vertical stack cards (সর্বশেষ style) --- */
  .np-col--1 .np-slot--featured,
  .np-col--2 .np-slot--large,
  .np-col--2 .np-slot--wide {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin-bottom: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: none;
    border-bottom: 1px solid var(--line);
  }
  .np-col--2 .np-wide-pair {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
  }

  /* Image on top, full-width, rounded */
  .np-col--1 .np-slot--featured .np-media,
  .np-col--2 .np-slot--large .np-media--large,
  .np-col--2 .np-slot--wide .np-media--small {
    order: 1;
    flex: none;
    width: 100%;
    margin: 0;
    border-radius: 0;
    display: block;
    overflow: hidden;
  }
  .np-col--1 .np-slot--featured .np-media img,
  .np-col--2 .np-slot--large .np-media--large img,
  .np-col--2 .np-slot--wide .np-media--small img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
  }

  /* Bold headline underneath */
  .np-col--1 .np-slot--featured .np-headline-top,
  .np-col--2 .np-slot--large .np-headline-large,
  .np-col--2 .np-slot--wide .np-headline-sm {
    order: 2;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    padding: 0 14px;
    flex: none;
  }

  /* Article excerpt (1-line summary) */
  .np-mobile-excerpt {
    order: 3;
    padding: 0 14px;
    margin: 0;
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Relative time + publication date */
  .np-mobile-time {
    display: flex;
    order: 4;
    width: 100%;
    padding: 0 14px 14px;
    margin: 0;
    font-size: 12px;
    color: var(--ink-soft);
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
  }
  .np-time-ago {
    font-weight: 600;
    color: var(--crimson);
  }
  .np-pub-date::before {
    content: "•";
    margin-right: 6px;
    opacity: 0.6;
  }

  /* Show only first 3 items in column 2 (large + 2 wide) */
  .np-col--2 .np-slot--wide:nth-child(n+3) {
    display: none !important;
  }

  /* --- Custom Ad Block (Column 3): fixed 300x300, centered --- */
  .np-col--3 .np-ad-slot {
    display: flex !important;
    width: 300px;
    height: 300px;
    margin: 20px auto;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
  }
  .np-col--3 .np-ad-slot img {
    width: 300px;
    height: 300px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    display: block;
  }
  .np-col--3 .np-ad-slot--placeholder {
    width: 300px;
    height: 300px;
    aspect-ratio: 1 / 1;
    border: 2px dashed var(--line);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    background: var(--bg-alt);
    text-align: center;
  }

  /* --- Opinion Section: full width, centered, upscaled --- */
  .np-opinion {
    width: 100%;
    padding: 16px 12px;
    margin-top: 16px;
    border-top: 2px solid var(--crimson);
  }
  .np-opinion__title {
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    padding-bottom: 14px;
    margin-bottom: 16px;
  }
  .np-opinion__item {
    gap: 14px;
    padding: 14px 0;
  }
  .np-opinion__avatar-wrap {
    width: 80px;
  }
  .np-opinion__avatar {
    width: 76px;
    height: 76px;
    border-width: 3px;
  }
  .np-opinion__author {
    font-size: 12px;
  }
  .np-opinion__headline {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
  }
  .np-opinion__prefix {
    font-size: 16px;
  }

  /* --- Live Update Widget: full width, centered, upscaled --- */
  .np-live-update {
    width: 100%;
    padding: 16px 12px;
    margin-top: 16px;
    border-top: 2px solid var(--crimson);
  }
  .np-live-update__title {
    font-size: 20px;
    font-weight: 800;
    justify-content: center;
    text-align: center;
    margin-bottom: 14px;
  }
  .np-live-update__item {
    font-size: 15px;
    font-weight: 700;
    padding: 12px 0;
    line-height: 1.4;
  }
  .np-live-update__time {
    font-size: 13px;
  }

  /* Hide timestamps on desktop, show on mobile */
  .np-mobile-time { display: none; }
  @media (max-width: 640px) {
    .np-mobile-time { display: flex; }
  }
}

/* ============================================================
   MOBILE ORDER FIX — Flatten columns and reorder with `order`
   ============================================================ */
@media (max-width: 640px) {
  .newspaper-grid {
    display: flex !important;
    flex-direction: column;
  }
  .np-col {
    display: contents !important;
  }

  /* Show only first ad slot in column 3, hide second */
  .np-col--3 .np-ad-slot:nth-of-type(n+2) { display: none !important; }
  .np-col--3 .np-ad-slot { display: flex !important; }

  /* Order: 1=Col1 featured, 2=Col2 large, 3=Col2 wide-pair, 4=Ad, 5=Opinion, 6=Live */
  .np-col--1 .np-slot--featured { order: 1; }
  .np-col--2 .np-slot--large { order: 2; }
  .np-col--2 .np-wide-pair { order: 3; }
  .np-col--3 .np-ad-slot { order: 4; }
  .np-opinion { order: 5; }
  .np-live-update { order: 6; }
  .np-live-update--top { border-bottom: none; border-top: 2px solid var(--crimson); padding-top: 12px; padding-bottom: 0; }

  /* Ensure wide-pair shows as column on mobile */
  .np-col--2 .np-wide-pair {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
  }
}
