﻿/**
 * ROHILKHAND PRABHAT
 * Premium Editorial News Theme
 * Cleaned & unified stylesheet
 */

/* =========================================================
   1. DESIGN SYSTEM
   ========================================================= */
:root {
  --rp-red: #b91c1c;
  --rp-red-bright: #d21f26;
  --rp-red-dark: #7f1518;
  --rp-gold: #c99a3d;
  --rp-ink: #151515;
  --rp-ink-soft: #303030;
  --rp-muted: #6f6f6f;
  --rp-paper: #fbfaf7;
  --rp-white: #ffffff;
  --rp-soft: #f3f1ec;
  --rp-line: #dedbd3;
  --rp-line-soft: #ebe8e1;
  --rp-green: #138a5b;
  --rp-shadow: 0 10px 30px rgba(20, 20, 20, .07);
  --rp-shadow-lg: 0 18px 55px rgba(20, 20, 20, .11);
  --rp-radius: 3px;
  --font-serif: "Noto Serif Devanagari", "Martel", Georgia, serif;
  --font-sans: "Noto Sans Devanagari", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--rp-paper);
  color: var(--rp-ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
}

.mobile-edition-bar,
.mobile-topic-rail,
.mobile-bottom-nav {
  display: none;
}

/* =========================================================
   2. OLD / SHARED HEADER COMPATIBILITY
   ========================================================= */
.top-header-bar,
.premium-info-bar {
  background: #0d0e11;
  color: #c9c9c9;
  border-bottom: 1px solid #27282c;
  font-size: 11px;
  padding: 6px 0;
}

.top-header-content,
.premium-info-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.top-meta-left,
.top-meta-right,
.premium-info-left,
.premium-info-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.rni-badge,
.info-rni {
  display: inline-flex;
  align-items: center;
  background: var(--rp-red);
  color: #fff;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 800;
}

.editor-tag {
  color: #dfb35c;
  font-weight: 700;
}

.top-social-link,
.info-link {
  color: #aaa;
}

.top-social-link:hover,
.info-link:hover {
  color: #fff;
}

/* =========================================================
   3. FINAL R. PRABHAT HEADER
   ========================================================= */
.rp-header-v3 {
  position: relative;
  z-index: 9999;
  background: var(--rp-white);
}

.rp-header-v3 .rp-topbar-v3 {
  min-height: 32px;
  background: #0b0c0f;
  color: #bfc1c5;
  border-bottom: 1px solid #26272b;
}

.rp-header-v3 .rp-topbar-inner-v3 {
  min-height: 32px;
  font-size: 10.5px;
}

.rp-header-v3 .rp-masthead-v3 {
  background: #fff;
  border-bottom: 1px solid #ddd9d1;
}

.rp-header-v3 .rp-masthead-inner-v3 {
  min-height: 142px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto minmax(280px, 1fr);
  align-items: center;
  gap: 24px;
}

.rp-header-v3 .rp-masthead-left-v3,
.rp-header-v3 .rp-masthead-right-v3 {
  display: flex;
  align-items: center;
}

.rp-header-v3 .rp-masthead-left-v3 {
  gap: 12px;
}

.rp-header-v3 .rp-masthead-right-v3 {
  justify-content: flex-end;
  gap: 10px;
}

