:root {
  --merah: #c1121f;
  --merah-gelap: #8f0e17;
  --hitam: #1a1a1a;
  --abu-teks: #4a4a4a;
  --abu-garis: #e4e0d8;
  --krem: #faf8f4;
  --putih: #ffffff;
  --font-judul: Georgia, 'Times New Roman', serif;
  --font-teks: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --lebar-maks: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-teks);
  color: var(--hitam);
  background: var(--krem);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--lebar-maks);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header ---------- */
.topbar {
  background: var(--hitam);
  color: #cfcfcf;
  font-size: 12px;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
}

.site-header {
  background: var(--putih);
  border-bottom: 3px solid var(--merah);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 14px;
  gap: 20px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--hitam);
  border: 1px solid #2a2622;
  flex-shrink: 0;
}
.brand {
  font-family: var(--font-judul);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.5px;
  color: var(--hitam);
  line-height: 1.15;
}
.brand span { color: var(--merah); }
.brand-tagline {
  display: block;
  font-family: var(--font-teks);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--abu-teks);
  font-weight: 400;
}

.search-form {
  display: flex;
  border: 1px solid var(--abu-garis);
  border-radius: 4px;
  overflow: hidden;
}
.search-form input[type="text"] {
  border: 0;
  padding: 9px 12px;
  font-size: 14px;
  width: 200px;
  background: var(--putih);
}
.search-form input[type="text"]:focus { outline: none; }
.search-form button {
  border: 0;
  background: var(--merah);
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
  font-size: 14px;
}
.search-form button:hover { background: var(--merah-gelap); }

.main-nav {
  background: var(--merah);
}
.main-nav .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.main-nav a {
  display: block;
  padding: 11px 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--merah-gelap);
  text-decoration: none;
}

/* ---------- Sticker berjalan (marquee) berita terbaru ---------- */
.news-ticker {
  background: var(--hitam);
  border-bottom: 1px solid #2a2622;
  overflow: hidden;
}
.news-ticker-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.news-ticker-label {
  flex-shrink: 0;
  background: var(--merah);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 3px;
}
.news-ticker-track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  /* Fade halus di kedua ujung supaya teks yang masuk/keluar tidak
     terpotong tajam. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.news-ticker-track {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: max-content;
  white-space: nowrap;
  animation: news-ticker-scroll 35s linear infinite;
}
.news-ticker-track-wrap:hover .news-ticker-track {
  animation-play-state: paused;
}
.news-ticker-track li a {
  color: #f0efe9;
  font-size: 13px;
}
.news-ticker-track li a:hover {
  color: #fff;
  text-decoration: underline;
}
@keyframes news-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .news-ticker-track { animation: none; }
  .news-ticker-track-wrap { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 700px) {
  .news-ticker-label { display: none; }
}

/* ---------- Layout umum ---------- */
.page-title {
  font-family: var(--font-judul);
  font-size: 26px;
  margin: 28px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--hitam);
}
.page-title small {
  display: block;
  font-family: var(--font-teks);
  font-size: 13px;
  font-weight: 400;
  color: var(--abu-teks);
  margin-top: 4px;
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--abu-teks);
}

/* ---------- Featured ---------- */
.featured {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  margin: 24px 0 32px;
  background: var(--putih);
  border: 1px solid var(--abu-garis);
  border-radius: 6px;
  overflow: hidden;
}
.featured-media { background: var(--hitam); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; max-height: 420px; }
.featured-body { padding: 22px 24px 22px 0; display: flex; flex-direction: column; justify-content: center; }
.featured .kategori-tag { margin-bottom: 10px; }
.featured-body h1,
.featured-body h2 {
  font-family: var(--font-judul);
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 12px;
}
.featured-body p { color: var(--abu-teks); margin: 0 0 14px; }

