/* ================================================================
   READ NOW NEWS - Premium Theme System v7.0
   Design Philosophy: Modern editorial magazine meets digital-first newsroom
   ================================================================ */

/* ============ CSS VARIABLES ============ */
:root {
  /* Primary Palette */
  --primary: #C40000;
  --primary-dark: #8B0000;
  --primary-light: #E63946;
  
  /* Neutrals */
  --dark: #111111;
  --dark-soft: #1A1A1A;
  --text: #2D2D2D;
  --text-dark: #111111;
  --text-secondary: #4B5563;
  --text-body: #374151;
  --text-muted: #6B7280;
  --text-light: #7B8394;
  
  /* Backgrounds */
  --bg: #F5F6F8;
  --bg-warm: #FAFAF9;
  --bg-card: #FFFFFF;
  --bg-secondary: #F9FAFB;
  --bg-elevated: #FFFFFF;
  
  /* Accent */
  --accent: #FFD54F;
  --accent-hover: #FFC107;
  
  /* Borders */
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  
  /* Typography */
  --font-heading: 'Baloo 2', 'Noto Sans Devanagari', sans-serif;
  --font-body: 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Noto Serif Devanagari', Georgia, serif;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-7: 64px;
  --space-8: 96px;
  
  /* Radius */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Container */
  --container: 1500px;
  --container-narrow: 800px;
  --container-padding: 24px;
  
  /* Z-index */
  --z-dropdown: 50;
  --z-sticky: 100;
  --z-modal: 200;
  --z-ticker: 90;
  --z-drawer-overlay: 149;
  --z-drawer: 150;
}

/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  letter-spacing: -0.01em;
}

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

a,
button,
[role="button"],
[tabindex] {
  -webkit-tap-highlight-color: transparent;
}

a:hover {
  color: var(--primary);
}

button {
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ============ UTILITY CLASSES ============ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

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

/* ============ SKIP LINK ============ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ============ UTILITY BAR ============ */
.utility-bar {
  width: 100%;
  box-sizing: border-box;
  background: #1A1A1E;
  color: rgba(255,255,255,0.72);
  font-size: 0.72rem;
  line-height: 1;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
}

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

.utility-date {
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.utility-sep {
  color: rgba(255,255,255,0.18);
  font-weight: 300;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary);
  color: white;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
}

.live-dot {
  width: 5px;
  height: 5px;
  background: white;
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.utility-tagline {
  color: rgba(255,255,255,0.45);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.utility-social {
  display: flex;
  gap: 10px;
  align-items: center;
}

.utility-social a {
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}

.utility-social a:hover {
  color: white;
}

.utility-admin-link {
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  white-space: nowrap;
}

.utility-admin-link:hover {
  color: white;
}

/* ============ BRAND ROW ============ */
.brand-row {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-card);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position: relative;
}

.brand-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 76px;
  min-width: 0;
}

.mobile-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.mobile-hamburger:hover {
  background: var(--bg);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.brand-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

.brand-logo-img {
  height: 64px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-search {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 480px;
  position: relative;
}

.brand-search-input {
  width: 100%;
  height: 48px;
  padding: 0 52px 0 20px;
  border: 1.5px solid #E8E8EC;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: #F9FAFB;
  color: var(--text);
  transition: all var(--transition-slow);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.brand-search-input::placeholder {
  color: #B0B5BF;
  font-weight: 400;
}

.brand-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196,0,0,0.08), 0 2px 8px rgba(0,0,0,0.06);
  background: white;
}

.brand-search-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  width: 38px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.brand-search-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

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

.brand-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--text-muted);
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  transition: all var(--transition);
  opacity: 0.55;
}

.brand-action-btn:hover {
  color: var(--primary);
  background: rgba(196,0,0,0.06);
  opacity: 1;
}

/* ============ BRAND LOGO ============ */

.footer-logo {
  display: block;
  max-height: 64px;
  width: auto;
  margin: 0 auto var(--space-md);
  opacity: 0.9;
}

.rule {
  max-width: var(--container);
  margin: 0 auto;
  border: none;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

/* ============ BREAKING NEWS TICKER ============ */
.ticker-wrap {
  background: linear-gradient(90deg, #B71C1C 0%, #C62828 50%, #B71C1C 100%);
  color: white;
  display: flex;
  align-items: stretch;
  height: 38px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.ticker-label {
  flex: 0 0 auto;
  background: rgba(0,0,0,0.25);
  padding: 0 18px;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  backdrop-filter: blur(4px);
  border-right: 1px solid rgba(255,255,255,0.15);
  position: relative;
  z-index: 1;
}

.ticker-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  will-change: transform;
  animation: tickerScroll 45s linear infinite;
}

.ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker-wrap:hover .ticker-track,
.ticker-track:focus-within {
  animation-play-state: paused;
}

.ticker-group span {
  margin: 0 40px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: opacity var(--transition);
  font-weight: 500;
  line-height: 36px;
  white-space: nowrap;
  padding: 0;
}

.ticker-group span:hover {
  opacity: 0.8;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes liveUpdateScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
  .live-update-track {
    animation: none;
  }
  .ticker-viewport {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .ticker-viewport::-webkit-scrollbar {
    display: none;
  }
}

/* ============ PRIMARY NAVIGATION ============ */
.primary-nav {
  width: 100%;
  box-sizing: border-box;
  background: #111111;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  overflow: hidden;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  min-width: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 22px;
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition);
  border-bottom: 2.5px solid transparent;
  text-decoration: none;
  line-height: 48px;
  letter-spacing: 0.015em;
}

.nav-link:hover {
  color: white;
  background: rgba(255,255,255,0.06);
}

.nav-link.active {
  color: white;
  border-bottom-color: var(--primary);
  font-weight: 600;
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
}

.primary-nav,
.nav-inner {
  overflow: visible;
}

.nav-dropdown {
  position: relative;
  flex: 0 0 auto;
  color: #d8d8d8;
}

.nav-dropdown > summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  user-select: none;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown > summary::after {
  content: "⌄";
  margin-left: 7px;
  font-size: 0.8em;
  transition: transform 0.2s ease;
}

.nav-dropdown[open] > summary::after {
  transform: rotate(180deg);
}

.nav-dropdown:hover > summary,
.nav-dropdown:focus-within > summary,
.nav-dropdown[open] > summary,
.nav-dropdown.active > summary {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1200;
  min-width: 250px;
  max-width: min(360px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0 0 10px 10px;
  background: #111;
  box-shadow: 0 14px 30px rgba(0,0,0,0.32);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown[open] .nav-dropdown-menu {
  display: grid;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: #ededed;
  line-height: 1.35;
  text-decoration: none;
  white-space: normal;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  color: #fff;
  background: var(--primary);
  outline: none;
}

.nav-dropdown-menu .nav-dropdown-parent {
  margin-bottom: 5px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px 6px 0 0;
  font-weight: 700;
}

.drawer-parent-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: stretch;
}

.drawer-parent-row .drawer-link {
  min-width: 0;
}

.drawer-submenu-toggle {
  border: 0;
  border-left: 1px solid var(--border);
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}

.drawer-submenu-toggle[aria-expanded="true"] {
  transform: rotate(180deg);
}

.drawer-submenu {
  padding: 4px 0 8px 22px;
  background: rgba(0,0,0,0.04);
}

.drawer-submenu[hidden] {
  display: none;
}

.drawer-child-link {
  font-size: 0.94rem;
}

.initial-loading,
.category-loading {
  min-height: 48vh;
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}

.loading-skeleton {
  width: min(680px, 82vw);
  height: 190px;
  border-radius: 14px;
  background: linear-gradient(90deg, #eee 25%, #f8f8f8 50%, #eee 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.2s infinite linear;
}

@keyframes loading-shimmer {
  to { background-position: -200% 0; }
}

.category-error {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-block: 28px;
  padding: 24px;
  border: 1px solid #efb2b2;
  border-radius: 12px;
  background: #fff7f7;
  color: #6e1515;
}

.category-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 16px 6px;
  color: var(--muted);
}

/* ============ NAVIGATION (Legacy) ============ */
nav {
  background: var(--dark-soft);
  position: relative;
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-lg);
}

.navlist {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  color: #E5E7EB;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all var(--transition);
  border-bottom: 3px solid transparent;
}

.nav-item > a:hover {
  background: rgba(255,255,255,0.05);
  color: white;
}

.nav-item.active > a {
  background: var(--primary);
  color: white;
  border-bottom-color: var(--accent);
}

.caret {
  font-size: 0.6em;
  margin-left: 6px;
  transition: transform var(--transition);
}

.nav-item.open .caret {
  transform: rotate(180deg);
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  min-width: 200px;
  box-shadow: var(--shadow-xl);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: var(--z-dropdown);
  animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-item.open .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 12px 20px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
}

.dropdown a:hover {
  background: var(--bg);
  color: var(--primary);
  padding-left: 24px;
}

/* Search Box (Legacy) */
.searchbox {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding: 8px 16px;
}

.searchbox input {
  border: 2px solid transparent;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.9rem;
  width: 180px;
  background: rgba(255,255,255,0.1);
  color: white;
  transition: all var(--transition);
}

.searchbox input::placeholder {
  color: rgba(255,255,255,0.5);
}

.searchbox input:focus {
  background: rgba(255,255,255,0.15);
  border-color: var(--accent);
  width: 220px;
}

.searchbox button {
  background: var(--primary);
  color: white;
  padding: 8px 20px;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background var(--transition);
  letter-spacing: 0.05em;
}

.searchbox button:hover {
  background: var(--primary-light);
}

/* ============ MOBILE DRAWER ============ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: var(--z-drawer-overlay);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--bg-card);
  z-index: var(--z-drawer);
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}

.drawer-panel.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.drawer-logo {
  height: 40px;
  width: auto;
}

.drawer-close {
  padding: 8px;
  color: var(--text-muted);
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-close:hover {
  background: var(--bg);
}

.drawer-search {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.drawer-search input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.drawer-search input:focus {
  outline: none;
  border-color: var(--primary);
}

.drawer-search button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius);
  cursor: pointer;
}

.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-sm) 0;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px var(--space-lg);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  text-decoration: none;
}

.drawer-link:hover {
  background: var(--bg);
  color: var(--primary);
  padding-left: calc(var(--space-lg) + 4px);
}

.drawer-link-sm {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.drawer-link-primary {
  color: var(--primary);
  font-weight: 700;
}

.drawer-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: var(--space-sm) var(--space-lg);
}

/* ============ MAIN CONTENT ============ */
main {
  margin: 0 auto;
  padding: var(--space-xl) 0;
  min-height: 60vh;
}

.category-section {
  margin-bottom: var(--space-2xl);
}

.trending-section {
  margin-bottom: var(--space-2xl);
}

.editors-pick-section {
  margin-bottom: var(--space-2xl);
}

.video-section {
  margin-bottom: var(--space-2xl);
}

.gallery-section {
  margin-bottom: var(--space-2xl);
}

.newsletter-section {
  margin-bottom: var(--space-2xl);
}

/* ============ SECTION TITLES ============ */
.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: 0 0 var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border);
  padding-top: var(--space-xs);
}

