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

:root {
  --primary: #c1121f;
  --primary-dark: #780000;
  --primary-light: #fdf0d5;
  --accent: #003049;
  --accent-blue: #0284c7;
  --accent-green: #15803d;
  --gold: #d97706;
  
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-header: #0f172a;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;
  
  --border-color: #e2e8f0;
  --border-focus: #c1121f;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 20px rgba(193, 18, 31, 0.25);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  --font-urdu: 'Noto Nastaliq Urdu', 'Gulzar', serif;
  --font-arabic: 'Noto Sans Arabic', sans-serif;
  --font-en: 'Outfit', sans-serif;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-main: #0b0f19;
  --bg-surface: #111827;
  --bg-card: #1f2937;
  --bg-subtle: #1e293b;
  --bg-header: #030712;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  --border-color: #334155;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 10px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.6);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* Nastaliq Urdu typography line height fix */
.urdu-text {
  font-family: var(--font-urdu) !important;
  line-height: 2.1 !important;
}

h1.urdu-text, h2.urdu-text, h3.urdu-text, h4.urdu-text, h5.urdu-text {
  line-height: 2.2 !important;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

/* LTR English Mode Styles */
body.ltr-mode {
  direction: ltr !important;
  text-align: left !important;
  font-family: var(--font-en) !important;
}

body.ltr-mode .urdu-text,
body.ltr-mode .brand-title-main,
body.ltr-mode h1, 
body.ltr-mode h2, 
body.ltr-mode h3, 
body.ltr-mode h4, 
body.ltr-mode h5 {
  font-family: var(--font-en) !important;
  line-height: 1.4 !important;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top Utility Bar */
.top-bar {
  background-color: var(--bg-header);
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.top-item i {
  color: #38bdf8;
}

.top-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ctrl-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font-en);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.lang-toggle-btn {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.lang-toggle-btn:hover {
  background: rgba(56, 189, 248, 0.3);
  color: #ffffff;
}

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

.header-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-color);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand-emblem {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(193, 18, 31, 0.3);
  flex-shrink: 0;
}

.brand-emblem-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  border: 2px solid #f59e0b;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #ffffff;
}

.brand-wrapper:hover .brand-emblem-img {
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-title-main {
  font-family: var(--font-urdu);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.6;
}

[data-theme="dark"] .brand-title-main {
  color: #ef4444;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language Switcher Pill in Header */
.btn-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}

.btn-lang-switch:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-card);
}

.btn-lang-switch .lang-tag.active {
  color: var(--primary);
  font-weight: 800;
}

.btn-lang-switch .lang-sep {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.btn-report {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #fff;
  border: none;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-family: var(--font-arabic);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 3px 8px rgba(22, 163, 74, 0.3);
  transition: var(--transition);
}

.btn-report:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(22, 163, 74, 0.4);
}

.search-trigger-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.search-trigger-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Nav Bar */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.35rem 0;
}

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

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.3rem;
  padding: 0.2rem 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  background-color: var(--primary);
  color: #ffffff;
}

.nav-link.active {
  box-shadow: 0 2px 8px rgba(193, 18, 31, 0.3);
}