/* ---------- Kartu berita / grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 10px 0 30px;
}

.card {
  background: var(--putih);
  border: 1px solid var(--abu-garis);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: #eee; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 {
  font-family: var(--font-judul);
  font-size: 18px;
  line-height: 1.3;
  margin: 8px 0 8px;
}
.card-body p { color: var(--abu-teks); font-size: 14px; margin: 0 0 10px; flex: 1; }

/* Varian kartu dengan thumbnail sebagai background tetap (tanpa <img> terpisah) */
.card-bg {
  position: relative;
  min-height: 230px;
  background-color: #111;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
}
.card-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.88) 100%);
  transition: background .25s ease;
}
.card-bg:hover::before { background: linear-gradient(180deg, rgba(0,0,0,0.1) 15%, rgba(0,0,0,0.93) 100%); }
.card-overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.card-overlay h3 {
  font-family: var(--font-judul);
  font-size: 17px;
  line-height: 1.3;
  margin: 8px 0 8px;
}
.card-overlay h3 a { color: #fff; }
.card-overlay .meta-onimage span { color: #d8d8d8; }

/* Label kategori di atas gambar (dipakai di card-overlay & sorot-main-overlay).
   Selector digabung ".kategori-tag.kategori-tag-onimage" (bukan cuma
   ".kategori-tag-onimage") supaya specificity-nya SELALU lebih tinggi
   daripada ".kategori-tag" polos di bawah -- sebelumnya keduanya sama-sama
   specificity 1 class, jadi urutan aturan ".kategori-tag" yang taruh
   belakang di file ini menang dan menimpa color:#fff jadi color merah,
   sehingga teks kategori jadi merah di atas background merah (tidak
   terbaca) di kartu manapun yang pakai varian "onimage" ini. */
.kategori-tag.kategori-tag-onimage {
  color: #fff;
  background: var(--merah);
  border-color: var(--merah);
}

.kategori-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--merah);
  border: 1px solid var(--merah);
  border-radius: 3px;
  padding: 2px 8px;
  width: fit-content;
}

.meta {
  font-size: 12px;
  color: #8a8a8a;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 44px;
}
.pagination a,
.pagination span {
  padding: 9px 18px;
  border: 1px solid var(--abu-garis);
  border-radius: 4px;
  background: var(--putih);
  font-size: 14px;
  font-weight: 600;
}
.pagination a:hover { border-color: var(--merah); color: var(--merah); text-decoration: none; }
.pagination .disabled { color: #bbb; }

/* ---------- Halaman artikel ---------- */
.article {
  background: var(--putih);
  border: 1px solid var(--abu-garis);
  border-radius: 6px;
  padding: 30px 34px 40px;
  margin: 26px 0 36px;
}
.article-header { margin-bottom: 18px; }
.article-header h1 {
  font-family: var(--font-judul);
  font-size: 32px;
  line-height: 1.3;
  margin: 12px 0 14px;
}
.article-meta {
  font-size: 13px;
  color: var(--abu-teks);
  border-top: 1px solid var(--abu-garis);
  border-bottom: 1px solid var(--abu-garis);
  padding: 10px 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
/* Header artikel dengan thumbnail sebagai background tetap (hero) */
.article-hero {
  position: relative;
  min-height: 340px;
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--hitam);
  display: flex;
  align-items: flex-end;
  margin: 0 0 22px;
}
/* Backdrop blur: sama gambarnya, di-cover & diblur, biar tidak ada area kosong */
.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(18px) brightness(0.7);
  transform: scale(1.1);
  z-index: 0;
}
/* Gambar utama: full terlihat, tidak terpotong */
.article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}
.article-hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 70px 28px 22px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.92) 100%);
}
.article-hero-overlay h1 { color: #fff; }
.article-hero-overlay .article-meta {
  border: 0;
  padding: 0;
  color: #d8d8d8;
}
.article-hero-overlay .article-meta strong { color: #fff; }

.article-content {
  font-size: 17px;
  line-height: 1.85;
  color: #262626;
}
.article-content p { margin: 0 0 18px; }
.article-content blockquote {
  margin: 0 0 18px;
  padding: 4px 22px;
  border-left: 4px solid var(--merah);
  font-family: var(--font-judul);
  font-size: 19px;
  font-style: italic;
  line-height: 1.6;
  color: #3a3a3a;
}
.article-content blockquote p:last-child { margin-bottom: 0; }

/* ---------- Bagikan artikel ---------- */
.article-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--abu-garis);
}
.article-share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--abu-teks);
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--abu-garis);
  background: var(--putih);
  color: var(--hitam);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.share-btn:hover { text-decoration: none; border-color: var(--merah); color: var(--merah); }
