/* ==========================================================================
   H News Portal - Full Page Responsive & Jameel Noori Nastaleeq Stylesheet
   - Full Width / Full Page Immersive Layout (up to 1560px max fluid container)
   - Real Jameel Noori Nastaleeq (جمیل نوری نستعلیق) Web Font
   - Fluid Responsive Typography using CSS clamp()
   - Fully Responsive from 4K / Ultrawide to Laptops, Tablets & Mobile Phones
   ========================================================================== */

/* 1. Jameel Noori Nastaleeq Local & Web Font Face */
@font-face {
  font-family: 'Jameel Noori Nastaleeq';
  src: local('Jameel Noori Nastaleeq'),
       local('JameelNooriNastaleeq'),
       local('Jameel Noori Nastaleeq Kasheeda'),
       url('../fonts/JameelNooriNastaleeq.woff2') format('woff2'),
       url('../fonts/JameelNooriNastaleeq.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jameel Noori Nastaleeq';
  src: local('Jameel Noori Nastaleeq Bold'),
       local('Jameel Noori Nastaleeq'),
       local('JameelNooriNastaleeq'),
       url('../fonts/JameelNooriNastaleeq.woff2') format('woff2'),
       url('../fonts/JameelNooriNastaleeq.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jameel Noori Nastaleeq';
  src: local('Jameel Noori Nastaleeq Bold'),
       local('Jameel Noori Nastaleeq'),
       local('JameelNooriNastaleeq'),
       url('../fonts/JameelNooriNastaleeq.woff2') format('woff2'),
       url('../fonts/JameelNooriNastaleeq.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Official G9 News Network Pakistani Forest Green Theme (Exact Clone from Reference) */
  --primary-red: #075225;
  --dark-red: #06451e;
  --light-red: #0e6b33;
  --red-gradient: linear-gradient(180deg, #075225 0%, #06451e 100%);
  --primary-green: #075225;
  --dark-green: #06451e;
  --light-green: #0e6b33;
  --green-gradient: linear-gradient(180deg, #075225 0%, #06451e 100%);
  --primary-color: #075225;
  --primary-dark: #06451e;
  --primary-light: #0e6b33;
  --topbar-bg: #13171e;
  --body-bg: #f4f5f8;
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
  --border-light: #f1f2f5;
  --text-dark: #111827;
  --text-body: #374151;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  
  /* Typography Variables with Jameel Noori Nastaleeq Priority */
  --font-en: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-urdu: 'Jameel Noori Nastaleeq', 'JameelNooriNastaleeq', 'Noto Nastaliq Urdu', 'Urdu Typesetting', serif;
  --font-naskh: 'Noto Sans Arabic', Tahoma, sans-serif;
  
  /* Fluid Responsive Font Sizes */
  --fs-xs: clamp(9px, 0.7vw + 1px, 11px);
  --fs-sm: clamp(11px, 0.85vw + 1px, 13px);
  --fs-base: clamp(12px, 0.95vw + 1px, 14.5px);
  --fs-md: clamp(13px, 1.1vw + 1px, 16px);
  --fs-lg: clamp(15px, 1.4vw + 1px, 19px);
  --fs-xl: clamp(18px, 1.8vw + 2px, 24px);
  --fs-hero: clamp(19px, 2.2vw + 3px, 29px);
  
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.09);
  --transition: all 0.2s ease-in-out;
}

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

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

body {
  font-family: 'Jameel Noori Nastaleeq', 'JameelNooriNastaleeq', 'Noto Nastaliq Urdu', 'Urdu Typesetting', serif;
  background-color: var(--body-bg);
  color: var(--text-dark);
  line-height: 1.85;
  font-size: var(--fs-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  letter-spacing: normal;
}

/* Site-wide Jameel Noori Nastaleeq Typography */
body, button, input, select, textarea,
h1, h2, h3, h4, h5, h6,
p, a:not(.g9-social-pill),
span:not(.fa):not([class*="fa-"]):not(.pulse-live-pill),
.card-header-red .header-title,
.header-tab-btn,
.ticker-badge,
.ticker-item,
.g9-nav-menu-link,
.g9-nav-dropdown a,
.headline-title,
.side-news-title,
.footer-links a,
.footer-desc,
.copyright-text {
  font-family: 'Jameel Noori Nastaleeq', 'JameelNooriNastaleeq', 'Noto Nastaliq Urdu', 'Urdu Typesetting', serif;
  letter-spacing: normal;
}

/* Ensure FontAwesome icons always use Font Awesome */
.fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands, [class*="fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: var(--transition);
}

input {
  font-family: inherit;
  outline: none;
}

/* ==========================================================================
   FULL PAGE / FULL WIDTH FLUID CONTAINER
   Expands up to 1560px for a rich immersive experience on modern monitors
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 clamp(12px, 2vw, 32px);
}

/* RTL Jameel Noori Nastaleeq Typography Utilities */
.urdu-text {
  font-family: var(--font-urdu);
  direction: rtl;
  text-align: right;
  line-height: 2.15;
  letter-spacing: 0;
}

.urdu-text-compact {
  font-family: var(--font-urdu);
  direction: rtl;
  text-align: right;
  line-height: 1.85;
}

.urdu-naskh {
  font-family: var(--font-naskh);
  direction: rtl;
  text-align: right;
}

.site-section {
  margin-bottom: clamp(16px, 2vw, 28px);
}

/* ==========================================================================
   1. TOP BAR (Date, Time, Weather, Socials, Search)
   ========================================================================== */
.top-bar {
  background-color: var(--topbar-bg);
  color: #d1d5db;
  font-size: var(--fs-xs);
  font-weight: 500;
  height: 32px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
}

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

.top-bar-left {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 16px);
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.top-bar-item i {
  font-size: 11px;
  color: #9ca3af;
}

.top-bar-divider {
  color: #4b5563;
  user-select: none;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-link {
  color: #d1d5db;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.social-link.fa-facebook-f:hover { color: #1877f2; }
.social-link.fa-youtube:hover { color: #ff0000; }
.social-link.fa-x-twitter:hover { color: #ffffff; }
.social-link.fa-instagram:hover { color: #e1306c; }
.social-link.fa-tiktok:hover { color: #25f4ee; }

.search-trigger {
  color: #d1d5db;
  font-size: 12px;
  padding: 3px 6px;
  cursor: pointer;
  transition: var(--transition);
}

.search-trigger:hover {
  color: #ffffff;
}

/* ==========================================================================
   2. BRAND HEADER & HERO BANNER
   ========================================================================== */
.header-main {
  background-color: #ffffff;
  padding: clamp(6px, 1vw, 12px) 0;
  border-bottom: 1px solid #f0f0f0;
  width: 100%;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  gap: 16px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  position: relative;
  z-index: 2;
  text-decoration: none;
}

.logo-visual {
  display: flex;
  align-items: center;
  gap: 6px;
}

.g9-logo-img {
  height: clamp(48px, 4.2vw, 66px);
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.18));
  transition: var(--transition);
}

.logo-area:hover .g9-logo-img {
  transform: scale(1.04);
}

.brand-g9-prefix {
  font-family: var(--font-en);
  font-size: clamp(30px, 3vw, 45px);
  font-weight: 900;
  color: #0b8235;
  letter-spacing: -1px;
  line-height: 0.9;
}

.brand-network-badge {
  background: #0f172a;
  color: #ffffff;
  font-family: var(--font-en);
  font-size: clamp(8.5px, 0.65vw, 10.5px);
  font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 4px;
  align-self: center;
}

.globe-icon {
  width: clamp(44px, 3.8vw, 56px);
  height: clamp(44px, 3.8vw, 56px);
  flex-shrink: 0;
}

.h-badge {
  background: linear-gradient(145deg, #0e6b33, #075225);
  color: #ffffff;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: clamp(32px, 2.8vw, 42px);
  line-height: 1;
  width: clamp(42px, 3.5vw, 52px);
  height: clamp(42px, 3.5vw, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(4, 120, 87, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.brand-news-text {
  font-family: var(--font-en);
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 900;
  letter-spacing: -1.5px;
  color: #111827;
  line-height: 0.9;
}

.logo-tagline {
  font-family: var(--font-en);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: #2b303a;
  letter-spacing: 0.2px;
  margin-top: 4px;
}

/* Header Right Banner (Faisal Mosque, Flag, Calligraphy) */
.header-banner {
  height: clamp(60px, 5.5vw, 84px);
  max-width: clamp(380px, 50vw, 750px);
  flex: 1;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  background: #0f172a;
}

.header-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   3. MAIN NAVIGATION BAR
   ========================================================================== */
.main-navbar {
  background: var(--primary-red);
  height: clamp(38px, 3vw, 44px);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(4, 120, 87, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.main-navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: clamp(2px, 0.5vw, 6px);
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav-item {
  position: relative;
  white-space: nowrap;
}

.nav-link {
  color: #ffffff;
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 8px clamp(8px, 0.8vw, 14px);
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link i.fa-house { font-size: 12px; }
.nav-link i.fa-chevron-down { font-size: 8px; margin-left: 2px; opacity: 0.85; }

.nav-item.active .nav-link,
.nav-link:hover {
  background-color: var(--dark-red);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  color: var(--text-dark);
  min-width: 180px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  padding: 6px 0;
  z-index: 150;
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--primary-red);
}

.nav-dropdown a {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  display: block;
  color: #374151;
  transition: var(--transition);
}

.nav-dropdown a:hover {
  background-color: #f0fdf4;
  color: var(--primary-red);
  padding-left: 18px;
}

.nav-item:hover .nav-dropdown {
  display: flex;
}

.live-tv-btn {
  background: transparent;
  color: #ffffff;
  font-size: var(--fs-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px clamp(10px, 1vw, 16px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.live-tv-btn:hover,
.live-tv-btn.active {
  background-color: #ffffff;
  color: var(--primary-red);
  border-color: #ffffff;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}

/* Master Control Room (MCR) Header Quick Links */
.topbar-mcr-btn {
  background: rgba(4, 120, 87, 0.15);
  color: #34d399;
  border: 1px solid rgba(4, 120, 87, 0.4);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: var(--transition);
}

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

.nav-mcr-btn {
  background: #111827;
  color: #ffffff;
  font-size: var(--fs-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px clamp(8px, 0.8vw, 12px);
  border: 1px solid #374151;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.nav-mcr-btn:hover {
  background: #000000;
  border-color: #ffffff;
  color: #ffffff;
}

.nav-mcr-btn i {
  color: #38bdf8;
}

.emergency-alert-banner {
  background: linear-gradient(90deg, #06451e, #075225, #06451e);
  color: #ffffff;
  padding: 7px 16px;
  text-align: center;
  font-family: var(--font-urdu);
  font-size: var(--fs-md);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  direction: rtl;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.4);
  animation: alertPulse 2s infinite;
  z-index: 1000;
  position: relative;
}

@keyframes alertPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.9; }
}

/* ==========================================================================
   4. BREAKING NEWS TICKER
   ========================================================================== */
.breaking-ticker-wrap {
  margin: clamp(8px, 1vw, 14px) 0;
}

.breaking-ticker {
  background-color: #ffffff;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  display: flex;
  direction: rtl;
  align-items: stretch;
  height: clamp(36px, 2.7vw, 42px);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}

.ticker-badge {
  background: linear-gradient(135deg, #e11d48 0%, #dc2626 55%, #b91c1c 100%) !important;
  color: #ffffff;
  font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif !important;
  font-size: clamp(17px, 1.3vw, 20px) !important;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 0 clamp(18px, 1.8vw, 24px);
  position: relative;
  flex-shrink: 0;
  z-index: 2;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%);
  white-space: nowrap;
  letter-spacing: normal;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.ticker-badge i,
.ticker-badge svg {
  color: #facc15;
  fill: #facc15;
  font-size: 14px;
  animation: bolt-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes bolt-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(250, 204, 21, 0.6)); }
  50% { transform: scale(1.18); filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.95)); }
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  background-color: #ffffff;
  direction: rtl;
}

.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 24px;
  padding: 0 16px;
  animation: ticker-slide-rtl 42s linear infinite;
  will-change: transform;
}

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

@keyframes ticker-slide-rtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif !important;
  font-size: clamp(17px, 1.15vw, 19px) !important;
  color: #1f2937;
  direction: rtl;
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
  line-height: 1.1;
}

.ticker-item:hover { color: #dc2626; }
.ticker-sep { color: #dc2626; font-weight: bold; font-size: 14px; padding: 0 4px; }

/* ==========================================================================
   5. HERO 3-COLUMN SECTION (Fluid Grid)
   ========================================================================== */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(230px, 21%) 1fr minmax(260px, 24%);
  gap: clamp(10px, 1.2vw, 16px);
  align-items: stretch;
  margin-bottom: clamp(14px, 1.5vw, 22px);
}

.card-header-red {
  background: linear-gradient(180deg, #075225 0%, #06451e 100%);
  color: #ffffff;
  padding: clamp(8px, 0.9vw, 13px) clamp(10px, 1.2vw, 18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-bottom: 3px solid #d91a1f;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  min-height: 46px;
}

.card-header-red .header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Jameel Noori Nastaleeq', 'JameelNooriNastaleeq', 'Noto Nastaliq Urdu', var(--font-en), sans-serif;
  font-size: clamp(20px, 1.5vw, 25px);
  font-weight: 800;
  line-height: 1.3;
}

.card-header-red .header-title i {
  font-size: clamp(16px, 1.2vw, 20px);
}

.header-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.header-tab-btn {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: clamp(16px, 1.2vw, 19.5px);
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-family: 'Jameel Noori Nastaleeq', 'JameelNooriNastaleeq', 'Noto Nastaliq Urdu', serif;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
  text-decoration: none;
}

.header-tab-btn.active,
.header-tab-btn:hover {
  background: #ffffff;
  color: #075225;
  font-weight: 800;
  border-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Left: Latest News */
.latest-news-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.latest-news-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.latest-news-item {
  display: flex;
  align-items: center;
  padding: clamp(6px, 0.7vw, 10px) clamp(8px, 0.9vw, 12px);
  gap: 9px;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.latest-news-item:last-child { border-bottom: none; }
.latest-news-item:hover { background-color: #fafbfc; }
.latest-news-item:hover .news-headline { color: var(--primary-red); }

.latest-thumb {
  width: clamp(54px, 4.5vw, 68px);
  height: clamp(38px, 3.2vw, 48px);
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid #e5e7eb;
}

.latest-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.news-headline {
  font-family: var(--font-urdu);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #111827;
  line-height: 1.8;
  direction: rtl;
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition);
}

.news-time {
  font-size: var(--fs-xs);
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 1px;
  direction: rtl;
}

/* Center: Top Story Slider */
.top-story-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000000;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: clamp(230px, 20vw, 320px);
}

.top-story-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary-red);
  color: #ffffff;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.story-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
}

.story-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s;
  display: flex;
  align-items: flex-end;
}

.story-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  height: 100%;
}

.slide-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.75) 45%,
    rgba(0, 0, 0, 0.15) 80%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 2;
}

.slide-content {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: clamp(16px, 2vw, 30px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  direction: rtl;
}

.slide-headline {
  font-family: var(--font-urdu);
  font-size: var(--fs-hero);
  font-weight: 700;
  color: #ffffff;
  line-height: 2.1;
  margin-bottom: 12px;
  max-width: 85%;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.read-full-btn {
  background: var(--primary-red);
  color: #ffffff;
  font-family: var(--font-urdu);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 4px clamp(14px, 1.4vw, 22px);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
  direction: rtl;
}

.read-full-btn:hover {
  background: #10b981;
  transform: translateX(-3px);
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.45);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  z-index: 10;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-arrow:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
}

.slider-arrow.prev { left: 12px; }
.slider-arrow.next { right: 12px; }

.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--primary-red);
  width: 8px;
  height: 8px;
}

/* Right: LIVE TV */
.live-tv-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* G9 LIVE TV HD CARD (Updated from Mockup) */
.live-tv-card.live-tv-card-hd {
  background: transparent;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.live-tv-link-wrapper {
  display: block;
  text-decoration: none;
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.live-tv-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.live-tv-hd-img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  transition: transform 0.28s ease;
}

.live-tv-link-wrapper:hover .live-tv-hd-img {
  transform: scale(1.02);
}

.live-tv-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 12px;
  pointer-events: none;
}

.live-tv-link-wrapper:hover .live-tv-play-overlay {
  opacity: 1;
}

.live-play-pulse-circle {
  width: 58px;
  height: 58px;
  background: rgba(7, 82, 37, 0.92);
  border: 3px solid #ffffff;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  padding-left: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.45);
  animation: play-pulse 1.8s infinite;
}

@keyframes play-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(7, 82, 37, 0.7); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(7, 82, 37, 0); }
}

.live-badge-pulse {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-xs);
  color: #ffffff;
}

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

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.live-screen-wrap {
  position: relative;
  flex: 1;
  background: #000000;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.live-screen-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.live-screen-wrap:hover .live-screen-overlay {
  opacity: 1;
}

.live-play-icon {
  width: 48px;
  height: 48px;
  background: rgba(4, 120, 87, 0.9);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.live-screen-wrap:hover .live-play-icon {
  transform: scale(1.1);
}

.live-screen-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  z-index: 5;
  transition: var(--transition);
}

.live-screen-arrow.left { left: 8px; }
.live-screen-arrow.right { right: 8px; }

.live-watch-btn {
  background: var(--primary-red);
  color: #ffffff;
  font-size: var(--fs-sm);
  font-weight: 700;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.live-watch-btn:hover {
  background: var(--dark-red);
}

/* ==========================================================================
   6. QUICK CATEGORY ICONS BAR (Strict 1-Line 11-Column Layout)
   ========================================================================== */
.category-filter-bar {
  margin-bottom: clamp(14px, 1.4vw, 22px);
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 8px;
}

.category-filter-bar::-webkit-scrollbar {
  display: none;
}

.category-filter-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(8px, 0.8vw, 12px);
  width: 100%;
  min-width: 0;
}

.cat-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3.5px solid #cbd5e1;
  border-radius: 13px;
  padding: 9px 4px 7px;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  text-align: center;
  min-width: 0;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.cat-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
}

.cat-btn-icon {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.cat-btn:hover .cat-btn-icon {
  transform: scale(1.1);
}

.cat-btn-label,
.cat-btn .cat-btn-label {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

/* Individual Category Top Border Accents */
.cat-card-popular {
  border-top: 3.5px solid #ef4444;
}
.cat-card-popular:hover {
  border-color: #ef4444;
}

.cat-card-pakistan {
  border-top: 3.5px solid #15803d;
}
.cat-card-pakistan:hover {
  border-color: #15803d;
}

.cat-card-world {
  border-top: 3.5px solid #4f46e5;
}
.cat-card-world:hover {
  border-color: #4f46e5;
}

.cat-card-sports {
  border-top: 3.5px solid #f59e0b;
}
.cat-card-sports:hover {
  border-color: #f59e0b;
}

.cat-card-business {
  border-top: 3.5px solid #0284c7;
}
.cat-card-business:hover {
  border-color: #0284c7;
}

.cat-card-entertainment {
  border-top: 3.5px solid #1e293b;
}
.cat-card-entertainment:hover {
  border-color: #1e293b;
}

.cat-card-technology {
  border-top: 3.5px solid #2563eb;
}
.cat-card-technology:hover {
  border-color: #2563eb;
}

.cat-card-health {
  border-top: 3.5px solid #e11d48;
}
.cat-card-health:hover {
  border-color: #e11d48;
}

.cat-card-lifestyle {
  border-top: 3.5px solid #10b981;
}
.cat-card-lifestyle:hover {
  border-color: #10b981;
}

.cat-card-videos {
  border-top: 3.5px solid #dc2626;
}
.cat-card-videos:hover {
  border-color: #dc2626;
}

.cat-card-gallery {
  border-top: 3.5px solid #0284c7;
}
.cat-card-gallery:hover {
  border-color: #0284c7;
}

/* Active "All News" Card */
.cat-btn.active,
.cat-card-all.active {
  background: linear-gradient(180deg, #075225 0%, #033a18 100%) !important;
  border: 1px solid #075225 !important;
  border-bottom: 3.5px solid #dc2626 !important;
  border-top: 1px solid #075225 !important;
  box-shadow: 0 4px 14px rgba(7, 82, 37, 0.35) !important;
}

.cat-btn.active .cat-btn-icon,
.cat-btn.active .cat-btn-label {
  color: #ffffff !important;
}

.cat-btn.active .cat-btn-icon i {
  color: #ffffff !important;
}

.cat-flag-icon {
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  border-radius: 2px;
}

/* ==========================================================================
   7. 4-COLUMN BOTTOM SECTION (Popular News, Sports, Videos, Newsletter)
   Strictly Equal-Sized Category Boxes (repeat(4, 1fr))
   ========================================================================== */
.bottom-section-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 identical equal-width boxes */
  gap: clamp(10px, 1.2vw, 16px);
  margin-bottom: clamp(18px, 2vw, 28px);
  align-items: stretch;
}

.bottom-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  height: 100%;
}

.view-all-link {
  color: #ffffff;
  font-size: var(--fs-xs);
  font-weight: 600;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 4px;
}

.view-all-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ==========================================================================
   7. 4-COLUMN BOTTOM SECTION (Popular News, Sports, Videos, Newsletter)
   With 10-Second Auto-Rotation, Enlarged Thumbnails, and High-Readability Urdu
   ========================================================================== */

/* Shared Header Actions & Indicators */
.card-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slide-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.24);
  padding: 3px 6px;
  border-radius: 12px;
}

.slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-dot:hover {
  background: rgba(255, 255, 255, 0.85);
}

.slide-dot.active {
  width: 15px;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

/* Slider Track & Slide */
.rotating-slider-container {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 275px;
}

.section-slide {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  flex: 1;
  justify-content: space-between;
}

.section-slide.active {
  display: flex;
  animation: slideFadeIn 0.45s ease-out forwards;
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Common News Item Layout (Thumbnail Left, RTL Text Middle, Rank/Badge Right) */
.popular-row-item,
.sports-card-item,
.video-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  direction: ltr;
  background: #ffffff;
}

.popular-row-item:last-child,
.sports-card-item:last-child,
.video-item:last-child {
  border-bottom: none;
}

.popular-row-item:hover,
.sports-card-item:hover,
.video-item:hover {
  background-color: #f8fafc;
}

/* Large Modern Thumbnails (100px x 68px) */
.card-thumb-wrap {
  position: relative;
  width: clamp(92px, 7.5vw, 105px);
  height: clamp(62px, 5.2vw, 70px);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  background: #0f172a;
}

.popular-thumb,
.sports-sub-thumb,
.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.popular-row-item:hover .popular-thumb,
.sports-card-item:hover .sports-sub-thumb,
.video-item:hover .video-thumb-img {
  transform: scale(1.06);
}

/* Category Tag on Sports Thumb */
.category-pill-tag {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(7, 82, 37, 0.95);
  color: #ffffff;
  font-family: var(--font-urdu), serif;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  line-height: 1.3;
}

/* Info Box & RTL Urdu Text */
.popular-info,
.sports-sub-info,
.video-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  direction: rtl;
  text-align: right;
  justify-content: center;
}

/* Urdu Title Styling — Clear, Legible Nastaleeq, 2 Lines Allowed */
.popular-title,
.sports-item-title,
.video-title {
  font-family: var(--font-urdu), 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
  font-size: 15.5px;
  font-weight: 700;
  color: #111827;
  line-height: 1.68;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 2px 0;
  transition: color 0.2s ease;
}

.popular-row-item:hover .popular-title,
.sports-card-item:hover .sports-item-title,
.video-item:hover .video-title {
  color: var(--primary-red);
}

/* Meta Data / Time / Views */
.item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
  margin-top: 2px;
}

.popular-time,
.sports-sub-time,
.video-meta {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.popular-time i,
.sports-sub-time i,
.video-meta i {
  color: #94a3b8;
  font-size: 10px;
}

.views-tag {
  font-size: 10.5px;
  color: #075225;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
  background: #ecfdf5;
  padding: 1px 5px;
  border-radius: 3px;
}

/* Rank Badge in Popular News (Distinct Green Circle) */
.rank-badge {
  background: var(--primary-red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(7, 82, 37, 0.35);
}

/* Video Player Thumbnail Overlay */
.video-thumb-wrap {
  position: relative;
  width: clamp(92px, 7.5vw, 105px);
  height: clamp(62px, 5.2vw, 70px);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
  border: 1px solid #334155;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  padding-left: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, background-color 0.2s ease;
  z-index: 2;
}

.video-item:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background: #ef4444;
}

.video-duration {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
  z-index: 2;
}

/* Column 4: Newsletter & Community Hub */
.newsletter-content {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 6px;
}

.newsletter-text {
  font-family: var(--font-urdu);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #374151;
  line-height: 1.6;
  direction: rtl;
  text-align: center;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.newsletter-input {
  border: 1px solid var(--border-color);
  border-radius: 3px;
  padding: 5px 8px;
  font-size: var(--fs-xs);
  text-align: right;
  direction: rtl;
  font-family: var(--font-urdu);
  background: #fafafa;
}

.newsletter-input:focus {
  background: #ffffff;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 2px rgba(4, 120, 87, 0.15);
}

.subscribe-btn {
  background: var(--primary-red);
  color: #ffffff;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

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

.poll-box {
  background: #f0fdf4;
  border: 1px dashed #86efac;
  border-radius: 4px;
  padding: 6px 8px;
  direction: rtl;
  text-align: right;
}

.poll-heading {
  font-family: var(--font-urdu);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 2px;
}

.poll-question {
  font-family: var(--font-urdu);
  font-size: var(--fs-xs);
  color: #1f2937;
  line-height: 1.5;
  margin-bottom: 5px;
}

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

.poll-opt-btn {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 3px 6px;
  font-family: var(--font-urdu);
  font-size: 11px;
  border-radius: 3px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.poll-opt-btn:hover {
  background: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
}

.follow-section {
  border-top: 1px solid var(--border-light);
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.follow-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: #111827;
  text-align: center;
}

.follow-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.follow-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 11px;
  transition: var(--transition);
}

.follow-icon:hover {
  transform: translateY(-2px);
}

.follow-fb { background: #1877f2; }
.follow-yt { background: #ff0000; }
.follow-x  { background: #000000; }
.follow-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.follow-tt { background: #000000; }

/* ==========================================================================
   8. FINANCIAL & PSX MARKET TICKER STRIP (Live Smooth Infinite Moving Ticker)
   ========================================================================== */
.market-ticker-strip {
  background: #111827;
  border: 1px solid #1f2937;
  color: #ffffff;
  border-radius: var(--radius-sm);
  margin-bottom: clamp(16px, 2vw, 24px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  height: clamp(38px, 3vw, 44px);
  overflow: hidden; /* Absolutely no scrollbars */
  width: 100%;
  position: relative;
}

.market-ticker-label {
  background: var(--primary-red);
  color: #ffffff;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0 clamp(10px, 1.2vw, 16px);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 10;
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.35);
  position: relative;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: marketPulse 1.6s infinite ease-in-out;
}

@keyframes marketPulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.75);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.live-tag {
  background: #ffffff;
  color: var(--primary-red);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 1px 5px;
  border-radius: 2px;
  animation: blinkLive 2s infinite ease-in-out;
}

@keyframes blinkLive {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.market-ticker-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  cursor: pointer;
  direction: ltr; /* Keeps translation vector consistent across browsers */
  mask-image: linear-gradient(to right, transparent 0%, black 28px, black calc(100% - 28px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 28px, black calc(100% - 28px), transparent 100%);
}

.market-ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: marketScroll 34s linear infinite;
  will-change: transform;
}

/* Pause smoothly when user hovers */
.market-ticker-strip:hover .market-ticker-track,
.market-ticker-viewport:hover .market-ticker-track {
  animation-play-state: paused;
}

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

.market-ticker-group {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 32px);
  padding: 0 clamp(10px, 1.2vw, 16px);
  flex-shrink: 0;
}

.market-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
  direction: rtl; /* Urdu label and values read properly */
}

.market-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.market-name {
  color: #94a3b8;
  font-family: var(--font-urdu);
  font-weight: 600;
  font-size: var(--fs-xs);
}

.market-val {
  font-weight: 700;
  color: #ffffff;
  font-size: var(--fs-sm);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.market-change {
  font-size: var(--fs-xs);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: all 0.3s ease;
}

.market-change.up {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
}

.market-change.down {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.market-change.neutral {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
}

/* Dynamic Live Ticking Flashes */
.market-item.flash-up {
  background: rgba(34, 197, 94, 0.28) !important;
  border-color: #22c55e !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.55);
}

.market-item.flash-up .market-val {
  color: #4ade80 !important;
}

.market-item.flash-down {
  background: rgba(239, 68, 68, 0.28) !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.55);
}

.market-item.flash-down .market-val {
  color: #f87171 !important;
}

/* ==========================================================================
   9. DEDICATED MEGA VIDEO HUB (Fluid Grid)
   ========================================================================== */
.video-hub-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.4fr) minmax(280px, 1fr);
  gap: clamp(10px, 1.2vw, 16px);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: clamp(10px, 1.2vw, 16px);
  box-shadow: var(--shadow-sm);
}

.featured-video-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000000;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.featured-video-img {
  width: 100%;
  height: clamp(220px, 20vw, 340px);
  object-fit: cover;
  transition: var(--transition);
}

.featured-video-card:hover .featured-video-img { transform: scale(1.03); }

.featured-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(12px, 1.5vw, 20px);
}

.featured-video-badge {
  align-self: flex-start;
  background: var(--primary-red);
  color: #ffffff;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.featured-video-center-play {
  align-self: center;
  width: clamp(48px, 4.5vw, 64px);
  height: clamp(48px, 4.5vw, 64px);
  border-radius: 50%;
  background: rgba(4, 120, 87, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(16px, 1.8vw, 24px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  transition: var(--transition);
}

.featured-video-card:hover .featured-video-center-play {
  transform: scale(1.15);
  background: var(--primary-red);
}

.featured-video-info {
  direction: rtl;
  text-align: right;
}

.featured-video-title {
  font-family: var(--font-urdu);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #ffffff;
  line-height: 2.1;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.featured-video-meta {
  color: #d1d5db;
  font-size: var(--fs-xs);
  display: flex;
  align-items: center;
  gap: 14px;
}

.video-hub-playlist {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: clamp(5px, 0.6vw, 8px);
  border-radius: 4px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}

.playlist-item:hover {
  background: #fef2f2;
  border-color: #fecaca;
  transform: translateX(-3px);
}

.playlist-thumb-box {
  position: relative;
  width: clamp(75px, 7vw, 105px);
  height: clamp(46px, 4.2vw, 62px);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000000;
}

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

.playlist-thumb-box .play-mini {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 13px;
}

.playlist-thumb-box .duration {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-size: 8px;
  padding: 1px 3px;
  border-radius: 2px;
}

.playlist-info {
  direction: rtl;
  text-align: right;
  flex: 1;
}

.playlist-title {
  font-family: var(--font-urdu);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #1f2937;
  line-height: 1.8;
  transition: var(--transition);
}

.playlist-item:hover .playlist-title { color: var(--primary-red); }
.playlist-views { font-size: var(--fs-xs); color: #9ca3af; margin-top: 2px; }

/* ==========================================================================
   10. RECREATED: NATIONAL & PROVINCIAL 70/30 NEWS HUB
   ========================================================================== */
.news-hub-70-30 {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: clamp(12px, 1.4vw, 18px);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: clamp(12px, 1.4vw, 18px);
  box-shadow: var(--shadow-sm);
}

.hub-main-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Mega Lead Article */
.mega-lead-article {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  transition: var(--transition);
  cursor: pointer;
}

.mega-lead-article:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-red);
}

.mega-lead-thumb-wrap {
  position: relative;
  width: 100%;
  height: clamp(220px, 20vw, 320px);
  overflow: hidden;
  background: #000000;
}

.mega-lead-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.mega-lead-article:hover .mega-lead-thumb {
  transform: scale(1.04);
}

.mega-lead-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary-red);
  color: #ffffff;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.mega-lead-body {
  padding: clamp(12px, 1.4vw, 18px);
  direction: rtl;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-lead-title {
  font-family: var(--font-urdu);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: #111827;
  line-height: 2.0;
  transition: var(--transition);
}

.mega-lead-article:hover .mega-lead-title {
  color: var(--primary-red);
}

.mega-lead-excerpt {
  font-family: var(--font-urdu);
  font-size: var(--fs-base);
  color: #4b5563;
  line-height: 2.1;
}

.mega-lead-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: #6b7280;
  border-top: 1px solid #f3f4f6;
  padding-top: 10px;
  margin-top: 4px;
}

.mega-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-btn-wa {
  background: #25d366;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* 3-Column Regional Subgrid */
.regional-subgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sub-news-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
  transition: var(--transition);
  cursor: pointer;
}

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

.sub-news-thumb-wrap {
  position: relative;
  width: 100%;
  height: clamp(105px, 9vw, 135px);
  overflow: hidden;
}

.sub-news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.sub-news-card:hover .sub-news-thumb {
  transform: scale(1.05);
}

.sub-news-city-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(17, 24, 39, 0.85);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 2px;
}

.sub-news-body {
  padding: 8px 10px;
  direction: rtl;
  text-align: right;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sub-news-title {
  font-family: var(--font-urdu);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #1f2937;
  line-height: 1.8;
  margin-bottom: 6px;
  transition: var(--transition);
}

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

.sub-news-time {
  font-size: 10px;
  color: #9ca3af;
}

/* Sidebar Column (Trending + WhatsApp Join) */
.hub-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-widget {
  background: #fafafa;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.sidebar-widget-header {
  background: #1e242d;
  color: #ffffff;
  font-size: var(--fs-sm);
  font-weight: 700;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trending-list {
  display: flex;
  flex-direction: column;
  padding: 6px 10px;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid #f1f2f5;
  direction: rtl;
  cursor: pointer;
  transition: var(--transition);
}

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

.trending-num {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 900;
  color: var(--primary-red);
  width: 20px;
  flex-shrink: 0;
  text-align: center;
}

.trending-title {
  font-family: var(--font-urdu);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #1f2937;
  line-height: 1.7;
  flex: 1;
}

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

.whatsapp-card {
  background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
  color: #ffffff;
  padding: 16px;
  border-radius: 6px;
  direction: rtl;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.whatsapp-card h4 {
  font-family: var(--font-urdu);
  font-size: var(--fs-md);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.whatsapp-card p {
  font-family: var(--font-urdu);
  font-size: var(--fs-xs);
  line-height: 1.8;
  opacity: 0.95;
}

.whatsapp-join-btn {
  background: #ffffff;
  color: #075e54;
  font-size: var(--fs-sm);
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.whatsapp-join-btn:hover {
  background: #25d366;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   11. BUSINESS & LIVE CURRENCY DASHBOARD
   ========================================================================== */
.biz-dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(12px, 1.4vw, 18px);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: clamp(12px, 1.4vw, 18px);
  box-shadow: var(--shadow-sm);
}

.biz-stories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.biz-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
  transition: var(--transition);
  cursor: pointer;
}

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

.biz-thumb-wrap {
  width: 100%;
  height: clamp(125px, 11vw, 160px);
  overflow: hidden;
}

.biz-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.biz-card:hover .biz-thumb {
  transform: scale(1.05);
}

.biz-body {
  padding: 10px;
  direction: rtl;
  text-align: right;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.biz-title {
  font-family: var(--font-urdu);
  font-size: var(--fs-md);
  font-weight: 700;
  color: #111827;
  line-height: 1.85;
  margin-bottom: 6px;
  transition: var(--transition);
}

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

.biz-desc {
  font-family: var(--font-urdu);
  font-size: var(--fs-xs);
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 8px;
}

/* Currency & Gold Rates Table Card */
.currency-rates-card {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #fdfdfd;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.currency-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-xs);
}

.currency-table th {
  background: #f3f4f6;
  color: #374151;
  padding: 6px 10px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.currency-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #f3f4f6;
  color: #1f2937;
}

.currency-table tr:hover {
  background-color: #fef2f2;
}

.gold-rates-box {
  background: #fffbeb;
  border-top: 2px solid #f59e0b;
  padding: 10px 12px;
  direction: rtl;
  text-align: right;
  margin-top: auto;
}

.gold-rates-title {
  font-family: var(--font-urdu);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #b45309;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.gold-price-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: #78350f;
  padding: 2px 0;
}

/* ==========================================================================
   12. G9 REELS & WEB STORIES (9:16 Vertical Video Carousel)
   ========================================================================== */
.reels-carousel-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(8px, 1vw, 14px);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: clamp(10px, 1.2vw, 16px);
  box-shadow: var(--shadow-sm);
}

.reel-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  overflow: hidden;
  background: #000000;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.reel-card:hover {
  border-color: var(--primary-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.reel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.reel-card:hover .reel-img {
  transform: scale(1.06);
}

.reel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.4) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
}

.reel-badge-top {
  align-self: flex-start;
  background: rgba(4, 120, 87, 0.9);
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.reel-center-play {
  align-self: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.reel-card:hover .reel-center-play {
  transform: scale(1.15);
  background: var(--primary-red);
  color: #ffffff;
}

.reel-bottom-info {
  direction: rtl;
  text-align: right;
}

.reel-title {
  font-family: var(--font-urdu);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   13. FACT CHECK & SPECIAL INVESTIGATIONS
   ========================================================================== */
.fact-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 1.2vw, 16px);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: clamp(12px, 1.4vw, 18px);
  box-shadow: var(--shadow-sm);
}

.fact-check-card {
  display: flex;
  gap: 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  background: #fbfbfb;
  padding: 10px;
  transition: var(--transition);
  cursor: pointer;
}

.fact-check-card:hover {
  background: #ffffff;
  box-shadow: var(--shadow-md);
  border-color: var(--primary-red);
}

.fact-check-thumb-wrap {
  position: relative;
  width: 140px;
  height: 100px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.fact-check-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fact-check-body {
  direction: rtl;
  text-align: right;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fact-stamp {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: var(--font-urdu);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fact-stamp.misleading {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #f87171;
}

.fact-stamp.investigation {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #60a5fa;
}

.fact-check-title {
  font-family: var(--font-urdu);
  font-size: var(--fs-md);
  font-weight: 700;
  color: #111827;
  line-height: 1.8;
  margin: 4px 0;
}

.fact-check-footer {
  font-size: 10px;
  color: #6b7280;
}

/* ==========================================================================
   14. LIVE CITY WEATHER FORECAST STRIP
   ========================================================================== */
.weather-forecast-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(8px, 1vw, 12px);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: clamp(10px, 1.2vw, 16px);
  box-shadow: var(--shadow-sm);
}

.city-weather-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.city-weather-card:hover {
  background: #ffffff;
  border-color: var(--primary-red);
  transform: translateY(-2px);
}

.city-name {
  font-family: var(--font-urdu);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.weather-icon-box {
  font-size: 22px;
  color: #f59e0b;
  margin: 4px 0;
}

.weather-temp {
  font-size: 16px;
  font-weight: 800;
  color: #1f2937;
}

.weather-condition {
  font-family: var(--font-urdu);
  font-size: 10.5px;
  color: #6b7280;
}

/* ==========================================================================
   15. TECH, WORLD, SHOWBIZ & COLUMNISTS
   ========================================================================== */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.2vw, 16px);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: clamp(10px, 1.2vw, 16px);
  box-shadow: var(--shadow-sm);
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.2vw, 16px);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: clamp(10px, 1.2vw, 16px);
  box-shadow: var(--shadow-sm);
}

/* Dual Column: Opinions and Weather Side-by-Side */
.opinion-weather-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
  margin-bottom: clamp(16px, 2vw, 26px);
  direction: rtl;
  align-items: stretch;
}

.opinion-weather-dual-grid .dual-col-item {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.opinion-weather-dual-grid .columnists-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(8px, 1vw, 12px);
  flex: 1;
  height: 100%;
}

.opinion-weather-dual-grid .weather-forecast-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1vw, 12px);
  flex: 1;
  height: 100%;
}

@media (max-width: 992px) {
  .opinion-weather-dual-grid {
    grid-template-columns: 1fr;
  }
}

.columnists-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.2vw, 16px);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: clamp(12px, 1.4vw, 18px);
  box-shadow: var(--shadow-sm);
}

.columnist-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: clamp(8px, 1vw, 12px);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: #fafafa;
  transition: var(--transition);
  cursor: pointer;
  direction: rtl;
}

.columnist-card:hover {
  background: #fff5f5;
  border-color: #fca5a5;
  transform: translateY(-2px);
}

.columnist-avatar-wrap {
  position: relative;
  width: clamp(48px, 4vw, 60px);
  height: clamp(48px, 4vw, 60px);
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary-red);
  flex-shrink: 0;
}

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

.columnist-info {
  flex: 1;
  text-align: right;
}

.columnist-name {
  font-family: var(--font-urdu);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--primary-red);
  line-height: 1.4;
}

