/*
Theme Name: Nusantara Kini Pro
Theme URI: https://nusantarakini.id
Author: Antigravity Digital Publishing
Author URI: https://nusantarakini.id
Description: Tema Portal Berita Modern, Super Cepat, Desain Bento Grid Mewah, Dark/Light Mode Dinamis, dan Dioptimasi Penuh untuk Google News & Discover.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nusantara-kini
Tags: news, magazine, bento-grid, dark-mode, responsive, seo-optimized, fast
*/

/* ==========================================================================
   DESIGN TOKENS & CSS VARIABLES
   ========================================================================== */
:root {
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Modern Editorial Color Palette: Emerald Jade & Cyber Amber */
  --color-primary: #0d9488;
  --color-primary-hover: #0f766e;
  --color-primary-light: #ccfbf1;
  --color-primary-glow: rgba(13, 148, 136, 0.25);
  
  --color-secondary: #0f172a;
  --color-accent: #f59e0b;
  --color-accent-hover: #d97706;
  --color-danger: #ef4444;
  --color-success: #10b981;
  
  /* Light Mode Surfaces */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;
  
  /* Text Tones */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;
  
  /* Borders */
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-focus: #0d9488;
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.1);
  --shadow-hover: 0 16px 32px rgba(13, 148, 136, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(226, 232, 240, 0.8);
  
  /* Layout Dimensions */
  --container-max: 1280px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   DARK MODE PALETTE
   ========================================================================== */
[data-theme="dark"] {
  --color-primary: #14b8a6;
  --color-primary-hover: #2dd4bf;
  --color-primary-light: rgba(20, 184, 166, 0.15);
  --color-primary-glow: rgba(20, 184, 166, 0.3);
  
  --bg-body: #070b14;
  --bg-surface: #0e1628;
  --bg-surface-elevated: #152038;
  --bg-subtle: #131c31;
  --bg-muted: #1e293b;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  
  --border-color: #1e293b;
  --border-subtle: #131c31;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 16px 36px rgba(20, 184, 166, 0.25);
  
  --glass-bg: rgba(14, 22, 40, 0.9);
  --glass-border: rgba(30, 41, 59, 0.8);
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  outline: none;
  border: none;
}

.site-main {
  flex-grow: 1;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.site-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}

/* ==========================================================================
   TOP UTILITY BAR
   ========================================================================== */
.top-utility-bar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0.45rem 0;
  transition: background-color var(--transition-base);
}

.top-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.live-badge-wib {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--color-primary);
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
  animation: pulseBeacon 1.8s infinite;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(13, 148, 136, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

.weather-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border-color);
}

.finance-mini-ticker {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 992px) {
  .finance-mini-ticker {
    display: flex;
  }
}

.market-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
}
.market-up { color: var(--color-success); font-size: 0.75rem; }
.market-down { color: var(--color-danger); font-size: 0.75rem; }

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

.edition-tag {
  background: var(--bg-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.theme-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-subtle);
  color: var(--text-main);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.theme-mode-toggle:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ==========================================================================
   BRAND HEADER & MASTHEAD
   ========================================================================== */
.site-masthead {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 1.1rem 0;
  position: relative;
  transition: background-color var(--transition-base);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo-img {
  height: 48px;
  width: auto;
}

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

.brand-title-text {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-main);
}

.brand-title-text span {
  color: var(--color-primary);
}

.brand-tagline-text {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Header Center: Breaking Spotlight or Special Feature */
.masthead-spotlight {
  display: none;
  background: var(--bg-subtle);
  border-left: 3px solid var(--color-accent);
  padding: 0.5rem 0.85rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  max-width: 380px;
}

@media (min-width: 1024px) {
  .masthead-spotlight {
    display: block;
  }
}

.spotlight-label {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.spotlight-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.spotlight-link:hover {
  color: var(--color-primary);
}

.masthead-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-header-action {
  background: var(--bg-subtle);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.btn-header-action:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-epaper {
  display: none;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #059669 100%);
  color: #ffffff;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.8125rem;
  box-shadow: 0 4px 12px var(--color-primary-glow);
  transition: all var(--transition-fast);
}

.btn-epaper:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--color-primary-glow);
  color: #ffffff;
}

@media (min-width: 768px) {
  .btn-epaper {
    display: inline-flex;
  }
}

/* ==========================================================================
   PRIMARY NAVIGATION (MEGA NAVBAR)
   ========================================================================== */
.site-mega-nav {
  background-color: var(--color-secondary);
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .site-mega-nav {
  background-color: #0b1222;
  border-bottom: 1px solid var(--border-color);
}

.mega-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mega-nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.mega-nav-list::-webkit-scrollbar {
  display: none;
}

.mega-nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #e2e8f0;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.85rem 1rem;
  position: relative;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: all var(--transition-fast);
}

.mega-nav-item > a:hover,
.mega-nav-item.active > a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.mega-nav-item.active > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
}

.nav-live-stream-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: pulseStream 2s infinite;
}

