/* ================================================================
   People Dhanbad — Public Site Stylesheet
   Modern News Portal | Responsive | Mobile-First
   ================================================================ */

/* ── Fonts & Reset ────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --red:         #dc2626;
  --red-dark:    #b91c1c;
  --red-light:   #fef2f2;
  --red-soft:    #fee2e2;

  /* Neutrals */
  --dark:        #111827;
  --dark-2:      #1f2937;
  --dark-3:      #374151;
  --muted:       #6b7280;
  --muted-light: #9ca3af;
  --border:      #e5e7eb;
  --border-dark: #d1d5db;
  --bg:          #f3f4f6;
  --bg-2:        #f9fafb;
  --white:       #ffffff;

  /* Accent */
  --yellow:      #f59e0b;
  --yellow-bg:   #fffbeb;
  --blue:        #2563eb;
  --green:       #16a34a;

  /* Typography */
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;

  /* Spacing */
  --radius:      8px;
  --radius-sm:   5px;
  --radius-lg:   12px;
  --radius-xl:   16px;

  /* Shadows */
  --shadow-xs:   0 1px 2px rgba(0,0,0,.06);
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow:      0 4px 16px rgba(0,0,0,.08);
  --shadow-md:   0 8px 24px rgba(0,0,0,.10);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.14);

  /* Nav */
  --nav-h: 60px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── Utility ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-fluid { width: 100%; padding: 0 1.25rem; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.text-muted { color: var(--muted); }
.text-red { color: var(--red); }
.fw-700 { font-weight: 700; }
.section-gap { margin-bottom: 2.5rem; }

/* ── Category Badge ───────────────────────────────────────────── */
.cat-badge {
  display: inline-block;
  padding: .2rem .62rem;
  background: var(--red);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: 3px;
  line-height: 1;
}
.cat-badge.local    { background: #0284c7; }
.cat-badge.national { background: #7c3aed; }
.cat-badge.sports   { background: #16a34a; }
.cat-badge.crime    { background: #dc2626; }
.cat-badge.business { background: #b45309; }
.cat-badge.entertainment { background: #db2777; }
.cat-badge.politics { background: #374151; }
.cat-badge.health   { background: #059669; }

/* ── Section Heading ──────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.section-head::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--red);
}
.section-head h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -.01em;
}
.section-head h2 i {
  color: var(--red);
  margin-right: .4rem;
  font-size: .95rem;
}
.see-all {
  font-size: .75rem;
  font-weight: 600;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: .25rem;
}
.see-all:hover { color: var(--red-dark); }

/* ================================================================
   TOP BAR
   ================================================================ */
.top-bar {
  background: var(--dark);
  color: rgba(255,255,255,.55);
  font-size: .85rem;
  padding: .45rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.top-bar a { color: rgba(255,255,255,.55); }
.top-bar a:hover { color: #fff; }
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.top-bar-left { display: flex; align-items: center; gap: 1.25rem; }
.top-bar-date { display: flex; align-items: center; gap: .35rem; }
.top-bar-date i { font-size: .65rem; color: var(--red); }
.top-bar-temp { display: flex; align-items: center; gap: .35rem; }
.top-bar-temp i { color: var(--yellow); font-size: .65rem; }
.top-bar-right { display: flex; align-items: center; gap: .875rem; }
.top-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 4px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.55);
  font-size: .68rem;
  transition: all .15s;
}
.top-social a:hover { background: var(--red); color: #fff; }
.top-social { display: flex; align-items: center; gap: .3rem; }

/* ── City switcher (top bar) ──────────────────────────────────── */
.tb-city-wrap { display:flex; align-items:center; gap:.3rem; }
.tb-city-edit-btn {
  background: none; border: none; cursor: pointer; padding: .1rem .25rem;
  color: rgba(255,255,255,.35); font-size: .58rem; line-height:1;
  border-radius: 3px; transition: color .15s;
}
.tb-city-edit-btn:hover { color: rgba(255,255,255,.8); }
.tb-city-input-wrap {
  display: none; align-items: center; gap: .3rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px; padding: .1rem .4rem;
}
.tb-city-input-wrap.open { display: flex; }
.tb-city-input {
  background: transparent; border: none; outline: none;
  color: #fff; font-size: .72rem; font-family: inherit;
  width: 100px;
}
.tb-city-input::placeholder { color: rgba(255,255,255,.35); }
.tb-city-ok {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.55); font-size: .7rem; padding: 0; line-height:1;
}
.tb-city-ok:hover { color: #fff; }

/* ── Language dropdown ────────────────────────────────────────── */
.lang-switcher { position: relative; flex-shrink: 0; }
.lang-dropdown-btn {
  display: flex; align-items: center; gap: .3rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px; padding: .22rem .55rem;
  color: rgba(255,255,255,.8); font-size: .72rem; font-weight: 700;
  cursor: pointer; font-family: inherit; line-height: 1.4;
  transition: background .15s;
}
.lang-dropdown-btn:hover,
.lang-dropdown-btn.open { background: rgba(255,255,255,.18); color: #fff; }
.lang-dropdown-btn .ld-chevron { font-size: .5rem; transition: transform .15s; }
.lang-dropdown-btn.open .ld-chevron { transform: rotate(180deg); }
.lang-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--dark-2); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; min-width: 160px; z-index: 9999;
  box-shadow: 0 8px 28px rgba(0,0,0,.4); overflow: hidden;
  animation: ld-in .15s ease;
}
.lang-dropdown.open { display: block; }
@keyframes ld-in { from{opacity:0;transform:translateY(-4px)} to{opacity:1;transform:translateY(0)} }
.lang-opt {
  display: flex; align-items: center; gap: .55rem;
  padding: .52rem .875rem; font-size: .8rem;
  color: rgba(255,255,255,.65); cursor: pointer;
  transition: background .1s;
  border-bottom: 1px solid rgba(255,255,255,.04);
  text-decoration: none; background: none; border-left: none; border-right: none; border-top: none;
  border-bottom: 1px solid rgba(255,255,255,.04);
  width: 100%; text-align: left; font-family: inherit;
}
.lang-opt:last-child { border-bottom: none; }
.lang-opt:hover { background: rgba(255,255,255,.08); color: #fff; }
.lang-opt.active { color: #fff; background: rgba(220,38,38,.2); }
.lang-opt.active::after { content: '✓'; margin-left: auto; font-size: .7rem; color: var(--red); }
.lang-opt-short { font-size: .65rem; color: rgba(255,255,255,.35); min-width: 22px; }

/* ── User account dropdown ──────────────────────────────────── */
.user-switcher { position: relative; flex-shrink: 0; }
.user-dropdown-btn {
  display: flex; align-items: center; gap: .35rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px; padding: .18rem .45rem .18rem .3rem;
  color: rgba(255,255,255,.85); font-size: .72rem; font-weight: 700;
  cursor: pointer; font-family: inherit; line-height: 1.4; transition: background .15s;
}
.user-dropdown-btn:hover,
.user-dropdown-btn.open { background: rgba(255,255,255,.18); color: #fff; }
.user-dropdown-btn .ud-chevron { font-size: .45rem; transition: transform .15s; }
.user-dropdown-btn.open .ud-chevron { transform: rotate(180deg); }
.user-av-chip {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 800; font-size: .6rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.user-name-label { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--dark-2); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; min-width: 180px; z-index: 9999;
  box-shadow: 0 8px 28px rgba(0,0,0,.4); overflow: hidden;
  animation: ld-in .15s ease;
}
.user-dropdown-menu.open { display: block; }
.user-dropdown-header {
  display: flex; align-items: center; gap: .625rem;
  padding: .875rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.user-dropdown-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 800; font-size: .85rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.user-dropdown-name { font-weight: 700; font-size: .82rem; color: #fff; }
.user-dropdown-role { font-size: .65rem; color: rgba(255,255,255,.4); margin-top: .1rem; }
.user-dropdown-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem 1rem; font-size: .8rem; color: rgba(255,255,255,.65);
  text-decoration: none; transition: background .1s;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.user-dropdown-item:last-child { border-bottom: none; }
.user-dropdown-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.user-dropdown-item i { width: 14px; text-align: center; font-size: .78rem; }
.user-signin-link {
  display: flex; align-items: center; gap: .3rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px; padding: .22rem .6rem;
  color: rgba(255,255,255,.8); font-size: .72rem; font-weight: 700;
  text-decoration: none; transition: background .15s; white-space: nowrap;
}
.user-signin-link:hover { background: rgba(255,255,255,.18); color: #fff; }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 0;
  z-index: 900;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
}
.site-logo .logo-icon {
  width: 38px; height: 38px;
  background: var(--red);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; font-weight: 800; flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(220,38,38,.3);
}
.logo-text { line-height: 1.15; }
.logo-text .l1 {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.03em;
}
.logo-text .l2 {
  display: block;
  font-size: .6rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* Search */
.header-search { flex: 1; max-width: 340px; }
.search-form {
  display: flex;
  align-items: center;
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all .15s;
}
.search-form:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220,38,38,.1);
  background: #fff;
}
.search-input {
  flex: 1; border: none; background: transparent;
  padding: .5rem .875rem; font-size: .83rem;
  outline: none; color: var(--dark); font-family: var(--font);
}
.search-input::placeholder { color: var(--muted-light); }
.search-btn {
  width: 38px; height: 38px; border: none; background: transparent;
  color: var(--muted); cursor: pointer; font-size: .82rem;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s;
}
.search-btn:hover { color: var(--red); }

/* Nav */
.site-nav { display: flex; align-items: center; gap: 0; }
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem .75rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--dark-3);
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: all .15s;
}
.nav-link:hover, .nav-link.active {
  color: var(--red);
  background: var(--red-light);
}
.nav-link i { font-size: .7rem; color: var(--muted-light); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px); left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: all .18s;
  z-index: 800;
}
.nav-item:hover .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: .55rem 1rem;
  font-size: .8rem;
  color: var(--dark-3);
  transition: all .12s;
}
.nav-dropdown a:hover { background: var(--bg); color: var(--red); padding-left: 1.25rem; }

/* Hamburger */
.hamburger {
  display: none;
  width: 38px; height: 38px;
  border: 1.5px solid var(--border);
  border-radius: 8px; background: #fff;
  align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; color: var(--dark);
  transition: all .15s;
}
.hamburger:hover { background: var(--bg); border-color: var(--border-dark); }

/* Mobile menu */
.mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
}
.mobile-menu.open { display: block; }
.mobile-menu .nav-link {
  display: block;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
  border-radius: 0;
}
.mobile-menu .nav-link:last-child { border-bottom: none; }

/* ================================================================
   BREAKING NEWS
   ================================================================ */
.breaking-bar {
  background: #fff;
  border-bottom: 2px solid var(--red);
  padding: .55rem 0;
  overflow: hidden;
}
.breaking-inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
}
.breaking-label {
  background: var(--red);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .28rem .75rem;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .4rem;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
  padding-right: 1.25rem;
}
.breaking-label .blink {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.2s infinite;
  flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

.breaking-ticker {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  padding: 0 1rem;
}
.ticker-track {
  display: inline-flex;
  gap: 3rem;
  animation: ticker 40s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-size: .85rem;
  font-weight: 500;
  color: var(--dark-2);
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s;
}
.ticker-item:hover { color: var(--red); }
.ticker-item::before {
  content: '•';
  color: var(--red);
  margin-right: .5rem;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ================================================================
   MAIN LAYOUT
   ================================================================ */
.page-wrap { padding: 1.75rem 0; }
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
}
.main-content { min-width: 0; }

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero-section { margin-bottom: 2rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.25rem;
}
/* Full-width hero when no secondary articles */
.hero-grid--full {
  grid-template-columns: 1fr;
}
.hero-grid--full .hero-primary {
  min-height: clamp(320px, 42vw, 560px);
  aspect-ratio: auto;
}

/* Hero Primary */
.hero-primary {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark);
  min-height: 320px;
  align-self: stretch;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.article-hero-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 520px;
  overflow: hidden;
  background: #0f172a;
  position: relative;
  display: block;
}
.article-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform .5s ease;
}
.article-hero-media:hover img {
  transform: scale(1.02);
}
.hero-primary:hover .hero-img { transform: scale(1.04); }
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform .5s ease;
  opacity: .85;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 50%, transparent 100%);
}
.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
}
.hero-category { margin-bottom: .625rem; }
.hero-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  font-family: var(--font-serif);
  margin-bottom: .625rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: .875rem;
  font-size: .77rem;
  color: rgba(255,255,255,.6);
}
.hero-meta i { font-size: .65rem; color: rgba(255,255,255,.4); }

/* Hero Secondary Stack */
.hero-secondary { display: flex; flex-direction: column; gap: 1rem; }
.hero-card {
  display: flex;
  gap: .875rem;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
  min-height: 96px;
  align-items: stretch;
}
.hero-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.hero-card-img {
  width: 120px;
  flex-shrink: 0;
  align-self: stretch;
  object-fit: cover;
  object-position: center;
  display: block;
  min-height: 90px;
}
.hero-card-body {
  flex: 1; padding: .75rem .75rem .75rem 0;
  min-width: 0;
}
.hero-card-cat { margin-bottom: .35rem; }
.hero-card-title {
  font-size: .83rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .35rem;
}
.hero-card:hover .hero-card-title { color: var(--red); }
.hero-card-meta {
  font-size: .68rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ================================================================
   NEWS CARDS
   ================================================================ */
/* Standard vertical card */
.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.news-card-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--border);
  flex-shrink: 0;
}
.news-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform .4s ease;
}
.news-card:hover .news-card-img { transform: scale(1.06); }
.news-card-cat-pos {
  position: absolute;
  top: .625rem; left: .625rem;
}
.news-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.news-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .5rem;
  flex: 1;
}
.news-card:hover .news-card-title { color: var(--red); }
.news-card-excerpt {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .625rem;
}
.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .7rem;
  color: var(--muted);
  padding-top: .625rem;
  border-top: 1px solid var(--border);
  gap: .5rem;
  min-width: 0;
}
.news-meta-left {
  display: flex;
  align-items: center;
  gap: .3rem;
  min-width: 0;
  overflow: hidden;
}
.news-meta-author {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 80px;
  flex-shrink: 1;
}
.news-meta-time {
  display: flex;
  align-items: center;
  gap: .25rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.news-meta-left i { font-size: .65rem; flex-shrink: 0; }
.news-views { display: flex; align-items: center; gap: .25rem; white-space: nowrap; flex-shrink: 0; }
.news-views i { font-size: .65rem; }

/* Horizontal list card */
.news-list-card {
  display: flex;
  gap: .875rem;
  padding: .875rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.news-list-card:last-child { border-bottom: none; }
.news-list-card:hover .news-list-title { color: var(--red); }
.news-list-img {
  width: 90px; flex-shrink: 0;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--border);
}
.news-list-body { flex: 1; min-width: 0; }
.news-list-cat { margin-bottom: .3rem; }
.news-list-title {
  font-size: .83rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .3rem;
  transition: color .15s;
}
.news-list-meta {
  font-size: .68rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ================================================================
   NEWS GRID
   ================================================================ */
.news-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.news-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.news-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

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

.sidebar-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.widget-head {
  padding: .875rem 1.125rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.widget-head h3 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--dark);
  flex: 1;
}
.widget-head i { color: var(--red); font-size: .82rem; }
.widget-body { padding: 1rem; }

/* ── Paid ad slots ──────────────────────────────────────────── */

/* Leaderboard / in-article (horizontal zones) */
.pd-ad { position: relative; }
.pd-ad.ad-leaderboard,
.pd-ad.ad-in-article {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .5rem 0;
  width: 100%;
  overflow: hidden;
}
.pd-ad.ad-leaderboard > *:not(.pd-ad-label),
.pd-ad.ad-in-article  > *:not(.pd-ad-label) {
  max-width: 100%;
}
/* Image ads scale naturally on all screens */
.pd-ad.ad-leaderboard img,
.pd-ad.ad-in-article  img {
  max-width: 100%; height: auto; display: block;
  border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.pd-ad-label {
  font-size: .55rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #b0b7c3;
  margin-bottom: .35rem; align-self: center;
}
.ad-leaderboard { margin: 1rem 0; }
.ad-in-article  { margin: 1.5rem 0; clear: both; }

/* Code/HTML ad wrapper — JS scales oversized content on small screens */
.pd-code-wrap {
  display: block;     /* block so inner starts at left:0 for correct scale math */
  width: 100%;
  overflow: hidden;   /* clips post-transform visual overflow */
}
@media (max-width: 768px) {
  /* Sidebar ads: always fluid — image fills card width */
  .sidebar-ad-body .pd-ad img { width: 100%; height: auto; }
}

/* ── Sidebar ad widget ──────────────────────────────────────── */

/* Override the base sidebar-widget look for ads */
.sidebar-ad-widget {
  background: #fff !important;
  border: 1px solid #e9ebee !important;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

/* "Sponsored" label bar */
.sidebar-ad-hdr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  padding: .3rem .75rem;
  background: #f7f8fa;
  border-bottom: 1px solid #eef0f2;
  font-size: .58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #b0b7c3;
}
.sidebar-ad-hdr i { font-size: .5rem; }

/* Ad body — no extra padding; image goes edge-to-edge */
.sidebar-ad-body {
  padding: 0;
  line-height: 0;
}
.sidebar-ad-body .pd-ad { margin: 0; }
.sidebar-ad-body .pd-ad a { display: block; }
.sidebar-ad-body .pd-ad img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: none;
  transition: opacity .2s;
}
.sidebar-ad-body .pd-ad a:hover img { opacity: .92; }
/* Hide the inline AD label inside sidebar — the header already has it */
.sidebar-ad-body .pd-ad-label { display: none !important; }

/* Trending widget */
.trending-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.trending-item:last-child { border-bottom: none; padding-bottom: 0; }
.trending-item:first-child { padding-top: 0; }
.trending-item:hover .trending-title { color: var(--red); }
.trending-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red-soft);
  line-height: 1;
  min-width: 30px;
  text-align: center;
  flex-shrink: 0;
  margin-top: .05rem;
}
.trending-body { flex: 1; min-width: 0; }
.trending-title {
  font-size: .8rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s;
  margin-bottom: .3rem;
}
.trending-meta { font-size: .68rem; color: var(--muted); }