.columnist-title {
  font-family: var(--font-urdu);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #1f2937;
  line-height: 1.7;
  margin-top: 2px;
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 1vw, 14px);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: clamp(10px, 1.2vw, 16px);
  box-shadow: var(--shadow-sm);
}

.gallery-item {
  position: relative;
  height: clamp(130px, 12vw, 180px);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0) 65%);
  display: flex;
  align-items: flex-end;
  padding: 10px;
  direction: rtl;
  text-align: right;
}

.gallery-caption {
  font-family: var(--font-urdu);
  color: #ffffff;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   CATEGORY PAGES LAYOUT (Pakistan, World, Business, Sports, Tech, etc.)
   ========================================================================== */
.category-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: clamp(14px, 1.8vw, 24px);
  margin-bottom: clamp(24px, 3vw, 40px);
}

.category-lead-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.category-lead-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-red);
}

.category-lead-img-box {
  position: relative;
  width: 100%;
  height: clamp(220px, 22vw, 360px);
  overflow: hidden;
  background: #000000;
}

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

.category-lead-card:hover .category-lead-img {
  transform: scale(1.03);
}

.category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary-red);
  color: #ffffff;
  font-family: var(--font-urdu);
  font-size: 13px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.category-lead-body {
  padding: clamp(14px, 1.5vw, 22px);
  direction: rtl;
  text-align: right;
}

