/* ============================================================
   JANBOL NEWS — Complete Stylesheet
   Amar Ujala / Dainik Jagran inspired dense newspaper layout
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@300;400;500;600;700;800;900&family=Noto+Serif+Devanagari:wght@400;600;700&family=Playfair+Display:ital,wght@0,700;0,800;1,700&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   CSS VARIABLES — Design System
   ============================================================ */
:root {
  /* Brand Colors */
  --red-primary: #C41E3A;
  --red-dark: #9B1528;
  --red-light: #E8223F;
  --red-pale: #FFF0F2;

  /* Neutrals */
  --dark: #1a1a1a;
  --dark-mid: #2d2d2d;
  --gray-800: #3d3d3d;
  --gray-600: #5a5a5a;
  --gray-500: #767676;
  --gray-400: #9a9a9a;
  --gray-300: #c4c4c4;
  --gray-200: #e0e0e0;
  --gray-100: #f0f0f0;
  --accent-bg: #f5f5f5;
  --card-bg: #ffffff;

  /* Typography */
  --font-hindi: 'Noto Sans Devanagari', 'Noto Serif Devanagari', sans-serif;
  --font-hindi-serif: 'Noto Serif Devanagari', serif;
  --font-en: 'Source Serif 4', 'Playfair Display', Georgia, serif;
  --font-ui: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Layout */
  --container-max: 1320px;
  --sidebar-width: 300px;
  --ticker-height: 38px;
  --navbar-height: 56px;
  --topbar-height: 36px;
  --total-header-offset: calc(var(--ticker-height) + var(--navbar-height) + var(--topbar-height));

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.10);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-card: 0 1px 4px rgba(0,0,0,0.07);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-mid: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Border */
  --border: 1px solid var(--gray-200);
  --border-dark: 1px solid var(--gray-300);
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-ui);
  background: var(--accent-bg);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.lang-hi {
  font-family: var(--font-hindi);
}

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

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

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

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

/* ============================================================
   HINDI TEXT CLASS
   ============================================================ */
.hi-text,
[lang="hi"],
.hindi {
  font-family: var(--font-hindi) !important;
  font-feature-settings: normal;
}

.hi-serif {
  font-family: var(--font-hindi-serif) !important;
}

.en-serif {
  font-family: var(--font-en) !important;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
}

.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;
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.text-red { color: var(--red-primary); }
.text-gray { color: var(--gray-500); }
.text-small { font-size: 12px; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.truncate-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.truncate-4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mb-md { margin-bottom: var(--space-md); }
.hidden { display: none !important; }

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.breaking-ticker {
  background: var(--red-primary);
  height: var(--ticker-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(196, 30, 58, 0.4);
}

.ticker-label {
  background: var(--dark);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  gap: 6px;
  border-right: 2px solid rgba(255,255,255,0.2);
}

.ticker-label-hi {
  font-family: var(--font-hindi);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.ticker-label .dot {
  width: 7px;
  height: 7px;
  background: #ff4d6d;
  border-radius: 50%;
  animation: pulse-dot 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.ticker-scroll-wrap {
  overflow: hidden;
  flex: 1;
  height: 100%;
  position: relative;
}

.ticker-scroll-wrap::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 24px;
  background: linear-gradient(to right, var(--red-primary), transparent);
  z-index: 2;
  pointer-events: none;
}

.ticker-scroll-wrap::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to left, var(--red-primary), transparent);
  z-index: 2;
  pointer-events: none;
}

.ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
  will-change: transform;
}

.ticker-track:hover {
  animation-play-state: paused;
}

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

