/* Agenda Bharat - Premium News Portal Styling */
@import url('https://fonts.googleapis.com/css2?family=Hind:wght@400;500;700&family=Noto+Sans+Devanagari:wght@400;500;700;900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Colors */
  --primary: #D32F2F;        /* News Red */
  --primary-hover: #B71C1C;
  --secondary: #1565C0;      /* Professional Blue */
  --secondary-hover: #0D47A1;
  --success: #10B981;
  
  /* Neutral Palette - Light Mode */
  --bg-main: #FFFFFF;
  --bg-sec: #F8FAFC;
  --text-main: #111827;
  --text-muted: #4B5563;
  --border-color: #E5E7EB;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --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);
  
  /* Fonts */
  --font-hindi: 'Noto Sans Devanagari', 'Hind', sans-serif;
  --font-sans: 'Poppins', sans-serif;
  
  /* Layout constraints */
  --max-width: 1280px;
  --header-height: 70px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 8px;
  --radius-lg: 12px;
}

/* Dark Mode Variables */
body.dark-mode {
  --bg-main: #0F172A;
  --bg-sec: #1E293B;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border-color: #334155;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

/* CSS Reset & Core Defaults */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

.hindi-text {
  font-family: var(--font-hindi);
}

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

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

/* Utility Classes */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.text-center { text-align: center; }
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
}
.badge-red { background-color: var(--primary); color: white; }
.badge-blue { background-color: var(--secondary); color: white; }

/* Scroll Progress Bar */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background-color: var(--primary);
  width: 0%;
  z-index: 1001;
  transition: width 0.1s ease-out;
}

/* Live Blink Dot */
.live-dot {
  width: 10px;
  height: 10px;
  background-color: var(--primary);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.5s infinite;
  margin-right: 6px;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7); }
  70% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 0 8px rgba(211, 47, 47, 0); }
  100% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); }
}

/* Top Header Bar */
.top-header {
  background-color: var(--bg-sec);
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.top-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.top-header-left, .top-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.social-icons a {
  margin-left: 0.5rem;
  font-size: 1rem;
}
.social-icons a:hover {
  color: var(--primary);
}
.live-btn {
  background-color: var(--primary);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}

/* Breaking News Ticker */
.ticker-wrap {
  background-color: #111827;
  color: #FFFFFF;
  padding: 0.6rem 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 40px;
}
.ticker-title {
  background-color: var(--primary);
  padding: 0 1rem;
  font-weight: bold;
  font-size: 0.9rem;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 5px 0 10px rgba(0,0,0,0.3);
}
.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: ticker 25s linear infinite;
}
.ticker-item {
  padding: 0 2rem;
  font-size: 0.9rem;
  border-right: 1px solid rgba(255,255,255,0.2);
}
@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
.ticker-wrap:hover .ticker-content {
  animation-play-state: paused;
}

/* Main Brand Header */
.brand-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}
.brand-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.logo-container {
  display: flex;
  flex-direction: column;
}
.logo-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
  transition: var(--transition);
}

.logo-main img,
.logo-main svg {
  height: 90px;
  width: auto;
  max-width: 320px;
  image-rendering: optimizeQuality;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
  transition: var(--transition);
}

.logo-main:hover img,
.logo-main:hover svg {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
  transform: scale(1.02);
}

.logo-image {
  height: 90px;
  width: auto;
  max-width: 320px;
  image-rendering: optimizeQuality;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
  transition: var(--transition);
}