.category-lead-title {
  font-family: var(--font-urdu);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  color: #111827;
  line-height: 1.6;
  margin-bottom: 8px;
  transition: var(--transition);
}

.category-lead-card:hover .category-lead-title {
  color: var(--primary-red);
}

.category-lead-summary {
  font-family: var(--font-urdu);
  font-size: var(--fs-md);
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 14px;
}

.category-lead-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--fs-xs);
  color: #9ca3af;
  border-top: 1px solid #f3f4f6;
  padding-top: 10px;
}

.category-stories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
}

/* Op-ed / Columnist Card */
.columnist-full-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  direction: rtl;
  text-align: right;
}

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

.columnist-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
}

.columnist-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-red);
}

.column-title {
  font-family: var(--font-urdu);
  font-size: var(--fs-md);
  font-weight: 700;
  color: #111827;
  line-height: 1.7;
  margin-bottom: 6px;
}

.column-excerpt {
  font-family: var(--font-urdu);
  font-size: var(--fs-sm);
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 8px;
}

.column-date {
  font-size: 11px;
  color: #9ca3af;
}

/* Video Card in Videos Page */
.category-videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.featured-video-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

.featured-video-item:hover {
  border-color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.video-card-thumb-wrap {
  position: relative;
  width: 100%;
  height: 170px;
  background: #000000;
  overflow: hidden;
}

.video-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-video-item:hover .video-card-thumb {
  transform: scale(1.05);
}

.video-card-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(4, 120, 87, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: var(--transition);
}

.featured-video-item:hover .video-card-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--primary-red);
}