/* Breaking News Ticker */
.breaking-ticker {
  background: #111827;
  color: #fff;
  display: flex;
  align-items: stretch;
  height: 44px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.breaking-label {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.25rem;
  z-index: 5;
  white-space: nowrap;
  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.breaking-label .pulse-dot {
  width: 9px;
  height: 9px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px #ffffff; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

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

.ticker-items-wrapper {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
}

/* Direction-aware Ticker animation */
html[dir="rtl"] .ticker-items-wrapper {
  animation: tickerSlideRTL 35s linear infinite;
}

html[dir="ltr"] .ticker-items-wrapper {
  animation: tickerSlideLTR 35s linear infinite;
}

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

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

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

.ticker-item {
  color: #f1f5f9;
  margin: 0 1.5rem;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.ticker-item:hover {
  color: #fca5a5;
}

.ticker-item::after {
  content: "♦";
  color: var(--primary);
  margin-right: 1.5rem;
  margin-left: 0.5rem;
}

/* Quick District Chips Bar */
.district-chips-bar {
  background: var(--bg-surface);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.district-chips-bar .container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.district-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.district-chip:hover, .district-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Main Layout Grid */
.news-layout-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .news-layout-wrapper {
    grid-template-columns: 1fr;
  }
}

.main-news-col {
  min-width: 0;
  width: 100%;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border-color);
  position: relative;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 60px;
  height: 2px;
  background-color: var(--primary);
}

html[dir="ltr"] .section-header::after {
  right: auto;
  left: 0;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title i {
  color: var(--primary);
}

/* HERO SECTION - Properly Constrained & Beautiful */
.hero-news-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
  align-items: stretch;
}

@media (max-width: 768px) {
  .hero-news-grid {
    grid-template-columns: 1fr;
  }
}

/* Hero Lead Card (Big Feature) */
.hero-lead-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  transition: var(--transition);
}

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

.hero-lead-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-lead-card:hover .hero-lead-img {
  transform: scale(1.04);
}

.hero-lead-overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(15, 23, 42, 0.1) 100%);
  padding: 1.5rem 1.25rem 1.25rem 1.25rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hero-lead-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0.3rem 0;
}

.hero-lead-summary {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-lead-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.4rem;
}

/* Hero Sub Stack (2 Column Cards) */
.hero-sub-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.hero-sub-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.hero-sub-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(193, 18, 31, 0.35);
}

.hero-sub-img {
  width: 140px;
  min-width: 140px;
  height: 100%;
  object-fit: cover;
}

.hero-sub-content {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.hero-sub-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.3rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.hero-sub-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Badges */
.news-badge, .card-badge {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  width: fit-content;
}

.badge-primary { background: var(--primary); }
.badge-okara { background: var(--accent-blue); }
.badge-pakpattan { background: var(--accent-green); }

/* Main News Stream Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}

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

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(193, 18, 31, 0.4);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--bg-subtle);
}

.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-img-wrapper .card-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
}

html[dir="ltr"] .card-img-wrapper .card-badge {
  right: auto;
  left: 0.75rem;
}

.card-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card:hover .card-title {
  color: var(--primary);
}

.card-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sidebar Widgets */
.sidebar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 90px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.widget-header {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-header i {
  color: var(--primary);
}

/* Mandi Rates Table */
.mandi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.mandi-table th, .mandi-table td {
  padding: 0.55rem 0.4rem;
  text-align: right;
  border-bottom: 1px solid var(--border-color);
}

html[dir="ltr"] .mandi-table th,
html[dir="ltr"] .mandi-table td {
  text-align: left;
}

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

.mandi-table td.rate {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--accent-green);
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .mandi-table td.rate {
  text-align: right;
}

/* Weather & Prayer Widget */
.weather-prayer-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.quick-stat-card {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  text-align: center;
  border: 1px solid var(--border-color);
}

.quick-stat-card .val {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-en);
  margin: 0.2rem 0;
}

.quick-stat-card .label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Trending List in Sidebar */
.trending-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}

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

.trending-number {
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 800;
  color: #94a3b8;
  line-height: 1;
  min-width: 24px;
}

.trending-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trending-info h5 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-item:hover .trending-info h5 {
  color: var(--primary);
}