.section-title h2 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 800;
}

.section-title h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.section-title .more {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  padding: 6px 16px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.section-title .more:hover {
  background: var(--primary);
  color: white;
}

/* ============ HERO SECTION ============ */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-lg);
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

.hero-img {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: white;
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.08) 12px, transparent 16px);
}

.hero-body {
  padding: var(--space-xl) var(--space-xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
}

.hero-body h1 {
  font-size: 1.8rem;
  margin: var(--space-xs) 0;
  line-height: 1.25;
  color: var(--dark);
  font-weight: 800;
}

.hero-body p {
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: var(--space-xs);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  letter-spacing: 0.01em;
}

.meta::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--text-light);
  border-radius: 50%;
}

.readmore {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.readmore:hover {
  gap: var(--space-md);
  color: var(--primary-dark);
}

/* ============ NEWS CARDS ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid var(--border-light);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

.card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  position: relative;
  background-size: cover;
  background-position: center;
}

.card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.card-body {
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body .tag {
  margin-bottom: var(--space-sm);
}

.card-body h3 {
  font-size: 1rem;
  margin: var(--space-xs) 0;
  line-height: 1.4;
  color: var(--dark);
  transition: color var(--transition);
  font-weight: 700;
}

.card:hover .card-body h3 {
  color: var(--primary);
}

.card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  flex: 1;
  font-family: var(--font-serif);
  line-height: 1.6;
  margin-bottom: var(--space-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body .meta {
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-light);
}

/* ============ SUBCATEGORY CHIPS ============ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.chip {
  padding: 8px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
}

.chip:hover,
.chip.active {
  background: var(--dark);
  border-color: var(--dark);
  color: white;
}

/* ============ CATEGORY LIST (ROW CARDS) ============ */
.catlist {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.category-page-wrap {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--container-padding);
}

.row-card {
  display: flex;
  gap: var(--space-lg);
  background: var(--bg-card);
  border-radius: 16px;
  padding: var(--space-md) var(--space-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s;
  cursor: pointer;
  border: 1px solid var(--border-light);
}

.row-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.row-img {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
}

.row-body {
  flex: 1;
}

.row-body .tag {
  margin-bottom: var(--space-sm);
}

.row-body h3 {
  margin: 0 0 var(--space-sm);
  font-size: 1.1rem;
  line-height: 1.4;
  transition: color var(--transition);
}

.row-card:hover .row-body h3 {
  color: var(--primary);
}

.row-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: var(--font-serif);
  line-height: 1.6;
}

/* ============ EMPTY STATE ============ */
.empty {
  padding: 60px var(--space-xl);
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}

.empty::before {
  content: 'खबर';
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

/* ============ TOP 5 LATEST WIDGET ============ */
.top5-list {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid var(--border-light);
}

.top5-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.2s;
}

.top5-item:last-child {
  border-bottom: none;
}

.top5-item:hover {
  background: var(--bg);
}

.top5-item:hover h3 {
  color: var(--primary);
}

.top5-rank {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--primary);
  width: 40px;
  flex-shrink: 0;
  text-align: center;
  opacity: 0.3;
}

.top5-img {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  background-size: cover;
  background-position: center;
}

.top5-body {
  flex: 1;
}

.top5-body .tag {
  margin-bottom: 4px;
}

.top5-body h3 {
  margin: 4px 0 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ============ ARTICLE PAGE ============ */
.article-page {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.back-link:hover {
  color: var(--primary);
  transform: translateX(-4px);
}

.article-page h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin: var(--space-md) 0;
  color: var(--dark);
}

.article-hero-img {
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: white;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  background-size: cover;
  background-position: center;
}

.article-body {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.8;
}

.article-body p {
  margin-bottom: var(--space-lg);
}

/* ============ TAG SMALL ============ */
.tag-sm {
  font-size: 0.65rem;
  padding: 2px 8px;
}

/* ============ HERO GRID ============ */
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.hero-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.hero-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.hero-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: white;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.08) 12px, transparent 16px);
}

.hero-card-body {
  padding: var(--space-lg) var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-card-body h1 {
  font-size: 1.8rem;
  margin: 2px 0;
  line-height: 1.25;
  color: var(--dark);
  font-weight: 800;
}

.hero-card-body p {
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: var(--space-xs);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-side-card {
  display: flex;
  gap: 12px;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s;
  border: 1px solid var(--border-light);
}

.hero-side-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.hero-side-img {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-side-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  justify-content: center;
  gap: 4px;
  padding-right: 4px;
}

.hero-side-body .tag {
  width: fit-content;
  font-size: 0.6rem;
  padding: 2px 7px;
}

.hero-side-body h3 {
  margin: 2px 0;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--dark);
  transition: color var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
}

.hero-side-card:hover .hero-side-body h3 {
  color: var(--primary);
}

.hero-side-body .meta {
  font-size: 0.72rem;
  padding-top: 4px;
  border-top: 1px solid var(--border-light);
}

.hero-side-body .meta::before {
  display: none;
}

/* ============ TOP 5 + TIMELINE ROW ============ */
.top5-timeline-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.top5-timeline-col {
  min-width: 0;
}

/* ============ LATEST TIMELINE ============ */
.latest-timeline {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid var(--border-light);
}

.timeline-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item:hover {
  background: var(--bg);
}

.timeline-item:hover h3 {
  color: var(--primary);
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.timeline-content {
  flex: 1;
}

.timeline-content .tag {
  margin-bottom: 4px;
  width: fit-content;
}

.timeline-content h3 {
  margin: 4px 0;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: color var(--transition);
}

/* ============ CATEGORY SECTION ============ */
.category-section {
  margin-bottom: var(--space-2xl);
}

.category-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.category-featured {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
}

.category-featured:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.category-featured-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  background-size: cover;
  background-position: center;
  position: relative;
}

.category-featured-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
}

.category-featured-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-featured-body .tag {
  margin-bottom: var(--space-sm);
  width: fit-content;
}

.category-featured-body h3 {
  font-size: 1.2rem;
  margin: var(--space-sm) 0;
  line-height: 1.4;
  transition: color var(--transition);
}

.category-featured:hover .category-featured-body h3 {
  color: var(--primary);
}

.category-featured-body p {
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--space-xs);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.category-grid .card {
  flex-direction: row;
}

.category-grid .card-img {
  width: 120px;
  min-width: 120px;
  aspect-ratio: 3 / 2;
  flex-shrink: 0;
}

.category-grid .card-body {
  padding: var(--space-md);
}

.category-grid .card-body h3 {
  font-size: 0.95rem;
  margin: 4px 0;
}

.category-grid .card-body p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* ============ TRENDING SECTION ============ */
.trending-section {
  margin-bottom: var(--space-2xl);
}