.video-card-dur {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

.video-card-info {
  padding: 12px;
  direction: rtl;
  text-align: right;
}

.video-cat-tag {
  background: rgba(4, 120, 87, 0.1);
  color: var(--primary-red);
  font-family: var(--font-urdu);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 6px;
}

.video-card-title {
  font-family: var(--font-urdu);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #111827;
  line-height: 1.6;
  margin-bottom: 6px;
}

.video-card-views {
  font-size: 11px;
  color: #9ca3af;
  display: block;
}

@media (max-width: 900px) {
  .category-page-layout {
    grid-template-columns: 1fr;
  }
  .category-stories-grid,
  .category-videos-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   16. COMPREHENSIVE FOOTER & MODALS
   ========================================================================== */
.site-footer {
  background: #11141a;
  color: #9ca3af;
  padding: clamp(24px, 3vw, 40px) 0 clamp(16px, 2vw, 24px) 0;
  border-top: 3px solid var(--primary-red);
  font-size: var(--fs-sm);
  width: 100%;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-text {
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.footer-slogan {
  font-family: var(--font-urdu);
  color: #e5e7eb;
  font-size: var(--fs-md);
  direction: rtl;
}

.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(14px, 2vw, 30px);
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  direction: rtl;
  text-align: right;
}

.footer-col h4 {
  color: #ffffff;
  font-family: var(--font-urdu);
  font-size: var(--fs-md);
  margin-bottom: 12px;
  border-right: 3px solid var(--primary-red);
  padding-right: 8px;
}

.footer-col p {
  font-family: var(--font-urdu);
  line-height: 2.1;
  color: #9ca3af;
  font-size: var(--fs-sm);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-col ul a {
  color: #9ca3af;
  font-family: var(--font-urdu);
  font-size: var(--fs-sm);
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: #ffffff;
  padding-right: 5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  color: #6b7280;
  font-size: var(--fs-xs);
}

.footer-links {
  display: flex;
  gap: 16px;
  list-style: none;
}

.footer-links a {
  color: #9ca3af;
  font-size: var(--fs-xs);
}

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

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #181b22;
  border-radius: 8px;
  width: 100%;
  max-width: 820px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.modal-header {
  background: var(--primary-red);
  color: #ffffff;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

.modal-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  background: #000000;
}

.modal-video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-footer {
  padding: 12px 18px;
  background: #11141a;
  color: #d1d5db;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
}

.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-left: 4px solid var(--primary-red);
  font-family: var(--font-urdu);
  direction: rtl;
  font-size: var(--fs-sm);
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

.search-modal.active {
  display: flex;
}

.search-box-wrap {
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.search-input-row {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
}

.search-input-row input {
  flex: 1;
  font-size: 16px;
  border: none;
  font-family: var(--font-urdu);
}

.search-input-row button {
  color: var(--primary-red);
  font-size: 18px;
}

/* ==========================================================================
   17. RESPONSIVE MEDIA QUERIES (Mobile, Tablet, Desktop)
   ========================================================================== */
@media (max-width: 1280px) {
  .hero-grid {
    grid-template-columns: minmax(220px, 25%) 1fr minmax(240px, 27%);
  }
  .bottom-section-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .news-hub-70-30 {
    grid-template-columns: 1.8fr 1fr;
  }
  .biz-dashboard-grid {
    grid-template-columns: 1.6fr 1fr;
  }
}

@media (max-width: 1080px) {
  .bottom-section-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .header-main .container {
    flex-wrap: wrap;
  }
  .header-banner {
    width: 100%;
    max-width: 100%;
    height: 70px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .latest-news-card { order: 2; }
  .top-story-card { order: 1; min-height: 280px; }
  .live-tv-card { order: 3; min-height: 240px; }
  .bottom-section-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-hub-70-30,
  .biz-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .regional-subgrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reels-carousel-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-grid-4,
  .card-grid-3,
  .columnists-grid,
  .photo-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .video-hub-grid {
    grid-template-columns: 1fr;
  }
  .weather-forecast-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .top-bar {
    display: none;
  }
  .header-main .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .category-filter-grid {
    display: flex;
    flex-wrap: nowrap;
    min-width: max-content;
    gap: 6px;
    width: auto;
  }
  .bottom-section-grid,
  .regional-subgrid,
  .biz-stories-grid,
  .fact-check-grid,
  .card-grid-4,
  .card-grid-3,
  .columnists-grid,
  .photo-gallery-grid,
  .weather-forecast-grid {
    grid-template-columns: 1fr;
  }
  .reels-carousel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-cols {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ==========================================================================
   OFFICIAL G9 NEWS NETWORK PURE HD BROADCAST HEADER & ANIMATION ENGINE
   ========================================================================== */
.g9-cloned-header,
.g9-hd-header {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 240;
  min-height: 110px;
  max-height: 240px;
  overflow: hidden;
  background: #ffffff url('../images/g9_header_bg_landmarks.jpg') center/cover no-repeat;
  border-bottom: 3.5px solid #075225;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.g9-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #dc2626 0%, #16a34a 50%, #dc2626 100%);
  z-index: 15;
}

#g9-header-canvas,
.g9-hd-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* HTML Overlay for interactive elements */
.g9-hd-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 50px);
  pointer-events: none;
  z-index: 10;
  direction: ltr; /* Keeps Left on Left, Right on Right */
}

/* Left Group: Search Bar and Live TV Button */
.g9-overlay-left {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 16px);
  pointer-events: auto;
  margin-left: clamp(10px, 2.5vw, 45px);
}

.g9-search-capsule {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 50px;
  padding: 3px 6px 3px 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(22, 163, 74, 0.25);
  border: 1.5px solid #16a34a;
  width: clamp(150px, 15vw, 250px);
  height: clamp(34px, 3.2vw, 44px);
  transition: all 0.25s ease;
}
.g9-search-capsule:focus-within {
  box-shadow: 0 6px 22px rgba(22, 163, 74, 0.3), 0 0 0 2px #16a34a;
  width: clamp(170px, 17vw, 275px);
}

.g9-search-input {
  border: none;
  background: transparent;
  width: 100%;
  font-family: var(--font-urdu), 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
  font-size: clamp(14px, 1.15vw, 17.5px);
  color: #0f172a;
  outline: none;
  direction: rtl;
  text-align: right;
}
.g9-search-input::placeholder {
  color: #64748b;
}

.g9-search-btn {
  width: clamp(28px, 2.5vw, 36px);
  height: clamp(28px, 2.5vw, 36px);
  border-radius: 50%;
  background: #075225;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.g9-search-btn:hover { 
  background: #16a34a; 
  transform: scale(1.06);
}
.g9-search-btn svg,
.g9-search-btn i {
  width: 14px;
  height: 14px;
  font-size: 13px;
  fill: #ffffff;
  color: #ffffff;
}

.g9-livetv-pill {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  padding: 5px clamp(12px, 1.3vw, 20px);
  border-radius: 50px;
  font-family: var(--font-urdu), 'Jameel Noori Nastaleeq', serif;
  font-size: clamp(15px, 1.25vw, 19px);
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}
.g9-livetv-pill:hover { 
  transform: translateY(-1px) scale(1.04); 
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.65);
  color: #ffffff;
}
.g9-livetv-pill svg,
.g9-livetv-pill i {
  width: 15px;
  height: 15px;
  font-size: 15px;
  fill: #ffffff;
  color: #ffffff;
}

/* Right Group: Channel Identity (Clickable Link to Home) */
.g9-overlay-right {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 24px);
  pointer-events: auto;
  text-decoration: none;
  direction: rtl; /* Logo on far right, Urdu text to its left */
  margin-right: clamp(10px, 2.5vw, 40px);
}

.g9-logo-frame {
  width: clamp(56px, 5.5vw, 92px);
  height: clamp(68px, 6.6vw, 110px);
  background: #ffffff;
  border-radius: 8px;
  padding: 3px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), 0 0 0 1.5px #16a34a;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.g9-overlay-right:hover .g9-logo-frame { 
  transform: scale(1.04); 
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35);
}

.g9-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: high-quality;
}

