/* ==========================================================================
   समय मंत्र (Samay Mantra) - Official Broadcast-Grade News Portal Styling
   Aesthetic: Editorial Authority, Royal Crimson & Deep Slate, High Contrast
   ========================================================================== */

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

:root {
  --font-hindi: 'Mukta', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Noto Sans Devanagari', 'Mukta', sans-serif;
  --font-latin: 'Poppins', sans-serif;

  /* Brand Palette */
  --primary-red: #c9182b;
  --primary-red-hover: #b01021;
  --primary-dark-red: #8b0000;
  --header-bg: #1a1a1a;
  --header-nav-bg: #222222;
  --accent-gold: #e5a93c;
  --accent-blue: #0284c7;

  /* Theme: Light Defaults */
  --bg-body: #f4f5f8;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f9fafb;
  --bg-subtle: #f1f3f6;
  --border-color: #e2e5eb;
  --border-light: #eceff4;

  --text-main: #1c2024;
  --text-muted: #5f6b7a;
  --text-secondary: #475467;
  --text-inverse: #ffffff;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --container-max: 1280px;
  --base-font-size: 16px;
  --transition-fast: 0.18s ease;
}

[data-theme="dark"] {
  --bg-body: #0d1117;
  --bg-surface: #161b22;
  --bg-surface-elevated: #1f242c;
  --bg-card: #161b22;
  --bg-card-hover: #1f2631;
  --bg-subtle: #21262d;
  --border-color: #30363d;
  --border-light: #252b33;

  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --text-secondary: #c9d1d9;
  --text-inverse: #ffffff;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
}

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

html {
  font-size: var(--base-font-size);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-hindi);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol, li {
  list-style: none;
  list-style-type: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* -------------------------------------------------------------
   Global Button Utilities
   ------------------------------------------------------------- */
.btn-primary {
  background: var(--primary-red);
  color: #ffffff !important;
  border: none;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(201, 24, 43, 0.25);
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--primary-red-hover);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(201, 24, 43, 0.35);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-main) !important;
  border: 1px solid var(--border-color);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.btn-secondary:hover {
  background: var(--border-light);
  border-color: var(--text-muted);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}

/* -------------------------------------------------------------
   1. Top Utility Header Bar
   ------------------------------------------------------------- */
.top-utility-bar {
  background: #111111;
  color: #c9d1d9;
  font-size: 0.85rem;
  border-bottom: 1px solid #282828;
  padding: 6px 0;
}

.top-utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.utility-left, .utility-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.panchang-date {
  display: flex;
  align-items: center;
  gap: 8px;
}

.city-weather-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #222;
  padding: 2px 8px;
  border-radius: 4px;
  color: #ffca28;
}

.epaper-link, .admin-link, .live-stream-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f0f6fc;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.epaper-link:hover {
  background: #333;
  color: #ffeb3b;
}

.admin-link {
  background: #3b82f6;
  color: #fff !important;
}
.admin-link:hover {
  background: #2563eb;
}

.font-resizer {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #222;
  border-radius: 4px;
  padding: 2px 4px;
}

.font-btn {
  background: none;
  border: none;
  color: #c9d1d9;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 3px;
  font-weight: bold;
}
.font-btn:hover {
  background: #333;
  color: #fff;
}

.theme-toggle-btn {
  background: #222;
  border: 1px solid #333;
  color: #f59e0b;
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}
.theme-toggle-btn:hover {
  background: #333;
}

/* -------------------------------------------------------------
   2. Main Brand Header
   ------------------------------------------------------------- */
.main-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  transition: background var(--transition-fast);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo-img {
  height: 58px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-red);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-title span {
  color: var(--text-main);
}

