/* ==========================================================================
   NEWS CONNECT: Professional Editorial Design System (Responsive Single-Page)
   Palette: Obsidian Navy, Surface Slate, Warm Editorial Gold, Breaking News Red
   ========================================================================== */

:root {
  --font-editorial: 'Newsreader', 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Theme: Dark Navy (Default) */
  --bg-primary: #070C18;
  --bg-secondary: #040810;
  --bg-surface: #0E162B;
  --bg-surface-hover: #15223E;
  --bg-surface-subtle: #0A1122;
  --bg-glass: rgba(14, 22, 43, 0.82);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverse: #070C18;

  --accent-gold: #F5B041;
  --accent-gold-gradient: linear-gradient(135deg, #FFE885 0%, #F5B041 50%, #D48806 100%);
  --accent-gold-light: #FFF9E6;
  --accent-gold-bg: rgba(245, 176, 65, 0.12);
  --accent-gold-border: rgba(245, 176, 65, 0.3);
  --accent-gold-glow: rgba(245, 176, 65, 0.35);

  --accent-red: #EF4444;
  --accent-red-gradient: linear-gradient(135deg, #EF4444 0%, #DC2626 50%, #991B1B 100%);
  --accent-red-bg: rgba(239, 68, 68, 0.15);
  --accent-red-glow: rgba(239, 68, 68, 0.45);

  --status-live: #10B981;
  --status-live-bg: rgba(16, 185, 129, 0.12);
  --status-live-border: rgba(16, 185, 129, 0.3);
  --status-broadcast: #F59E0B;
  --status-broadcast-bg: rgba(245, 158, 11, 0.15);
  --status-portal: #6366F1;
  --status-portal-bg: rgba(99, 102, 241, 0.15);

  --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --card-shadow-hover: 0 12px 32px -4px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(245, 176, 65, 0.25);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-primary: #F8FAFC;
  --bg-secondary: #EDF2F7;
  --bg-surface: #FFFFFF;
  --bg-surface-hover: #F1F5F9;
  --bg-surface-subtle: #F8FAFC;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --border-color: rgba(15, 23, 42, 0.08);
  --border-light: rgba(15, 23, 42, 0.14);

  --text-primary: #0B1325;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-inverse: #FFFFFF;

  --accent-gold: #C2820A;
  --accent-gold-gradient: linear-gradient(135deg, #E5A118 0%, #C2820A 100%);
  --accent-gold-light: #FFF9E6;
  --accent-gold-bg: rgba(194, 130, 10, 0.1);
  --accent-gold-border: rgba(194, 130, 10, 0.25);
  --accent-gold-glow: rgba(194, 130, 10, 0.25);

  --accent-red: #DC2626;
  --accent-red-gradient: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  --accent-red-bg: rgba(220, 38, 38, 0.1);
  --accent-red-glow: rgba(220, 38, 38, 0.25);

  --status-live: #059669;
  --status-live-bg: rgba(5, 150, 105, 0.1);
  --status-live-border: rgba(5, 150, 105, 0.25);
  --status-broadcast: #D97706;
  --status-broadcast-bg: rgba(217, 119, 6, 0.1);
  --status-portal: #4F46E5;
  --status-portal-bg: rgba(79, 70, 229, 0.1);

  --card-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.05);
  --card-shadow-hover: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(194, 130, 10, 0.3);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-gold-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -4px var(--accent-gold-glow),
              inset 0 1.5px 1.5px rgba(255, 255, 255, 0.7),
              inset 0 -1.5px 1.5px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  flex-shrink: 0;
}

.brand-wrapper:hover .brand-icon {
  transform: scale(1.04) rotate(4deg);
  box-shadow: 0 12px 28px -2px var(--accent-gold-glow);
}

.brand-symbol-svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.brand-headline-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-title {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 1.8px;
  line-height: 1;
  color: var(--text-primary);
  margin: 0;
}

.brand-highlight {
  background: linear-gradient(135deg, #FFF7DC 0%, #F5B041 50%, #E67E22 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(245, 176, 65, 0.35));
}

[data-theme="light"] .brand-highlight {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: none;
}

.brand-edition-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--accent-gold);
  background: var(--accent-gold-bg);
  border: 1px solid var(--accent-gold-border);
  padding: 2px 7px;
  border-radius: 4px;
}

.brand-tagline {
  font-size: 11.5px;
  color: var(--text-secondary);
  letter-spacing: 0.6px;
  font-weight: 500;
  margin-top: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--status-live-bg);
  border: 1px solid var(--status-live-border);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--status-live);
  letter-spacing: 0.3px;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.status-radar {
  position: relative;
  width: 8px;
  height: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.radar-ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--status-live);
  opacity: 0.75;
  animation: radar-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--status-live);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--status-live);
}

