/* ============================================================
   PKBM Digital - Portal Berita & Warta Komunitas
   Design System: Modern News Media Stylesheet
   ============================================================ */

/* ---------- CSS Variables & Themes ---------- */
:root {
  /* Brand Primary & Accents */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-50: rgba(37, 99, 235, 0.08);
  --primary-100: rgba(37, 99, 235, 0.15);
  --primary-gradient: linear-gradient(135deg, #1e40af, #3b82f6);

  --accent-red: #ef4444;
  --accent-orange: #f97316;
  --accent-emerald: #10b981;
  --accent-indigo: #6366f1;
  --accent-purple: #8b5cf6;
  --accent-amber: #f59e0b;
  --accent-teal: #14b8a6;

  /* Neutrals (Light Mode Default) */
  --white: #ffffff;
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;

  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #3b82f6;

  /* Typography */
  --font-primary: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;

  /* Sizing & Radius */
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 14px 28px rgba(0, 0, 0, 0.1), 0 8px 12px rgba(0, 0, 0, 0.06);

  /* Transitions */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
}

/* Dark Mode Theme Overrides */
[data-theme="dark"] {
  --bg-body: #090d16;
  --bg-surface: #0f172a;
  --bg-subtle: #1e293b;
  --bg-card: #131d31;
  --bg-elevated: #1e293b;

  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --border-color: #1e293b;
  --border-light: #2d3748;

  --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 16px 32px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-body);
  transition: background-color var(--duration-normal) ease, color var(--duration-normal) ease;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   1. TOPBAR & TICKER KILAS BERITA
   ============================================================ */
.top-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.82rem;
  padding: 6px 0;
  transition: background-color var(--duration-normal) ease;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  overflow: hidden;
}

.live-datetime {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
  padding-right: 12px;
  border-right: 1px solid var(--border-color);
}

.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  flex: 1;
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-red);
  color: var(--white);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: pulseBadge 2s infinite ease-in-out;
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes pulseBadge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(0.97); }
}

.ticker-content {
  color: var(--text-main);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color var(--duration-fast) ease, opacity 0.3s ease;
}

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

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-top-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  transition: all var(--duration-fast) ease;
}

.btn-top-action:hover {
  background: var(--primary-50);
  color: var(--primary);
}

.btn-top-admin {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-weight: 700;
}

.btn-top-admin:hover {
  background: var(--accent-emerald);
  color: var(--white);
  border-color: var(--accent-emerald);
}

.btn-admin-highlight {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: var(--white) !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.btn-admin-highlight:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
}

/* ============================================================
   2. MAIN HEADER & NAVIGATION
   ============================================================ */
.main-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--duration-normal) ease;
}

.header-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

/* Brand Identity - PKBM GEMADAYA Logo */
.brand-identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform var(--duration-fast) ease, opacity var(--duration-fast) ease;
}

.brand-identity:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.brand-logo-img-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform var(--duration-normal) var(--ease-spring), box-shadow 0.2s ease;
}

.brand-identity:hover .brand-logo-img-wrap {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-title-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title-main {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #15803d;
}

.brand-title-sub {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

[data-theme="dark"] .brand-title-main {
  color: #4ade80;
}

/* Header Right Group: Portal Button, Search & Actions */
.header-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Tombol Portal PKBM Digital - Disesuaikan Seukuran Pencarian (Tinggi 38px) */
.btn-portal-utama-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-full, 9999px);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
  transition: all var(--duration-fast) ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-portal-utama-nav:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.28);
  color: #ffffff;
}

.portal-nav-icon {
  color: #f59e0b;
  font-size: 0.95rem;
}

.portal-nav-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.portal-nav-title i {
  font-size: 0.72rem;
  opacity: 0.8;
}

/* Global Search Bar (Tinggi 38px yang Presisi) */
.header-search-wrap {
  position: relative;
}

.search-input-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background: var(--bg-subtle, #f1f5f9);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-full, 9999px);
  box-sizing: border-box;
  transition: all var(--duration-fast) ease;
}

