@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;600;700&family=Martel:wght@400;600;700;800;900&family=Mukta:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Rozha+One&display=swap');

:root {
  /* Rediff-inspired Clean Editorial Light Theme (Default) */
  --primary: #D71920;
  --primary-bright: #E5092F;
  --primary-hover: #B71218;
  --primary-tint: rgba(215, 25, 32, 0.08);
  --primary-glow: rgba(215, 25, 32, 0.25);
  --primary-border: rgba(215, 25, 32, 0.35);

  --bg-dark: #FFFFFF;
  --bg-surface: #F8F9FA;
  --bg-card: #FFFFFF;
  --bg-elevated: #F1F3F5;

  --white: #FFFFFF;
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;

  --border-subtle: #E5E7EB;
  --border-card: #E5E7EB;
  --border-hover: rgba(215, 25, 32, 0.45);

  --card-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.02);
  --card-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.07), 0 0 16px rgba(215, 25, 32, 0.08);
}

html.dark {
  /* Rediff Modern Editorial Dark Theme */
  --primary: #D71920;
  --primary-bright: #F20D35;
  --primary-hover: #E5092F;
  --primary-tint: rgba(215, 25, 32, 0.15);
  --primary-glow: rgba(215, 25, 32, 0.35);
  --primary-border: rgba(215, 25, 32, 0.5);

  --bg-dark: #0D0E11;
  --bg-surface: #14161D;
  --bg-card: #181A22;
  --bg-elevated: #20232E;

  --white: #FFFFFF;
  --text-primary: #FFFFFF;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(215, 25, 32, 0.5);

  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  --card-shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.85), 0 0 24px rgba(215, 25, 32, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent !important;
}

*:focus {
  outline: none !important;
}

*:focus-visible {
  outline: 2px solid var(--primary) !important;
  outline-offset: 2px !important;
}

a, button {
  -webkit-tap-highlight-color: transparent !important;
}

/* Universal Accessible Selection */
*::selection {
  background-color: #D71920 !important;
  color: #FFFFFF !important;
  text-shadow: none !important;
}

body, input, button, select, textarea, .font-sans {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Mukta', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Clean, Simple & Modern Brand Masthead Typography */
.font-masthead {
  font-family: 'Mukta', 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
}

/* Simple, Clean & Modern Editorial Headlines Typography (Mukta Sans) */
h1, h2, h3, h4, .font-heading, .font-editorial {
  font-family: 'Mukta', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--text-primary);
  line-height: 1.35;
}

.font-mono-num {
  font-family: 'JetBrains Mono', monospace;
}

/* Modern Editorial Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.4);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Section Header Bar */
.section-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-header::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--primary);
  border-radius: 2px;
}

/* Modern Clean Editorial News Cards (Rediff Style) */
.news-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.news-card:hover {
  background: var(--bg-elevated) !important;
  border-color: var(--border-hover) !important;
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

.news-card h1, .news-card h2, .news-card h3, .news-card h4,
.news-card .font-heading,
a.news-card h1, a.news-card h2, a.news-card h3, a.news-card h4 {
  color: var(--text-primary) !important;
  transition: color 0.15s ease;
}

.news-card:hover h1, .news-card:hover h2, .news-card:hover h3, .news-card:hover h4,
a.news-card:hover h1, a.news-card:hover h2, a.news-card:hover h3, a.news-card:hover h4 {
  color: var(--primary) !important;
}

.news-card p,
a.news-card p {
  color: var(--text-secondary) !important;
}

/* Section Backgrounds */
.section-dark {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

/* Live Pulse Beacon */
.live-beacon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.live-beacon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: inherit;
  animation: beacon-ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes beacon-ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Marquee Ticker */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-content {
  display: inline-block;
  animation: ticker-animation 50s linear infinite;
}
.ticker-wrap:hover .ticker-content {
  animation-play-state: paused;
}

@keyframes ticker-animation {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Category Filter Pills (Rediff Style) */
.cat-pill {
  transition: all 0.2s ease;
  border: 1px solid var(--border-subtle) !important;
  background: var(--bg-card) !important;
  color: var(--text-secondary) !important;
  cursor: pointer;
  font-weight: 600;
  border-radius: 8px;
  outline: none !important;
}

.cat-pill:hover {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  background: var(--bg-elevated) !important;
}

.cat-pill.active,
.cat-pill[aria-selected="true"] {
  background: var(--primary) !important;
  color: #FFFFFF !important;
  border-color: var(--primary) !important;
  box-shadow: 0 2px 8px var(--primary-glow) !important;
}

.cat-pill.active:hover {
  background: var(--primary-hover) !important;
  color: #FFFFFF !important;
}

/* Modals */
.modal-overlay {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  animation: modal-zoom 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
}

@keyframes modal-zoom {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Scroll Progress Bar */
#scroll-progress-bar {
  background: linear-gradient(90deg, #B71218, #D71920, #F20D35);
  box-shadow: 0 0 10px rgba(215, 25, 32, 0.6);
}

/* Grand Hero Multi-Swipe Carousel */
.hero-slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
}

.hero-image-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.88) 80%,
    rgba(0, 0, 0, 0.98) 100%
  );
}

