/* ==========================================================================
   Sari Jehan News (ساری جہان نیوز) - Pashto & Urdu News Platform
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&family=Noto+Sans+Arabic:wght@300;400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --font-pashto-heading: 'Noto Naskh Arabic', 'Noto Sans Arabic', serif;
  --font-pashto-body: 'Noto Sans Arabic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-latin: 'Inter', sans-serif;

  /* Color Palette - Modern Editorial Red & Slate */
  --primary-red: #bb1919;
  --primary-red-hover: #991313;
  --accent-gold: #d99b26;
  --live-pulse: #ff3b30;

  /* Light Theme Defaults */
  --bg-main: #f4f5f7;
  --bg-header: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --bg-subtle: #eeeeee;
  --bg-dark-banner: #141414;
  --border-color: #e2e8f0;
  --border-dark: #2a2a2a;

  --text-main: #1a1a1a;
  --text-muted: #555555;
  --text-subtle: #777777;
  --text-inverse: #ffffff;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

[data-theme="dark"] {
  --bg-main: #0d0f12;
  --bg-header: #15181e;
  --bg-card: #1c2029;
  --bg-card-hover: #242936;
  --bg-subtle: #252a36;
  --bg-dark-banner: #090a0c;
  --border-color: #2e3545;
  --border-dark: #3a4358;

  --text-main: #f0f3f8;
  --text-muted: #a0aec0;
  --text-subtle: #718096;
  --text-inverse: #ffffff;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.5);
}

/* Reset & Base Settings */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-pashto-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  min-height: 100vh;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

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

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================================
   Header & Top Utility Bar
   ========================================================================== */

/* ==========================================================================
   Header & Top Utility Bar
   ========================================================================== */

.top-bar {
  background-color: var(--bg-dark-banner);
  color: #d1d5db;
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-dark);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.top-bar-info::-webkit-scrollbar {
  display: none;
}

.date-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  white-space: nowrap;
}

.weather-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.top-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.top-action-btn.admin-btn {
  background: rgba(187, 25, 25, 0.25);
  color: #ffffff;
  border: 1px solid var(--primary-red);
}

.top-action-btn.live-btn {
  background-color: var(--primary-red);
  color: #ffffff;
  font-weight: 700;
  animation: pulse-border 2s infinite;
}

.top-action-btn.theme-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
}

.top-action-btn:hover {
  filter: brightness(1.15);
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(187, 25, 25, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(187, 25, 25, 0); }
  100% { box-shadow: 0 0 0 0 rgba(187, 25, 25, 0); }
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* Brand Main Header */
.main-header {
  background-color: var(--bg-header);
  border-bottom: 2px solid var(--primary-red);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-section {
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.logo-badge {
  background-color: var(--primary-red);
  color: #ffffff;
  padding: 6px 12px;
  font-family: var(--font-pashto-heading);
  font-weight: 700;
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  line-height: 1;
  border-radius: var(--radius-sm);
  letter-spacing: -0.5px;
  box-shadow: 0 3px 8px rgba(187, 25, 25, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo-title-ps {
  font-family: var(--font-pashto-heading);
  font-size: clamp(1.15rem, 3.5vw, 1.7rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
  white-space: nowrap;
}

.logo-title-sub {
  font-family: var(--font-latin);
  font-size: clamp(0.6rem, 2vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--primary-red);
  text-transform: uppercase;
  white-space: nowrap;
}

.header-search-box {
  display: flex;
  align-items: center;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 6px 14px;
  width: 260px;
  transition: border-color var(--transition-fast), width var(--transition-normal);
}

.header-search-box:focus-within {
  border-color: var(--primary-red);
  width: 300px;
  background-color: var(--bg-card);
}

.header-search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-family: var(--font-pashto-body);
  font-size: 0.85rem;
  color: var(--text-main);
  margin-right: 6px;
}

.header-search-box svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.mobile-menu-toggle {
  display: none;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Nav Menu */
.nav-bar {
  background-color: var(--bg-header);
  border-top: 1px solid var(--border-color);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  transition: max-height 0.3s ease;
}

.nav-bar::-webkit-scrollbar {
  display: none;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-item a {
  display: block;
  padding: 10px 16px;
  font-family: var(--font-pashto-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
  position: relative;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

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

.nav-item.active a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary-red);
  border-radius: 3px 3px 0 0;
}

/* Breaking News Ticker */
.ticker-bar {
  background-color: var(--bg-dark-banner);
  color: #ffffff;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 42px;
  box-shadow: inset 0 -1px 0 var(--border-dark);
  width: 100%;
  max-width: 100vw;
}

.ticker-label {
  background-color: var(--primary-red);
  color: #ffffff;
  font-family: var(--font-pashto-heading);
  font-weight: 700;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  z-index: 2;
  flex-shrink: 0;
  font-size: 0.85rem;
  box-shadow: -2px 0 6px rgba(0,0,0,0.3);
}

.ticker-content-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  min-width: 0;
}

.ticker-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
  gap: 40px;
  padding-right: 20px;
}

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

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  cursor: pointer;
  color: #f3f4f6;
  transition: color var(--transition-fast);
}

.ticker-item:hover {
  color: var(--accent-gold);
}

.ticker-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary-red);
  border-radius: 50%;
}

/* ==========================================================================
   Main Content Layout & News Grid
   ========================================================================== */

.main-layout {
  padding: 24px 0 48px 0;
}

.grid-lead-container {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 24px;
  margin-bottom: 36px;
}

@media (max-width: 992px) {
  .grid-lead-container {
    grid-template-columns: 1fr;
  }
}

/* Primary Hero Feature Card */
.hero-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.hero-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #1a1a1a;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-card:hover .hero-image-wrapper img {
  transform: scale(1.03);
}

.badge-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background-color: var(--primary-red);
  color: #ffffff;
  font-family: var(--font-pashto-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.location-tag {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background-color: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-subtle);
  font-size: 0.85rem;
}

.hero-title {
  font-family: var(--font-pashto-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

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

.hero-excerpt {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-red);
  font-weight: 700;
  font-size: 0.95rem;
}

.read-btn:hover {
  color: var(--primary-red-hover);
}

/* Secondary Top Stories Side List */
.side-stories-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-header-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-red);
  margin-bottom: 12px;
}