.search-input-box:focus-within {
  background: #ffffff;
  border-color: var(--primary, #15803d);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

.search-input-box i {
  color: var(--text-muted, #94a3b8);
  font-size: 0.88rem;
}

.search-input-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.82rem;
  color: var(--text-main, #0f172a);
  width: 150px;
  transition: width var(--duration-normal) ease;
}

.search-input-box input:focus {
  width: 190px;
}

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

.icon-btn-round {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-subtle, #f1f5f9);
  color: var(--text-secondary, #475569);
  cursor: pointer;
  position: relative;
  transition: all var(--duration-fast) ease;
  box-sizing: border-box;
}

.icon-btn-round:hover {
  background: var(--primary-50, #f0fdf4);
  color: var(--primary, #15803d);
  border-color: var(--primary-100, #bbf7d0);
  transform: translateY(-1px);
}

/* ============================================================
   2.1. NAVIGASI BAR KATEGORI (DI ATAS FOTO BERITA)
   ============================================================ */
.category-nav-section {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 10;
  transition: background-color var(--duration-normal) ease, border-color var(--duration-normal) ease;
}

.news-nav-bar {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.news-nav-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 3px 0;
  width: 100%;
}

.news-nav-scroll::-webkit-scrollbar {
  display: none;
}

.btn-filter-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  white-space: nowrap;
  border: 1px solid var(--border-color);
  transition: all var(--duration-fast) ease;
  cursor: pointer;
  user-select: none;
}

.btn-filter-category i {
  font-size: 0.85rem;
}

.btn-filter-category:hover {
  background: var(--primary-50);
  color: var(--primary);
  border-color: var(--primary-100);
  transform: translateY(-1px);
}

.btn-filter-category.active {
  background: linear-gradient(135deg, #15803d, #16a34a);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.35);
}

[data-theme="dark"] .btn-filter-category.active {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #0f172a;
  font-weight: 700;
}

/* Navigasi Pagination Tag / Kategori (> 10 items) */
.category-pagination-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 3px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.cat-page-numbers-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.btn-cat-page-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.btn-cat-page-nav:hover:not(:disabled) {
  background: var(--primary-50);
  color: var(--primary);
  border-color: var(--primary-100);
}

.btn-cat-page-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-cat-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.btn-cat-page-num:hover:not(.active) {
  background: var(--primary-50);
  color: var(--primary);
  border-color: var(--primary-100);
}

.btn-cat-page-num.active {
  background: linear-gradient(135deg, #15803d, #16a34a);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.35);
}

[data-theme="dark"] .btn-cat-page-num.active {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #0f172a;
}

/* Tombol Portal Redaksi / Admin di samping Semua Berita */
.btn-admin-nav-pill {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.28);
  color: #1d4ed8 !important;
  font-weight: 700;
  text-decoration: none;
}

.btn-admin-nav-pill i {
  color: #2563eb;
  font-size: 0.88rem;
}

.btn-admin-nav-pill:hover {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: #ffffff !important;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-admin-nav-pill:hover i {
  color: #ffffff;
}

[data-theme="dark"] .btn-admin-nav-pill {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd !important;
}

[data-theme="dark"] .btn-admin-nav-pill i {
  color: #60a5fa;
}

[data-theme="dark"] .btn-admin-nav-pill:hover {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff !important;
}

/* ============================================================
   2.2. RIGHT ACTIONS & TOMBOL PORTAL UTAMA
   ============================================================ */
.header-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Tombol Portal Utama di samping Navigasi Berita */
.btn-portal-utama-nav {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

[data-theme="dark"] .btn-portal-utama-nav {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-portal-utama-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

.portal-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #fbbf24;
}

.portal-nav-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.portal-nav-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

[data-theme="dark"] .portal-nav-badge {
  color: #bfdbfe;
}

.portal-nav-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.portal-nav-title i {
  font-size: 0.72rem;
  opacity: 0.8;
}

/* Global Search Bar */
.header-search-wrap {
  width: 180px;
  transition: width 0.25s ease;
}

.header-search-wrap:focus-within {
  width: 240px;
}

.search-input-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) ease;
}

.search-input-box:focus-within {
  border-color: var(--primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.search-input-box i {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.search-input-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  color: var(--text-main);
  font-size: 0.82rem;
}

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

/* Header Action Buttons */
.header-actions-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn-round {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--duration-fast) ease;
}

.icon-btn-round:hover {
  background: var(--primary-50);
  color: var(--primary);
  transform: translateY(-2px);
}

.badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent-red);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-surface);
}

/* ============================================================
   3. CATEGORY PILLS BAR
   ============================================================ */
.category-nav-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  transition: background-color var(--duration-normal) ease;
}

.category-pills-list {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

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

.btn-filter-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all var(--duration-fast) ease;
}

.btn-filter-category i {
  font-size: 0.95rem;
}

.btn-filter-category:hover {
  background: var(--primary-50);
  color: var(--primary);
  border-color: var(--primary-100);
}

.btn-filter-category.active {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

/* ============================================================
   4. HERO HEADLINE & TRENDING SECTION
   ============================================================ */
.hero-news-section {
  padding: 28px 0 16px;
}

.hero-news-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 24px;
}

/* Main Featured Headline Card / Slider */
.hero-headline-card {
  position: relative;
  min-height: 440px;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--duration-normal) var(--ease-spring), transform var(--duration-normal) var(--ease-spring);
  display: block;
  user-select: none;
}

.hero-headline-card:hover {
  box-shadow: var(--shadow-hover);
}

/* Slider Track */
.hero-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 440px;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Individual Slide */
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
  width: 100%;
  height: 100%;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  box-sizing: border-box;
}

.hero-slide .hero-img-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-slide:hover .hero-img-bg {
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.55) 45%, rgba(15, 23, 42, 0.96) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  color: var(--white);
  width: 100%;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.hero-slide-counter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-title {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 8px 0 10px;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.hero-excerpt {
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.meta-author-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #cbd5e1;
  flex-wrap: wrap;
}

.hero-read-more-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
}

.hero-slide:hover .hero-read-more-btn {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.meta-divider {
  opacity: 0.6;
}

/* Slider Nav Arrows (Kiri & Kanan) */
.hero-slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  opacity: 0.85;
}

.hero-slider-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.hero-slider-nav-btn.prev {
  left: 16px;
}

.hero-slider-nav-btn.next {
  right: 16px;
}

/* Pagination Dots (Indikator Titik) */
.hero-slider-pagination {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  width: 22px;
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.85);
}

