/*
 * ═══════════════════════════════════════════════════════════════════
 * 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: #f5f5f7;
  color: #1a1a1a;
  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;
}

.home-main {
  padding-bottom: 40px;
}


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

/* Premium card base */
.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: #ffffff;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 2px 12px rgba(0,0,0,0.03);
  border: none !important;
  overflow: hidden;
}


/* ═══════════════════════════════════════════════════════════════════
   4. HEADER & MASTHEAD — Single-line: Logo + Hamburger + Search + Toggle
   ═══════════════════════════════════════════════════════════════════ */

/* Make site-header a flex container so we can reorder children */
.site-header {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Hide desktop masthead — we use nav-wrap for the single-line header */
.masthead {
  display: none !important;
}

/* Ticker at the TOP of the sticky header */
.market-strip {
  order: -1;
  background: #1a1a2e;
  padding: 6px 0;
}

.market-strip .ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #ffffff;
}

.ticker-label {
  font-weight: 600;
  white-space: nowrap;
  color: #4ade80;
}

.ticker-track {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
}

/* Nav bar — single line: Hamburger + Logo + Search + Toggle */
.nav-wrap {
  display: flex !important;
  align-items: center;
  padding: 8px 16px !important;
  gap: 10px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

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

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

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Logo — injected via JS into nav-wrap, placed after hamburger */
.nav-wrap .mobile-brand {
  display: flex !important;
  align-items: center;
  gap: 6px;
  order: 2;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-wrap .mobile-brand .brand-mark {
  font-size: 20px;
  line-height: 1;
}

.nav-wrap .mobile-brand strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--text, #1a1a1a);
  line-height: 1.1;
}

/* Search box — takes remaining space */
.nav-wrap .search-box {
  display: flex !important;
  flex: 1;
  min-width: 0;
  height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1.5px solid rgba(0,0,0,0.10);
  border-radius: 999px;
  background: #f5f5f7;
  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: #999;
}

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

/* Theme toggle — last item */
.nav-wrap .theme-toggle {
  display: grid !important;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border: 0;
  border-radius: 50%;
  background: #f5f5f7;
  cursor: pointer;
  place-items: center;
  order: 4;
}

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

.submit-news {
  display: none !important;
}


/* ═══════════════════════════════════════════════════════════════════
   5. HAMBURGER DRAWER (Premium Sidebar)
   ═══════════════════════════════════════════════════════════════════ */

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: #ffffff;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

/* Brand section */
.drawer-brand-section {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

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

.drawer-logo-mark {
  width: 44px;
  height: 44px;
  background: #1a1a2e;
  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: #1a1a1a;
  letter-spacing: -0.3px;
}

.drawer-tagline {
  margin: 8px 0 0;
  font-size: 12px;
  color: #888;
  letter-spacing: 0.2px;
}

/* Search section */
.drawer-search-section {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

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

.drawer-search-box:focus-within {
  border-color: #1a1a2e;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(26,26,46,0.08);
}

.drawer-search-box [data-icon] {
  color: #888;
  font-size: 16px;
  flex-shrink: 0;
}

.drawer-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  outline: none;
}

.drawer-search-input::placeholder {
  color: #aaa;
}

/* Close button */
.drawer-header {
  position: absolute;
  top: 16px;
  right: 12px;
  z-index: 10;
}

.drawer-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f7;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #666;
  transition: all 0.2s ease;
}

.drawer-close:active {
  background: #e8e8ed;
  transform: scale(0.92);
}

/* Menu items — clean vertical list */
.drawer-nav {
  flex: 1;
  padding: 8px 0;
}

.drawer-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  transition: all 0.15s ease;
  border-radius: 0;
  position: relative;
}

.drawer-menu-item:active {
  background: #f5f5f7;
}

.drawer-menu-item.active {
  color: #1a1a2e;
  background: #f0f0ff;
  font-weight: 600;
}

.drawer-menu-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: #1a1a2e;
  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;
}

/* 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.4);
  z-index: 190;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

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


/* ═══════════════════════════════════════════════════════════════════
   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;
  padding-top: 12px;
}

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

/* Unwrap news-feed-wrapper */
.home-main .news-feed-wrapper {
  display: contents;
}

/* Unwrap feed-row */
.home-main .feed-row {
  display: contents;
}

/* Hide Pakistan Breaking News on mobile (replaced by province section) */
.home-main .pakistan-feed {
  display: none;
}

/* ── Assign mobile order ── */
.home-main .live-panel         { order: 1; }
.home-main .lead-card          { order: 2; }
.home-main .popular-section    { order: 3; }
.home-main .province-section   { order: 4; }
.home-main .trending-tags      { order: 5; }
.home-main .feature-slider     { order: 6; }
.home-main .fuel-widget        { order: 7; }
.home-main .cat-news-grid      { order: 8; }
.home-main [data-section="editors"]    { order: 9; }
.home-main [data-section="technology"] { order: 10; }
.home-main .split-news         { order: 11; }
.home-main [data-section="cyber"]      { order: 12; }