.logo-image:hover {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
  transform: scale(1.05);
}
.tagline {
  font-family: var(--font-hindi);
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
}
.ad-header-banner {
  flex-grow: 1;
  max-width: 728px;
  height: 90px;
  background-color: var(--bg-sec);
  border: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ad-label {
  position: absolute;
  top: 2px;
  right: 5px;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Sticky Navigation & Mega Menu */
.navbar {
  position: sticky;
  top: 0;
  background-color: var(--bg-main);
  border-bottom: 2px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: top 0.3s ease;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  height: 55px;
}
.nav-menu {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  height: 100%;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.4rem;
}
.nav-item {
  position: relative;
  height: 100%;
  flex: 0 1 auto;
  min-width: 0;
}
.nav-link {
  display: flex;
  align-items: center;
  padding: 0 0.4rem;
  font-family: var(--font-hindi);
  font-weight: 700;
  font-size: 0.9rem;
  height: 100%;
  color: var(--text-main);
  min-width: 0;
}
.nav-link:hover, .nav-item.active .nav-link {
  color: var(--primary);
  background-color: var(--bg-sec);
}

/* Mega Menu Dropdown */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 600px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius) var(--radius);
  display: none;
  grid-template-columns: repeat(2, 1fr);
  padding: 1.5rem;
  gap: 1rem;
  z-index: 99;
}
.nav-item:hover .mega-menu {
  display: grid;
}
.mega-menu-col h4 {
  font-family: var(--font-hindi);
  color: var(--secondary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.3rem;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}
.mega-menu-item {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.mega-menu-item img {
  width: 70px;
  height: 50px;
  border-radius: 4px;
}
.mega-menu-item h5 {
  font-family: var(--font-hindi);
  font-size: 0.85rem;
  line-height: 1.3;
}
.mega-menu-item h5:hover {
  color: var(--primary);
}

/* Search Box & Controls in Navbar */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.search-btn, .dark-toggle, .font-control {
  font-size: 1.2rem;
  color: var(--text-main);
  padding: 0.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-btn:hover, .dark-toggle:hover, .font-control:hover {
  background-color: var(--bg-sec);
  color: var(--primary);
}

/* Mobile Navigation */
.hamburger {
  display: none;
  font-size: 1.5rem;
}
.mobile-nav-panel {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background-color: var(--bg-main);
  box-shadow: var(--shadow-lg);
  z-index: 1002;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding: 2rem 1.5rem;
}
.mobile-nav-panel.open {
  left: 0;
}
.mobile-menu-links {
  list-style: none;
  margin-top: 2rem;
}
.mobile-menu-links li {
  margin-bottom: 1rem;
}
.mobile-menu-links a {
  font-family: var(--font-hindi);
  font-size: 1.2rem;
  font-weight: bold;
}
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1001;
  display: none;
}
.mobile-overlay.active {
  display: block;
}

/* Hero Section (Featured Slider) */
.hero-section {
  padding: 2rem 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}
.slider-container {
  position: relative;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: flex-end;
}
.slide.active {
  opacity: 1;
  z-index: 2;
}
.slide-img-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.slide-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}
.slide-content {
  position: relative;
  z-index: 3;
  padding: 2.5rem;
  color: #FFFFFF;
  width: 100%;
}
.slide-content .badge {
  margin-bottom: 0.8rem;
}
.slide-content h2 {
  font-family: var(--font-hindi);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.8rem;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}
.slide-content h2:hover {
  text-decoration: underline;
}
.slide-content p {
  font-family: var(--font-hindi);
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-more-btn {
  background-color: var(--primary);
  color: #FFFFFF;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
}
.read-more-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}
.slider-nav {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}
.slider-nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  cursor: pointer;
}
.slider-nav-dot.active {
  background-color: var(--primary);
  transform: scale(1.2);
}

