@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --biru: #2563eb;
  --biru-gelap: #1d4ed8;
  --biru-pekat: #1e3a8a;
  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
  --bs-link-color: #2563eb;
  --bs-link-hover-color: #1d4ed8;
  --bs-border-color: #e0e0e0;
}

[data-bs-theme="dark"] {
  --biru: #3b82f6;
  --biru-gelap: #2563eb;
  --biru-pekat: #1d4ed8;
  --bs-primary: #3b82f6;
  --bs-primary-rgb: 59, 130, 246;
  --bs-link-color: #60a5fa;
  --bs-link-hover-color: #93c5fd;
  --bs-border-color: #3a3f47;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, Arial, sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
  color: #0f172a;
}
[data-bs-theme="dark"] body {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #f8fafc;
}

.container {
  max-width: 1200px;
}

/* ===== BRAND / HEADER (gradien biru) ===== */
.bg-berita {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 55%, #1e3a8a 100%);
  border-bottom: 1px solid rgba(255,255,255,.15);
}
[data-bs-theme="dark"] .bg-berita { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #1d4ed8 100%); }
.navbar-brand-berita {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 1.25rem;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 3px;
  background: rgba(255,255,255,.16);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .18);
}
.footer-brand {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 1.4rem;
  color: var(--biru);
}

/* ===== NAV KATEGORI (sticky) ===== */
.nav-kategori {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(15,23,42,.06);
  border-bottom: 1px solid rgba(37,99,235,.08);
}
[data-bs-theme="dark"] .nav-kategori {
  background: rgba(17,24,39,.9);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-kategori .nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.nav-kategori .nav-link {
  color: var(--biru-pekat);
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
  padding: .4rem .9rem;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
[data-bs-theme="dark"] .nav-kategori .nav-link { color: #dbeafe; }
.nav-kategori .nav-link:hover { color: var(--biru); background-color: rgba(37,99,235,.08); transform: translateY(-2px); }
.nav-kategori .nav-link.active { background: linear-gradient(135deg, var(--biru), var(--biru-gelap)); color: #fff; box-shadow: 0 8px 18px rgba(37,99,235,.24); }

/* ===== JUDUL HEADLINE ===== */
.headline-judul {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}
[data-bs-theme="dark"] .headline-judul { color: #f1f3f5; }

/* ===== HEADLINE HOVER ===== */
.headline-berita { transition: transform .3s ease, box-shadow .3s ease; }
.headline-berita:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,.1); }
.headline-berita img { transition: transform .6s ease; }
.headline-berita:hover img { transform: scale(1.03); }

/* ===== KARTU BERITA (modern + hover lift) ===== */
.berita-kartu {
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  border: 1px solid rgba(148,163,184,.16);
}
.berita-kartu:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(15,23,42,.12) !important;
  border-color: rgba(37,99,235,.2);
}
[data-bs-theme="dark"] .berita-kartu:hover { box-shadow: 0 16px 32px rgba(0,0,0,.45) !important; }
.berita-kartu .kartu-gambar { transition: transform .5s ease; }
.berita-kartu:hover .kartu-gambar { transform: scale(1.06); }
.berita-kartu .card-body { background: rgba(255,255,255,.9); }
[data-bs-theme="dark"] .berita-kartu .card-body { background: rgba(17,24,39,.7); }

/* ===== NOMOR TRENDING ===== */
.trending-nomor {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--biru);
  line-height: 1;
  min-width: 34px;
}

/* ===== ISI ARTIKEL ===== */
.isi-artikel { font-size: 1.1rem; line-height: 1.8; }
.isi-artikel p { margin-bottom: 1rem; }

/* ===== DUKUNGAN QUILL (konten dari editor admin) ===== */
.isi-artikel .ql-align-center { text-align: center; }
.isi-artikel .ql-align-right { text-align: right; }
.isi-artikel .ql-align-justify { text-align: justify; }
.isi-artikel .ql-indent-1 { margin-left: 2.5em; }
.isi-artikel .ql-indent-2 { margin-left: 5em; }
.isi-artikel .ql-indent-3 { margin-left: 7.5em; }
.isi-artikel p:empty,
.isi-artikel p:has(> br:only-child) { display: none; }

/* ===== BANNER ===== */
.banner-berita {
  background: linear-gradient(135deg, var(--biru), var(--biru-pekat));
  box-shadow: 0 12px 24px rgba(37,99,235,.2);
  border: 1px solid rgba(255,255,255,.16);
}

/* ===== ADMIN DASHBOARD ===== */
.admin-shell {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 760px;
  background: #fff;
}
.admin-sidebar {
  background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
  color: #fff;
}
.admin-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 12px;
  color: #cbd5e1;
  transition: all .2s ease;
}
.admin-nav-item:hover,
.admin-nav-item.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.admin-content {
  background: #f8fafc;
}
.admin-topbar {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
}
.admin-nav-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--biru);
  font-size: 1rem;
  font-weight: 700;
}
.admin-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  min-width: 240px;
}
.admin-search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: .95rem;
}
.admin-action-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
}
.admin-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.admin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--biru), #8b5cf6);
}
.admin-user-pill {
  background: #eef2ff;
  color: #4338ca;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.admin-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #2563eb 100%);
  box-shadow: 0 20px 40px rgba(15, 23, 42, .16);
}
.admin-stat-box {
  min-width: 140px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}