.rp-header-v3 .rp-brand-v3 {
  min-width: 0;
  padding: 6px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rp-header-v3 .rp-logo-v3 {
  width: 300px;
  max-width: 31vw;
  max-height: 124px;
  object-fit: contain;
  filter: drop-shadow(0 3px 7px rgba(0,0,0,.11));
  transition: transform .25s ease, filter .25s ease;
}

.rp-header-v3 .rp-brand-v3:hover .rp-logo-v3 {
  transform: translateY(-1px);
  filter: drop-shadow(0 6px 13px rgba(0,0,0,.15));
}

.rp-header-v3 .rp-brand-tagline-v3,
.rp-header-v3 .rp-brand-subline-v3,
.rp-header-v3 .site-tagline-premium,
.rp-header-v3 .brand-line,
.rp-header-v3 .tagline-secondary {
  display: none !important;
}

.rp-header-v3 .rp-hamburger-v3 {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8d5ce;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.rp-header-v3 .rp-hamburger-v3:hover {
  border-color: var(--rp-red);
}

.rp-header-v3 .rp-quick-links-v3 {
  display: flex;
  align-items: center;
  gap: 2px;
}

.rp-header-v3 .rp-quick-links-v3 a {
  padding: 7px 10px;
  color: #444;
  font-size: 12px;
  font-weight: 800;
}

.rp-header-v3 .rp-quick-links-v3 a:hover {
  color: var(--rp-red);
}

.rp-header-v3 .rp-search-v3 {
  width: 220px;
  height: 42px;
  display: flex;
  overflow: hidden;
  border: 1px solid #d8d5ce;
  border-radius: 3px;
  background: #fff;
}

.rp-header-v3 .rp-search-v3:focus-within {
  border-color: var(--rp-red);
  box-shadow: 0 0 0 3px rgba(185,28,28,.08);
}

.rp-header-v3 .rp-search-v3 input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 8px 11px;
  color: var(--rp-ink);
  background: transparent;
}

.rp-header-v3 .rp-search-v3 button {
  width: 44px;
  border: 0;
  background: transparent;
  color: #666;
}

.rp-header-v3 .rp-search-v3 button:hover {
  color: var(--rp-red);
}

.rp-header-v3 .rp-weather-v3 {
  min-width: 62px;
  color: #555;
  text-align: center;
  font-size: 11px;
}

.rp-header-v3 .rp-whatsapp-v3 {
  min-height: 42px;
  padding: 7px 13px;
  border-radius: 3px;
  background: var(--rp-green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.rp-header-v3 .rp-whatsapp-v3:hover {
  background: #0d704b;
  transform: translateY(-1px);
}

.rp-header-v3 .rp-desktop-nav-v3 {
  background: var(--rp-red);
  border-top: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 4px 12px rgba(90,10,10,.12);
}

.rp-header-v3 .rp-nav-list-v3 {
  min-height: 50px;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}

.rp-header-v3 .rp-nav-list-v3::-webkit-scrollbar,
.rp-header-v3 .rp-mobile-nav-v3::-webkit-scrollbar {
  display: none;
}

.rp-header-v3 .rp-nav-list-v3 a {
  position: relative;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.rp-header-v3 .rp-nav-list-v3 a::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 3px;
  background: var(--rp-gold);
  transform: scaleX(0);
  transition: transform .25s ease;
}

.rp-header-v3 .rp-nav-list-v3 a:hover,
.rp-header-v3 .rp-nav-list-v3 a.active {
  background: rgba(0,0,0,.13);
  color: #fff2c9;
}

.rp-header-v3 .rp-nav-list-v3 a:hover::after,
.rp-header-v3 .rp-nav-list-v3 a.active::after {
  transform: scaleX(1);
}

.rp-header-v3 .rp-mobile-nav-v3 {
  display: none;
}

/* =========================================================
   4. SMART STICKY HEADER
   ========================================================= */
.premium-header-grid,
.rp-header-v3 {
  transition: box-shadow .25s ease, transform .25s ease;
}

.premium-header-grid.rp-header-scrolled {
  box-shadow: 0 6px 22px rgba(0,0,0,.14);
}

@media (min-width: 769px) {
  .premium-header-grid.rp-header-scrolled {
    grid-template-columns: 88px 1fr;
  }

  .premium-header-grid.rp-header-scrolled .header-logo-column {
    min-height: 62px;
    height: 62px;
    padding: 4px;
  }

  .premium-header-grid.rp-header-scrolled .site-logo-premium {
    max-width: 80px;
    max-height: 52px;
  }

  .premium-header-grid.rp-header-scrolled .main-navigation-premium {
    display: none;
  }

  .premium-header-grid.rp-header-scrolled .site-masthead-premium {
    height: 62px;
    padding: 5px 12px;
  }
}

/* =========================================================
   5. GENERIC / LEGACY HEADER CLASSES
   ========================================================= */
.site-masthead {
  background: #fff;
  border-bottom: 2px solid var(--rp-red);
  box-shadow: var(--rp-shadow);
  padding: 10px 0;
}

.masthead-inner,
.masthead-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo-branding,
.masthead-branding-info {
  display: flex;
  align-items: center;
}

.site-logo {
  max-height: 58px;
  width: auto;
}

.site-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--rp-red);
}

.site-tagline {
  color: var(--rp-muted);
  font-size: 11px;
  font-weight: 700;
}

.header-weather-box {
  padding: 8px 12px;
  border: 1px solid var(--rp-line);
  background: #fff;
  border-radius: 3px;
}

.btn-header-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: 3px;
  background: var(--rp-green);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
}

/* =========================================================
   6. DISTRICT / TOPIC STRIPS
   ========================================================= */
.district-strip,
.district-filter-bar {
  background: #191a1d;
  color: #fff;
  border-bottom: 1px solid #303136;
}

.district-strip-inner,
.district-filter-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.district-label {
  color: #e3ba66;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.district-btn,
.district-chip {
  flex: 0 0 auto;
  padding: 4px 10px;
  border: 1px solid #424348;
  border-radius: 2px;
  background: #292a2e;
  color: #e2e2e2;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none !important;
}

.district-btn:visited,
.district-btn:focus,
.district-btn:active,
.district-chip:visited,
.district-chip:focus,
.district-chip:active {
  color: #e2e2e2;
  text-decoration: none !important;
}

.district-btn:hover,
.district-btn.active,
.district-chip:hover,
.district-chip.active {
  background: var(--rp-red);
  border-color: var(--rp-red);
  color: #fff;
  text-decoration: none !important;
}

/* =========================================================
   7. BREAKING NEWS
   ========================================================= */
.breaking-ticker-wrap,
.breaking-news-bar {
  background: #fff;
  border-bottom: 1px solid var(--rp-line);
  padding: 7px 0;
}

.ticker-inner,
.breaking-news-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticker-badge,
.breaking-badge {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 2px;
  background: var(--rp-red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .4px;
}

.ticker-marquee,
.breaking-ticker {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--rp-ink);
  font-size: 12px;
  font-weight: 700;
}

.ticker-scroll,
.rtl-ticker-scroll {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: rpTicker 105s linear infinite;
}

.ticker-scroll:hover,
.rtl-ticker-scroll:hover {
  animation-play-state: paused;
}

@keyframes rpTicker {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

/* =========================================================
   8. PAGE FRAME
   ========================================================= */
.homepage-shell {
  padding: 18px 0 44px;
}

.main-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  margin: 22px auto;
}

.main-news-feed {
  min-width: 0;
}

.sidebar {
  min-width: 0;
}

/* =========================================================
   9. HOMEPAGE EDITORIAL INTRO
   ========================================================= */
.edition-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--rp-line);
}

.edition-intro h1 {
  max-width: 760px;
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.08;
  color: var(--rp-ink);
}

.edition-intro p {
  max-width: 300px;
  margin: 0;
  color: var(--rp-muted);
  font-size: 13px;
  line-height: 1.7;
}

.eyebrow,
.story-kicker {
  color: var(--rp-red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

/* =========================================================
   10. HERO STORY
   ========================================================= */
.lead-story-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--rp-line);
  border-radius: 2px;
  box-shadow: var(--rp-shadow-lg);
}

.lead-image-wrap {
  position: relative;
  height: clamp(300px, 42vw, 500px);
  overflow: hidden;
  background: #ddd;
}

.lead-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9);
  transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}

.lead-story-card:hover .lead-image-wrap img {
  transform: scale(1.025);
  filter: saturate(1);
}

.category-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 9px;
  background: var(--rp-red);
  color: #fff;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 900;
}

.lead-body {
  padding: 25px 27px 23px;
}

.lead-title {
  max-width: 850px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 45px);
  font-weight: 500;
  line-height: 1.14;
  color: var(--rp-ink);
}

