/*
 * ═══════════════════════════════════════════════════════════════════
 * The Herald Today — Mobile Premium Redesign
 * Target: max-width 768px (all phones + small devices)
 * Loaded via: <link media="screen and (max-width: 768px)">
 *
 * Design Language:
 *   - Clean, modern, premium aesthetic
 *   - Rounded corners (12-16px), soft shadows
 *   - Generous white space between sections
 *   - Inter font family for readability
 *   - Lazy-loaded images, smooth transitions
 * ═══════════════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════════════
   1. BASE & TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════ */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--surface-2);
  color: var(--text);
  line-height: 1.5;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

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

h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 700;
}


/* ═══════════════════════════════════════════════════════════════════
   2. CONTAINER & SPACING
   ═══════════════════════════════════════════════════════════════════ */

.shell {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  margin: 0 auto !important;
  box-sizing: border-box;
}

/* Padding strategy: shell provides 16px side padding, home-main overrides to 0 */
.home-main {
  padding: 20px 16px 40px !important;
  box-sizing: border-box;
}

/* All direct children inherit home-main padding, NO extra horizontal padding */
.home-main > *,
.home-main > section,
.home-main .hero-grid,
.home-main .news-feed-wrapper,
.home-main .popular-section,
.home-main .cat-news-grid,
.home-main .feature-slider,
.home-main .province-section,
.home-main .fuel-widget,
.home-main .split-news,
[data-section="trending-live"],


[data-section="editors"],
[data-section="technology"],
[data-section="cyber"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}


/* ═══════════════════════════════════════════════════════════════════
   3. GLOBAL CARD STYLE
   ═══════════════════════════════════════════════════════════════════ */

/* ── Mobile: NO card backgrounds, NO shadows, NO rounded corners ──
   Every section must be flat, clean, edge-to-edge on mobile */
.home-main .live-panel,
.home-main .lead-card,
.home-main .fuel-widget,
.home-main .popular-section,
.home-main .feature-slider,
.home-main .cat-news-col,
.home-main .editor-card,
.home-main .tech-card,
.home-main .story-list-card,
.home-main .opinion-card,
.home-main .cyber-card,
.home-main .province-tile.has-label {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  overflow: visible;
}

/* Catch-all: strip any remaining card surfaces inside home-main */
.home-main [class*="card"],
.home-main [class*="-card"],
.home-main [class*="tile"],
.home-main [class*="panel"] {
  box-shadow: none !important;
}

.home-main * {
  box-shadow: none !important;
}


/* ═══════════════════════════════════════════════════════════════════
   4. HEADER & MASTHEAD — Mobile Layout
   Order: Logo → Name → Calendar → Weather(left) | Submit(right) → Ticker
   ═══════════════════════════════════════════════════════════════════ */

/* Sticky header */
.site-header {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  position: relative;
  z-index: 100;
}

/* ── SHOW masthead on mobile — vertical stack ── */
.masthead {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  padding: 16px 16px 10px !important;
  gap: 2px;
}

/* Override desktop center padding */
.masthead.shell {
  justify-content: flex-start !important;
  padding-top: 16px !important;
}

/* Brand: stack vertically, centered */
.brand {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  margin-right: 0 !important;
  margin-bottom: 4px;
}

.brand-logo-img + span {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  text-align: center !important;
  width: 100%;
}

.brand small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

/* ── Weather + Submit row ── */
.masthead {
  flex-wrap: wrap;
}

/* Weather strip — full width above or below brand? 
   Actually we want it BELOW brand in a row with submit.
   We'll use a CSS approach: make weather and submit-news visible
   and put them in a row below the brand. */

/* Make weather visible and position it */
/* Weather — below calendar, single line: icon 37°C Partly Cloudy Islamabad */
.weather {
  font-size: 12px;
  order: 2; /* After brand */
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 0 0;
  border-top: none;
  margin-top: 0;
}

.weather .w-icon .w-svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.weather .w-temp {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.weather .w-sep {
  display: inline;
  color: var(--muted);
  margin: 0 1px;
}

.weather .w-cond {
  font-size: 12px;
  color: var(--text-2);
}

.weather .w-city {
  font-size: 11px;
  color: var(--muted);
  display: inline !important;
}

.weather-sep {
  display: none;
}

.weather-visitor {
  display: none;
}

/* Show submit-news on mobile */
.submit-news {
  display: none !important;
}

/* ── Ticker strip ── */
.market-strip {
  margin-left: 24px !important;
  order: 5;
  background: var(--surface);
  border-top: 2px solid var(--accent);
  padding: 5px 0;
}

.market-strip .ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text);
}

/* Hide "Business Ticker:" label on mobile */
.ticker-label {
  display: none !important;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  flex: 1;
  will-change: transform;
  letter-spacing: 0.02em;
}

/* Slow ticker on mobile — 60s instead of 280s */
@keyframes ticker-scroll-mobile {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-track {
  animation: ticker-scroll-mobile 1000s linear infinite;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}
/* ── USA Stocks strip on mobile ── */
.us-stocks-strip {
  order: 6;
  border-top: 1px solid var(--grey) !important;
}

.ticker-label--us {
  display: none !important;
}

.ticker-track--us {
  animation: ticker-scroll-mobile 160s linear infinite;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

.tk-name {
  font-size: 8px !important;
  display: none !important;
}


/* Compact ticker items on mobile */
.tk {
  padding: 0 6px !important;
  gap: 3px !important;
}

.tk-price {
  font-size: 10px !important;
}

.tk-pct {
  font-size: 9px !important;
}

/* Hide ticker-actions on mobile */
.ticker-actions {
  display: none !important;
}

/* ── Mobile ticker: remove dark/gold theme colors ── */
body.dark .market-strip,
body.elite .market-strip {
  background: var(--surface) !important;
  border-top-color: var(--accent) !important;
}

body.dark .ticker-label,
body.elite .ticker-label {
  background: var(--surface) !important;
  color: var(--primary) !important;
}

body.dark .ticker-track,
body.elite .ticker-track {
  color: var(--text) !important;
}

body.dark .tk-up .tk-price,
body.dark .tk-up .tk-arrow,
body.dark .tk-up .tk-pct,
body.elite .tk-up .tk-price,
body.elite .tk-up .tk-arrow,
body.elite .tk-up .tk-pct {
  color: inherit !important;
}

body.dark .tk-down .tk-price,
body.dark .tk-down .tk-arrow,
body.dark .tk-down .tk-pct,
body.elite .tk-down .tk-price,
body.elite .tk-down .tk-arrow,
body.elite .tk-down .tk-pct {
  color: inherit !important;
}

/* ── Nav bar — thin bar: Hamburger + Search + Toggle ── */
.nav-wrap {
  display: flex !important;
  align-items: center;
  padding: 6px 16px !important;
  gap: 8px;
  background: var(--surface);
  border-bottom: 1px solid var(--grey);
  order: 6;
}

/* Hide desktop nav pills */
.nav-wrap .nav-tabs {
  display: none !important;
}

/* Hamburger */
.hamburger-toggle {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  order: 1;
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hide mobile-brand in nav-wrap since masthead shows the logo */
.nav-wrap .mobile-brand {
  display: none !important;
}

/* Search box */
.nav-wrap .search-box {
  display: flex !important;
  flex: 1;
  min-width: 0;
  height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1.5px solid rgba(0,0,0,0.10);
  border-radius: 999px;
  background: var(--surface-2);
  order: 3;
}

.nav-wrap .search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text, #1a1a1a);
  font-size: 13px;
}

.nav-wrap .search-box input::placeholder {
  color: var(--muted);
}

.nav-wrap .search-box [data-icon="search"],
.nav-wrap .search-box .icon {
  color: var(--muted);
  font-size: 14px;
  flex-shrink: 0;
}

/* Theme toggle */
.nav-wrap .theme-toggle {
  display: grid !important;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  cursor: pointer;
  place-items: center;
  order: 4;
}

.nav-wrap .theme-toggle .toggle-knob {
  font-size: 15px;
}


/* ═══════════════════════════════════════════════════════════════════
   5. HAMBURGER DRAWER (Clean Slide-in Sidebar)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Drawer panel ── */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--surface);
  z-index: 1000;
  height: auto;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  box-shadow: none;
  pointer-events: none !important;
}