.admin-mini-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #eff6ff;
  font-size: 1.1rem;
}
.admin-card {
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(226,232,240,.9);
}
[data-bs-theme="dark"] .admin-card {
  background: rgba(17,24,39,.86);
  border-color: rgba(71,85,105,.45);
}
.admin-table thead th {
  background: #f8fafc;
  color: #475569;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
[data-bs-theme="dark"] .admin-table thead th {
  background: #1e293b;
  color: #cbd5e1;
}
.admin-table tbody tr:hover {
  background-color: rgba(37,99,235,.05);
}
.letter-spacing { letter-spacing: .2em; }

@media (max-width: 991.98px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
}

/* ===== TOMBOL (hover animasi) ===== */
.btn { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.btn:active { transform: translateY(0); }

/* ===== TOMBOL TEMA ===== */
.tombol-tema { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }

/* ===== GOOGLE LOGIN ===== */
.btn-google { background: #fff; color: #444; border: 1px solid #dadce0; }
.btn-google:hover { background: #f8f9fa; color: #1a1a1a; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
[data-bs-theme="dark"] .btn-google { background: #1e1e1e; color: #e8eaed; border-color: #3c4043; }
[data-bs-theme="dark"] .btn-google:hover { background: #2d2d2d; color: #fff; }

/* ===== ANIMASI MUNCUL SAAT SCROLL ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal-tampil { opacity: 1; transform: none; }

/* ===== SOSMED ===== */
.sosmed {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--sosmed-bg, var(--bs-secondary-bg));
  color: var(--sosmed-warna, var(--bs-body-color));
  border: 1px solid var(--sosmed-bg, var(--bs-border-color));
  transition: transform .25s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sosmed i {
  font-size: 18px;
  line-height: 1;
}
.sosmed:hover {
  transform: translateY(-5px) scale(1.05);
  background-color: var(--sosmed-bg-hover, var(--biru));
  color: var(--sosmed-warna-hover, #fff);
  border-color: var(--sosmed-bg-hover, var(--biru));
  box-shadow: 0 10px 20px rgba(37, 99, 235, .35);
}

/* ===== SHARE BAR & WHATSAPP ===== */
.share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.share-bar-label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--bs-secondary-color, #6c757d);
}
.btn-whatsapp-share {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem 1.25rem;
  border: none;
  border-radius: 50rem;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, .35);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-whatsapp-share:hover {
  background: #1fb959;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(37, 211, 102, .45);
}
.btn-whatsapp-share:active {
  transform: translateY(0);
}
.btn-whatsapp-share:focus-visible {
  outline: 3px solid rgba(37, 211, 102, .5);
  outline-offset: 2px;
}
.btn-whatsapp-share i {
  font-size: 1.3rem;
}
@media (max-width: 575.98px) {
  .btn-whatsapp-share { width: 100%; justify-content: center; padding: .8rem 1rem; }
  .btn-whatsapp-share i { font-size: 1.5rem; }
  .share-bar { flex-direction: column; align-items: stretch; gap: .5rem; }
  .share-bar-label { text-align: center; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 575.98px) {
  .navbar-brand-berita { font-size: 1.2rem; }
  .navbar .nav-search-group { width: 100%; }
  .navbar .nav-search-group .navbar-search { flex: 1; min-width: 0; }
  .navbar .nav-search-group .navbar-search input { flex: 1; min-width: 0; }
  .headline-judul { font-size: 1.45rem; }
  .isi-artikel { font-size: 1rem; }
  .kartu-berita img { min-height: 0; max-height: 200px; }
  .berita-kartu .kartu-gambar { min-height: 0; max-height: 200px; }
}

/* ===== LOGIN DARK MODE ===== */
[data-bs-theme="dark"] .card {
  background-color: #1e293b;
  border-color: #334155;
}
[data-bs-theme="dark"] .form-control {
  background-color: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
}
[data-bs-theme="dark"] .form-control:focus {
  background-color: #0f172a;
  border-color: #3b82f6;
  color: #f1f5f9;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}
[data-bs-theme="dark"] .form-label {
  color: #e2e8f0;
}
[data-bs-theme="dark"] .text-secondary {
  color: #94a3b8 !important;
}
[data-bs-theme="dark"] .btn-google {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}
[data-bs-theme="dark"] .btn-google:hover {
  background: #334155;
  color: #f8fafc;
}
[data-bs-theme="dark"] .footer-brand {
  color: #f8fafc;
}

.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.galeri-item {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.16);
  aspect-ratio: 4/3;
  transition: transform .3s ease, box-shadow .3s ease;
}
.galeri-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}
.galeri-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--biru);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  z-index: 1040;
  cursor: pointer;
}
.btn-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.btn-scroll-top:hover {
  background: var(--biru-gelap);
}

/* ============================================================
   REDESIGN HOMEPAGE — PORTAL BERITA PROFESIONAL
   ============================================================ */

/* ===== TOPBAR ===== */
.topbar {
  background: #0f172a;
  color: rgba(255, 255, 255, .72);
  font-size: .78rem;
  line-height: 1;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  min-height: 34px;
}
.topbar a { color: rgba(255, 255, 255, .72); text-decoration: none; transition: color .2s ease; }
.topbar a:hover { color: #fff; }
.topbar-date i, .topbar-tagline i { color: var(--biru); margin-right: 5px; }
.topbar-social { display: flex; gap: 14px; }
.topbar-social i { font-size: .85rem; }

/* ===== SITE HEADER ===== */
.site-header {
  position: relative;
  background: var(--bs-body-bg);
  border-bottom: 1px solid var(--bs-border-color);
  z-index: 50;
}
[data-bs-theme="dark"] .site-header { background: #0f172a; }
.header-main {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 12px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.site-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  padding: 2px;
  background: rgba(37, 99, 235, .14);
}
.site-logo-text {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--bs-body-color);
  line-height: 1;
}
.site-logo-text strong { color: var(--biru); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-menu-btn,
.header-search-btn,
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.header-menu-btn:hover,
.header-search-btn:hover,
.theme-toggle:hover {
  background: var(--biru);
  color: #fff;
  border-color: var(--biru);
}
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  padding: 6px 8px 6px 14px;
  width: 300px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header-search:focus-within {
  border-color: var(--biru);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.header-search > i { color: var(--biru); font-size: .85rem; }
.header-search input {
  border: 0;
  outline: 0;
  background: transparent;
  flex: 1;
  min-width: 0;
  color: var(--bs-body-color);
  font-size: .9rem;
}
.header-search-submit {
  border: 0;
  background: var(--biru);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background .2s ease;
}
.header-search-submit:hover { background: var(--biru-gelap); }

/* ===== REALTIME SEARCH DROPDOWN ===== */
.search-dropdown-wrap { position: relative; }
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1200;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
}
.search-dropdown.is-loading::after {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  margin: 16px auto;
  border: 2px solid var(--bs-border-color);
  border-top-color: var(--biru);
  border-radius: 50%;
  animation: search-spin .7s linear infinite;
}
@keyframes search-spin { to { transform: rotate(360deg); } }
.search-dropdown-empty,
.search-dropdown-header {
  padding: 12px 16px;
  font-size: .82rem;
  color: var(--bs-secondary-color);
}
.search-dropdown-header {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--biru);
  border-bottom: 1px solid var(--bs-border-color);
}
.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--bs-body-color);
  transition: background .15s ease;
}
.search-dropdown-item + .search-dropdown-item { border-top: 1px solid var(--bs-border-color); }
.search-dropdown-item:hover { background: var(--bs-secondary-bg); }
.search-dropdown-thumb {
  width: 64px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--bs-secondary-bg);
}
.search-dropdown-body { min-width: 0; }
.search-dropdown-title {
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-dropdown-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: .72rem;
  color: var(--bs-secondary-color);
}
.search-dropdown-cat {
  color: var(--biru);
  font-weight: 700;
}
.search-dropdown-footer {
  padding: 10px 16px;
  text-align: center;
  border-top: 1px solid var(--bs-border-color);
}
.search-dropdown-footer a {
  color: var(--biru);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}
.search-dropdown-footer a:hover { text-decoration: underline; }

/* ===== MAIN NAVIGATION ===== */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bs-body-bg);
  border-bottom: 1px solid var(--bs-border-color);
  box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}