/* Video widget */
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--dark);
  margin-bottom: .75rem;
}
.video-thumb img {
  width: 100%; height: 100%; object-fit: cover; opacity: .8;
  transition: opacity .2s;
}
.video-thumb:hover img { opacity: .9; }
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 46px; height: 46px;
  background: rgba(220,38,38,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: transform .2s;
}
.video-thumb:hover .play-btn { transform: translate(-50%,-50%) scale(1.1); }
.video-title {
  font-size: .8rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}
.video-title:hover { color: var(--red); }
.video-meta { font-size: .68rem; color: var(--muted); margin-top: .3rem; }

/* Poll widget */
.poll-question {
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .875rem;
  line-height: 1.4;
}
.poll-option { margin-bottom: .625rem; }
.poll-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .3rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--dark-3);
  cursor: pointer;
}
.poll-option-row:hover { color: var(--red); }
.poll-bar-bg {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.poll-bar {
  height: 100%;
  background: var(--red);
  border-radius: 3px;
  transition: width 1s ease;
}

/* Tags widget */
.tags-wrap { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-pill {
  display: inline-block;
  padding: .3rem .7rem;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: .77rem;
  font-weight: 500;
  color: var(--dark-3);
  transition: all .15s;
  cursor: pointer;
}
.tag-pill:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-light);
}