.lead-title a:hover {
  color: var(--rp-red);
}

.lead-excerpt {
  max-width: 780px;
  margin: 13px 0 17px;
  color: var(--rp-muted);
  font-size: 14px;
  line-height: 1.75;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rp-line-soft);
  color: var(--rp-muted);
  font-size: 10px;
}

.meta-author {
  color: var(--rp-ink-soft);
  font-weight: 800;
}

/* =========================================================
   11. SECONDARY STORIES
   ========================================================= */
.secondary-stories,
.latest-section,
.district-pulse {
  margin-top: 36px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--rp-ink);
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.15;
}

.section-link {
  color: var(--rp-red);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.secondary-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.secondary-story-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--rp-line);
  border-radius: 2px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.secondary-story-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--rp-shadow);
}

.secondary-image {
  position: relative;
  display: block;
  height: 190px;
  overflow: hidden;
  background: #ddd;
}

.secondary-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.secondary-story-card:hover .secondary-image img {
  transform: scale(1.03);
}

.secondary-story-body {
  padding: 15px 16px 16px;
}

.secondary-story-card h3 {
  margin: 6px 0 12px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
}

.secondary-story-card h3 a:hover {
  color: var(--rp-red);
}

/* =========================================================
   12. GENERIC ARTICLE CARDS
   ========================================================= */
.news-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.article-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--rp-line);
  border-radius: 2px;
  transition: transform .22s ease, box-shadow .22s ease;
}

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

.card-img-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #ddd;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

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

.card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.27;
}

.card-title a:hover {
  color: var(--rp-red);
}

.card-excerpt {
  flex: 1;
  margin: 0 0 10px;
  color: var(--rp-muted);
  font-size: 12px;
  line-height: 1.65;
}

/* =========================================================
   13. DISTRICT PULSE / INFOGRAPHIC
   ========================================================= */
.district-pulse-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.district-pulse-card {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--rp-soft);
  border: 1px solid var(--rp-line);
  color: var(--rp-ink);
  font-size: 12px;
  font-weight: 800;
  transition: .2s ease;
}

.district-pulse-card:hover {
  background: var(--rp-red);
  border-color: var(--rp-red);
  color: #fff;
  transform: translateY(-2px);
}

.live-chip {
  color: var(--rp-red);
  font-size: 10px;
  white-space: nowrap;
}

.live-chip i,
.newsroom-status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--rp-green);
  box-shadow: 0 0 0 3px rgba(19,138,91,.12);
}

/* =========================================================
   14. NEWSROOM UTILITY STRIP
   ========================================================= */
.newsroom-utility-strip {
  background: #fff;
  border-bottom: 1px solid var(--rp-line);
}

.newsroom-utility-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  color: var(--rp-muted);
  font-size: 10px;
}

.newsroom-utility-inner::-webkit-scrollbar {
  display: none;
}

.newsroom-utility-inner a {
  color: var(--rp-ink);
  font-weight: 800;
}

.newsroom-utility-inner a:hover {
  color: var(--rp-red);
}

.newsroom-status {
  color: var(--rp-green);
  font-weight: 900;
}

.newsroom-update {
  padding-right: 16px;
  border-right: 1px solid var(--rp-line);
}

/* =========================================================
   15. SIDEBAR
   ========================================================= */
.sidebar-widget {
  margin-bottom: 18px;
  padding: 17px;
  background: #fff;
  border: 1px solid var(--rp-line);
  border-radius: 2px;
  box-shadow: 0 5px 18px rgba(20,20,20,.045);
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 13px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rp-red);
  color: var(--rp-ink);
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
}

.category-widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-widget-list li {
  border-bottom: 1px solid var(--rp-line-soft);
}

.category-widget-list li a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  color: var(--rp-ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.category-widget-list li a:hover {
  color: var(--rp-red);
  padding-left: 3px;
}

.trending-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rp-line-soft);
}