@keyframes radar-ping {
  75%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.action-icon-svg {
  width: 18px;
  height: 18px;
}

.refresh-btn, .theme-toggle {
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.refresh-btn:hover, .theme-toggle:hover {
  background: var(--border-light);
  border-color: var(--accent-gold-border);
  color: var(--accent-gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--accent-gold-glow);
}

.refresh-btn:active, .theme-toggle:active {
  transform: translateY(0);
}

.theme-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nav Menu (Image 7 Glowing Pill Styling) */
.header-nav {
  display: flex;
  gap: 8px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
  align-items: center;
}

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

.nav-link {
  font-size: 12.5px;
  font-weight: 600;
  color: #94A3B8;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.nav-bullet {
  font-size: 12px;
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #F5B041;
  background: rgba(245, 176, 65, 0.12);
  border-color: rgba(245, 176, 65, 0.45);
  font-weight: 700;
  box-shadow: 0 0 18px rgba(245, 176, 65, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-link.active .nav-bullet {
  opacity: 1;
  color: #F5B041;
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px rgba(245, 176, 65, 0.6));
}

.saved-pill {
  background: #EA580C;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 9999px;
  margin-left: 2px;
  line-height: 1.3;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.4);
}

[data-theme="light"] .nav-link {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #475569;
}

[data-theme="light"] .nav-link:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.16);
  color: #0F172A;
}

[data-theme="light"] .nav-link.active {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.45);
  color: #B45309;
  box-shadow: 0 2px 12px rgba(217, 119, 6, 0.2);
}

/* ==========================================================================
   Featured Hero Section & Trending Now Showcase (Image 2 Exact Layout)
   ========================================================================== */
.featured-section {
  padding: 24px 0 20px;
}

.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.badge-red {
  background: var(--accent-red-gradient);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  box-shadow: 0 0 10px var(--accent-red-glow);
}

.meta-time {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Featured Container Grid: Left Hero Card (70%) + Right Trending Now (30%) */
.featured-container-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* Left Hero Card */
.featured-main-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.featured-main-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--card-shadow-hover);
}

.featured-img-col {
  height: 100%;
  min-height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  position: relative;
}

.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.5s ease;
  display: block;
}

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

.featured-info-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 0;
}

.featured-cat-tag {
  font-size: 13px;
  font-weight: 800;
  color: #F5B041;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

[data-theme="light"] .featured-cat-tag {
  color: #D68910;
}

.featured-headline {
  font-family: var(--font-sans);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.featured-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}

.featured-btn-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.btn-read-more {
  background: #F5B041;
  color: #0B1325;
  font-size: 13.5px;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(245, 176, 65, 0.35);
}

.btn-read-more:hover {
  background: #F39C12;
  color: #0B1325;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 176, 65, 0.45);
}

/* Right Trending Now Card */
.trending-now-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
}

.trending-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  justify-content: space-between;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 10px;
  transition: var(--transition);
}

.trending-item:hover {
  background: var(--bg-surface-hover);
  transform: translateX(3px);
}

.trending-rank-badge {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #F5B041;
  color: #0B1325;
  font-size: 12.5px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(245, 176, 65, 0.35);
}

.trending-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.trending-text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.trending-item:hover .trending-text {
  color: #2563EB;
}

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

@media (max-width: 640px) {
  .featured-main-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .featured-img-col {
    min-height: 220px;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gold-gradient);
  color: #070C18;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  width: fit-content;
  box-shadow: 0 4px 16px var(--accent-gold-glow);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-gold-glow);
  filter: brightness(1.06);
}

/* ==========================================================================
   Section 2: 8 News Networks (Premium Brand Console Deck)
   ========================================================================== */
.sources-section {
  padding: 32px 0 24px;
}

.section-subtext {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 4px;
  margin-bottom: 20px;
}

.badge-blue, .badge-gold {
  background: #F5B041;
  color: #0B1325;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 5px;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(245, 176, 65, 0.35);
  display: inline-block;
}

