/* ==========================================================================
   MEDIA DARSHAN - CORE DESIGN SYSTEM & NEWSPAPER STYLES
   Exact implementation matching media-darshan-redesign.html
   ========================================================================== */

:root {
  --ink: #161616;
  --paper: #ffffff;
  --paper-2: #f7f6f3;
  --rule: #e4e1da;
  --red: #c11f2b;
  --red-dark: #8f1620;
  --gold: #b8862f;
  --muted: #6b6a66;
  --sans: 'Noto Sans Devanagari', 'Inter', sans-serif;
  --serif: 'Noto Serif Devanagari', serif;
}


/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background: var(--paper-2);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img {
  display: block;
  max-width: 100%;
}

/* Sticky Header Container */
.site-header-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  background: var(--paper);
}

/* ===== 1. Utility Bar (Black / Dark) ===== */
.util-bar {
  background: #161616;
  color: #cfcfcf;
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 24px;
  letter-spacing: 0.2px;
}

.util-bar .left {
  display: flex;
  gap: 16px;
  align-items: center;
}

.live-weather-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  user-select: none;
}

.live-weather-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.live-weather-pill.loading i {
  animation: spinWeatherPin 0.8s linear infinite;
}

@keyframes spinWeatherPin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.util-bar .right {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 14px;
}

.util-bar a:hover {
  color: #ffffff;
}

.util-user-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  color: #cfcfcf !important;
  font-size: 15px;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  transition: color 0.2s ease, transform 0.15s ease;
  margin-left: 2px;
  cursor: pointer;
}

.util-user-icon-btn:hover {
  background: transparent !important;
  color: #ffffff !important;
  transform: scale(1.15);
}

.util-user-icon-btn.is-admin {
  background: transparent !important;
  color: #f87171 !important;
}

.util-user-icon-btn.is-admin:hover {
  color: #ffffff !important;
}

.util-admin-badge {
  background: var(--red);
  color: #ffffff !important;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
}

.util-login-link {
  font-size: 12px;
  opacity: 0.85;
}

/* ===== 2. Masthead ===== */
.masthead {
  background: var(--paper);
  padding: 16px 24px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--rule);
}

.masthead .menu-btn {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  cursor: pointer;
  color: var(--ink);
  padding: 6px;
}

.logo-block {
  text-align: center;
}

.logo-eyebrow {
  font-size: 11px;
  color: var(--red);
  letter-spacing: 3px;
  font-weight: 700;
  margin-bottom: 2px;
}

.logo-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink);
}

.masthead-logo-img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
  display: inline-block;
}

.logo-title i {
  color: var(--red);
  font-size: 30px;
}

.masthead .search {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 12px;
  align-items: center;
}

.search .icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  color: var(--ink);
  cursor: pointer;
  background: transparent;
  transition: 0.2s ease;
}

.search .icon-btn:hover {
  background: var(--paper-2);
  border-color: var(--ink);
}

.epaper-btn {
  background: var(--red);
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 16px;
  border-radius: 4px;
  display: flex;
  gap: 8px;
  align-items: center;
  transition: background 0.2s ease;
}

.epaper-btn:hover {
  background: var(--red-dark);
}

/* ===== Search Dropdown ===== */
.header-search-box {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  display: none;
  padding: 12px 0;
}

.header-search-box.open {
  display: block;
}

.search-inner-wrap {
  padding-top: 0;
  padding-bottom: 0;
}

.search-form-flex {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-form-flex input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 14.5px;
  background: var(--paper-2);
  color: var(--ink);
  outline: none;
}

.search-form-flex input:focus {
  border-color: var(--red);
}

.search-btn-submit {
  background: var(--red);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--sans);
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-btn-submit:hover {
  background: var(--red-dark);
}

.search-btn-close {
  background: transparent;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--ink);
  padding: 0 8px;
  line-height: 1;
}

/* ===== 3. Nav Bar ===== */
.navbar {
  background: var(--red);
  display: flex;
  align-items: center;
  padding: 0 16px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
}

.navbar::-webkit-scrollbar {
  display: none;
}

.navbar .home-tab {
  background: var(--red-dark);
  color: #ffffff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 18px;
  display: inline-block;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar a.nav-link {
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 500;
  padding: 13px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-block;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.navbar a.nav-link:hover,
.navbar a.nav-link.active {
  background: var(--red-dark);
}

/* ===== 3.1 State Modal Trigger Button (नो होवर, सिर्फ क्लिक) ===== */
.navbar .nav-state-modal-trigger {
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 500;
  padding: 13px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: transparent;
  text-decoration: none;
  transition: background 0.2s ease;
  user-select: none;
}

.navbar .nav-state-modal-trigger:hover,
.navbar .nav-state-modal-trigger.active {
  background: var(--red-dark);
}

.navbar .nav-state-modal-trigger .nav-caret {
  font-size: 11px;
  transition: transform 0.22s ease;
}

/* ===== 3.2 States Selection Modal Dialog (क्लिक पर मोडल) ===== */
.states-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.states-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.states-modal-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 820px;
  max-height: 85vh;
  border-radius: 14px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-top: 4px solid var(--red);
  transform: scale(0.93) translateY(12px);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.states-modal-overlay.active .states-modal-dialog {
  transform: scale(1) translateY(0);
}

.states-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.states-modal-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.states-modal-search {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.states-modal-search i {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  font-size: 13px;
  pointer-events: none;
}

.states-modal-search input {
  width: 100%;
  padding: 8px 14px 8px 34px;
  font-size: 13.5px;
  border: 1.5px solid #cbd5e1;
  border-radius: 25px;
  outline: none;
  background: #ffffff;
  color: #1e293b;
  transition: all 0.2s ease;
}

.states-modal-search input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.states-modal-close {
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  transition: all 0.18s ease;
}

.states-modal-close:hover {
  color: var(--red);
  background: rgba(185, 28, 28, 0.08);
}

.states-modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  max-height: calc(85vh - 75px);
}

.states-modal-body::-webkit-scrollbar {
  width: 6px;
}

.states-modal-body::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.states-modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.states-modal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .states-modal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .states-modal-header {
    flex-wrap: wrap;
    gap: 10px;
  }
  .states-modal-search {
    order: 3;
    width: 100%;
  }
}

.state-modal-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.18s ease;
}