.trending-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Citizen Banner */
.citizen-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.citizen-banner h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.citizen-banner p {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.citizen-banner .btn-citizen {
  background: #f59e0b;
  color: #111827;
  font-weight: 700;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.citizen-banner .btn-citizen:hover {
  background: #d97706;
  color: #fff;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  z-index: 10;
  transition: var(--transition);
}

html[dir="ltr"] .modal-close-btn {
  left: auto;
  right: 1rem;
}

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

.modal-header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-meta {
  display: flex;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.modal-img-wrapper {
  width: 100%;
  max-height: 420px;
  min-height: 220px;
  overflow: hidden;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal-img-wrapper img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.modal-content-body {
  padding: 1.5rem;
  font-size: 1rem;
  line-height: 2;
  color: var(--text-primary);
}

.modal-content-body p {
  margin-bottom: 1rem;
}

.modal-actions-bar {
  padding: 1rem 1.5rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.share-btn {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #fff;
  transition: var(--transition);
}

.share-whatsapp { background: #25d366; }
.share-facebook { background: #1877f2; }
.share-copy { background: #64748b; }

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.form-submit-btn:hover {
  box-shadow: 0 4px 12px rgba(193, 18, 31, 0.4);
}

/* Footer */
.main-footer {
  background-color: #0b1120;
  color: #94a3b8;
  padding: 3rem 0 1.5rem 0;
  margin-top: 3rem;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

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

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

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35px;
  height: 2px;
  background-color: var(--primary);
}

html[dir="ltr"] .footer-col h4::after {
  right: auto;
  left: 0;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.developer-credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.95rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: #cbd5e1;
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.developer-credit-pill .pulse {
  color: #ef4444;
  display: inline-block;
  animation: heartPulse 1.4s ease-in-out infinite;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.dev-link-highlight {
  color: #38bdf8 !important;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(14, 165, 233, 0.25));
  padding: 0.18rem 0.65rem;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dev-link-highlight:hover {
  background: #38bdf8;
  color: #0f172a !important;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.7);
  transform: translateY(-1px);
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: #10b981;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   NATIVE MOBILE APP EXPERIENCE (iOS / Android News App Look)
   ========================================================================== */

/* Mobile App Floating Bottom Navigation Bar */
.mobile-app-nav-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.45rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom, 0px)) 0.5rem;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

[data-theme="dark"] .mobile-app-nav-bar {
  background: rgba(15, 23, 42, 0.92);
  border-top-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.4);
}

.mobile-app-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.app-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
  gap: 0.2rem;
}

.app-nav-btn i {
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.app-nav-btn.active {
  color: var(--primary);
}

.app-nav-btn.active i {
  transform: scale(1.15);
}

.app-nav-btn:active {
  transform: scale(0.92);
}

.app-nav-btn-highlight {
  color: #fff !important;
  background: linear-gradient(135deg, var(--primary) 0%, #b91c1c 100%);
  border-radius: 50px;
  padding: 0.4rem 0.85rem;
  box-shadow: 0 3px 10px rgba(153, 27, 27, 0.35);
  margin-top: -6px;
}

.app-nav-btn-highlight i {
  font-size: 1.15rem;
}

/* Stories / Highlights Bar (Instagram / News App Style) */
.division-stories-wrapper {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  overflow: hidden;
}

.stories-scroll-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0.75rem;
}

.stories-scroll-track::-webkit-scrollbar {
  display: none;
}

.story-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  flex-shrink: 0;
  text-align: center;
  transition: transform 0.2s ease;
}

.story-circle-item:active {
  transform: scale(0.92);
}

.story-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(45deg, #f59e0b, #dc2626, #9333ea);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease;
}

.story-circle-item.active .story-ring {
  background: linear-gradient(45deg, #10b981, #059669);
  transform: scale(1.06);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.story-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  overflow: hidden;
}

.story-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 68px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile Slide-Out App Drawer Menu */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -320px;
  width: 300px;
  background: var(--bg-card);
  z-index: 2001;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

html[dir="ltr"] .mobile-drawer {
  right: auto;
  left: -320px;
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.25);
}

.mobile-drawer.open {
  transform: translateX(-320px);
}

html[dir="ltr"] .mobile-drawer.open {
  transform: translateX(320px);
}

.drawer-header {
  background: linear-gradient(135deg, var(--primary) 0%, #7f1d1d 100%);
  color: #fff;
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drawer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.drawer-body {
  padding: 1rem 0;
  flex: 1;
}

.drawer-section-title {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.drawer-link i {
  width: 22px;
  font-size: 1.1rem;
  color: var(--primary);
  text-align: center;
}

.drawer-link:hover, .drawer-link.active {
  background: var(--bg-subtle);
  color: var(--primary);
}

.drawer-badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 50px;
  font-weight: 700;
}

html[dir="rtl"] .drawer-badge {
  margin-left: 0;
  margin-right: auto;
}

.drawer-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Mobile Media Queries & Breakpoints */
@media (max-width: 768px) {
  body {
    padding-bottom: 75px;
  }

  .mobile-app-nav-bar {
    display: block;
  }

  .top-bar {
    padding: 0.3rem 0;
    font-size: 0.72rem;
  }

  .top-bar .container {
    flex-direction: row;
    padding: 0 0.5rem;
  }

  .top-info {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    scrollbar-width: none;
    justify-content: flex-start;
    align-items: center;
    gap: 0.85rem;
    white-space: nowrap;
  }

  .top-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
  }

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

  .top-controls {
    display: none; /* Accessible in app drawer and header */
  }

  .header-brand-row {
    padding: 0.45rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.4rem;
  }

  .brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
  }

  .brand-emblem-img {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 50%;
  }

  .brand-titles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
  }

  .brand-title-main {
    font-size: 1.15rem;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-subtitle {
    display: none !important; /* Hide long English subtitle on mobile to prevent overlapping */
  }

  .nav-bar {
    display: none; /* Replaced by bottom nav & drawer */
  }

  .btn-report, .header-actions .btn-report {
    display: none !important;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .btn-lang-switch {
    padding: 0.25rem 0.55rem;
    font-size: 0.72rem;
    border-radius: var(--radius-sm);
  }

  .search-trigger-btn {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .mobile-drawer-toggle-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
  }

  .hero-news-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-lead-card {
    min-height: 280px;
  }

  .hero-lead-title {
    font-size: 1.15rem;
  }

  .news-stream-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  /* Compact Horizontal App Feed Cards */
  .news-card-stream {
    display: grid;
    grid-template-columns: 1fr 105px;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
  }

  .news-card-stream .card-img-wrapper {
    height: 90px;
    border-radius: var(--radius-sm);
    order: 2;
  }

  .news-card-stream .card-content {
    order: 1;
    padding: 0;
    justify-content: space-between;
  }

  .news-card-stream .card-title {
    font-size: 0.95rem;
    line-height: 1.35;
    margin-bottom: 0.35rem;
  }

  .news-card-stream .card-summary {
    display: none;
  }

  .news-card-stream .card-meta {
    font-size: 0.72rem;
    padding-top: 0.25rem;
  }

  .mandi-table-card {
    padding: 0.85rem;
  }

  .mandi-table th, .mandi-table td {
    padding: 0.5rem 0.35rem;
    font-size: 0.82rem;
  }
}

.mobile-drawer-toggle-btn {
  display: none;
}

/* LTR Specific Overrides */
html[dir="ltr"] body,
body.ltr-mode {
  direction: ltr;
  text-align: left;
  font-family: var(--font-en);
}

html[dir="ltr"] .brand-title-main {
  font-family: var(--font-en);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

html[dir="ltr"] .urdu-text {
  font-family: var(--font-en) !important;
  line-height: 1.5 !important;
}

html[dir="ltr"] .btn-report {
  font-family: var(--font-en);
}

html[dir="ltr"] .district-chips-bar span {
  margin-left: 0;
  margin-right: 0.5rem;
}

/* ==========================================================================
   Google AdSense High-CTR Placement Styling
   ========================================================================== */
.adsense-slot {
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  text-align: center;
  margin: 1.25rem 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.ad-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.ad-placeholder-content {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 90px;
}

.ad-placeholder-content i {
  font-size: 1.5rem;
  color: #f59e0b;
}

.adsense-leaderboard {
  max-width: 100%;
}

.adsense-infeed {
  margin: 1rem 0;
}

.adsense-sidebar {
  min-height: 300px;
}