.ticker-item {
  color: #fff;
  font-family: var(--font-hindi);
  font-size: 14px;
  font-weight: 500;
  padding: 0 var(--space-md);
  cursor: pointer;
  transition: opacity var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ticker-item:hover { opacity: 0.85; }

.ticker-item::after {
  content: '◆';
  font-size: 8px;
  opacity: 0.5;
  margin-left: 8px;
}

.ticker-item:last-child::after { display: none; }

/* ============================================================
   TOP BAR (Date, Editions)
   ============================================================ */
.topbar {
  background: var(--dark);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--red-primary);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.topbar-date {
  color: var(--gray-300);
  font-size: 11px;
  font-family: var(--font-ui);
  letter-spacing: 0.03em;
}

.topbar-edition {
  display: flex;
  gap: 2px;
}

.topbar-edition a {
  color: var(--gray-400);
  font-size: 11px;
  font-family: var(--font-hindi);
  padding: 2px 8px;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.topbar-edition a:hover,
.topbar-edition a.active {
  color: #fff;
  background: var(--red-primary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.topbar-social {
  display: flex;
  gap: var(--space-sm);
}

.topbar-social a {
  color: var(--gray-400);
  font-size: 13px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

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

.epaper-link {
  color: var(--red-light) !important;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-ui);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  transition: opacity var(--transition-fast);
}

.epaper-link:hover { opacity: 0.8; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: var(--card-bg);
  border-bottom: 3px solid var(--red-primary);
  position: sticky;
  top: var(--ticker-height);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: var(--navbar-height);
  gap: var(--space-md);
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--red-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  font-family: var(--font-hindi);
  line-height: 1;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-en {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.logo-hi {
  font-family: var(--font-hindi);
  font-size: 13px;
  font-weight: 600;
  color: var(--red-primary);
}

/* Category Nav */
.navbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
}

.navbar-nav a {
  font-family: var(--font-hindi);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700, #444);
  padding: 0 12px;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--red-primary);
  border-bottom-color: var(--red-primary);
}

/* Navbar Right */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--accent-bg);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 16px;
  transition: all var(--transition-fast);
  color: var(--gray-500);
  cursor: pointer;
}

.lang-btn.active {
  background: var(--red-primary);
  color: #fff;
}

.lang-btn:hover:not(.active) {
  background: var(--gray-200);
  color: var(--dark);
}

.search-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: all var(--transition-fast);
  font-size: 17px;
}

.search-btn:hover {
  background: var(--accent-bg);
  color: var(--red-primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
  cursor: pointer;
}

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

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 998;
}

.mobile-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: var(--card-bg);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--transition-mid);
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}

.mobile-drawer.open {
  display: block;
}

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

.drawer-header {
  background: var(--dark);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-close {
  color: var(--gray-300);
  font-size: 22px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.drawer-close:hover { color: #fff; }

.drawer-nav {
  padding: var(--space-sm) 0;
}

.drawer-nav a {
  display: block;
  padding: 12px var(--space-md);
  font-family: var(--font-hindi);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 1px solid var(--gray-100);
  transition: all var(--transition-fast);
}

.drawer-nav a:hover {
  background: var(--red-pale);
  color: var(--red-primary);
  padding-left: 24px;
}

.drawer-lang {
  padding: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  border-top: 1px solid var(--gray-200);
}

/* Search Dropdown */
.search-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: var(--card-bg);
  border-top: 2px solid var(--red-primary);
  box-shadow: var(--shadow-lg);
  padding: var(--space-md);
  display: none;
  z-index: 100;
}

.search-dropdown.open { display: block; }

.search-input-wrap {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-input-wrap input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  background: var(--accent-bg);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-hindi);
  font-size: 16px;
  color: var(--dark);
  transition: border-color var(--transition-fast);
}

.search-input-wrap input:focus {
  border-color: var(--red-primary);
  background: var(--card-bg);
}

.search-submit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red-primary);
  font-size: 18px;
  cursor: pointer;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 8px;
}

.section-title {
  font-family: var(--font-hindi);
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

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

.section-title .en-sub {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
}

.section-more {
  font-family: var(--font-hindi);
  font-size: 13px;
  font-weight: 600;
  color: var(--red-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
  white-space: nowrap;
}

.section-more:hover { gap: 8px; }

/* ============================================================
   ARTICLE CARD COMPONENT
   ============================================================ */
.article-card {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-mid), transform var(--transition-mid);
  display: flex;
  flex-direction: column;
  position: relative;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.article-card-img {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.article-card:hover .article-card-img img {
  transform: scale(1.04);
}

.article-card-img .img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  color: var(--gray-400);
  font-size: 32px;
}

.card-category-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red-primary);
  color: #fff;
  font-family: var(--font-hindi);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.02em;
  z-index: 2;
}