.state-modal-chip .st-code {
  font-size: 10.5px;
  font-weight: 800;
  color: #64748b;
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  letter-spacing: 0.5px;
}

.state-modal-chip .st-name {
  flex: 1;
  margin-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.state-modal-chip .st-arrow {
  font-size: 11px;
  color: #94a3b8;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.18s ease;
}

.state-modal-chip:hover {
  background: var(--red);
  color: #ffffff !important;
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
}

.state-modal-chip:hover .st-code {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.state-modal-chip:hover .st-arrow {
  opacity: 1;
  color: #ffffff;
  transform: translateX(0);
}

.no-state-found {
  text-align: center;
  padding: 30px 20px;
  color: #64748b;
  font-size: 15px;
}



/* Mobile Drawer State Accordion */
.drawer-nav-item-dropdown {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.drawer-accordion-trigger {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.drawer-caret {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.drawer-nav-item-dropdown.open .drawer-caret {
  transform: rotate(180deg);
}

.drawer-sub-menu {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 8px 16px 14px 16px;
  background: rgba(0, 0, 0, 0.03);
  max-height: 280px;
  overflow-y: auto;
}

.drawer-nav-item-dropdown.open .drawer-sub-menu {
  display: grid;
}

.drawer-sub-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: 12.5px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.drawer-sub-link .st-badge {
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  background: #e2e8f0;
  padding: 1px 4px;
  border-radius: 2px;
}

.drawer-sub-link:hover {
  background: var(--red);
  color: #ffffff !important;
  border-color: var(--red);
}

.drawer-sub-link:hover .st-badge {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}


/* ===== 4. Breaking Strip ===== */
.breaking-strip {
  background: #161616;
  color: #ffffff;
  display: flex;
  align-items: center;
  font-size: 14px;
  overflow: hidden;
}

.breaking-strip .tag {
  background: var(--red);
  padding: 9px 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  z-index: 2;
}

.breaking-strip .ticker-wrap {
  flex: 1;
  overflow: hidden;
  padding: 9px 16px;
}

.breaking-strip .ticker {
  white-space: nowrap;
  display: inline-block;
  animation: tick 26s linear infinite;
}

.breaking-strip .ticker:hover {
  animation-play-state: paused;
}

@keyframes tick {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-link {
  color: #ffffff;
  text-decoration: none;
}

.ticker-link:hover {
  color: #fca5a5;
}

/* ===== 5. Trending Row ===== */
.trending-row {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.trending-row .label {
  color: var(--red);
  font-weight: 800;
  font-size: 13.5px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.chip {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--ink);
  transition: all 0.2s ease;
}

.chip:hover {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
}

/* ===== Container ===== */
.container,
.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px;
}

/* ===== Hero Grid ===== */
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.hero-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #090d16;
  color: #fff;
  min-height: 420px;
  height: 100%;
}

.hero-slides-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
  transition: transform 7s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide.active img {
  transform: scale(1.04);
}

.hero-slide .overlay {
  position: relative;
  z-index: 3;
  padding: 28px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.65) 50%, rgba(0, 0, 0, 0.05) 100%);
}

.badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.hero-slide h1,
.hero-card h1 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.35;
  margin-bottom: 10px;
  font-weight: 800;
}

.hero-slide h1 a,
.hero-card h1 a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-slide h1 a:hover,
.hero-card h1 a:hover {
  color: #ffd1d9;
}

.hero-slide .meta,
.hero-card .meta {
  font-size: 13px;
  color: #e6e6e6;
  display: flex;
  gap: 14px;
}

/* Prev / Next Carousel Arrow Buttons */
.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hero-card:hover .hero-carousel-arrow,
.hero-card:focus-within .hero-carousel-arrow {
  opacity: 1;
}

.hero-carousel-arrow:hover {
  background: var(--red, #e11d48);
  border-color: var(--red, #e11d48);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.hero-carousel-arrow.hero-prev {
  left: 16px;
}

.hero-carousel-arrow.hero-next {
  right: 16px;
}

/* Interactive Hero Carousel Dots */
.hero-dots {
  position: absolute;
  bottom: 18px;
  right: 22px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-dots .hero-dot,
.hero-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-dots .hero-dot:hover,
.hero-dots span:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.15);
}

.hero-dots .hero-dot.active,
.hero-dots span.active {
  background: var(--red, #e11d48);
  width: 22px;
  border-radius: 4px;
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
  height: 100%;
}

.side-item {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--paper);
  border-radius: 8px;
  padding: 9px 12px;
  border: 1px solid var(--rule);
  flex: 1;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.side-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  border-color: var(--red);
}

.side-item img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #f1f5f9;
}

.side-item-content {
  min-width: 0;
  flex: 1;
}

.side-item .cat {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.side-item h3 {
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-item:hover h3 {
  color: var(--red);
}

.side-item .time {
  font-size: 11px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===== Section Heading ===== */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  border-right: 5px solid var(--red);
  padding-right: 12px;
}

.section-head .see-all {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.section-head .see-all:hover {
  text-decoration: underline;
}

/* ===== City Rail ===== */
.city-rail {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.city-card {
  text-align: center;
  display: block;
}

.city-card .img-wrap {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1/1.05;
  margin-bottom: 8px;
  border: 1px solid var(--rule);
  background: #e2e8f0;
}

.city-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.city-card:hover img {
  transform: scale(1.08);
}

.city-card h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 2px;
}

.city-card p {
  font-size: 11.5px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Three-Column Panel (Breaking / Ad / Video) ===== */
.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}

.panel-head {
  background: #161616;
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-head i {
  color: var(--red);
}

.breaking-list {
  padding: 6px 16px;
}

.breaking-list li {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 13.5px;
}

.breaking-list li:last-child {
  border-bottom: none;
}

.breaking-list .t {
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 12.5px;
}

.breaking-list a:hover {
  color: var(--red);
}

.ad-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px;
  gap: 10px;
  background: linear-gradient(160deg, var(--paper), #f1eee6);
}

.ad-panel .tag {
  font-size: 10.5px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
}

.ad-panel h3 {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--red-dark);
  line-height: 1.3;
}

.ad-panel .cta {
  margin-top: 8px;
  background: var(--gold);
  color: #fff;
  padding: 8px 22px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  display: inline-block;
  transition: background 0.2s;
}

.ad-panel .cta:hover {
  background: #9e7225;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.video-thumb .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumb .play i {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(193, 31, 43, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.2s, background 0.2s;
}

.video-thumb:hover .play i {
  transform: scale(1.1);
  background: var(--red);
}

.video-cap {
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
}

.video-cap span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}

/* ===== Latest News Grid ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.news-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border-color: var(--red);
}

.news-card .thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #e2e8f0;
}

.news-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-card:hover .thumb img {
  transform: scale(1.05);
}

.news-card .body {
  padding: 13px;
}

.news-card .cat {
  color: var(--red);
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

.news-card h3 {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card:hover h3 {
  color: var(--red);
}

.news-card .time {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===== Popular & Gallery Split ===== */
.split-two {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gallery-grid img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 5px;
  transition: transform 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

.popular-list {
  padding: 6px 16px;
}

.popular-list li {
  list-style: none;
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--rule);
  align-items: flex-start;
}

.popular-list li:last-child {
  border-bottom: none;
}

.popular-list .num {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 20px;
  color: var(--rule);
  flex-shrink: 0;
  line-height: 1;
}

.popular-list p {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.popular-list li:hover p {
  color: var(--red);
}

.popular-list li:hover .num {
  color: var(--red);
}

/* ===== Newsletter ===== */
.newsletter {
  background: #161616;
  color: #fff;
  border-radius: 8px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 20px;
  flex-wrap: wrap;
}

.newsletter h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 6px;
}

.newsletter p {
  color: #bbb;
  font-size: 13.5px;
}

.newsletter form {
  display: flex;
  gap: 0;
}

.newsletter input {
  padding: 12px 16px;
  border: none;
  border-radius: 4px 0 0 4px;
  width: 260px;
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
}

.newsletter button {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 0 22px;
  border-radius: 0 4px 4px 0;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.2s;
}

.newsletter button:hover {
  background: var(--red-dark);
}

/* ===== Footer ===== */
footer {
  background: #121214;
  color: #a1a1aa;
  padding: 0 24px;
  border-top: 3px solid var(--red);
}

.footer-top {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding: 44px 0 36px;
  border-bottom: 1px solid #232328;
}

.footer-brand-col {
  padding-right: 12px;
}

.footer-top h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  font-family: var(--serif);
  letter-spacing: 0.2px;
  position: relative;
  padding-bottom: 8px;
}

.footer-top h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 26px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.footer-top ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-top ul li {
  font-size: 13.5px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.footer-top ul li a {
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-top ul li a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.foot-logo {
  margin-bottom: 12px;
}

.foot-tag {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #a3a3a3;
  max-width: 360px;
}

.foot-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.foot-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1c1c22;
  border: 1px solid #2e2e38;
  color: #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.foot-social a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(193, 31, 43, 0.4);
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 0 22px;
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #82828e;
}

/* ===== Mobile Drawer Navigation ===== */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: var(--paper);
  z-index: 1100;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer.open {
  left: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

.drawer-content {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-search-form {
  display: flex;
  gap: 0.4rem;
  background: var(--paper-2);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--rule);
}

.drawer-search-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.9rem;
  padding: 6px;
  color: var(--ink);
}

.drawer-search-form button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--red);
  padding: 0 6px;
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  transition: all 0.2s ease;
  user-select: none;
}

.drawer-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 1.25rem;
  flex-shrink: 0;
  text-align: center;
}

.drawer-link-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.drawer-nav-link:hover,
.drawer-nav-link.active {
  background: rgba(185, 28, 28, 0.08);
  color: var(--red);
  transform: translateX(3px);
}



.drawer-epaper-btn {
  display: inline-block;
  background: var(--red);
  color: #fff !important;
  font-weight: 700;
  text-align: center;
  padding: 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.drawer-hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0.5rem 0;
}

.drawer-footer-links a {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.25rem 0;
}

.drawer-footer-links a:hover {
  color: var(--red);
}

.drawer-admin-link {
  margin-top: 0.5rem;
  font-weight: 700;
  color: var(--red) !important;
}

/* ===== Scroll to Top Button ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--red);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 900;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

/* ===== Flash Alerts ===== */
.alert {
  padding: 0.85rem 1.25rem;
  border-radius: 6px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   ARTICLE SINGLE PAGE STYLING (Matching Media Darshan Reference Design)
   ========================================================================== */

/* Reading Progress Bar */
.reading-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.5px;
  background: transparent;
  z-index: 9999;
}

.reading-progress-fill {
  height: 100%;
  background: #c11f2b;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Page Outer Layout */
.md-article-page-wrap {
  padding: 16px 0 60px;
  background: var(--paper-2);
}

.md-article-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

/* Left Column: Main Article Card */
.md-article-main-col {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 26px 30px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  min-width: 0;
}

/* Breadcrumbs */
.md-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #6b7280;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.md-breadcrumb a {
  color: #4b5563;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.md-breadcrumb a:hover {
  color: var(--red);
}

.md-crumb-sep {
  color: #9ca3af;
  font-size: 13px;
}

.md-crumb-current {
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}

/* Category Badge */
.md-category-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.md-cat-pill {
  background: var(--red);
  color: #ffffff !important;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.2px;
}

.md-breaking-pill {
  background: #111827;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.md-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: md-pulse 1.5s infinite;
}

@keyframes md-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Headline */
.md-article-headline {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
  line-height: 1.35;
  color: #111827;
  margin-bottom: 12px;
}

/* Subtitle / Excerpt Lead */
.md-article-lead {
  font-size: 16px;
  line-height: 1.65;
  color: #4b5563;
  margin-bottom: 16px;
  font-weight: 400;
}

/* Author & Meta Row */
.md-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.md-author-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.md-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.md-author-text {
  display: flex;
  flex-direction: column;
}

.md-author-name {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.md-author-role {
  font-size: 12px;
  color: #6b7280;
}

.md-meta-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.md-meta-item {
  font-size: 12.5px;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.md-time-ago {
  color: #9ca3af;
  margin-left: 2px;
}

.md-views {
  font-weight: 500;
}

/* Social Share Bar */
.md-share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.md-share-label {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-right: 2px;
}

.md-share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.md-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff !important;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.md-share-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.md-share-wa { background: #25D366; }
.md-share-tw { background: #000000; }
.md-share-fb { background: #1877F2; }

.md-share-copy {
  background: #f1f5f9;
  color: #334155 !important;
  border: 1px solid #cbd5e1;
}

.md-share-copy:hover {
  background: #e2e8f0;
}

.md-share-copy.copied {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a;
}

/* Featured Image & Caption */
.md-featured-figure {
  margin: 0 0 24px 0;
  width: 100%;
}

.md-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.md-featured-caption {
  font-size: 12px;
  color: #6b7280;
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Main Article Body Typography */
.md-article-body {
  font-size: 17px;
  line-height: 1.82;
  color: #1f2937;
}

.md-article-body p {
  margin-bottom: 1.4rem;
}

.md-article-body h2,
.md-article-body h3,
.md-article-body h4 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin: 1.8rem 0 0.8rem;
  line-height: 1.4;
}

.md-article-body blockquote {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  padding: 14px 18px;
  margin: 1.6rem 0;
  border-radius: 0 6px 6px 0;
  font-family: var(--serif);
  font-size: 17.5px;
  font-style: italic;
  color: #1f2937;
  line-height: 1.65;
}

.md-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.4rem 0;
}

/* Tags Row */
.md-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  flex-wrap: wrap;
}

.md-tags-label {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.md-tags-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.md-tag-item {
  font-size: 12px;
  color: #4b5563;
  background: #f3f4f6;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  transition: all 0.2s ease;
}

.md-tag-item:hover {
  background: #e5e7eb;
  color: #111827;
}

/* ==========================================================================
   RELATED NEWS SECTION (4 Horizontal Cards as shown in reference)
   ========================================================================== */
.md-related-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.md-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.md-head-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.md-head-red-bar {
  width: 4px;
  height: 20px;
  background: var(--red);
  border-radius: 2px;
}

.md-head-title-wrap h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 800;
  color: #111827;
}

.md-head-see-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.md-head-see-all:hover {
  color: var(--red-dark);
}

.md-related-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.md-related-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.md-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  border-color: #d1d5db;
}

.md-card-img-link {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f4f6;
  text-decoration: none;
}

.md-card-img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.md-related-card:hover .md-card-img-link img {
  transform: scale(1.05);
}

.md-card-content {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.md-card-title {
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
}

.md-card-title a {
  font-family: var(--serif);
  color: #111827;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.md-card-title a:hover {
  color: var(--red);
}

.md-card-meta {
  margin-top: auto;
  font-size: 11.5px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 6px;
  border-top: 1px dashed #f3f4f6;
}

/* ==========================================================================
   COMMENTS SECTION
   ========================================================================== */
.md-comments-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.md-comment-form-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 24px;
}

.md-comment-form-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.md-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.md-form-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.md-form-col label,
.md-form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
}

.md-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.md-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.md-btn-submit:hover {
  background: var(--red-dark);
}

.md-comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.md-no-comments {
  font-size: 13.5px;
  color: #6b7280;
  padding: 18px;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 6px;
  text-align: center;
}

.md-comment-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.md-comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #4b5563;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.md-comment-body {
  flex-grow: 1;
}

.md-comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.md-comment-header strong {
  font-size: 13.5px;
  color: #111827;
}

.md-comment-header span {
  font-size: 11.5px;
  color: #6b7280;
}

.md-comment-body p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #374151;
}