.trending-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}

.trending-item {
  background: var(--bg-card);
  border-radius: 16px;
  padding: var(--space-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s;
  position: relative;
  border: 1px solid var(--border-light);
}

.trending-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.trending-rank {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
}

.trending-content {
  padding-left: var(--space-xl);
}

.trending-content .tag {
  margin-bottom: 4px;
  width: fit-content;
}

.trending-content h3 {
  margin: 4px 0;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: color var(--transition);
}

.trending-item:hover .trending-content h3 {
  color: var(--primary);
}

/* ============ EDITOR'S PICK ============ */
.editors-pick-section {
  margin-bottom: var(--space-2xl);
}

.editors-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.editors-pick-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
}

.editors-pick-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.editors-pick-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  background-size: cover;
  background-position: center;
}

.editors-pick-body {
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.editors-pick-body .tag {
  margin-bottom: var(--space-sm);
  width: fit-content;
}

.editors-pick-body h3 {
  font-size: 1rem;
  margin: var(--space-xs) 0;
  line-height: 1.4;
  transition: color var(--transition);
}

.editors-pick-card:hover .editors-pick-body h3 {
  color: var(--primary);
}

.editors-pick-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-serif);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============ VIDEO SECTION ============ */
.video-section {
  margin-bottom: var(--space-xl);
}

.video-embed-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-cta {
  text-align: center;
  margin-top: var(--space-md);
}

.btn-youtube {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FF0000;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn-youtube:hover {
  background: #CC0000;
  transform: translateY(-1px);
}

/* ============ PHOTO GALLERY ============ */
.gallery-section {
  margin-bottom: var(--space-2xl);
}

.gallery-placeholder {
  background: linear-gradient(135deg, var(--dark-soft) 0%, var(--dark) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.gallery-placeholder-inner {
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  color: white;
}

.gallery-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.7;
}

.gallery-placeholder-inner h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}

.gallery-placeholder-inner p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ============ NEWSLETTER CTA ============ */
.newsletter-section {
  margin-bottom: var(--space-2xl);
}

.newsletter-inner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  color: white;
}

.newsletter-text {
  flex: 1;
}

.newsletter-text h2 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.newsletter-text p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.newsletter-form input {
  padding: 12px 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
  width: 280px;
  transition: all var(--transition);
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.6);
}

.newsletter-form input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.15);
}

.newsletter-form .btn {
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
}

.newsletter-form .btn:hover {
  background: var(--accent-hover);
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  text-align: center;
  margin: var(--space-md) 0;
}

.back-to-top button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 24px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition);
}

.back-to-top button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-card);
}

/* ============ READING PROGRESS BAR ============ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 1100;
  transition: width 0.15s ease-out;
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  max-width: var(--container);
  margin: 24px auto 0;
  padding: 0 var(--container-padding);
  background: transparent;
  box-shadow: none;
  position: static;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin: 0 6px;
  color: var(--text-muted);
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ============ ARTICLE LAYOUT ============ */
.article-layout {
  max-width: var(--container);
  margin: 24px auto 0;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.article-main {
  min-width: 0;
}

/* ============ ARTICLE HEADER ============ */
.article-header {
  margin-bottom: 24px;
}

.article-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag-breaking {
  background: #FF0000 !important;
  color: #fff !important;
  animation: pulse-breaking 2s ease-in-out infinite;
}

@keyframes pulse-breaking {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.article-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-dark);
  margin: 0 0 12px;
}

.article-excerpt-full {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 16px;
  font-weight: 500;
}

.article-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.article-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.article-info-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

/* ============ ARTICLE HERO IMAGE ============ */
.article-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin-bottom: 24px;
}

/* ============ SOCIAL SHARE BAR ============ */
.social-share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin: 32px 0;
  flex-wrap: wrap;
}

.share-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-dark);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  padding: 0;
  font-size: 0;
}

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

.share-whatsapp { background: #25D366; }
.share-facebook { background: #1877F2; }
.share-twitter { background: #000; }
.share-telegram { background: #0088cc; }

.share-copy {
  background: var(--bg-secondary);
  color: var(--text-muted);
  width: auto;
  padding: 0 16px;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 100px;
}

.share-copy:hover {
  background: var(--primary);
  color: #fff;
}

.copy-text {
  white-space: nowrap;
}

/* ============ ARTICLE BODY (Article Page) ============ */
.article-body {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--text-body);
}

.article-body p {
  margin: 0 0 20px;
}

.article-body p:last-child {
  margin-bottom: 0;
}

/* ============ ARTICLE TAGS ============ */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.article-tags-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.article-tag-chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--transition);
}

.article-tag-chip:hover {
  background: var(--primary);
  color: #fff;
}

/* ============ AUTHOR CARD ============ */
.author-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  margin-top: 32px;
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow var(--transition);
}

.author-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.author-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--font-heading);
  box-shadow: 0 2px 8px rgba(196,0,0,0.2);
}

.author-card-body {
  min-width: 0;
  flex: 1;
}

.author-card-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.author-card-designation {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.author-card-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

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

.author-card-stat {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.author-card-sep {
  color: var(--border);
  font-size: 0.8rem;
}

.author-card-link {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition);
}

.author-card-link:hover {
  color: var(--primary-dark);
}

/* ============ ARTICLE NAV (Next/Prev) ============ */
.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
  background: transparent;
  box-shadow: none;
  position: static;
}

.article-nav-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.article-nav-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(196,0,0,0.08);
  transform: translateY(-1px);
}

.article-nav-next {
  text-align: right;
}

.article-nav-direction {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-nav-next .article-nav-direction {
  justify-content: flex-end;
}

.article-nav-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============ COMMENTS SECTION ============ */
.comments-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.comments-heading {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 16px;
}

.comments-divider {
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 16px;
}

.comments-placeholder-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.comments-placeholder-icon {
  color: var(--border);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.comments-placeholder-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 8px;
}

.comments-placeholder-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

/* ============ SIDEBAR ============ */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 24px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.sidebar-widget-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
  cursor: pointer;
}

.sidebar-item:last-child {
  border-bottom: none;
}

.sidebar-item:hover .sidebar-item-body h4 {
  color: var(--primary);
}

.sidebar-rank {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.4;
  min-width: 28px;
  line-height: 1;
  padding-top: 2px;
}

.sidebar-item-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-item-body .tag-sm {
  align-self: flex-start;
  font-size: 0.7rem;
  padding: 2px 8px;
}

.sidebar-item-body h4 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}

.sidebar-item-body .meta {
  font-size: 0.75rem;
  gap: 8px;
}

.sidebar-item-sm {
  padding: 10px 0;
}

.sidebar-item-sm h4 {
  font-size: 0.84rem;
  -webkit-line-clamp: 2;
}

/* ============ SIDEBAR AD ============ */
.sidebar-ad {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.sidebar-ad .ad-slot-img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.sidebar-ad .ad-slot-inner {
  min-height: 200px;
  border-radius: var(--radius-lg);
}

/* ============ SIDEBAR NEWSLETTER ============ */
.sidebar-newsletter {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  border: none;
}

.sidebar-newsletter .sidebar-widget-title {
  color: #fff;
  border-bottom-color: var(--accent);
}

.sidebar-newsletter p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.8);
  margin: 0 0 14px;
}

.sidebar-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-newsletter-form input {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.88rem;
  width: 100%;
  box-sizing: border-box;
}

.sidebar-newsletter-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.sidebar-newsletter-form input:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

.sidebar-newsletter-form .btn-sm {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background var(--transition);
}

.sidebar-newsletter-form .btn-sm:hover {
  background: var(--primary-dark);
}

/* ============ RELATED SECTION ============ */
.related-section {
  max-width: var(--container);
  margin: 48px auto 0;
  padding: 0 var(--container-padding);
}

/* ============ 404 NOT FOUND PAGE ============ */
.not-found-page {
  text-align: center;
  padding: var(--space-8) var(--space-md);
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.not-found-icon {
  font-size: 8rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.15;
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.not-found-page h1 {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
}

.not-found-page p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
}

/* ============ ADMIN ============ */
.admin-login {
  max-width: 420px;
  margin: 60px auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-xl);
}

.admin-login h2 {
  color: var(--primary);
  margin-top: 0;
  font-size: 1.5rem;
}

.field {
  margin-bottom: var(--space-md);
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--dark);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-card);
  transition: all var(--transition);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196,0,0,0.1);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  letter-spacing: 0.025em;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn.secondary {
  background: var(--dark);
}

.btn.secondary:hover {
  background: var(--dark-soft);
}

.btn.ghost {
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--border);
}

.btn.ghost:hover {
  border-color: var(--dark);
  color: var(--dark);
}

.hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
}

.errmsg {
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  font-weight: 600;
  padding: var(--space-sm) var(--space-md);
  background: rgba(196,0,0,0.05);
  border-radius: var(--radius);
}

.admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stat {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.stat b {
  display: block;
  font-size: 2rem;
  color: var(--primary);
  font-family: var(--font-heading);
}

.stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

th, td {
  padding: 14px 16px;
  text-align: right;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

th {
  background: var(--bg);
  font-weight: 700;
  color: var(--dark);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td:first-child, th:first-child {
  text-align: right;
  max-width: 280px;
}

.actionbtn {
  border: none;
  background: none;
  font-size: 1.1rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.actionbtn:hover {
  background: var(--bg);
  opacity: 1;
}

.admin-form {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.static-page {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  font-family: var(--font-serif);
  box-shadow: var(--shadow);
}

.static-page h1 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: var(--space-lg);
}

/* ============ SEO SECTION ============ */
.seo-box {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-sm);
}

.seo-box h4 {
  margin: 0 0 var(--space-md);
  color: var(--dark);
  font-size: 1rem;
}

.seo-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-top: var(--space-md);
}

.seo-preview .url {
  color: #1a7a3c;
  font-size: 0.8rem;
}

.seo-preview .title {
  color: #1a0dab;
  font-size: 1.1rem;
  margin: 4px 0;
  font-family: var(--font-body);
  font-weight: 500;
}

.seo-preview .desc {
  color: #4d5156;
  font-size: 0.9rem;
  font-family: var(--font-body);
  line-height: 1.5;
}

/* ============ MEDIA PICKER ============ */
.media-select-btn {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  cursor: pointer;
  transition: all var(--transition);
}

.media-select-btn:hover {
  border-color: var(--primary);
  background: rgba(196,0,0,0.02);
}

.media-select-btn .thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  background: var(--dark);
  border-radius: var(--radius);
}

.media-select-btn .txt {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: var(--bg-card);
  width: 100%;
  max-width: 760px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease;
}

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

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 2px solid var(--border-light);
}

.modal-head h3 {
  margin: 0;
  color: var(--dark);
  font-size: 1.2rem;
}

.modal-close {
  background: var(--bg);
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--border);
  color: var(--dark);
}

.modal-search {
  padding: var(--space-md) var(--space-xl);
  border-bottom: 1px solid var(--border-light);
}

.modal-search input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.modal-search input:focus {
  border-color: var(--primary);
}

.media-grid {
  padding: var(--space-lg) var(--space-xl);
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.media-item {
  border: 2px solid var(--border-light);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: center;
  padding-bottom: var(--space-sm);
  transition: all var(--transition);
}

.media-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.media-item .mi-img {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.media-item .mi-title {
  font-size: 0.8rem;
  color: var(--text);
  padding: 0 var(--space-sm);
}

.media-empty {
  grid-column: 1/-1;
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
}

/* ============ FOOTER ============ */
footer {
  background: var(--dark);
  color: var(--text-light);
  margin-top: var(--space-2xl);
  padding: var(--space-2xl) var(--space-md) var(--space-lg);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-2xl);
}

.footer-inner h3 {
  color: white;
  font-size: 1rem;
  margin-bottom: var(--space-md);
  font-weight: 700;
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-inner h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-inner a {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: all var(--transition);
}

.footer-inner a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-bottom {
  max-width: var(--container);
  margin: var(--space-xl) auto 0;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============ PREFERS REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .hero-card,
  .hero-side-card,
  .category-featured,
  .trending-item,
  .editors-pick-card {
    transition: none;
  }
  .reading-progress { transition: none; }
  .share-btn { transition: none; }
  .drawer-panel { transition: none; }
  .drawer-overlay { transition: none; }
}

/* ============ E-PAPER / E-MAGAZINE BUTTONS ============ */
.brand-header-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 12px;
  margin-right: 12px;
  flex-shrink: 0;
}

.brand-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.brand-btn-epaper {
  background: var(--primary);
  color: #fff;
}

.brand-btn-epaper:hover {
  background: var(--primary-dark);
}

.brand-btn-emagazine {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.brand-btn-emagazine:hover {
  background: rgba(196,0,0,0.05);
}

/* ============ ARCHIVE LIST (E-Paper) ============ */
.archive-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.archive-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.archive-item:hover {
  box-shadow: var(--shadow-md);
}

.archive-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.archive-info {
  flex: 1;
}

.archive-info h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.archive-info p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============ STATIC PAGE (generic) ============ */
.static-page {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.static-page h1 {
  font-size: 1.6rem;
  margin-bottom: var(--space-md);
}

.static-page p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.back-link {
  display: inline-block;
  margin-top: var(--space-lg);
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

/* ============ DRAWER E-PAPER / E-MAGAZINE LINKS ============ */
.drawer-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  padding: 12px 16px 4px;
}

@media (max-width: 768px) {
  .brand-header-buttons {
    display: none;
  }
}

/* ============ IMAGE RENDERING ============ */
.card-img,
.row-img,
.category-featured-img,
.editors-pick-img,
.top5-img,
.hero-card-img,
.hero-side-img,
.article-hero-img {
  overflow: hidden;
  position: relative;
}

.card-img img,
.row-img img,
.category-featured-img img,
.editors-pick-img img,
.top5-img img,
.hero-card-img img,
.hero-side-img img,
.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-img-placeholder,
.row-img-placeholder,
.category-featured-img-placeholder,
.editors-pick-img-placeholder,
.top5-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.hero-card-img {
  aspect-ratio: 16 / 9;
}

.card-img {
  aspect-ratio: 16 / 9;
}

.category-featured-img {
  aspect-ratio: 16 / 9;
}

.editors-pick-img {
  aspect-ratio: 16 / 9;
}

.row-img {
  width: 220px;
  min-width: 220px;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.top5-img {
  width: 80px;
  min-width: 80px;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.hero-side-img {
  width: 110px;
  min-width: 110px;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  flex-shrink: 0;
}

.article-hero-img {
  aspect-ratio: 16 / 9;
  max-height: 480px;
  border-radius: var(--radius);
}

/* ============ VIDEO EMBED ============ */
/* Replaced fake video grid with real YouTube embed - see top of file */

/* ============ ARCHIVE ACTIONS ============ */
.archive-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(196,0,0,0.05);
}

/* ============ ARCHIVE EMPTY STATE ============ */
.archive-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-top: 16px;
}

.archive-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.archive-empty p {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 768px) {
  .row-img {
    width: 80px;
    min-width: 80px;
    aspect-ratio: 3 / 2;
  }
}
  .archive-item {
    flex-wrap: wrap;
  }
}

/* ================================================================
   PREMIUM HOMEPAGE ADDITIONS - Task 18
   ================================================================ */

/* ============ LIVE UPDATE BAR ============ */
.live-update-bar {
  background: linear-gradient(90deg, #0D0D0D 0%, #151515 50%, #0D0D0D 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

.live-update-inner {
  display: flex;
  align-items: center;
  height: 40px;
  gap: 20px;
}

.live-update-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #4ADE80;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.live-update-pulse {
  width: 6px;
  height: 6px;
  background: #4ADE80;
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(74,222,128,0.5);
}

.live-update-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.live-update-track {
  display: flex;
  width: max-content;
  align-items: center;
  will-change: transform;
  animation: liveUpdateScroll 58s linear infinite;
}

.live-update-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.live-update-bar:hover .live-update-track,
.live-update-track:focus-within {
  animation-play-state: paused;
}

.live-update-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0 8px;
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: 12px;
  line-height: 40px;
}

.live-update-item:first-child {
  border-left: none;
  padding-left: 0;
}

.live-update-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex-shrink: 0;
}

.live-update-time {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.live-update-text {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.72);
  cursor: pointer;
  transition: color 150ms;
  font-weight: 500;
}

.live-update-text:hover {
  color: #fff;
}

/* ============ TICKER ENHANCEMENTS ============ */
.ticker-breaking-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FF0000;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
  animation: pulse-breaking 1.5s ease-in-out infinite;
  text-transform: uppercase;
  box-shadow: 0 0 8px rgba(255,0,0,0.4);
  line-height: 1;
}

.ticker-breaking-dot {
  width: 6px;
  height: 6px;
  background: #FF0000;
  border-radius: 50%;
  margin-right: 6px;
  animation: livePulse 1s ease-in-out infinite;
}

/* ============ PREMIUM HERO WRAPPER ============ */
.premium-hero-wrapper {
  margin-bottom: var(--space-2xl);
}

.premium-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.premium-hero-main {
  min-width: 0;
}

.premium-hero-main .hero-card {
  display: flex;
  flex-direction: column;
}

.premium-hero-main .hero-card-img {
  aspect-ratio: 16 / 9;
}

.premium-hero-main .hero-card-body {
  flex: 1;
}

.premium-hero-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.premium-hero-side .hero-side-card {
  min-height: 0;
}

/* ============ AD SLOTS ============ */
.ad-slot {
  margin: var(--space-2xl) auto;
}

.ad-slot-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  background: var(--bg-secondary, #F5F6F8);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
  text-transform: uppercase;
}