.badge-amber {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.meta-time-sync {
  font-size: 11.5px;
  color: var(--status-live);
  font-weight: 700;
}

.reset-sources-pill {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.reset-sources-pill:hover {
  background: rgba(239, 68, 68, 0.22);
}

/* New Premium Card Grid for 8 Networks */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1100px) {
  .sources-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .sources-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .sources-grid { grid-template-columns: 1fr; }
}

/* Premium Source Card */
.source-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

/* Top glowing accent bar */
.source-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--source-accent, #F5B041);
  opacity: 0.85;
  border-radius: 18px 18px 0 0;
}

/* Subtle ambient glow at top corners */
.source-card::after {
  content: '';
  position: absolute;
  top: -40px;
  left: -20px;
  width: 120px;
  height: 80px;
  background: radial-gradient(ellipse at center, var(--source-accent, #F5B041) 0%, transparent 70%);
  opacity: 0.08;
  pointer-events: none;
  border-radius: 50%;
  transition: opacity 0.3s ease;
}

.source-card:hover {
  border-color: var(--source-accent, #F5B041);
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(245, 176, 65, 0.15);
}

.source-card:hover::after {
  opacity: 0.15;
}

.source-card.active {
  border-color: var(--source-accent, #F5B041);
  background: var(--bg-surface-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(245, 176, 65, 0.25);
}

/* Card Header: Logo + Status Badge */
.src-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Logo wrapper — fixed height for consistency */
.src-logo-wrap {
  height: 52px;
  display: flex;
  align-items: center;
}

/* Real brand logo image */
.source-logo-img {
  height: 48px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.source-card:hover .source-logo-img {
  transform: scale(1.07);
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.6));
}

/* Fallback text logo */
.src-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Status pills */
.src-status-rss,
.src-status-tv,
.src-status-portal {
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.src-status-rss {
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
}

.src-status-tv {
  color: #F59E0B;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.1);
}

.src-status-portal {
  color: #818CF8;
  border-color: rgba(129, 140, 248, 0.4);
  background: rgba(129, 140, 248, 0.1);
}

/* Card Body */
.src-card-body {
  flex: 1;
}

.src-network-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 5px;
  line-height: 1.3;
}

.src-region-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.src-flag {
  font-size: 13px;
}

.src-region {
  font-weight: 500;
}

/* Card Footer */
.src-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  gap: 8px;
}

.src-filter-btn {
  font-size: 11px;
  font-weight: 800;
  color: #F5B041;
  background: rgba(245, 176, 65, 0.1);
  border: 1px solid rgba(245, 176, 65, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  letter-spacing: 0.2px;
}

.src-filter-btn:hover,
.src-filter-btn.active {
  background: rgba(245, 176, 65, 0.22);
  border-color: #F5B041;
  color: #F5B041;
}

.src-portal-link {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 11px;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.src-portal-link:hover {
  color: #F5B041;
}

/* Keep old classes for backwards compatibility */
.source-item {
  display: none; /* hide old-style cards if any linger */
}


/* ==========================================================================
   Section 3: Filter & Search Bar (Image 1: 🔍 ☰ Search & Topics Control)
   ========================================================================== */
.filter-search-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
  position: relative;
}

.search-bar-row {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}

/* Image 1 Search & Categories Toggle Button */
.search-category-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
  white-space: nowrap;
  user-select: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.search-category-btn:hover {
  border-color: var(--accent-gold-border);
  background: var(--bg-surface-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-gold-glow);
}

.search-category-btn.open {
  border-color: var(--accent-gold);
  background: var(--accent-gold-bg);
  color: var(--accent-gold);
  box-shadow: 0 0 16px var(--accent-gold-glow);
}

.btn-icon-cluster {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #FFFFFF;
}

.search-svg, .menu-svg {
  width: 17px;
  height: 17px;
  stroke: #FFFFFF;
  color: #FFFFFF;
}

.search-cat-label {
  font-size: 13px;
  font-weight: 700;
}

.active-category-pill {
  background: var(--accent-gold-gradient);
  color: #070C18;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px var(--accent-gold-glow);
}

.dropdown-chevron {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.search-category-btn.open .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--accent-gold);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  pointer-events: none;
}

.search-input-svg {
  width: 17px;
  height: 17px;
  stroke: #FFFFFF;
  color: #FFFFFF;
}

.search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 13.5px;
  padding: 12px 42px 12px 42px;
  border-radius: 12px;
  outline: none;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
  font-family: inherit;
}

.search-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-gold-bg);
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
}

/* Category Dropdown Modal / List Panel (Image 1 & 2) */
.category-dropdown-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--accent-gold-border);
  animation: slideDownFade 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 50;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 14px;
}