[data-bs-theme="dark"] .main-nav { background: #0f172a; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.main-nav-inner { padding: 0 12px; }
.main-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: visible;
  scrollbar-width: none;
}
.main-nav-list::-webkit-scrollbar { display: none; }
.main-nav-item { position: relative; flex-shrink: 0; }
.main-nav-link {
  display: block;
  padding: 12px 14px;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--bs-body-color);
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.main-nav-link:hover { color: var(--biru); }
.main-nav-link.is-active {
  color: var(--biru);
  border-bottom-color: var(--biru);
}
.main-nav-more { display: inline-flex; align-items: center; gap: 6px; }
.main-nav-more i { font-size: .7rem; }
.main-nav-submenu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 220px;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 300;
}

@media (max-width: 991.98px) {
  .main-nav-submenu {
    position: fixed !important;
    top: auto !important;
    left: 0 !important;
    z-index: 99999 !important;
  }
}
[data-bs-theme="dark"] .main-nav-submenu { background: #111827; }
.main-nav-dropdown.is-open {
  z-index: 9999;
}
.main-nav-dropdown.is-open .main-nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav-submenu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--bs-body-color);
  text-decoration: none;
  text-transform: uppercase;
  transition: background .15s ease, color .15s ease;
}
.main-nav-submenu a:hover,
.main-nav-submenu a.is-active {
  background: rgba(37, 99, 235, .08);
  color: var(--biru);
}