.section-header-mini h3 {
  font-family: var(--font-pashto-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.compact-story-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.compact-story-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--primary-red);
}

.compact-thumb {
  width: 100px;
  height: 75px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background-color: #222;
}

.compact-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.compact-tag {
  font-size: 0.75rem;
  color: var(--primary-red);
  font-weight: 700;
}

.compact-title {
  font-family: var(--font-pashto-heading);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-time {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

/* ==========================================================================
   Live Media Broadcast Section (Audio/Video Player)
   ========================================================================== */

.live-broadcast-banner {
  background: linear-gradient(135deg, #180505 0%, #2b0b0b 50%, #11141a 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.live-banner-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}

@media (max-width: 868px) {
  .live-banner-grid {
    grid-template-columns: 1fr;
  }
}

.live-player-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.live-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-chip {
  background-color: var(--primary-red);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stream-frequency {
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 600;
}

.live-show-title {
  font-family: var(--font-pashto-heading);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.3;
}

.live-show-desc {
  color: #d1d5db;
  font-size: 0.95rem;
}

.audio-controls-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 8px;
}

.play-pause-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--primary-red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.play-pause-btn:hover {
  transform: scale(1.08);
  background-color: #d32020;
}

.visualizer-canvas {
  height: 36px;
  flex: 1;
  background: transparent;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
}

.volume-control input[type="range"] {
  width: 70px;
  accent-color: var(--primary-red);
}

.live-visual-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.live-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}

.live-visual-caption {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 0.85rem;
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================================================
   Categorized News Grid & Sidebar Layout
   ========================================================================== */

.content-with-sidebar {
  display: grid;
  grid-template-columns: 2.7fr 1fr;
  gap: 32px;
}

@media (max-width: 992px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }
}

.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--primary-red);
  padding-bottom: 8px;
  margin-bottom: 20px;
  margin-top: 10px;
}

.section-title-bar h2 {
  font-family: var(--font-pashto-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-bar .view-all {
  font-size: 0.88rem;
  color: var(--primary-red);
  font-weight: 600;
}

.section-title-bar .view-all:hover {
  text-decoration: underline;
}

.news-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.news-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-red);
}

.card-img-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #222;
}

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

.news-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-category {
  font-size: 0.78rem;
  color: var(--primary-red);
  font-weight: 700;
}

.card-title {
  font-family: var(--font-pashto-heading);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
  flex: 1;
}

.card-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-subtle);
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