.article-card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-card-headline {
  font-family: var(--font-hindi);
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.article-card:hover .article-card-headline {
  color: var(--red-primary);
}

.article-card-excerpt {
  font-family: var(--font-hindi);
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 11px;
  color: var(--gray-400);
  font-family: var(--font-ui);
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--gray-100);
}

.article-card-meta .meta-date,
.article-card-meta .meta-author {
  display: flex;
  align-items: center;
  gap: 3px;
}

.article-card-meta .meta-views {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Card Size Variants */
.card-sm .article-card-img { height: 160px; }
.card-md .article-card-img { height: 200px; }
.card-lg .article-card-img { height: 260px; }
.card-xl .article-card-img { height: 340px; }

.card-sm .article-card-headline { font-size: 14px; }
.card-md .article-card-headline { font-size: 15px; }
.card-lg .article-card-headline { font-size: 17px; }
.card-xl .article-card-headline { font-size: 20px; }

/* Horizontal card variant */
.article-card.card-horizontal {
  flex-direction: row;
}

.article-card.card-horizontal .article-card-img {
  width: 120px;
  flex-shrink: 0;
  height: auto;
  min-height: 90px;
}

.article-card.card-horizontal .article-card-body {
  padding: 10px 12px;
}

.article-card.card-horizontal .article-card-headline {
  font-size: 14px;
  -webkit-line-clamp: 3;
}

/* List item card */
.article-list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

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

.article-list-img {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gray-100);
}

.article-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-list-content { flex: 1; min-width: 0; }

.article-list-headline {
  font-family: var(--font-hindi);
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 4px;
  transition: color var(--transition-fast);
}

.article-list-item:hover .article-list-headline {
  color: var(--red-primary);
}

.article-list-meta {
  font-size: 11px;
  color: var(--gray-400);
  font-family: var(--font-ui);
}

/* Ranked list item */
.ranked-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}

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

.ranked-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-200);
  font-family: var(--font-en);
  line-height: 1;
  min-width: 28px;
  flex-shrink: 0;
  padding-top: 2px;
}

.ranked-item:first-child .ranked-num { color: var(--red-primary); }

/* ============================================================
   LOADING SKELETONS
   ============================================================ */
@keyframes shimmer {
  0% { background-position: -468px 0; }
  100% { background-position: 468px 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius-sm);
}

.skeleton-card {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.skeleton-img { height: 180px; }
.skeleton-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.skeleton-line { height: 12px; border-radius: 4px; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.h-tall { height: 16px; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background: var(--card-bg);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--gray-200);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--gray-200);
}

.hero-main {
  grid-column: 1 / 3;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.hero-main-img {
  height: 420px;
  overflow: hidden;
  position: relative;
  background: var(--gray-100);
}

.hero-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-main:hover .hero-main-img img { transform: scale(1.03); }

.hero-main-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.88) 100%);
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
}

.hero-main-category {
  background: var(--red-primary);
  color: #fff;
  font-family: var(--font-hindi);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 10px;
}

.hero-main-title {
  font-family: var(--font-hindi);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-main-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-ui);
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

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

.hero-side-item {
  flex: 1;
  background: var(--card-bg);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero-side-item + .hero-side-item {
  border-top: 1px solid var(--gray-200);
}

.hero-side-img {
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-100);
  position: relative;
}

.hero-side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-side-item:hover .hero-side-img img { transform: scale(1.04); }

.hero-side-body {
  padding: var(--space-md);
  flex: 1;
}

.hero-side-category {
  font-family: var(--font-hindi);
  font-size: 11px;
  font-weight: 700;
  color: var(--red-primary);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.hero-side-title {
  font-family: var(--font-hindi);
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.hero-side-item:hover .hero-side-title { color: var(--red-primary); }

.hero-side-meta {
  font-size: 11px;
  color: var(--gray-400);
  font-family: var(--font-ui);
  margin-top: 6px;
}

/* ============================================================
   PAGE LAYOUT — Main Content + Sidebar
   ============================================================ */
.page-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-lg);
  align-items: start;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
}

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