/* Sidebar Mocks & Widgets */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.widget {
  background-color: var(--bg-sec);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.widget:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
.widget-title {
  font-family: var(--font-hindi);
  font-size: 1.2rem;
  font-weight: 900;
  border-left: 4px solid var(--primary);
  padding-left: 0.8rem;
  margin-bottom: 1.2rem;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.widget-list {
  list-style: none;
}
.widget-list li {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
}
.widget-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.widget-item-title {
  font-family: var(--font-hindi);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}
.widget-item-title:hover {
  color: var(--primary);
}
.widget-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Poll Widget */
.poll-question {
  font-family: var(--font-hindi);
  font-weight: bold;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.poll-option {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  margin-bottom: 0.6rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.poll-option:hover {
  border-color: var(--primary);
}
.poll-option-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: rgba(211, 47, 47, 0.1);
  width: 0%;
  transition: width 1s ease-out;
  z-index: 1;
}
.poll-option-text {
  position: relative;
  z-index: 2;
  font-family: var(--font-hindi);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
}

/* Newsletter Widget */
.newsletter-form input {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background-color: var(--bg-main);
  color: var(--text-main);
  margin-bottom: 0.8rem;
}
.newsletter-form button {
  width: 100%;
  background-color: var(--secondary);
  color: white;
  padding: 0.6rem;
  border-radius: var(--radius);
  font-weight: bold;
}
.newsletter-form button:hover {
  background-color: var(--secondary-hover);
}

/* Advertisement Widgets */
.ad-sidebar-top, .ad-sidebar-middle {
  background-color: var(--bg-sec);
  border: 1px dashed var(--border-color);
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Main Grid Layout for Content Pages */
.main-content-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2rem;
  padding: 1rem 0 3rem;
}

/* Home Section Layouts */
.section-headline {
  font-family: var(--font-hindi);
  font-size: 1.8rem;
  font-weight: 900;
  border-bottom: 3px solid var(--primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}
.section-headline a {
  font-size: 0.9rem;
  color: var(--secondary);
}

/* Card Designs */
.card-main {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card-main:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}
.card-img-wrap {
  height: 180px;
  overflow: hidden;
  position: relative;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}
.card-main:hover .card-img-wrap img {
  transform: scale(1.08);
}
.card-category-tag {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 5;
}
.card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-title {
  font-family: var(--font-hindi);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  color: var(--text-main);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.card-title a:hover {
  color: var(--primary);
}
.card-excerpt {
  font-family: var(--font-hindi);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* Category news grids */
.category-block {
  margin-bottom: 3rem;
}
.news-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Horizontal Mid-Ad banner */
.ad-mid-banner {
  background-color: var(--bg-sec);
  border: 1px dashed var(--border-color);
  height: 100px;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Live TV and Live Blog Section styles */
.live-stream-panel {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  background-color: #111827;
  color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.stream-info h3 {
  font-family: var(--font-hindi);
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}
.schedule-widget {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 1rem;
}
.schedule-widget h4 {
  font-family: var(--font-hindi);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.4rem;
  color: var(--primary);
}
.schedule-list {
  list-style: none;
  font-size: 0.85rem;
  max-height: 250px;
  overflow-y: auto;
}
.schedule-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.schedule-item span {
  font-family: var(--font-hindi);
}

/* Video Playlist Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 3rem;
}
.video-card {
  cursor: pointer;
}
.video-thumbnail-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.video-duration {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background-color: rgba(0,0,0,0.8);
  color: white;
  font-size: 0.7rem;
  padding: 0.1rem 0.3rem;
  border-radius: 2px;
}
.play-overlay-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2.2rem;
  opacity: 0.85;
  transition: var(--transition);
}
.video-card:hover .play-overlay-icon {
  transform: translate(-50%, -50%) scale(1.2);
  opacity: 1;
}

/* Live Blog Updates Layout */
.live-updates-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.live-update-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background-color: var(--bg-main);
  padding: 1.2rem;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.live-update-card.important-update {
  border-left: 5px solid var(--primary);
}
.live-update-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.live-update-time {
  background-color: var(--primary);
  color: white;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-weight: bold;
}
.live-update-title {
  font-family: var(--font-hindi);
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.live-update-body {
  font-family: var(--font-hindi);
  font-size: 0.95rem;
  color: var(--text-main);
}

/* Article Page Layout */
.article-container {
  max-width: 800px;
  margin: 0 auto;
}
.article-header {
  margin-bottom: 1.5rem;
}
.article-category {
  font-family: var(--font-hindi);
  color: var(--primary);
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
}
.article-headline {
  font-family: var(--font-hindi);
  font-size: 2.2rem;
  line-height: 1.3;
  margin: 0.5rem 0 1rem;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}
.article-meta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 0.8rem 0;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.article-author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.article-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}
.article-hero-image img {
  width: 100%;
  max-height: 480px;
}
.article-controls {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  background-color: var(--bg-sec);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  align-items: center;
}
.audio-reader-btn {
  background-color: var(--secondary);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.audio-reader-btn:hover {
  background-color: var(--secondary-hover);
}
.font-resize-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.font-resize-btn {
  border: 1px solid var(--border-color);
  background-color: var(--bg-main);
  color: var(--text-main);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.font-resize-btn:hover {
  background-color: var(--primary);
  color: white;
}

/* Article Body Content */
.article-body {
  font-family: var(--font-hindi);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 2rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}
.article-body p {
  margin-bottom: 1.2rem;
  max-width: 100%;
}
.pull-quote {
  font-family: var(--font-hindi);
  font-size: 1.3rem;
  font-style: italic;
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--secondary);
  font-weight: 500;
}

/* Share Buttons */
.share-section {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.share-btn {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  color: white;
  font-size: 0.85rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.share-wa { background-color: #25D366; }
.share-fb { background-color: #1877F2; }
.share-x { background-color: #000000; }
.share-tg { background-color: #0088cc; }

/* Floating share button widget */
.floating-share {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 99;
}
.floating-share-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
}

/* Comment System Layout */
.comment-section {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  margin-top: 2rem;
}
.comment-box {
  margin-bottom: 1.5rem;
}
.comment-box textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100px;
  resize: vertical;
  margin-bottom: 0.8rem;
}
.comment-login-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.login-btn-row {
  display: flex;
  gap: 0.5rem;
}
.google-login-btn {
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-main);
}
.submit-comment-btn {
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-weight: bold;
}
.comment-list {
  list-style: none;
  margin-top: 1.5rem;
}
.comment-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}
.comment-author-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.comment-author {
  font-weight: bold;
}
.comment-date {
  color: var(--text-muted);
}
.comment-text {
  font-family: var(--font-hindi);
  font-size: 0.95rem;
}
.comment-reply-btn {
  font-size: 0.75rem;
  color: var(--secondary);
  margin-top: 0.4rem;
}

/* Author Profile widget */
.author-profile {
  display: flex;
  gap: 1.2rem;
  background-color: var(--bg-sec);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  align-items: center;
}
.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--border-color);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.author-info-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.author-info-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Advanced Search Page */
.search-form-panel {
  background-color: var(--bg-sec);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.search-input-group {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 1rem;
}
.search-input-group input, .search-input-group select {
  padding: 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background-color: var(--bg-main);
  color: var(--text-main);
}
.search-input-group button {
  background-color: var(--primary);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  font-weight: bold;
}
.trending-searches-row {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.trending-searches-row span {
  display: inline-block;
  background-color: var(--bg-main);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  cursor: pointer;
}

/* Footer Section */
footer {
  background-color: #111827;
  color: #94A3B8;
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
  border-top: 4px solid var(--primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-logo {
  font-family: var(--font-hindi);
  color: white;
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
}
.footer-tagline {
  font-family: var(--font-hindi);
  margin-bottom: 1rem;
}
.footer-col h4 {
  color: white;
  margin-bottom: 1.2rem;
  font-size: 1rem;
  border-left: 3px solid var(--primary);
  padding-left: 0.6rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 0.8rem;
}
.footer-col ul a:hover {
  color: white;
}
.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Mobile Sticky Footer Ad */
.ad-mobile-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: #000000;
  color: #FFFFFF;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.ad-mobile-sticky-close {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: #333333;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CMS / Admin Dashboard Styles */
.cms-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.cms-sidebar {
  background-color: #0F172A;
  color: #94A3B8;
  padding: 1.5rem;
  border-right: 1px solid #1E293B;
  display: flex;
  flex-direction: column;
}
.cms-logo {
  font-family: var(--font-hindi);
  color: white;
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 2rem;
  border-bottom: 1px solid #1E293B;
  padding-bottom: 1rem;
}
.cms-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cms-menu-item a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  color: #94A3B8;
  font-weight: 500;
}
.cms-menu-item.active a, .cms-menu-item a:hover {
  background-color: var(--primary);
  color: white;
}
.cms-main {
  background-color: var(--bg-sec);
  padding: 2rem;
  overflow-y: auto;
}
.cms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}
.cms-title {
  font-size: 1.6rem;
  font-weight: 700;
}
.cms-user-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

/* Dashboard Analytics Grid */
.cms-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.stat-card {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.stat-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-top: 0.5rem;
}

/* Dashboard Tables */
.cms-table-wrapper {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}
.cms-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.cms-table th, .cms-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.cms-table th {
  background-color: var(--bg-sec);
  font-weight: bold;
}
.cms-table tr:last-child td {
  border-bottom: none;
}
.btn-action {
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
}
.btn-edit { background-color: var(--secondary); color: white; }
.btn-delete { background-color: var(--primary); color: white; }
.btn-edit:hover { background-color: var(--secondary-hover); }
.btn-delete:hover { background-color: var(--primary-hover); }

/* Simple SVG Mock Chart styling */
.chart-container {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}
.chart-bar-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
}
.chart-bar-label {
  width: 120px;
  font-family: var(--font-hindi);
}
.chart-bar-outer {
  flex-grow: 1;
  background-color: var(--bg-sec);
  height: 16px;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 1rem;
}
.chart-bar-inner {
  height: 100%;
  background-color: var(--secondary);
  border-radius: 8px;
  transition: width 1s ease;
}

/* Article Editor Form */
.cms-form-group {
  margin-bottom: 1.2rem;
}
.cms-form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}
.cms-form-group input, .cms-form-group select, .cms-form-group textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background-color: var(--bg-main);
  color: var(--text-main);
}
.cms-form-group textarea {
  min-height: 350px;
  resize: vertical;
}
.btn-cms-save {
  background-color: var(--success);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: bold;
}
.btn-cms-save:hover {
  background-color: #059669;
}

/* Responsive Breakpoints */

/* === TABLET & SMALL DESKTOP (max-width: 1024px) === */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .slider-container {
    height: 400px;
  }
  .main-content-layout {
    grid-template-columns: 1fr;
  }
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .live-stream-panel {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .search-input-group {
    grid-template-columns: 1fr 1fr;
  }
  .nav-link {
    font-size: 0.8rem;
    padding: 0 0.3rem;
  }
  .article-headline {
    font-size: 1.8rem;
  }
  .article-body {
    font-size: 1.05rem;
  }
  .section-headline {
    font-size: 1.5rem;
  }
  .cms-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === MOBILE LANDSCAPE & SMALL TABLETS (max-width: 768px) === */
@media (max-width: 768px) {
  .top-header {
    display: none;
  }
  .brand-inner {
    justify-content: center;
    text-align: center;
  }
  .ad-header-banner {
    display: none;
  }
  .nav-menu {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .news-grid-4 {
    grid-template-columns: 1fr;
  }
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .search-input-group {
    grid-template-columns: 1fr;
  }
  .cms-layout {
    grid-template-columns: 1fr;
  }
  .cms-sidebar {
    display: none;
  }
  .cms-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ad-mobile-sticky {
    display: flex;
  }
  .slide-content h2 {
    font-size: 1.5rem;
  }
  .slider-container {
    height: 320px;
  }
  .slide-content {
    padding: 1.5rem;
  }
  .slide-content p {
    font-size: 0.85rem;
    -webkit-line-clamp: 1;
  }

  /* Article page mobile */
  .article-container {
    max-width: 100%;
    padding: 0 0.5rem;
  }
  .article-headline {
    font-size: 1.5rem;
    line-height: 1.35;
  }
  .article-meta-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .article-hero-image img {
    max-height: 280px;
  }
  .article-controls {
    flex-direction: column;
    gap: 0.6rem;
    align-items: stretch;
  }
  .article-controls .font-resize-wrapper {
    justify-content: center;
  }
  .article-body {
    font-size: 1rem;
    line-height: 1.75;
  }
  .article-body p {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .pull-quote {
    font-size: 1.1rem;
    padding-left: 1rem;
  }
  .share-section {
    flex-direction: column;
    gap: 0.5rem;
  }
  .share-btn {
    justify-content: center;
    width: 100%;
  }
  .author-profile {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
    padding: 1rem;
  }
  .author-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  /* Related articles grid */
  .article-container .grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .mega-menu-item img {
    width: 60px;
    height: 45px;
  }

  /* Comment section */
  .comment-login-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  .submit-comment-btn {
    width: 100%;
    text-align: center;
  }

  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Section headline mobile */
  .section-headline {
    font-size: 1.3rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* Nav controls */
  .nav-controls {
    gap: 0.4rem;
  }
  .nav-controls .search-btn,
  .nav-controls .dark-toggle {
    font-size: 1rem;
    padding: 0.3rem;
  }

  /* Container padding */
  .container {
    padding: 0 0.75rem;
  }

  /* Brand header */
  .brand-header {
    padding: 1rem 0;
  }
  .logo-main img,
  .logo-main svg,
  .logo-image {
    height: 60px;
  }
  .tagline {
    font-size: 0.8rem;
  }

  /* CMS mobile */
  .cms-main {
    padding: 1rem;
  }
  .cms-title {
    font-size: 1.2rem;
  }
  .cms-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .cms-table th, .cms-table td {
    padding: 0.6rem 0.4rem;
    font-size: 0.8rem;
  }

  /* Floating share hide on mobile */
  .floating-share {
    display: none;
  }

  /* Live stream mobile */
  .live-stream-panel {
    padding: 1rem;
  }
  .stream-info h3 {
    font-size: 1.2rem;
  }
}

/* === SMALL MOBILE (max-width: 480px) === */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  .cms-stats-grid {
    grid-template-columns: 1fr;
  }
  .slide-content {
    padding: 1rem;
  }
  .slide-content h2 {
    font-size: 1.2rem;
  }
  .slider-container {
    height: 260px;
  }
  .read-more-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  .article-headline {
    font-size: 1.3rem;
  }
  .article-body {
    font-size: 0.95rem;
    line-height: 1.7;
  }
  .article-hero-image img {
    max-height: 200px;
  }
  .card-img-wrap {
    height: 150px;
  }
  .card-title {
    font-size: 1rem;
  }
  .card-body {
    padding: 0.8rem;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
  .nav-container {
    height: 48px;
    padding: 0 0.5rem;
  }
  .logo-main img,
  .logo-main svg,
  .logo-image {
    height: 45px;
  }
  .brand-header {
    padding: 0.6rem 0;
  }
  .widget {
    padding: 1rem;
  }
  .widget-title {
    font-size: 1rem;
  }

  /* Ticker mobile */
  .ticker-wrap {
    height: 35px;
  }
  .ticker-title {
    font-size: 0.75rem;
    padding: 0 0.6rem;
  }
  .ticker-item {
    font-size: 0.8rem;
    padding: 0 1rem;
  }

  /* Category block spacing */
  .category-block {
    margin-bottom: 2rem;
  }

  /* CMS form mobile */
  .cms-form-group input, .cms-form-group select, .cms-form-group textarea {
    font-size: 0.9rem;
  }
}

/* ================================================================
   City-wise Live Updates Feature
   ================================================================ */

/* Nav live dot */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: liveDot 1.2s ease-in-out infinite;
}

/* Page header row */
.live-updates-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.live-updates-header h1 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Pulsating LIVE badge */
.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: livePulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}
.live-pulse-badge .dot {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: liveDot 1.2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.04); }
}
@keyframes liveDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* City selector tabs (desktop) */
.city-tabs-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 2rem;
  padding-bottom: 0.25rem;
}
.city-tabs-wrap::-webkit-scrollbar { display: none; }
.city-tabs {
  display: flex;
  gap: 0.5rem;
  min-width: max-content;
}
.city-tab {
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  background: var(--card-bg);
  color: var(--text-color);
  border: 1.5px solid var(--border-color);
  font-family: var(--font-hindi);
}
.city-tab:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}
.city-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}
.city-tab .tab-count {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  margin-left: 0.35rem;
}
.city-tab.active .tab-count {
  background: rgba(255,255,255,0.35);
}

/* City selector dropdown (mobile) */
.city-select-mobile {
  display: none;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-color);
  font-size: 1rem;
  font-family: var(--font-hindi);
  font-weight: 600;
  margin-bottom: 1.5rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

/* Refresh status bar */
.refresh-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}
.refresh-bar .spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.refresh-bar.loading .spinner { display: inline-block; }
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Timeline feed container */
.timeline-container {
  position: relative;
  padding-left: 2rem;
}
.timeline-container::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--border-color));
  border-radius: 2px;
}

/* Individual timeline item */
.timeline-item {
  position: relative;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  animation: timelineSlideIn 0.5s ease-out forwards;
}
.timeline-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
/* Timeline dot */
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 1.6rem;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  border: 2.5px solid var(--bg-color);
  box-shadow: 0 0 0 2px var(--primary);
  z-index: 1;
  transform: translateX(1px);
}
.timeline-item .timeline-time {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.timeline-item .timeline-time i {
  color: var(--primary);
  font-size: 0.7rem;
}
.timeline-item .timeline-headline {
  font-family: var(--font-hindi);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}
.timeline-item .timeline-summary {
  font-family: var(--font-hindi);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.timeline-item .timeline-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
}
.timeline-item .timeline-link:hover {
  text-decoration: underline;
}
@keyframes timelineSlideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* New item highlight glow */
.timeline-item.new-item {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.15);
}
.timeline-item.new-item::after {
  content: 'NEW';
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

/* Empty state */
.live-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.live-empty-state i {
  font-size: 3rem;
  opacity: 0.3;
  margin-bottom: 1rem;
  display: block;
}
.live-empty-state p {
  font-family: var(--font-hindi);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Responsive: mobile */
@media (max-width: 768px) {
  .city-tabs-wrap { display: none; }
  .city-select-mobile { display: block; }
  .timeline-container { padding-left: 1.5rem; }
  .timeline-item::before { left: -1.5rem; }
  .timeline-container::before { left: 5px; }
  .timeline-item { padding: 1rem 1.1rem; }
  .timeline-item .timeline-headline { font-size: 1rem; }
}

/* ═══════════════════════════════════════════════════════════════
   COOKIE CONSENT BANNER
═══════════════════════════════════════════════════════════════ */
@keyframes cookieSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
@keyframes cookieSlideOut {
  from { transform: translateY(0);   opacity: 1; }
  to   { transform: translateY(100%); opacity: 0; }
}

#cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 700px;
  width: calc(100% - 2rem);
  background: #0A1628;
  color: #F9FAFB;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 9999;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,107,0,0.15);
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
}

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

.cookie-content {
  flex: 1;
  min-width: 200px;
}

.cookie-content strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #FF6B00;
}

.cookie-content p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin: 0;
  font-family: var(--font-hindi);
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

#cookie-accept {
  background: linear-gradient(135deg, #DC2626, #FF6B00);
  color: white;
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-hindi);
  transition: all 0.2s ease;
}