/* Weather widget */
.weather-card {
  background: linear-gradient(135deg, #1e3a5f 0%, #1a1a2e 100%);
  border-radius: var(--radius);
  padding: 1.125rem;
  color: #fff;
  text-align: center;
}
.weather-city { font-size: .77rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); margin-bottom: .3rem; }
.weather-temp { font-size: 2.5rem; font-weight: 800; line-height: 1; margin-bottom: .25rem; }
.weather-cond { font-size: .8rem; color: rgba(255,255,255,.7); margin-bottom: .875rem; }
.weather-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding-top: .875rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.weather-stat { font-size: .77rem; color: rgba(255,255,255,.55); }
.weather-stat strong { display: block; color: #fff; font-size: .88rem; }

/* ================================================================
   CATEGORY SECTIONS
   ================================================================ */
.category-section { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1.75rem; }

/* ================================================================
   FEATURE BANNER
   ================================================================ */
.feature-banner {
  background: linear-gradient(135deg, var(--dark) 0%, #1e3a5f 100%);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  color: #fff;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.feature-banner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: rgba(220,38,38,.15);
  border-radius: 50%;
}
.feature-banner::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 30%;
  width: 180px; height: 180px;
  background: rgba(255,255,255,.03);
  border-radius: 50%;
}
.feature-banner-content { position: relative; z-index: 1; max-width: 600px; }
.feature-banner-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .25rem .7rem;
  border-radius: 3px;
  margin-bottom: .875rem;
}
.feature-banner h2 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: .625rem;
  font-family: var(--font-serif);
}
.feature-banner p {
  font-size: .83rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  margin-bottom: 1.125rem;
}
.feature-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--red);
  color: #fff;
  padding: .6rem 1.25rem;
  border-radius: 7px;
  font-size: .82rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(220,38,38,.35);
  transition: all .15s;
}
.feature-banner-btn:hover {
  background: var(--red-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(220,38,38,.45);
}

/* ================================================================
   AD BANNER (placeholder)
   ================================================================ */
.ad-banner {
  background: var(--bg-2);
  border: 1.5px dashed var(--border-dark);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem;
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 1.5rem;
}
.ad-banner-label { font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .25rem; color: var(--muted-light); }
.ad-banner-text { font-weight: 600; font-size: .88rem; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.55);
  margin-top: 2.5rem;
}
.footer-top {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-about .footer-logo { margin-bottom: 1rem; }
.footer-logo .l1 { color: #fff; }
.footer-logo .l2 { color: rgba(255,255,255,.35); }
.footer-about p {
  font-size: .8rem;
  line-height: 1.7;
  margin-bottom: 1.125rem;
  color: rgba(255,255,255,.45);
}
.footer-social { display: flex; gap: .4rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45);
  font-size: .82rem;
  transition: all .15s;
}
.footer-social a:hover { background: var(--red); color: #fff; border-color: var(--red); }

.footer-col h4 {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.8);
  margin-bottom: 1rem;
  padding-bottom: .625rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-links { display: flex; flex-direction: column; gap: .4rem; }
.footer-links a {
  font-size: .85rem;
  color: rgba(255,255,255,.45);
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: all .15s;
  padding: .2rem 0;
}
.footer-links a i { font-size: .6rem; color: var(--red); }
.footer-links a:hover { color: rgba(255,255,255,.9); padding-left: .25rem; }

.footer-bottom {
  padding: 1.125rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .875rem;
}
.footer-copy { font-size: .77rem; color: rgba(255,255,255,.3); }
.footer-bottom-links { display: flex; gap: 1.25rem; }
.footer-bottom-links a {
  font-size: .77rem;
  color: rgba(255,255,255,.3);
  transition: color .15s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,.7); }

/* ================================================================
   BACK TO TOP
   ================================================================ */
#back-to-top {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 42px; height: 42px;
  background: var(--red);
  color: #fff;
  border: none; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; cursor: pointer; z-index: 999;
  box-shadow: 0 4px 16px rgba(220,38,38,.35);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all .25s;
}
#back-to-top.show {
  opacity: 1; visibility: visible; transform: translateY(0);
}
#back-to-top:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ================================================================
   IMAGE PLACEHOLDER (for news without images)
   ================================================================ */