/* Auto Slide Progress Bar */
.hero-slider-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #2563eb);
  width: 0%;
  z-index: 12;
  pointer-events: none;
}

/* Category Badges */
.badge-category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  background: var(--primary);
}

.badge-category.paketa { background: #0284c7; }
.badge-category.paketb { background: #16a34a; }
.badge-category.paketc { background: #ea580c; }
.badge-category.pemuda { background: #9333ea; }
.badge-category.wanita { background: #db2777; }
.badge-category.masyarakat { background: #0891b2; }

/* Trending Sidebar Block */
.trending-block-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.trending-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-subtle);
}

.trending-title-main {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trending-title-main i {
  color: var(--accent-orange);
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: transform var(--duration-fast) ease;
}

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

.trending-item:hover {
  transform: translateX(4px);
}

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

.trending-rank {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-muted);
  opacity: 0.45;
  width: 32px;
  flex-shrink: 0;
}

.trending-item:nth-child(1) .trending-rank {
  color: var(--accent-red);
  opacity: 0.9;
}
.trending-item:nth-child(2) .trending-rank {
  color: var(--accent-orange);
  opacity: 0.9;
}

.trending-info {
  flex: 1;
}

.trending-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--duration-fast) ease;
}

.trending-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   5. MAIN CONTENT AREA: FEED & SIDEBAR
   ============================================================ */
.main-feed-section {
  padding: 24px 0 60px;
}

.feed-layout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

/* Section Titles */
.feed-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-headline {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-headline i {
  color: var(--primary);
}

.search-results-info {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-50);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* Feed Grid (3 Highlight Cards Per Row) */
.feed-cards-grid,
.feed-cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Agenda Bottom Section */
.agenda-bottom-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border-color);
}

.agenda-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.agenda-badge-sub {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-50);
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.agenda-list-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* News Article Card */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.12), 0 6px 16px -4px rgba(0, 0, 0, 0.06);
  border-color: rgba(37, 99, 235, 0.3);
}

.article-card:active {
  transform: translateY(-2px) scale(0.99);
  transition-duration: 0.1s;
}