/* ===== MOBILE MENU (drawer) ===== */
.header-menu-btn { display: none; }
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: var(--bs-body-bg);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform .3s ease;
  box-shadow: 6px 0 30px rgba(15, 23, 42, .18);
  overflow-y: auto;
  padding: 20px;
}
[data-bs-theme="dark"] .mobile-menu { background: #0f172a; }
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .5);
  z-index: 1190;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.mobile-menu-overlay.is-open { opacity: 1; visibility: visible; }
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  padding: 8px 14px;
  margin-bottom: 18px;
}
.mobile-search i { color: var(--biru); font-size: .85rem; }
.mobile-search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; color: var(--bs-body-color); }
.mobile-menu-list { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--bs-border-color); }
.mobile-menu-list li { border-bottom: 1px solid var(--bs-border-color); }
.mobile-menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 2px;
  font-weight: 700;
  font-size: .92rem;
  text-transform: uppercase;
  color: var(--bs-body-color);
  text-decoration: none;
  transition: color .15s ease;
}
.mobile-menu-list a::after { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .65rem; color: var(--biru); }
.mobile-menu-list a:hover,
.mobile-menu-list a.is-active { color: var(--biru); }
.mobile-menu-social { display: flex; gap: 10px; }
.mobile-menu-social .sosmed { width: 38px; height: 38px; }

/* ===== HOME LAYOUT ===== */
.home-page { padding: 20px 0 8px; }
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}
.main-col { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 18px; }

/* ===== SECTION TITLE ===== */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--bs-border-color);
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.section-title-judul {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--bs-body-color);
  margin: 0;
  padding-left: 12px;
  border-left: 4px solid var(--biru);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}
.section-title-judul i { color: var(--biru); font-size: .9em; }
.section-title-subtitle {
  font-size: .8rem;
  color: var(--bs-secondary-color);
  margin-left: auto;
}
.section-title-link {
  margin-left: auto;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--biru);
  white-space: nowrap;
  transition: color .2s ease;
}
.section-title-link:hover { color: var(--biru-gelap); }
.section-title-link i { font-size: .7rem; }

/* ===== CATEGORY BADGE ===== */
.category-badge {
  display: inline-block;
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fff;
  background: var(--biru);
  padding: 3px 9px;
  border-radius: 4px;
}
.category-badge--small { font-size: .6rem; padding: 2px 7px; }

/* ===== BREAKING NEWS TICKER ===== */
.breaking-news {
  display: flex;
  align-items: stretch;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-left: 4px solid var(--biru);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}