.img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 1.5rem;
}

/* ================================================================
   PULSE SKELETON (loading)
   ================================================================ */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 400% 100%;
  animation: skeleton-pulse 1.4s ease infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-pulse {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ================================================================
   CATEGORY PAGE NAV TABS
   ================================================================ */
.cat-tabs {
  display: flex;
  gap: .5rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  display: inline-block;
  padding: .4rem .875rem;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  border: 1.5px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  text-decoration: none;
  background: #fff;
  user-select: none;
}
.cat-tab.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.cat-tab:hover:not(.active) {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-light, #fef2f2);
}

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: 2rem;
}
.page-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--dark-3);
  font-size: .82rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s;
}
.page-btn:hover, .page-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ================================================================
   NOTIFICATION TOAST
   ================================================================ */
#notification-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .625rem 1.25rem;
  font-size: .85rem;
  z-index: 9999;
  transform: translateY(-100%);
  transition: transform .3s ease;
}
#notification-bar.show { transform: translateY(0); }
#notification-bar i { color: var(--yellow); margin-right: .5rem; }
.notif-close { cursor: pointer; color: rgba(255,255,255,.5); font-size: .75rem; background: none; border: none; }
.notif-close:hover { color: #fff; }

/* ================================================================
   ARTICLE BODY TYPOGRAPHY
   ================================================================ */
[itemprop="articleBody"] p {
  margin-bottom: 1.25rem;
  font-size: .95rem;
  line-height: 1.9;
  color: #1e293b;
}
[itemprop="articleBody"] h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  margin: 2rem 0 .75rem;
  font-family: var(--font-serif);
  line-height: 1.3;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--border);
}
[itemprop="articleBody"] h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 1.5rem 0 .5rem;
  font-family: var(--font-serif);
}
[itemprop="articleBody"] h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin: 1.25rem 0 .4rem; }
[itemprop="articleBody"] blockquote {
  border-left: 4px solid var(--red);
  background: #fef2f2;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: .95rem;
  color: #374151;
}
[itemprop="articleBody"] blockquote p { margin-bottom: 0; }
[itemprop="articleBody"] img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.25rem 0;
  display: block;
}
[itemprop="articleBody"] ul,
[itemprop="articleBody"] ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
[itemprop="articleBody"] li {
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: .3rem;
  color: #1e293b;
}
[itemprop="articleBody"] a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
[itemprop="articleBody"] a:hover { color: #b91c1c; }
[itemprop="articleBody"] strong { font-weight: 700; color: var(--dark); }
[itemprop="articleBody"] table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: .875rem;
}
[itemprop="articleBody"] th {
  background: var(--dark);
  color: #fff;
  padding: .6rem .875rem;
  text-align: left;
  font-weight: 600;
}
[itemprop="articleBody"] td {
  padding: .55rem .875rem;
  border-bottom: 1px solid var(--border);
  color: #374151;
}
[itemprop="articleBody"] tr:nth-child(even) td { background: #f8fafc; }

/* ================================================================
   SHARE BUTTONS
   ================================================================ */
.share-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  padding: .75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: .25rem 0 1.25rem;
}
.share-bar-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-right: .25rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  border-radius: 7px;
  font-size: .75rem;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: .01em;
  transition: all .18s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.share-btn.fb  { background: #1877f2; color: #fff; }
.share-btn.tw  { background: #000; color: #fff; }
.share-btn.wa  { background: #25d366; color: #fff; }
.share-btn.lnk { background: #0a66c2; color: #fff; }
.share-btn:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.share-btn:active { transform: translateY(0); box-shadow: 0 1px 3px rgba(0,0,0,.15); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .main-grid { grid-template-columns: 1fr 260px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { display: none; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-secondary { flex-direction: row; flex-wrap: wrap; }
  .hero-card { width: calc(50% - .5rem); }
  .news-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .main-grid { grid-template-columns: 1fr; }
  /* sidebar stays AFTER main-content (DOM order) — no order override */
  .news-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .top-bar-left .top-bar-temp { display: none; }  /* hide weather on tablet */
  .header-search { display: none; }
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .hero-title { font-size: 1.15rem; }
  .hero-primary { min-height: 280px; aspect-ratio: auto; }
  .article-hero-media { aspect-ratio: 16/9; max-height: 260px; }
  .news-grid-3, .news-grid-4 { grid-template-columns: 1fr; }
  .news-grid-2 { grid-template-columns: 1fr; }
  .hero-secondary { flex-direction: column; }
  .hero-card { width: 100%; }
  .feature-banner { padding: 1.5rem; }
  .feature-banner h2 { font-size: 1.2rem; }
  .page-wrap { padding: 1.25rem 0; }
}

@media (max-width: 576px) {
  :root { --nav-h: 56px; }

  /* Keep top-bar visible on mobile — strip to lang + auth only */
  .top-bar { padding: .28rem 0; }
  .top-bar-left { display: none; }            /* hide date + weather */
  .top-social { display: none; }             /* hide social icons */
  .top-bar-epaper { display: none; }         /* hide e-paper link */
  .top-bar-inner { justify-content: flex-end; }
  /* Hide user name label so only the avatar chip shows */
  .user-name-label { display: none; }
  .ud-chevron { display: none; }

  .logo-text .l2 { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Date row inside the mobile hamburger menu */
.mob-menu-date {
  display: flex; align-items: center; gap: .45rem;
  font-size: .78rem; color: var(--muted);
  padding: .5rem 0 .75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .25rem;
}
.mob-menu-date i { color: var(--red); font-size: .65rem; }

/* ================================================================
   AUTH MODAL (global — article, gallery, comments)
   ================================================================ */
.pd-modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 99998;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(2px);
}
.pd-modal-overlay.open {
  display: flex;
  animation: pdFadeIn .2s ease;
}
.pd-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 72px rgba(0,0,0,.22);
  animation: pdSlideUp .25s cubic-bezier(.34,1.2,.64,1);
  overflow: hidden;
  position: relative;
}
.pd-modal-close {
  position: absolute; top: .875rem; right: .875rem;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .8rem; transition: background .15s;
}
.pd-modal-close:hover { background: var(--border); color: var(--dark); }
.pd-modal-logo {
  text-align: center;
  padding: 1.75rem 1.5rem 1rem;
}
.pd-modal-logo .pd-ml-icon {
  width: 52px; height: 52px; border-radius: 13px;
  background: var(--red); color: #fff;
  font-size: 1.3rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: .625rem;
}
.pd-modal-logo .pd-ml-icon--img {
  background: none; border-radius: 0; overflow: visible;
}
.pd-modal-logo .pd-ml-icon--img img {
  width: 64px; height: 64px; object-fit: contain; display: block;
  border-radius: 16px;
}
.pd-modal-logo h3 { font-size: .95rem; font-weight: 700; color: var(--dark); margin: 0 0 .2rem; }
.pd-modal-logo p  { font-size: .78rem; color: var(--muted); margin: 0; }
.pd-modal-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin: 0 1.5rem;
}
.pd-modal-tab {
  flex: 1; padding: .65rem .5rem;
  border: none; background: none;
  font-size: .875rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all .15s;
}
.pd-modal-tab.active { color: var(--red); border-bottom-color: var(--red); }
.pd-modal-body { padding: 1.25rem 1.5rem 1.5rem; }
.pd-modal-panel { display: none; }
.pd-modal-panel.active { display: block; }
.pd-fi {
  width: 100%; border: 1.5px solid var(--border); border-radius: 8px;
  padding: .6rem .875rem; font-size: .875rem; color: var(--dark);
  font-family: inherit; outline: none; transition: border-color .15s;
  box-sizing: border-box; background: var(--bg); margin-bottom: .625rem;
}
.pd-fi:focus { border-color: var(--red); background: #fff; }
.pd-fi::placeholder { color: #c7c7c7; }
.pd-btn {
  width: 100%; padding: .7rem; background: var(--red); color: #fff;
  border: none; border-radius: 8px; font-size: .9rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: background .15s;
  margin-top: .25rem;
}
.pd-btn:hover { background: #b91c1c; }
.pd-modal-error {
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px;
  padding: .6rem .875rem; margin-bottom: .75rem;
  font-size: .82rem; color: #dc2626;
}
.pd-modal-footer {
  text-align: center; font-size: .82rem; color: var(--muted);
  margin-top: .875rem;
}
.pd-modal-footer a { color: var(--red); font-weight: 700; text-decoration: none; cursor: pointer; }
.pd-modal-hint { font-size: .72rem; color: var(--muted); margin-bottom: .625rem; margin-top: -.4rem; }

/* Social login buttons — modal */
.pd-social-btns {
  display: flex; gap: .5rem;
  padding: .875rem 1.5rem 0;
}
.pd-social-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem .25rem; border-radius: 8px; font-size: .78rem; font-weight: 700;
  font-family: inherit; text-decoration: none; border: 1.5px solid var(--border);
  background: #fff; color: var(--dark); transition: background .15s, border-color .15s;
  white-space: nowrap; min-height: 38px;
}
.pd-social-btn:hover { background: var(--bg); border-color: #a0a0a0; color: var(--dark); text-decoration: none; }
.pd-social-fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.pd-social-fb:hover { background: #166fe5; border-color: #166fe5; color: #fff; }
.pd-social-x  { background: #000; border-color: #000; color: #fff; font-size: 1rem; }
.pd-social-x:hover { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
.pd-social-divider {
  text-align: center; font-size: .72rem; color: var(--muted);
  margin: .875rem 1.5rem .125rem; position: relative;
}
.pd-social-divider::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: var(--border);
}
.pd-social-divider span { background: #fff; padding: 0 .75rem; position: relative; }

@keyframes pdFadeIn  { from{opacity:0} to{opacity:1} }
@keyframes pdSlideUp { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }

/* ================================================================
   ARTICLE REACTIONS (redesigned)
   ================================================================ */
.article-reactions {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.reactions-header {
  padding: .625rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted);
}
.reactions-btns { display: flex; }
.reaction-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: .3rem;
  padding: 1.125rem 1rem;
  border: none; background: none; cursor: pointer;
  transition: background .15s; font-family: inherit;
  position: relative;
}
.reaction-btn + .reaction-btn { border-left: 1px solid var(--border); }
.reaction-btn:hover { background: var(--bg); }
.reaction-btn:active { background: #fef2f2; }
.reaction-btn .rx-icon {
  font-size: 1.5rem; color: var(--muted);
  transition: color .18s, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.reaction-btn .rx-count {
  font-size: 1rem; font-weight: 800; color: var(--dark-2);
  transition: color .18s;
  font-variant-numeric: tabular-nums;
}
.reaction-btn .rx-label { font-size: .68rem; color: var(--muted); font-weight: 600; }
.reaction-btn.rx-active-like   .rx-icon  { color: var(--red); transform: scale(1.15); }
.reaction-btn.rx-active-like   .rx-count { color: var(--red); }
.reaction-btn.rx-active-dislike .rx-icon  { color: #4b5563; transform: scale(1.15); }
.reaction-btn.rx-active-dislike .rx-count { color: #4b5563; }
.reactions-bar-wrap {
  padding: .625rem 1.25rem .75rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.reactions-bar {
  height: 5px; background: var(--border);
  border-radius: 3px; overflow: hidden; margin-bottom: .375rem;
}
.reactions-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--red), #f87171);
  border-radius: 3px;
  transition: width .5s cubic-bezier(.34,1.2,.64,1);
}
.reactions-stats {
  display: flex; justify-content: space-between;
  font-size: .7rem; color: var(--muted);
}