.sidebar { min-width: 0; }

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

.top-stories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

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

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

.category-featured-grid .card-lg:first-child {
  grid-row: 1 / 3;
}

/* Horizontal scroll on mobile */
.scroll-row {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}

.scroll-row::-webkit-scrollbar { display: none; }

.scroll-row .article-card {
  min-width: 220px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.sidebar-widget {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-card);
}

.widget-header {
  background: var(--dark);
  color: #fff;
  padding: 10px var(--space-md);
  font-family: var(--font-hindi);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-header .en {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--gray-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: auto;
}

.widget-body { padding: var(--space-sm) var(--space-md); }

.widget-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 0 var(--space-md);
}

/* ============================================================
   AD SLOTS
   ============================================================ */
.ad-slot {
  background: var(--accent-bg);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 11px;
  font-family: var(--font-ui);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  gap: 4px;
  overflow: hidden;
}

.ad-slot::before {
  content: 'AD';
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.ad-slot-banner { height: 90px; margin: var(--space-md) 0; }
.ad-slot-square { height: 250px; }
.ad-slot-leaderboard { height: 90px; width: 100%; }
.ad-slot-rect { height: 300px; }

/* ============================================================
   E-PAPER SECTION
   ============================================================ */
.epaper-teaser {
  background: var(--dark);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg);
  align-items: center;
  margin-bottom: var(--space-xl);
  overflow: hidden;
  position: relative;
}

.epaper-teaser::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: var(--red-primary);
  opacity: 0.08;
  border-radius: 50%;
}

.epaper-thumbnail-wrap {
  width: 100px;
  flex-shrink: 0;
  position: relative;
}

.epaper-thumbnail-wrap img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 4px 4px 16px rgba(0,0,0,0.4);
}

.epaper-thumb-placeholder {
  width: 100px;
  height: 140px;
  background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--gray-500);
  box-shadow: 4px 4px 16px rgba(0,0,0,0.4);
}

.epaper-info { color: #fff; }

.epaper-badge {
  background: var(--red-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 10px;
}

.epaper-title {
  font-family: var(--font-hindi);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.3;
}

.epaper-date {
  font-size: 12px;
  color: var(--gray-400);
  font-family: var(--font-ui);
  margin-bottom: var(--space-md);
}

.btn-epaper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-primary);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-hindi);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition-fast);
  cursor: pointer;
}

.btn-epaper:hover {
  background: var(--red-light);
  color: #fff;
}

/* ============================================================
   E-PAPER VIEWER PAGE
   ============================================================ */
.epaper-page {
  background: var(--accent-bg);
  min-height: 100vh;
}

.epaper-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.epaper-archive-item {
  cursor: pointer;
  text-align: center;
  transition: transform var(--transition-fast);
}

.epaper-archive-item:hover { transform: translateY(-3px); }

.epaper-archive-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  background: var(--gray-100);
}

.epaper-archive-thumb-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--gray-200), var(--gray-100));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--gray-400);
  box-shadow: var(--shadow-md);
}

.epaper-archive-item.active .epaper-archive-thumb,
.epaper-archive-item.active .epaper-archive-thumb-placeholder {
  outline: 3px solid var(--red-primary);
  outline-offset: 2px;
}

.epaper-archive-date {
  font-size: 12px;
  font-family: var(--font-ui);
  color: var(--gray-600);
  margin-top: 6px;
  font-weight: 500;
}

.epaper-archive-edition {
  font-size: 11px;
  color: var(--gray-400);
  font-family: var(--font-hindi);
}