.glass-pill {
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #FFFFFF !important;
}

.glass-pill:hover {
  background: rgba(0, 0, 0, 0.85) !important;
  border-color: #D71920 !important;
}

/* Carousel Thumbnail Navigation */
.hero-thumb {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
  transition: all 0.2s ease;
  outline: none !important;
}

.hero-thumb:hover {
  border-color: var(--primary) !important;
  background: var(--bg-elevated) !important;
}

.hero-thumb.active {
  border-color: var(--primary) !important;
  background-color: var(--primary-tint) !important;
  box-shadow: 0 0 12px var(--primary-glow) !important;
}

.hero-thumb p {
  color: var(--text-primary) !important;
}

/* Realtime 24x7 Sidebar Dispatches */
#live-bulletin-container a,
#sidebar-bulletins-list a {
  background: transparent !important;
  border: 1px solid transparent !important;
  transition: all 0.2s ease !important;
  border-radius: 10px !important;
}

#live-bulletin-container a:hover,
#sidebar-bulletins-list a:hover {
  background: var(--bg-elevated) !important;
  border-color: var(--border-subtle) !important;
}

#live-bulletin-container a p,
#sidebar-bulletins-list a p {
  color: var(--text-primary) !important;
}

#live-bulletin-container a:hover p,
#sidebar-bulletins-list a:hover p {
  color: var(--primary) !important;
}

/* Audio Player Equalizer Animation */
@keyframes eq-bounce {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

.eq-bar-1 { animation: eq-bounce 0.6s ease-in-out infinite; }
.eq-bar-2 { animation: eq-bounce 0.8s ease-in-out infinite 0.2s; }
.eq-bar-3 { animation: eq-bounce 0.5s ease-in-out infinite 0.4s; }
.eq-bar-4 { animation: eq-bounce 0.7s ease-in-out infinite 0.1s; }

/* ==================== WORLD-CLASS UNCONGESTED EDITORIAL READING TYPOGRAPHY ==================== */
.article-reading-body {
  font-family: 'Mukta', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.1875rem; /* ~19px */
  line-height: 2.05;
  color: #1f2937;
  letter-spacing: 0.005em;
}

html.dark .article-reading-body {
  color: #E5E7EB;
}

.article-reading-body p {
  margin-bottom: 2rem;
}

.article-reading-body h2, .article-reading-body h3 {
  font-family: 'Mukta', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: #111827;
  margin-top: 2.75rem;
  margin-bottom: 1.25rem;
  line-height: 1.35;
  letter-spacing: normal;
}

html.dark .article-reading-body h2, html.dark .article-reading-body h3 {
  color: #FFFFFF;
}

.article-reading-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem 1.25rem 2rem;
  margin: 2.5rem 0;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.85;
  color: #374151;
  background: #F9FAFB;
  border-radius: 0 1rem 1rem 0;
}

html.dark .article-reading-body blockquote {
  color: #D1D5DB;
  background: #181A22;
}

/* Section Spacious Dividers */
.section-divider {
  border-top: 1px solid #E5E7EB;
}

html.dark .section-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