.breaking-news-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  background: var(--biru);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  padding: 0 16px;
  text-transform: uppercase;
}
.breaking-news-label span { white-space: nowrap; }
.breaking-news-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
}
.breaking-news-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: ticker-scroll 45s linear infinite;
}
.breaking-news:hover .breaking-news-track { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.breaking-news-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px 10px 0;
  white-space: nowrap;
  font-size: .84rem;
  font-weight: 600;
  color: var(--bs-body-color);
  text-decoration: none;
  transition: color .2s ease;
}
.breaking-news-item i { color: var(--biru); font-size: .6rem; }
.breaking-news-item:hover { color: var(--biru); }
@media (prefers-reduced-motion: reduce) {
  .breaking-news-track { animation: none; }
}

/* ===== HERO ===== */
.hero-section { margin-bottom: 4px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 20px;
}
.hero-main {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  min-height: 380px;
}
.hero-main-media { position: absolute; inset: 0; }
.hero-main-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.hero-main:hover .hero-main-media img { transform: scale(1.04); }
.hero-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, .05) 0%, rgba(15, 23, 42, .2) 40%, rgba(15, 23, 42, .85) 100%);
}
.hero-main-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px;
  color: #fff;
  z-index: 2;
}
.hero-main-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 10px 0 6px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
.hero-main-excerpt {
  font-size: .86rem;
  opacity: .9;
  margin: 0 0 10px;
  max-width: 90%;
}
.hero-main-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .76rem;
  opacity: .85;
}
.hero-main-meta i { margin-right: 5px; }
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-side-item {
  display: block;
  text-decoration: none;
  color: var(--bs-body-color);
}
.hero-side-media {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bs-secondary-bg);
  margin-bottom: 10px;
}
.hero-side-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.hero-side-item:hover .hero-side-media img { transform: scale(1.05); }
.hero-side-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 6px 0 4px;
  color: var(--bs-body-color);
  transition: color .2s ease;
}
.hero-side-item:hover .hero-side-title { color: var(--biru); }
.hero-side-date {
  font-size: .74rem;
  color: var(--bs-secondary-color);
}
.hero-side-empty {
  flex: 1;
  display: grid;
  place-items: center;
  color: var(--bs-secondary-color);
  border: 1px dashed var(--bs-border-color);
  border-radius: 10px;
  font-size: .85rem;
  padding: 20px;
  text-align: center;
}

/* ===== NEWS CARD (VERTICAL) ===== */
.news-card {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15, 23, 42, .1); }
.news-card-link { display: block; text-decoration: none; color: var(--bs-body-color); }
.news-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bs-secondary-bg);
}
.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.news-card:hover .news-card-media img { transform: scale(1.05); }
.news-card-body { padding: 14px 16px 16px; }
.news-card-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 8px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--bs-body-color);
  transition: color .2s ease;
}
.news-card:hover .news-card-title { color: var(--biru); }
.news-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: .74rem;
  color: var(--bs-secondary-color);
}

/* ===== NEWS CARD (HORIZONTAL) ===== */
.news-card-horizontal {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.news-card-horizontal:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15, 23, 42, .1); }
.news-card-horizontal-link {
  display: flex;
  gap: 14px;
  padding: 12px;
  text-decoration: none;
  color: var(--bs-body-color);
}
.nch-media {
  flex-shrink: 0;
  width: 220px;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bs-secondary-bg);
}
.nch-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.news-card-horizontal:hover .nch-media img { transform: scale(1.05); }
.nch-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nch-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 8px 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--bs-body-color);
  transition: color .2s ease;
}
.news-card-horizontal:hover .nch-title { color: var(--biru); }
 .nch-excerpt {
  font-size: .84rem;
  color: var(--bs-secondary-color);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== RELATED TEXT LIST (Berita Terkait) ===== */
.related-list { border-radius: 10px; overflow: hidden; }
.related-item {
  padding: 12px 14px;
  border-left: 0;
  border-right: 0;
  background: var(--bs-body-bg);
}
.related-item:first-child { border-top: 0; }
.related-item:last-child { border-bottom: 0; }
.related-link {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--bs-body-color);
  text-decoration: none;
  transition: color .2s ease;
}
.related-link:hover { color: var(--biru); }
.related-meta {
  margin-top: 4px;
  font-size: .74rem;
  color: var(--bs-secondary-color);
}
.nch-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .74rem;
  color: var(--bs-secondary-color);
}
.nch-meta i { margin-right: 4px; color: var(--biru); }

/* ===== BERITA LIST ===== */
.berita-list { display: flex; flex-direction: column; gap: 14px; }
.berita-list .ad-slot { margin: 6px 0; }