/* Edition Filter */
.edition-filters {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.edition-btn {
  padding: 6px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  font-family: var(--font-hindi);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--card-bg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.edition-btn.active {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: #fff;
}

.edition-btn:hover:not(.active) {
  border-color: var(--red-primary);
  color: var(--red-primary);
}

/* PDF Viewer */
.pdf-viewer-wrap {
  background: var(--dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.pdf-viewer-toolbar {
  background: var(--dark-mid);
  padding: 10px var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.pdf-toolbar-btn {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
}

.pdf-toolbar-btn:hover { background: rgba(255,255,255,0.2); }
.pdf-toolbar-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.pdf-page-info {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-family: var(--font-ui);
  margin: 0 var(--space-sm);
}

.pdf-zoom-btns {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.pdf-download-btn {
  margin-left: var(--space-sm);
  background: var(--red-primary) !important;
}

.pdf-canvas-area {
  background: #555;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 500px;
  padding: var(--space-md);
  gap: var(--space-md);
  overflow: auto;
}

.pdf-canvas-wrap {
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.pdf-canvas-wrap canvas {
  display: block;
  max-width: 100%;
}

.pdf-loading {
  color: #fff;
  font-family: var(--font-hindi);
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-2xl);
}

.pdf-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--red-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.category-page-header {
  background: var(--dark);
  padding: var(--space-lg) 0;
  margin-bottom: var(--space-lg);
}

.category-page-title {
  font-family: var(--font-hindi);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-page-title::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 32px;
  background: var(--red-primary);
  border-radius: 2px;
}

.category-count {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--gray-400);
  font-weight: 400;
}

/* Sub-category tabs */
.subcategory-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: var(--space-lg);
  overflow-x: auto;
  scrollbar-width: none;
}

.subcategory-tabs::-webkit-scrollbar { display: none; }

.subcategory-tab {
  padding: 8px 18px;
  font-family: var(--font-hindi);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.subcategory-tab.active {
  color: var(--red-primary);
  border-bottom-color: var(--red-primary);
}

.subcategory-tab:hover:not(.active) {
  color: var(--dark);
  background: var(--accent-bg);
}

/* Category Article Grid */
.cat-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-xl) 0;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-ui);
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--card-bg);
  padding: 0 8px;
}

.page-btn.active {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: #fff;
}

.page-btn:hover:not(.active):not(:disabled) {
  border-color: var(--red-primary);
  color: var(--red-primary);
}

.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================================
   ARTICLE DETAIL PAGE
   ============================================================ */
.article-detail-wrap {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-lg);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: var(--font-hindi);
  color: var(--gray-500);
  padding: 12px var(--space-lg);
  border-bottom: 1px solid var(--gray-100);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--gray-500);
  transition: color var(--transition-fast);
}

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

.breadcrumb .sep {
  color: var(--gray-300);
  font-size: 10px;
}

.breadcrumb .current {
  color: var(--dark);
  font-weight: 600;
}

/* Article Header */
.article-header {
  padding: var(--space-lg) var(--space-xl);
}

.article-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red-pale);
  color: var(--red-primary);
  font-family: var(--font-hindi);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 14px;
  border-left: 3px solid var(--red-primary);
}

.article-title {
  font-family: var(--font-hindi);
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: var(--space-md);
}

.article-subtitle {
  font-family: var(--font-hindi);
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  font-weight: 400;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

.article-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-200);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--gray-500);
}

.author-name {
  font-family: var(--font-hindi);
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.article-meta-date,
.article-meta-views {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--gray-400);
  font-family: var(--font-ui);
}

/* Share Row */
.article-share-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 0;
  margin-left: auto;
}

.share-label {
  font-size: 12px;
  color: var(--gray-400);
  font-family: var(--font-ui);
}

.share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
}

.share-btn:hover { transform: scale(1.1); }
.share-btn.whatsapp:hover { background: #25D366; border-color: #25D366; color: #fff; }
.share-btn.facebook:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.share-btn.twitter:hover { background: #000; border-color: #000; color: #fff; }
.share-btn.copy:hover { background: var(--red-primary); border-color: var(--red-primary); color: #fff; }

/* Article Image */
.article-featured-img {
  position: relative;
  background: var(--gray-100);
  overflow: hidden;
  max-height: 460px;
}

.article-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 460px;
}

.article-img-caption {
  background: var(--dark);
  color: var(--gray-300);
  font-size: 12px;
  padding: 8px var(--space-lg);
  font-family: var(--font-hindi);
}

/* Article Body */
.article-body {
  padding: var(--space-xl);
}

.article-content {
  font-family: var(--font-hindi);
  font-size: 17px;
  line-height: 1.85;
  color: var(--dark);
  max-width: 720px;
}

.article-content p {
  margin-bottom: var(--space-md);
}

.article-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin: var(--space-xl) 0 var(--space-md);
  line-height: 1.3;
  border-left: 4px solid var(--red-primary);
  padding-left: 12px;
}

.article-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--dark);
  margin: var(--space-lg) 0 var(--space-sm);
}