.ad-leaderboard .ad-slot-inner {
  min-height: 90px;
}

.ad-in-content .ad-slot-inner {
  min-height: 250px;
}

.ad-slot-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.ad-slot a {
  display: block;
  line-height: 0;
}

/* ============ E-MAGAZINE WIDGET ============ */
.emagazine-widget {
  margin-bottom: var(--space-2xl);
}

.emagazine-card {
  display: flex;
  gap: var(--space-xl);
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid var(--border-light);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.emagazine-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.emagazine-cover {
  width: 200px;
  min-height: 260px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}

.emagazine-cover-icon {
  font-size: 3.5rem;
  opacity: 0.8;
}

.emagazine-cover-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.02em;
}

.emagazine-info {
  flex: 1;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.emagazine-info .tag {
  width: fit-content;
}

.emagazine-info h3 {
  font-size: 1.2rem;
  line-height: 1.4;
}

.emagazine-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}

.emagazine-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

/* ============ FOOTER MODERNIZATION ============ */
footer {
  margin-top: var(--space-xl);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

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

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-light);
  margin: 0 0 var(--space-md);
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-md);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  transition: all 150ms;
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
}

.footer-links-col h3 {
  color: white;
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  font-weight: 700;
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-links-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-link-list a {
  display: block;
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 3px 0;
  transition: all 150ms;
}

.footer-link-list a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-bottom {
  max-width: var(--container);
  margin: var(--space-lg) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.85rem;
  transition: color 150ms;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: color 150ms;
}

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

.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============ SECTION CONTAINER ============ */
.category-section.container,
.trending-section.container,
.editors-pick-section.container,
.video-section.container,
.gallery-section.container,
.emagazine-widget.container,
.newsletter-section.container,
.ad-slot.container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  width: 100%;
}

/* ================================================================
   PREMIUM HOMEPAGE FINAL PASS
   ================================================================ */
main {
  background:
    linear-gradient(180deg, #fff 0, #f6f7f9 280px, #f1f3f6 100%);
}

.hero-premium {
  margin: -8px 0 var(--space-2xl);
  padding: var(--space-xl) 0 var(--space-2xl);
  background: linear-gradient(135deg, #151515 0%, #26201d 54%, #c40000 140%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.45;
  pointer-events: none;
}

.hero-premium-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.hero-main-card,
.hero-side-item,
.cat-featured-card,
.cat-secondary-card,
.top5-list,
.latest-timeline,
.trending-item,
.editors-pick-card,
.emagazine-card {
  border-radius: 8px;
  border: 1px solid rgba(17,17,17,0.08);
  box-shadow: 0 18px 42px rgba(15,23,42,0.08);
}

.hero-main-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  cursor: pointer;
  background: #f4f5f7;
  display: flex;
  align-items: flex-end;
}

.hero-main-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: white;
}

.hero-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-main-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.24) 42%, rgba(0,0,0,0.86) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.7), rgba(0,0,0,0.1) 65%);
}

.hero-main-body {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: clamp(28px, 4vw, 54px);
}

.hero-badge,
.hero-side-tag,
.cat-featured-tag,
.cat-sec-tag,
.tag {
  border-radius: 4px;
  letter-spacing: 0.03em;
  font-weight: 800;
  color: white;
}

.hero-badge {
  display: inline-flex;
  padding: 5px 12px;
  font-size: 0.75rem;
  margin-bottom: 14px;
}

.hero-headline {
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 4.15rem);
  line-height: 1.04;
  margin: 0 0 14px;
  max-width: 900px;
  letter-spacing: 0;
}

.hero-excerpt {
  color: rgba(255,255,255,0.82);
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 0 14px;
}

.hero-meta,
.hero-side-meta,
.cat-featured-meta,
.cat-sec-meta,
.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.hero-meta {
  color: rgba(255,255,255,0.66);
}

.hero-readmore {
  display: inline-flex;
  margin-top: 18px;
  color: #fff;
  font-weight: 800;
}

.hero-sidebar-col {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 12px;
}

.hero-side-item {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 12px;
  min-height: 128px;
  padding: 10px;
  background: rgba(255,255,255,0.96);
  color: var(--dark);
  cursor: pointer;
  transition: transform var(--transition-slow), border-color var(--transition-slow), box-shadow var(--transition-slow);
}

.hero-side-item:hover,
.cat-featured-card:hover,
.cat-secondary-card:hover,
.top5-item:hover,
.timeline-item:hover {
  transform: translateY(-2px);
  border-color: rgba(196,0,0,0.42);
  box-shadow: 0 20px 44px rgba(15,23,42,0.13);
}

.hero-side-thumb,
.cat-featured-img,
.cat-sec-img,
.card-img,
.row-img,
.editors-pick-img,
.top5-img {
  overflow: hidden;
  background: linear-gradient(135deg, #f6f7f9, #eceff3);
}

.cat-featured-img::after,
.card-img::after,
.hero-card-img::after {
  display: none;
}

.hero-side-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
}

.hero-side-thumb img,
.cat-featured-img img,
.cat-sec-img img,
.card-img img,
.row-img img,
.editors-pick-img img,
.top5-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-side-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hero-side-tag,
.cat-sec-tag {
  width: fit-content;
  padding: 3px 8px;
  font-size: 0.62rem;
  margin-bottom: 7px;
}

.hero-side-info h3 {
  font-size: 0.95rem;
  line-height: 1.34;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-block {
  margin-bottom: 36px;
}

.cat-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(17,17,17,0.12);
}

.cat-block-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-block-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #111;
  color: #fff;
}

.cat-block-header h2 {
  font-size: 1.45rem;
  margin: 0;
}

.cat-block-more {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.86rem;
}

.cat-block-body {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 18px;
  align-items: start;
}

.cat-block-single .cat-block-body {
  grid-template-columns: minmax(0, 1fr);
}

.cat-block-single .cat-secondary-list,
.cat-secondary-list:empty {
  display: none;
}

.cat-featured-card {
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
}

.cat-featured-img {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.cat-featured-body {
  padding: 20px 22px 22px;
}

.cat-featured-tag {
  display: inline-flex;
  padding: 4px 10px;
  font-size: 0.68rem;
  margin-bottom: 10px;
}

.cat-featured-body h3 {
  font-size: 1.3rem;
  line-height: 1.32;
  margin: 0 0 8px;
}

.cat-featured-body p {
  color: var(--text-muted);
  font-family: var(--font-serif);
  line-height: 1.65;
  margin: 0 0 12px;
}

.cat-secondary-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-self: start;
}

.cat-block-short .cat-secondary-list {
  grid-template-columns: minmax(0, 1fr);
}

.cat-secondary-card {
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
}

.cat-sec-img {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
}

.cat-sec-body {
  padding: 13px 14px 15px;
}

.cat-sec-body h4 {
  font-size: 0.95rem;
  line-height: 1.38;
  margin: 0 0 8px;
}

.card {
  border-radius: 8px;
}

.card-img {
  aspect-ratio: 16 / 9;
}

.card-img::after {
  display: none;
}

.card-img-placeholder,
.row-img-placeholder,
.cat-featured-img-placeholder,
.cat-sec-img-placeholder,
.editors-pick-img-placeholder,
.top5-img-placeholder,
.premium-image-fallback {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-image-fallback {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #f1f3f6 0%, #e3e7ec 55%, #d8dde4 100%);
  color: #697386;
  font-size: clamp(0.72rem, 1.2vw, 0.92rem);
  letter-spacing: 0.12em;
  font-weight: 800;
}

.premium-image-fallback span {
  width: 64px;
  height: 34px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(105,115,134,0.22);
  box-shadow: 0 4px 14px rgba(31,41,55,0.08);
}

.top5-timeline-row {
  align-items: start;
}

.top5-list,
.latest-timeline {
  border-radius: 8px;
}

.top5-item,
.timeline-item {
  transition: transform var(--transition-slow), background var(--transition), box-shadow var(--transition-slow);
}

.video-premium {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 32px;
  margin-bottom: var(--space-2xl);
  background: #141414;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 22px 48px rgba(15,23,42,0.16);
}

.video-premium-copy {
  padding-left: 8px;
}

.video-kicker {
  display: inline-flex;
  color: #ffdddd;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.video-premium h2 {
  color: #fff;
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  line-height: 1.16;
  margin: 0 0 12px;
}

.video-premium p {
  color: rgba(255,255,255,0.7);
  font-family: var(--font-serif);
  line-height: 1.7;
  margin: 0 0 18px;
}

.video-premium .video-embed-wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 22px 46px rgba(0,0,0,0.36);
}

.video-premium .btn-youtube {
  background: #fff;
  color: #c40000;
  font-weight: 800;
}

footer {
  padding-top: 34px;
  padding-bottom: 0;
  background: #111;
}

.footer-logo {
  margin: 0 0 14px;
}