/* ===== CATEGORY SECTION ===== */
.category-section { margin-bottom: 8px; }
.category-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
}
.category-section-grid--single {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.cs-featured { min-width: 0; }
.cs-list {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--bs-border-color);
  padding-left: 18px;
  gap: 0;
}
.cs-list-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 0;
  text-decoration: none;
  border-bottom: 1px dashed var(--bs-border-color);
  transition: color .2s ease;
}
.cs-list-item:last-child { border-bottom: 0; }
.cs-list-title {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--bs-body-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s ease;
}
.cs-list-item:hover .cs-list-title { color: var(--biru); }
.cs-list-date {
  font-size: .72rem;
  color: var(--bs-secondary-color);
}

/* ===== SIDEBAR ===== */
.sidebar-widget {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  padding: 16px;
}
.sidebar-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .98rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bs-border-color);
  color: var(--bs-body-color);
  display: flex;
  align-items: center;
}
.sidebar-title::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--biru);
  border-radius: 2px;
  margin-right: 9px;
}
.sidebar-list { list-style: none; margin: 0; padding: 0; }
.sidebar-list li + li { border-top: 1px dashed var(--bs-border-color); }
.sidebar-list-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  text-decoration: none;
  color: var(--bs-body-color);
  align-items: flex-start;
}
.sidebar-nomor {
  flex-shrink: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--biru);
  line-height: 1;
  margin-top: 1px;
}
.sidebar-rank {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: .8rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--biru), var(--biru-gelap));
  border-radius: 8px;
  margin-top: 1px;
}
.sidebar-list-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sidebar-list-title {
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--bs-body-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s ease;
}
.sidebar-list-item:hover .sidebar-list-title { color: var(--biru); }
.sidebar-list-date {
  font-size: .72rem;
  color: var(--bs-secondary-color);
}
.sidebar-list-date i { margin-right: 4px; }