.article-content blockquote {
  border-left: 4px solid var(--red-primary);
  background: var(--red-pale);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 18px;
  font-style: italic;
  color: var(--dark);
}

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

.article-content a {
  color: var(--red-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 var(--space-xl) var(--space-xl);
  align-items: center;
}

.tag-label {
  font-family: var(--font-hindi);
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-600);
  margin-right: 4px;
}

.tag-chip {
  background: var(--accent-bg);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-family: var(--font-hindi);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tag-chip:hover {
  background: var(--red-pale);
  border-color: var(--red-primary);
  color: var(--red-primary);
}

/* Related Articles */
.related-articles {
  background: var(--accent-bg);
  padding: var(--space-lg) var(--space-xl);
  border-top: 2px solid var(--gray-200);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-hero {
  background: var(--dark);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.search-hero-title {
  font-family: var(--font-hindi);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-md);
}

.search-hero-sub {
  font-family: var(--font-hindi);
  font-size: 15px;
  color: var(--gray-400);
  margin-bottom: var(--space-lg);
}

.search-big-input {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.search-big-input input {
  width: 100%;
  padding: 16px 56px 16px 20px;
  font-family: var(--font-hindi);
  font-size: 18px;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  color: var(--dark);
  box-shadow: var(--shadow-lg);
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
}

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

.search-big-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--red-primary);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  border: none;
  transition: background var(--transition-fast);
}

.search-big-btn:hover { background: var(--red-light); }

/* Filter Chips */
.filter-chips {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.filter-chip {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-family: var(--font-hindi);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--gray-200);
  background: var(--card-bg);
  color: var(--gray-600);
  transition: all var(--transition-fast);
}

.filter-chip.active {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: #fff;
}

.filter-chip:hover:not(.active) {
  border-color: var(--red-primary);
  color: var(--red-primary);
}

.filter-sep {
  width: 1px;
  height: 20px;
  background: var(--gray-200);
}

/* Search Results */
.search-results-header {
  padding: var(--space-md) 0;
  font-family: var(--font-hindi);
  font-size: 16px;
  color: var(--gray-600);
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: var(--space-lg);
}

.search-results-header strong {
  color: var(--dark);
  font-weight: 700;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

/* No Results */
.no-results {
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
}

.no-results-icon {
  font-size: 56px;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.no-results-title {
  font-family: var(--font-hindi);
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.no-results-sub {
  font-family: var(--font-hindi);
  font-size: 15px;
  color: var(--gray-500);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: var(--gray-300);
  margin-top: var(--space-2xl);
}

.footer-top {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-2xl) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-xl);
}

.footer-brand .logo-en { color: #fff; font-size: 18px; }
.footer-brand .logo-hi { font-size: 14px; }

.footer-tagline {
  font-family: var(--font-hindi);
  font-size: 14px;
  color: var(--gray-400);
  margin: 12px 0 var(--space-md);
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.footer-social a {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--gray-300);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--red-primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-hindi);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-md);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red-primary);
  display: inline-block;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-family: var(--font-hindi);
  font-size: 13px;
  color: var(--gray-400);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '›';
  color: var(--red-primary);
  font-size: 16px;
  line-height: 1;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  padding: var(--space-md) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-copyright {
  font-size: 12px;
  color: var(--gray-500);
  font-family: var(--font-ui);
}

.footer-copyright .hi-text {
  font-size: 13px;
}

.footer-legal {
  display: flex;
  gap: var(--space-md);
}

.footer-legal a {
  font-size: 12px;
  color: var(--gray-500);
  font-family: var(--font-ui);
  transition: color var(--transition-fast);
}

.footer-legal a:hover { color: var(--gray-300); }

/* ============================================================
   404 PAGE
   ============================================================ */
.notfound-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
}