.dropdown-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}

.dropdown-panel-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: var(--transition);
}

.dropdown-panel-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  border-color: #EF4444;
}

.category-list-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.category-dropdown-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  color: var(--text-secondary);
  outline: none;
}

.category-dropdown-item:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-light);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.category-dropdown-item.active {
  background: var(--accent-gold-bg);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  font-weight: 700;
  box-shadow: 0 0 12px var(--accent-gold-glow);
}

.cat-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.cat-icon {
  font-size: 15px;
}

.cat-item-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-count-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.category-dropdown-item.active .cat-count-badge {
  background: var(--accent-gold);
  color: #070C18;
  font-weight: 800;
}

.cat-check {
  font-size: 12px;
  color: var(--accent-gold);
  font-weight: 900;
}

@media (max-width: 680px) {
  .search-bar-row {
    flex-direction: column;
    align-items: stretch;
  }
  .search-category-btn {
    width: 100%;
    justify-content: space-between;
  }
}

/* Category Pills Carousel */
.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.category-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-pill:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

.category-pill.active {
  background: var(--accent-gold-gradient);
  color: #070C18;
  border-color: var(--accent-gold);
  font-weight: 800;
  box-shadow: 0 2px 8px var(--accent-gold-glow);
}

/* News Cards Grid & Heading Bar */
.news-grid-section {
  padding: 16px 0 32px;
}

.grid-heading-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.grid-heading-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.grid-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.grid-count-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

/* View Mode Segmented Toggle (Replaces Default HTML Buttons) */
.view-mode-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 3px;
  gap: 3px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.view-btn {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 750;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
  outline: none;
  line-height: 1.4;
}

.view-btn svg {
  stroke: #F5B041;
  color: #F5B041;
  filter: drop-shadow(0 0 3px rgba(245, 176, 65, 0.35));
}

.view-btn.active svg {
  stroke: #070C18;
  color: #070C18;
  filter: none;
}

.view-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.view-btn.active {
  background: var(--accent-gold-gradient);
  color: #070C18;
  font-weight: 800;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px var(--accent-gold-glow);
}

[data-theme="light"] .view-mode-toggle {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .view-btn {
  color: #64748B;
}

[data-theme="light"] .view-btn:hover {
  color: #0F172A;
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .view-btn.active {
  background: linear-gradient(135deg, #D97706, #B45309);
  color: #FFFFFF;
}

/* Magazine Cards Layout */
.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

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

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

.card-thumb-wrap {
  position: relative;
  height: 185px;
  background: #000;
  overflow: hidden;
}

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

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

.card-cat-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(8, 13, 26, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-content {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-source-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-source-pill {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-badge {
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 3px;
}

.source-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
}

.card-time {
  font-size: 11px;
  color: var(--text-muted);
}

.card-headline {
  font-family: var(--font-editorial);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text-primary);
  transition: var(--transition);
}

.card-headline a:hover {
  color: var(--accent-gold);
}

.card-summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
}

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

.read-link {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-gold);
  transition: var(--transition);
}

.read-link:hover {
  text-decoration: underline;
}

.attribution-tag {
  font-size: 10px;
  color: var(--text-muted);
  font-style: italic;
}

/* Compact Wire List Layout Mode */
.news-cards-grid.view-mode-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-cards-grid.view-mode-list .news-card {
  flex-direction: row;
  align-items: center;
  padding: 12px 18px;
  gap: 16px;
}

.news-cards-grid.view-mode-list .card-thumb-wrap {
  width: 90px;
  height: 65px;
  border-radius: 8px;
  flex-shrink: 0;
}

.news-cards-grid.view-mode-list .card-content {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.news-cards-grid.view-mode-list .card-summary {
  display: none;
}

.news-cards-grid.view-mode-list .card-headline {
  font-size: 15px;
  margin-bottom: 0;
  flex: 1;
}

.news-cards-grid.view-mode-list .card-footer {
  border-top: none;
  padding-top: 0;
  gap: 12px;
}

/* ==========================================================================
   Section 4: Broadcast Control Room Screens (TV Monitors)
   ========================================================================== */
.broadcast-section {
  padding: 28px 0;
  background: var(--bg-surface-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 30px 0;
}

.broadcast-live-beacon {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--status-live);
  background: var(--status-live-bg);
  border: 1px solid var(--status-live-border);
  padding: 3px 10px;
  border-radius: 20px;
}

.broadcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.broadcast-tv-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.broadcast-tv-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.tv-screen-bezel {
  background: #000;
  padding: 8px 8px 0;
}

.tv-screen-glass {
  height: 190px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
}

.tv-screen-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.75) 100%);
}