.trending-num {
  flex: 0 0 24px;
  color: var(--rp-red);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.trending-title {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.trending-title a:hover {
  color: var(--rp-red);
}

/* =========================================================
   16. ARTICLE READER
   ========================================================= */
.article-reader-container {
  background: #fff;
  border: 1px solid var(--rp-line);
  border-radius: 2px;
  padding: clamp(20px, 3vw, 34px);
  box-shadow: 0 8px 28px rgba(20,20,20,.05);
}

.article-headline {
  max-width: 920px;
  margin: 0 0 18px;
  color: var(--rp-ink);
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 500;
  line-height: 1.16;
}

.article-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 11px 0;
  margin-bottom: 20px;
  border-top: 1px solid var(--rp-line);
  border-bottom: 1px solid var(--rp-line);
  color: var(--rp-muted);
  font-size: 11px;
}

.article-share-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-share {
  padding: 5px 10px;
  border-radius: 2px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.btn-share.whatsapp { background: #138a5b; }
.btn-share.facebook { background: #1877f2; }
.btn-share.twitter { background: #151515; }

.article-full-image {
  overflow: hidden;
  margin: 0 0 24px;
  border-radius: 2px;
  background: #eee;
}

.article-full-image img {
  width: 100%;
  max-height: 650px;
  object-fit: cover;
}

.article-body-text {
  max-width: 820px;
  margin: 0 auto 32px;
  color: #292929;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.95;
}

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

.reporter-card-box {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 28px;
  padding: 16px;
  background: var(--rp-soft);
  border: 1px solid var(--rp-line);
  border-left: 3px solid var(--rp-red);
}

.reporter-avatar {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 50%;
  object-fit: cover;
}

/* =========================================================
   17. ADS
   ========================================================= */
.ad-slot-container {
  position: relative;
  margin: 15px 0;
  padding: 7px 10px;
  overflow: hidden;
  text-align: center;
  background: #fff;
  border: 1px dashed #cfcac0;
  border-radius: 2px;
}

.ad-slot-container:hover {
  border-color: var(--rp-red);
}

.ad-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  color: #999;
  font-size: 9px;
  text-transform: uppercase;
}

.ad-slot-container a,
.ad-slot-container a:visited,
.ad-slot-container a:hover,
.ad-slot-container a:focus,
.ad-slot-container a:active {
  text-decoration: none !important;
  color: inherit;
}

.ad-badge {
  padding: 1px 5px;
  background: #f0eee9;
  color: #777;
  border-radius: 2px;
  font-weight: 800;
}

.ad-slot-body.active-ad img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
}

/* --- Sized slots: reserve the declared creative box (prevents CLS) --- */
.ad-slot-container.ad-sized {
  /* max-width comes inline from the slot's declared width */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Reserve height from the declared aspect ratio before the creative loads. */
.ad-slot-container.ad-sized .ad-slot-body.active-ad,
.ad-slot-container.ad-sized .ad-slot-body.programmatic-ad {
  aspect-ratio: var(--ad-w) / var(--ad-h);
  width: 100%;
  background: #faf9f6;
}

.ad-slot-container.ad-sized .ad-slot-body.programmatic-ad > ins {
  width: 100%;
  height: 100%;
}

/* Fixed-size creatives must letterbox, never crop or stretch. */
.ad-slot-container.ad-sized .ad-slot-body.active-ad .ad-link {
  display: block;
  width: 100%;
  height: 100%;
}

.ad-slot-container.ad-sized .ad-slot-body.active-ad img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

/* The empty/house state is free-flowing; it must not inherit the ad box. */
.ad-slot-container.ad-sized .ad-slot-body.empty-ad {
  aspect-ratio: auto;
}

/* On phones a wide desktop creative would shrink to an unreadable strip.
   Keep it proportional but give it a usable floor. */
@media (max-width: 600px) {
  .ad-slot-container.ad-sized .ad-slot-body.active-ad,
  .ad-slot-container.ad-sized .ad-slot-body.programmatic-ad {
    min-height: 54px;
  }
}

.ad-slot-body.empty-ad {
  padding: 15px 10px;
  background: #faf9f6;
}

.ad-empty-notice {
  color: var(--rp-ink-soft);
}

.ad-empty-notice h4 {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--rp-ink-soft);
  text-decoration: none !important;
}

.ad-empty-notice p {
  margin: 0 0 9px;
  color: var(--rp-muted);
  font-size: 11px;
  text-decoration: none !important;
}

.ad-empty-notice a,
.ad-empty-notice a:visited,
.ad-empty-notice a:hover,
.ad-empty-notice a:focus,
.ad-empty-notice a:active {
  color: inherit;
  text-decoration: none !important;
}

.ad-actions {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.btn-ad-book,
.btn-ad-rates,
.btn-ad-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border-radius: 3px;
  color: #fff !important;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none !important;
}

.btn-ad-book { background: var(--rp-green); }
.btn-ad-rates,
.btn-ad-admin { background: var(--rp-red); }

.btn-ad-book:hover,
.btn-ad-rates:hover,
.btn-ad-admin:hover {
  opacity: .96;
  color: #fff !important;
  text-decoration: none !important;
}

#slot-header_leaderboard {
  max-height: 118px;
  overflow: hidden;
}

#slot-header_leaderboard .ad-slot-body.active-ad img {
  max-height: 76px;
}

/* A sized header slot reserves its own box, so the legacy caps must not
   re-crop the creative (ID-qualified to beat the rules directly above). */
#slot-header_leaderboard.ad-sized {
  max-height: none;
}

#slot-header_leaderboard.ad-sized .ad-slot-body.active-ad img {
  max-height: none;
  object-fit: contain;
}

/* =========================================================
   18. INFOGRAPHIC
   ========================================================= */
.infographic-panel {
  display: grid;
  grid-template-columns: 1.1fr .85fr 1.05fr;
  gap: 22px;
  align-items: center;
  margin-top: 22px;
  padding: 22px;
  background: linear-gradient(125deg, #151515, #28231e);
  color: #fff;
  border: 1px solid #151515;
  box-shadow: var(--rp-shadow-lg);
}

.infographic-copy h2 {
  margin: 4px 0 0;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
}

.infographic-copy p {
  max-width: 370px;
  margin: 7px 0 0;
  color: #cfc8bc;
  font-size: 11px;
  line-height: 1.7;
}

.pulse-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.pulse-stat {
  padding: 10px;
  border-left: 1px solid rgba(255,255,255,.18);
}

.pulse-stat strong {
  display: block;
  color: #e0b968;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.pulse-stat span {
  display: block;
  margin-top: 6px;
  color: #cfc8bc;
  font-size: 10px;
}

.category-bars {
  display: grid;
  gap: 8px;
}

.category-bar-row {
  display: grid;
  grid-template-columns: 80px 1fr 18px;
  gap: 7px;
  align-items: center;
  color: #eee;
  font-size: 10px;
}

.category-bar-row b {
  color: #e0b968;
  text-align: right;
}

.category-bar-track {
  height: 5px;
  overflow: hidden;
  background: rgba(255,255,255,.13);
}

.category-bar-track i {
  display: block;
  width: var(--bar-size);
  height: 100%;
  background: linear-gradient(90deg, var(--rp-red), #e0b968);
  animation: rpBarGrow 1s .25s both;
  transform-origin: left;
}

@keyframes rpBarGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* =========================================================
   19. SEARCH
   ========================================================= */
.search-results-container {
  max-width: 900px;
  margin: 28px auto 45px;
  padding: 0 16px;
}

.search-results-header {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--rp-ink);
}

.search-results-title {
  margin: 0 0 6px;
  color: var(--rp-ink);
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
}

.search-results-count {
  color: var(--rp-muted);
  font-size: 12px;
}

.search-results-list {
  display: grid;
  gap: 12px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 15px;
  padding: 13px;
  background: #fff;
  border: 1px solid var(--rp-line);
  border-left: 3px solid var(--rp-red);
  transition: .2s ease;
}

.search-result-item:hover {
  box-shadow: var(--rp-shadow);
  transform: translateY(-2px);
}

.search-result-image {
  width: 100%;
  height: 96px;
  object-fit: cover;
}

.search-result-content h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.3;
}