/* ═══════════════════════════════════════════════════════════════════
   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: #1a1a1a;
  line-height: 1.35;
}

.lead-card .card-body p {
  font-size: 14px;
  color: #555;
  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: #999;
}

/* Related / Latest list */
.lead-related {
  display: none !important;
}


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

.popular-section {
  padding: 0 !important;
}

.popular-section h2 {
  font-size: 16px;
  font-weight: 700;
  padding: 16px 16px 12px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.popular-section .mini-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f2;
  align-items: flex-start;
}

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

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

.popular-section .mini-item h3 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 4px;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-section .mini-item .meta {
  font-size: 11px;
  color: #aaa;
}


/* ═══════════════════════════════════════════════════════════════════
   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: #ffffff;
  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: #1a1a2e;
  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: #333;
  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: #ffffff;
  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: #f5f5f7;
  border-radius: 20px;
  font-size: 13px;
  color: #333;
  transition: all 0.2s ease;
}

.trending-tag:active {
  background: #e8e8ed;
  transform: scale(0.97);
}

.trending-tag-rank {
  font-weight: 700;
  color: #1a1a2e;
  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: #333;
  line-height: 1.35;
}

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

.fuel-item-icon {
  font-size: 16px;
}

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

.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: #aaa;
  padding: 8px 16px 14px;
}

.crude-price-big {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a1a;
}

.crude-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 8px;
  flex-wrap: wrap;
}

.crude-change-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.crude-date {
  font-size: 11px;
  color: #aaa;
}

/* Divider between petrol and crude */
.fuel-col:first-child {
  border-bottom: 1px solid #f0f0f2;
}


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

.cat-news-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  padding: 0 !important;
  grid-template-columns: none !important;
  background: transparent !important;
  border: none !important;
}

.cat-news-col {
  background: #ffffff;
  border-radius: 14px;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 2px 12px rgba(0,0,0,0.03);
}

.cat-news-header {
  font-size: 15px;
  font-weight: 700;
  padding: 14px 16px 10px;
  margin: 0;
  color: #1a1a1a;
}

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

.cat-news-card-lead h4 {
  padding: 10px 16px 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.cat-news-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid #f5f5f7;
}

.cat-news-card .meta {
  font-size: 11px;
  color: #aaa;
  min-width: 42px;
}

.cat-news-card span:not(.meta) {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* Show max 3 list items per category on mobile */
.cat-news-col .cat-news-card:nth-child(n+4) {
  display: none;
}


/* ═══════════════════════════════════════════════════════════════════
   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;
}

[data-section="editors"] .editor-grid {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
}

[data-section="editors"] .editor-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
}

[data-section="editors"] .editor-card-img-wrap {
  width: 100px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
}

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

[data-section="editors"] .editor-card-body {
  flex: 1;
  min-width: 0;
  padding: 0;
}

[data-section="editors"] .editor-card-body h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 6px;
}

[data-section="editors"] .editor-card-body p {
  display: none;
}

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


/* ═══════════════════════════════════════════════════════════════════
   16. TECHNOLOGY — 2 Stories
   ═══════════════════════════════════════════════════════════════════ */

[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: 12px;
}

[data-section="technology"] .tech-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
}

[data-section="technology"] .tech-card-img-wrap {
  width: 100px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
}

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

[data-section="technology"] .tech-card-body {
  flex: 1;
  min-width: 0;
  padding: 0;
}

[data-section="technology"] .tech-card-body h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 6px;
}

[data-section="technology"] .tech-card-body p {
  display: none;
}

/* Show only 2 on mobile */
[data-section="technology"] .tech-card:nth-child(n+3) {
  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,
.split-news > aside {
  width: 100% !important;
}

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

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

.story-list-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
}

.story-list-card-img-wrap,
.story-list-card > img {
  display: none !important;
}

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

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

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

.story-list-card-body .meta {
  font-size: 11px;
  color: #aaa;
}

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


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

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

.opinion-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
}

.opinion-card-img-wrap {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
}

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

.opinion-card-body {
  flex: 1;
  min-width: 0;
  padding: 0;
}

.opinion-label {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  background: #1a1a2e;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}

.opinion-card-body h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 4px;
}

.opinion-card-body .meta {
  font-size: 11px;
  color: #aaa;
}

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


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

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

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

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

/* 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: 12px;
}

.cyber-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
}

.cyber-card-img-wrap {
  width: 90px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
}

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

.cyber-card-body {
  flex: 1;
  min-width: 0;
  padding: 0;
}

.cyber-card-body h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 6px;
}

.cyber-card-body p {
  display: none;
}

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


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

.site-footer {
  background: #1a1a2e;
  color: #ffffff;
  margin-top: 20px;
}

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

.footer-top {
  display: none !important;
}

.copyright {
  text-align: center;
  padding: 16px !important;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.copyright span {
  font-size: 12px;
}

/* Mobile footer — essential links + social only */
.site-footer::before {
  content: '';
  display: none;
}


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

.home-main .block-heading {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}

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


/* ═══════════════════════════════════════════════════════════════════
   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 */
.home-main * {
  box-shadow: none !important;
}

/* 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 {
  background: transparent !important;
  border: none !important;
  padding: 0 !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: #ffffff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.pagination a.active {
  background: #1a1a2e;
  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;
}