.tv-screen-top, .tv-screen-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tv-screen-center {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-play-trigger {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(234, 88, 12, 0.9);
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 0 18px rgba(234, 88, 12, 0.6);
  padding-left: 3px;
}

.btn-play-trigger:hover {
  transform: scale(1.12);
  background: #EA580C;
}

.on-air-tag {
  background: #DC2626;
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.6);
}

.on-air-pulse {
  width: 5px;
  height: 5px;
  background: #FFFFFF;
  border-radius: 50%;
  animation: pulse 1s infinite;
}

.tv-channel-pill {
  background: rgba(0, 0, 0, 0.75);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.tv-frequency {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 1px;
}

.tv-card-content {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tv-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.tv-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}

.tv-callsign {
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
}

.tv-card-tagline {
  font-size: 11.5px;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 8px;
}

.tv-card-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.tv-btn-row {
  display: flex;
  gap: 10px;
}

.btn-stream {
  flex: 1.2;
  padding: 9px 12px;
  background: linear-gradient(135deg, #EA580C, #C2410C);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

.btn-stream:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-portal {
  flex: 1;
  padding: 9px 12px;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  transition: var(--transition);
}

.btn-portal:hover {
  border-color: var(--accent-gold-border);
  color: var(--accent-gold);
}

/* ==========================================================================
   Section 5: Editorial Dossier & Legal Attribution Charter
   ========================================================================== */
.about-dossier-section {
  margin: 30px 0;
}

.dossier-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.dossier-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gold-gradient);
}

.dossier-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.dossier-crest {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-gold-gradient);
  color: #070C18;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px var(--accent-gold-glow);
}

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

.dossier-subtitle {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.dossier-columns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.dossier-col {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px;
  transition: var(--transition);
}

.dossier-col:hover {
  border-color: var(--accent-gold-border);
  transform: translateY(-2px);
}

.dossier-col-icon {
  font-size: 22px;
  margin-bottom: 10px;
}

.dossier-col h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.dossier-col p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Section 6: Footer (Newspaper Masthead Directory)
   ========================================================================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 44px 0 30px;
  margin-top: 40px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-brand-pane .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-logo-icon {
  color: var(--accent-gold);
  font-size: 18px;
}

.footer-brand-pane h3 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--text-primary);
}

.footer-brand-pane h3 span {
  color: var(--accent-gold);
}

.footer-mission {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 360px;
  margin-bottom: 16px;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--status-live-border);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--status-live);
}

.footer-live-beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-live);
  box-shadow: 0 0 8px var(--status-live);
}

.footer-dir-col h4 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

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