.brand-slogan {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-center-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Header Leaderboard Ad (Between Logo and Actions) */
.header-ad-banner-slot {
  flex: 1;
  max-width: 720px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 16px;
  position: relative;
}

.header-ad-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.header-ad-wrapper a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.header-ad-wrapper img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.ad-tag-tiny {
  position: absolute;
  top: 2px;
  right: 5px;
  font-size: 0.62rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  padding: 1px 5px;
  border-radius: 2px;
  z-index: 2;
  pointer-events: none;
  font-weight: 600;
  letter-spacing: 0.5px;
}

@media (max-width: 992px) {
  .header-ad-banner-slot {
    display: none !important;
  }
}

.live-tv-tag {
  background: linear-gradient(135deg, #e53935, #b71c1c);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(229, 57, 53, 0.35);
  animation: pulse-red 2s infinite;
  cursor: pointer;
  border: none;
}

@keyframes pulse-red {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.6); }
  70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(229, 57, 53, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

.live-dot {
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  animation: blink-dot 1s infinite alternate;
}

@keyframes blink-dot {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.search-trigger-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}
.search-trigger-btn:hover {
  background: var(--border-light);
}

.citizen-report-btn {
  background: #059669;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.citizen-report-btn:hover {
  background: #047857;
}

/* -------------------------------------------------------------
   3. Primary Dark Navigation Bar (Amar Ujala / Aaj Tak style)
   ------------------------------------------------------------- */
.primary-nav-bar {
  background: var(--header-nav-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
  position: relative;
}

.nav-categories {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav-categories::-webkit-scrollbar {
  display: none;
}

.nav-item {
  color: #ffffff;
  padding: 13px 16px;
  font-size: 1.02rem;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.nav-item.active {
  background: var(--primary-red);
  color: #ffffff;
  font-weight: 700;
}

.nav-item.state-nav-btn {
  background: #111;
  border-left: 2px solid var(--accent-gold);
}
.nav-item.state-nav-btn:hover {
  background: #2a2a2a;
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #222222;
  border: 1px solid #3d3d3d;
  min-width: 190px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border-radius: 0 0 6px 6px;
  z-index: 1100;
}

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

.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: #f0f6fc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}
.dropdown-item:hover {
  background: var(--primary-red);
  color: #ffffff;
}

/* -------------------------------------------------------------
   4. State & District Sub-Navigation (Reference Screenshot 2)
   "होम > उत्तर प्रदेश > सिद्धार्थनगर | लखनऊ | वाराणसी..."
   ------------------------------------------------------------- */
.state-district-subnav {
  background: #2b303a;
  color: #ffffff;
  border-bottom: 2px solid var(--primary-red);
  font-size: 0.92rem;
  padding: 0;
}

.subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar {
  display: none;
}

.breadcrumbs-col {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.bc-menu-icon {
  padding: 10px 14px;
  color: #cbd5e1;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
.bc-menu-icon:hover {
  background: rgba(255, 255, 255, 0.1);
}

.bc-crumb {
  padding: 10px 10px;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bc-crumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.bc-crumb .sep {
  color: #94a3b8;
  font-size: 0.8rem;
}

/* Active District Banner Pill (Screenshot 2 exact style) */
.active-district-pill {
  background: var(--primary-red);
  color: #ffffff !important;
  font-weight: 700;
  padding: 10px 18px !important;
  margin-right: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.quick-districts-list {
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow-x: auto;
}

.quick-districts-list .district-chip {
  padding: 10px 14px;
  color: #e2e8f0;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.quick-districts-list .district-chip:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.quick-districts-list .district-chip.current {
  background: var(--primary-red);
  color: #ffffff;
  font-weight: 700;
}

/* Sidebar District Selection Cards - High Contrast & Modern UI */
.sidebar-widget .district-chip,
.sidebar-district-card,
.sidebar-district-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 12px 15px !important;
  background: var(--bg-card) !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  box-sizing: border-box !important;
  text-align: left !important;
}

.sidebar-widget .district-chip strong,
.sidebar-district-card strong,
.sidebar-district-btn strong {
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 0.98rem !important;
}

.sidebar-widget .district-chip i,
.sidebar-widget .district-chip svg,
.sidebar-district-card i,
.sidebar-district-card svg,
.sidebar-district-btn i,
.sidebar-district-btn svg {
  color: var(--primary-red) !important;
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
}

.sidebar-widget .district-chip:hover,
.sidebar-district-card:hover,
.sidebar-district-btn:hover {
  background: #f8fafc !important;
  border-color: var(--primary-red) !important;
  color: var(--primary-red) !important;
  transform: translateX(4px) !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12) !important;
}

.sidebar-widget .district-chip:hover strong,
.sidebar-district-card:hover strong,
.sidebar-district-btn:hover strong {
  color: var(--primary-red) !important;
}

/* Dark Mode support for Sidebar District Cards */
[data-theme="dark"] .sidebar-widget .district-chip,
[data-theme="dark"] .sidebar-district-card,
[data-theme="dark"] .sidebar-district-btn {
  background: #1e2530 !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .sidebar-widget .district-chip strong,
[data-theme="dark"] .sidebar-district-card strong,
[data-theme="dark"] .sidebar-district-btn strong {
  color: #ffffff !important;
}

[data-theme="dark"] .sidebar-widget .district-chip:hover,
[data-theme="dark"] .sidebar-district-card:hover,
[data-theme="dark"] .sidebar-district-btn:hover {
  background: #283344 !important;
  border-color: var(--primary-red) !important;
  color: #ffffff !important;
}

.change-city-modal-trigger {
  padding: 10px 14px;
  background: #1e232a;
  color: var(--accent-gold);
  font-weight: 600;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.change-city-modal-trigger:hover {
  background: #14181d;
  color: #ffeb3b;
}

/* -------------------------------------------------------------
   5. Trending Bar & Breaking News Ticker (Screenshot 1)
   ------------------------------------------------------------- */
.trending-topics-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  font-size: 0.88rem;
}

.trending-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.trending-inner::-webkit-scrollbar {
  display: none;
}

.trending-label {
  font-weight: 700;
  color: var(--primary-red);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.trending-tags-list {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.trend-tag {
  color: var(--text-secondary);
  background: var(--bg-subtle);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
  transition: all var(--transition-fast);
}
.trend-tag:hover {
  background: var(--primary-red);
  color: #ffffff;
}

/* Breaking Ticker */
.breaking-ticker-bar {
  background: var(--bg-surface);
  border-bottom: 2px solid var(--primary-red);
  display: flex;
  align-items: center;
  min-height: 44px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .breaking-ticker-bar {
  background: #1a1f26;
}

.breaking-badge {
  background: var(--primary-red);
  color: #ffffff;
  font-weight: 800;
  padding: 0 18px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-transform: uppercase;
  font-size: 0.9rem;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.ticker-content {
  flex: 1;
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.ticker-text {
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-weight: 600;
  color: var(--text-main);
  animation: ticker-slide 45s linear infinite;
  cursor: pointer;
  will-change: transform;
}

.ticker-content:hover .ticker-text,
.ticker-text:hover {
  animation-play-state: paused;
  color: var(--primary-red);
}

@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Market Rates Ticker */
.market-strip {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  padding: 4px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.market-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow-x: auto;
  white-space: nowrap;
}

.market-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.market-item strong {
  color: var(--text-main);
}
.val-up {
  color: #16a34a;
  font-weight: 600;
}
.val-down {
  color: #dc2626;
  font-weight: 600;
}

/* -------------------------------------------------------------
   6. Main Content Layout & News Sections
   ------------------------------------------------------------- */
.portal-main-content {
  padding: 24px 0 40px;
}

.portal-grid {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 28px;
}

/* Section Header styling */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--primary-red);
  padding-bottom: 8px;
  margin-bottom: 18px;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--primary-red);
  border-radius: 2px;
}

.section-more-link {
  font-size: 0.88rem;
  color: var(--primary-red);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-more-link:hover {
  text-decoration: underline;
}

/* Lead / Hero Section */
.hero-news-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 20px;
  margin-bottom: 30px;
}

.lead-news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.lead-news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.lead-news-card:hover .card-media img {
  transform: scale(1.04);
}

.media-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.article-badge-pill {
  display: inline-flex;
  align-items: center;
  background: var(--primary-red);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.2);
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.meta-location {
  color: var(--primary-red);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lead-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 10px;
  cursor: pointer;
}
.lead-title:hover {
  color: var(--primary-red);
}

.lead-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.bullet-points-list {
  list-style: none !important;
  list-style-type: none !important;
  background: var(--bg-subtle);
  border-left: 3px solid var(--primary-red);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 14px;
  font-size: 0.88rem;
}
.bullet-points-list li {
  list-style: none !important;
  list-style-type: none !important;
  display: block;
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.bullet-points-list li::marker {
  content: none !important;
  display: none !important;
}
.bullet-points-list li:last-child {
  margin-bottom: 0;
}
.bullet-points-list li::before {
  content: '▪';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-red);
  font-weight: bold;
}

.card-footer-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.audio-listen-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  color: #fff;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.84rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37,99,235,0.45), 0 0 0 0 rgba(37,99,235,0.3);
  position: relative;
  z-index: 1;
  white-space: nowrap;
  flex-shrink: 0;
}
.audio-listen-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.55);
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}
.audio-listen-btn:active { transform: translateY(0); }

/* Stop button next to play */
.article-audio-control-bar .icon-action-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #94a3b8;
  cursor: pointer;
  padding: 7px 9px;
  border-radius: 8px;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.article-audio-control-bar .icon-action-btn:hover {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.4);
  color: #f87171;
}

/* Buttons wrapper inside audio bar */
.article-audio-control-bar > div:last-child {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.card-action-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-action-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color var(--transition-fast);
}
.icon-action-btn:hover {
  color: var(--primary-red);
}
.icon-action-btn.bookmarked {
  color: #f59e0b;
}

/* Trending Top 5 List (Hero Side) */
.trending-side-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-news-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
  cursor: pointer;
}
.side-news-item:hover {
  transform: translateX(4px);
  border-color: var(--primary-red);
}

.side-news-thumb {
  width: 100px;
  height: 75px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.side-news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.side-news-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-news-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   7. Specific Category Sections
   ------------------------------------------------------------- */
.category-section-block {
  margin-bottom: 36px;
}

.news-cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-card-standard {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}
.news-card-standard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.standard-thumb-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.standard-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.news-card-standard:hover .standard-thumb-box img {
  transform: scale(1.05);
}

.standard-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.standard-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 8px;
  cursor: pointer;
}
.standard-card-title:hover {
  color: var(--primary-red);
}

.standard-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sports / Cricket Live Score Widget */
.cricket-score-widget {
  background: linear-gradient(135deg, #1e3a8a, #172554);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

.score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #93c5fd;
  margin-bottom: 10px;
}

.score-teams-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.team-score-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-flag {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: #ffffff;
  color: #1e3a8a;
  font-size: 0.85rem;
}

.team-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.1;
}
.team-info span {
  font-size: 0.95rem;
  color: #facc15;
  font-weight: 600;
}

.score-status-text {
  font-size: 0.85rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Jobs / Sarkari Alerts Table */
.jobs-table-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.jobs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
}
.jobs-row:last-child {
  border-bottom: none;
}

.job-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}
.job-dept {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.job-apply-btn {
  background: var(--primary-red);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

/* -------------------------------------------------------------
   8. Right Sidebar Widgets
   ------------------------------------------------------------- */
.portal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.widget-heading {
  font-size: 1.15rem;
  font-weight: 800;
  border-left: 4px solid var(--primary-red);
  padding-left: 10px;
  margin-bottom: 14px;
  color: var(--text-main);
}

/* Live TV Preview Box */
.live-tv-box {
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  margin-bottom: 12px;
}

.live-tv-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.live-tv-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
}

.play-circle-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 8px;
  box-shadow: 0 4px 14px rgba(201, 24, 43, 0.5);
  transition: transform 0.2s ease;
}
.live-tv-box:hover .play-circle-icon {
  transform: scale(1.1);
}

/* E-Paper Teaser */
.epaper-teaser {
  background: linear-gradient(135deg, #f8fafc, #edf2f7);
  border: 2px dashed #cbd5e1;
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
}
[data-theme="dark"] .epaper-teaser {
  background: #1e242c;
  border-color: #3b4252;
}

.epaper-btn {
  background: #1e293b;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}
.epaper-btn:hover {
  background: var(--primary-red);
}

/* -------------------------------------------------------------
   9. Modals (State-District Picker, News Reader, Search, TV)
   ------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.show {
  display: flex;
}

.modal-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modal-pop 0.25s ease-out;
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 16px 20px;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}
.modal-close-btn:hover {
  color: var(--primary-red);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

/* 2-Step State & District Selector in Modal */
.selector-step-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.state-select-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.state-select-card:hover {
  border-color: var(--primary-red);
  background: var(--border-light);
}

.state-select-card.active {
  background: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
  box-shadow: 0 2px 8px rgba(201, 24, 43, 0.3);
}

.district-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-body);
  color: var(--text-main);
  margin-bottom: 14px;
}

.districts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
}

.district-select-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.88rem;
  text-align: center;
  transition: all var(--transition-fast);
}
.district-select-card:hover {
  background: var(--primary-red);
  color: #ffffff;
}
.district-select-card.active {
  background: var(--primary-red);
  color: #ffffff;
  font-weight: 700;
}

/* Full Article Modal Reading View */
.article-detail-view {
  max-width: 820px;
}

.article-hero-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.article-full-headline {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 12px;
}

/* ── Audio News Reader Bar ─────────────────────────────────── */
.article-audio-control-bar {
  background: linear-gradient(135deg, #0f1621 0%, #1a2233 60%, #0f1928 100%);
  border: 1px solid rgba(99, 179, 237, 0.2);
  padding: 14px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.06);
  gap: 16px;
}

/* subtle animated gradient glow */
.article-audio-control-bar::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(37,99,235,0.15) 0%, transparent 70%);
  animation: audioPulseGlow 3s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes audioPulseGlow {
  0%   { opacity: 0.4; transform: translateX(0); }
  100% { opacity: 0.9; transform: translateX(30px); }
}

[data-theme="light"] .article-audio-control-bar {
  background: linear-gradient(135deg, #0f1621 0%, #1a2233 60%, #0f1928 100%);
}

.audio-speaker-wave {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #93c5fd;
  font-size: 0.9rem;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.audio-speaker-wave > i {
  color: #60a5fa;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.6));
}

#audioStatusText {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #cbd5e1;
  font-size: 0.88rem;
}

/* Animated equalizer bars (shown when playing via JS class) */
.audio-eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  flex-shrink: 0;
}
.audio-eq-bar {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(to top, #2563eb, #60a5fa);
  animation: eqBounce 0.8s ease-in-out infinite alternate;
}
.audio-eq-bar:nth-child(1) { height: 6px;  animation-delay: 0s; }
.audio-eq-bar:nth-child(2) { height: 12px; animation-delay: 0.12s; }
.audio-eq-bar:nth-child(3) { height: 18px; animation-delay: 0.24s; }
.audio-eq-bar:nth-child(4) { height: 10px; animation-delay: 0.18s; }
.audio-eq-bar:nth-child(5) { height: 15px; animation-delay: 0.06s; }
@keyframes eqBounce {
  from { transform: scaleY(0.35); opacity: 0.6; }
  to   { transform: scaleY(1);    opacity: 1; }
}

.article-body-text {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--text-main);
  white-space: pre-line;
  margin-bottom: 24px;
}

/* -------------------------------------------------------------
   10. Official Portal Footer
   ------------------------------------------------------------- */
.main-footer {
  background: #0b0e14;
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 48px 0 24px;
  border-top: 3px solid #dc2626;
  position: relative;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 3.8fr 2.2fr 2.4fr 3.6fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 12px 0 16px;
}

.footer-social-section {
  margin-top: 16px;
}

.footer-social-label {
  display: block;
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #141922;
  border: 1px solid #232d3b;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.social-chip i,
.social-chip svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.social-chip:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-chip.fb:hover { background: #1877f2; border-color: #1877f2; }
.social-chip.x:hover { background: #000000; border-color: #555555; }
.social-chip.yt:hover { background: #ff0000; border-color: #ff0000; }
.social-chip.ig:hover { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); border-color: #dc2743; }
.social-chip.wa:hover { background: #25d366; border-color: #25d366; }

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  position: relative;
  letter-spacing: 0.01em;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--primary-red);
  border-radius: 2px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list li a {
  color: #94a3b8;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-links-list li a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-links-list li a::before {
  content: '›';
  font-size: 1.1rem;
  line-height: 1;
  color: #475569;
  transition: color 0.2s;
}

.footer-links-list li a:hover::before {
  color: var(--primary-red);
}

.footer-live-link {
  color: #f87171 !important;
  font-weight: 700 !important;
}

.footer-live-link:hover {
  color: #ffffff !important;
}

.footer-live-link::before {
  display: none !important;
}

.live-pulse-badge {
  position: relative;
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 2px;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 8px #ef4444;
  animation: livePulseAnim 1.6s infinite;
}

@keyframes livePulseAnim {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.footer-districts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dist-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #141922;
  color: #cbd5e1;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #232d3b;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.dist-tag::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #475569;
  transition: background 0.2s;
}

.dist-tag:hover {
  background: rgba(220, 38, 38, 0.15);
  border-color: #dc2626;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.dist-tag:hover::before {
  background: #ef4444;
}

.footer-bottom-bar {
  border-top: 1px solid #1a222d;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: #64748b;
}

.footer-bottom-bar p {
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: #cbd5e1;
}

@media (max-width: 1024px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .footer-bottom-links {
    justify-content: center;
  }
}

/* -------------------------------------------------------------
   11. Responsiveness & Media Queries
   ------------------------------------------------------------- */
/* -------------------------------------------------------------
   11. Responsiveness & Media Queries (All Devices & Mobile)
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .news-cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .header-brand-row {
    flex-wrap: wrap;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  /* Zero horizontal overflow on mobile */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  .container {
    padding: 0 12px;
  }

  /* 1. Top Utility Header Bar */
  .top-utility-bar {
    padding: 4px 0;
    font-size: 0.74rem;
  }
  .top-utility-bar .container {
    gap: 6px;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .utility-left {
    gap: 8px;
    flex-wrap: nowrap;
    overflow: hidden;
    min-width: 0;
  }
  .panchang-date {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.73rem;
  }
  .city-weather-badge {
    padding: 2px 6px;
    font-size: 0.72rem;
    flex-shrink: 0;
  }
  .utility-right {
    display: none !important; /* Hide font resizer & admin link from top bar to keep single line on mobile */
  }

  /* 2. Main Brand Header (Fix cut-off buttons & layout) */
  .main-header {
    padding: 8px 0;
  }
  .header-inner, .header-brand-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }
  .brand-wrapper, .brand-logo-area a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    min-width: 0 !important;
  }
  .brand-logo-img {
    height: 38px !important;
    width: auto !important;
  }
  .brand-title {
    font-size: 1.35rem !important;
    line-height: 1 !important;
    letter-spacing: -0.3px !important;
  }
  .brand-slogan {
    display: none !important; /* Hide tagline on mobile to prevent squeezing */
  }

  /* Header Leaderboard Ad (Hide on mobile) */
  .header-ad-banner-slot {
    display: none !important;
  }

  /* Header Action Buttons */
  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }
  .live-tv-tag, .pulse-live-indicator {
    padding: 5px 9px !important;
    font-size: 0.76rem !important;
    border-radius: 20px !important;
    gap: 4px !important;
    box-shadow: 0 2px 6px rgba(229, 57, 53, 0.3) !important;
    white-space: nowrap !important;
  }
  .live-dot {
    width: 7px !important;
    height: 7px !important;
  }
  .citizen-report-btn {
    padding: 5px 9px !important;
    font-size: 0.76rem !important;
    border-radius: 20px !important;
    gap: 4px !important;
    white-space: nowrap !important;
  }
  .header-actions .btn-secondary {
    padding: 5px 8px !important;
    font-size: 0.75rem !important;
    border-radius: 20px !important;
    gap: 4px !important;
    white-space: nowrap !important;
  }
  .header-actions .btn-secondary span {
    display: none !important; /* Show icons only on mobile for secondary CMS / Reporter login */
  }
  .search-trigger-btn {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
  }
  .search-trigger-btn span {
    display: none !important; /* Icon-only search on mobile */
  }
  .search-trigger-btn i, .search-trigger-btn svg {
    width: 15px !important;
    height: 15px !important;
  }
  .panchang-date .hide-on-mobile {
    display: none !important;
  }
  .subnav-right-badge .hide-on-mobile {
    display: none !important;
  }

  /* 3. Primary Navigation Bar */
  .primary-nav-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #18181b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    padding: 0;
  }
  .nav-container {
    padding: 0;
  }
  .nav-categories {
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 4px;
  }
  .nav-categories::-webkit-scrollbar {
    display: none;
  }
  .nav-item {
    padding: 9px 12px;
    font-size: 0.88rem;
    gap: 4px;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }

  /* 4. State & District Subnav */
  .state-district-subnav {
    font-size: 0.82rem;
  }
  .subnav-inner {
    padding: 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 4px;
  }
  .subnav-inner::-webkit-scrollbar {
    display: none;
  }
  .breadcrumbs-col {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  .bc-menu-icon {
    padding: 7px 8px;
  }
  .bc-crumb {
    padding: 7px 5px;
    font-size: 0.8rem;
    gap: 3px;
  }
  .active-district-pill {
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
    border-radius: 4px !important;
    flex-shrink: 0;
  }
  .quick-districts-list {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
  }
  .quick-districts-list .district-chip {
    padding: 7px 8px;
    font-size: 0.8rem;
    flex-shrink: 0;
  }
  .change-city-modal-trigger {
    padding: 6px 8px;
    font-size: 0.78rem;
    margin-left: 0;
    flex-shrink: 0;
  }

  /* 5. Trending Topics Bar */
  .trending-topics-bar {
    padding: 5px 0;
    font-size: 0.8rem;
  }
  .trending-inner {
    padding: 0 4px;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .trending-label {
    font-size: 0.8rem;
    flex-shrink: 0;
  }
  .trend-tag {
    padding: 2px 8px;
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  /* 6. Breaking News Ticker */
  .breaking-ticker-bar {
    min-height: 38px;
    height: 38px;
  }
  .breaking-badge {
    padding: 0 10px;
    height: 38px;
    font-size: 0.78rem;
    gap: 5px;
  }
  .ticker-content {
    height: 38px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  /* 7. Market Financial Strip */
  .market-strip {
    padding: 4px 0;
  }
  .market-strip .container {
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    gap: 12px;
    scrollbar-width: none;
  }
  .market-strip .container::-webkit-scrollbar {
    display: none;
  }
  .market-item {
    font-size: 0.76rem;
    padding: 2px 8px;
    flex-shrink: 0;
  }

  /* 8. News Grids & Cards */
  .news-cards-grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Lead story hero */
  .lead-story-hero {
    border-radius: 8px;
  }
  .lead-hero-overlay h2 {
    font-size: 1.25rem !important;
    line-height: 1.35;
  }

  /* Hero side list */
  .hero-side-list {
    gap: 10px;
  }
  .hero-side-card {
    grid-template-columns: 110px 1fr;
    padding: 10px;
  }
  .hero-side-card h4 {
    font-size: 0.88rem;
    line-height: 1.3;
  }

  /* Live TV widget */
  .live-tv-box {
    border-radius: 8px;
  }

  /* Modals responsiveness */
  .modal-card {
    width: 95vw !important;
    max-width: 95% !important;
    margin: 16px auto !important;
    max-height: 92vh !important;
    border-radius: 10px !important;
  }
  .modal-body {
    max-height: calc(92vh - 75px) !important;
    overflow-y: auto !important;
    padding: 16px !important;
    -webkit-overflow-scrolling: touch;
  }
  .form-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Footer */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .top-utility-bar {
    padding: 3px 8px;
    font-size: 0.7rem;
  }
  
  .header-actions {
    gap: 4px !important;
  }
  .header-actions .btn-secondary,
  .header-actions .header-cms-btn {
    display: none !important;
  }
  .citizen-report-btn {
    padding: 4px 7px !important;
    font-size: 0.72rem !important;
  }
  .live-tv-tag, .pulse-live-indicator {
    padding: 4px 7px !important;
    font-size: 0.72rem !important;
  }
  .subnav-right-badge {
    display: none !important;
  }
  .brand-title {
    font-size: 1.22rem !important;
  }
  
  .breaking-badge {
    padding: 0 8px;
    font-size: 0.72rem;
  }
  .breaking-ticker-bar {
    font-size: 0.8rem;
  }

  .standard-thumb-box {
    height: 180px !important;
  }
  .standard-card-title {
    font-size: 1.05rem !important;
  }
  .standard-card-desc {
    font-size: 0.82rem !important;
  }

  .cricket-score-widget .score-teams-row {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .cricket-score-widget .team-info {
    text-align: center !important;
  }

  .jobs-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .jobs-apply-btn {
    width: 100%;
    text-align: center;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* -------------------------------------------------------------
   12. Single Article Page & Editorial Sidebar Styles
   ------------------------------------------------------------- */
.article-page-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  align-items: start;
  margin-top: 24px;
}

.article-main-column {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.article-sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* Author byline */
.author-byline-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  margin: 16px 0 20px 0;
  border: 1px solid var(--border-light);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.author-info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.author-meta-row {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Article Reading Controls */
.article-reading-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 0;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.reading-tool-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.font-size-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.font-size-btn:hover, .font-size-btn.active {
  background: var(--primary-red);
  color: white;
  border-color: var(--primary-red);
}

.read-time-badge {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Social Share Bar */
.social-share-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 0;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.share-btn-wa {
  background: #25D366;
  color: #ffffff;
}

.share-btn-fb {
  background: #1877F2;
  color: #ffffff;
}

.share-btn-x {
  background: #0f1419;
  color: #ffffff;
}

.share-btn-tg {
  background: #229ED9;
  color: #ffffff;
}

.share-btn-copy {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.share-btn-print {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

/* Floating copy toast */
.copy-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #10b981;
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  z-index: 9999;
  animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Article Reactions */
.article-reactions-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 28px 0;
  text-align: center;
}

.reactions-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.reactions-button-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.reaction-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.reaction-btn:hover, .reaction-btn.reacted {
  border-color: var(--primary-red);
  background: rgba(201, 24, 43, 0.08);
  color: var(--primary-red);
  transform: scale(1.04);
}

/* Next / Prev Navigation Cards */
.next-prev-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.nav-story-card {
  padding: 14px 18px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: block;
}

.nav-story-card:hover {
  border-color: var(--primary-red);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.nav-story-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--primary-red);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.nav-story-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sidebar Widgets */
.sidebar-box-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 10px;
  margin-bottom: 16px;
  position: relative;
}

.sidebar-box-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-red);
}

.sidebar-box-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Trending numbered list */
.trending-ranks-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trending-rank-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.trending-rank-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.trending-rank-row:hover .trending-rank-title {
  color: var(--primary-red);
}

.rank-badge-num {
  width: 26px;
  height: 26px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  flex-shrink: 0;
}

.trending-rank-row:nth-child(1) .rank-badge-num {
  background: var(--primary-red);
  color: #fff;
  border-color: var(--primary-red);
}

.trending-rank-row:nth-child(2) .rank-badge-num {
  background: #d97706;
  color: #fff;
  border-color: #d97706;
}

.trending-rank-row:nth-child(3) .rank-badge-num {
  background: #475467;
  color: #fff;
  border-color: #475467;
}

.trending-rank-content {
  flex: 1;
}

.trending-rank-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-rank-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* WhatsApp channel promo widget */
.sidebar-whatsapp-card {
  background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.sidebar-whatsapp-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 10px 0 6px 0;
  color: #ffffff;
}

.sidebar-whatsapp-card p {
  font-size: 0.88rem;
  opacity: 0.92;
  line-height: 1.45;
  margin-bottom: 16px;
  color: #ffffff;
}

.whatsapp-join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 0.9rem;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform var(--transition-fast);
}

.whatsapp-join-btn:hover {
  transform: scale(1.03);
}

/* District Quick Selector in Article Sidebar */
.sidebar-district-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-district-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.sidebar-district-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-red);
  color: var(--primary-red);
  transform: translateX(4px);
}

/* Sidebar Newsletter Widget */
.sidebar-newsletter-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.sidebar-newsletter-box h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-main);
}

.sidebar-newsletter-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
}

.newsletter-form-row {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.newsletter-submit-btn {
  background: var(--primary-red);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.newsletter-submit-btn:hover {
  background: var(--primary-red-hover);
}

/* ==========================================================================
   Article Bottom Social Share Bar
   ========================================================================== */
.article-bottom-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  margin-top: 24px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 12px;
}

.article-share-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-heading-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.share-btn-wa-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), background 0.2s;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
  flex-shrink: 0;
}

.share-btn-wa-pill:hover {
  transform: translateY(-2px);
  background: #20ba5a;
}

.share-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--transition-fast), opacity 0.2s;
}