@keyframes pulseStream {
  0% { border-color: rgba(239, 68, 68, 0.4); }
  50% { border-color: rgba(239, 68, 68, 0.9); box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
  100% { border-color: rgba(239, 68, 68, 0.4); }
}

/* ==========================================================================
   BREAKING NEWS TICKER
   ========================================================================== */
.breaking-news-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 0;
  font-size: 0.8125rem;
}

.breaking-news-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.breaking-tag-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--color-danger);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  flex-shrink: 0;
}

.breaking-marquee-content {
  overflow: hidden;
  white-space: nowrap;
  flex-grow: 1;
  position: relative;
}

.breaking-marquee-track {
  display: inline-block;
  animation: tickerSlide 35s linear infinite;
}

.breaking-marquee-track:hover {
  animation-play-state: paused;
}

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

.ticker-item {
  display: inline-block;
  margin-right: 2.5rem;
  font-weight: 600;
  color: var(--text-main);
}

.ticker-item:hover {
  color: var(--color-primary);
}

.ticker-sep {
  color: var(--color-accent);
  margin-right: 0.6rem;
}

/* ==========================================================================
   BENTO HERO SHOWCASE (EDITORIAL MASTER GRID)
   ========================================================================== */
.bento-hero-section {
  padding: 1.5rem 0 2rem;
}

.bento-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .bento-hero-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bento-hero-grid {
    grid-template-columns: 2fr 1.2fr 1.1fr;
  }
}

/* Big Bento Feature Card (Column 1) */
.bento-master-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0f172a;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.bento-master-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.bento-master-card .bento-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  z-index: 1;
}

.bento-master-card:hover .bento-bg-img {
  transform: scale(1.04);
}

.bento-master-card .bento-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.7) 50%, rgba(15, 23, 42, 0.95) 100%);
  z-index: 2;
}

.bento-master-content {
  position: relative;
  z-index: 3;
  padding: 1.75rem;
  color: #ffffff;
}

.bento-cat-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px var(--color-primary-glow);
}

.bento-master-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.bento-master-title a:hover {
  color: #5eead4;
}

.bento-master-excerpt {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bento-meta-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  font-weight: 600;
}

/* Secondary Editorial Cards (Column 2) */
.bento-sub-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bento-sub-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.bento-sub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.bento-sub-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-subtle);
}

.bento-sub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.bento-sub-content {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bento-sub-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
}

.bento-sub-title a:hover {
  color: var(--color-primary);
}

/* Trending Top 5 Leaderboard (Column 3) */
.bento-trending-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.trending-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 0.75rem;
}

.trending-header h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-main);
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

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

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

.trending-rank {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--color-primary);
  opacity: 0.85;
  line-height: 1;
  min-width: 24px;
}

.trending-rank.rank-1 { color: #f59e0b; }
.trending-rank.rank-2 { color: #0d9488; }
.trending-rank.rank-3 { color: #0284c7; }

.trending-info {
  flex-grow: 1;
}

.trending-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

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

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

/* ==========================================================================
   FOKUS ISU / SPECIAL TOPIC BANNER
   ========================================================================== */
.fokus-banner-section {
  margin-bottom: 2rem;
}

.fokus-banner {
  background: linear-gradient(135deg, #042f2e 0%, #064e3b 50%, #0f172a 100%);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
}

.fokus-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.fokus-badge {
  background: var(--color-accent);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  flex-shrink: 0;
}

.fokus-text {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.fokus-link-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.fokus-link-btn:hover {
  background: #ffffff;
  color: #064e3b;
}

/* ==========================================================================
   MAIN MAGAZINE EDITORIAL SECTION (TWO-COLUMN)
   ========================================================================== */
.magazine-section {
  padding-bottom: 3rem;
}

.magazine-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .magazine-layout {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  }
}

/* Category Filter Tabs Bar */
.stream-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stream-section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

.stream-filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.stream-filter-tabs::-webkit-scrollbar {
  display: none;
}

.cat-filter-tab {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.cat-filter-tab:hover,
.cat-filter-tab.active {
  background: var(--color-primary);
  color: #ffffff;
}

/* Stream News 2-Column Grid */
.stream-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .stream-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stream-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.stream-card-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.stream-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-subtle);
}

.stream-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.stream-card-item:hover .stream-thumb-wrap img {
  transform: scale(1.05);
}

.stream-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.stream-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
}

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

.stream-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */
.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.sidebar-widget-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.widget-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.widget-title-bar h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Editor's Pick Mini Rows */
.widget-news-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  min-width: 0;
}

.widget-news-row {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.widget-news-thumb {
  width: 75px;
  height: 55px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-subtle);
}

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

.widget-news-title {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 85px);
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.widget-news-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
  text-decoration: none;
  word-break: break-word;
  overflow-wrap: break-word;
  transition: color var(--transition-fast);
}

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