/* ===== TAG LIST ===== */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-secondary-bg);
  font-size: .78rem;
  font-weight: 600;
  color: var(--bs-body-color);
  text-decoration: none;
  transition: all .2s ease;
}
.tag-chip:hover {
  background: var(--biru);
  border-color: var(--biru);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== AD SLOTS ===== */
.ad-slot { display: block; margin: 10px 0; }

/* ===== EMPTY STATE ===== */
.empty-state {
  border: 1px dashed var(--bs-border-color);
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  color: var(--bs-secondary-color);
  font-size: .9rem;
}

/* ===== PAGE LIST (search/kategori) ===== */
.page-list .home-layout { margin-top: 0; }
.page-list .berita-list { display: flex; flex-direction: column; gap: 14px; }

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 34px;
  padding: 44px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding-bottom: 34px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-decoration: none;
}
.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.footer-about {
  font-size: .84rem;
  line-height: 1.65;
  opacity: .85;
  margin: 14px 0 16px;
  max-width: 320px;
}
.footer-col-title {
  font-size: .95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 16px;
  color: #fff;
}
.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin-bottom: 9px; }
.footer-links a {
  font-size: .86rem;
  opacity: .85;
  text-decoration: none;
  transition: opacity .2s ease;
}
.footer-links a:hover { opacity: 1; }
.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .86rem;
  line-height: 1.55;
  opacity: .85;
  margin-bottom: 10px;
}
.footer-contact i { color: #fff; margin-top: 3px; }
.footer-contact a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}
.footer-contact a:hover {
  color: #fff;
  opacity: 1;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding: 18px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom-inner p { margin: 0; font-size: .8rem; opacity: .8; }
.footer-bottom-links { display: flex; gap: 8px; }
.footer-bottom-links a { text-decoration: none; opacity: .9; }
.footer-bottom-links a:hover { opacity: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1199.98px) {
  .home-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
  .header-search { width: 230px; }
}

@media (max-width: 991.98px) {
  .home-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-search { display: none; }
  .header-search-btn { display: inline-flex; }
  .header-menu-btn { display: inline-flex; }
  .topbar-tagline { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { min-height: 320px; }
  .main-nav-list { overflow-x: auto; overflow-y: hidden; }
}

@media (max-width: 767.98px) {
  .topbar-social { display: none; }
  .header-main { padding: 10px 12px; }
  .site-logo-img { width: 38px; height: 38px; }
  .site-logo-text { font-size: 1.1rem; }
  .main-nav-link { padding: 11px 11px; font-size: .78rem; }
  .hero-main { min-height: 260px; }
  .hero-main-title { font-size: 1.3rem; }
  .hero-main-body { padding: 16px; }
  .hero-main-excerpt { display: none; }
  .hero-side { flex-direction: column; }
  .hero-side-item { display: flex; gap: 12px; }
  .hero-side-media { width: 130px; aspect-ratio: 3 / 2; margin-bottom: 0; flex-shrink: 0; }
  .news-card-horizontal-link { padding: 10px; gap: 12px; }
  .nch-media { width: 128px; }
  .nch-excerpt { display: none; }
  .nch-meta { gap: 10px; }
  .category-section-grid { grid-template-columns: 1fr; }
  .cs-list { border-left: 0; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .breaking-news-label { padding: 0 12px; font-size: .64rem; }
}

@media (max-width: 479.98px) {
  .hero-side-item { flex-direction: column; }
  .hero-side-media { width: 100%; }
  .header-actions { gap: 6px; }
  .header-search-submit { display: none; }
}

@media (max-width: 379.98px) {
  .site-logo-text { font-size: .95rem; }
  .site-logo-img { width: 34px; height: 34px; }
  .header-menu-btn, .header-search-btn, .theme-toggle { width: 36px; height: 36px; }
  .header-main { gap: 10px; }
}

/* ===== MOBILE HEADER SEARCH DROPDOWN ===== */
@media (max-width: 991.98px) {
  .header-actions { position: static; }
  .search-dropdown-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1200;
  }
  .header-search {
    position: static;
    width: 100%;
    border-radius: 0;
    border: 0;
    border-top: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    padding: 10px 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .1);
    display: none;
  }
  .header-search.is-open { display: flex; }
}

/* ===== TOPBAR INDEKS ===== */
.topbar-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.topbar-indeks {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #fff !important;
  background: var(--biru);
  border-radius: 999px;
  padding: 5px 12px;
  text-decoration: none;
  transition: background .2s ease;
}
.topbar-indeks:hover { background: var(--biru-gelap); }
.topbar-indeks i { font-size: .72rem; }
@media (max-width: 767.98px) {
  .topbar-indeks span { display: none; }
  .topbar-indeks { padding: 6px 8px; }
}

/* ===== HEADER ADS SAMPING LOGO ===== */
.header-ads { margin-left: auto; }
@media (max-width: 767.98px) {
  .header-ads { display: none; }
}

/* ===== SECONDARY MENU / TRENDING STRIP ===== */
.trending-nav {
  position: relative;
  z-index: 10;
  background: var(--bs-secondary-bg);
  border-bottom: 1px solid var(--bs-border-color);
}
[data-bs-theme="dark"] .trending-nav { background: #0b1120; }
.trending-nav-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  overflow: hidden;
}
.trending-nav-label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--biru);
}
.trending-nav-label i { font-size: .8rem; }
.trending-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.trending-nav-list::-webkit-scrollbar { display: none; }
.trending-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  color: var(--cat-color, var(--biru));
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}
[data-bs-theme="dark"] .trending-nav-link { background: #111827; }
.trending-nav-link i { font-size: .68rem; opacity: .85; }
.trending-nav-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, .12);
}
.trending-nav-new {
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .04em;
  background: var(--cat-color, var(--biru));
  color: #fff;
  border-radius: 3px;
  padding: 1px 5px;
}