.search-result-content h3 a:hover {
  color: var(--rp-red);
}

.search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 5px;
  color: var(--rp-muted);
  font-size: 10px;
}

.search-result-excerpt {
  margin: 0;
  color: var(--rp-muted);
  font-size: 12px;
  line-height: 1.6;
}

.search-no-results {
  padding: 45px 20px;
  text-align: center;
}

.search-suggestions {
  margin-top: 18px;
  padding: 14px;
  background: #fff8e7;
  border: 1px solid #e0c16b;
}

/* =========================================================
   20. FAQ / ANSWERS
   ========================================================= */
.answer-section {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--rp-line);
}

.answer-section h2 {
  margin: 0 0 13px;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 500;
}

.answer-list {
  display: grid;
  gap: 7px;
}

.answer-list details {
  background: #fff;
  border: 1px solid var(--rp-line);
}

.answer-list summary {
  padding: 13px 15px;
  color: var(--rp-ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.answer-list details[open] summary {
  color: var(--rp-red);
  border-bottom: 1px solid var(--rp-line);
}

.answer-list details p {
  margin: 0;
  padding: 12px 15px 14px;
  color: var(--rp-muted);
  font-size: 12px;
  line-height: 1.75;
}

/* =========================================================
   21. LIVE SCORES
   ========================================================= */
.live-scores-wrapper {
  margin: 15px 0;
}

.live-scores-toggle {
  width: min(300px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  padding: 10px 16px;
  border: 0;
  border-radius: 2px;
  background: var(--rp-red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(185,28,28,.18);
}

.live-scores-toggle:hover {
  background: var(--rp-red-dark);
  transform: translateY(-1px);
}

.live-scores-dropdown {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  padding: 0;
  background: #17181b;
  border-top: 2px solid var(--rp-red);
  transition: max-height .4s ease, padding .4s ease;
}

.live-scores-dropdown.active {
  max-height: 600px;
  padding: 18px 0;
}

.live-scores-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
}

.scores-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
}

.scores-badge {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.scores-link {
  color: #dcb76a;
  font-size: 11px;
  font-weight: 700;
}

.scores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.score-card {
  padding: 14px;
  background: #202126;
  border: 1px solid #3b3c40;
  border-radius: 2px;
}

.match-type {
  margin-bottom: 8px;
  color: #aaa;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.team-a,
.team-b {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #37383d;
}

.team-b {
  border-bottom: 0;
}

.team-name {
  color: #eee;
  font-size: 12px;
  font-weight: 700;
}

.team-score {
  color: #e1b86a;
  font-size: 16px;
  font-weight: 900;
}

.match-status {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding-top: 7px;
}

.status-badge {
  padding: 2px 7px;
  border-radius: 2px;
  background: var(--rp-red);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

.overs {
  color: #aaa;
  font-size: 10px;
}

/* =========================================================
   22. FOOTER
   ========================================================= */
.site-footer {
  margin-top: 42px;
  padding: 42px 0 18px;
  background: #0d0e11;
  color: #9ea0a5;
  border-top: 3px solid var(--rp-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 28px;
}

.footer-col h4 {
  margin: 0 0 13px;
  padding-left: 9px;
  border-left: 3px solid var(--rp-red);
  color: #fff;
  font-size: 14px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 7px;
}

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

.footer-bottom {
  padding-top: 14px;
  border-top: 1px solid #292a2e;
  color: #72747a;
  font-size: 10px;
  text-align: center;
}

/* =========================================================
   23. STICKY AD
   ========================================================= */
.sticky-bottom-ad {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10000;
  max-height: 112px;
  overflow: hidden;
  padding: 4px 10px;
  background: rgba(13,14,17,.96);
  border-top: 2px solid var(--rp-red);
  box-shadow: 0 -5px 18px rgba(0,0,0,.18);
  transform: translateY(110%);
  transition: transform .3s ease;
}

.sticky-bottom-ad.ad-visible {
  transform: translateY(0);
}

.sticky-bottom-inner {
  max-width: 900px;
  margin: auto;
  position: relative;
}

.btn-close-sticky {
  position: absolute;
  top: -9px;
  right: -7px;
  width: 21px;
  height: 21px;
  border: 0;
  border-radius: 50%;
  background: var(--rp-red);
  color: #fff;
}

/* =========================================================
   24. ADMIN
   ========================================================= */
.admin-header {
  padding: 13px 0;
  background: #101114;
  color: #fff;
  border-bottom: 2px solid var(--rp-red);
}

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

.admin-nav {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.admin-nav a {
  padding: 5px 8px;
  color: #bbb;
  font-size: 12px;
  font-weight: 800;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: var(--rp-red);
  color: #fff;
}

.admin-card {
  margin-bottom: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--rp-line);
  border-radius: 2px;
}

.table-responsive {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-table th,
.admin-table td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--rp-line-soft);
  text-align: left;
}

.admin-table th {
  background: #f3f1ec;
  color: #444;
}

.status-pill {
  padding: 3px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
}

.status-pill.active { background: #dcf5e9; color: #087347; }
.status-pill.paused { background: #fff2c8; color: #86600c; }

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-size: 12px;
  font-weight: 800;
}

.form-control {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #cfcac0;
  border-radius: 2px;
  background: #fff;
  color: #222;
}

.form-control:focus {
  outline: none;
  border-color: var(--rp-red);
  box-shadow: 0 0 0 3px rgba(185,28,28,.08);
}

.btn-primary {
  padding: 9px 16px;
  border: 0;
  border-radius: 2px;
  background: var(--rp-red);
  color: #fff;
  font-weight: 800;
}

.btn-primary:hover {
  background: var(--rp-red-dark);
}

/* =========================================================
   25. PROGRESS / REVEAL
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10001;
  width: 100%;
  height: 3px;
  background: var(--rp-gold);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   26. MOBILE
   ========================================================= */
@media (max-width: 1024px) {
  .container {
    width: min(100% - 24px, 960px);
  }

  .main-content-layout {
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 20px;
  }

  .rp-header-v3 .rp-masthead-inner-v3 {
    min-height: 125px;
    grid-template-columns: minmax(190px,1fr) auto minmax(220px,1fr);
    gap: 12px;
  }

  .rp-header-v3 .rp-logo-v3 {
    width: 255px;
    max-width: 29vw;
    max-height: 110px;
  }

  .rp-header-v3 .rp-search-v3 {
    width: 175px;
  }

  .infographic-panel {
    grid-template-columns: 1fr 1fr;
  }

  .category-bars {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  body {
    background: #fff;
    padding-bottom: 66px;
  }

  .container {
    width: calc(100% - 24px);
  }

  .top-header-bar,
  .premium-info-bar,
  .rp-header-v3 .rp-topbar-v3 {
    display: none;
  }

  /* New header: one clean row */
  .rp-header-v3 .rp-masthead-inner-v3 {
    min-height: 66px;
    height: 66px;
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    gap: 4px;
    padding: 3px 8px;
  }

  .rp-header-v3 .rp-masthead-left-v3 {
    grid-column: 1;
  }

  .rp-header-v3 .rp-brand-v3 {
    grid-column: 2;
    padding: 0;
  }

  .rp-header-v3 .rp-masthead-right-v3 {
    grid-column: 3;
    justify-content: flex-end;
  }

  .rp-header-v3 .rp-quick-links-v3,
  .rp-header-v3 .rp-weather-v3,
  .rp-header-v3 .rp-whatsapp-v3 {
    display: none;
  }

  .rp-header-v3 .rp-logo-v3 {
    width: 190px;
    max-width: 58vw;
    max-height: 58px;
  }

  .rp-header-v3 .rp-hamburger-v3,
  .rp-header-v3 .rp-search-v3 {
    width: 38px;
    height: 38px;
  }

  .rp-header-v3 .rp-search-v3 {
    border: 0;
    background: transparent;
  }

  .rp-header-v3 .rp-search-v3 input {
    display: none;
  }

  .rp-header-v3 .rp-search-v3 button {
    width: 38px;
    height: 38px;
    border: 1px solid #d8d5ce;
    border-radius: 3px;
    background: #fff;
  }

  .rp-header-v3 .rp-desktop-nav-v3 {
    display: none;
  }

  .rp-header-v3 .rp-mobile-nav-v3 {
    display: flex;
    gap: 0;
    min-height: 40px;
    overflow-x: auto;
    background: #fff;
    border-top: 1px solid #ece9e3;
    border-bottom: 1px solid #ddd9d1;
    scrollbar-width: none;
  }

  .rp-header-v3 .rp-mobile-nav-v3 a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 13px;
    color: #333;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
  }

  .rp-header-v3 .rp-mobile-nav-v3 a:first-child {
    color: var(--rp-red);
  }

  .rp-header-v3 .rp-mobile-nav-v3 a:hover {
    color: var(--rp-red);
  }

  /* Existing mobile UI */
  .mobile-edition-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    gap: 12px;
    padding: 5px 10px;
    background: #111;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
  }

  .mobile-topic-rail {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 8px 12px;
    background: #f4f2ed;
    scrollbar-width: none;
  }

  .mobile-topic-rail a {
    flex: 0 0 auto;
    padding: 4px 11px;
    border: 1px solid #d7cfc2;
    border-radius: 20px;
    background: #fff;
    color: #444;
    font-size: 10px;
    font-weight: 800;
  }

  .mobile-topic-rail a:first-child {
    background: var(--rp-red);
    border-color: var(--rp-red);
    color: #fff;
  }

  .main-content-layout {
    display: block;
    margin: 12px auto 25px;
  }

  .sidebar {
    margin-top: 24px;
  }

  .edition-intro {
    display: none;
  }

  .homepage-shell {
    padding-top: 6px;
  }

  .lead-story-card {
    box-shadow: none;
  }

  .lead-image-wrap {
    height: 245px;
  }

  .lead-body {
    padding: 15px 0 17px;
  }

  .lead-title {
    font-size: 28px;
    line-height: 1.2;
  }

  .lead-excerpt {
    margin: 9px 0 12px;
    font-size: 12px;
  }

  .article-meta {
    font-size: 9px;
  }

  .secondary-stories,
  .latest-section,
  .district-pulse {
    margin-top: 26px;
  }

  .section-heading {
    margin-bottom: 11px;
    padding-bottom: 7px;
  }

  .section-heading h2 {
    font-size: 23px;
  }

  .secondary-story-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .secondary-story-grid::-webkit-scrollbar {
    display: none;
  }

  .secondary-story-card {
    flex: 0 0 210px;
  }

  .secondary-image {
    height: 118px;
  }

  .secondary-story-body {
    padding: 11px 12px 13px;
  }

  .secondary-story-card h3 {
    font-size: 15px;
  }

  .news-grid-2col {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .card-img-wrap {
    height: 110px;
  }

  .card-content {
    padding: 10px;
  }

  .card-title {
    font-size: 14px;
  }

  .card-excerpt {
    display: none;
  }

  .district-pulse-grid {
    grid-template-columns: 1fr 1fr;
  }

  .district-pulse-card {
    min-height: 47px;
    padding: 10px;
    font-size: 10px;
  }

  .newsroom-utility-strip {
    display: none;
  }

  .breaking-ticker-wrap {
    padding: 6px 0;
  }

  .ticker-badge {
    font-size: 9px;
    padding: 3px 6px;
  }

  .ticker-marquee {
    font-size: 10px;
  }

  .rtl-news-ticker-wrap {
    margin: 7px 0;
    border-radius: 2px;
  }

  .rtl-ticker-label-box {
    min-width: 64px;
    height: 48px;
    padding: 0 7px;
  }

  .rtl-ticker-content {
    height: 48px;
  }

  .rtl-ticker-scroll {
    animation-duration: 90s;
    gap: 12px;
    padding: 0 8px;
  }

  .ticker-item a {
    padding: 3px 6px;
    font-size: 10px;
  }

  /* Article reader */
  .article-reader-container {
    padding: 17px 14px;
    box-shadow: none;
  }

  .article-headline {
    font-size: 29px;
    line-height: 1.22;
  }

  .article-info-bar {
    align-items: flex-start;
    font-size: 10px;
  }

  .article-share-btns {
    width: 100%;
  }

  .btn-share {
    flex: 1;
    text-align: center;
  }

  .article-body-text {
    font-size: 17px;
    line-height: 1.9;
  }

  .reporter-card-box {
    align-items: flex-start;
    padding: 13px;
  }

  .reporter-avatar {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

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

  .site-footer {
    margin-top: 28px;
    padding-top: 30px;
  }

  /* Live scores */
  .scores-grid {
    grid-template-columns: 1fr;
  }

  .infographic-panel {
    display: block;
    padding: 18px 15px;
  }

  .pulse-stat-grid {
    margin: 17px 0;
  }

  .pulse-stat strong {
    font-size: 24px;
  }

  .category-bars {
    margin-top: 12px;
  }

  .sticky-bottom-ad {
    display: none !important;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    display: grid;
    /* One column per link in footer.php. Kept in step with that list: an
       extra column here would leave a dead gap and push the links off-centre. */
    grid-template-columns: repeat(4, 1fr);
    min-height: 62px;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97);
    border-top: 1px solid #d9d5cc;
    box-shadow: 0 -5px 18px rgba(0,0,0,.1);
    backdrop-filter: blur(10px);
  }

  .mobile-bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    color: #333;
    font-size: 10px;
    font-weight: 800;
  }

  .mobile-bottom-link span {
    font-family: Arial, sans-serif;
    font-size: 22px;
    line-height: 1;
  }

  .mobile-bottom-link small {
    font-size: 9px;
  }

  .mobile-bottom-link:first-child {
    color: var(--rp-red);
  }

  .search-result-item {
    grid-template-columns: 85px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .search-result-image {
    height: 64px;
  }

  .search-result-content h3 {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 20px);
  }

  .rp-header-v3 .rp-masthead-inner-v3 {
    /* Height follows the enlarged logo instead of clipping it. */
    min-height: 0;
    height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    grid-template-columns: 38px 1fr 38px;
  }

  .rp-header-v3 .rp-logo-v3 {
    /* Logo is 16:9, so max-height - not width - was the limiter before.
       Target 75vw, capped so it never runs under the hamburger or search. */
    width: min(75vw, calc(100vw - 140px));
    max-width: min(75vw, calc(100vw - 140px));
    max-height: none;
  }

  .rp-header-v3 .rp-hamburger-v3,
  .rp-header-v3 .rp-search-v3,
  .rp-header-v3 .rp-search-v3 button {
    width: 35px;
    height: 35px;
  }

  .rp-header-v3 .rp-mobile-nav-v3 a {
    min-height: 38px;
    padding: 0 11px;
    font-size: 10px;
  }

  .lead-image-wrap {
    height: 215px;
  }

  .lead-title {
    font-size: 24px;
  }

  .secondary-story-card {
    flex-basis: 185px;
  }

  .secondary-image {
    height: 104px;
  }

  .news-grid-2col {
    gap: 8px;
  }

  .card-img-wrap {
    height: 96px;
  }

  .card-content {
    padding: 8px;
  }

  .card-title {
    font-size: 13px;
  }

  .article-headline {
    font-size: 25px;
  }

  .article-reader-container {
    padding: 14px 11px;
  }

  .article-body-text {
    font-size: 16px;
  }

  .district-pulse-grid {
    grid-template-columns: 1fr;
  }

  .infographic-copy h2 {
    font-size: 23px;
  }
}

/* =========================================================
   27. REDUCED MOTION / PRINT
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .rp-header-v3,
  .premium-header-grid,
  .main-navigation,
  .main-navigation-premium,
  .district-strip,
  .breaking-ticker-wrap,
  .breaking-news-bar,
  .sticky-bottom-ad,
  .mobile-bottom-nav {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .article-reader-container,
  .lead-story-card,
  .article-card {
    border: 0;
    box-shadow: none;
  }
}


/* ==========================================================
   MOBILE MENU / DRAWER FIX
   Prevents the navigation drawer from rendering as raw HTML
   and keeps it out of document flow when closed.
   ========================================================== */

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(8, 10, 12, .58);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 10001;
  width: min(340px, 88vw);
  max-width: 340px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  color: #17191c;
  box-shadow: 12px 0 34px rgba(0,0,0,.22);
  transform: translateX(-105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform .25s cubic-bezier(.22,.61,.36,1), visibility .25s ease;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-panel.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-header {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #a90f14 0%, #c71920 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 3px 12px rgba(0,0,0,.12);
}

.mobile-menu-header h3 {
  margin: 0 !important;
  color: #fff !important;
  font-family: 'Noto Serif Devanagari', 'Noto Sans Devanagari', sans-serif;
  font-size: 18px !important;
  font-weight: 800;
  line-height: 1.25;
}

.close-mobile-menu {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.close-mobile-menu:hover {
  background: rgba(255,255,255,.20);
  transform: rotate(90deg);
}

.mobile-menu-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 8px 0 18px !important;
}

.mobile-menu-list li {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid #eef0f2;
}

.mobile-menu-list a {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px !important;
  color: #202327 !important;
  background: #fff;
  text-decoration: none !important;
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35;
  transition: background .16s ease, color .16s ease, padding-left .16s ease;
}

.mobile-menu-list a:hover,
.mobile-menu-list a:focus {
  color: #b51217 !important;
  background: #fff6f6;
  padding-left: 23px !important;
  outline: none;
}

.mobile-menu-list a.active {
  color: #b51217 !important;
  background: #fff1f1;
  box-shadow: inset 4px 0 0 #b51217;
}

body.mobile-menu-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .mobile-menu-overlay,
  .mobile-menu-panel {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .mobile-menu-panel {
    width: min(330px, 88vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-overlay,
  .mobile-menu-panel,
  .close-mobile-menu,
  .mobile-menu-list a {
    transition: none;
  }
}


/* ==========================================================
   SMOOTH NEWS TICKER
   Deliberately slower, readable right-to-left movement.
   ========================================================== */
.ticker-scroll,
.rtl-ticker-scroll {
  animation-timing-function: linear !important;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@media (min-width: 768px) {
  .ticker-scroll,
  .breaking-ticker .ticker-scroll,
  .breaking-news-bar .ticker-scroll {
    animation-duration: 105s !important;
  }
}

@media (max-width: 767px) {
  .ticker-scroll,
  .rtl-ticker-scroll {
    animation-duration: 90s !important;
  }
}


/* ==========================================================
   R. PRABHAT - LATEST NEWS TICKER FIX
   Desktop + mobile layout for .rtl-news-ticker-wrap
   ========================================================== */

.rtl-news-ticker-wrap {
  width: 100%;
  margin: 0;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  overflow: hidden;
  position: relative;
}

.rtl-ticker-layout {
  width: min(1240px, calc(100% - 32px));
  min-height: 48px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}

.rtl-ticker-label-box {
  flex: 0 0 92px;
  min-width: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #b51218;
  color: #fff;
  position: relative;
  z-index: 2;
  box-shadow: 5px 0 12px rgba(0,0,0,.08);
}

.rtl-ticker-label {
  margin: 0;
  color: #fff;
  font-family: 'Noto Sans Devanagari', 'Noto Serif Devanagari', sans-serif;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.rtl-ticker-content {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f8fafc;
  position: relative;
}

.rtl-ticker-scroll {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: max-content;
  min-width: max-content;
  height: 100%;
  gap: 26px;
  padding: 0 22px;
  white-space: nowrap;
  animation: rpLatestTicker 105s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

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

.ticker-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
}

.ticker-item a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 12px;
  color: #1f2937 !important;
  background: transparent;
  text-decoration: none !important;
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  white-space: nowrap;
  border-right: 1px solid #d8dde3;
}

.ticker-item a:hover {
  color: #b51218 !important;
}

.ticker-time {
  flex: 0 0 auto;
  color: #b51218;
  font-size: 11px;
  font-weight: 900;
}

/* Move continuously from right to left, with enough travel
   to keep the headline readable instead of appearing to jump. */
@keyframes rpLatestTicker {
  from {
    transform: translate3d(100%, 0, 0);
  }
  to {
    transform: translate3d(-100%, 0, 0);
  }
}

@media (max-width: 767px) {
  .rtl-ticker-layout {
    width: 100%;
    min-height: 44px;
  }

  .rtl-ticker-label-box {
    flex-basis: 72px;
    min-width: 72px;
  }

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

  .rtl-ticker-content {
    height: 44px;
  }

  .rtl-ticker-scroll {
    height: 44px;
    gap: 16px;
    padding: 0 12px;
    animation-duration: 90s;
  }

  .ticker-item a {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 11px;
    gap: 5px;
  }

  .ticker-time {
    font-size: 9px;
  }
}


/* ==========================================================
   FINAL TICKER MOTION OVERRIDE
   Restores continuous RTL movement.
   ========================================================== */

@keyframes rpNewsTickerMove {
  0% {
    transform: translate3d(100%, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

.rtl-news-ticker-wrap .rtl-ticker-content {
  overflow: hidden !important;
  white-space: nowrap !important;
}

.rtl-news-ticker-wrap .rtl-ticker-scroll {
  display: flex !important;
  width: max-content !important;
  min-width: max-content !important;
  flex: 0 0 auto !important;
  animation-name: rpNewsTickerMove !important;
  animation-duration: 75s !important;
  animation-delay: 0s !important;
  animation-iteration-count: infinite !important;
  animation-timing-function: linear !important;
  animation-fill-mode: both !important;
  animation-play-state: running !important;
  transform: translate3d(100%, 0, 0);
}

.rtl-news-ticker-wrap .rtl-ticker-scroll:hover {
  animation-play-state: paused !important;
}

/* Support the other ticker markup used elsewhere on the site. */
.ticker-marquee .ticker-scroll,
.breaking-ticker .ticker-scroll {
  animation-name: rpNewsTickerMove !important;
  animation-duration: 75s !important;
  animation-delay: 0s !important;
  animation-iteration-count: infinite !important;
  animation-timing-function: linear !important;
  animation-fill-mode: both !important;
  animation-play-state: running !important;
  transform: translate3d(100%, 0, 0);
}

.ticker-marquee .ticker-scroll:hover,
.breaking-ticker .ticker-scroll:hover {
  animation-play-state: paused !important;
}

@media (max-width: 767px) {
  .rtl-news-ticker-wrap .rtl-ticker-scroll,
  .ticker-marquee .ticker-scroll,
  .breaking-ticker .ticker-scroll {
    animation-duration: 65s !important;
  }
}


/* ==========================================================
   STICKY HEADER - ANTI FLICKER
   Uses a stable transition and relies on JS hysteresis so
   tiny scroll movements do not repeatedly switch modes.
   ========================================================== */
.rp-header-v3 {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: box-shadow;
}

.rp-header-v3 .rp-topbar-v3,
.rp-header-v3 .rp-masthead-v3,
.rp-header-v3 .rp-desktop-nav-v3,
.rp-header-v3 .rp-mobile-nav-v3 {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .rp-header-v3 {
    transition: none !important;
  }
}

/* SEO H1 — keyword-rich, subtle visual design */
.rp-seo-h1 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #8e1b19 0%, #b51217 100%);
  margin: 0;
  padding: 6px 16px;
  border-radius: 0 0 4px 4px;
  letter-spacing: 0.01em;
}
.rp-seo-h1 span {
  font-weight: 400;
  opacity: 0.85;
}
@media (max-width: 600px) {
  .rp-seo-h1 { font-size: 11px; padding: 5px 12px; }
}