/* Sidebar Widgets */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.widget-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.widget-header {
  border-bottom: 2px solid var(--primary-red);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.widget-header h3 {
  font-family: var(--font-pashto-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Most Read Numbered List */
.most-read-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.most-read-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.most-read-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rank-number {
  font-family: var(--font-latin);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-red);
  line-height: 1;
  width: 24px;
  flex-shrink: 0;
}

.most-read-title {
  font-family: var(--font-pashto-heading);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-main);
  transition: color var(--transition-fast);
}

.most-read-item:hover .most-read-title {
  color: var(--primary-red);
}

/* Interactive Poll Widget */
.poll-question {
  font-family: var(--font-pashto-heading);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 14px;
  line-height: 1.5;
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.poll-option-btn {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-align: right;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.poll-option-btn:hover {
  background-color: rgba(187, 25, 25, 0.08);
  border-color: var(--primary-red);
}

.poll-result-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(187, 25, 25, 0.18);
  z-index: 0;
  transition: width 0.8s ease;
}

.poll-label-text {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/* Currency & Weather Table */
.rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.rates-table th, .rates-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-color);
  text-align: right;
}

.rates-table th {
  color: var(--text-subtle);
  font-weight: 600;
}

/* Newsletter Subscription Box */
.newsletter-box {
  background: linear-gradient(135deg, var(--primary-red) 0%, #8b0e0e 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-box h4 {
  font-family: var(--font-pashto-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.newsletter-box p {
  font-size: 0.85rem;
  color: #f3f4f6;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.newsletter-input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 4px;
  border: none;
  font-family: var(--font-pashto-body);
  font-size: 0.85rem;
}

.newsletter-submit {
  background-color: var(--bg-dark-banner);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background var(--transition-fast);
}

.newsletter-submit:hover {
  background-color: #000000;
}

/* ==========================================================================
   Full Article Reader Modal
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--bg-card);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--border-color);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header-bar {
  position: sticky;
  top: 0;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.modal-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.font-size-btn {
  background-color: var(--bg-subtle);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background var(--transition-fast);
}

.font-size-btn:hover {
  background-color: var(--border-color);
}

.audio-tts-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(187, 25, 25, 0.1);
  color: var(--primary-red);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.audio-tts-btn:hover {
  background-color: var(--primary-red);
  color: #ffffff;
}

.close-modal-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--bg-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background var(--transition-fast);
}

.close-modal-btn:hover {
  background-color: var(--primary-red);
  color: #ffffff;
}

.article-content-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;

  /* Dynamically adjustable font size class */
  font-size: 1.05rem;
}

.article-category-badge {
  color: var(--primary-red);
  font-weight: 700;
  font-size: 0.9rem;
}

.article-headline {
  font-family: var(--font-pashto-heading);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
}

.article-meta-info {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-subtle);
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
}

.article-featured-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.article-text {
  line-height: 1.95;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-quote {
  border-right: 4px solid var(--primary-red);
  background-color: var(--bg-subtle);
  padding: 16px 20px;
  margin: 12px 0;
  font-family: var(--font-pashto-heading);
  font-weight: 600;
  font-size: 1.15rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 10px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
}

.share-whatsapp { background-color: #25D366; }
.share-facebook { background-color: #1877F2; }
.share-x { background-color: #000000; }
.share-copy { background-color: #64748b; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--bg-dark-banner);
  color: #a0aec0;
  padding: 48px 0 24px 0;
  border-top: 3px solid var(--primary-red);
}

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

@media (max-width: 868px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand-title {
  font-family: var(--font-pashto-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #94a3b8;
}

.footer-col h4 {
  font-family: var(--font-pashto-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--primary-red);
  padding-bottom: 6px;
  display: inline-block;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-right: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.social-icon-link:hover {
  background-color: var(--primary-red);
  transform: translateY(-2px);
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Rules (320px - 768px)
   ========================================================================== */

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .container {
    padding: 0 12px;
  }

  .top-bar-content {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .top-bar-info {
    justify-content: space-between;
    width: 100%;
  }

  .top-bar-actions {
    justify-content: space-around;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 5px;
  }

  .top-action-btn {
    flex: 1;
    justify-content: center;
    padding: 4px 6px;
    font-size: 0.75rem;
  }

  .brand-section {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 0;
  }

  .brand-top-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-search-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 2px;
  }

  .header-search-box:focus-within {
    width: 100% !important;
    max-width: 100% !important;
  }

  .nav-bar {
    max-height: 0;
    overflow: hidden;
    border-top: none;
  }

  .nav-bar.mobile-drawer-open {
    max-height: 380px;
    border-top: 1px solid var(--border-color);
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 6px 0;
  }

  .nav-item a {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
  }

  .hero-content {
    padding: 16px;
  }

  .hero-title {
    font-size: 1.35rem;
  }

  .hero-meta {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.78rem;
  }

  .live-broadcast-banner {
    padding: 16px;
  }

  .live-show-title {
    font-size: 1.3rem;
  }

  .audio-controls-box {
    flex-direction: column;
    border-radius: 16px;
    padding: 12px;
    align-items: stretch;
  }

  .volume-control {
    justify-content: center;
  }

  .content-with-sidebar {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .news-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .modal-container {
    max-width: 96vw;
    margin: 8px;
    max-height: 94vh;
  }

  .article-content-body {
    padding: 16px;
  }

  .article-headline {
    font-size: 1.45rem;
  }

  .article-share-bar {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .top-action-btn .btn-text {
    font-size: 0.72rem;
  }

  .logo-badge {
    padding: 4px 8px;
  }

  .compact-story-card {
    flex-direction: row;
  }

  .compact-thumb {
    width: 85px;
    height: 65px;
  }

  .compact-title {
    font-size: 0.88rem;
  }

  .rates-table th, .rates-table td {
    padding: 6px 4px;
    font-size: 0.78rem;
  }

  .newsletter-form {
    flex-direction: column;
  }
}