.share-wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.share-fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-x:hover  { background: #000;    border-color: #000;    color: #fff; }
.share-tg:hover { background: #229ed9; border-color: #229ed9; color: #fff; }
.share-copy.is-copied { background: var(--merah); border-color: var(--merah); color: #fff; }

/* ---------- Slot iklan ---------- */
.ad-slot {
  margin: 22px 0;
  text-align: center;
  overflow: hidden;
}
.ad-slot img { max-width: 100%; height: auto; border-radius: 4px; }
.ad-slot-top,
.ad-slot-bottom {
  padding: 6px 0;
}
.ad-slot-article {
  padding: 10px 0;
  border-top: 1px dashed var(--abu-garis);
  border-bottom: 1px dashed var(--abu-garis);
}
.ad-slot-article-banner {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--abu-garis);
}
.ad-slot-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin-bottom: 8px;
}

/* ---------- Bagian kategori halaman depan ---------- */
.home-cat-section { margin: 10px 0 36px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--hitam);
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-family: var(--font-judul);
  font-size: 20px;
  margin: 0;
}
.section-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--merah);
  white-space: nowrap;
}

/* ---------- Layout kategori: Sorot Utama ---------- */
.sorot-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin: 10px 0 30px;
}
.sorot-main {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  min-height: 320px;
  background: var(--hitam);
}
.sorot-main-media { display: block; height: 100%; }
.sorot-main-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.sorot-main-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 20px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 85%);
}
.sorot-main-overlay .kategori-tag-onimage {
  color: #fff;
  border-color: #fff;
  background: var(--merah);
  border-color: var(--merah);
}
.sorot-main-overlay h3 {
  font-family: var(--font-judul);
  font-size: 24px;
  line-height: 1.25;
  margin: 10px 0 8px;
}
.sorot-main-overlay h3 a { color: #fff; }
.meta-onimage span { color: #d8d8d8; }

.sorot-side {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: min-content;
  gap: 16px;
}
.sorot-side-item { display: flex; flex-direction: column; }
.sorot-side-media { aspect-ratio: 16/10; overflow: hidden; border-radius: 4px; background: #eee; }
.sorot-side-media img { width: 100%; height: 100%; object-fit: cover; }
.sorot-side-body { padding-top: 8px; }
.sorot-side-body h4 {
  font-family: var(--font-judul);
  font-size: 14.5px;
  line-height: 1.35;
  margin: 0 0 6px;
}
.sorot-side-body .meta { font-size: 11px; }

@media (max-width: 860px) {
  .sorot-layout { grid-template-columns: 1fr; }
  .sorot-main { min-height: 240px; }
  .sorot-main-media img { min-height: 240px; }
}
@media (max-width: 520px) {
  .sorot-side { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Layout kategori: Daftar Horizontal ---------- */
.list-horizontal {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 10px 0 30px;
}
.lh-item { display: flex; flex-direction: column; }
.lh-media { aspect-ratio: 16/11; overflow: hidden; border-radius: 4px; background: #eee; }
.lh-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.lh-item:hover .lh-media img { transform: scale(1.04); }
.lh-title {
  font-family: var(--font-judul);
  font-size: 13.5px;
  line-height: 1.35;
  margin: 8px 0 6px;
}
.lh-meta { font-size: 11px; }

@media (max-width: 860px) {
  .list-horizontal { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .list-horizontal { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Layout kategori: Daftar Vertikal ---------- */
.list-vertikal {
  display: flex;
  flex-direction: column;
  margin: 10px 0 30px;
  background: var(--putih);
  border: 1px solid var(--abu-garis);
  border-radius: 6px;
  overflow: hidden;
}
.lv-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--abu-garis);
}
.lv-item:last-child { border-bottom: 0; }
.lv-media { aspect-ratio: 4/3; overflow: hidden; border-radius: 4px; background: #eee; }
.lv-media img { width: 100%; height: 100%; object-fit: cover; }
.lv-body { display: flex; flex-direction: column; justify-content: center; }
.lv-body h4 {
  font-family: var(--font-judul);
  font-size: 15.5px;
  line-height: 1.35;
  margin: 0 0 6px;
}
.lv-body .meta { font-size: 11.5px; }

@media (max-width: 520px) {
  .lv-item { grid-template-columns: 78px 1fr; padding: 10px 12px; }
}

/* ---------- Layout kategori: Daftar Bernomor ---------- */
.list-numbered {
  list-style: none;
  margin: 10px 0 30px;
  padding: 0;
  background: var(--putih);
  border: 1px solid var(--abu-garis);
  border-radius: 6px;
  overflow: hidden;
}
.ln-item {
  display: grid;
  grid-template-columns: 34px 84px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--abu-garis);
}
.ln-item:last-child { border-bottom: 0; }
.ln-rank {
  font-family: var(--font-judul);
  font-size: 26px;
  font-weight: 700;
  color: var(--abu-garis);
  -webkit-text-stroke: 1px var(--merah);
  text-align: center;
  line-height: 1;
}
.ln-media { aspect-ratio: 4/3; overflow: hidden; border-radius: 4px; background: #eee; }
.ln-media img { width: 100%; height: 100%; object-fit: cover; }
.ln-body h4 {
  font-family: var(--font-judul);
  font-size: 15px;
  line-height: 1.35;
  margin: 0 0 6px;
}
.ln-body .meta { font-size: 11.5px; }

@media (max-width: 520px) {
  .ln-item { grid-template-columns: 24px 64px 1fr; gap: 10px; padding: 10px 12px; }
  .ln-rank { font-size: 20px; }
}

/* ---------- Layout kategori: Judul Saja (headline, tanpa gambar) ---------- */
.headline-list {
  list-style: none;
  margin: 10px 0 30px;
  padding: 0;
  background: var(--putih);
  border: 1px solid var(--abu-garis);
  border-radius: 6px;
  overflow: hidden;
}
.hl-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--abu-garis);
}
.hl-item:last-child { border-bottom: 0; }
.hl-item a {
  font-family: var(--font-judul);
  font-size: 16px;
  line-height: 1.35;
  color: var(--hitam);
}
.hl-item a:hover { color: var(--merah); }
.hl-meta { font-size: 11.5px; white-space: nowrap; flex-shrink: 0; }

@media (max-width: 520px) {
  .hl-item { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; }
}

/* ---------- Layout kategori: Kartu Kompak ---------- */
.grid-kompak {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin: 10px 0 30px;
}
.kompak-item { display: flex; flex-direction: column; }
.kompak-media { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 4px; background: #eee; }
.kompak-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.kompak-item:hover .kompak-media img { transform: scale(1.04); }
.kompak-title {
  font-family: var(--font-judul);
  font-size: 12.5px;
  line-height: 1.3;
  margin: 8px 0 0;
}

@media (max-width: 860px) {
  .grid-kompak { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 520px) {
  .grid-kompak { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

/* ---------- Layout kategori: Sorot Terbalik ---------- */
/* Markup-nya identik dengan .sorot-layout (Sorot Utama); hanya urutan
   tampil yang dibalik lewat 'order', jadi grid-template-columns tetap
   sama tapi berita besar jatuh di kolom kanan. */
.sorot-kanan-layout { grid-template-columns: 1fr 1.5fr; }
.sorot-kanan-layout .sorot-main { order: 2; }
.sorot-kanan-layout .sorot-side { order: 1; }

@media (max-width: 860px) {
  .sorot-kanan-layout { grid-template-columns: 1fr; }
  .sorot-kanan-layout .sorot-main,
  .sorot-kanan-layout .sorot-side { order: initial; }
}

/* ---------- Layout kategori: Dua Kolom (Gambar + Daftar Judul) ---------- */
.kolom-daftar-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin: 10px 0 30px;
}
.kd-main-media { aspect-ratio: 16/10; overflow: hidden; border-radius: 6px; background: #eee; }
.kd-main-media img { width: 100%; height: 100%; object-fit: cover; }
.kd-main-body { padding-top: 12px; }
.kd-main-body h3 {
  font-family: var(--font-judul);
  font-size: 22px;
  line-height: 1.3;
  margin: 8px 0 8px;
}
.kd-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--putih);
  border: 1px solid var(--abu-garis);
  border-radius: 6px;
  overflow: hidden;
}
.kd-list-item { padding: 13px 16px; border-bottom: 1px solid var(--abu-garis); }
.kd-list-item:last-child { border-bottom: 0; }
.kd-list-item a {
  font-family: var(--font-judul);
  font-size: 15px;
  line-height: 1.35;
  color: var(--hitam);
}
.kd-list-item a:hover { color: var(--merah); }
.kd-list-meta { font-size: 11px; margin-top: 5px; }

@media (max-width: 860px) {
  .kolom-daftar-layout { grid-template-columns: 1fr; }
}

/* ---------- Layout kategori: Galeri Geser ---------- */
.galeri-geser {
  display: flex;
  gap: 16px;
  margin: 10px 0 30px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.gg-item {
  flex: 0 0 260px;
  min-height: 200px;
  scroll-snap-align: start;
}
@media (max-width: 520px) {
  .gg-item { flex-basis: 200px; min-height: 170px; }
}

/* ---------- Layout kategori: Kartu Split Highlight ---------- */
.split-highlight-layout {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  margin: 10px 0 30px;
}
.sh-item { min-height: 260px; }
.sh-main .card-overlay h3 { font-size: 21px; }
.sh-small { min-height: 260px; }

@media (max-width: 860px) {
  .split-highlight-layout { grid-template-columns: 1fr; }
  .sh-item, .sh-small { min-height: 220px; }
}

.related {
  margin: 10px 0 40px;
}
.related h2 {
  font-family: var(--font-judul);
  font-size: 20px;
  border-bottom: 2px solid var(--hitam);
  padding-bottom: 8px;
  margin-bottom: 18px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--abu-teks);
  margin-top: 18px;
}
.breadcrumb a:hover { color: var(--merah); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--hitam);
  color: #b9b9b9;
  margin-top: 40px;
}
.site-footer .wrap {
  padding: 32px 16px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.site-footer .footer-brand {
  font-family: var(--font-judul);
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
}
.site-footer p { font-size: 13px; max-width: 420px; }
.footer-copy {
  border-top: 1px solid #333;
  text-align: center;
  padding: 14px 0;
  font-size: 12px;
  color: #888;
}

/* ---------- Offline bar ---------- */
.offline-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--hitam);
  color: #fff;
  font-size: 13px;
  text-align: center;
  padding: 8px 12px;
  padding-top: calc(8px + env(safe-area-inset-top));
}

/* ---------- Bottom navigation (mobile app-style) ---------- */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--putih);
  border-top: 1px solid var(--abu-garis);
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}
.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  min-height: 52px;
  border: 0;
  background: none;
  color: var(--abu-teks);
  font-size: 11px;
  font-family: var(--font-teks);
  cursor: pointer;
}
.bn-item:hover { text-decoration: none; }
.bn-item svg { width: 22px; height: 22px; }
.bn-item.active { color: var(--merah); }
.bn-item.active svg { stroke: var(--merah); }

/* ---------- Sheet bawah (mobile): kategori & halaman ---------- */
.bottom-sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
}
.bottom-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity .2s ease;
}
.bottom-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--putih);
  border-radius: 16px 16px 0 0;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  max-height: 70vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .22s ease;
}
.bottom-sheet.open .bottom-sheet-backdrop { opacity: 1; }
.bottom-sheet.open .bottom-sheet-panel { transform: translateY(0); }
.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--abu-garis);
  border-radius: 2px;
  margin: 8px auto 14px;
}
.bottom-sheet-panel h3 {
  font-family: var(--font-judul);
  font-size: 17px;
  margin: 0 0 12px;
}
.bottom-sheet-list {
  display: flex;
  flex-direction: column;
}
.bottom-sheet-list a {
  padding: 13px 4px;
  border-bottom: 1px solid var(--abu-garis);
  font-size: 15px;
  text-transform: capitalize;
}
.bottom-sheet-list a:last-child { border-bottom: 0; }
.bottom-sheet-list a:hover { color: var(--merah); text-decoration: none; }
.bottom-sheet-empty {
  padding: 18px 4px 26px;
  font-size: 14px;
  color: var(--abu-teks);
  text-transform: none;
}

/* ---------- Responsif ---------- */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .featured-body { padding: 0 20px 22px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
  .brand-mark { width: 38px; height: 38px; }
  .search-form { width: 100%; }
  .search-form input[type="text"] { flex: 1; width: auto; }
  .article { padding: 22px 18px 30px; }
  .article-header h1 { font-size: 26px; }
  .article-hero { min-height: 260px; }
  .article-hero-overlay { padding: 50px 18px 18px; }
  .card-bg { min-height: 190px; }
}

@media (max-width: 768px) {
  /* Nav kategori atas digantikan oleh bottom nav + sheet kategori */
  .main-nav { display: none; }
  .bottom-nav { display: flex; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .topbar .wrap { font-size: 11px; }
}

@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .brand { font-size: 24px; }
  .article-header h1 { font-size: 22px; }
  .article-content { font-size: 16px; }
}