#cookie-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220,38,38,0.4);
}

#cookie-decline {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-hindi);
  transition: all 0.2s ease;
}

#cookie-decline:hover {
  background: rgba(255,255,255,0.15);
}

@media (max-width: 500px) {
  #cookie-banner {
    flex-direction: column;
    text-align: center;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    border-radius: 16px 16px 0 0;
  }
  .cookie-actions { width: 100%; }
  #cookie-accept, #cookie-decline { flex: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   SOCIAL SHARE BAR
═══════════════════════════════════════════════════════════════ */
.social-share-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-sec);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.share-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-hindi);
  white-space: nowrap;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-hindi);
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.share-whatsapp { background: #25D366; color: white; }
.share-whatsapp:hover { background: #128C7E; }

.share-twitter { background: #000000; color: white; }
.share-twitter:hover { background: #333; }

.share-facebook { background: #1877F2; color: white; }
.share-facebook:hover { background: #0E5BBD; }

.share-telegram { background: #2AABEE; color: white; }
.share-telegram:hover { background: #1A8BC4; }

.share-copy { background: var(--border-color); color: var(--text-main); }
.share-copy:hover { background: var(--text-muted); color: white; }

.share-native { background: linear-gradient(135deg, #DC2626, #FF6B00); color: white; }
.share-native:hover { opacity: 0.9; }

/* Dark mode social share */
body.dark-mode .social-share-bar {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}

body.dark-mode .share-copy {
  background: rgba(255,255,255,0.1);
  color: var(--text-main);
}

@media (max-width: 600px) {
  .social-share-bar { flex-direction: column; align-items: flex-start; }
  .share-btn span { display: none; }
  .share-btn { padding: 0.5rem 0.65rem; font-size: 1rem; }
  .share-btn i { font-size: 1.1rem; }
}

/* ═══════════════════════════════════════════════════════════════
   PWA INSTALL PROMPT BUTTON
═══════════════════════════════════════════════════════════════ */
#pwa-install-btn {
  display: none;
  position: fixed;
  bottom: 5rem;
  right: 1.25rem;
  background: linear-gradient(135deg, #DC2626, #FF6B00);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(220,38,38,0.4);
  font-family: var(--font-hindi);
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

#pwa-install-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(220,38,38,0.5);
}

/* ═══════════════════════════════════════════════════════════════
   PRINT MEDIA QUERY (Clean Article Printing)
═══════════════════════════════════════════════════════════════ */
@media print {
  /* Hide interactive/navigation elements */
  header,
  nav,
  footer,
  .side-nav,
  .breaking-ticker,
  .live-badge,
  .social-share-bar,
  #cookie-banner,
  #pwa-install-btn,
  .comment-section,
  .poll-section,
  .video-section,
  .related-articles,
  .ad-banner,
  .back-btn,
  .dark-mode-toggle,
  .language-toggle,
  .search-bar,
  .nav-bottom,
  .category-nav,
  button:not(.print-show) {
    display: none !important;
  }

  /* Reset layout for print */
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
    font-family: 'Noto Sans Devanagari', Georgia, serif;
    line-height: 1.6;
  }

  /* Article title */
  .article-title, h1 {
    font-size: 18pt;
    font-weight: bold;
    color: black !important;
    margin-bottom: 0.5rem;
    page-break-after: avoid;
  }

  /* Article meta (author, date, category) */
  .article-meta {
    font-size: 10pt;
    color: #555 !important;
    border-bottom: 1pt solid #ccc;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
  }

  /* Article content */
  .article-content, .article-body {
    font-size: 11pt;
    line-height: 1.7;
    color: black !important;
  }

  .article-content p, .article-body p {
    margin-bottom: 0.75rem;
    orphans: 3;
    widows: 3;
  }

  /* Article image */
  .article-image, .featured-image {
    max-width: 100%;
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }

  /* Print header — show site name */
  body::before {
    content: "Agenda Bharat (एजेंडा भारत) — agendabharat.in";
    display: block;
    text-align: center;
    font-size: 10pt;
    color: #555;
    border-bottom: 1pt solid #ccc;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
  }

  /* Print footer — show URL */
  body::after {
    content: "© " attr(data-year) " Agenda Bharat | " attr(data-url);
    display: block;
    text-align: center;
    font-size: 9pt;
    color: #777;
    border-top: 1pt solid #ccc;
    margin-top: 1.5rem;
    padding-top: 0.5rem;
  }

  /* Prevent page breaks inside cards */
  .news-card, .article-card {
    page-break-inside: avoid;
  }

  /* Links — show URL in print */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #777;
  }

  /* Don't show URL for internal nav links */
  a[href^="#"]::after,
  a[href^="javascript"]::after {
    content: "";
  }

  @page {
    margin: 2cm;
    size: A4 portrait;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CMS LOGIN PAGE — Secure Admin Authentication
═══════════════════════════════════════════════════════════════ */
.cms-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0A1628 0%, #1E293B 50%, #0F172A 100%);
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

/* Subtle animated background dots */
.cms-login-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(220,38,38,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(21,101,192,0.10) 0%, transparent 50%);
  pointer-events: none;
}

.cms-login-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(20px);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(220, 38, 38, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  position: relative;
  z-index: 1;
  animation: loginFadeIn 0.4s ease;
}

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

.cms-login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.cms-login-logo h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #F9FAFB;
  margin: 0.25rem 0;
  font-family: var(--font-hindi);
  letter-spacing: -0.02em;
}

.cms-login-logo p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-hindi);
  margin: 0;
}

/* Override cms-form-group inside login for dark theme */
.cms-login-box .cms-form-group {
  margin-bottom: 1.1rem;
}

.cms-login-box .cms-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.45rem;
  font-family: var(--font-hindi);
}

.cms-login-box .cms-form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #F9FAFB;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
  box-sizing: border-box;
  outline: none;
}

.cms-login-box .cms-form-group input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-hindi);
  font-size: 0.85rem;
}

.cms-login-box .cms-form-group input:focus {
  border-color: #DC2626;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.cms-login-box .read-more-btn {
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-hindi);
}

.cms-login-box .read-more-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #B91C1C, #991B1B);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.cms-login-box .read-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Divider */
.cms-login-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: rgba(255,255,255,0.3);
  font-size: 0.78rem;
}

.cms-login-divider::before,
.cms-login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 480px) {
  .cms-login-box {
    padding: 2rem 1.25rem;
    border-radius: 16px;
  }
  .cms-login-logo h2 { font-size: 1.4rem; }
}