.share-icon-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.article-share-right {
  display: flex;
  align-items: center;
}

/* ==========================================================================
   Digital E-Paper Card & Teaser Component Styles
   ========================================================================== */
.epaper-sidebar-card, .epaper-teaser {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.epaper-sidebar-card:hover, .epaper-teaser:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 24, 43, 0.35);
}

.epaper-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.epaper-sidebar-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(201, 24, 43, 0.1);
  color: var(--primary-red);
  padding: 3px 8px;
  border-radius: 4px;
}

.epaper-sidebar-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.epaper-cover-frame {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-light);
  margin-bottom: 12px;
  background: #0f172a;
  transition: transform 0.25s ease;
}

.epaper-cover-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.epaper-cover-frame img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.epaper-cover-frame:hover img {
  transform: scale(1.02);
}

.epaper-badge-top {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary-red);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.3px;
}

.epaper-badge-bottom {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.epaper-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  margin: 0 0 6px;
}

.epaper-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 14px;
}

.epaper-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.epaper-btn, .epaper-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-red);
  color: #ffffff !important;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  flex: 1;
  text-align: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
  box-shadow: 0 2px 8px rgba(201, 24, 43, 0.25);
}

.epaper-btn:hover, .epaper-btn-primary:hover {
  background: var(--primary-red-hover);
  transform: translateY(-1px);
}