/* ==========================================================================
   SIDEBAR (Right Column: Ads & ताज़ा खबरें matching reference)
   ========================================================================== */
.md-article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Ad Placements */
.md-ad-box {
  background: #f3f4f6;
  border: 1px dashed #d1d5db;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  padding: 16px;
}

.md-ad-top {
  height: 250px;
}

.md-ad-tall {
  height: 600px;
}

.md-ad-placeholder {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.md-ad-title {
  font-size: 15px;
  font-weight: 600;
  color: #6b7280;
}

.md-ad-dim {
  font-size: 12.5px;
  color: #9ca3af;
}

/* Sidebar "ताज़ा खबरें" Widget */
.md-sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.md-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 14px;
}

.md-widget-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.md-red-icon {
  color: var(--red);
  font-size: 16px;
}

.md-widget-title h4 {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 800;
  color: #111827;
}

.md-widget-see-all {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
}

.md-widget-see-all:hover {
  color: var(--red-dark);
}

.md-recent-news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.md-recent-news-item {
  display: flex;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
}

.md-recent-news-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.md-recent-thumb {
  width: 80px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f3f4f6;
  display: block;
}

.md-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.md-recent-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  flex-grow: 1;
}

.md-recent-headline {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.md-recent-headline a {
  color: #111827;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.md-recent-headline a:hover {
  color: var(--red);
}

.md-recent-time {
  font-size: 11px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}

/* ==========================================================================
   RESPONSIVE LAYOUT
   ========================================================================== */
@media (max-width: 1024px) {
  .md-article-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .md-related-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .md-article-main-col {
    padding: 18px 14px;
    border-radius: 6px;
  }
  .md-article-headline {
    font-size: 20px;
    line-height: 1.35;
  }
  .md-article-lead {
    font-size: 14.5px;
  }
  .md-article-body {
    font-size: 16px;
    line-height: 1.75;
  }
  .md-related-cards-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .md-form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .md-meta-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Category Hero Banner */
.category-hero-banner {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--red);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
}

.cat-hero-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  margin: 10px 0 6px;
}