.mobile-drawer.open {
  transform: translateX(0);
  box-shadow: 6px 0 30px rgba(0,0,0,0.15);
  pointer-events: auto !important;
}

/* ── Close X button ── */
.drawer-header {
  position: absolute;
  top: 20px;
  right: 16px;
  z-index: 10;
  background: none;
  border: none;
  padding: 0;
}

.drawer-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted-2);
  font-size: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.drawer-close:active {
  background: var(--soft);
  transform: scale(0.9);
}

/* ── Brand section ── */
.drawer-brand-section {
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--grey);
}

.drawer-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.drawer-logo-img {
  height: 36px;
  width: auto;
  border-radius: 8px;
}

.drawer-logo-mark {
  width: 44px;
  height: 44px;
  background: var(--primary-deep);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-logo-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.drawer-tagline {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.2px;
}

/* ── Search section ── */
.drawer-search-section {
  padding: 12px 20px;
  border-bottom: 1px solid var(--grey);
}

.drawer-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.drawer-search-box:focus-within {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(26,26,46,0.08);
}

.drawer-search-box [data-icon] {
  color: var(--muted);
  font-size: 16px;
  flex-shrink: 0;
}

.drawer-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
}

.drawer-search-input::placeholder {
  color: var(--muted);
}

/* ── Menu items ── */
.drawer-nav {
  flex: 1;
  padding: 4px 0;
}

.drawer-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}

.drawer-menu-item:active {
  background: var(--surface-2);
}

/* Active page indicator */
.drawer-menu-item.active {
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 600;
}

.drawer-menu-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--primary-deep);
  border-radius: 0 3px 3px 0;
}

.drawer-menu-item [data-icon] {
  width: 20px;
  text-align: center;
  font-size: 17px;
  opacity: 0.7;
  flex-shrink: 0;
}

.drawer-menu-item.active [data-icon] {
  opacity: 1;
}

/* ── Divider between sections ── */
.drawer-divider {
  height: 1px;
  background: var(--grey);
  margin: 8px 20px;
}

/* ── Hide old pill styles in drawer ── */
.drawer-nav .nav-tabs,
.drawer-nav .nav-pill {
  display: none !important;
}

/* ── Drawer overlay ── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto !important;
}


/* ═══════════════════════════════════════════════════════════════════
   6. MOBILE SECTION ORDERING
   ═══════════════════════════════════════════════════════════════════

   Using display:contents to "unwrap" hero-grid so all sections
   become direct children of main, then reorder with CSS order.

   Mobile scroll order:
     1. Trending Live News (horizontal scroll)
     2. Latest News (hero + list)
     3. Popular News
     4. Pakistan Provinces (1 each)
     5. Trending Tags
     6. Featured Slider
     7. Fuel Widget
     8. Business, Sports, Health, Entertainment
     9. Editor's Choice (2)
    10. Technology (2)
    11. Defence (2)
    12. Opinion (2)
    13. Cyber Security (3)
   ═══════════════════════════════════════════════════════════════════ */

.home-main {
  display: flex !important;
  flex-direction: column;
  gap: 20px;
}

/* Unwrap hero-grid so children flow into main */
.home-main .hero-grid {
  display: contents;
}

/* Hero image extends edge-to-edge (negate home-main padding) */
.hero-grid .hero-featured {
  margin: 0 -16px;
}

/* news-feed-wrapper now only contains fuel-widget on mobile */
.home-main .news-feed-wrapper {
  display: block;
}

/* feed-row: stack vertically on mobile */
.home-main .feed-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

/* Show Pakistan Breaking News & Trending on mobile */
.home-main .pakistan-feed {
  display: block !important;
}

/* ── Assign mobile order (live-panel, provinces, slider hidden) ── */
.home-main .feed-row           { order: 1; }
.home-main .popular-section    { order: 2; }
.home-main .fuel-widget        { order: 3; }
.home-main .trending-tags      { order: 4; }
.home-main .cat-news-grid      { order: 5; }
.home-main [data-section="editors"]    { order: 6; }
.home-main [data-section="technology"] { order: 7; }
.home-main .split-news         { order: 8; }
.home-main [data-section="cyber"]      { order: 9; }

/* Hidden on mobile */
/* Hidden on mobile */
.home-main .live-panel,
.home-main .province-section,
.home-main .feature-slider {
  display: none !important;
}


/* ═══════════════════════════════════════════════════════════════════
   7. TRENDING LIVE NEWS — Same style as desktop (vertical timeline)
   ═══════════════════════════════════════════════════════════════════ */

.live-panel {
  padding: 0 !important;
}

.live-panel h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  padding: 16px 16px 12px;
  margin: 0;
}

.live-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger, #c8213a);
  box-shadow: 0 0 0 0 rgba(200, 33, 58, 0.35);
  animation: live-pulse-red 1.6s ease-out infinite;
  flex-shrink: 0;
}

.live-panel ol {
  margin: 0;
  padding: 0 16px 16px 30px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--danger, #c8213a) rgba(0,0,0,0.10);
  background-image: linear-gradient(rgba(200, 33, 58, 0.22), rgba(200, 33, 58, 0.22));
  background-size: 2px 100%;
  background-repeat: no-repeat;
  background-position: 11px 0;
  background-attachment: local;
}

.live-panel ol::-webkit-scrollbar {
  width: 2px;
}

.live-panel ol::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.10);
  border-radius: 999px;
}