.epaper-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-main) !important;
  border: 1px solid var(--border-color);
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.epaper-btn-secondary:hover {
  border-color: var(--primary-red);
  color: var(--primary-red) !important;
  background: rgba(201, 24, 43, 0.08);
}

/* Responsiveness for single article page */
@media (max-width: 992px) {
  .article-page-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .article-main-column {
    padding: 16px 12px !important;
    border-radius: 8px;
  }
  .article-headline {
    font-size: 1.42rem !important;
    line-height: 1.35 !important;
    margin: 10px 0 12px 0 !important;
  }
  .author-byline-card {
    padding: 8px 10px;
    gap: 10px;
    margin: 10px 0 12px 0;
  }
  .author-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  .author-name-row {
    font-size: 0.88rem;
  }
  .author-meta-row {
    font-size: 0.72rem;
  }

  /* Reading tools & Social Share - Clean 1 row layout */
  .article-reading-tools {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    margin-bottom: 12px;
  }
  .social-share-strip {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 0;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .social-share-strip::-webkit-scrollbar {
    display: none;
  }
  .share-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    flex-shrink: 0;
  }
  .share-btn-wa {
    flex: 1;
    justify-content: center;
    border-radius: 20px;
    padding: 7px 12px;
  }
  .share-btn-fb, .share-btn-x, .share-btn-tg, .share-btn-copy {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .share-btn-print {
    display: none !important; /* Hide print on mobile */
  }

  /* Audio player card */
  .article-audio-control-bar {
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    border-radius: 12px;
  }
  .article-audio-control-bar > div:last-child {
    display: flex;
    gap: 8px;
    width: 100%;
  }
  .audio-listen-btn {
    flex: 1;
    justify-content: center;
  }
  #audioStatusText {
    font-size: 0.82rem;
  }

  /* Article cover & text */
  .article-cover-wrap {
    margin: 10px 0 12px 0;
  }
  .article-cover {
    max-height: 220px;
    border-radius: 6px;
  }
  .article-text {
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 14px 0;
  }

  /* Reactions row */
  .reactions-title {
    font-size: 0.95rem;
  }
  .reactions-button-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .reaction-btn {
    padding: 6px 4px;
    font-size: 0.75rem;
    flex-direction: column;
    gap: 2px;
    border-radius: 8px;
  }

  /* Next / Prev Navigation Cards */
  .next-prev-nav {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 18px 0;
  }
  .nav-story-card {
    padding: 10px 12px;
  }

  /* Tags */
  .seo-tag-pill {
    font-size: 0.76rem !important;
    padding: 4px 8px !important;
  }

  /* Bottom Social Share Bar Mobile */
  .article-bottom-share-bar {
    padding-top: 14px;
    margin-top: 18px;
    gap: 8px;
  }
  .article-share-left {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }
  .share-heading-label {
    font-size: 0.86rem;
    white-space: nowrap;
  }
  .share-btn-wa-pill {
    padding: 6px 10px;
    font-size: 0.78rem;
    gap: 4px;
  }
  .share-icon-btn {
    width: 34px;
    height: 34px;
  }
  .article-share-right {
    display: none !important;
  }

  /* Mobile E-Paper Frame */
  .epaper-cover-frame img {
    height: 180px;
  }
}

/* ════════════════════════════════════════════════════════════════════
   AUDIO EQ BAR STATES
   ════════════════════════════════════════════════════════════════════ */

/* Default (idle) — very slow, dim */
.audio-eq-bars .audio-eq-bar {
  animation-duration: 2.2s;
  opacity: 0.35;
}

/* Playing state — fast & bright */
.audio-eq-bars.is-playing .audio-eq-bar {
  animation-duration: 0.55s;
  opacity: 1;
}

/* Paused state — frozen */
.audio-eq-bars.is-paused .audio-eq-bar {
  animation-play-state: paused;
  opacity: 0.5;
}