.card-image-wrap {
  position: relative;
  height: 205px;
  overflow: hidden;
  background: var(--bg-subtle);
  cursor: pointer;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover .card-image {
  transform: scale(1.07);
}

.card-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card-bookmark-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-bookmark-btn:hover {
  transform: scale(1.15);
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.card-bookmark-btn.bookmarked {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 8px;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--duration-fast) ease;
}

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

.card-excerpt {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

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

.author-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
}

.author-mini img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.card-actions-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  transition: all var(--duration-fast) ease;
}

.action-btn-sm:hover {
  background: var(--primary-50);
  color: var(--primary);
}

.action-btn-sm.liked {
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.1);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-xl);
}

.empty-state i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: inline-block;
}

.empty-state h3, .empty-state h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 auto;
}

/* ============================================================
   6. SIDEBAR WIDGETS
   ============================================================ */
.sidebar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.sidebar-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-card-title i {
  color: var(--primary);
}

/* Agenda List */
.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.agenda-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) ease;
}

.agenda-item:hover {
  transform: translateX(3px);
  background: var(--primary-50);
}

.agenda-date {
  background: var(--primary-gradient);
  color: var(--white);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-align: center;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.agenda-date .day {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

.agenda-date .month {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.agenda-text h4 {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 3px;
}

.agenda-text p {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Newsletter Box */
.newsletter-card {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: var(--white);
  border: none;
}

.newsletter-card .sidebar-card-title {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.newsletter-card .sidebar-card-title i {
  color: #60a5fa;
}

.newsletter-card p {
  font-size: 0.84rem;
  color: #e0e7ff;
  margin-bottom: 14px;
  line-height: 1.5;
}

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

.newsletter-input {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  outline: none;
  font-size: 0.85rem;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

.btn-newsletter-submit {
  padding: 10px;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: #1e3a8a;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all var(--duration-fast) ease;
}

.btn-newsletter-submit:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

/* ============================================================
   7. FULLPAGE ARTICLE READER (BACA ARTIKEL TAMPILAN PENUH)
   ============================================================ */
.modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  background: var(--bg-body) !important;
  display: flex !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  align-items: stretch !important;
  justify-content: stretch !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal-backdrop.active {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal-container {
  position: relative !important;
  background: var(--bg-body) !important;
  border: none !important;
  border-radius: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: none !important;
  overflow: hidden !important;
  transform: none !important;
  opacity: 1 !important;
  transition: none !important;
}

.modal-backdrop.active .modal-container {
  transform: none !important;
  opacity: 1 !important;
}

/* Reading Progress Indicator */
.modal-reading-progress-track {
  width: 100%;
  height: 4px;
  background: var(--bg-subtle);
  position: sticky;
  top: 0;
  z-index: 25;
  overflow: hidden;
}

.modal-reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #10b981, #38bdf8);
  transition: width 0.12s ease-out;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* Header Bar - Full Width Sticky Navigation */
.modal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
  gap: 12px;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.btn-reader-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--primary-50);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reader-back:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateX(-2px);
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.25);
}

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

.font-size-control-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 2px 4px;
}

.btn-font-control {
  border: none;
  background: transparent;
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: all 0.2s ease;
}

.btn-font-control:hover {
  background: var(--primary-50);
  color: var(--primary);
}

.font-size-indicator {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 6px;
  user-select: none;
}

.btn-modal-tts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-modal-tts:hover {
  background: var(--primary-50);
  border-color: var(--primary-100);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-modal-tts.playing {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  animation: pulseListen 2s infinite ease-in-out;
}

@keyframes pulseListen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
}

.modal-header-actions-right {
  display: flex;
  align-items: center;
}

.btn-modal-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-modal-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.modal-key-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 5px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.btn-modal-close:hover .modal-key-badge {
  background: rgba(255, 255, 255, 0.25);
  opacity: 1;
}

.modal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.modal-body-scroll {
  flex: 1;
  width: 100%;
  padding: 28px 0 80px;
  overflow-y: auto;
  overflow-x: hidden;
  color: var(--text-main);
  scroll-behavior: smooth;
  background: var(--bg-body);
}

.reader-layout-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.reader-layout-single {
  width: 100%;
  display: flex;
  justify-content: center;
}

.reader-main-column {
  width: 100%;
  max-width: 1000px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px 48px 60px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .modal-header-bar {
    padding: 10px 14px;
  }
  .modal-body-scroll {
    padding: 16px 0 60px;
  }
  .reader-layout-container {
    padding: 0 12px;
  }
  .reader-main-column {
    padding: 22px 18px 40px;
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 640px) {
  .modal-header-bar {
    padding: 10px 14px;
  }
  .modal-body-scroll {
    padding: 16px 0 60px;
  }
  .reader-layout-container {
    padding: 0 12px;
  }
  .reader-main-column {
    padding: 18px 14px;
    border-radius: var(--radius-lg);
  }
}

/* Modal Article Header Elements */
.modal-article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-article-badges-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-meta-chips {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.modal-article-title {
  font-size: 2.05rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

@media (max-width: 640px) {
  .modal-article-title {
    font-size: 1.5rem;
    line-height: 1.35;
  }
}

.modal-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
  gap: 1rem;
}

.modal-author-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.modal-author-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.modal-author-details {
  display: flex;
  flex-direction: column;
}

.modal-author-name {
  font-weight: 800;
  font-size: 0.96rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 5px;
}

.modal-author-name i {
  color: var(--primary);
  font-size: 0.9rem;
}

.modal-author-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.modal-author-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-modal-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-modal-action-pill:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

.btn-modal-action-pill.liked {
  background: #fef2f2;
  border-color: #fecaca;
  color: #ef4444;
}

.btn-modal-action-pill.liked i {
  animation: heartPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.btn-modal-action-pill.bookmarked {
  background: var(--primary-50);
  border-color: var(--primary-100);
  color: var(--primary);
}

/* Modal Hero Image Container (Dokumentasi Berita Kotak) */
.modal-hero-frame {
  margin-bottom: 2rem;
  border-radius: 0;
  overflow: hidden;
  background: radial-gradient(circle at center, var(--bg-surface) 0%, var(--bg-subtle) 100%);
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);
  position: relative;
  max-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-hero-image {
  width: 100%;
  max-height: 480px;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.modal-hero-frame:hover .modal-hero-image {
  transform: scale(1.02);
}

.modal-hero-caption {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Article Reader Typography & Structure */
.article-reader-content {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.06rem;
  line-height: 1.95;
  color: var(--text-main);
}

.article-content-subtitle {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 1.6rem 0 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-50);
}

.article-dateline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-size: 0.84rem;
  color: var(--primary);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-right: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.article-lead-paragraph {
  font-size: 1.14rem;
  font-weight: 500;
  line-height: 1.95;
  color: var(--text-main);
  margin-bottom: 1.8rem;
  border-left: 3.5px solid var(--primary);
  padding-left: 18px;
  background: linear-gradient(90deg, var(--primary-50) 0%, transparent 100%);
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  text-align: justify;
  text-justify: inter-word;
}

.article-body-p,
.article-reader-content p {
  font-size: 1.05rem;
  line-height: 1.92;
  color: var(--text-secondary);
  margin-bottom: 1.6rem;
  text-align: justify;
  text-justify: inter-word;
}

[data-theme="dark"] .article-body-p,
[data-theme="dark"] .article-reader-content p {
  color: #cbd5e1;
}

.article-reader-content h2,
.article-reader-content h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 2.2rem 0 1rem;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-reader-content h2::before,
.article-reader-content h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.article-reader-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--bg-subtle);
  padding: 1.25rem 1.75rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-main);
  margin: 1.8rem 0;
  position: relative;
}

.article-reader-content ul,
.article-reader-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-reader-content li {
  margin-bottom: 0.6rem;
  line-height: 1.8;
}

/* Share Buttons & Container */
.share-mini-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-subtle);
  padding: 3px 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.btn-share-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.btn-share-mini:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.btn-share-mini.wa { background: #25d366; }
.btn-share-mini.fb { background: #1877f2; }
.btn-share-mini.ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.btn-share-mini.x  { background: #000000; }
[data-theme="dark"] .btn-share-mini.x { background: #1e293b; border: 1px solid #475569; }
.btn-share-mini.copy { background: #64748b; }

.share-buttons-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-share {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.btn-share:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-share.wa { background: #25d366; }
.btn-share.fb { background: #1877f2; }
.btn-share.ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.btn-share.x, .btn-share.tw { background: #000000; }
[data-theme="dark"] .btn-share.x, [data-theme="dark"] .btn-share.tw { background: #1e293b; border: 1px solid #475569; }
.btn-share.copy { background: #64748b; }

/* Compact Article Share Bar (Hanya Logo / Icon Saja) */
.article-share-compact-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 4px 12px 4px 10px;
  margin-bottom: 1.35rem;
  max-width: fit-content;
}

.share-compact-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  user-select: none;
}

.share-compact-label i {
  color: var(--primary);
  font-size: 0.82rem;
}

.share-compact-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-share-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-share-icon:hover {
  transform: translateY(-2px) scale(1.12);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  filter: brightness(1.08);
}

.btn-share-icon.share-wa {
  background: #25d366;
}

.btn-share-icon.share-fb {
  background: #1877f2;
}

.btn-share-icon.share-ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.btn-share-icon.share-x {
  background: #0f172a;
}

[data-theme="dark"] .btn-share-icon.share-x {
  background: #1e293b;
  border: 1px solid #475569;
}

.btn-share-icon.share-copy {
  background: #475569;
}

/* Comment Items */
.comment-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

/* ============================================================
   Comments & Discussion Section - Elegant & Modern
   ============================================================ */
.comments-section-wrap {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.comments-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 12px;
}

.comments-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comments-header-left i {
  font-size: 1.5rem;
  color: var(--primary);
  background: var(--primary-50);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comments-header-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  line-height: 1.2;
}

.comments-header-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 3px 0 0;
}

.comments-count-pill {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-50);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-100);
}

/* Comment Form Card */
.comment-form-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.comment-form-card:focus-within {
  border-color: var(--primary-100);
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.08);
}

.comment-input-group,
.comment-textarea-group {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.comment-input-icon-wrap,
.comment-textarea-icon-wrap {
  position: absolute;
  top: 12px;
  left: 14px;
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: color 0.2s ease;
}

.comment-form-input,
.comment-form-textarea,
.form-control {
  width: 100%;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-main);
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px 10px 42px;
  outline: none;
  transition: all 0.25s ease;
}

.comment-form-textarea {
  resize: vertical;
  min-height: 85px;
  line-height: 1.6;
}

.comment-form-input:focus,
.comment-form-textarea:focus,
.form-control:focus {
  background: var(--bg-surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.12);
}

.comment-input-group:focus-within .comment-input-icon-wrap,
.comment-textarea-group:focus-within .comment-textarea-icon-wrap {
  color: var(--primary);
}

.comment-form-input::placeholder,
.comment-form-textarea::placeholder,
.form-control::placeholder {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.comment-form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.comment-form-hint i {
  color: var(--accent-emerald);
  font-size: 0.9rem;
}

.btn-comment-submit,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-comment-submit:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
  filter: brightness(1.05);
}

.btn-comment-submit:active,
.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

/* Comments List & Items */
.comments-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comments-empty-state {
  text-align: center;
  padding: 2.2rem 1.5rem;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
}

.comments-empty-state .empty-icon-wrap {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.comments-empty-state h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.comments-empty-state p {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto;
}

.comment-item-card {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-item-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.comment-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.2);
}

.comment-item-body {
  flex: 1;
}

.comment-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.comment-item-author {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
}

.comment-item-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-delete-comment {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-delete-comment:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.btn-delete-comment:active {
  transform: translateY(0) scale(0.96);
}

.comment-item-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   7.1. READER OTHER NEWS SECTION (BERITA TERKINI LAINNYA)
   ============================================================ */
.reader-other-news-section {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  padding-top: 2rem;
  border-top: 1.5px solid var(--border-color);
}

.reader-other-news-header {
  margin-bottom: 1.4rem;
}

.reader-other-news-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reader-other-news-title-wrap i {
  font-size: 1.6rem;
  color: var(--primary);
}

.reader-other-news-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.reader-other-news-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
  display: block;
}

.reader-other-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.reader-other-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.reader-other-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-100);
}

.reader-other-thumb-wrap {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: var(--bg-subtle);
}

.reader-other-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.reader-other-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.65rem;
  padding: 3px 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.reader-other-content {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.reader-other-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.reader-other-headline {
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.reader-other-card:hover .reader-other-headline {
  color: var(--primary);
}

.reader-other-excerpt {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  flex: 1;
}

.reader-other-readmore {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
  transition: gap 0.2s ease;
}

.reader-other-card:hover .reader-other-readmore {
  gap: 8px;
}

@media (max-width: 900px) {
  .reader-other-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .reader-other-news-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   8. BOOKMARKS DRAWER (OFF-CANVAS)
   ============================================================ */
.bookmarks-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  display: none;
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.bookmarks-drawer-overlay.active {
  display: block;
  opacity: 1;
}

.bookmarks-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 90vw;
  z-index: 1101;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-spring);
}

.bookmarks-drawer.active {
  transform: translateX(0);
}

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

.drawer-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  min-width: 280px;
  max-width: 420px;
  animation: slideInToast 0.3s var(--ease-spring) forwards;
  transition: all 0.3s ease;
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-success i { color: var(--accent-emerald); font-size: 1.2rem; }
.toast-info i { color: var(--primary); font-size: 1.2rem; }
.toast-danger i { color: var(--accent-red); font-size: 1.2rem; }

/* Floating Back To Top */
.btn-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--duration-normal) ease;
}

.btn-back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.55);
}

/* ============================================================
   10. FOOTER
   ============================================================ */
.main-footer {
  background: #0b1120;
  color: #94a3b8;
  padding: 56px 0 24px;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 14px 0 18px;
  color: #cbd5e1;
}

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

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1e293b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) ease;
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-column h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* ============================================================
   10.1. DIDUKUNG OLEH: BANNER MITRA & SPONSOR LENGKAP
   ============================================================ */
.footer-supported-banner {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  margin-top: 36px;
  margin-bottom: 28px;
  width: 100%;
  box-sizing: border-box;
}

.supported-label-col {
  padding-right: 24px;
  border-right: 1px solid #e2e8f0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.supported-label-text {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.supported-logos-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
}

.supported-logos-row::-webkit-scrollbar {
  display: none;
}

.supported-logo-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-right: 1px solid #f1f5f9;
  min-width: 95px;
  height: 58px;
  transition: transform var(--duration-fast) ease;
}

.supported-logo-item:last-child {
  border-right: none;
}

.supported-logo-item:hover {
  transform: scale(1.06);
}

.supported-logo-img {
  max-height: 50px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.04));
}