.live-panel ol::-webkit-scrollbar-thumb {
  background: var(--danger, #c8213a);
  border-radius: 999px;
  border: 0;
}

.live-panel ol li {
  position: relative;
  padding: 0 0 0 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  line-height: 1.45;
  transition: color 0.15s ease;
}

.live-panel ol li::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 12px;
  width: 6px;
  height: 6px;
  border: 2px solid var(--danger, #c8213a);
  border-radius: 50%;
  background: var(--danger, #c8213a);
}

.live-panel ol li a {
  display: block;
  color: var(--text-2, #444);
  transition: color 0.15s ease;
}

.live-panel ol li a:hover,
.live-panel ol li a:active {
  color: var(--primary, #005f38);
}

.live-panel ol li .meta {
  display: block;
  margin-bottom: 6px;
  color: var(--danger, #c8213a);
  font-family: var(--font-body, inherit);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

/* Limit to top 5 on mobile */
.live-panel ol li:nth-child(n+6) {
  display: none;
}


/* ═══════════════════════════════════════════════════════════════════
   8. LATEST NEWS — Hero Image + List
   ═══════════════════════════════════════════════════════════════════ */

.lead-card {
  padding: 0 !important;
  margin: 0 !important;
}

.lead-hero-link {
  display: block;
}

.lead-hero {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px 14px 0 0 !important;
}

.lead-card .card-body {
  padding: 16px;
}

.lead-card .card-body h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lead-card .card-body p {
  font-size: 14px;
  color: var(--muted-2);
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.lead-card .card-body .meta {
  font-size: 12px;
  color: var(--muted);
}

/* Latest Cards - Mobile */
.latest-cards {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin-top: 10px;
}

.latest-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--soft);
}

.latest-card:last-child {
  border-bottom: 0;
}

.latest-card-img {
  width: 80px;
  min-width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.latest-card-body h3 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hide old lead-related */
.lead-related {
  display: none !important;
}


/* ═══════════════════════════════════════════════════════════════════
   9. MOST POPULAR NEWS
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   9. MOST POPULAR NEWS — Clean list style (matches reference)
   ═══════════════════════════════════════════════════════════════════ */
.popular-section {
  padding: 0 !important;
}

.popular-section .mini-column {
  padding: 0;
}

.popular-section .mini-item {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--grey);
  align-items: flex-start;
}

.popular-section .mini-item:last-child {
  border-bottom: none;
}

.popular-section .mini-item img {
  width: 90px;
  height: 68px;
  object-fit: cover;
  border-radius: 0;
  flex-shrink: 0;
}

.popular-section .mini-item h3 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  margin: 0 0 0px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-section .mini-item .meta {
  font-size: 11px;
  color: var(--muted);
}


/* ═══════════════════════════════════════════════════════════════════
   10. PAKISTAN PROVINCES — 1 Per Province
   ═══════════════════════════════════════════════════════════════════ */

.province-section {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.province-section .shell,
.province-section > .shell {
  padding: 0 !important;
}

.province-section .section-title {
  font-size: 16px;
  font-weight: 700;
  padding: 4px 0 12px !important;
  margin: 0 0 0 !important;
}

.province-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Show only 1 per province (first row has has-label) */
.province-tile:not(.has-label) {
  display: none;
}

.province-tile.has-label {
  background: var(--surface);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100px;
  border: none !important;
  box-shadow: none !important;
}

.province-label {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  background: var(--primary-deep);
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.province-headline {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ═══════════════════════════════════════════════════════════════════
   11. TRENDING TAGS
   ═══════════════════════════════════════════════════════════════════ */

.trending-tags {
  display: none;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.trending-tags .shell {
  padding: 0 !important;
}

.trending-tags-inner {
  background: var(--surface);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.trending-tags-label {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.trending-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trending-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface-2);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-2);
  transition: all 0.2s ease;
}

.trending-tag:active {
  background: var(--soft);
  transform: scale(0.97);
}

.trending-tag-rank {
  font-weight: 700;
  color: var(--primary);
  font-size: 12px;
}


/* ═══════════════════════════════════════════════════════════════════
   12. FEATURED SLIDER
   ═══════════════════════════════════════════════════════════════════ */

.feature-slider {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.slider-visual {
  border-radius: 14px !important;
  overflow: hidden;
  position: relative;
}

.slider-image-wrap {
  height: 200px;
  border-radius: 14px;
}

.slider-image-wrap img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
}

.slider-copy {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 16px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  border-radius: 0 0 14px 14px;
}

.slider-copy .eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.slider-copy h2 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slider-copy p {
  display: none;
}

.slider-progress {
  bottom: 8px;
  left: 16px;
  right: 16px;
}

.slider-counter {
  display: none;
}

.slider-dots {
  bottom: 12px;
}

[data-slide-prev],
[data-slide-next] {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}


/* ═══════════════════════════════════════════════════════════════════
   13. FUEL WIDGET
   ═══════════════════════════════════════════════════════════════════ */

.fuel-widget {
  padding: 0 !important;
}

.fuel-widget-inner {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
}

.fuel-col {
  flex: none;
}

.fuel-col-header {
  padding: 14px 16px 10px;
}

.fuel-col-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
}

.fuel-item {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fuel-item-icon {
  font-size: 20px;
  filter: none;
}

.fuel-item-name {
  font-size: 13px;
  color: #1a1a1a;
}

.fuel-price {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}

.fuel-change {
  font-size: 11px;
  font-weight: 600;
}

.fuel-eff-date {
  font-size: 11px;
  color: var(--muted);
  padding: 8px 16px 14px;
}

.crude-price-big {
  display: none;
}

.crude-meta {
  display: none;
}

.crude-change-badge {
  display: none;
}

.crude-date {
  display: none;
}

/* Divider between petrol and crude */
.fuel-col:first-child {
  border-bottom: 1px solid var(--grey);
}


/* ═══════════════════════════════════════════════════════════════════
   14. CATEGORY NEWS — Vertical Stacks
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   14. CATEGORY GRID — Clean list style (matches reference)
   ═══════════════════════════════════════════════════════════════════ */
.cat-news-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  padding: 0 !important;
  grid-template-columns: none !important;
  background: transparent !important;
  border: none !important;
}

.cat-news-col {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  overflow: visible;
  box-shadow: none !important;
}

.cat-news-card-lead img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0;
}

.cat-news-card-lead h4 {
  padding: 12px 0 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: var(--text);
}

.cat-news-card {
  display: block;
  padding: 11px 0;
  border-top: 1px solid var(--grey);
  background: transparent;
}

.cat-news-card .meta {
  display: none;
}

.cat-news-card span:not(.meta) {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.cat-news-card:hover span:not(.meta) {
  color: var(--primary);
}

.cat-news-card:last-child {
  border-bottom: 1px solid var(--grey);
}


/* ═══════════════════════════════════════════════════════════════════
   15. EDITOR'S CHOICE — 2 Stories
   ═══════════════════════════════════════════════════════════════════ */

[data-section="editors"] {
  padding: 0 !important;
}

[data-section="editors"] .block-heading {
  font-size: 16px;
  font-weight: 700;
  padding: 0 4px 12px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════
   15. EDITOR'S CHOICE — Clean list style (matches reference)
   ═══════════════════════════════════════════════════════════════════ */
[data-section="editors"] .editor-grid {
  display: flex !important;
  flex-direction: column;
  gap: 0;
}

[data-section="editors"] .editor-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  column-gap: 12px;
  padding: 12px 0 10px;
  border-radius: 0;
  text-decoration: none;
  align-items: start;
  position: relative;
}

[data-section="editors"] .editor-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, #d0d0d0 20%, #d0d0d0 80%, transparent);
}

[data-section="editors"] .editor-card:last-child::after {
  display: none;
}

/* Unwrap body so h3 and p become direct grid children */
[data-section="editors"] .editor-card-body {
  display: contents;
}

/* Title — full width, bold, on top */
[data-section="editors"] .editor-card-body h3 {
  grid-column: 1 / -1;
  grid-row: 1;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #1a1a2e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 2px;
}

/* Image — left side */
[data-section="editors"] .editor-card-img-wrap {
  grid-column: 1;
  grid-row: 2;
  width: 110px;
  height: 82px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

[data-section="editors"] .editor-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Description — right of image, top-aligned, 4 lines */
[data-section="editors"] .editor-card-body p {
  grid-column: 2;
  grid-row: 2;
  display: -webkit-box !important;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 400;
  color: #666;
  line-height: 1.5;
  margin: 0;
  align-self: start;
}

/* Show 4 on mobile */
[data-section="editors"] .editor-card:nth-child(n+5) {
  display: none;
}


/* ═══════════════════════════════════════════════════════
   16. TECHNOLOGY — Title on top, Image + Description row below
   ═══════════════════════════════════════════════════════════════════ */
[data-section="technology"] {
  padding: 0 !important;
}

[data-section="technology"] .block-heading {
  font-size: 16px;
  font-weight: 700;
  padding: 0 4px 12px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-section="technology"] .tech-grid {
  display: flex !important;
  flex-direction: column;
  gap: 0;
}

/* Card: CSS Grid — 2 columns, auto rows */
[data-section="technology"] .tech-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  column-gap: 12px;
  padding: 12px 0 10px;
  border-radius: 0;
  text-decoration: none;
  align-items: start;
  position: relative;
}

[data-section="technology"] .tech-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, #d0d0d0 20%, #d0d0d0 80%, transparent);
}

[data-section="technology"] .tech-card:last-child::after {
  display: none;
}

/* Unwrap .tech-card-body so h3 and p become direct grid children */
[data-section="technology"] .tech-card-body {
  display: contents;
}

/* Row 1: Title — full width, bold */
[data-section="technology"] .tech-card-body h3 {
  grid-column: 1 / -1;
  grid-row: 1;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #1a1a2e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 0px;
}

/* Row 2, Col 1: Image — left side */
[data-section="technology"] .tech-card-img-wrap {
  grid-column: 1;
  grid-row: 2;
  width: 110px;
  height: 82px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

[data-section="technology"] .tech-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Row 2, Col 2: Description — right side of image */
[data-section="technology"] .tech-card-body p {
  grid-column: 2;
  grid-row: 2;
  display: -webkit-box !important;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 400;
  color: #666;
  line-height: 1.5;
  margin: 0;
  align-self: start;
}

/* Show 4 on mobile */
[data-section="technology"] .tech-card:nth-child(n+5) {
  display: none;
}
/* ═══════════════════════════════════════════════════════════════════
   17. DEFENCE — 2 Stories
   ═══════════════════════════════════════════════════════════════════ */

.split-news {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.split-news > div {
  width: 100% !important;
}

/* Hide Opinion section on mobile */
.split-news > aside {
  display: none !important;
}

.split-news .block-heading {
  font-size: 16px;
  font-weight: 700;
  padding: 0 4px 12px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════
   17. DEFENCE — Clean list style (matches reference)
   ═══════════════════════════════════════════════════════════════════ */
.story-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* First card: full-width lead image + heading */
.story-list-card:first-child {
  display: block !important;
  padding: 0 0 8px;
  position: relative;
}

.story-list-card:first-child::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, #d0d0d0 20%, #d0d0d0 80%, transparent);
}

.story-list-card:first-child > img {
  width: 100% !important;
  height: 180px !important;
  min-width: 100% !important;
  border-radius: 0;
  margin-bottom: 8px;
}

.story-list-card:first-child .story-list-card-body h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: var(--text);
}

.story-list-card:first-child .story-list-card-body p,
.story-list-card:first-child .story-list-card-body .meta {
  display: none;
}

/* Remaining cards: text-only list items */
.story-list-card:not(:first-child) {
  display: block !important;
  padding: 11px 0;
  gap: 0;
  position: relative;
}

.story-list-card:not(:first-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, #d0d0d0 20%, #d0d0d0 80%, transparent);
}

.story-list-card:not(:first-child) > img {
  display: none !important;
}

.story-list-card:not(:first-child) .story-list-card-body {
  padding: 0 !important;
}

.story-list-card:not(:first-child) .story-list-card-body h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  margin: 0;
}

.story-list-card:not(:first-child) .story-list-card-body p,
.story-list-card:not(:first-child) .story-list-card-body .meta {
  display: none;
}

.story-list-card:last-child::after {
  display: none;
}

/* Keep generic styles for fallback */
.story-list-card-img-wrap {
  width: 90px;
  height: 68px;
  min-width: 90px;
  flex-shrink: 0;
  border-radius: 0;
  overflow: hidden;
}

.story-list-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-list-card-body {
  flex: 1;
  padding: 0 !important;
}

.story-list-card-body h3 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 0px;
}

.story-list-card-body p {
  display: none;
}

.story-list-card-body .meta {
  font-size: 11px;
  color: var(--muted);
}

/* Show 4 on mobile */
.story-list-card:nth-child(n+5) {
  display: none;
}


/* ═══════════════════════════════════════════════════════════════════
   18. OPINION — 2 Pieces
   ═══════════════════════════════════════════════════════════════════ */

.opinion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ═══════════════════════════════════════════════════════
   18. OPINION — Clean list style (matches reference)
   ═══════════════════════════════════════════════════════════════════ */
.opinion-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  column-gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 0;
  text-decoration: none;
  align-items: start;
}

.opinion-card:last-child {
  border-bottom: none;
}

/* Unwrap body so h3 becomes direct grid child */
.opinion-card-body {
  display: contents;
}

.opinion-card-img-wrap {
  grid-column: 1;
  grid-row: 2;
  width: 110px;
  height: 82px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.opinion-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Author shown as small label below description */
.opinion-label {
  display: block !important;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
  background: none;
  padding: 0;
  border-radius: 0;
}

.opinion-card-body h3 {
  grid-column: 1 / -1;
  grid-row: 1;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #1a1a2e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 0px;
}

.opinion-card-body .meta {
  font-size: 11px;
  color: var(--muted);
}

/* Show 4 on mobile */
.opinion-card:nth-child(n+5) {
  display: none;
}


/* ═══════════════════════════════════════════════════════════════════
   19. CYBER SECURITY — 3 Stories
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   19. CYBER SECURITY — Clean list style (matches reference)
   ═══════════════════════════════════════════════════════════════════ */
[data-section="cyber"] {
  padding: 0 !important;
}

.cyber-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0;
}

/* Hide center and right columns on mobile */
.cyber-col-center,
.cyber-col-right {
  display: none !important;
}

.cyber-col-left {
  display: flex !important;
  flex-direction: column;
  gap: 0;
}

.cyber-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  column-gap: 12px;
  padding: 12px 0 10px;
  border-radius: 0;
  text-decoration: none;
  align-items: start;
  position: relative;
}

/* Faded separator line — gradient from both sides */
.cyber-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, #d0d0d0 20%, #d0d0d0 80%, transparent);
}

.cyber-card:last-child::after {
  display: none;
}

/* Unwrap body so h3 and p become direct grid children */
.cyber-card-body {
  display: contents;
}

/* Title — full width, bold, on top */
.cyber-card-body h3 {
  grid-column: 1 / -1;
  grid-row: 1;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #1a1a2e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 2px;
}

/* Image — left side */
.cyber-card-img-wrap {
  grid-column: 1;
  grid-row: 2;
  width: 110px;
  height: 82px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.cyber-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Description — right of image, top-aligned, 4 lines */
.cyber-card-body p {
  grid-column: 2;
  grid-row: 2;
  display: -webkit-box !important;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 400;
  color: #666;
  line-height: 1.5;
  margin: 0;
  align-self: start;
}

/* Show 6 from left column */
.cyber-col-left .cyber-card:nth-child(n+7) {
  display: none;
}


/* ═══════════════════════════════════════════════════════════════════
   20. MINIMALIST FOOTER
   ═══════════════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--primary-deep);
  color: #ffffff;
  margin-top: 20px;
}

.site-footer .shell {
  padding: 24px 16px !important;
}

/* ═══════════════════════════════════════════════════════
   COMPLETE MOBILE FOOTER
   ═══════════════════════════════════════════════════════ */
.footer-top {
  display: flex !important;
  flex-direction: column !important;
  gap: 28px !important;
  padding: 32px 0 24px !important;
}

/* Brand section */
.footer-brand {
  text-align: center !important;
}

.footer-brand h2 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  text-align: center !important;
  width: 100%;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  text-align: center !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-icon {
  width: 40px;
  height: 40px;
}

/* Footer links — stacked grid */
.footer-links {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px 24px !important;
}

.footer-col {
  text-align: left;
}

.footer-col strong {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 10px;
  display: block;
}

.footer-col a {
  display: block;
  margin: 5px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

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

/* App badges */
.footer-app {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 4px;
}

.footer-app strong {
  text-align: center !important;
}

.footer-app .app-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  margin: 4px 4px 0 0;
}

/* Copyright */
.copyright {
  text-align: center !important;
  padding: 16px !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;

  font-size: 11px;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.copyright span {
  font-size: 11px;
  text-align: center !important;
  display: block;
  width: 100%;
}

.site-footer::before {
  display: none;
}


/* ═══════════════════════════════════════════════════════════════════
   21. SECTION HEADINGS (Consistent Style)
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   UNIFIED SECTION HEADING — All sections same style
   ═══════════════════════════════════════════════════════════════════ */
.home-main .block-heading,
.popular-section h2,
.cat-news-header,
[data-section="cyber"] .block-heading,
[data-section="technology"] .block-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  padding: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-main .block-heading [data-icon] {
  font-size: 15px;
}


/* ═══════════════════════════════════════════════════════════════════
   22. LAZY LOADING & PERFORMANCE
   ═══════════════════════════════════════════════════════════════════ */

img[loading="lazy"] {
  background: #f0f0f2;
  transition: opacity 0.3s ease;
}

img[loading="lazy"][src] {
  opacity: 1;
}

/* Ensure first visible images load eagerly */
.live-panel img[loading="lazy"],
.lead-hero[loading="lazy"] {
  loading: eager !important;
}


/* ═══════════════════════════════════════════════════════════════════
   23. UTILITIES & OVERRIDES
   ═══════════════════════════════════════════════════════════════════ */

/* Remove all borders and old shadows */


/* Re-add premium shadows only on cards */
.home-main .live-panel ol li a,
.home-main .province-tile.has-label,
.home-main .cat-news-col,
.home-main .trending-tags-inner {
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

/* Remove old grid/border styles */
.home-main .hero-grid,
.home-main .news-feed-wrapper,
.home-main .mini-column,
.home-main .province-card,
.home-main .category-card,
.home-main .editor-card,
.home-main .tech-card,
.home-main .article-main,
.home-main .article-sidebar,
.home-main .breaking-sidebar-card,
.home-main .breaking-card,
.home-main .cyber-under-card,
.home-main .story-list-card,
.home-main .opinion-card,
.home-main .timeline-event,
.home-main .fuel-widget,
.home-main .fuel-widget-inner,
.home-main .province-tile {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: rgba(26,26,46,0.15);
  color: inherit;
}

/* Remove tap highlight on mobile */
a, button {
  -webkit-tap-highlight-color: transparent;
}


/* ═══════════════════════════════════════════════════════════════════
   24. MOBILE BREAKING PAGE (Override if exists)
   ═══════════════════════════════════════════════════════════════════ */

.breaking-page-view .site-header {
  position: static;
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 20px 0;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: var(--surface);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.pagination a.active {
  background: var(--primary-deep);
  color: #ffffff;
}


/* ═══════════════════════════════════════════════════════════════════
   25. AD/ADVERTISEMENT PLACEHOLDERS (if any)
   ═══════════════════════════════════════════════════════════════════ */

.ad-slot,
.mobile-ad {
  background: #f0f0f2;
  border-radius: 12px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #bbb;
  margin: 12px 0;
}


/* ═══════════════════════════════════════════════════════════════════
   THEME SUPPORT — Dark & Elite modes on mobile
   ═══════════════════════════════════════════════════════════════════ */

/* Dark mode: adjust card borders and subtle backgrounds */
body.dark .home-main .live-panel,
body.dark .home-main .lead-card,
body.dark .home-main .fuel-widget,
body.dark .home-main .popular-section,
body.dark .home-main .feature-slider,
body.dark .home-main .cat-news-col,
body.dark .home-main .editor-card,
body.dark .home-main .tech-card,
body.dark .home-main .story-list-card,
body.dark .home-main .opinion-card,
body.dark .home-main .cyber-card,
body.dark .home-main .province-tile.has-label {
  box-shadow: 0 1px 4px rgba(0,0,0,0.2), 0 2px 12px rgba(0,0,0,0.15);
}

body.dark .site-header {
  box-shadow: 0 1px 0 var(--soft);
}

body.dark .nav-wrap {
  border-bottom-color: var(--soft);
}

body.dark .market-strip {
  background: var(--primary-deep);
  border-top-color: var(--accent);
}

body.dark .mobile-drawer {
  background: var(--surface);
}

body.dark .drawer-close {
  background: var(--surface-2);
}

body.dark .drawer-search-box {
  background: var(--surface-2);
}

body.dark .drawer-search-box:focus-within {
  background: var(--surface);
}

body.dark .nav-wrap .search-box {
  background: var(--surface-2);
  border-color: var(--soft);
}

body.dark .nav-wrap .theme-toggle {
  background: var(--surface-2);
}

body.dark .lead-card .card-body h1,
body.dark .lead-card .card-body p,
body.dark .lead-card .card-body .meta,
body.dark .popular-section .mini-item h3,
body.dark .popular-section .mini-item .meta,
body.dark .cat-news-header,
body.dark .cat-news-card-lead h4,
body.dark .cat-news-card span:not(.meta),
body.dark .province-headline,
body.dark .fuel-col-title,
body.dark .fuel-item-name,
body.dark .fuel-price,
body.dark .crude-price-big {
  color: var(--text);
}

body.dark .fuel-eff-date,
body.dark .crude-date,
body.dark .cat-news-card .meta,
body.dark .story-list-card-body .meta,
body.dark .opinion-card-body .meta,
body.dark .popular-section .mini-item .meta,
body.dark .lead-card .card-body .meta {
  color: var(--muted);
}

body.dark .live-panel h2,
body.dark .popular-section h2,
body.dark .province-section .section-title,
body.dark [data-section="editors"] .block-heading,
body.dark [data-section="technology"] .block-heading,
body.dark .split-news .block-heading,
body.dark [data-section="cyber"] .block-heading {
  color: var(--text);
}

/* Elite (gold) theme: gold accents on dark */
body.elite .mobile-drawer {
  background: var(--surface);
}

body.elite .nav-wrap .search-box {
  background: var(--surface-2);
  border-color: var(--soft);
}

body.elite .nav-wrap .theme-toggle {
  background: var(--surface-2);
}

body.elite .market-strip {
  background: var(--primary-deep);
}

body.elite .lead-card .card-body h1,
body.elite .popular-section .mini-item h3,
body.elite .cat-news-header {
  color: var(--text);
}

body.elite .lead-card .card-body p {
  color: var(--text-2);
}

body.elite .site-footer {
  background: var(--primary-deep);
}


/* ═══════════════════════════════════════════════════════════════════
   26. CATEGORY PAGE — Full Mobile Responsive
   ═══════════════════════════════════════════════════════════════════

   Covers all category pages: Pakistan, World, Business, Technology,
   Defence, Health, Sports, Crime, Opinion, Cyber News, Entertainment.
   Structure: cat-page > cat-section-header + cat-featured-grid +
              cat-trending + cat-main-grid (cat-news-list + cat-sidebar)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Page container ── */
.cat-page {
  width: 100% !important;
  max-width: 100% !important;
  padding: 12px 16px 40px !important;
  margin: 0 auto;
  overflow-x: hidden;
}

/* ── Section header (badge + line + count) ── */
.cat-section-header {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.cat-section-badge {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 6px;
}

.cat-section-line {
  display: none;
}

.cat-page-count {
  width: 100%;
  font-size: 12px;
  color: var(--muted);
  padding-left: 2px;
}

/* ── Featured grid: 4 cols → 1 col scroll ── */
.cat-featured-grid {
  display: flex !important;
  flex-direction: row;
  gap: 12px !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.cat-featured-grid::-webkit-scrollbar {
  display: none;
}

/* ── Featured card ── */
.cat-feat-card {
  flex: 0 0 280px;
  min-width: 280px;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--grey);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.cat-feat-img {
  height: 160px;
}

.cat-feat-body {
  padding: 12px 14px 14px;
}

.cat-feat-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-feat-excerpt {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 10px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-feat-footer {
  font-size: 11px;
  color: var(--muted);
}

.cat-feat-author {
  font-weight: 600;
  color: var(--text-2);
}

.cat-feat-badge {
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  font-size: 10px;
  border-radius: 5px;
}

/* ── Trending tags ── */
.cat-trending {
  padding: 8px 0;
  margin-bottom: 12px;
}

.cat-trending-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.cat-trending-inner::-webkit-scrollbar {
  display: none;
}

.cat-trending-label {
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--danger, #d92828);
}

.cat-trending-pill {
  padding: 5px 12px;
  font-size: 11px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--grey);
  color: var(--text-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cat-trending-pill:active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Main grid: 2-col (news + sidebar) → single column ── */
.cat-main-grid {
  display: flex !important;
  flex-direction: column;
  gap: 24px !important;
}

.cat-news-list {
  min-width: 0;
}

/* ── News list items: horizontal → vertical card ── */
.cat-news-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--grey);
  text-decoration: none;
}

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

.cat-news-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.cat-news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-news-cat-badge {
  top: 8px;
  left: 8px;
  padding: 2px 7px;
  font-size: 9px;
  border-radius: 4px;
}

.cat-news-content {
  flex: 1;
  min-width: 0;
}

.cat-news-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-news-excerpt {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-news-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  gap: 6px;
}

/* ── Sidebar ── */
.cat-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cat-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--grey);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.cat-sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--grey);
}

/* ── Trending list in sidebar ── */
.cat-trending-list-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--grey);
}

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

.cat-trending-num {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.2;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1.2;
  padding-top: 1px;
}

.cat-trending-list-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Newsletter section ── */
.cat-newsletter {
  border-radius: 14px;
  padding: 20px 16px;
}

.cat-newsletter-title {
  font-size: 14px;
  margin-bottom: 8px;
}

.cat-newsletter-desc {
  font-size: 12px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.cat-newsletter-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 10px;
}

.cat-newsletter-btn {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

/* ── Social buttons ── */
.cat-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cat-social-btn {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  justify-content: center;
}

/* ── Pagination ── */
.cat-pagination-wrapper {
  margin-top: 28px;
  padding: 20px 16px 24px;
  border-radius: 14px;
  gap: 10px;
}

.cat-pagination-info-bar {
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 20px;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.cat-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.cat-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.cat-page-btn.arrow-label {
  font-size: 12px;
  padding: 0 12px;
}

.cat-page-dots {
  width: 28px;
  height: 38px;
  font-size: 12px;
}

.cat-page-of {
  font-size: 11px;
  margin-top: 4px;
}

/* ── Empty state (e.g. Entertainment with no articles) ── */
.cat-page [style*="text-align:center"] {
  padding: 40px 20px !important;
}

.cat-page [style*="text-align:center"] h2 {
  font-size: 18px;
  margin-top: 12px;
  color: var(--text);
}

.cat-page [style*="text-align:center"] p {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 8px;
  line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════════
   27. CATEGORY PAGE — Dark Mode
   ═══════════════════════════════════════════════════════════════════ */

body.dark .cat-feat-card {
  background: var(--surface);
  border-color: var(--soft);
}

body.dark .cat-feat-title {
  color: var(--text);
}

body.dark .cat-feat-excerpt {
  color: var(--text-2);
}

body.dark .cat-feat-footer,
body.dark .cat-feat-author {
  color: var(--muted);
}

body.dark .cat-trending-pill {
  background: var(--surface-2);
  border-color: var(--soft);
  color: var(--text-2);
}

body.dark .cat-news-item {
  border-bottom-color: var(--soft);
}

body.dark .cat-news-title {
  color: var(--text);
}

body.dark .cat-news-excerpt {
  color: var(--text-2);
}

body.dark .cat-sidebar-card {
  background: var(--surface);
  border-color: var(--soft);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

body.dark .cat-sidebar-title {
  color: var(--text);
  border-bottom-color: var(--soft);
}

body.dark .cat-trending-num {
  color: var(--primary);
  opacity: 0.3;
}

body.dark .cat-trending-list-title {
  color: var(--text);
}

body.dark .cat-trending-list-item {
  border-bottom-color: var(--soft);
}

body.dark .cat-newsletter {
  background: linear-gradient(135deg, #004d2e 0%, #003320 100%);
  border-color: var(--soft);
}

body.dark .cat-newsletter-input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

body.dark .cat-newsletter-desc {
  color: rgba(167, 243, 208, 0.7);
}

body.dark .cat-social-btn {
  background: var(--surface-2);
  border: 1px solid var(--soft);
  color: var(--text-2);
}

body.dark .cat-pagination-wrapper {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border-color: var(--soft);
}

body.dark .cat-pagination-info-bar {
  background: var(--surface);
  border-color: var(--soft);
  color: var(--text-2);
}

body.dark .cat-pagination-info-bar .info-count {
  color: var(--primary);
}

body.dark .cat-page-btn {
  background: var(--surface);
  border-color: var(--soft);
  color: var(--text);
}

body.dark .cat-page-btn.active {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #fff;
  border-color: transparent;
}

body.dark .cat-page-of {
  color: var(--muted);
}

body.dark .cat-news-cat-badge {
  background: rgba(0,107,63,0.15);
  color: var(--primary);
  border-color: rgba(0,107,63,0.2);
}


/* ═══════════════════════════════════════════════════════════════════
   28. CATEGORY PAGE — Elite (Gold) Theme
   ═══════════════════════════════════════════════════════════════════ */

body.elite .cat-feat-card {
  background: var(--surface);
  border-color: var(--soft);
}

body.elite .cat-feat-title {
  color: var(--text);
}

body.elite .cat-feat-badge {
  background: var(--accent, #d6a84f);
  color: var(--primary-deep);
}

body.elite .cat-news-title {
  color: var(--text);
}

body.elite .cat-sidebar-card {
  background: var(--surface);
  border-color: var(--soft);
}

body.elite .cat-sidebar-title {
  color: var(--text);
}

body.elite .cat-trending-list-title {
  color: var(--text);
}

body.elite .cat-newsletter {
  background: linear-gradient(135deg, var(--primary-deep), #001a0e);
  border-color: var(--soft);
}

body.elite .cat-pagination-wrapper {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border-color: var(--soft);
}

body.elite .cat-pagination-info-bar {
  background: var(--surface);
  border-color: var(--soft);
}

body.elite .cat-page-btn.active {
  background: linear-gradient(135deg, var(--accent, #d6a84f), var(--primary-deep));
  color: #fff;
  border-color: transparent;
}

body.elite .cat-social-btn {
  background: var(--surface-2);
  border: 1px solid var(--soft);
  color: var(--text-2);
}


/* ═══════════════════════════════════════════════════════════════════
   29. ARTICLE PAGE — Mobile Layout
   ═══════════════════════════════════════════════════════════════════ */

.article-layout {
  display: flex !important;
  flex-direction: column !important;
  padding: 16px !important;
  gap: 20px !important;
}

.article-layout .article-main {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
}

.article-layout .article-sidebar {
  display: none !important;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span {
  color: var(--muted);
}

/* Kicker / category badge */
.kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: rgba(214, 168, 79, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
  text-decoration: none;
}

/* Article meta */
.article-main > .meta,
.article-main > p.meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Article hero image */
.article-hero {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

/* Share row */
.share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--grey);
  border-bottom: 1px solid var(--grey);
}

.share-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-2);
  text-decoration: none;
  transition: all 0.2s;
}

.share-icon:hover {
  background: var(--accent);
  color: #fff;
}

/* Article content */
.article-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

.article-content p {
  margin-bottom: 16px;
}

.article-content h2,
.article-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--text);
}

.article-content img {
  width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}

.article-content ul,
.article-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  margin: 16px 0;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-2);
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════
   30. AI ANALYSIS SECTION — Mobile
   ═══════════════════════════════════════════════════════════════════ */

.ai-analysis {
  background: var(--surface);
  border-radius: 12px;
  padding: 16px;
  margin-top: 24px;
  border: 1px solid var(--grey);
}

.ai-analysis-header {
  margin-bottom: 16px;
}

.ai-analysis-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ai-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--muted);
}

.ai-headline-badge {
  font-size: 9px;
  font-weight: 700;
  background: var(--danger, #c8213a);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
}

.ai-analysis-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.ai-summary-line {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* AI Tabs */
.ai-tabs {
  display: flex;
  overflow-x: auto;
  gap: 0;
  border-bottom: 1px solid var(--grey);
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}

.ai-tabs::-webkit-scrollbar {
  display: none;
}

.ai-tab {
  flex-shrink: 0;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.ai-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* AI Tab content */
.ai-tab-content {
  display: none;
}

.ai-tab-content.active {
  display: block;
}

.ai-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.ai-info-card {
  background: var(--surface-2, #f5f5f5);
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  color: var(--text-2);
}

.ai-info-card strong {
  display: block;
  font-size: 11px;
  color: var(--text);
  margin-bottom: 4px;
}

/* AI Timeline */
.ai-timeline {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--grey);
}

.ai-timeline-item {
  position: relative;
  padding: 0 0 16px 16px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

.ai-timeline-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.ai-timeline-date {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════════════════════════
   31. PSX STOCK MARKET — Mobile
   ═══════════════════════════════════════════════════════════════════ */

.psx-section {
  background: var(--surface);
  border-radius: 12px;
  padding: 16px !important;
  margin-bottom: 20px;
  border: 1px solid var(--grey);
  overflow: hidden;
}

.psx-header {
  margin-bottom: 16px;
}

.psx-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.psx-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* Stats row — horizontal scroll on mobile */
.psx-stats {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.psx-stats::-webkit-scrollbar {
  display: none;
}

.psx-stat {
  flex-shrink: 0;
  background: var(--surface-2, #f5f5f5);
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
  min-width: 80px;
}

.psx-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.psx-stat-val {
  font-size: 20px;
  font-weight: 800;
}

.psx-stat-accent { color: var(--accent); }
.psx-stat-green { color: #22c55e; }
.psx-stat-red { color: #ef4444; }
.psx-stat-gray { color: var(--muted); }

.psx-fetch-info {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
  text-align: right;
}

/* PSX Search & Filters */
.psx-controls {
  margin-bottom: 16px;
}

.psx-controls input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--grey);
  border-radius: 8px;
  font-size: 13px;
  background: var(--surface);
  color: var(--text);
  margin-bottom: 10px;
  box-sizing: border-box;
}

.psx-controls input::placeholder {
  color: var(--muted);
}

.psx-sector-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.psx-sector-filters::-webkit-scrollbar {
  display: none;
}

.psx-sector-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid var(--grey);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.psx-sector-btn.active {
  background: var(--primary-deep);
  color: #fff;
  border-color: var(--primary-deep);
}

/* PSX Sector groups */
.psx-sector-group {
  margin-bottom: 16px;
}

.psx-sector-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--grey);
  margin-bottom: 8px;
}

.psx-sector-icon {
  font-size: 16px;
}

.psx-sector-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2, #f5f5f5);
  padding: 2px 8px;
  border-radius: 10px;
}

/* PSX Table — mobile card style */
.psx-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 8px;
}

.psx-table-wrap::-webkit-scrollbar {
  display: none;
}

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

.psx-table thead {
  display: none;
}

.psx-table tbody tr {
  display: flex;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid var(--grey);
  gap: 4px;
  align-items: center;
}

.psx-table td {
  border: none;
  padding: 0;
}

.psx-sym {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  margin-right: 6px;
}

.psx-name {
  font-size: 11px;
  color: var(--muted);
  flex: 1;
}

.psx-price {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  width: 80px;
  text-align: right;
}

.psx-change {
  font-weight: 600;
  font-size: 12px;
  width: 80px;
  text-align: right;
}

.psx-up { color: #22c55e; }
.psx-down { color: #ef4444; }
.psx-flat { color: var(--muted); }

/* PSX Right-aligned columns — reset on mobile */
.psx-rt {
  text-align: left;
}

/* ═══════════════════════════════════════════════════════════════════
   32. CATEGORY PAGE — Sidebar Mobile (hidden)
   ═══════════════════════════════════════════════════════════════════ */

/* Category page sidebar — already in CSS but ensure full width on mobile */
.cat-page {
  padding: 0 !important;
}

/* Newsletter section on category page */
.cat-newsletter {
  padding: 16px !important;
  border-radius: 12px;
}

.cat-newsletter input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--grey);
  border-radius: 8px;
  font-size: 13px;
  box-sizing: border-box;
  margin-bottom: 8px;
}

.cat-newsletter button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: var(--primary-deep);
  color: #fff;
  cursor: pointer;
}

/* Social buttons on category page */
.cat-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--grey);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  text-decoration: none;
  transition: all 0.2s;
}

.cat-social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════════
   33. CITY PAGE — Mobile
   ═══════════════════════════════════════════════════════════════════ */

/* City page uses same cat-page classes, so it's already covered.
   This section ensures any city-specific elements are styled. */

/* ═══════════════════════════════════════════════════════════════════
   34. PAGINATION — Mobile
   ═══════════════════════════════════════════════════════════════════ */

.cat-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.cat-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--grey);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
  transition: all 0.2s;
}

.cat-page-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cat-page-btn.active {
  background: var(--primary-deep);
  color: #fff;
  border-color: var(--primary-deep);
}

.cat-page-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════
   35. DARK MODE OVERRIDES — Article & PSX
   ═══════════════════════════════════════════════════════════════════ */

body.dark .article-content {
  color: var(--text);
}

body.dark .article-content blockquote {
  background: var(--surface);
  border-left-color: var(--accent);
}

body.dark .ai-analysis {
  background: var(--surface);
  border-color: rgba(255,255,255,0.08);
}

body.dark .ai-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

body.dark .psx-section {
  background: var(--surface);
  border-color: rgba(255,255,255,0.08);
}

body.dark .psx-stat {
  background: rgba(255,255,255,0.05);
}

body.dark .psx-table tbody tr {
  border-bottom-color: rgba(255,255,255,0.06);
}

body.dark .psx-sector-btn {
  background: var(--surface);
  border-color: rgba(255,255,255,0.1);
  color: var(--text-2);
}

body.dark .psx-sector-btn.active {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  color: #fff;
}

body.dark .psx-controls input {
  background: var(--surface);
  border-color: rgba(255,255,255,0.1);
  color: var(--text);
}

body.dark .kicker {
  background: rgba(214, 168, 79, 0.15);
}

body.dark .share-icon {
  background: rgba(255,255,255,0.05);
  color: var(--text-2);
}

body.dark .share-icon:hover {
  background: var(--accent);
  color: #fff;
}



/* ============================================
   ============================================ */
.intel-header {
  padding: 14px;
}

.intel-badge-row {
  gap: 8px;
}

.intel-pk-badge {
  font-size: 10px;
  padding: 3px 10px;
}

.tension-label {
  font-size: 10px;
  padding: 3px 10px;
}

.intel-gist {
  padding: 14px;
}

.intel-gist-headline {
  font-size: 16px;
  margin-bottom: 16px;
}

.intel-stakeholder-quick {
  padding: 0 14px 14px;
}

.intel-stakeholder-tags {
  gap: 6px;
}

.intel-stakeholder-tag {
  padding: 6px 10px;
  flex: 1;
  min-width: calc(50% - 6px);
}

.intel-stakeholder-tag strong {
  font-size: 12px;
}

.intel-impact-quick {
  padding: 0 14px 14px;
}

.ai-impact-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.intel-sk-list {
  grid-template-columns: 1fr;
  gap: 8px;
}

.intel-sk-node {
  padding: 10px;
}

.intel-sk-conn-item {
  flex-wrap: wrap;
  gap: 4px;
}

.intel-sk-conn-from,
.intel-sk-conn-to {
  min-width: auto;
}

.intel-sk-conn-type {
  order: 3;
  width: 100%;
  text-align: center;
  margin-top: 4px;
}

.intel-impact-card {
  padding: 14px;
  margin-bottom: 10px;
}

.intel-scenarios {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
}

.intel-scenario-card {
  padding: 14px;
}

.intel-forward-section {
  padding: 14px;
}

.intel-glossary-grid {
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 14px;
}

.intel-glossary-item {
  padding: 12px;
}

/* PWA Tip Card - Mobile */
.pwa-tip-card {
    width: 340px;
}
.pwa-tip-card-header {
    padding: 18px 16px 10px;
    gap: 12px;
}
.pwa-tip-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}
.pwa-tip-card-header h3 {
    font-size: 16px;
}
.pwa-tip-card-header span {
    font-size: 12px;
}
.pwa-tip-close {
    width: 36px;
    height: 36px;
    top: 14px;
    right: 14px;
}
.pwa-tip-card-body {
    padding: 0 16px 20px;
}
.pwa-tip-card-body p {
    font-size: 13px;
}



/* Search Overlay — Mobile */
.search-overlay { padding-top: 0; }
.search-overlay.is-open { display: flex; flex-direction: column; }
.search-backdrop { display: none; }
.search-container {
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
    animation: none;
}
.search-head { padding: 12px; }
.search-input-wrap { padding: 0 12px; border-radius: 8px; }
.search-input-wrap input { font-size: 15px; padding: 10px 0; }
.search-close-btn { width: 34px; height: 34px; }
.search-filters { padding: 8px 12px; gap: 8px; overflow-x: auto; flex-wrap: nowrap; }
.search-filter-group select { font-size: 12px; padding: 5px 10px; white-space: nowrap; }
.sort-btn { font-size: 12px; padding: 5px 10px; white-space: nowrap; }
.search-result { padding: 10px 12px; gap: 10px; }
.search-result-title { font-size: 14px; }
.search-result-excerpt { font-size: 12px; -webkit-line-clamp: 1; }
.search-result-img { width: 70px; height: 52px; }
.search-footer { padding: 8px 12px; }
.pag-btn { min-width: 30px; height: 30px; font-size: 12px; }


/* Market CTA Pills — Mobile */
.market-cta-pill {
    padding: 10px 14px;
    border-radius: 10px;
}
.market-cta-icon img {
    width: 32px;
    height: 32px;
}
.market-cta-title {
    font-size: 0.88rem;
}
.market-cta-sub {
    font-size: 0.72rem;
}


/* ═══════════════════════════════════════════════════════════════════
   Hamburger Touch Fix — ensure clickable on all pages
   ═══════════════════════════════════════════════════════════════════ */
.hamburger-toggle {
  position: relative !important;
  z-index: 200 !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Ensure nav-wrap doesn't trap pointer events */
.nav-wrap {
  position: relative;
  z-index: 150;
}

/* Ensure site-header stays above page content */
.site-header {
  z-index: 100;
}


.nav-wrap {
  position: relative !important;
  z-index: 150 !important;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.hamburger-toggle {
  position: relative !important;
  z-index: 200 !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  cursor: pointer !important;
  user-select: none !important;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.market-strip {
  overflow: hidden !important;
}

.hamburger-line {
  pointer-events: none !important;
}