.g9-brand-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.g9-main-urdu-title {
  font-family: var(--font-urdu), 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
  font-size: clamp(26px, 2.7vw, 48px);
  font-weight: 800;
  color: #065f2a;
  line-height: 1.15;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 1px rgba(6, 95, 42, 0.4);
  white-space: nowrap;
  transition: color 0.2s;
}
.g9-overlay-right:hover .g9-main-urdu-title {
  color: #047857;
}

.g9-main-en-sub {
  font-family: var(--font-en), 'Inter', -apple-system, sans-serif;
  font-size: clamp(9px, 0.85vw, 14px);
  font-weight: 800;
  color: #16a34a;
  letter-spacing: clamp(2px, 0.28vw, 4px);
  margin-top: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}


/* ==========================================================================
   CLONED NAVIGATION BAR (MATCHES EXACT MOCKUP)
   ========================================================================== */
.g9-cloned-navbar {
  background: linear-gradient(180deg, #075225 0%, #06451e 100%);
  border-bottom: 3.5px solid #d91a1f;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  direction: ltr;
}

.g9-navbar-container {
  max-width: 1540px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 52px;
  direction: ltr;
}

/* English Side (LEFT): Circular Social Media Icons */
.g9-nav-socials {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  direction: ltr;
}

/* Urdu Side (RIGHT): Home Button on far right + Urdu links reading RTL */
.g9-nav-right {
  display: flex;
  align-items: center;
  height: 100%;
  direction: rtl;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  justify-content: flex-start;
}
.g9-nav-right::-webkit-scrollbar {
  display: none;
}

.g9-nav-home-btn {
  background: #179d1a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  font-size: 19px;
  text-decoration: none;
  flex-shrink: 0;
  margin-left: 6px;
  margin-right: 0;
  transition: background 0.2s ease;
}
.g9-nav-home-btn:hover {
  background: #15803d;
}

.g9-nav-menu-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  direction: rtl;
  flex-shrink: 0;
}