/* ================================================================
   TASK 21.3 - FOOTER ONLY REDESIGN
   ================================================================ */
footer[role="contentinfo"] {
  margin-top: 22px;
  padding: 0;
  color: rgba(255,255,255,0.72);
  background:
    radial-gradient(circle at 18% 0%, rgba(196,0,0,0.18), transparent 30%),
    linear-gradient(135deg, #171717 0%, #101114 48%, #07080a 100%);
  border-top: 3px solid var(--primary);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

footer[role="contentinfo"] .footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 30px var(--container-padding) 24px;
  display: grid;
  grid-template-columns: 34% 18% 18% 30%;
  gap: 0;
  align-items: start;
}

footer[role="contentinfo"] .footer-brand-col,
footer[role="contentinfo"] .footer-links-col {
  min-width: 0;
}

footer[role="contentinfo"] .footer-brand-col {
  padding-right: 34px;
}

footer[role="contentinfo"] .footer-logo {
  height: 64px;
  max-height: 68px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 12px;
}

footer[role="contentinfo"] .footer-desc {
  max-width: 360px;
  margin: 0 0 14px;
  color: rgba(255,255,255,0.68);
  font-size: 0.86rem;
  line-height: 1.65;
}

footer[role="contentinfo"] .footer-social {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
}

footer[role="contentinfo"] .footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.74);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

footer[role="contentinfo"] .footer-social a:hover {
  color: #fff;
  background: var(--primary);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

footer[role="contentinfo"] .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 14px 0 0;
}

footer[role="contentinfo"] .footer-links a {
  color: rgba(255,255,255,0.58);
  font-size: 0.8rem;
  line-height: 1.2;
  padding: 0;
}

footer[role="contentinfo"] .footer-links a:hover {
  color: #fff;
  transform: none;
}

footer[role="contentinfo"] .footer-links-col {
  padding-top: 7px;
  padding-right: 24px;
}

footer[role="contentinfo"] .footer-links-col:last-child {
  padding-right: 0;
}

footer[role="contentinfo"] .footer-links-col h3 {
  margin: 0 0 12px;
  padding: 0 0 8px;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}

footer[role="contentinfo"] .footer-links-col h3::after {
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), rgba(255,213,79,0.85));
}

footer[role="contentinfo"] .footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

footer[role="contentinfo"] .footer-link-list a {
  position: relative;
  width: fit-content;
  color: rgba(255,255,255,0.63);
  font-size: 0.84rem;
  line-height: 1.25;
  padding: 2px 0;
  transition: color 160ms ease, transform 160ms ease;
}

footer[role="contentinfo"] .footer-link-list a:hover {
  color: #fff;
  transform: translateX(3px);
}

footer[role="contentinfo"] .footer-bottom {
  max-width: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,0.09);
  background: rgba(0,0,0,0.22);
}

footer[role="contentinfo"] .footer-bottom-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 11px var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

footer[role="contentinfo"] .copyright {
  text-align: left;
  color: rgba(255,255,255,0.52);
  font-size: 0.78rem;
  line-height: 1.3;
}

footer[role="contentinfo"] .footer-bottom-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

footer[role="contentinfo"] .footer-bottom-links a {
  color: rgba(255,255,255,0.58);
  font-size: 0.78rem;
  line-height: 1.2;
  transition: color 160ms ease;
}

footer[role="contentinfo"] .footer-bottom-links a:hover {
  color: #fff;
}

.back-to-top {
  margin-bottom: 12px;
}

/* ================================================================
   TASK 21.3 FIX - LIVE UPDATE CONTRAST + FOOTER FINAL POLISH
   ================================================================ */
.live-update-bar {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7f5 100%);
  border-top: 1px solid rgba(17,17,17,0.07);
  border-bottom: 1px solid rgba(17,17,17,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
  color: #172018;
  overflow: hidden;
}

.live-update-inner {
  min-height: 40px;
  height: 40px;
  align-items: center;
}

.live-update-label {
  color: #0f7a35;
  background: rgba(34,197,94,0.11);
  border: 1px solid rgba(22,163,74,0.22);
  border-radius: 999px;
  padding: 4px 10px;
  line-height: 1;
}

.live-update-pulse {
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.12), 0 0 10px rgba(22,163,74,0.45);
}

.live-update-viewport {
  align-items: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.live-update-track,
.live-update-group,
.live-update-item {
  align-items: center;
}

.live-update-item {
  line-height: 1;
  border-left-color: rgba(17,24,39,0.13);
}

.live-update-dot {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 0 3px rgba(17,24,39,0.04);
}

.live-update-time {
  color: #647067;
  font-weight: 700;
  line-height: 1;
}

.live-update-text,
.live-update-text:visited,
.live-update-text:focus,
.live-update-text:focus-visible {
  color: #18251b;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: none;
}

.live-update-text:hover {
  color: #0f7a35;
}

footer[role="contentinfo"] {
  margin-top: 18px;
  background:
    radial-gradient(circle at 16% -20%, rgba(196,0,0,0.2), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(255,213,79,0.06), transparent 28%),
    linear-gradient(135deg, #181012 0%, #101114 48%, #08090b 100%);
}

footer[role="contentinfo"] .footer-inner {
  padding-top: 28px;
  padding-bottom: 20px;
  column-gap: 0;
}

footer[role="contentinfo"] .footer-logo {
  height: 66px;
  max-height: 68px;
  width: auto;
  object-fit: contain;
}

footer[role="contentinfo"] .footer-desc {
  margin-bottom: 12px;
}

footer[role="contentinfo"] .footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.09);
}

footer[role="contentinfo"] .footer-links-col h3 {
  margin-bottom: 10px;
}

footer[role="contentinfo"] .footer-link-list {
  gap: 4px;
}

footer[role="contentinfo"] .footer-bottom-inner {
  padding-top: 9px;
  padding-bottom: 9px;
}

/* ================================================================
   ARTICLE PAGE PRODUCTION POLISH — Task 22.5
   All rules scoped under .article-page to avoid global changes.
   ================================================================ */

/* ============ PHASE 1: HEADER POLISH ============ */
.article-header-meta {
  margin-bottom: 14px;
}

.article-page .tag {
  font-size: 0.78rem;
  padding: 3px 10px;
}

.article-page h1 {
  margin-top: 0;
  margin-bottom: 14px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: none;
}

.article-excerpt-full {
  margin-bottom: 16px;
}

.article-info {
  gap: 14px;
  padding: 12px 0;
}

.article-info-item {
  line-height: 1;
}

.article-info-item svg {
  flex-shrink: 0;
}

.breadcrumb ol {
  gap: 2px;
}

.breadcrumb a {
  white-space: nowrap;
}

/* ============ PHASE 2: FEATURED IMAGE POLISH ============ */
.article-hero-img {
  overflow: hidden;
  position: relative;
}

.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-hero-img-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  padding: 8px 12px 0;
  line-height: 1.5;
}

/* ============ PHASE 3: ARTICLE BODY TYPOGRAPHY ============ */
.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 2em 0 0.6em;
  line-height: 1.3;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 1.6em 0 0.5em;
  line-height: 1.35;
}

.article-body h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 1.4em 0 0.4em;
  line-height: 1.4;
}

.article-body p {
  margin-bottom: 1.3em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.3em;
  padding-left: 1.8em;
}

.article-body ul {
  list-style-type: disc;
}

.article-body ol {
  list-style-type: decimal;
}

.article-body li {
  margin-bottom: 0.4em;
  line-height: 1.75;
}

.article-body li:last-child {
  margin-bottom: 0;
}

.article-body ul ul,
.article-body ol ol,
.article-body ul ol,
.article-body ol ul {
  margin-bottom: 0.4em;
  margin-top: 0.4em;
}

.article-body blockquote {
  margin: 1.5em 0;
  padding: 14px 20px;
  border-left: 4px solid var(--primary);
  background: var(--bg-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.article-body a:hover {
  color: var(--primary-dark);
}

.article-body a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.article-body strong {
  font-weight: 700;
  color: var(--text-dark);
}

.article-body em {
  font-style: italic;
}

.article-body figure {
  margin: 1.5em 0;
}

.article-body figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

.article-body figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 8px 12px 0;
  line-height: 1.5;
  font-family: var(--font-body);
}

.article-body hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2em 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95rem;
}

.article-body table th,
.article-body table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.article-body table th {
  background: var(--bg-secondary);
  font-weight: 700;
  color: var(--text-dark);
}