/* Opini & Analisis Pakar */
.opini-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.opini-item {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  border-left: 3px solid var(--color-primary);
}

.opini-author-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.opini-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.opini-author-meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
}

.opini-role {
  font-size: 0.6875rem;
  color: var(--text-muted);
  display: block;
}

.opini-quote {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
}

/* Newsletter Widget Card */
.newsletter-box {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-subtle) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.newsletter-box h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.newsletter-box p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.newsletter-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.newsletter-input-group input {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-main);
}

.newsletter-input-group button {
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.newsletter-input-group button:hover {
  background: var(--color-primary-hover);
}

.newsletter-success-toast {
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
}

/* ==========================================================================
   LENSA NUSANTARA (PHOTO JOURNALISM GALLERY STRIP)
   ========================================================================== */
.lensa-section {
  background: var(--color-secondary);
  padding: 2.5rem 0;
  color: #ffffff;
  margin-bottom: 2.5rem;
}

.lensa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.lensa-header h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.lensa-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #1e293b;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lensa-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

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

.lensa-card:hover img {
  transform: scale(1.08);
}

.lensa-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.15rem;
}

.lensa-badge {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lensa-title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  transition: color 0.2s ease;
}

.lensa-card:hover .lensa-title {
  color: var(--color-accent);
}

/* ==========================================================================
   STREAM & POSTS PAGINATION STYLES
   ========================================================================== */
.stream-pagination,
.pagination {
  margin: 3rem 0 1.5rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.stream-pagination .nav-links,
.pagination .nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.85rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.page-numbers:hover:not(.current):not(.dots) {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
}

.page-numbers.current {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
  cursor: default;
}

.page-numbers.dots {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: default;
}

.page-numbers.prev,
.page-numbers.next {
  font-size: 0.8125rem;
  padding: 0 1rem;
}

/* ==========================================================================
   SINGLE ARTICLE STYLES
   ========================================================================== */
.article-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--color-primary);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

.article-single-wrapper {
  padding: 2rem 0 4rem;
}

.article-content-col {
  min-width: 0;
  max-width: 100%;
}

.breadcrumbs-bar {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.article-headline-main {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--text-main);
}

@media (max-width: 768px) {
  .article-headline-main {
    font-size: 1.65rem;
  }
}

.article-author-pill-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
}

.author-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-pill-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.author-pill-info {
  display: flex;
  flex-direction: column;
}

.author-pill-name {
  font-weight: 700;
  color: var(--text-main);
}

.author-pill-date {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.article-hero-figure {
  margin-bottom: 1.75rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-subtle);
}

.article-hero-figure img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.article-figure-caption {
  padding: 0.65rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.article-single-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-single-body p {
  margin-bottom: 1.4rem;
}

.article-single-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.article-single-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.article-single-body blockquote {
  border-left: 4px solid var(--color-primary);
  background: var(--bg-subtle);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-main);
}

.article-single-body ul, .article-single-body ol {
  margin: 1.25rem 0 1.5rem 1.5rem;
}

.article-single-body li {
  list-style: disc;
  margin-bottom: 0.5rem;
}

.article-single-body ol li {
  list-style: decimal;
}

.article-tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.article-tag-pill {
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.article-tag-pill:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* Social Share Bar */
.social-share-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
}

.share-wa { background: #25d366; }
.share-x { background: #0f172a; }
.share-fb { background: #1877f2; }
.share-copy { background: var(--bg-subtle); color: var(--text-main); border: 1px solid var(--border-color); }

/* ==========================================================================
   MEGA FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-secondary);
  color: #cbd5e1;
  padding: 3.5rem 0 1.5rem;
  margin-top: auto;
  border-top: 3px solid var(--color-primary);
}

[data-theme="dark"] .site-footer {
  background: #050810;
  border-top-color: var(--color-primary);
}

.footer-columns-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .footer-columns-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-columns-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-top: 0.85rem;
  margin-bottom: 1.25rem;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-nav-list li {
  margin-bottom: 0.6rem;
}

.footer-nav-list a {
  color: #94a3b8;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-nav-list a:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.dewan-pers-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.5;
}

.footer-bottom-bar {
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #64748b;
}

/* ==========================================================================
   MODALS, DRAWERS & FLOATING ELEMENTS
   ========================================================================== */
/* Search Modal */
.search-quick-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.search-quick-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.search-modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}

.search-form-modal {
  display: flex;
  gap: 0.75rem;
}

.search-form-modal input {
  flex-grow: 1;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-main);
}

.search-form-modal button {
  background: var(--color-primary);
  color: #ffffff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
}

/* Mobile Drawer Menu */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  z-index: 9990;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-drawer-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--bg-surface);
  z-index: 9991;
  box-shadow: var(--shadow-lg);
  transform: translateX(-100%);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

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

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.btn-drawer-close {
  background: var(--bg-subtle);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-drawer-links a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.mobile-drawer-links a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* Back to Top Floating Button */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 990;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.back-to-top-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-3px);
}