.cat-hero-desc {
  font-size: 14px;
  color: var(--muted);
}

.category-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 32px 0;
}

.page-link {
  padding: 8px 16px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--paper);
  color: var(--ink);
}

.page-link:hover,
.page-link.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* ==========================================================================
   ADVANCED RESPONSIVE MEDIA QUERIES
   Flawless mobile layout across 320px, 375px, 480px, 768px, 1024px
   ========================================================================== */

/* Tablet & Smaller Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.6fr 1fr;
    gap: 16px;
  }
  .city-rail {
    grid-template-columns: repeat(4, 1fr);
  }
  .three-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }
}

/* Tablet & Mobile Breakpoint (<= 768px) */
@media (max-width: 768px) {
  /* 1. Top Utility Bar - Clean Single Line */
  .util-bar {
    padding: 5px 12px;
    font-size: 11.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .util-bar .left {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .util-bar .right {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }
  .util-bar .right a:not(.util-user-icon-btn) {
    display: none !important;
  }
  .util-bar .right .util-user-icon-btn {
    display: inline-flex !important;
    font-size: 15px;
    color: #ffffff !important;
    background: transparent !important;
    padding: 2px 4px;
    line-height: 1;
  }

  /* 2. Masthead - Keep in clean horizontal row! */
  .masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    height: auto;
    position: relative;
    border-bottom: 1px solid var(--rule);
    gap: 6px;
  }
  .masthead .menu-btn {
    position: static;
    transform: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--ink);
    padding: 4px;
    line-height: 1;
    margin: 0;
  }
  .logo-block {
    flex: 1;
    text-align: center;
    margin: 0 4px;
    min-width: 0;
  }
  .logo-eyebrow {
    display: none;
  }
  .masthead-logo-img {
    max-height: 38px;
    max-width: 160px;
    margin: 0 auto;
    object-fit: contain;
  }
  .logo-title {
    font-size: 22px;
    justify-content: center;
    gap: 4px;
  }
  .masthead .search {
    position: static;
    transform: none;
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 0;
  }
  .search .icon-btn {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .epaper-btn {
    padding: 5px 9px;
    font-size: 11px;
    border-radius: 4px;
    gap: 4px;
  }

  /* 3. Red Ribbon Navbar - Smooth horizontal swipe */
  .navbar {
    padding: 0 8px;
  }
  .navbar .home-tab {
    padding: 10px 14px;
    font-size: 13px;
  }
  .navbar a.nav-link,
  .navbar .nav-state-modal-trigger {
    padding: 10px 12px;
    font-size: 13px;
  }

  /* 4. Breaking News Strip */
  .breaking-strip {
    font-size: 12.5px;
  }
  .breaking-strip .tag {
    padding: 6px 10px;
    font-size: 11.5px;
    gap: 5px;
  }
  .breaking-strip .ticker-wrap {
    padding: 6px 10px;
  }

  /* 5. Trending Strip */
  .trending-row {
    padding: 6px 10px;
    gap: 6px;
  }
  .trending-row .label {
    font-size: 12px;
    padding: 2px 4px;
  }
  .chip {
    font-size: 11.5px;
    padding: 3px 9px;
  }

  /* 6. Page Content Wrapper */
  .wrap {
    padding: 12px 10px;
  }

  /* 7. Hero Section */
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .hero-card {
    height: 260px;
    min-height: 260px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
  }
  .hero-slides-track {
    height: 100%;
    min-height: 260px;
  }
  .hero-slide {
    height: 100%;
  }
  .hero-card .overlay,
  .hero-slide .overlay {
    padding: 14px 12px;
  }
  .hero-card .overlay .badge,
  .hero-slide .overlay .badge {
    font-size: 10px;
    padding: 2px 6px;
    margin-bottom: 4px;
  }
  .hero-card h1,
  .hero-slide h1 {
    font-size: 16px;
    line-height: 1.35;
    margin: 4px 0;
    max-height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .hero-card .meta,
  .hero-slide .meta {
    font-size: 11px;
    gap: 8px;
  }
  .hero-carousel-arrow {
    opacity: 0.85;
    width: 32px;
    height: 32px;
    font-size: 11px;
  }
  .hero-carousel-arrow.hero-prev { left: 8px; }
  .hero-carousel-arrow.hero-next { right: 8px; }
  .hero-dots {
    bottom: 10px;
    right: 12px;
    gap: 5px;
  }

  .side-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .side-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 6px;
  }
  .side-item img {
    width: 85px;
    height: 65px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
  }
  .side-item h3 {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
    margin: 2px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .side-item .cat {
    font-size: 10px;
  }
  .side-item .time {
    font-size: 10.5px;
  }

  /* 8. Section Headings */
  .section-head {
    margin-top: 18px;
    margin-bottom: 10px;
  }
  .section-head h2 {
    font-size: 17px;
  }
  .section-head .see-all {
    font-size: 12px;
  }

  /* 9. City / State Rail */
  .city-rail {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 10px;
    padding-bottom: 6px;
  }
  .city-rail::-webkit-scrollbar {
    display: none;
  }
  .city-card {
    flex: 0 0 135px;
    padding: 6px;
    border-radius: 6px;
  }
  .city-card .img-wrap {
    height: 85px;
  }
  .city-card h4 {
    font-size: 12.5px;
    margin: 4px 0 2px;
  }
  .city-card p {
    font-size: 10.5px;
  }

  /* 10. Three Column Section */
  .three-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .panel {
    border-radius: 8px;
    padding: 14px;
  }
  .breaking-list li {
    padding: 8px 0;
    font-size: 13px;
  }
  .video-thumb {
    height: 180px;
    border-radius: 6px;
  }

  /* 11. Latest News Grid - Horizontal Mobile Cards */
  .news-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .news-card {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 10px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 8px;
    align-items: center;
  }
  .news-card .thumb {
    width: 100px;
    height: 75px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
    aspect-ratio: auto;
  }
  .news-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .news-card .body {
    flex: 1;
    padding: 0;
    min-width: 0;
  }
  .news-card .body .cat {
    font-size: 10px;
  }
  .news-card .body h3 {
    font-size: 13.5px;
    line-height: 1.35;
    margin: 2px 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .news-card .body p {
    display: none;
  }
  .news-card .body .meta {
    font-size: 11px;
    margin: 0;
  }

  /* 12. Split Two Section */
  .split-two {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .popular-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
  }
  .popular-list .num {
    font-size: 17px;
    width: 20px;
    flex-shrink: 0;
  }
  .popular-list h4 {
    font-size: 13px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .gallery-item {
    height: 105px;
    border-radius: 6px;
  }

  /* 13. Newsletter Banner */
  .newsletter {
    padding: 18px 14px;
    border-radius: 8px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .newsletter h3 {
    font-size: 16.5px;
  }
  .newsletter p {
    font-size: 12.5px;
  }
  .newsletter form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .newsletter input {
    width: 100%;
    text-align: center;
    padding: 9px;
    border-radius: 4px;
  }
  .newsletter button {
    width: 100%;
    border-radius: 4px;
    padding: 9px;
  }

  /* 14. Footer Layout */
  footer {
    padding: 0 18px;
  }
  .footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
    padding: 30px 0 24px;
  }
  .footer-brand-col,
  .footer-top > div:first-child {
    grid-column: 1 / -1;
    margin-bottom: 8px;
    padding-right: 0;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 16px 0 22px;
    font-size: 12px;
    line-height: 1.5;
  }

  /* 15. Article Detail & Category Archive Pages */
  .article-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .article-main-card {
    padding: 14px 12px;
    border-radius: 8px;
  }
  .article-headline {
    font-size: 20px;
    line-height: 1.35;
  }
  .article-excerpt {
    font-size: 13.5px;
  }
  .article-featured-image {
    border-radius: 6px;
    max-height: 230px;
    object-fit: cover;
  }
  .article-body {
    font-size: 15px;
    line-height: 1.65;
  }
  .category-feed-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Small Smartphone Breakpoint (<= 480px) */
@media (max-width: 480px) {
  .util-bar {
    padding: 4px 10px;
    font-size: 11px;
  }
  .util-bar .left {
    gap: 6px;
  }
  .util-bar .right {
    gap: 6px;
  }
  .masthead {
    padding: 6px 10px;
  }
  .masthead-logo-img {
    max-height: 32px;
    max-width: 130px;
  }
  .epaper-btn {
    padding: 4px 7px;
    font-size: 10.5px;
  }
  .search .icon-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .hero-card {
    height: 230px;
    min-height: 230px;
  }
  .hero-slides-track {
    height: 100%;
    min-height: 230px;
  }
  .hero-card h1,
  .hero-slide h1 {
    font-size: 14.5px;
  }
  .side-item img {
    width: 75px;
    height: 60px;
  }
  footer {
    padding: 0 14px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 20px 14px;
    padding: 22px 0 18px;
  }
  .footer-brand-col,
  .footer-top > div:first-child {
    grid-column: 1 / -1;
    margin-bottom: 6px;
  }
  .foot-tag {
    font-size: 12px;
    line-height: 1.55;
    margin-bottom: 12px;
  }
  .footer-top h4 {
    font-size: 14px;
    margin-bottom: 10px;
    padding-bottom: 5px;
  }
  .footer-top ul li {
    font-size: 12.5px;
    margin-bottom: 6px;
  }
  .footer-bottom {
    font-size: 11.5px;
    padding: 14px 0 18px;
    gap: 4px;
  }
}

/* ==========================================================================
   ALL STATES DEDICATED PAGE STYLING (/states)
   ========================================================================== */
.states-page-wrap {
  padding: 24px 0 48px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumb-nav a {
  color: var(--ink);
  font-weight: 500;
}

.breadcrumb-nav a:hover {
  color: var(--red);
}

.crumb-separator {
  color: var(--muted);
}

.crumb-current {
  color: var(--red);
  font-weight: 600;
}

.states-hero-banner {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--red);
  border-radius: 8px;
  padding: 28px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.states-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  background: rgba(193, 31, 43, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.states-hero-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.states-hero-desc {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.states-search-wrapper {
  position: relative;
  max-width: 580px;
  margin-bottom: 20px;
}

.states-search-input {
  width: 100%;
  padding: 12px 40px 12px 42px;
  border: 2px solid var(--rule);
  border-radius: 30px;
  font-size: 14.5px;
  font-family: var(--sans);
  background: var(--paper-2);
  color: var(--ink);
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.states-search-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(193, 31, 43, 0.12);
  background: #ffffff;
}

.states-search-wrapper .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 15px;
  pointer-events: none;
}

.clear-search-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.clear-search-btn:hover {
  color: var(--ink);
}

.states-region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.region-tab {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--sans);
}

.region-tab:hover {
  border-color: var(--red);
  color: var(--red);
}

.region-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}

.states-layout-grid {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 28px;
  align-items: start;
}

.states-results-bar {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.states-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px 16px;
}

.state-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  text-decoration: none;
}

.state-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  border-color: var(--red);
}

.state-card .img-wrap {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1/1.05;
  margin-bottom: 8px;
  border: 1px solid var(--rule);
  background: #e2e8f0;
  position: relative;
  width: 100%;
}

.state-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.state-card:hover img {
  transform: scale(1.08);
}

.state-card .state-code-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.state-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 3px;
  line-height: 1.3;
  transition: color 0.2s;
}

.state-card:hover h4 {
  color: var(--red-dark);
}

.state-card p {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.state-card .state-card-cap {
  font-size: 11px;
  color: var(--ink-light);
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px dashed var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.state-card .state-card-cap i {
  color: var(--red);
  font-size: 10px;
}

.no-states-found-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--paper);
  border: 1px dashed var(--rule);
  border-radius: 8px;
  color: var(--muted);
}

.no-states-found-card i {
  font-size: 40px;
  color: var(--muted);
  margin-bottom: 12px;
}

.no-states-found-card h3 {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 6px;
}

.reset-filter-btn {
  margin-top: 14px;
  padding: 8px 18px;
  background: var(--red);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.quick-states-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quick-state-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--paper-2);
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.2s ease;
}

.quick-state-item:hover {
  background: var(--red);
  color: #ffffff;
  transform: translateX(3px);
}

.quick-state-item .qs-badge {
  font-size: 11px;
  opacity: 0.8;
  font-weight: 400;
}

.epaper-promo-box {
  background: linear-gradient(135deg, #1c1c1e 0%, #2a1114 100%);
  color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  margin-top: 24px;
}

.epaper-promo-box .promo-icon {
  font-size: 32px;
  color: #f87171;
  margin-bottom: 12px;
}

.epaper-promo-box h4 {
  font-family: var(--serif);
  font-size: 18px;
  margin-bottom: 6px;
}

.epaper-promo-box p {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 16px;
  line-height: 1.5;
}

.epaper-promo-box .promo-btn {
  display: inline-block;
  background: var(--red);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 20px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.epaper-promo-box .promo-btn:hover {
  background: var(--red-dark);
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .states-layout-grid {
    grid-template-columns: 1fr;
  }
  .states-sidebar {
    order: 2;
  }
}

@media (max-width: 768px) {
  .states-hero-title {
    font-size: 22px;
  }
  .states-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .state-card {
    padding: 8px;
  }
  .state-card h4 {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .states-hero-banner {
    padding: 18px 14px;
  }
  .states-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .state-card {
    padding: 6px;
  }
  .state-card h4 {
    font-size: 13.5px;
  }
  .state-card p {
    font-size: 10.5px;
  }
}

/* ==========================================================================
   CATEGORY ARCHIVE PAGE (4-COLUMNS x 6-ROWS GRID, CARDS & EMPTY STATE)
   ========================================================================== */

/* Breadcrumb Navigation */
.cat-breadcrumb-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
}

.cat-breadcrumb-nav a {
  color: #64748b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}

.cat-breadcrumb-nav a:hover {
  color: var(--red, #c11f2b);
}

.cat-breadcrumb-nav .cat-sep {
  color: #cbd5e1;
}

.cat-breadcrumb-nav .cat-curr {
  font-weight: 700;
  color: var(--red, #c11f2b);
}

/* Category Header Banner */
.cat-header-banner {
  background: #ffffff;
  border: 1px solid var(--rule, #e2e8f0);
  border-top: 4px solid var(--red, #c11f2b);
  border-radius: 10px;
  padding: 22px 26px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.cat-header-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cat-tag-pill {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.cat-main-title {
  font-family: var(--serif, 'Noto Serif Devanagari', serif);
  font-size: 28px;
  font-weight: 800;
  color: var(--ink, #1e293b);
  margin: 0 0 6px;
  line-height: 1.3;
}

.cat-main-desc {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Subcategories Subnav Bar */
.cat-subnav-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--rule, #e2e8f0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  margin-bottom: 20px;
}

.cat-subnav-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cat-subnav-items {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-subnav-link {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cat-subnav-link:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.cat-subnav-link.active {
  background: var(--red, #c11f2b);
  border-color: var(--red, #c11f2b);
  color: #ffffff;
}

/* 4-Column News Grid (4 Columns x 6 Rows = 24 Cards) */
.cat-news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 10px;
  margin-bottom: 36px;
}

/* Category News Card */
.cat-news-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.025);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.cat-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.cat-card-img-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
}

.cat-card-img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.cat-news-card:hover .cat-card-img-link img {
  transform: scale(1.06);
}

.cat-card-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: #ffffff;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.cat-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cat-card-title {
  margin: 0 0 8px;
  font-family: var(--serif, 'Noto Serif Devanagari', serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.42;
  color: var(--ink, #1e293b);
  min-height: 42px;
}

.cat-card-title a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.cat-news-card:hover .cat-card-title a {
  color: var(--red, #c11f2b);
}

.cat-card-excerpt {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.cat-card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #94a3b8;
}

.cat-card-time, .cat-card-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Pagination Bar */
.cat-pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 36px 0 28px;
}

.cat-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cat-page-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--red, #c11f2b);
}

.cat-page-btn.active {
  background: var(--red, #c11f2b);
  border-color: var(--red, #c11f2b);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(193, 31, 43, 0.3);
}

.cat-page-btn.disabled {
  opacity: 0.45;
  pointer-events: none;
  background: #f8fafc;
  color: #94a3b8;
}

.cat-page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 38px;
  color: #94a3b8;
  font-weight: 700;
}

/* Centered Empty State Box */
.cat-empty-container {
  max-width: 640px;
  margin: 48px auto;
  padding: 48px 32px;
  text-align: center;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.cat-empty-icon-wrap {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #fee2e2;
  color: var(--red, #c11f2b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.cat-empty-title {
  font-family: var(--serif, 'Noto Serif Devanagari', serif);
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 10px;
  line-height: 1.4;
}

.cat-empty-subtitle {
  font-size: 14.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 26px;
}

.cat-empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cat-empty-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red, #c11f2b);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(193, 31, 43, 0.25);
}

.cat-empty-btn-primary:hover {
  background: #a51822;
  transform: translateY(-1px);
  color: #ffffff;
}

.cat-empty-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.cat-empty-btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Responsive Grid Breakpoints */
@media (max-width: 1024px) {
  .cat-news-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .cat-news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .cat-header-banner {
    padding: 18px 16px;
  }
  .cat-main-title {
    font-size: 22px;
  }
  .cat-empty-container {
    padding: 36px 20px;
    margin: 28px auto;
  }
}

@media (max-width: 480px) {
  .cat-news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cat-empty-actions {
    flex-direction: column;
    width: 100%;
  }
  .cat-empty-btn-primary, .cat-empty-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   STATIC & POLICY PAGES (About Us, Privacy Policy, Terms, Disclaimer)
   ========================================================================== */
.md-static-wrap {
  padding: 36px 20px 60px;
  background: var(--paper-2);
  min-height: calc(100vh - 400px);
}

.md-static-container {
  max-width: 960px;
  margin: 0 auto;
}

.md-static-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #6b7280;
  margin-bottom: 24px;
}

.md-static-breadcrumb a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s ease;
}

.md-static-breadcrumb a:hover {
  color: var(--red);
}

.md-static-breadcrumb .sep {
  color: #9ca3af;
}

.md-static-breadcrumb .current {
  color: #111827;
  font-weight: 600;
}

.md-static-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 44px 52px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.md-static-header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.md-static-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 20px;
  background: #fef2f2;
  color: var(--red);
  margin-bottom: 14px;
}

.md-static-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 12px;
}

.md-static-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #6b7280;
}

.md-static-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.md-static-content {
  font-size: 16px;
  line-height: 1.85;
  color: #374151;
}

.md-static-content p {
  margin-bottom: 18px;
}

.md-static-content h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f3f4f6;
  position: relative;
}

.md-static-content h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--red);
}

.md-static-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-top: 26px;
  margin-bottom: 10px;
}

.md-static-content ul, 
.md-static-content ol {
  padding-left: 24px;
  margin-bottom: 22px;
}

.md-static-content li {
  margin-bottom: 10px;
  line-height: 1.75;
}

.md-static-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.md-static-content a:hover {
  color: var(--red-dark);
}

.md-highlight-box {
  background: #f8fafc;
  border-left: 4px solid var(--red);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 15px;
  line-height: 1.75;
  color: #334155;
}

.md-highlight-box h4 {
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.md-static-bottom-nav {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #e5e7eb;
}

.md-static-bottom-nav h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6b7280;
  margin-bottom: 14px;
}

.md-policy-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.md-policy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  background: #f3f4f6;
  color: #374151;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.md-policy-pill:hover,
.md-policy-pill.active {
  background: var(--red);
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .md-static-wrap {
    padding: 20px 14px 44px;
  }
  .md-static-card {
    padding: 28px 20px;
    border-radius: 10px;
  }
  .md-static-title {
    font-size: 25px;
  }
  .md-static-content {
    font-size: 15px;
  }
  .md-static-content h2 {
    font-size: 19px;
  }
}