.article-body pre {
  margin: 1.5em 0;
  padding: 16px 20px;
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: var(--radius);
  font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-body code {
  font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
  font-size: 0.88rem;
}

.article-body p code,
.article-body li code,
.article-body td code,
.article-body th code {
  background: var(--bg-secondary);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  word-break: break-word;
}

/* ============ PHASE 4: MEDIA SUPPORT ============ */
.article-body img {
  max-width: 100%;
  height: auto;
}

.article-body iframe {
  max-width: 100%;
  border: 0;
  border-radius: var(--radius);
}

.article-body iframe[src*="youtube"],
.article-body iframe[src*="youtu.be"] {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.article-body video {
  max-width: 100%;
  border-radius: var(--radius);
}

.article-body embed {
  max-width: 100%;
}

/* ============ PHASE 5: SOCIAL SHARE BAR POLISH ============ */
.social-share-bar {
  align-items: center;
  gap: 10px;
}

.share-label {
  white-space: nowrap;
  flex-shrink: 0;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all var(--transition);
}

.share-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.share-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.share-copy {
  width: auto;
  border-radius: 100px;
}

/* ============ PHASE 6: TAGS POLISH ============ */
.article-tags {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.article-tag-chip {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition);
}

.article-tag-chip:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ============ PHASE 7: PREV/NEXT NAV POLISH ============ */
.article-nav-card {
  transition: all var(--transition);
}

.article-nav-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.article-nav-title {
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============ PHASE 8: RELATED ARTICLES POLISH ============ */
.related-section .grid {
  gap: 20px;
}

.related-section .grid .card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.related-section .grid .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-section .grid .card-body h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============ PHASE 9: SIDEBAR BEHAVIOUR ============ */
.article-sidebar {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ============ PHASE 11: ACCESSIBILITY POLISH ============ */
.article-page a:focus-visible,
.article-page button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.article-page .back-link:focus-visible {
  outline-offset: 4px;
}

/* ============ PHASE 3 + 5 + 9 + 12: RESPONSIVE MOBILE ============ */
@media (max-width: 768px) {
  .article-page {
    overflow-x: clip;
    word-wrap: break-word;
    padding: var(--space-md);
    border-radius: var(--radius);
  }

  .article-page h1,
  .article-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
  }

  .article-page h1 {
    font-size: 1.4rem;
  }

  .article-body {
    font-size: 0.98rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: none;
  }

  .article-body p {
    overflow-wrap: break-word;
    word-wrap: break-word;
    margin-bottom: 1.1em;
  }

  .article-body h2 {
    font-size: 1.3rem;
    margin-top: 1.6em;
  }

  .article-body h3 {
    font-size: 1.15rem;
    margin-top: 1.3em;
  }

  .article-body h4 {
    font-size: 1.02rem;
    margin-top: 1.2em;
  }

  .article-body ul,
  .article-body ol {
    padding-left: 1.4em;
    overflow-wrap: break-word;
  }

  .article-body li {
    overflow-wrap: break-word;
  }

  .article-body blockquote {
    margin: 1.2em 0;
    padding: 12px 14px;
  }

  .article-body table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .article-body pre {
    margin: 1.2em 0;
    padding: 14px;
    font-size: 0.82rem;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .article-body code {
    word-break: break-all;
    white-space: pre-wrap;
  }

  .article-body img,
  .article-body figure img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .article-body figure {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .article-body iframe {
    max-width: 100%;
    width: 100%;
  }

  .article-body iframe[src*="youtube"],
  .article-body iframe[src*="youtu.be"] {
    aspect-ratio: 16 / 9;
  }

  .article-body video {
    max-width: 100%;
  }

  .article-hero-img {
    max-width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-height: 240px;
    border-radius: var(--radius);
  }

  .article-hero-img img {
    max-width: 100%;
    height: auto;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    overflow-x: clip;
  }

  .article-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .breadcrumb {
    overflow-wrap: break-word;
    word-wrap: break-word;
    padding: 0 var(--space-sm);
  }

  .article-info {
    gap: 10px;
    flex-wrap: wrap;
  }

  .article-info-item {
    font-size: 0.82rem;
    overflow-wrap: break-word;
  }

  .social-share-bar {
    gap: 8px;
    flex-wrap: wrap;
  }

  .share-label {
    font-size: 0.82rem;
    width: 100%;
  }

  .share-btn {
    width: 36px;
    height: 36px;
  }

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

  .article-tags {
    overflow-wrap: break-word;
  }

  .article-tag-chip {
    white-space: nowrap;
  }

  .article-nav {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .article-nav-next {
    text-align: left;
  }

  .article-nav-next .article-nav-direction {
    justify-content: flex-start;
  }

  .article-nav-card {
    padding: 14px;
    overflow: hidden;
  }

  .article-nav-title {
    font-size: 0.88rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .author-card {
    padding: 16px;
    gap: 14px;
    flex-wrap: wrap;
  }

  .author-card-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .author-card-name {
    font-size: 0.95rem;
  }

  .author-card-bio {
    font-size: 0.82rem;
  }

  .comments-heading {
    font-size: 1.1rem;
  }
}

@media (max-width: 575px) {
  .article-page {
    padding: var(--space-sm);
  }

  .article-page h1 {
    font-size: 1.25rem;
  }

  .article-body {
    font-size: 0.92rem;
  }

  .article-body h2 {
    font-size: 1.18rem;
  }

  .article-body h3 {
    font-size: 1.05rem;
  }

  .article-hero-img {
    max-height: 200px;
  }

  .author-card {
    padding: 14px;
    gap: 12px;
  }

  .share-btn {
    width: 34px;
    height: 34px;
  }

  .share-btn svg {
    width: 15px;
    height: 15px;
  }

  .breadcrumb li {
    font-size: 0.72rem;
  }
}


/* ============ TASK 28.6B RESPONSIVE BANNER STABILITY ============ */
.ad-slot {
  --banner-max-width: 728px;
  width: 100%;
  max-width: min(var(--banner-max-width), calc(100vw - (var(--container-padding, 16px) * 2)));
  margin: clamp(18px, 3vw, 32px) auto;
  padding: 0;
  line-height: 0;
  overflow: hidden;
}
.ad-slot.container {
  padding-left: 0;
  padding-right: 0;
}
.ad-slot a,
.ad-slot picture {
  display: block;
  width: 100%;
  line-height: 0;
}
.ad-slot-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-md, 8px);
}
.ad-slot-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 90px;
  line-height: 1.2;
  background: var(--bg-secondary, #F5F6F8);
  border-radius: var(--radius-md, 8px);
}
.ad-leaderboard { --banner-max-width: 728px; }
.ad-in-content { --banner-max-width: 970px; }
.ad-sidebar,
.sidebar-ad .ad-slot { --banner-max-width: 300px; }
.ad-footer { --banner-max-width: 970px; }
.ad-hero { --banner-max-width: 1200px; }
.sidebar-ad {
  padding: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.sidebar-ad .ad-slot-img,
.sidebar-ad .ad-slot-inner {
  max-height: none;
  min-height: 0;
}

/* Phoenix banner placement */
.sidebar-ad .ad-slot-img {
  aspect-ratio: 1154 / 1254;
  object-fit: contain;
  background: #fff;
}
.home-side-banner {
  margin: 14px auto;
  width: min(100%, 300px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.home-side-banner.ad-slot {
  margin: 0;
}
.trending-ad-card {
  padding: 10px;
  cursor: default;
  overflow: hidden;
}
.trending-ad-card:hover {
  transform: none;
  border-color: var(--border-light);
}
.trending-ad-card .ad-slot-img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 6px;
  background: #fff;
}
.trending-ad-card a {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}
.home-category-strip {
  margin: clamp(20px, 3vw, 34px) auto;
}
.home-category-strip-mid {
  margin-top: 0;
  margin-bottom: clamp(22px, 3vw, 36px);
}
.home-category-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.home-category-head h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}
.home-category-head span {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.home-category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.home-category-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--cat-color);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}
.home-category-card:hover {
  color: var(--cat-color);
  transform: translateY(-1px);
}
.home-category-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--cat-color) 12%, #fff);
  flex: 0 0 auto;
}
.home-category-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-news-grid-section {
  margin: 0 auto clamp(28px, 4vw, 44px);
}
.category-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.category-news-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--cat-color);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(15,23,42,0.07);
  overflow: hidden;
}
.category-news-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
}
.category-news-panel-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--cat-color) 13%, #fff);
  flex: 0 0 auto;
}
.category-news-panel-head h3 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
}
.category-news-panel-head a {
  color: var(--cat-color);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}