@media (max-width: 992px) {
  .footer-supported-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
  }
  .supported-label-col {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding-right: 0;
    padding-bottom: 8px;
    width: 100%;
  }
  .supported-logos-row {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
  }
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #1e293b;
  font-size: 0.8rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   11. RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1200px) {
  .header-search-wrap {
    width: 140px;
  }
  .header-search-wrap:focus-within {
    width: 180px;
  }
}

@media (max-width: 1024px) {
  .hero-news-grid {
    grid-template-columns: 1fr;
  }
  .feed-cards-grid,
  .feed-cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .agenda-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .header-main-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .header-right-group {
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .top-bar-left .live-datetime {
    display: none;
  }
  .header-search-wrap {
    display: none;
  }
  .feed-cards-grid,
  .feed-cards-grid-3 {
    grid-template-columns: 1fr;
  }
  .agenda-list-grid {
    grid-template-columns: 1fr;
  }
  .hero-headline-card,
  .hero-slider-track,
  .hero-slide {
    min-height: 360px;
  }
  .hero-content {
    padding: 20px 18px 24px;
  }
  .hero-slider-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    opacity: 0.9;
  }
  .hero-slider-nav-btn.prev {
    left: 8px;
  }
  .hero-slider-nav-btn.next {
    right: 8px;
  }
  .hero-slider-pagination {
    top: 14px;
    right: 14px;
    padding: 4px 10px;
  }
  .hero-read-more-btn {
    display: none;
  }
  .hero-title {
    font-size: 1.25rem;
    line-height: 1.35;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .portal-nav-text .portal-nav-badge {
    display: none;
  }
  .btn-portal-utama-nav {
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .brand-title-group {
    display: none;
  }
}

/* ============================================================
   YouTube Video Feature Styles (Portal Berita & Modal Pembaca)
   ============================================================ */

/* Badge Video di Card Feed Berita */
.card-video-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.card-video-pill i {
  color: #ef4444;
  font-size: 0.85rem;
}

/* Badge Video di Slider Hero Headline */
.hero-video-pill {
  background: rgba(239, 68, 68, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.hero-video-pill i {
  font-size: 0.9rem;
}

/* Container Video Embed di Modal Reader */
.article-video-wrapper {
  margin: 2.2rem 0;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  transition: all var(--duration-normal) ease;
}

body.dark-mode .article-video-wrapper {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
}

.article-video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.04), rgba(239, 68, 68, 0.01));
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 12px;
}

body.dark-mode .article-video-header {
  background: rgba(239, 68, 68, 0.08);
  border-color: #334155;
}

.article-video-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.video-yt-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fef2f2;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.12);
  flex-shrink: 0;
}

