/* ============ TOPBAR ============ */
.topbar {
  background: #16181d;
  color: #b8bcc4;
  font-size: 13px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 38px;
}

.topbar-date { flex: 0 0 auto; white-space: nowrap; }
.topbar-date .sep { margin: 0 6px; opacity: .45; }

.topbar-list {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.topbar-list a { color: #b8bcc4; transition: color .15s; }
.topbar-list a:hover { color: #fff; }

/* ============ HEADER ============ */
/* .header-shell menahan tinggi header normal, supaya halaman
   tidak "loncat" saat header berubah jadi fixed & ringkas. */
.header-shell { position: relative; }

.site-header {
  position: relative;
  z-index: 200;
  width: 100%;
  background: #f5f6f7;
  border-bottom: 1px solid var(--border);
}

/* Keadaan NORMAL (sebelum scroll):
   baris 1 = logo | pencarian | ikon
   baris 2 = menu navigasi (di tengah) */
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 28px;
}

.site-brand { order: 1; flex: 0 0 auto; padding: 16px 0; }
.site-brand img { max-height: 44px; width: auto; }

.brand-text {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.header-search {
  order: 2;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-search .search-form { width: 100%; max-width: 420px; }
.header-search .search-field { padding: 9px 14px; font-size: 14px; }
.header-search .search-submit { padding: 9px 18px; }

/* ============ NAVIGASI ============ */
.site-nav {
  order: 4;
  flex: 0 0 100%;
  min-width: 0;
  position: relative;
  z-index: 210;
  background: transparent;
  border-top: 1px solid var(--border);
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }

@media (min-width: 901px) {
  .nav-list { overflow: visible; }
}

.nav-list > li { position: relative; flex: 0 0 auto; }

.nav-list > li > a {
  display: block;
  padding: 14px 11px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav-list > li > a:hover,
.nav-list > li.current-menu-item > a {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 220;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.14);
  list-style: none;
  margin: 0;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: .18s;
}
.nav-list > li:hover .sub-menu,
.nav-list > li:focus-within .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-list .sub-menu a {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  text-transform: none;
  border-radius: 6px;
}
.nav-list .sub-menu a:hover { background: var(--bg-alt); color: var(--primary); }

/* ============ IKON AKSI ============ */
.header-actions {
  order: 3;
  margin-left: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--text);
  opacity: .85;
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s, opacity .15s;
}
.icon-btn:hover { opacity: 1; background: rgba(0,0,0,.06); }
.icon-btn svg { width: 21px; height: 21px; }

/* Di desktop normal, pencarian sudah tampil → tombol cari disembunyikan */
.header-actions #searchToggle { display: none; }

/* ============ PANEL PENCARIAN ============ */
.search-panel {
  display: none;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.search-panel.is-open { display: block; }

.search-form { display: flex; gap: 8px; }
.search-field {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}
.search-field:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.search-submit {
  padding: 12px 24px;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

/* ============ HEADER RINGKAS (setelah scroll) ============ */
.site-header.is-compact {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px);
  left: 0;
  right: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  animation: dtkHeaderIn .25s ease;
}

@keyframes dtkHeaderIn {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

@media (max-width: 600px) {
  /* admin bar WP tidak ikut menempel di layar kecil */
  .admin-bar .site-header.is-compact { top: 0; }
}

@media (min-width: 901px) {
  .site-header.is-compact .header-inner { flex-wrap: nowrap; height: 58px; }
  .site-header.is-compact .site-brand { padding: 0; }
  .site-header.is-compact .site-brand img { max-height: 30px; }
  .site-header.is-compact .brand-text { font-size: 22px; }

  .site-header.is-compact .header-search,
  .site-header.is-compact .home-btn { display: none; }

  .site-header.is-compact .site-nav {
    order: 2;
    flex: 1 1 auto;
    border-top: 0;
  }
  .site-header.is-compact .nav-list > li > a { padding: 0 10px; line-height: 55px; }

}

@media (prefers-reduced-motion: reduce) {
  .site-header.is-compact { animation: none; }
}

/* ============ HEADER TABLET ============ */
@media (max-width: 1100px) {
  .nav-list > li > a { padding-left: 8px; padding-right: 8px; font-size: 12px; }
  .header-inner { column-gap: 16px; }
}

/* ============ HEADER MOBILE ============ */
@media (max-width: 900px) {
  .header-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    height: 56px;
  }
  .site-brand { padding: 0; }
  .site-brand img { max-height: 32px; }
  .brand-text { font-size: 22px; }

  .header-search,
  .home-btn { display: none; }
  .header-actions #searchToggle { display: grid; }

  /* Menu mobile: dropdown di bawah header, dibuka tombol hamburger */
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
  }
  .site-nav.is-open { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 6px 16px 12px;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
  }
  .nav-list > li > a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-list .sub-menu {
    position: static;
    min-width: 0;
    padding: 0 0 0 14px;
    border: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}


/* ============ DETAIL HEADER (mirip inilah.com) ============ */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Form cari: input dan tombol ikon menyatu */
.search-form { gap: 0; }
.search-form .search-field {
  border-radius: var(--radius) 0 0 var(--radius);
  border-right: 0;
}
.search-form .search-submit {
  display: grid;
  place-items: center;
  width: 48px;
  padding: 0;
  color: var(--primary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.search-form .search-submit:hover { background: var(--bg-alt); }
.header-search .search-form { max-width: 360px; }
.header-search .search-field { border-color: #cfd3d8; }
.header-search .search-submit { width: 42px; border-color: #cfd3d8; }

/* Tombol Masuk */
.btn-login {
  display: inline-flex;
  align-items: center;
  height: 36px;
  margin-left: 6px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(211, 47, 47, .3);
  transition: background .15s;
}
.btn-login:hover { background: var(--primary-dark); color: #fff; }

/* Panah kecil untuk menu yang punya submenu */
.nav-list > .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-left: 6px;
  vertical-align: 3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: .7;
}

@media (max-width: 900px) {
  .nav-list > .menu-item-has-children > a::after { display: none; }
}
@media (max-width: 600px) {
  .btn-login { height: 32px; padding: 0 14px; font-size: 14px; margin-left: 2px; }
  .header-actions { gap: 2px; }
}

/* ============ LAYOUT 2 KOLOM ============ */
.layout-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  padding-top: 28px;
}

.col-side {
  min-width: 0;
  position: sticky;
  top: 80px;
  align-self: start;
}

.col-side .widget { margin-bottom: 28px; }
.col-side .widget-title {
  position: relative;
  margin: 0 0 16px;
  padding-bottom: 8px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--border);
}
.col-side .widget-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 50px; height: 3px;
  background: var(--primary);
}

/* ============ HERO SLIDER ============ */
.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 36px;
}

.hero-track { display: flex; transition: transform .45s ease; }
.hero-slide { flex: 0 0 100%; min-width: 0; }
.hero-link { position: relative; display: block; }

.hero-media { position: relative; aspect-ratio: 16 / 9; background: var(--bg-alt); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 20px 46px;
  background: linear-gradient(to top, rgba(0,0,0,.88) 10%, rgba(0,0,0,.45) 55%, transparent);
  color: #fff;
}

.badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  background: var(--primary);
  border-radius: 3px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: .85; }
.dot { opacity: .6; }

.hero-dots {
  position: absolute;
  left: 50%; bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}
.hero-dots button {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: .2s;
}
.hero-dots button.is-active { width: 22px; border-radius: 4px; background: #fff; }

/* ============ SECTION ============ */
.section { margin-bottom: 40px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  position: relative;
  margin: 0;
  padding-bottom: 10px;
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 3px;
  background: var(--primary);
}

.section-more { font-size: 13px; font-weight: 600; color: var(--text-muted); padding-bottom: 10px; }
.section-more:hover { color: var(--primary); }

/* ============ LIST BERITA ============ */
.post-list { display: flex; flex-direction: column; }

.post-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.post-row:last-child { border-bottom: 0; }

.post-thumb {
  flex: 0 0 120px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-alt);
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-row:hover .post-thumb img { transform: scale(1.06); }

.post-info { flex: 1; min-width: 0; }

.post-cat {
  display: inline-block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--primary);
}

.post-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.post-title a:hover { color: var(--primary); }

.post-meta { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-muted); }

/* List berita versi besar */
.post-list-lg .post-row { gap: 20px; padding: 22px 0; }

.post-list-lg .post-thumb {
  flex: 0 0 220px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
}

.post-list-lg .post-cat {
  position: relative;
  padding-bottom: 5px;
  margin-bottom: 9px;
  font-size: 12px;
}
.post-list-lg .post-cat::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--primary);
}

.post-list-lg .post-title { margin: 0 0 12px; font-size: 21px; }

.post-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.byline-avatar { border-radius: 50%; }
.byline-name { font-size: 13px; font-weight: 600; }

/* ============ SIDEBAR TERPOPULER ============ */
.side-block { margin-bottom: 32px; }

.side-list { display: flex; flex-direction: column; }

.side-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.side-row:last-child { border-bottom: 0; }

.side-info { flex: 1; min-width: 0; }

.side-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.side-title a:hover { color: var(--primary); }

.side-thumb {
  flex: 0 0 88px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-alt);
}
.side-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.side-row:hover .side-thumb img { transform: scale(1.06); }

/* ============ WIDGET MEDIA SOSIAL ============ */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.social-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 6px;
  background: var(--bg);
  text-align: center;
  transition: background .15s;
}
.social-cell:hover { background: var(--bg-alt); }

.social-name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--net, var(--primary));
}
.social-count { font-size: 17px; font-weight: 800; line-height: 1.2; }
.social-label { font-size: 10px; color: var(--text-muted); }

/* ============ FOOTER ============ */
.site-footer { margin-top: 60px; background: #16181d; color: #d1d5db; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 48px 16px;
}

.footer-title {
  position: relative;
  margin: 0 0 20px;
  padding-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}
.footer-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 44px; height: 3px;
  background: var(--primary);
}