.category-news-panel-list {
  display: grid;
}
.category-news-mini {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}
.category-news-mini:last-child {
  border-bottom: 0;
}
.category-news-mini:hover {
  background: #fafafa;
}
.category-news-mini-img,
.category-news-mini-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #eef2f7;
}
.category-news-mini-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-news-mini-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-news-mini-body h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.category-news-mini-body span {
  color: var(--text-muted);
  font-size: 0.78rem;
}
.photo-gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.photo-gallery-card {
  position: relative;
  min-height: 190px;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(15,23,42,0.12);
}
.photo-gallery-large {
  grid-row: span 2;
  aspect-ratio: auto;
}
.photo-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}
.photo-gallery-card:hover img {
  transform: scale(1.04);
}
.photo-gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 42px 14px 14px;
  color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.86) 100%);
}
.photo-gallery-caption h3 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 1100px) {
  .home-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .category-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .photo-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .photo-gallery-large {
    grid-row: auto;
  }
}
@media (max-width: 700px) {
  .home-category-head {
    display: block;
  }
  .home-category-head span {
    display: block;
    margin-top: 4px;
  }
  .home-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-news-grid {
    grid-template-columns: 1fr;
  }
  .category-news-mini {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .photo-gallery-grid {
    grid-template-columns: 1fr;
  }
  .photo-gallery-card {
    min-height: 210px;
  }
}

main .admin-bar,
main .admin-form,
main .stats,
main table {
  background: #fff;
}
main .admin-bar {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
main .admin-form {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  margin: 18px 0;
  box-shadow: var(--shadow-sm);
}
main .admin-form input,
main .admin-form textarea,
main .admin-form select,
main .admin-login input {
  background: #fff;
  color: var(--text);
}
main table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
main th,
main td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}
.ad-footer .ad-slot-img,
.ad-leaderboard .ad-slot-img,
.ad-in-content .ad-slot-img {
  aspect-ratio: 1200 / 220;
  object-fit: contain;
  background: #fff;
}
.ad-footer {
  margin-top: clamp(18px, 3vw, 32px);
  margin-bottom: clamp(18px, 3vw, 32px);
}

/* Footer compact polish */
footer[role="contentinfo"] {
  background:
    radial-gradient(circle at 14% -30%, rgba(196,0,0,0.16), transparent 30%),
    linear-gradient(135deg, #160b0d 0%, #111214 46%, #07080a 100%);
}
footer[role="contentinfo"] .footer-inner {
  grid-template-columns: minmax(300px, 1.35fr) minmax(260px, 1fr) minmax(210px, 0.8fr);
  gap: 32px;
  padding-top: 28px;
  padding-bottom: 22px;
}
footer[role="contentinfo"] .footer-links-col {
  padding-right: 0;
}
footer[role="contentinfo"] .footer-links-col:nth-of-type(2) {
  display: none;
}
footer[role="contentinfo"] .footer-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}
footer[role="contentinfo"] .footer-link-list a {
  width: auto;
  padding: 0;
  font-size: 0.84rem;
  line-height: 1.25;
}
footer[role="contentinfo"] .footer-link-list a:hover {
  transform: none;
}
footer[role="contentinfo"] .footer-brand-col {
  padding-right: 0;
}
footer[role="contentinfo"] .footer-desc {
  max-width: 520px;
}
@media (max-width: 860px) {
  footer[role="contentinfo"] .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  footer[role="contentinfo"] .footer-link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Clean-route shell, touch navigation and flicker safeguards (clean13). */
html,
body,
#app,
main {
  background-color: #f7f8fa;
}

a,
button,
input,
select,
textarea,
[role="button"],
[role="article"] {
  -webkit-tap-highlight-color: transparent;
}

.nav-link,
.nav-dropdown-trigger,
.nav-dropdown-menu a,
.mobile-hamburger,
.brand-action-btn,
.btn,
.card,
.row,
.chip {
  transition-property: color, background-color, border-color, box-shadow, opacity, transform;
  transition-duration: 160ms;
  transition-timing-function: ease;
}

.primary-nav {
  overflow: visible;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-bottom: 2.5px solid transparent;
  border-radius: 0;
  background: transparent;
  color: rgba(255,255,255,0.76);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.nav-dropdown-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  margin: -4px 0 0 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease, margin 160ms ease;
}

.nav-dropdown.open .nav-dropdown-trigger::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger,
.nav-dropdown.open .nav-dropdown-trigger,
.nav-dropdown.active .nav-dropdown-trigger {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.nav-dropdown.active .nav-dropdown-trigger {
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.nav-dropdown-menu[hidden] {
  display: none !important;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: grid;
}

.nav-dropdown-menu a {
  min-height: 44px;
  box-sizing: border-box;
  cursor: pointer;
}

.initial-loading,
.category-loading,
.route-loading {
  min-height: clamp(280px, 42vh, 520px);
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 42px 20px;
  box-sizing: border-box;
  text-align: center;
  color: var(--muted);
  background: #f7f8fa;
}

.article-route-state > div {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.article-route-state strong {
  color: var(--text);
  font-size: 1.1rem;
}

@media (max-width: 1024px) {
  .nav-dropdown-trigger {
    min-height: 44px;
    min-width: 92px;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .nav-dropdown-menu {
    z-index: 2500;
    max-height: min(58vh, 420px);
    overflow-y: auto;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .loading-skeleton {
    width: min(88vw, 520px);
    height: 150px;
  }

  .category-loading,
  .route-loading {
    min-height: 330px;
    padding: 34px 14px;
  }

  .photo-gallery-card {
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Homepage live widgets and professional spacing (Home15) */
.live-widgets-section {
  margin-top: 42px;
  margin-bottom: 42px;
}
.live-widgets-heading {
  align-items: end;
}
.live-widgets-heading p {
  margin: 4px 0 0;
  color: var(--text-muted, #667085);
  font-size: .94rem;
  font-weight: 500;
}
.live-widget-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.live-widget-card {
  min-width: 0;
  min-height: 142px;
  padding: 18px;
  border: 1px solid #e5e9ef;
  border-top: 3px solid #c40000;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.live-widget-card.market-widget { border-top-color: #175cd3; }
.live-widget-card.crypto-widget { border-top-color: #7f56d9; }
.widget-label {
  color: #475467;
  font-size: .87rem;
  font-weight: 700;
}
.widget-value {
  color: #101828;
  font-family: "Baloo 2", "Noto Sans Devanagari", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.widget-detail {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: #667085;
  font-size: .78rem;
}
.widget-change {
  color: #475467;
  font-weight: 800;
}
.widget-change.up { color: #067647; }
.widget-change.down { color: #b42318; }
.news-widget-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.news-rank-widget {
  overflow: hidden;
  border: 1px solid #e5e9ef;
  border-radius: 14px;
  background: #fff;
}
.news-rank-widget h3 {
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid #eef1f5;
  color: #101828;
  font-size: 1.08rem;
}
.news-rank-widget ol {
  margin: 0;
  padding: 0 18px 4px 46px;
}
.news-rank-widget li {
  padding: 11px 0;
  border-bottom: 1px solid #f0f2f5;
  color: #c40000;
  font-weight: 800;
}
.news-rank-widget li:last-child { border-bottom: 0; }
.news-rank-widget a {
  display: grid;
  gap: 3px;
  color: #1d2939;
  font-weight: 650;
  line-height: 1.45;
  cursor: pointer;
}
.news-rank-widget small {
  color: #667085;
  font-size: .75rem;
  font-weight: 500;
}
.widgets-meta {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  padding-top: 12px;
  color: #667085;
  font-size: .76rem;
}
.widgets-stale { color: #b54708; font-weight: 700; }
.widget-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.widget-skeleton-card {
  min-height: 142px;
  padding: 18px;
  border: 1px solid #e9edf2;
  border-radius: 14px;
  background: #fff;
}
.widget-skeleton-card span,
.widget-skeleton-card strong,
.widget-skeleton-card small {
  display: block;
  height: 12px;
  margin-bottom: 22px;
  border-radius: 20px;
  background: linear-gradient(90deg, #eef1f4 25%, #f7f8fa 50%, #eef1f4 75%);
  background-size: 200% 100%;
  animation: widgetShimmer 1.25s linear infinite;
}
.widget-skeleton-card strong { width: 72%; height: 24px; }
.widget-skeleton-card small { width: 56%; margin-bottom: 0; }
@keyframes widgetShimmer { to { background-position: -200% 0; } }
.widgets-error {
  min-height: 150px;
  padding: 26px;
  border: 1px solid #fecdca;
  border-radius: 14px;
  background: #fff;
  display: flex;
  gap: 10px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.article-route-state > div {
  max-width: 620px;
  padding: 32px;
  border: 1px solid #e5e9ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .06);
  text-align: center;
}
.article-route-state strong { display: block; color: #101828; font-size: 1.25rem; }
.article-route-state p { color: #667085; }

/* Keep homepage rhythm and image ratios consistent without changing branding. */
.hero-premium,
.home-category-strip,
.top5-timeline-row,
.category-block,
.trending-section,
.editors-pick-section,
.video-section,
.category-news-grid-section,
.gallery-section,
.emagazine-widget,
.newsletter-section {
  scroll-margin-top: 150px;
}
.hero-main-img,
.hero-side-thumb,
.top5-img,
.cat-featured-img,
.cat-sec-img,
.editors-pick-img,
.category-news-mini-img {
  overflow: hidden;
}
.hero-main-img img,
.hero-side-thumb img,
.top5-img img,
.cat-featured-img img,
.cat-sec-img img,
.editors-pick-img img,
.category-news-mini-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  .widget-skeleton-card span,
  .widget-skeleton-card strong,
  .widget-skeleton-card small { animation: none; }
}