/* ===== NEWS SLIDER ===== */
.news-slider {
  position: relative;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bs-body-bg);
  box-shadow: 0 6px 22px rgba(15, 23, 42, .08);
}
.news-slider-viewport { overflow: hidden; }
.news-slider-track { display: flex; transition: transform .55s ease; }
.news-slider-slide { flex: 0 0 100%; min-width: 0; }
.news-slider-link {
  position: relative;
  display: block;
  height: 360px;
  overflow: hidden;
  text-decoration: none;
}
.news-slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.news-slider-slide:hover .news-slider-img { transform: scale(1.04); }
.news-slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, .06) 0%, rgba(15, 23, 42, .25) 45%, rgba(15, 23, 42, .88) 100%);
}
.news-slider-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #fff;
}
.news-slider-judul {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
  max-width: 80%;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-slider-caption .category-badge {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-self: flex-start;
  flex-shrink: 1;
  min-width: 0;
}
.news-slider-meta {
  font-size: .78rem;
  opacity: .9;
}
.news-slider-meta i { margin-right: 5px; }
.news-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(15, 23, 42, .45);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.news-slider-nav:hover { background: var(--biru); }
.news-slider-nav--prev { left: 14px; }
.news-slider-nav--next { right: 14px; }
.news-slider-dots {
  position: absolute;
  bottom: 14px;
  right: 18px;
  z-index: 3;
  display: flex;
  gap: 6px;
}
.news-slider-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.news-slider-dots button.is-active { background: #fff; transform: scale(1.35); }
@media (max-width: 767.98px) {
  .news-slider-link { height: 300px; }
  .news-slider-judul { font-size: 1.15rem; max-width: 100%; }
  .news-slider-caption { padding: 16px; }
  .news-slider-nav { width: 34px; height: 34px; }
  .news-slider-nav--prev { left: 8px; }
  .news-slider-nav--next { right: 8px; }
  .news-slider-dots { bottom: 10px; right: 12px; }
}

/* ===== LOAD MORE ===== */
.berita-list { display: flex; flex-direction: column; gap: 14px; }
.berita-list-item.is-hidden { display: none; }
.berita-list-item.is-appearing { animation: berita-masuk .45s ease both; }
@keyframes berita-masuk {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px auto 4px;
  padding: 10px 26px;
  border-radius: 999px;
  border: 1px solid var(--biru);
  background: transparent;
  color: var(--biru);
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.btn-load-more:hover { background: var(--biru); color: #fff; }
.btn-load-more i { font-size: .72rem; }

/* ===== RENDER PERF (LIGHTHOUSE) ===== */
.berita-list-item,
.category-section,
.sidebar-widget,
.hero-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}

/* ===== SIDEBAR KATEGORI WIDGET ===== */
.sidebar-list--thumb .sidebar-list-item { gap: 10px; align-items: center; }
.sidebar-thumb {
  flex-shrink: 0;
  width: 76px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bs-secondary-bg);
}
.sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sidebar-widget--kategori { padding-bottom: 10px; }
.sidebar-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--biru);
  text-decoration: none;
}
.sidebar-more:hover { color: var(--biru-gelap); }
.sidebar-more i { font-size: .68rem; }

/* ===== INDEKS PAGE ===== */
.page-indeks { max-width: 860px; margin: 0 auto; }
.page-indeks-head { margin-bottom: 26px; }
.page-indeks-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--bs-body-color);
  margin: 0 0 4px;
}
.page-indeks-subtitle { color: var(--bs-secondary-color); margin: 0; font-size: .9rem; }
.indeks-section { margin-bottom: 30px; }
.indeks-section-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--bs-body-color);
  border-bottom: 2px solid var(--bs-border-color);
  padding-bottom: 10px;
  padding-left: 12px;
  border-left: 4px solid var(--biru);
  margin: 0 0 16px;
}
.indeks-kategori { display: flex; flex-wrap: wrap; gap: 8px; }
.indeks-chip {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-secondary-bg);
  font-size: .82rem;
  font-weight: 600;
  color: var(--bs-body-color);
  text-decoration: none;
  transition: all .2s ease;
}
.indeks-chip:hover {
  background: var(--biru);
  border-color: var(--biru);
  color: #fff;
  transform: translateY(-2px);
}
.indeks-tahun { margin-bottom: 24px; }
.indeks-tahun-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--biru);
  margin: 0 0 12px;
}
.indeks-bulan { margin-bottom: 18px; }
.indeks-bulan-title {
  font-size: .9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--bs-body-color);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--bs-border-color);
}
.indeks-list { list-style: none; margin: 0; padding: 0; }
.indeks-item {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  align-items: baseline;
  border-bottom: 1px dotted var(--bs-border-color);
}
.indeks-item-date {
  flex-shrink: 0;
  font-size: .74rem;
  color: var(--bs-secondary-color);
  min-width: 74px;
}
.indeks-item-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--bs-body-color);
  text-decoration: none;
  line-height: 1.45;
}
.indeks-item-title:hover { color: var(--biru); }
@media (max-width: 479.98px) {
  .indeks-item { flex-direction: column; gap: 2px; }
  .indeks-item-date { min-width: 0; }
}

/* ===== HALAMAN LEGAL ===== */
.halaman-nav li { border-bottom: 1px dashed var(--bs-border-color); }
.halaman-nav a {
  display: block;
  padding: 9px 2px;
  color: var(--bs-body-color);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 600;
  transition: color .2s ease;
}
.halaman-nav a:hover { color: var(--biru); }

/* ===== TRENDING BADGES ===== */
.sidebar-title .fa-fire { color: #e01a1a; }
.trending-badge-hot { color: #e01a1a; font-size: .7rem; font-weight: 700; }
.trending-badge-label { color: #2563eb; font-size: .7rem; font-weight: 700; }
[data-bs-theme="dark"] .trending-badge-hot { color: #f87171; }
[data-bs-theme="dark"] .trending-badge-label { color: #60a5fa; }