body.dark-mode .video-yt-icon-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.video-section-title {
  margin: 0 0 2px 0;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.video-section-sub {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.btn-open-youtube {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #ef4444;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-open-youtube:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}

body.dark-mode .btn-open-youtube {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

body.dark-mode .btn-open-youtube:hover {
  background: #ef4444;
  color: #ffffff;
}

.article-video-player-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.article-video-player-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   Real-time Public Comments Sync Styles
   ============================================================ */
.btn-refresh-comments {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-refresh-comments:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-refresh-comments.loading i,
.spin {
  display: inline-block;
  animation: spinAnim 0.7s linear infinite;
}

@keyframes spinAnim {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.comment-item-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

.comment-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

/* ============================================================
   5.1. FEED PAGINATION / SLIDE NAVIGASI BERITA (6 Berita/Halaman)
   ============================================================ */
.feed-pagination-wrap {
  margin-top: 36px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.pagination-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  padding: 6px 12px;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  text-decoration: none;
  gap: 6px;
}

.page-btn:hover:not(:disabled):not(.active) {
  background: var(--primary-50, rgba(21, 128, 61, 0.08));
  color: var(--primary, #15803d);
  border-color: var(--primary-100, rgba(21, 128, 61, 0.2));
  transform: translateY(-1px);
}

.page-btn.active {
  background: linear-gradient(135deg, #15803d, #16a34a);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
  cursor: default;
  transform: scale(1.05);
}

[data-theme="dark"] .page-btn.active {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #0f172a !important;
  font-weight: 800;
}

.page-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  pointer-events: none;
}

.page-btn-nav {
  padding: 0 16px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
}

.page-btn-nav:hover:not(:disabled) {
  background: var(--bg-card);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 40px;
  font-weight: 700;
  color: var(--text-muted);
  user-select: none;
}

.pagination-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 5px 16px;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.pagination-info-badge i {
  color: var(--primary);
}

[data-theme="dark"] .pagination-nav {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .page-btn-nav {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .pagination-info-badge {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  .feed-pagination-wrap {
    margin-top: 24px;
    gap: 10px;
  }
  .page-btn {
    min-width: 36px;
    height: 36px;
    font-size: 0.82rem;
    padding: 0 8px;
  }
  .page-btn-nav span {
    display: none;
  }
  .page-btn-nav {
    padding: 0 10px;
  }
  .pagination-info-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
    text-align: center;
  }
}

/* ============================================================
   Multi-Photo Gallery in Article Reader
   ============================================================ */
.article-gallery-container {
  margin: 1.5rem 0;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 16px;
}

.article-gallery-header {
  margin-bottom: 12px;
}

.gallery-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-50);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-100);
}

.article-gallery-grid {
  display: grid;
  gap: 12px;
}

.article-gallery-grid.grid-count-2 {
  grid-template-columns: repeat(2, 1fr);
}

.article-gallery-grid.grid-count-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-photo-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  height: 220px;
  cursor: pointer;
  background: #0f172a;
  border: 1px solid var(--border-color);
}

.gallery-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gallery-photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.6rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-photo-card:hover .gallery-photo-overlay {
  opacity: 1;
}

@media (max-width: 768px) {
  .article-gallery-grid.grid-count-2,
  .article-gallery-grid.grid-count-3 {
    grid-template-columns: 1fr;
  }
  .gallery-photo-card {
    height: 190px;
  }
}