.footer-dir-col a {
  font-size: 12px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-dir-col a:hover {
  color: var(--accent-gold);
  transform: translateX(2px);
}

.footer-bottom-bar {
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.footer-disclaimer-tag {
  color: var(--text-muted);
  font-size: 10.5px;
}

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

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

/* Responsive Media Queries & Mobile Optimization */
@media (max-width: 860px) {
  .hero-card {
    grid-template-columns: 1fr;
  }
  .hero-image-wrap {
    min-height: 200px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Device Viewport Switcher Toolbar (Desktop ↔ Tablet ↔ Mobile Simulator)
   ========================================================================== */
.device-switcher-toolbar {
  background: rgba(6, 11, 20, 0.94);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 18px;
  position: sticky;
  top: 0;
  z-index: 9999;
  font-size: 12px;
  color: var(--text-secondary);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .device-switcher-toolbar {
  background: rgba(241, 245, 249, 0.95);
  border-bottom-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.toolbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.toolbar-label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.toolbar-beacon {
  position: relative;
  width: 9px;
  height: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.beacon-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--status-live);
  opacity: 0.75;
  animation: radar-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.toolbar-dot {
  width: 8px;
  height: 8px;
  background: var(--status-live);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--status-live);
}

.toolbar-brand-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text-primary);
}

.toolbar-mode-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 2px 7px;
  border-radius: 4px;
}

[data-theme="light"] .toolbar-mode-badge {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-secondary);
}

.toolbar-buttons {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 3px;
  gap: 3px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .toolbar-buttons {
  background: rgba(15, 23, 42, 0.04);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.device-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
}

.device-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .device-btn:hover {
  background: rgba(15, 23, 42, 0.06);
}

.btn-svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.device-btn.active {
  background: var(--accent-gold-gradient);
  color: #070C18;
  font-weight: 800;
  box-shadow: 0 2px 10px var(--accent-gold-glow);
}

.device-btn.active .btn-svg {
  color: #070C18;
}

.toolbar-hint {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.hint-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.6;
}

/* ==========================================================================
   Viewport Container & Mobile Simulator Frame
   ========================================================================== */
.app-viewport {
  width: 100%;
  transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  position: relative;
}

.app-viewport.mode-desktop {
  max-width: 100%;
}

.app-viewport.mode-tablet {
  max-width: 768px;
  margin: 20px auto 40px;
  border: 3px solid #1E293B;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  background: var(--bg-primary);
}

.app-viewport.mode-mobile {
  max-width: 390px;
  margin: 20px auto 40px;
  border: 12px solid #182234;
  border-radius: 46px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), inset 0 0 4px rgba(255, 255, 255, 0.1);
  overflow-y: auto;
  max-height: 844px;
  background: var(--bg-primary);
  position: relative;
  scrollbar-width: thin;
}

.phone-frame-notch {
  display: none;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: #182234;
  z-index: 1000;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  width: 160px;
  margin: 0 auto 4px;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.app-viewport.mode-mobile .phone-frame-notch {
  display: flex;
}

.notch-speaker {
  width: 44px;
  height: 4px;
  background: #334155;
  border-radius: 2px;
}

.notch-camera {
  width: 8px;
  height: 8px;
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 50%;
}

/* ==========================================================================
   Native Mobile Bottom Navigation Bar (Visible on mobile viewports & simulator)
   ========================================================================== */
.mobile-bottom-nav-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  backdrop-filter: blur(12px);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 12px;
  transition: var(--transition);
}

.nav-btn-icon {
  font-size: 18px;
}

.mobile-nav-btn.active, .mobile-nav-btn:hover {
  color: var(--accent-gold);
}

/* Display bottom nav when in simulator or real mobile */
.app-viewport.mode-mobile .mobile-bottom-nav-bar {
  display: flex;
  position: sticky;
  bottom: 0;
  z-index: 500;
}

@media (max-width: 768px) {
  .mobile-bottom-nav-bar {
    display: flex;
  }
  body {
    padding-bottom: 60px;
  }
  .device-switcher-toolbar {
    display: none; /* Hide device switcher on real mobile devices to maximize screen area */
  }
  .header-nav {
    display: none; /* Mobile users use bottom bar navigation */
  }
  .news-cards-grid {
    grid-template-columns: 1fr;
  }
  .sources-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }
  .source-item {
    min-width: 170px;
    scroll-snap-align: start;
  }
  .brand-text h1 {
    font-size: 18px;
  }
  .brand-text p {
    font-size: 10px;
  }
  .status-badge {
    padding: 3px 8px;
    font-size: 10px;
  }
}

/* ==========================================================================
   Editorial Breaking News Ticker Bar
   ========================================================================== */