.notfound-404 {
  font-family: var(--font-en);
  font-size: 120px;
  font-weight: 800;
  color: var(--gray-200);
  line-height: 1;
  position: relative;
}

.notfound-404::after {
  content: '404';
  position: absolute;
  inset: 0;
  color: var(--red-primary);
  opacity: 0.12;
  font-size: 180px;
  left: -20px;
  top: -20px;
  z-index: -1;
}

.notfound-title {
  font-family: var(--font-hindi);
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  margin: var(--space-md) 0 var(--space-sm);
}

.notfound-sub {
  font-family: var(--font-hindi);
  font-size: 16px;
  color: var(--gray-500);
  margin-bottom: var(--space-xl);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-hindi);
  font-size: 15px;
  font-weight: 700;
  transition: background var(--transition-fast);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--red-light);
  color: #fff;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  background: var(--dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-hindi);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--red-primary);
  opacity: 0;
  transform: translateX(20px);
  transition: all var(--transition-mid);
  pointer-events: auto;
  max-width: 320px;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast.success { border-left-color: #22c55e; }
.toast.error { border-left-color: var(--red-primary); }

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 260px;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-main {
    grid-column: 1 / 2;
    grid-row: 1;
  }

  .hero-side {
    grid-column: 2;
    grid-row: 1;
  }

  .top-stories-grid,
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .cat-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .navbar-nav a {
    padding: 0 9px;
    font-size: 13px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --ticker-height: 36px;
    --navbar-height: 52px;
  }

  .topbar { display: none; }

  .navbar-inner {
    grid-template-columns: auto 1fr auto auto;
  }

  .navbar-nav { display: none; }
  .hamburger { display: flex; }

  .hero-grid {
    grid-template-columns: 1fr;
    background: var(--gray-100);
  }

  .hero-main { grid-column: 1; }

  .hero-main-img { height: 240px; }

  .hero-main-title { font-size: 18px; }

  .hero-side {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .hero-side-item { min-width: 240px; }

  .hero-side-img { height: 140px; }

  .page-layout {
    grid-template-columns: 1fr;
    padding: var(--space-md);
  }

  .sidebar { order: 2; }

  .top-stories-grid,
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cat-articles-grid {
    grid-template-columns: 1fr 1fr;
  }

  .search-results-grid {
    grid-template-columns: 1fr 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-title { font-size: 20px; }
  .article-body { padding: var(--space-md); }
  .article-header { padding: var(--space-md); }
  .article-content { font-size: 15px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .epaper-teaser {
    grid-template-columns: 1fr;
  }

  .epaper-thumbnail-wrap { display: none; }

  .article-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .article-share-row {
    margin-left: 0;
  }

  .notfound-404 { font-size: 80px; }
  .notfound-title { font-size: 22px; }

  .pdf-viewer-toolbar { justify-content: center; }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .epaper-archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  .top-stories-grid,
  .category-grid,
  .cat-articles-grid,
  .search-results-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid { grid-template-columns: 1fr; }

  .category-featured-grid {
    grid-template-columns: 1fr;
  }

  .ticker-label { padding: 0 10px; font-size: 10px; }

  .logo-text { display: none; }

  .search-results-grid { grid-template-columns: 1fr; }

  .scroll-row .article-card { min-width: 180px; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .breaking-ticker,
  .navbar,
  .topbar,
  .sidebar,
  .footer,
  .ad-slot,
  .article-share-row,
  .related-articles { display: none !important; }

  body { font-size: 12pt; }
  .article-title { font-size: 20pt; }
  .article-content { font-size: 11pt; line-height: 1.6; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.4s ease both;
}

.fade-in-up-delay-1 { animation-delay: 0.05s; }
.fade-in-up-delay-2 { animation-delay: 0.1s; }
.fade-in-up-delay-3 { animation-delay: 0.15s; }
.fade-in-up-delay-4 { animation-delay: 0.2s; }

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

.fade-in { animation: fadeIn 0.3s ease both; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ticker-track { animation: none; }
}