.footer-tagline { font-size: 14px; color: #9ca3af; margin-top: 12px; }

.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 12px; }
.footer-list a { font-size: 15px; color: #d1d5db; transition: color .15s; }
.footer-list a:hover { color: var(--primary); }

.footer-bottom {
  padding: 18px 0;
  font-size: 13px;
  color: #9ca3af;
  border-top: 1px solid #2a2d34;
}

/* ============ TOMBOL MELAYANG ============ */
.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fab {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  transition: transform .15s;
}
.fab:hover { transform: scale(1.08); }

.fab-wa { background: #25d366; }

.fab-top {
  background: var(--primary);
  opacity: 0;
  visibility: hidden;
  transition: .2s;
}
.fab-top.is-visible { opacity: 1; visibility: visible; }

/* ============ MODE GELAP ============ */
body.dark-mode {
  --text: #e8eaed;
  --text-muted: #9aa0a6;
  --bg: #16181d;
  --bg-alt: #202329;
  --border: #2f333b;
}
body.dark-mode .site-header { background: #1c1f26; }
body.dark-mode .icon-btn:hover { background: rgba(255,255,255,.08); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .layout-main { grid-template-columns: 1fr; }
  .col-side { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .topbar-nav { display: none; }
  .topbar-inner { justify-content: center; height: 34px; }
  .topbar-date { font-size: 12px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: grid; }
  .hero-title { font-size: 19px; }
  .hero-body { padding: 18px 14px 40px; }
  .post-list-lg .post-thumb { flex-basis: 110px; }
  .post-list-lg .post-title { font-size: 16px; margin-bottom: 8px; }
  .post-list-lg .post-row { gap: 14px; padding: 16px 0; }
}

@media (min-width: 901px) {
  .menu-toggle { display: none; }
}

/* ============ FONT JOSEFIN SANS: HEADER & JUDUL ============ */
/* Diletakkan di akhir main.css agar menimpa ukuran font di atas */
:root {
  --font-head: "Josefin Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Seluruh area header: topbar, logo teks, menu, tombol Masuk, kolom cari */
.topbar,
.site-header {
  font-family: var(--font-head);
}

/* Semua judul */
h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.post-title,
.side-title,
.widget-title,
.footer-title,
.entry-title {
  font-family: var(--font-head);
  letter-spacing: 0;
}

/* Josefin terlihat lebih kecil dari font biasa, jadi sedikit dibesarkan */
.topbar                   { font-size: 14px; }
.nav-list > li > a        { font-size: 14px; letter-spacing: .6px; }
.hero-title               { font-size: 28px; line-height: 1.2; }
.post-title               { font-size: 17px; }
.post-list-lg .post-title { font-size: 22px; }
.side-title               { font-size: 16px; }
.section-title            { font-size: 19px; }
.btn-login                { padding-top: 2px; }

@media (max-width: 1100px) {
  .nav-list > li > a { font-size: 13px; }
}
@media (max-width: 900px) {
  .topbar { font-size: 13px; }
}
@media (max-width: 600px) {
  .hero-title               { font-size: 21px; }
  .post-list-lg .post-title { font-size: 17px; }
}

/* ============ MENU "LAINNYA" (item yang tidak muat) ============ */
.nav-more > .sub-menu {
  left: auto;
  right: 0;
  max-height: 70vh;
  overflow-y: auto;
}
.nav-more.is-open > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-more .sub-menu > li > a {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}
/* submenu dari item yang dipindah: tampil menjorok, tidak melayang */
.nav-more .sub-menu .sub-menu {
  position: static;
  min-width: 0;
  margin: 0 0 4px 12px;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-more .sub-menu .sub-menu a {
  font-weight: 400;
  text-transform: none;
  font-size: 14px;
  padding: 6px 12px;
}
.nav-more .sub-menu .menu-item-has-children > a::after { display: none; }

/* cadangan: bila JS gagal, menu tidak menimpa logo & tombol */
@media (min-width: 901px) {
  .site-nav { overflow: hidden; }
  .site-nav.nav-ready { overflow: visible; }
}

/* ============ BARIS ATAS: SLIDER + TERPOPULER SEJAJAR ============ */
.layout-top { padding-top: 28px; }
.layout-top + .layout-main { padding-top: 0; }

.top-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  margin-bottom: 36px;
}
.top-row .hero { margin-bottom: 0; }

/* Tinggi kolom kanan mengikuti tinggi slider */
.top-side { position: relative; min-width: 0; }
.top-side .side-block {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.top-side .section-head { flex: 0 0 auto; margin-bottom: 0; }

/* 5 berita dibagi rata dari bawah judul sampai dasar slider */
.top-side .side-list {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.top-side .side-row {
  flex: 1 1 0;
  min-height: 0;
  align-items: center;
  padding: 6px 0;
  overflow: hidden;
}
.top-side .side-title {
  margin-bottom: 4px;
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.top-side .post-meta { white-space: nowrap; overflow: hidden; }
.top-side .side-thumb { flex-basis: 84px; }

@media (max-width: 1100px) {
  .top-row { grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; }
  .top-side .side-thumb { flex-basis: 72px; }
  .top-side .side-title { font-size: 14px; }
}

@media (max-width: 900px) {
  .top-row { grid-template-columns: 1fr; }
  .top-side { display: none; }
}

/* ============ HALAMAN KATEGORI / ARSIP / PENCARIAN ============ */
.archive-head { margin-bottom: 22px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: .5; }

.archive-head .section-head { margin-bottom: 0; }
.archive-head h1.section-title { font-size: 26px; }

.archive-desc {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-muted);
}
.archive-desc p { margin: 0; }

.archive-search { margin-top: 16px; max-width: 520px; }

/* Berita utama arsip memakai gaya slider, tanpa geser */
.archive-lead { margin-bottom: 8px; }
.archive-lead .hero-body { padding-bottom: 24px; }

.post-excerpt {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}
.post-byline .post-meta { font-size: 12px; }

.empty-state {
  padding: 40px 24px;
  text-align: center;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.empty-state p { margin: 0 0 16px; color: var(--text-muted); }
.empty-state .btn-login { margin: 0; }

/* Pagination */
.dtk-pagination { margin: 28px 0 10px; }
.dtk-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.dtk-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background .15s, color .15s, border-color .15s;
}
.dtk-pagination a.page-numbers:hover { color: var(--primary); border-color: var(--primary); }
.dtk-pagination .page-numbers.current {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}
.dtk-pagination .page-numbers.dots { border-color: transparent; }

@media (max-width: 600px) {
  .archive-head h1.section-title { font-size: 21px; }
  .post-excerpt { display: none; }
  .dtk-pagination .prev, .dtk-pagination .next { flex-basis: 100%; }
}

/* ============ HALAMAN BERITA (SINGLE) ============ */
:root { --text-body: #2b2f36; }
body.dark-mode { --text-body: #d5d8dd; }

/* Garis kemajuan membaca */
.read-progress {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px);
  left: 0; right: 0;
  z-index: 1001;
  height: 3px;
  pointer-events: none;
}
.read-progress span {
  display: block;
  height: 100%;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .1s linear;
}
@media (max-width: 600px) { .admin-bar .read-progress { top: 0; } }

.single-post { margin-bottom: 48px; }

/* Kepala artikel */
.entry-header .breadcrumb {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.entry-header .breadcrumb a:last-child { color: var(--primary); }

.entry-title {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
}

.entry-lead {
  margin: 0 0 20px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.entry-author { display: flex; align-items: center; gap: 12px; min-width: 0; }
.entry-author .byline-avatar { width: 44px; height: 44px; }
.entry-author-name { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
.entry-author-name:hover { color: var(--primary); }
.entry-date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.entry-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

/* Gambar utama */
.entry-thumb { margin: 0 0 32px; }
.entry-thumb img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 12px;
}
.entry-thumb figcaption,
.entry-content figcaption,
.entry-content .wp-caption-text {
  margin-top: 10px;
  padding-left: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  border-left: 3px solid var(--border);
}

/* Badan artikel: rel bagikan di kiri (desktop lebar) + isi */
.entry-body { display: grid; grid-template-columns: minmax(0, 1fr); }
.entry-main { min-width: 0; max-width: 720px; }

/* Tombol bagikan */
.share { display: flex; align-items: center; gap: 8px; }
.share-label { display: none; }
.share-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  padding: 0;
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.15); }
.share-btn svg { width: 18px; height: 18px; }
.share-wa { background: #25d366; }
.share-fb { background: #1877f2; }
.share-x  { background: #111; }
.share-tg { background: #229ed9; }
.share-copy { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.share-copy.is-copied { background: var(--primary); color: #fff; border-color: var(--primary); }
.share-copied:not(:empty) {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 9px;
  font-size: 12px;
  white-space: nowrap;
  color: #fff;
  background: #16181d;
  border-radius: 4px;
}
body.dark-mode .share-x { box-shadow: inset 0 0 0 1px #3a3f48; }

.share--rail { display: none; }

@media (min-width: 1200px) {
  .entry-body { grid-template-columns: 44px minmax(0, 1fr); gap: 32px; }
  .share--rail {
    position: sticky;
    top: 96px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .entry-meta .share--inline { display: none; }
}

/* Isi artikel */
.entry-content {
  font-size: 18px;
  line-height: 1.85;
  color: var(--text-body);
  overflow-wrap: break-word;
  text-wrap: pretty;
}
.entry-content > * { margin-top: 0; margin-bottom: 1.35em; }
.entry-content > p:first-child { font-size: 19px; }
.entry-content strong, .entry-content b { color: var(--text); }

.entry-content h2,
.entry-content h3,
.entry-content h4 { color: var(--text); line-height: 1.3; margin-bottom: .6em; }
.entry-content h2 { font-size: 26px; margin-top: 1.7em; }
.entry-content h3 { font-size: 22px; margin-top: 1.5em; }
.entry-content h4 { font-size: 19px; margin-top: 1.4em; }

.entry-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.entry-content a:hover { text-decoration-thickness: 2px; }

.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .5em; padding-left: .2em; }
.entry-content li::marker { color: var(--primary); }

.entry-content img { height: auto; border-radius: 10px; }
.entry-content figure { margin-left: 0; margin-right: 0; }

.entry-content blockquote {
  position: relative;
  margin-left: 0;
  margin-right: 0;
  padding: 22px 24px 22px 64px;
  font-size: 20px;
  line-height: 1.6;
  font-style: normal;
  color: var(--text);
  background: var(--bg-alt);
  border: 0;
  border-radius: 12px;
}
.entry-content blockquote::before {
  content: "\201C";
  position: absolute;
  left: 20px; top: 6px;
  font-family: Georgia, serif;
  font-size: 60px;
  line-height: 1;
  color: var(--primary);
}
.entry-content blockquote p { margin: 0 0 .6em; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; color: var(--text-muted); }

.entry-content hr { border: 0; height: 1px; background: var(--border); margin: 2em 0; }

.entry-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.entry-content th { background: var(--bg-alt); color: var(--text); }

.entry-content iframe, .entry-content video { max-width: 100%; border-radius: 10px; }
.entry-content .wp-block-embed__wrapper iframe,
.entry-content iframe[src*="youtube"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }

.entry-content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.entry-content .alignleft { float: left; margin: .4em 1.4em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .4em 0 1em 1.4em; max-width: 50%; }
.entry-content::after { content: ""; display: table; clear: both; }

.page-links { display: flex; gap: 6px; align-items: center; font-weight: 600; font-size: 15px; }
.page-links a, .page-links > .post-page-numbers {
  display: inline-grid; place-items: center; min-width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: 8px; text-decoration: none;
}
.page-links .current { background: var(--primary); color: #fff; border-color: var(--primary); }

.entry-updated { margin: 0 0 8px; font-size: 13px; font-style: italic; color: var(--text-muted); }

/* Kaki artikel */
.entry-footer { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }

.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.entry-tags a {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-alt);
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.entry-tags a:hover { color: #fff; background: var(--primary); }

.entry-share-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-alt);
  border-radius: 12px;
}
.entry-share-bottom p { margin: 0; font-weight: 700; }

.author-box {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.author-box img { flex: 0 0 auto; width: 64px; height: 64px; }
.author-box-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-muted); }
.author-box-name { font-size: 17px; font-weight: 700; }
.author-box-name:hover { color: var(--primary); }
.author-box p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* Berita terkait */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bg-alt);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-thumb img { transform: scale(1.05); }
.card-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title a:hover { color: var(--primary); }

/* Komentar */
.comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 12px; margin: 2px 0 8px 50px; }
.comment-metadata a { color: var(--text-muted); }
.comment-content { margin-left: 50px; }
.reply { margin-left: 50px; font-size: 13px; font-weight: 600; }
.reply a { color: var(--primary); }
.comment-respond .comment-reply-title { font-size: 19px; margin: 0 0 10px; }
.comment-notes { font-size: 13px; color: var(--text-muted); }
.comment-form label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.comment-form p { margin: 0 0 14px; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-form .submit {
  padding: 11px 22px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-main { max-width: none; }
}
@media (max-width: 600px) {
  .entry-lead { font-size: 17px; }
  .entry-meta { padding: 12px 0; }
  .entry-meta .share--inline { width: 100%; justify-content: flex-start; }
  .entry-thumb { margin-left: -16px; margin-right: -16px; }
  .entry-thumb img { border-radius: 0; }
  .entry-thumb figcaption { margin-left: 16px; margin-right: 16px; }
  .entry-content { font-size: 17px; line-height: 1.8; }
  .entry-content > p:first-child { font-size: 17px; }
  .entry-content h2 { font-size: 22px; }
  .entry-content h3 { font-size: 19px; }
  .entry-content blockquote { padding: 18px 18px 18px 52px; font-size: 18px; }
  .entry-content blockquote::before { left: 14px; font-size: 50px; }
  .entry-content .alignleft, .entry-content .alignright { float: none; margin: 0 0 1em; max-width: 100%; }
  .card-grid { grid-template-columns: 1fr; gap: 18px; }
  .card { display: flex; gap: 14px; align-items: flex-start; }
  .card-thumb { flex: 0 0 120px; margin: 0; }
  .comment-content, .comment-metadata, .reply { margin-left: 0; }
}

/* ============ MARKET DATA ============ */
.market {
  container-type: inline-size;
  margin-bottom: 28px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.market-head {
  padding: 12px 16px;
  font-family: var(--font-head, inherit);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #16181d, #2a2d35);
  border-bottom: 3px solid var(--primary);
}
.market-grid { display: grid; grid-template-columns: 1fr 1.5fr 1fr; }
.market-col { min-width: 0; border-left: 1px solid var(--border); }
.market-col:first-child { border-left: 0; }
.market-col-title {
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.market-col-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 12px;
}
.mk-icon { flex: 0 0 38px; width: 38px; height: 38px; }

.mk-list { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.mk-list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 8px 18px; }
.mk-list dt {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mk-list dd {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mk-chg {
  display: inline-block;
  margin-top: 1px;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mk-chg.is-up   { color: #16a34a; }
.mk-chg.is-down { color: #dc2626; }
.mk-chg.is-flat { color: var(--text-muted); }

.market-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 8px 14px;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.market-foot a { text-decoration: underline; }

/* Sempit (sidebar / HP): kolom disusun ke bawah */
@container (max-width: 620px) {
  /* Tetap memanjang ke samping: kolom bisa digeser */
  .market-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .market-col { scroll-snap-align: start; }
  .market-gold  { min-width: 150px; }
  .market-stocks { min-width: 220px; }
  .market-fx    { min-width: 120px; }
  .market-col-body { justify-content: flex-start; padding: 12px 14px; }
  .market-foot { flex-direction: column; }
}

/* Widget di sidebar: tanpa jarak ganda */
.col-side .widget .market { margin-bottom: 0; }
body.dark-mode .mk-chg.is-up   { color: #4ade80; }
body.dark-mode .mk-chg.is-down { color: #f87171; }

/* Market Data paling atas beranda */
.layout-market { padding-top: 24px; }
.layout-market .market { margin-bottom: 0; }
.layout-market:empty { display: none; }
.layout-market + .layout-top { padding-top: 24px; }
.layout-market + .layout-main { padding-top: 24px; }

/* ============ BERITA TERBARU: MODEL CARD ============ */
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.news-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
}

.news-card-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}
.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.news-card:hover .news-card-thumb img { transform: scale(1.05); }

.news-card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 4px 10px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #fff;
  background: var(--primary);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.news-card-cat:hover { background: var(--primary-dark); color: #fff; }

.news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 16px 18px;
}

.news-card-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-title a::after {           /* seluruh card bisa diklik */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.news-card:hover .news-card-title a { color: var(--primary); }

.news-card-excerpt {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.news-card-meta .byline-avatar { width: 22px; height: 22px; }
.news-card-author {
  max-width: 45%;
  overflow: hidden;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.dark-mode .news-card { background: var(--bg-alt); }
body.dark-mode .news-card:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, .45); }

/* ---- Berita Terbaru: satu kolom, card mendatar ---- */
.news-grid--list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.news-grid--list .news-card { flex-direction: row; }
.news-grid--list .news-card-thumb {
  flex: 0 0 38%;
  max-width: 300px;
  aspect-ratio: auto;
  min-height: 190px;
}
.news-grid--list .news-card-body { padding: 18px 22px; }
.news-grid--list .news-card-title { font-size: 20px; -webkit-line-clamp: 2; margin-bottom: 8px; }
.news-grid--list .news-card-meta { padding-top: 0; border-top: 0; }

/* ============ SLIDER ONE ISSUE ============ */
.layout-carousel { padding-top: 4px; }
.layout-carousel + .layout-main { padding-top: 0; }
.carousel { margin-bottom: 40px; }

.carousel-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
}
.carousel-nav .section-more { padding-bottom: 0; margin-right: 6px; }
.carousel-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
}
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-btn:hover:not(:disabled) { color: #fff; background: var(--primary); border-color: var(--primary); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel.is-static .carousel-btn { display: none; }

.carousel-track {
  --per-view: 4;
  --gap: 20px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  gap: var(--gap);
  padding: 4px 2px 12px;            /* ruang untuk bayangan hover */
  margin: -4px -2px 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 12px; }
.carousel-track > .news-card { scroll-snap-align: start; }
.carousel-track .news-card-title { font-size: 16px; }
.carousel-track .news-card-body { padding: 14px 16px; }

@media (max-width: 1100px) {
  .carousel-track { --per-view: 3; }
}
@media (max-width: 900px) {
  .carousel-track { --per-view: 2; }
}

/* HP */
@media (max-width: 600px) {
  .news-grid--list { gap: 12px; }
  .news-grid--list .news-card { border-radius: 10px; }
  .news-grid--list .news-card:hover { transform: none; }
  .news-grid--list .news-card-thumb { flex: 0 0 118px; min-height: 0; }
  .news-grid--list .news-card-cat { top: 8px; left: 8px; max-width: 102px; padding: 3px 7px; font-size: 9.5px; }
  .news-grid--list .news-card-body { padding: 10px 12px; }
  .news-grid--list .news-card-title { font-size: 15px; -webkit-line-clamp: 3; }
  .news-grid--list .news-card-excerpt,
  .news-grid--list .news-card-meta .byline-avatar,
  .news-grid--list .news-card-meta .news-card-author,
  .news-grid--list .news-card-meta .dot { display: none; }
  .news-grid--list .news-card-meta { font-size: 11.5px; }

  .carousel-track { --per-view: 1.35; --gap: 12px; scroll-padding-left: 2px; }
  .carousel-nav .carousel-btn { display: none; }
  .carousel-track .news-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track { scroll-behavior: auto; }
}

/* ============ SUKA, KOMENTAR, BAGIKAN ============ */
.post-actions {
  position: relative;
  z-index: 2;                 /* di atas area klik card */
  display: flex;
  align-items: center;
  gap: 2px;
}
.news-card-meta { flex-wrap: wrap; }
.news-card-meta .post-actions { margin-left: auto; margin-right: -6px; }

.pa-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 8px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.pa-btn svg { width: 17px; height: 17px; flex: 0 0 auto; transition: transform .15s; }
.pa-btn:hover { color: var(--text); background: var(--bg-alt); }
.pa-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

.pa-like:hover, .pa-like.is-liked { color: #e11d48; }
.pa-like.is-liked svg { fill: currentColor; }
.pa-like.pop svg { animation: dtkHeart .45s ease; }
@keyframes dtkHeart {
  0% { transform: scale(1); }
  35% { transform: scale(1.35); }
  60% { transform: scale(.9); }
  100% { transform: scale(1); }
}
.pa-comment:hover { color: #2563eb; }
.pa-share:hover { color: #16a34a; }

/* Versi halaman berita: tombol besar dengan tulisan */
.post-actions--single {
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 6px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.post-actions--single .pa-btn {
  height: 42px;
  padding: 0 18px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.post-actions--single .pa-btn svg { width: 20px; height: 20px; }
.post-actions--single .pa-count { min-width: 1ch; }
.post-actions--single .pa-label { font-weight: 600; }
.post-actions--single .pa-like.is-liked {
  color: #e11d48;
  background: #ffe4e8;
  border-color: #fecdd6;
}
body.dark-mode .post-actions--single .pa-like.is-liked { background: rgba(225, 29, 72, .15); border-color: rgba(225, 29, 72, .35); }

/* Popup bagikan */
.share-pop {
  position: fixed;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  min-width: 190px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .18);
}
.share-pop[hidden] { display: none; }
.share-pop a,
.share-pop button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  font: inherit;
  font-size: 14px;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.share-pop a:hover, .share-pop button:hover { background: var(--bg-alt); }
.sp-ic { display: inline-grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; color: #fff; border-radius: 50%; }
.sp-copy { color: var(--text); }
.sp-wa   { background: #25d366; }
.sp-fb   { background: #1877f2; }
.sp-x    { background: #111; }
.sp-tg   { background: #229ed9; }
.sp-copy { background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--border); }

.comment-empty { margin: 0 0 18px; color: var(--text-muted); }

@media (max-width: 600px) {
  .news-grid--list .news-card-meta { row-gap: 2px; }
  .news-card .pa-btn { height: 26px; padding: 0 5px; gap: 3px; font-size: 11.5px; }
  .news-card .pa-btn svg { width: 15px; height: 15px; }
  .post-actions--single { gap: 8px; }
  .post-actions--single .pa-btn { flex: 1 1 0; justify-content: center; padding: 0 10px; }
  .post-actions--single .pa-label { display: none; }
}

/* Tombol komentar saat komentar ditutup (halaman berita) */
.pa-comment.is-closed { cursor: default; opacity: .6; }
.pa-comment.is-closed:hover { color: var(--text); background: var(--bg-alt); }

/* ============ PERBAIKAN RESPONSIF HP ============ */
/* Pengaman: tidak ada elemen yang bisa membuat halaman bergeser ke samping */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
img, video, iframe, embed, object { max-width: 100%; }

/* Isi artikel: tautan panjang, kode, dan embed media sosial */
.entry-content { overflow-wrap: anywhere; }
.entry-content pre { max-width: 100%; overflow-x: auto; white-space: pre; }
.entry-content .instagram-media,
.entry-content .twitter-tweet,
.entry-content .tiktok-embed,
.entry-content .fb-post {
  min-width: 0 !important;
  max-width: 100% !important;
}
.entry-content .wp-block-embed,
.entry-content figure { max-width: 100%; }

@media (max-width: 600px) {
  /* Topbar: tanggal tidak boleh melebar */
  .topbar-inner { padding-left: 12px; padding-right: 12px; }
  .topbar-date {
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
  }

  /* Tombol mengambang lebih kecil agar tidak menutupi isi */
  .floating-actions { right: 12px; bottom: 12px; gap: 8px; }
  .fab { width: 42px; height: 42px; }
  .fab svg { width: 19px; height: 19px; }
}

@media (max-width: 480px) {
  .container { padding-left: 12px; padding-right: 12px; }

  /* Header muat di layar 320px */
  .header-inner { column-gap: 8px; }
  .site-brand { flex: 0 1 auto; min-width: 0; }
  .brand-text { display: block; overflow: hidden; font-size: 19px; white-space: nowrap; text-overflow: ellipsis; }
  .site-brand img { max-height: 28px; }
  .header-actions { gap: 0; margin-left: auto; }
  .header-actions .icon-btn { width: 36px; height: 36px; }
  .header-actions .icon-btn svg { width: 19px; height: 19px; }
  .btn-login { height: 30px; margin: 0 2px; padding: 0 11px; font-size: 13px; }

  /* Slider utama: gambar lebih tinggi agar judul tidak terpotong */
  .hero-media { aspect-ratio: 4 / 3; }
  .hero-body { padding: 16px 14px 34px; }
  .hero-title {
    font-size: 17px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-meta { font-size: 12px; }
  .hero-dots { bottom: 12px; }

  /* Judul section + tautan "Lihat lainnya" */
  .section-head { gap: 8px; }
  .section-title { font-size: 16px; }
  .section-more { font-size: 12px; white-space: nowrap; }

  /* Berita Terbaru: card ditumpuk (gambar di atas) supaya judul terbaca utuh */
  .news-grid--list .news-card { flex-direction: column; }
  .news-grid--list .news-card-thumb { flex: none; aspect-ratio: 16 / 9; min-height: 0; max-width: none; }
  .news-grid--list .news-card-cat { top: 10px; left: 10px; max-width: calc(100% - 20px); font-size: 10px; }
  .news-grid--list .news-card-body { padding: 12px 14px; }
  .news-grid--list .news-card-title { font-size: 16px; margin-bottom: 8px; }
  .news-grid--list .news-card-meta { padding-top: 8px; border-top: 1px solid var(--border); }

  /* Slider One Issue: card sedikit lebih lebar */
  .carousel-track { --per-view: 1.2; }

  /* Market Data */
  .market-col-body { gap: 10px; padding: 12px; }
  .mk-icon { flex-basis: 32px; width: 32px; height: 32px; }
  .mk-list-grid { gap: 8px 14px; }
  .mk-list dd { font-size: 14px; }

  /* Halaman berita */
  .entry-title { font-size: 23px; }
  .entry-thumb { margin-left: -12px; margin-right: -12px; }
  .entry-thumb figcaption { margin-left: 12px; margin-right: 12px; }
  .entry-meta .share--inline { gap: 6px; }
  .entry-meta .share--inline .share-btn { width: 34px; height: 34px; }
  .post-actions--single .pa-btn { padding: 0 6px; font-size: 13px; }
  .entry-share-bottom { padding: 14px; }
  .entry-share-bottom .share { flex-wrap: wrap; gap: 6px; }
  .entry-share-bottom .share-btn { width: 34px; height: 34px; }
  .card-thumb { flex-basis: 96px; }

  /* Pagination & footer */
  .dtk-pagination .page-numbers { min-width: 36px; height: 36px; padding: 0 9px; font-size: 13px; }
  .footer-grid { gap: 26px; padding: 36px 12px; }
}

/* ============ MENU HP: PANEL GESER ============ */
.nav-drawer-head,
.nav-drawer-search,
.nav-overlay,
.sub-toggle { display: none; }

@media (max-width: 900px) {
  .site-nav,
  .site-nav.is-open {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    width: min(86vw, 340px);
    max-width: none;
    overflow: hidden;
    background: var(--bg);
    border: 0;
    box-shadow: -14px 0 36px rgba(0, 0, 0, .2);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .28s ease, visibility 0s linear .28s;
  }
  .site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .28s ease;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: block;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility 0s linear .28s;
  }
  .nav-overlay.is-visible { opacity: 1; visibility: visible; transition: opacity .28s ease; }
  html.nav-open, html.nav-open body { overflow: hidden; }

  .nav-drawer-head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: 8px 8px 8px 18px;
    border-bottom: 1px solid var(--border);
  }
  .nav-drawer-title {
    font-family: var(--font-head, inherit);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
  }
  .nav-drawer-search {
    display: block;
    flex: 0 0 auto;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
  }
  .nav-drawer-search .search-field { padding: 10px 12px; font-size: 14px; }

  .site-nav .nav-list {
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    max-height: none;
    padding: 4px 0 28px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-nav .nav-list > li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid var(--border);
  }
  .site-nav .nav-list > li > a {
    flex: 1 1 auto;
    min-width: 0;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: .5px;
    border-bottom: 0;
  }
  .site-nav .nav-list > li > a:hover { border-bottom: 0; background: var(--bg-alt); }
  .site-nav .nav-list > li.current-menu-item > a,
  .site-nav .nav-list > li.current-menu-ancestor > a {
    color: var(--primary);
    box-shadow: inset 3px 0 0 var(--primary);
  }
  .site-nav .site-header.is-compact .nav-list > li > a,
  .site-header.is-compact .site-nav .nav-list > li > a { line-height: 1.3; padding: 14px 18px; }

  .sub-toggle {
    display: grid;
    flex: 0 0 48px;
    place-items: center;
    height: 46px;
    padding: 0;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    border-left: 1px solid var(--border);
    cursor: pointer;
  }
  .sub-toggle svg { width: 18px; height: 18px; transition: transform .2s ease; }
  .is-sub-open > .sub-toggle { color: var(--primary); }
  .is-sub-open > .sub-toggle svg { transform: rotate(180deg); }

  .site-nav .nav-list .sub-menu {
    display: none;
    flex-basis: 100%;
    position: static;
    min-width: 0;
    margin: 0;
    padding: 4px 0 8px;
    background: var(--bg-alt);
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav .nav-list .is-sub-open > .sub-menu { display: block; }
  .site-nav .nav-list .sub-menu a {
    padding: 10px 18px 10px 34px;
    font-size: 14px;
    border-radius: 0;
  }
  .site-nav .nav-list .sub-menu .current-menu-item > a { color: var(--primary); }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav, .nav-overlay { transition: none !important; }
}

/* ============ HEADER & NAVIGASI BAWAH MODE HP ============ */
.bottom-nav, .nav-drawer-foot { display: none; }

@media (max-width: 900px) {
  /* Navigasi bawah */
  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;                      /* di bawah panel menu */
    display: grid;
    grid-template-columns: repeat(var(--bn-cols, 4), minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--bg);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, .06);
  }
  .bn-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 64px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    -webkit-tap-highlight-color: transparent;
  }
  .bn-item svg { width: 23px; height: 23px; }
  .bottom-nav[style*="cols: 5"] .bn-item { font-size: 11px; }
  .bn-item span { max-width: 100%; padding: 0 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .bn-item:hover, .bn-item:active { color: var(--text); }
  .bn-item.is-active { color: var(--primary); }
  .bn-item.is-active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
    transform: translateX(-50%);
  }

  /* Ruang agar isi & footer tidak tertutup navigasi bawah */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .floating-actions { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  #terbaru { scroll-margin-top: 80px; }

  /* Mode gelap di bagian bawah panel menu */
  .nav-drawer-foot {
    display: block;
    flex: 0 0 auto;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
  }
  .nav-dark {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
  }
  .nav-dark svg { width: 19px; height: 19px; }
}

/* ============ HEADER HP SELALU MENEMPEL DI ATAS (tanggal + header) ============ */
@media (max-width: 900px) {
  :root {
    --mobile-topbar-h: 30px;
    --mobile-header-h: 57px;
    --mobile-top: 0px;
  }

  .topbar {
    position: fixed;
    top: var(--mobile-top);
    left: 0;
    right: 0;
    z-index: 199;              /* di bawah header agar panel menu bisa menutupinya */
    height: var(--mobile-topbar-h);
    overflow: hidden;
  }
  .topbar-inner,
  body.is-shrunk .topbar-inner { height: var(--mobile-topbar-h); }
  body.is-shrunk .topbar { height: var(--mobile-topbar-h); opacity: 1; }

  .site-header,
  .site-header.is-compact {
    position: fixed;
    top: calc(var(--mobile-top) + var(--mobile-topbar-h));
    left: 0;
    right: 0;
    z-index: 200;
    animation: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  }
  body { padding-top: calc(var(--mobile-topbar-h) + var(--mobile-header-h)); }
  .header-shell { min-height: 0 !important; }
  #terbaru { scroll-margin-top: calc(var(--mobile-topbar-h) + var(--mobile-header-h) + 16px); }

  /* Market Data versi ringkas */
  .market { border-radius: 10px; margin-bottom: 0; }
  .market-head { padding: 7px 12px; font-size: 12px; letter-spacing: .8px; border-bottom-width: 2px; }
  .market-col-title { padding: 5px 10px; font-size: 11px; }
  .market-col-body { gap: 0; padding: 7px 10px; }
  .market .mk-icon { display: none; }
  .mk-list { gap: 4px; }
  .mk-list-grid { gap: 4px 14px; }
  .mk-list > div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
  .mk-list dt { flex-basis: 100%; font-size: 9.5px; letter-spacing: .3px; }
  .mk-list dd { font-size: 13px; }
  .mk-chg { margin-top: 0; font-size: 10.5px; }
  .market-foot { gap: 0 8px; padding: 4px 10px; font-size: 9.5px; flex-direction: row; }
  .market-foot > span:first-child { display: none; }
  .market-foot > span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .layout-market { padding-top: 14px; }
}

/* Admin bar WordPress */
@media (max-width: 600px) {
  .admin-bar { --mobile-top: 0px; }
}
@media (min-width: 601px) and (max-width: 782px) {
  .admin-bar { --mobile-top: var(--wp-admin--admin-bar--height, 46px); }
}
@media (min-width: 783px) and (max-width: 900px) {
  .admin-bar { --mobile-top: var(--wp-admin--admin-bar--height, 32px); }
}

/* ============ MENU BAWAH MENGAMBANG (warna logo) ============ */
@media (max-width: 900px) {
  .bottom-nav {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 4px;
    padding: 6px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: 0;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(154, 0, 7, .35), 0 2px 6px rgba(0, 0, 0, .12);
  }
  .bn-item {
    height: 52px;
    gap: 3px;
    color: rgba(255, 255, 255, .78);
    border-radius: 14px;
    transition: background .2s ease, color .2s ease;
  }
  .bn-item svg { width: 21px; height: 21px; }
  .bn-item:hover,
  .bn-item:active { color: #fff; background: rgba(255, 255, 255, .10); }
  .bn-item.is-active {
    color: var(--primary);
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .15);
  }
  .bn-item.is-active::before { display: none; }

  body { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .floating-actions { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }

  body.dark-mode .bn-item.is-active { color: var(--primary); background: #fff; }
}
@media (max-width: 360px) {
  .bottom-nav { left: 8px; right: 8px; gap: 2px; padding: 5px; border-radius: 18px; }
  .bn-item { font-size: 10.5px; }
}

/* Card di halaman kategori/pencarian: jarak dari berita utama */
.archive-lead + .news-grid--list { margin-top: 22px; }
.news-card.sticky { border-color: var(--primary); }

/* ============ UKURAN TULISAN SAAT MEMBACA ============ */
.reader-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin: 0 0 26px;
  padding: 6px 6px 6px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.entry-thumb + .reader-tools { margin-top: -14px; }
.reader-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.reader-label svg { width: 18px; height: 18px; }
.reader-btns { display: flex; align-items: center; gap: 6px; }
.reader-btn,
.reader-reset {
  display: inline-grid;
  place-items: center;
  height: 36px;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
}
.reader-btn { grid-auto-flow: column; gap: 1px; width: 40px; line-height: 1; }
.reader-btn--down { font-size: 13px; }
.reader-btn--up { font-size: 18px; }
.reader-btn span { font-size: .7em; }
.reader-reset { padding: 0 12px; font-size: 12.5px; }
.reader-btn:hover:not(:disabled),
.reader-reset:hover:not(:disabled) { color: #fff; background: var(--primary); border-color: var(--primary); }
.reader-btn:disabled,
.reader-reset:disabled { opacity: .4; cursor: default; }
.reader-value {
  min-width: 44px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Isi berita mengikuti skala tulisan */
.entry-content { font-size: calc(18px * var(--reader-scale, 1)); }
.entry-content > p:first-child { font-size: calc(19px * var(--reader-scale, 1)); }
.entry-content h2 { font-size: calc(26px * var(--reader-scale, 1)); }
.entry-content h3 { font-size: calc(22px * var(--reader-scale, 1)); }
.entry-content h4 { font-size: calc(19px * var(--reader-scale, 1)); }
.entry-content blockquote { font-size: calc(20px * var(--reader-scale, 1)); }
.entry-content table { font-size: calc(15px * var(--reader-scale, 1)); }
.entry-lead { font-size: calc(19px * var(--reader-scale, 1)); }

@media (max-width: 600px) {
  .entry-content { font-size: calc(17px * var(--reader-scale, 1)); }
  .entry-content > p:first-child { font-size: calc(17px * var(--reader-scale, 1)); }
  .entry-content h2 { font-size: calc(22px * var(--reader-scale, 1)); }
  .entry-content h3 { font-size: calc(19px * var(--reader-scale, 1)); }
  .entry-content blockquote { font-size: calc(18px * var(--reader-scale, 1)); }
  .entry-lead { font-size: calc(17px * var(--reader-scale, 1)); }
  .entry-thumb + .reader-tools { margin-top: -16px; }
}
@media (max-width: 380px) {
  .reader-label { font-size: 0; gap: 0; }
  .reader-label svg { width: 20px; height: 20px; }
}

/* ============ MENU BAWAH MENGAMBANG: VERSI KECIL ============ */
@media (max-width: 900px) {
  .bottom-nav {
    left: 50%;
    right: auto;
    width: calc(100% - 28px);
    max-width: 380px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 2px;
    padding: 4px;
    border-radius: 16px;
    transform: translateX(-50%);
  }
  .bn-item {
    height: 42px;
    gap: 1px;
    font-size: 9.5px;
    border-radius: 12px;
  }
  .bn-item svg { width: 18px; height: 18px; }
  .bottom-nav[style*="cols: 5"] .bn-item { font-size: 9px; }

  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .floating-actions { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 360px) {
  .bottom-nav { width: calc(100% - 16px); padding: 3px; }
  .bn-item { font-size: 9px; }
}

/* ============ UKURAN FONT: SLIDER ============ */
.reader-tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 26px;
  padding: 10px 28px 12px;
  background: var(--bg-alt);
  border: 0;
  border-radius: 10px;
}
.entry-thumb + .reader-tools { margin-top: -10px; }
.reader-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: default;
}
.reader-slider { display: flex; align-items: center; gap: 10px; }
.reader-end { font-size: 12.5px; color: var(--text); }

.reader-range {
  --fill: 33.33%;
  width: 220px;
  max-width: 50vw;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.reader-range:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 6px; }
.reader-range::-webkit-slider-runnable-track {
  height: 5px;
  background: linear-gradient(to right, var(--primary) 0 var(--fill), rgba(211, 47, 47, .28) var(--fill) 100%);
  border-radius: 999px;
}
.reader-range::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7.5px;
  background: var(--primary);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  -webkit-appearance: none;
  appearance: none;
  transition: transform .15s;
}
.reader-range:active::-webkit-slider-thumb { transform: scale(1.15); }
.reader-range::-moz-range-track {
  height: 5px;
  background: rgba(211, 47, 47, .28);
  border-radius: 999px;
}
.reader-range::-moz-range-progress {
  height: 5px;
  background: var(--primary);
  border-radius: 999px;
}
.reader-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--primary);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

@media (max-width: 380px) {
  .reader-tools { padding: 8px 16px 10px; }
  .reader-range { width: 170px; }
  .reader-label { font-size: 12.5px; gap: 0; }
}

/* ============ KEPALA BERITA: KATEGORI KOTAK MERAH + AKSI DI SAMPING PENULIS ============ */
.entry-cat {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .6px;
  line-height: 1.3;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary);
  border-radius: 4px;
  transition: background .15s;
}
.entry-cat:hover { color: #fff; background: var(--primary-dark); }

.entry-meta { flex-wrap: nowrap; }
.entry-meta .entry-author { flex: 1 1 auto; }
.post-actions--meta {
  flex: 0 0 auto;
  gap: 4px;
  margin-left: auto;
}
.post-actions--meta .pa-btn {
  height: 38px;
  padding: 0 11px;
  font-size: 13.5px;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.post-actions--meta .pa-btn svg { width: 19px; height: 19px; }
.post-actions--meta .pa-like.is-liked { color: #e11d48; background: #ffe4e8; border-color: #fecdd6; }
body.dark-mode .post-actions--meta .pa-like.is-liked { background: rgba(225, 29, 72, .15); border-color: rgba(225, 29, 72, .35); }

@media (max-width: 600px) {
  .entry-cat { margin-bottom: 10px; font-size: 11px; }
  /* Tetap sebaris: penulis di kiri, suka/komentar/bagikan di kanan */
  .entry-meta { flex-wrap: nowrap; gap: 8px; }
  .entry-meta .entry-author { min-width: 0; gap: 8px; }
  .entry-author .byline-avatar { width: 36px; height: 36px; flex: 0 0 36px; }
  .entry-author-text { min-width: 0; }
  .entry-author-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
  .entry-date { column-gap: 6px; row-gap: 0; font-size: 11.5px; }
  .entry-date .entry-dot { display: none; }
  .entry-date > span:last-child { flex-basis: 100%; }
  .post-actions--meta { gap: 0; margin-right: -4px; }
  .post-actions--meta .pa-btn { height: 34px; padding: 0 5px; gap: 3px; font-size: 12px; background: transparent; border-color: transparent; }
  .post-actions--meta .pa-btn svg { width: 18px; height: 18px; }
  .post-actions--meta .pa-like.is-liked { background: transparent; border-color: transparent; }
}

/* Aksi di akhir artikel: sama seperti di samping penulis */
.entry-actions-bottom {
  display: flex;
  justify-content: flex-start;
  margin: 26px 0 4px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.entry-actions-bottom .post-actions--meta { margin-left: 0; }
@media (max-width: 600px) {
  .entry-actions-bottom .post-actions--meta { margin-left: -5px; }
}

/* ============ KOMENTAR (gaya ringkas) ============ */
.comments-box { margin: 0 0 44px; }
.comments-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
}
.comments-title span { font-size: .8em; color: var(--text-muted); }

.comment-respond { margin: 0; }
.comment-form.cf {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 48px;
  column-gap: 14px;
  row-gap: 10px;
  align-items: start;
}
.cf .cf-row { display: contents; }
.cf .cf-avatar { grid-column: 1; grid-row: 1; }
.cf .cf-avatar img { display: block; width: 40px; height: 40px; border-radius: 50%; }
.cf .cf-field { grid-column: 2; grid-row: 1; }
.cf textarea {
  display: block;
  width: 100%;
  min-height: 124px;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  resize: vertical;
  transition: border-color .15s, box-shadow .15s;
}
.cf textarea::placeholder, .cf input::placeholder { color: #9ca3af; }
.cf textarea:focus, .cf input:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, .12);
}
.cf .form-submit {
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  margin: 0;
}
.cf .cf-send {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(211, 47, 47, .3);
  transition: background .15s, transform .15s;
}
.cf .cf-send:hover { background: var(--primary-dark); transform: translateY(-1px); }
.cf .cf-send svg { width: 20px; height: 20px; margin-left: -2px; }

.cf .comment-form-author,
.cf .comment-form-email,
.cf .comment-form-url,
.cf .comment-form-cookies-consent {
  grid-column: 2;
  margin: 0;
}
.cf input[type="text"],
.cf input[type="email"],
.cf input[type="url"] {
  width: 100%;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.cf .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-muted); }
.cf .comment-form-cookies-consent label { display: inline; margin: 0; font-weight: 400; }
.cf-collapsed .comment-form-author,
.cf-collapsed .comment-form-email,
.cf-collapsed .comment-form-url,
.cf-collapsed .comment-form-cookies-consent { display: none; }

.comment-respond #reply-title { grid-column: 1 / -1; margin: 0 0 8px; font-size: 15px; }
.comment-respond #reply-title small { margin-left: 8px; font-size: 13px; }
.comment-respond #reply-title small a { color: var(--primary); }

.must-log-in, .comments-closed {
  margin: 0;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-radius: 8px;
}
.must-log-in a { font-weight: 700; color: var(--primary); }

.comments-box .comment-list { margin-top: 22px; }

@media (max-width: 600px) {
  .comment-form.cf { grid-template-columns: 34px minmax(0, 1fr) 42px; column-gap: 10px; }
  .cf .cf-avatar img { width: 34px; height: 34px; }
  .cf textarea { min-height: 104px; padding: 12px; font-size: 14.5px; }
  .cf .cf-send { width: 40px; height: 40px; }
  .cf .comment-form-author,
  .cf .comment-form-email,
  .cf .comment-form-url,
  .cf .comment-form-cookies-consent { grid-column: 2 / 4; }
}

/* ============ BERITA TERKAIT: 3 CARD + SLIDER ============ */
.related .related-list { margin-bottom: 26px; }
.related-carousel { margin-bottom: 0; }
.related-carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.related-carousel-title {
  font-family: var(--font-head, inherit);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.related-carousel .carousel-nav { padding-bottom: 0; }
.related-carousel .carousel-track { --per-view: 3; --gap: 16px; }
.related-carousel .news-card-title { font-size: 15px; }

@media (max-width: 900px) {
  .related-carousel .carousel-track { --per-view: 2.2; }
}
@media (max-width: 600px) {
  .related-carousel .carousel-track { --per-view: 1.35; --gap: 12px; }
}

/* ============ BERITA TERKAIT UKURAN KECIL ============ */
.related .section-head .carousel-nav { padding-bottom: 8px; }
.related .section-head .carousel-nav .section-more { padding-bottom: 0; }

/* 3 card ke bawah: kecil & mendatar di semua layar */
.related-list.is-compact { gap: 10px; margin-bottom: 18px; }
.related-list.is-compact .news-card { flex-direction: row; border-radius: 10px; }
.related-list.is-compact .news-card:hover { transform: none; }
.related-list.is-compact .news-card-thumb {
  flex: 0 0 120px;
  max-width: 120px;
  aspect-ratio: auto;
  min-height: 92px;
}
.related-list.is-compact .news-card-cat { display: none; }
.related-list.is-compact .news-card-body { padding: 10px 12px; }
.related-list.is-compact .news-card-title {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}
.related-list.is-compact .news-card-excerpt,
.related-list.is-compact .news-card-meta .byline-avatar,
.related-list.is-compact .news-card-meta .news-card-author,
.related-list.is-compact .news-card-meta .dot { display: none; }
.related-list.is-compact .news-card-meta { padding-top: 0; border-top: 0; font-size: 11.5px; }
.related-list.is-compact .pa-btn { height: 24px; padding: 0 5px; gap: 3px; font-size: 11px; }
.related-list.is-compact .pa-btn svg { width: 14px; height: 14px; }

/* 5 card ke samping: kecil */
.related-track { --per-view: 4; --gap: 12px; }
.related-track .news-card { border-radius: 10px; }
.related-track .news-card-cat { top: 8px; left: 8px; padding: 2px 7px; font-size: 9.5px; }
.related-track .news-card-body { padding: 9px 10px; }
.related-track .news-card-title { margin-bottom: 6px; font-size: 13.5px; line-height: 1.35; -webkit-line-clamp: 2; }
.related-track .news-card-meta { padding-top: 6px; font-size: 11px; }
.related-track .pa-btn { height: 22px; padding: 0 4px; gap: 2px; font-size: 10.5px; }
.related-track .pa-btn svg { width: 13px; height: 13px; }

@media (max-width: 1100px) {
  .related-track { --per-view: 3; }
}
@media (max-width: 600px) {
  .related-track { --per-view: 2.3; --gap: 10px; }
  .related-list.is-compact .news-card-thumb { flex-basis: 104px; max-width: 104px; min-height: 84px; }
  .related-list.is-compact .news-card-title { font-size: 14px; }
}
@media (max-width: 480px) {
  .related-list.is-compact .news-card { flex-direction: row; }
  .related-list.is-compact .news-card-thumb { aspect-ratio: auto; }
  .related-list.is-compact .news-card-meta { padding-top: 0; border-top: 0; }
  .related-track .pa-btn { display: none; }
}
.related.is-static .carousel-btn { display: none; }

/* Berita terkait: 3 card bergeser bersamaan */
.related-pages { --per-view: 1; --gap: 16px; padding-top: 2px; padding-bottom: 4px; }
.related-pages .related-page { margin-bottom: 0; align-content: start; }
@media (max-width: 600px) {
  .related-pages { --per-view: 1; --gap: 12px; }
  .related .section-head .carousel-nav .carousel-btn { display: grid; width: 30px; height: 30px; }
}
.related-pages > .related-page { scroll-snap-align: start; }

/* ============ TOPIK (tag) ============ */
.entry-topics { margin: 4px 0 6px; }
.entry-topics-title {
  margin: 0 0 12px;
  font-family: inherit;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
}
.entry-topics .entry-tags { gap: 10px; }
.entry-topics .entry-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 20px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  background: #ececec;
  border: 0;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.entry-topics .entry-tags a:hover { color: #fff; background: var(--primary); }
body.dark-mode .entry-topics .entry-tags a { background: var(--bg-alt); }

@media (max-width: 600px) {
  .entry-topics-title { font-size: 17px; }
  .entry-topics .entry-tags { gap: 8px; }
  .entry-topics .entry-tags a { min-height: 38px; padding: 7px 16px; font-size: 14px; }
}

/* ============ STRIP "SUMBER UTAMA DI GOOGLE" (di atas foto) ============ */
.gsource-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: -8px 0 18px;
  padding: 6px 6px 6px 12px;
  color: var(--text);
  background: #f1f3f4;
  border: 1px solid #e3e6ea;
  border-radius: 999px;
  transition: background .15s, border-color .15s;
}
.gsource-strip:hover { background: #e8f0fe; border-color: #c6dafc; color: var(--text); }
.gsource-strip .gsource-logo { flex: 0 0 20px; width: 20px; height: 20px; }
.gsource-strip .gsource-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.gsource-strip .gsource-short { display: none; }
.gsource-strip .gsource-btn {
  flex: 0 0 auto;
  max-width: none;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  background: #1a73e8;
  border-radius: 999px;
}
.gsource-strip:hover .gsource-btn { background: #1557b0; }
body.dark-mode .gsource-strip { background: var(--bg-alt); border-color: var(--border); }

@media (max-width: 700px) {
  .gsource-strip .gsource-long { display: none; }
  .gsource-strip .gsource-short { display: inline; }
}
@media (max-width: 600px) {
  .gsource-strip { margin: -12px 0 14px; gap: 8px; padding: 5px 5px 5px 10px; }
  .gsource-strip .gsource-logo { flex-basis: 18px; width: 18px; height: 18px; }
  .gsource-strip .gsource-text { font-size: 12px; }
  .gsource-strip .gsource-btn { padding: 5px 11px; font-size: 11.5px; }
}
.gsource-strip .gsource-logo { display: block; }

/* Kolom isi tidak boleh melebar karena konten di dalamnya */
.col-content, .col-side { min-width: 0; }
@media (max-width: 900px) { .layout-main { grid-template-columns: minmax(0, 1fr); } }

/* Strip Google: sedikit lebih ramping, sedikit lebih tinggi */
.gsource-strip {
  width: auto;
  max-width: 560px;
  margin: -6px auto 20px;
  padding: 9px 8px 9px 16px;
  gap: 12px;
}
.gsource-strip .gsource-text { font-size: 14px; }
.gsource-strip .gsource-btn { padding: 7px 16px; font-size: 13px; }
.gsource-strip .gsource-logo { flex-basis: 22px; width: 22px; height: 22px; }

@media (max-width: 600px) {
  .gsource-strip {
    max-width: calc(100% - 24px);
    margin: -10px auto 16px;
    padding: 8px 6px 8px 12px;
    gap: 8px;
  }
  .gsource-strip .gsource-text { font-size: 12.5px; }
  .gsource-strip .gsource-btn { padding: 6px 12px; font-size: 12px; }
  .gsource-strip .gsource-logo { flex-basis: 19px; width: 19px; height: 19px; }
}
@media (max-width: 600px) {
  /* Teks boleh 2 baris agar terbaca utuh */
  .gsource-strip { border-radius: 16px; }
  .gsource-strip .gsource-text { white-space: normal; line-height: 1.35; }
}

/* ============ BACA JUGA DI TENGAH ARTIKEL ============ */
.entry-content .read-also {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 1.6em 0;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  border-radius: 0 10px 10px 0;
}
.read-also-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .6px;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--primary);
}
.entry-content .read-also-link {
  font-family: var(--font-head, inherit);
  font-size: calc(17px * var(--reader-scale, 1));
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
}
.entry-content .read-also-link:hover { color: var(--primary); text-decoration: underline; }

@media (max-width: 600px) {
  .entry-content .read-also { margin: 1.4em 0; padding: 10px 12px; }
  .entry-content .read-also-link { font-size: calc(15.5px * var(--reader-scale, 1)); }
}

/* Strip Google di bawah keterangan foto */
.entry-thumb + .gsource-strip { margin-top: -14px; }
.gsource-strip + .reader-tools { margin-top: 0; }

/* ============ IKLAN DI ATAS BERITA TERBARU (kartu geser) ============ */
.adbox {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0 0 24px;
  background: none;
  border: 0;
}
.adbox-label {
  order: 3;
  position: static;
  margin-top: 6px;
  padding: 0;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border-radius: 0;
}
.adbox-track {
  order: 1;
  display: flex;
  gap: 10px;
  padding: 2px 0 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.adbox-track::-webkit-scrollbar { display: none; }

.adslide {
  flex: 0 0 86%;                 /* iklan kiri & kanan terlihat sedikit */
  min-width: 0;
  line-height: 0;
  text-align: center;
  scroll-snap-align: center;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .10);
}
.adbox:not(.has-many) .adslide { flex-basis: 100%; }
.adbox:not(.has-many) .adbox-track { gap: 0; }
.adslide img { display: block; width: 100%; height: auto; border-radius: 0; }
.adslide iframe, .adslide ins { max-width: 100%; }
.adslide .widget-title { display: none; }

.adbox-dots {
  order: 2;
  position: static;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  transform: none;
}
.adbox-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  background: var(--border);
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
  transition: width .2s, background .2s;
}
.adbox-dots button.is-active { width: 16px; border-radius: 4px; background: var(--primary); }

@media (max-width: 600px) {
  .adbox { margin-bottom: 18px; }
  .adslide { flex-basis: 88%; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .adbox-track { scroll-behavior: auto; }
}

/* ============ IKON DI MENU UTAMA ============ */
.nav-ic { display: none; }

@media (max-width: 900px) {
  .site-nav .nav-list > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .site-nav .nav-list .nav-ic {
    display: inline-grid;
    flex: 0 0 22px;
    place-items: center;
    width: 22px;
    height: 22px;
    color: var(--primary);
  }
  .site-nav .nav-list .nav-ic svg { width: 19px; height: 19px; }
  .site-nav .nav-list > li.current-menu-item > a .nav-ic { color: var(--primary); }
  .site-nav .nav-list .sub-menu .nav-ic { display: none; }
  .site-nav .nav-list .nav-tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* ============ SEMUA KATEGORI DI PANEL MENU HP ============ */
.nav-cats { display: none; }

@media (max-width: 900px) {
  .site-nav .nav-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-nav .nav-list {
    flex: none;
    max-height: none;
    overflow: visible;
    padding: 4px 0 0;
  }

  .nav-cats { display: block; padding-bottom: 20px; }
  .nav-cats-title {
    display: block;
    padding: 16px 18px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .nav-list-cats > li > a {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
  }
  .nav-list-cats .nav-ic { color: var(--text-muted); }
  .nav-list-cats > li.current-menu-item > a .nav-ic { color: var(--primary); }
  .nav-count {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-alt);
    border-radius: 999px;
  }
}

/* ============ IKON MENU DI DESKTOP ============ */
@media (min-width: 901px) {
  .site-header .nav-list > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .site-header .nav-list .nav-ic {
    display: inline-grid;
    flex: 0 0 15px;
    place-items: center;
    width: 15px;
    height: 15px;
    color: var(--text-muted);
    transition: color .15s;
  }
  .site-header .nav-list .nav-ic svg { width: 15px; height: 15px; }
  .site-header .nav-list > li > a:hover .nav-ic,
  .site-header .nav-list > li.current-menu-item > a .nav-ic,
  .site-header .nav-list > li.current-menu-ancestor > a .nav-ic { color: var(--primary); }

  /* Ikon juga di dropdown "Lainnya" */
  .nav-more .sub-menu > li > a { display: flex; align-items: center; gap: 8px; }
  .nav-more .sub-menu .nav-ic {
    display: inline-grid;
    flex: 0 0 16px;
    place-items: center;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
  }
  .nav-more .sub-menu .nav-ic svg { width: 16px; height: 16px; }
}

/* Layar laptop kecil: ikon disembunyikan agar menu tetap muat */
@media (min-width: 901px) and (max-width: 1150px) {
  .site-header .nav-list > li > a .nav-ic { display: none; }
}

/* ============ TOMBOL TRENDING DI TENGAH MENU BAWAH ============ */
@media (max-width: 900px) {
  .bottom-nav { overflow: visible; }
  .bn-item.bn-center {
    position: relative;
    justify-content: center;
    gap: 0;
    color: #fff;
  }
  .bn-item.bn-center svg {
    width: 24px;
    height: 24px;
    margin: -20px 0 0;
    padding: 10px;
    box-sizing: content-box;
    color: #fff;
    background: linear-gradient(135deg, #f0483f, var(--primary));
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .28), 0 0 0 3px #fff;
    transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  }
  .bn-item.bn-center span {
    margin-top: 3px;
    font-weight: 700;
    color: #fff;
  }
  .bn-item.bn-center:active svg { transform: scale(.94); }
  .bn-item.bn-center.is-active { background: transparent; color: #fff; }
  .bn-item.bn-center.is-active svg {
    color: var(--primary);
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .3), 0 0 0 3px rgba(255, 255, 255, .55);
  }
  .bn-item.bn-center::before { display: none; }
}

/* ============ ALAT BACA DI HALAMAN BERITA ============ */
.atools { margin: 0 0 24px; }
.atools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.atool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.atool:hover { border-color: var(--primary); }
.atool.is-open {
  background: rgba(211, 47, 47, .06);
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(211, 47, 47, .12);
}
.atool-ic {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--primary);
  background: var(--bg-alt);
  border-radius: 50%;
}
.atool.is-open .atool-ic { color: #fff; background: var(--primary); }
.atool-ic svg { width: 22px; height: 22px; }
.atool-label { display: block; }

.atool-panel {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.atool-panel[hidden] { display: none; }
.atool-panel .reader-tools { width: 100%; max-width: none; margin: 0; padding: 0; background: none; }

/* Dengarkan berita */
.voice-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.voice-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.voice-btn svg { width: 16px; height: 16px; }
.voice-btn:hover:not(:disabled) { background: var(--primary-dark); }
.voice-stop { color: var(--text); background: var(--bg); border: 1px solid var(--border); }
.voice-stop:hover:not(:disabled) { background: var(--bg-alt); }
.voice-btn:disabled { opacity: .5; cursor: default; }
.voice-status { font-size: 13px; color: var(--text-muted); }

/* Bahasa */
.lang-box { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.lang-chip:hover { color: #fff; background: var(--primary); border-color: var(--primary); }
.lang-chip.is-active { color: #fff; background: var(--primary); border-color: var(--primary); }
.lang-note { flex-basis: 100%; margin: 4px 0 0; font-size: 12px; color: var(--text-muted); }

/* Sumber utama Google */
.gsource-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.gsource-box p { flex: 1 1 220px; margin: 0; font-size: 14px; line-height: 1.5; }
.gsource-box .gsource-btn {
  flex: 0 0 auto;
  display: inline-flex;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #1a73e8;
  border-radius: 8px;
}
.gsource-box .gsource-btn:hover { color: #fff; background: #1557b0; }

@media (max-width: 600px) {
  .atools-grid { gap: 8px; }
  .atool { padding: 10px 4px 8px; font-size: 11px; gap: 6px; }
  .atool-ic { width: 38px; height: 38px; }
  .atool-ic svg { width: 20px; height: 20px; }
  .atool-panel { padding: 12px; }
  .voice-btn, .lang-chip, .gsource-box .gsource-btn { padding: 8px 14px; font-size: 13px; }
}
@media (max-width: 360px) {
  .atool-label { font-size: 10px; }
}

/* Kode bahasa (pengganti emoji bendera yang tidak tampil di Windows) */
.lang-chip .lang-code {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 20px;
  padding: 0 5px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--primary);
  background: rgba(211, 47, 47, .12);
  border-radius: 5px;
}
.lang-chip:hover .lang-code,
.lang-chip.is-active .lang-code { color: var(--primary); background: #fff; }
.lang-chip .lang-name { line-height: 1.2; }

/* ============ IKLAN DALAM ARTIKEL (diam, teks lewat di atasnya) ============ */
.entry-content .adart {
  --adw: 320px;
  --adh: 400px;                       /* 4:5 */
  position: relative;
  display: block;
  clear: both;
  width: var(--adw);
  height: var(--adh);
  margin: 1.8em auto;
  padding: 0;
  clip-path: inset(0);                /* iklan hanya terlihat di dalam kotak ini */
}
.adart.is-closed { display: none; }

.adart-inner {
  position: fixed;                    /* tetap diam saat halaman digulir */
  top: calc(50% - (var(--adh) / 2));
  left: var(--adx, calc(50vw - (var(--adw) / 2)));   /* mengikuti kolom berita */
  width: var(--adw);
  height: var(--adh);
  display: flex;
  flex-direction: column;
  padding: 8px 10px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .10);
}

.adart-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.adart-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.adart-close {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
}
.adart-close:hover { color: #fff; background: var(--primary); border-color: var(--primary); }
.adart-close svg { width: 13px; height: 13px; }

.adart-unit {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  line-height: 0;
  background: var(--bg);
  border-radius: 8px;
}
.adart-unit + .adart-unit { display: none; }   /* satu iklan per kotak */
.adart-unit img,
.adart-unit iframe,
.adart-unit ins,
.adart-unit > a {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;          /* gambar tampil utuh, menyesuaikan frame */
  object-position: center;
  border-radius: 8px;
}
.adart-unit > a img { border-radius: 8px; }
.adart .widget-title { display: none; }

@media (max-width: 600px) {
  .entry-content .adart {
    --adw: min(380px, 94vw);
    --adh: min(calc(var(--adw) * 1.25), 70vh);   /* tetap 4:5, tidak melebihi layar */
    margin: 1.5em auto;
  }
  .adart-inner { padding: 6px 8px 8px; border-radius: 10px; }
}

/* Iklan dari widget (Gambar klasik maupun blok) agar mengisi frame */
.adart-unit > *,
.adart-unit > * > *,
.adart-unit > * > * > * {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}
.adart-unit figcaption,
.adart-unit .wp-element-caption,
.adart-unit .widget-title,
.adart-unit .screen-reader-text { display: none; }
.adart-unit img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;          /* gambar utuh, menyesuaikan frame */
  object-position: center;
  border-radius: 8px;
}
.adart-unit iframe, .adart-unit ins { width: 100%; height: 100%; max-width: 100%; }

/* Iklan atas Berita Terbaru dari widget blok */
.adslide figure,
.adslide .wp-block-image { margin: 0; }
.adslide figcaption, .adslide .wp-element-caption { display: none; }

/* ============================================================
   TAMPILAN HEADER FUTURISTIK
   ============================================================ */
:root {
  --hd-glow: rgba(211, 47, 47, .35);
  --hd-glass: rgba(255, 255, 255, .78);
  --hd-solid: rgba(255, 255, 255, .97);
  --hd-line: linear-gradient(90deg, #d32f2f, #ff6a3d 45%, #ffb347 70%, #d32f2f);
}
body.dark-mode { --hd-glass: rgba(22, 24, 29, .82); --hd-solid: rgba(22, 24, 29, .97); }

/* Topbar: gelap dengan garis gradasi tipis */
.topbar {
  background: linear-gradient(90deg, #101216, #1b1f27 55%, #101216);
  color: #aeb4bf;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.topbar-date { letter-spacing: .3px; }
.topbar-list a { position: relative; letter-spacing: .3px; }
.topbar-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--hd-line);
  border-radius: 2px;
  transition: width .25s ease;
}
.topbar-list a:hover::after { width: 100%; }

/* Header kaca (efek blur di lapisan belakang, agar menu geser tetap normal) */
.site-header {
  background: transparent;
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hd-glass);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}
.site-header::after {              /* garis gradasi di bawah header */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--hd-line);
  opacity: .9;
}
.site-header.is-compact {
  background: transparent;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
}

/* Logo */
.brand-text {
  background: linear-gradient(100deg, #d32f2f, #ff5a36 60%, #ff9f1c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -.5px;
}
.site-brand img { filter: drop-shadow(0 2px 6px rgba(211, 47, 47, .18)); }

/* Kolom cari */
.header-search .search-field {
  background: rgba(255, 255, 255, .7);
  border-color: rgba(0, 0, 0, .08);
  border-radius: 999px 0 0 999px;
  transition: box-shadow .2s, border-color .2s, background .2s;
}
.header-search .search-submit {
  border-color: rgba(0, 0, 0, .08);
  border-radius: 0 999px 999px 0;
  background: rgba(255, 255, 255, .7);
}
.header-search .search-form:focus-within .search-field,
.header-search .search-form:focus-within .search-submit {
  border-color: rgba(211, 47, 47, .45);
  background: var(--bg);
  box-shadow: 0 0 0 4px rgba(211, 47, 47, .10);
}
body.dark-mode .header-search .search-field,
body.dark-mode .header-search .search-submit { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }

/* Menu utama */
.site-nav { border-top-color: rgba(0, 0, 0, .06); }
.site-header .nav-list > li > a {
  position: relative;
  border-bottom: 0;
  border-radius: 999px;
  transition: color .18s, background .18s;
}
@media (min-width: 901px) {
  .site-header .nav-list > li > a { padding: 10px 12px; }
  .site-header .nav-list > li > a::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 2px;
    width: 0; height: 2px;
    background: var(--hd-line);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width .25s ease;
  }
  .site-header .nav-list > li > a:hover { background: rgba(211, 47, 47, .07); }
  .site-header .nav-list > li > a:hover::after,
  .site-header .nav-list > li.current-menu-item > a::after,
  .site-header .nav-list > li.current-menu-ancestor > a::after { width: calc(100% - 22px); }
  .site-header .nav-list > li.current-menu-item > a { color: var(--primary); }
  .site-header.is-compact .nav-list > li > a { padding: 10px 12px; line-height: 1.2; }

  /* Dropdown melayang */
  .nav-list .sub-menu {
    padding: 8px;
    background: var(--hd-solid);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .16);
  }
  .nav-list .sub-menu a { border-radius: 10px; }
}

/* Ikon aksi */
.header-actions .icon-btn {
  border: 1px solid transparent;
  transition: color .18s, background .18s, border-color .18s, transform .18s;
}
.header-actions .icon-btn:hover {
  color: var(--primary);
  background: rgba(211, 47, 47, .08);
  border-color: rgba(211, 47, 47, .18);
  transform: translateY(-1px);
}

/* Tombol Akun/Masuk */
.btn-login {
  background: linear-gradient(120deg, #e53935, #d32f2f 55%, #ff6a3d);
  box-shadow: 0 6px 18px var(--hd-glow);
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.btn-login:hover {
  background: linear-gradient(120deg, #e53935, #d32f2f 55%, #ff6a3d);
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px var(--hd-glow);
}

/* Panel menu HP */
@media (max-width: 900px) {
  .site-nav, .site-nav.is-open {
    background: var(--bg);
    border-left: 1px solid rgba(0, 0, 0, .06);
  }
  .nav-drawer-head { border-bottom-color: rgba(0, 0, 0, .06); }
  .nav-drawer-title {
    background: linear-gradient(100deg, #d32f2f, #ff7a45);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .site-nav .nav-list > li > a { border-radius: 0; }
  .site-nav .nav-list > li.current-menu-item > a { background: rgba(211, 47, 47, .07); }
  .nav-drawer-search .search-field { border-radius: 999px; }
  .nav-drawer-search .search-submit { border-radius: 999px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header *, .topbar * { transition: none !important; }
}

/* ============================================================
   FOOTER FUTURISTIK
   ============================================================ */
.site-footer {
  position: relative;
  overflow: hidden;
  color: #c9cfda;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(211, 47, 47, .22), transparent 60%),
    radial-gradient(700px 360px at 88% 0%, rgba(255, 122, 69, .16), transparent 60%),
    linear-gradient(180deg, #14161b, #0e1014);
  border-top: 0;
}
.site-footer::before {                 /* garis gradasi di atas footer */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--hd-line, linear-gradient(90deg, #d32f2f, #ff6a3d, #ffb347, #d32f2f));
}
.site-footer::after {                  /* pola garis halus */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 70%);
}
.site-footer .container { position: relative; z-index: 1; }

.footer-brand .brand-text,
.site-footer .brand-text {
  background: linear-gradient(100deg, #ff5a36, #ff9f1c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-tagline { color: #98a0ad; }

.footer-title {
  color: #fff;
  letter-spacing: 1.2px;
}
.footer-title::after {
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, #d32f2f, #ff9f1c);
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(255, 106, 61, .5);
}

.footer-list a {
  position: relative;
  display: inline-block;
  padding-left: 14px;
  color: #c9cfda;
  transition: color .18s, transform .18s;
}
.footer-list a::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  background: linear-gradient(135deg, #d32f2f, #ff9f1c);
  border-radius: 50%;
  transform: translateY(-50%) scale(.6);
  opacity: .5;
  transition: transform .18s, opacity .18s, box-shadow .18s;
}
.footer-list a:hover {
  color: #fff;
  transform: translateX(3px);
}
.footer-list a:hover::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  box-shadow: 0 0 10px rgba(255, 106, 61, .8);
}

/* Widget di footer */
.site-footer .widget-title { color: #fff; border-bottom-color: rgba(255, 255, 255, .12); }
.site-footer .social-grid {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .10);
  border-radius: 14px;
}
.site-footer .social-cell {
  background: rgba(255, 255, 255, .03);
  color: #e8eaee;
  transition: background .18s, transform .18s;
}
.site-footer .social-cell:hover { background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
.site-footer .social-label { color: #98a0ad; }

.footer-bottom {
  color: #8b93a1;
  background: rgba(0, 0, 0, .25);
  border-top: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(2px);
}

@media (max-width: 600px) {
  .site-footer::after { background-size: 34px 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-list a, .site-footer .social-cell { transition: none; }
}

/* Footer di HP: Informasi & Kategori berdampingan */
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
  }
  .footer-grid > .footer-brand { grid-column: 1 / -1; }
  .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
  .footer-list a { font-size: 14px; }
  .footer-title { font-size: 13px; margin-bottom: 14px; }
}

/* ============ TRENDING: MODEL CARD ============ */
.side-list { gap: 10px; }
.side-card {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 8px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.side-card:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .10);
}
.side-card-thumb {
  flex: 0 0 76px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 7px;
  background: var(--bg-alt);
}
.side-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.side-card:hover .side-card-thumb img { transform: scale(1.06); }

.side-card-body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.side-card-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.side-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.side-card:hover .side-card-title a { color: var(--primary); }

.side-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  font-size: 11px;
  color: var(--text-muted);
}
.side-card-time { white-space: nowrap; }
.side-card-meta .post-actions { margin-left: auto; margin-right: -4px; }
.side-card-meta .pa-btn { height: 22px; padding: 0 4px; gap: 3px; font-size: 10.5px; }
.side-card-meta .pa-btn svg { width: 13px; height: 13px; }
body.dark-mode .side-card { background: var(--bg-alt); }

/* Versi sejajar slider di beranda */
.top-side .side-list { gap: 8px; }
.top-side .side-card { flex: 1 1 0; min-height: 0; align-items: center; }
.top-side .side-card-title { font-size: 13.5px; }

@media (max-width: 600px) {
  .side-card-thumb { flex-basis: 70px; }
  .side-card-title { font-size: 13.5px; }
}

/* ============ TRENDING TOPIK & IKLAN SIDEBAR ============ */
.topics-block { margin-bottom: 28px; }
.topic-list { list-style: none; margin: 0; padding: 0; }
.topic-item + .topic-item { border-top: 1px solid var(--border); }
.topic-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  transition: background .15s, transform .15s;
}
.topic-item a:hover { background: var(--bg-alt); transform: translateX(2px); }
.topic-rank {
  flex: 0 0 26px;
  font-family: var(--font-head, inherit);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  color: var(--text-muted);
}
.topic-item.is-top .topic-rank {
  background: linear-gradient(135deg, #d32f2f, #ff9f1c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.topic-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.topic-item a:hover .topic-name { color: var(--primary); }
.topic-count {
  flex: 0 0 auto;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-radius: 999px;
}

.adside {
  position: relative;
  display: block;
  margin: 0 0 28px;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.adside-label {
  display: block;
  margin-bottom: 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.adside-unit { line-height: 0; text-align: center; }
.adside-unit + .adside-unit { margin-top: 10px; }
.adside-unit img { display: block; width: 100%; height: auto; border-radius: 8px; }
.adside-unit iframe, .adside-unit ins { max-width: 100%; }
.adside-unit figure, .adside-unit .wp-block-image { margin: 0; }
.adside-unit figcaption, .adside-unit .wp-element-caption, .adside .widget-title { display: none; }

/* Berita Lainnya di bawah Berita Terkait */
.more-news { margin-bottom: 44px; }
.more-news .section-head .section-more { white-space: nowrap; }
.more-news .dtk-pagination { margin-top: 18px; }
#lainnya { scroll-margin-top: 90px; }
@media (max-width: 900px) {
  #lainnya { scroll-margin-top: calc(var(--mobile-topbar-h, 30px) + var(--mobile-header-h, 57px) + 12px); }
}

/* ============ BACA TERUS (berita berikutnya otomatis) ============ */
.infinite { margin-bottom: 40px; }
.next-article { margin-top: 36px; }
.next-label {
  position: relative;
  margin: 0 0 22px;
  text-align: center;
}
.next-label::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--border);
}
.next-label span {
  position: relative;
  display: inline-block;
  padding: 6px 16px;
  font-family: var(--font-head, inherit);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(120deg, #d32f2f, #ff6a3d);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(211, 47, 47, .28);
}
.next-article .entry-title { font-size: clamp(22px, 2.6vw, 32px); }

.infinite-sentinel { height: 1px; }

/* ============ INFOGRAFIK (slider kartu tegak) ============ */
.infografik { margin-bottom: 40px; }
.ig-track { --per-view: 4; --gap: 14px; }

.ig-card {
  position: relative;
  overflow: hidden;
  background: #111;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .10);
}
.ig-link { display: block; position: relative; height: 100%; color: #fff; }
.ig-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-alt);
}
.ig-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.ig-card:hover .ig-media img { transform: scale(1.06); }

.ig-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(120deg, #d32f2f, #ff6a3d);
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
}

.ig-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 12px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.92) 18%, rgba(0,0,0,.45) 60%, transparent);
}
.ig-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.32;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ig-time { font-size: 11px; color: rgba(255, 255, 255, .78); }

@media (max-width: 1100px) { .ig-track { --per-view: 3; } }
@media (max-width: 900px)  { .ig-track { --per-view: 2.3; } }
@media (max-width: 600px)  {
  .ig-track { --per-view: 1.8; --gap: 10px; }
  .ig-title { font-size: 13px; }
}

/* Infografik selebar konten + sidebar */
.layout-infografik { padding-bottom: 8px; }
.layout-infografik .infografik { margin-bottom: 32px; }
@media (min-width: 901px) {
  .ig-track { --per-view: 4; --gap: 16px; }        /* 4 kartu besar di desktop */
  .ig-title { font-size: 17px; -webkit-line-clamp: 3; }
  .ig-time { font-size: 12.5px; }
  .ig-badge { padding: 5px 12px; font-size: 11px; }
  .ig-body { padding: 34px 16px 16px; }
  .ig-card { border-radius: 14px; }
}
@media (min-width: 1101px) { .ig-track { --per-view: 4; } }

/* Slider otomatis: geser halus tanpa tersentak */
.ig-track { scroll-snap-type: none; scroll-behavior: auto; }   /* desktop: animasi diatur JS */
@media (max-width: 900px) {
  .ig-track { scroll-snap-type: x proximity; scroll-behavior: smooth; }   /* HP: mengikuti geseran jari */
  .ig-card { scroll-snap-align: start; }
}

/* ============ JELAJAHI KATEGORI ============ */
.layout-explore { padding-bottom: 10px; }
.explore { margin-bottom: 44px; }

.explore-tabs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.explore-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}
.explore-tab:hover { border-color: var(--primary); transform: translateY(-2px); }
.explore-tab.is-active {
  background: rgba(211, 47, 47, .06);
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(211, 47, 47, .14);
}
.explore-ic {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--primary);
  background: var(--bg-alt);
  border-radius: 50%;
}
.explore-tab.is-active .explore-ic { color: #fff; background: linear-gradient(120deg, #d32f2f, #ff6a3d); }
.explore-ic svg { width: 21px; height: 21px; }
.explore-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

.explore-list { transition: opacity .2s; }
.explore.is-loading .explore-list { opacity: .45; }
.explore-empty { padding: 20px; text-align: center; color: var(--text-muted); }

.explore-foot { margin-top: 20px; text-align: center; }
.explore-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg);
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  cursor: pointer;
  transition: color .15s, background .15s, box-shadow .15s;
}
.explore-more:hover:not(:disabled) { color: #fff; background: var(--primary); box-shadow: 0 6px 18px rgba(211, 47, 47, .25); }
.explore-more:disabled { opacity: .6; cursor: default; }
.explore-more[hidden] { display: none; }

@media (max-width: 1100px) { .explore-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .explore-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .explore-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .explore-tabs::-webkit-scrollbar { display: none; }
  .explore-tab { flex: 0 0 84px; padding: 10px 4px 8px; font-size: 11px; }
  .explore-ic { width: 38px; height: 38px; }
  .explore-ic svg { width: 19px; height: 19px; }
}