.g9-nav-menu-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.g9-nav-menu-link {
  color: #ffffff;
  font-family: 'Jameel Noori Nastaleeq', 'JameelNooriNastaleeq', 'Noto Nastaliq Urdu', serif;
  font-size: clamp(18.5px, 1.35vw, 22.5px);
  font-weight: 700;
  text-decoration: none;
  padding: 0 clamp(6px, 0.65vw, 12px);
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  white-space: nowrap;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}
.g9-nav-menu-link:hover,
.g9-nav-menu-item.active .g9-nav-menu-link {
  background: rgba(0, 0, 0, 0.24);
  color: #ffffff;
}

.g9-nav-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.26);
  margin: 0;
  flex-shrink: 0;
}

/* Live Broadcast Glowing Pill in Navbar */
.nav-live-highlight {
  background: rgba(220, 38, 38, 0.25);
  border-radius: 4px;
}
.nav-live-highlight:hover {
  background: rgba(220, 38, 38, 0.45) !important;
}

.pulse-live-pill {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  display: inline-block;
  animation: liveDotPulse 1.4s infinite;
  margin-left: 5px;
}
@keyframes liveDotPulse {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Dropdown Menu for مزید */
.g9-nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  background: #ffffff;
  min-width: 220px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
  border-radius: 0 0 8px 8px;
  border: 1px solid #e2e8f0;
  border-top: 3.5px solid #075225;
  flex-direction: column;
  padding: 6px 0;
  z-index: 1200;
  direction: rtl;
  text-align: right;
}