.breaking-ticker-bar {
  background: linear-gradient(90deg, #050914 0%, #0A1324 50%, #050914 100%);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  height: 38px;
  overflow: hidden;
  position: relative;
}

[data-theme="light"] .breaking-ticker-bar {
  background: linear-gradient(90deg, #F1F5F9 0%, #E2E8F0 50%, #F1F5F9 100%);
}

.ticker-badge {
  background: var(--accent-red-gradient);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  padding: 0 20px 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
  box-shadow: 4px 0 18px var(--accent-red-glow), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  flex-shrink: 0;
}

.ticker-beacon {
  position: relative;
  width: 7px;
  height: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.beacon-wave {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #FFFFFF;
  opacity: 0.75;
  animation: radar-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ticker-pulse {
  width: 6px;
  height: 6px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 8px #FFFFFF;
}

.ticker-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.ticker-marquee {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 35s linear infinite;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.2px;
}

.ticker-marquee:hover {
  animation-play-state: paused;
  cursor: default;
}

.ticker-sep {
  color: var(--accent-gold);
  margin: 0 14px;
  filter: drop-shadow(0 0 6px var(--accent-gold-glow));
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

.saved-pill {
  background: var(--accent-gold-gradient);
  color: #070C18;
  font-size: 9.5px;
  font-weight: 900;
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 6px;
  box-shadow: 0 2px 6px var(--accent-gold-glow);
}

/* ==========================================================================
   Live Stream Player Modal
   ========================================================================== */
.stream-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.stream-modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.stream-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
}

.stream-channel-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stream-live-tag {
  background: var(--accent-red);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
}

.stream-modal-header h3 {
  font-size: 15px;
  font-weight: 800;
}

.stream-modal-close {
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stream-player-area {
  width: 100%;
  height: 420px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.stream-player-area iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.stream-modal-footer {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-secondary);
}




.brand-header-logo {
  height: 48px;
  width: auto;
  aspect-ratio: 2 / 1;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 12px rgba(245, 176, 65, 0.25);
  border: 1px solid rgba(245, 176, 65, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.brand-wrapper:hover .brand-header-logo {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 18px rgba(245, 176, 65, 0.5);
  border-color: #F5B041;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  aspect-ratio: 2 / 1;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 8px;
}


/* ==========================================================================
   Editorial Mockup Reference Design (Authentic Magazine Layouts)
   Preserves All Brand Colors: Golden Yellow (#F5B041), Deep Luxury Navy (#070C18, #0E162B)
   ========================================================================== */

/* Signature Editorial Section Header (Dot + Title + Horizontal Rule Line + Pill Button) */
.editorial-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  width: 100%;
}

.esh-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.esh-dot {
  color: #F5B041;
  font-size: 26px;
  line-height: 0.8;
  text-shadow: 0 0 10px rgba(245, 176, 65, 0.6);
}

.esh-title {
  font-size: 22px;
  font-weight: 850;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.esh-line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, #F5B041 0%, rgba(245, 176, 65, 0.4) 30%, rgba(255, 255, 255, 0.08) 100%);
  margin: 0 18px;
  border-radius: 2px;
}

.esh-view-all-btn {
  background: #F5B041;
  color: #0B1325;
  font-size: 11.5px;
  font-weight: 850;
  padding: 6px 16px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(245, 176, 65, 0.35);
  letter-spacing: 0.3px;
}

.esh-view-all-btn:hover {
  background: #F39C12;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 176, 65, 0.5);
  color: #0B1325;
}

/* Consortium Section Header Pill & Stack */
.consortium-title-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.consortium-pill {
  background: #2563EB !important;
  color: #FFFFFF !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: 0.08em !important;
  padding: 3px 10px !important;
  border-radius: 6px !important;
  text-transform: uppercase !important;
  display: inline-block !important;
  line-height: 1.2 !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4) !important;
}

/* 2-Column Editorial Magazine Focus Section (Mockup Business Section Layout) */
.editorial-magazine-section {
  margin: 44px 0 36px;
}

.editorial-magazine-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.editorial-lead-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.editorial-lead-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 176, 65, 0.4);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 176, 65, 0.15);
}

.editorial-lead-thumb-wrap {
  width: 100%;
  height: 280px;
  position: relative;
  overflow: hidden;
}

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

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

.editorial-lead-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 19, 37, 0.88);
  border: 1px solid rgba(245, 176, 65, 0.4);
  color: #F5B041;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.editorial-lead-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.editorial-lead-headline {
  font-size: 20px;
  font-weight: 850;
  line-height: 1.35;
  margin-bottom: 12px;
}

.editorial-lead-headline a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.editorial-lead-headline a:hover {
  color: #F5B041;
}

.editorial-lead-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.editorial-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F5B041, #D68910);
  color: #070C18;
  font-weight: 850;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-size: 12.5px;
  font-weight: 750;
  color: var(--text-primary);
}

.author-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* Right Column Compact Stories Stack */
.editorial-stack-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.editorial-stack-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.editorial-stack-item:hover {
  border-color: rgba(245, 176, 65, 0.4);
  background: var(--bg-surface-hover);
  transform: translateX(4px);
}