.g9-nav-menu-item:hover .g9-nav-dropdown {
  display: flex;
}

.g9-nav-dropdown a {
  padding: 10px 18px;
  color: #1e293b;
  font-family: var(--font-urdu), 'Jameel Noori Nastaleeq', serif;
  font-size: 19.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.g9-nav-dropdown a:hover {
  background: #f0fdf4;
  color: #075225;
  padding-right: 22px;
}

.g9-social-pill {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12.5px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
.g9-social-pill:hover {
  transform: scale(1.12);
  opacity: 0.95;
}
.g9-social-pill.fb { background: #1877f2; }
.g9-social-pill.yt { background: #ff0000; }
.g9-social-pill.tw { background: #000000; }
.g9-social-pill.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.g9-social-pill.tt { background: #000000; }

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE SYSTEM (FOR ALL SCREEN SIZES)
   - Mobile: 320px - 480px
   - Phablets / Mini Tablets: 481px - 768px
   - Tablets: 769px - 1024px
   - Laptops & Desktops: 1025px - 1540px+
   ========================================================================== */

/* Mobile Hamburger Menu Button */
.g9-mobile-menu-btn {
  display: none;
  align-items: center;
  gap: 7px;
  background: #179d1a;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 5px;
  font-family: var(--font-urdu), 'Jameel Noori Nastaleeq', serif;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
  margin-left: 6px;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.g9-mobile-menu-btn:hover {
  background: #15803d;
}

/* Mobile Drawer Overlay */
.g9-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.g9-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Drawer (Slides out from Right in RTL) */
.g9-mobile-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 310px;
  max-width: 86vw;
  height: 100vh;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 25px rgba(0, 0, 0, 0.35);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
  overflow: hidden;
}
.g9-mobile-drawer.active {
  right: 0;
}

.g9-drawer-header {
  background: linear-gradient(180deg, #075225 0%, #06451e 100%);
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3.5px solid #d91a1f;
}

.g9-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.g9-drawer-logo {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: #ffffff;
  object-fit: contain;
}
.g9-drawer-title {
  font-family: var(--font-urdu), 'Jameel Noori Nastaleeq', serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.g9-drawer-close {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.g9-drawer-close:hover {
  background: #d91a1f;
}

.g9-drawer-search {
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}
.g9-drawer-search-form {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  padding: 2px 8px;
}
.g9-drawer-search-form input {
  flex: 1;
  border: none;
  padding: 6px;
  font-family: var(--font-urdu), 'Jameel Noori Nastaleeq', serif;
  font-size: 14px;
  direction: rtl;
  outline: none;
}
.g9-drawer-search-form button {
  background: none;
  border: none;
  color: #075225;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 15px;
}

.g9-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
  -webkit-overflow-scrolling: touch;
}

.g9-drawer-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.g9-drawer-menu-item {
  border-bottom: 1px solid #f1f5f9;
}
.g9-drawer-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #1e293b;
  font-family: var(--font-urdu), 'Jameel Noori Nastaleeq', serif;
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.g9-drawer-menu-link i {
  width: 22px;
  color: #075225;
  font-size: 18px;
  text-align: center;
}
.g9-drawer-menu-link:hover,
.g9-drawer-menu-link.active {
  background: #f0fdf4;
  color: #075225;
  padding-right: 18px;
}
.g9-drawer-menu-link.live-link {
  background: #fef2f2;
  color: #dc2626;
}
.g9-drawer-menu-link.live-link i {
  color: #dc2626;
}

.g9-drawer-footer {
  padding: 12px 14px;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* Tablet & Mobile Header/Navbar Breakpoint <= 992px */
@media (max-width: 992px) {
  .g9-mobile-menu-btn {
    display: inline-flex;
  }
  .g9-header-inner {
    aspect-ratio: 1024 / 220;
    min-height: 90px;
    max-height: 140px;
    width: 100%;
    position: relative;
    overflow: hidden;
  }
  .g9-header-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
  }
  .g9-header-content-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
    background: transparent;
  }
  .g9-hdr-3d-badge {
    display: none;
  }
  .g9-header-search-form {
    max-width: 140px;
    height: 32px;
    pointer-events: auto;
  }
  .g9-hdr-livetv-btn {
    height: 32px;
    padding: 3px 8px;
    font-size: 11px;
    pointer-events: auto;
  }
  .g9-hdr-v-sep {
    display: none;
  }
  .g9-navbar-container {
    padding: 0 8px;
    height: 44px;
  }
  .g9-nav-socials {
    gap: 4px;
  }
  .g9-social-pill {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
}

/* Phablet & Mobile Breakpoint <= 768px */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  .container {
    padding: 0 10px;
  }

  /* Seamless Mobile TV Channel Header */
  .g9-hdr-left-group {
    display: none !important;
  }
  .g9-hdr-brand-link {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }
  .g9-cloned-header,
  .g9-hd-header {
    height: 85px !important;
    min-height: 85px !important;
    max-height: 85px !important;
    aspect-ratio: unset !important;
  }
  .g9-hd-overlay {
    padding: 0 10px !important;
  }
  .g9-overlay-left {
    gap: 6px !important;
    margin-left: 2px !important;
  }
  .g9-search-capsule {
    width: 115px !important;
    height: 30px !important;
    padding: 2px 4px 2px 8px !important;
  }
  .g9-search-input {
    font-size: 13px !important;
  }
  .g9-search-btn {
    width: 24px !important;
    height: 24px !important;
  }
  .g9-search-btn svg,
  .g9-search-btn i {
    width: 11px !important;
    height: 11px !important;
    font-size: 11px !important;
  }
  .g9-livetv-pill span {
    display: none !important;
  }
  .g9-livetv-pill {
    padding: 6px !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    justify-content: center !important;
  }
  .g9-overlay-right {
    gap: 8px !important;
    margin-right: 2px !important;
  }
  .g9-main-urdu-title {
    font-size: 18px !important;
    line-height: 1.1 !important;
  }
  .g9-main-en-sub {
    font-size: 7px !important;
    letter-spacing: 1px !important;
  }
  .g9-logo-frame {
    width: 40px !important;
    height: 50px !important;
    border-radius: 6px !important;
  }

  /* Navbar on Mobile */
  .g9-nav-socials {
    display: none !important; /* Mobile drawer holds all social links */
  }
  .g9-navbar-container {
    padding: 0 8px;
    height: 48px;
    justify-content: flex-start;
  }
  .g9-nav-right {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .g9-nav-right::-webkit-scrollbar {
    display: none;
  }
  .g9-nav-home-btn {
    width: 38px;
    height: 38px;
    font-size: 18px;
    margin-left: 5px;
  }
  .g9-nav-menu-link {
    font-size: 18.5px;
    padding: 0 8px;
  }

  /* Quick Category Filter Bar Horizontal Swipe */
  .category-filter-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    padding-bottom: 4px;
  }
  .category-filter-grid {
    display: flex;
    flex-wrap: nowrap;
    min-width: max-content;
    gap: 8px;
    width: auto;
  }
  .cat-btn {
    min-width: 84px;
    padding: 8px 6px;
    flex-shrink: 0;
  }
  .cat-btn-icon {
    font-size: 18px;
  }
  .cat-btn-label {
    font-size: 14.5px;
    font-weight: 700;
  }

  /* Card Headers & Tabs on Mobile */
  .card-header-red {
    padding: 8px 12px;
  }
  .card-header-red .header-title {
    font-size: 19px;
  }
  .header-tab-btn {
    font-size: 16px;
    padding: 3px 10px;
  }

  /* Breaking Ticker */
  .breaking-ticker {
    height: 36px;
    direction: rtl;
  }
  .ticker-badge {
    padding: 0 10px 0 16px;
    font-size: 15.5px !important;
    gap: 5px;
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
  }
  .ticker-item {
    font-size: 15px !important;
  }

  /* Hero & News Cards */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .top-story-card {
    min-height: 240px;
  }
  .latest-news-item {
    direction: rtl;
    padding: 8px 10px;
    gap: 10px;
  }
  .latest-thumb {
    width: 62px;
    height: 44px;
  }
  .news-headline {
    font-size: 14px;
    line-height: 1.7;
  }

  /* Dual Grid & Grids */
  .opinion-weather-dual-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .columnists-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .weather-forecast-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .bottom-section-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .regional-subgrid {
    grid-template-columns: 1fr;
  }
  .photo-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .card-grid-3,
  .card-grid-4 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Video hub & Lead stories */
  .video-hub-grid {
    grid-template-columns: 1fr;
  }
  .news-hub-70-30 {
    grid-template-columns: 1fr;
  }
  .biz-dashboard-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: right;
  }
  .footer-social-wrap {
    justify-content: flex-start;
  }
}

/* Compact Mobile Phones <= 480px */
@media (max-width: 480px) {
  .container {
    padding: 0 8px;
  }
  .weather-forecast-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .photo-gallery-grid {
    grid-template-columns: 1fr;
  }
  .card-header-red {
    padding: 7px 10px;
  }
  .card-header-red .header-title {
    font-size: 18px;
  }
  .header-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 55%;
  }
  .header-tab-btn {
    font-size: 15px;
    padding: 2px 8px;
  }
  .g9-nav-menu-link {
    font-size: 17.5px;
    padding: 0 7px;
  }
  .cat-btn {
    min-width: 80px;
    padding: 7px 5px;
  }
  .cat-btn-label {
    font-size: 14px;
  }
}