.editorial-stack-thumb {
  width: 74px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.editorial-stack-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.editorial-stack-tag {
  font-size: 10px;
  font-weight: 850;
  color: #F5B041;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.editorial-stack-title {
  font-size: 13px;
  font-weight: 750;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.editorial-stack-item:hover .editorial-stack-title {
  color: #F5B041;
}

.editorial-stack-footer-btn {
  margin-top: 14px;
  background: #F5B041;
  color: #0B1325;
  font-size: 13px;
  font-weight: 850;
  padding: 12px 20px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  display: block;
  box-shadow: 0 4px 14px rgba(245, 176, 65, 0.35);
  transition: all 0.2s ease;
}

.editorial-stack-footer-btn:hover {
  background: #F39C12;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 176, 65, 0.5);
  color: #0B1325;
}

/* Mockup Newsletter Subscription Card (Unified Clean Bottom Section) */
.newsletter-cta-card {
  background: linear-gradient(135deg, #091122 0%, #060B14 100%);
  border: 1px solid rgba(245, 176, 65, 0.25);
  border-radius: 18px;
  padding: 38px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.newsletter-cta-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 176, 65, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-left {
  max-width: 520px;
}

.newsletter-kicker {
  font-size: 11px;
  font-weight: 850;
  color: #F5B041;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}

.newsletter-title {
  font-size: 26px;
  font-weight: 850;
  color: #F8FAFC;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.newsletter-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 440px;
}

.newsletter-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s ease;
}

.newsletter-input:focus {
  border-color: #F5B041;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(245, 176, 65, 0.2);
}

.newsletter-btn {
  background: #F5B041;
  color: #0B1325;
  font-size: 13px;
  font-weight: 850;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(245, 176, 65, 0.35);
}

.newsletter-btn:hover {
  background: #F39C12;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 176, 65, 0.5);
  color: #0B1325;
}

/* FLOATING TOAST NOTIFICATIONS */
.nc-floating-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(14, 22, 43, 0.95);
  color: #F8FAFC;
  border: 1px solid #F5B041;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 176, 65, 0.35);
  backdrop-filter: blur(12px);
  padding: 12px 24px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 750;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nc-floating-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Pure White Icons Guarantee (Search Magnifier & Menu Hamburger) */
.btn-icon-cluster,
.search-svg,
.menu-svg,
.search-icon,
.search-input-svg,
.search-category-btn .search-svg,
.search-category-btn .menu-svg,
.search-category-btn:hover .search-svg,
.search-category-btn:hover .menu-svg,
.search-category-btn.open .search-svg,
.search-category-btn.open .menu-svg,
.search-box .search-input-svg {
  stroke: #FFFFFF !important;
  color: #FFFFFF !important;
}

@media (max-width: 920px) {
  .editorial-magazine-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-cta-card {
    flex-direction: column;
    align-items: stretch;
    padding: 28px 24px;
  }
  .newsletter-form {
    max-width: 100%;
    flex-direction: column;
  }
  .newsletter-input, .newsletter-btn {
    width: 100%;
  }
}

/* ==========================================================================
   OFFICIAL DOMAIN INTEGRATION (lwindia.org)
   ========================================================================== */
.brand-domain-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 176, 65, 0.12);
  border: 1px solid rgba(245, 176, 65, 0.4);
  color: #F5B041;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}

.brand-domain-pill:hover {
  background: #F5B041;
  color: #070C18;
  border-color: #F5B041;
  box-shadow: 0 0 12px rgba(245, 176, 65, 0.4);
}

.brand-domain-pill .domain-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 5px #10B981;
}

.header-domain-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(245, 176, 65, 0.18), rgba(245, 176, 65, 0.08));
  border: 1px solid rgba(245, 176, 65, 0.45);
  color: #F5B041;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25), 0 0 14px rgba(245, 176, 65, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-domain-btn:hover {
  background: #F5B041;
  color: #070C18;
  border-color: #F5B041;
  box-shadow: 0 4px 18px rgba(245, 176, 65, 0.45);
  transform: translateY(-1px);
}

.domain-radar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

.header-domain-btn:hover .domain-radar-dot {
  background: #070C18;
  box-shadow: none;
}

.nav-domain-link {
  font-weight: 800 !important;
  letter-spacing: 0.4px !important;
  transition: all 0.25s ease !important;
}

.nav-domain-link:hover {
  background: rgba(245, 176, 65, 0.2) !important;
  border-color: #F5B041 !important;
  box-shadow: 0 0 16px rgba(245, 176, 65, 0.35) !important;
}

[data-theme="light"] .brand-domain-pill {
  background: rgba(194, 130, 10, 0.1);
  border-color: rgba(194, 130, 10, 0.35);
  color: #C2820A;
}

[data-theme="light"] .header-domain-btn {
  background: linear-gradient(135deg, rgba(194, 130, 10, 0.15), rgba(194, 130, 10, 0.05));
  border-color: rgba(194, 130, 10, 0.4);
  color: #C2820A;
}

[data-theme="light"] .header-domain-btn:hover {
  background: #C2820A;
  color: #FFFFFF;
}
