/* =============================================================
   PortalSatu – Homepage Layout
   File: css/homepage.css  (dimuat HANYA di halaman depan)
   Hero height: aspect-ratio 16/7 agar proporsional di semua layar
   Semua .ps-* class HANYA ada di file ini – tidak ada di style.css
============================================================= */

/* ─── WRAPPER ─────────────────────────────────────────────── */
.ps-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.ps-hero-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* ─── BREAKING NEWS BAR ────────────────────────────────────── */
.ps-breaking-bar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  border-top: 3px solid #e8232a;
}
[data-theme="dark"] .ps-breaking-bar { background: #161b22; border-color: #30363d; border-top-color: #e8232a; }
.ps-breaking-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 40px;
  overflow: hidden;
  gap: 0;
}
.ps-breaking-bar__label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e8232a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 2px;
  flex-shrink: 0;
  white-space: nowrap;
  margin-right: 14px;
}
.ps-breaking-bar__ticker {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  border-left: 1px solid #e2e8f0;
  padding-left: 14px;
}
[data-theme="dark"] .ps-breaking-bar__ticker { border-color: #30363d; }
.ps-breaking-bar__track {
  display: flex;
  white-space: nowrap;
  animation: psTicker 38s linear infinite;
}
.ps-breaking-bar:hover .ps-breaking-bar__track { animation-play-state: paused; }
.ps-breaking-bar__track a {
  color: #1a1a2e;
  font-size: 13px;
  font-weight: 500;
  padding: 0 28px;
  text-decoration: none;
  position: relative;
}
[data-theme="dark"] .ps-breaking-bar__track a { color: #e6edf3; }
.ps-breaking-bar__track a::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #cbd5e0;
}
.ps-breaking-bar__track a:hover { color: #e8232a; }
@keyframes psTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── HERO ──────────────────────────────────────────────────
   Layout: 2 kolom (slider kiri | peunutoh kanan)
   Tinggi FIXED via aspect-ratio 16/7 pada hero kiri,
   hero kanan menyesuaikan tinggi hero kiri (align-items: stretch).
   Gambar slider: object-fit cover, tidak pernah terdistorsi.
────────────────────────────────────────────────────────────── */
.ps-hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

/* Hero Kiri – proporsional 16:7, gambar cover */
.ps-hero__left {
  /* Tinggi sejajar kanan – stretch via parent grid align-items:stretch */
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  min-width: 0;
  width: 100%;
  min-height: 280px;
}
.ps-hero__slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Slide items */
.ps-slide {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ps-slide.is-active { display: block; }
.ps-slide > a {
  display: block;
  width: 100%;
  height: 100%;
}
.ps-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;    /* gambar selalu fill, tidak terdistorsi */
  object-position: center top;
  display: block;
}
.ps-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.85) 0%,
    rgba(0,0,0,.25) 50%,
    transparent 100%
  );
  pointer-events: none;
}
.ps-slide__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 20px;
  color: #fff;
  z-index: 2;
}
.ps-slide__cat {
  display: inline-block;
  background: #e8232a;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 9px;
}
.ps-slide__title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
}
.ps-slide__title a { color: inherit; text-decoration: none; }
.ps-slide__title a:hover { text-decoration: underline; }
.ps-slide__meta { font-size: 11.5px; opacity: .75; }

/* Slider dots */
.ps-slider__dots {
  position: absolute;
  bottom: 14px;
  right: 16px;
  display: flex;
  gap: 6px;
  z-index: 3;
}
.slider-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none; padding: 0; cursor: pointer; flex-shrink: 0;
  transition: background .3s, width .3s;
}
.slider-dot.is-active { background: #fff; width: 20px; border-radius: 4px; }

/* Slider arrows */
.ps-slider__arrows {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
  z-index: 3;
}
.ps-slider__arrow {
  pointer-events: all;
  background: rgba(0,0,0,.45);
  border: none; color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer;
  transition: background .2s;
}
.ps-slider__arrow:hover { background: #053d6a; }

/* Hero Kanan – Peunutoh */
.ps-hero__right {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
[data-theme="dark"] .ps-hero__right { background: #1c2330; border-color: #30363d; }

.ps-hero__right-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: #053d6a;
  flex-shrink: 0;
}
.ps-hero__right-label {
  font-size: 13px; font-weight: 700; color: #fff;
  border-left: 3px solid #f59e0b;
  padding-left: 8px;
}
.ps-hero__right-more {
  font-size: 11px; color: #f59e0b;
  font-weight: 600; text-decoration: none;
}
.ps-hero__right-more:hover { text-decoration: underline; }

.ps-hero__right-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;   /* tidak scroll, semua post bagi rata tinggi */
}
.ps-hero__post {
  display: grid;
  grid-template-columns: 90px 1fr;
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
  text-decoration: none;
  background: #fff;
  transition: background .2s;
  min-height: 0;
}
[data-theme="dark"] .ps-hero__post { background: #1c2330; border-color: #30363d; }
.ps-hero__post:last-child { border-bottom: none; }
.ps-hero__post:hover { background: #f4f6f8; }
[data-theme="dark"] .ps-hero__post:hover { background: #161b22; }

.ps-hero__post-img { overflow: hidden; flex-shrink: 0; }
.ps-hero__post-thumb {
  width: 90px;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ps-hero__post-body {
  padding: 8px 10px;
  display: flex; flex-direction: column;
  gap: 3px; justify-content: center;
  min-width: 0;
}
.ps-hero__post-cat {
  font-size: 11px; font-weight: 800; color: #c41e24;
  text-transform: uppercase; letter-spacing: .8px;
}
.ps-hero__post-title {
  font-size: 12.5px; font-weight: 600; line-height: 1.35;
  color: #1a1a2e;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
[data-theme="dark"] .ps-hero__post-title { color: #e6edf3; }
.ps-hero__post-date { font-size: 11px; color: #5a6a7a; }

/* Peunutoh Mobile – sembunyikan di desktop */
.ps-peunutoh-mobile { display: none; }

/* ─── GAP antara hero dan basa-aceh ────────────────────────── */
.ps-basa-gap {
  height: 28px;
  background: #f4f6f8;
}
[data-theme="dark"] .ps-basa-gap { background: #0d1117; }

/* ─── BASA ACEH – Standalone dark band ─────────────────────── */
.ps-basa {
  background: #0f172a;
  border-top: 5px solid #f59e0b;
  border-bottom: 3px solid #1e293b;
  padding: 22px 0 26px;
}
[data-theme="dark"] .ps-basa { background: #07090f; }

.ps-basa__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.ps-basa__heading {
  font-size: 15px; font-weight: 800; color: #fff;
  border-left: 4px solid #f59e0b;
  padding-left: 10px;
  text-transform: uppercase; letter-spacing: .5px;
}
.ps-basa__see-all {
  font-size: 11px; font-weight: 700; color: #f59e0b;
  text-decoration: none; border-bottom: 1px solid #f59e0b;
  text-transform: uppercase; letter-spacing: .5px;
}
.ps-basa__see-all:hover { opacity: .75; }
.ps-basa__overflow { overflow: hidden; }
.ps-basa__track {
  display: flex; gap: 14px;
  transition: transform .4s ease;
  will-change: transform;
}
.ps-basa__card {
  flex: 0 0 calc(25% - 11px);
  background: rgba(255,255,255,.07);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: background .2s;
  min-width: 0;
}
.ps-basa__card:hover { background: rgba(255,255,255,.14); }
.ps-basa__card-img-wrap { overflow: hidden; }
.ps-basa__card-img {
  width: 100%;
  height: 130px;    /* FIXED – konsisten di semua breakpoint desktop */
  object-fit: cover; display: block;
  transition: transform .3s;
}
.ps-basa__card:hover .ps-basa__card-img { transform: scale(1.04); }
.ps-basa__card-body { padding: 10px 12px 12px; }
.ps-basa__card-cat {
  font-size: 11px; font-weight: 800; color: #f59e0b;
  text-transform: uppercase; letter-spacing: .7px; margin-bottom: 4px;
}
.ps-basa__card-title {
  font-size: 13px; font-weight: 600; color: #fff; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ps-basa__card-date { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 5px; }
.ps-basa__nav {
  display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px;
}
.ps-basa__btn {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #fff; width: 44px; height: 44px; border-radius: 50%;
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.ps-basa__btn:hover { background: #e8232a; border-color: #e8232a; }

/* ─── MAIN LAYOUT: konten kiri + sidebar sticky kanan ──────── */
.ps-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  padding: 28px 0 48px;
  align-items: start;  /* WAJIB agar position:sticky bekerja di grid */
}
.ps-layout__content { min-width: 0; }
.ps-layout__sidebar {
  width: 300px;
  position: sticky;
  top: 70px;          /* di bawah navbar (48px) + 22px jarak */
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────
   ≤1100px  : kolom kanan hero & sidebar lebih sempit
   ≤900px   : hero single kolom, peunutoh mobile muncul
   ≤600px   : mobile, padding kecil
────────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .ps-hero { grid-template-columns: 1fr 260px; }
  .ps-layout { grid-template-columns: 1fr 250px; }
  .ps-layout__sidebar { width: 250px; }
  .ps-basa__card { flex: 0 0 calc(33.33% - 10px); }
}

@media (max-width: 900px) {
  /* Hero single kolom */
  .ps-hero { grid-template-columns: 1fr; align-items: start; }

  /* Hero kiri lebih pendek di tablet */
  .ps-hero__left { max-height: 280px; min-height: 200px; }

  /* Sembunyikan peunutoh desktop */
  .ps-hero__right { display: none; }

  /* Peunutoh mobile: separator jelas dari hero */
  .ps-peunutoh-mobile {
    display: block;
    margin-top: 16px;                  /* gap putih dari hero */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
  }

  /* Header peunutoh: label + link */
  .ps-peunutoh-mobile__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px;
    background: #053d6a;
    border-top: 3px solid #f59e0b;     /* accent kuning = pemisah visual dari hero */
    margin-bottom: 0;
  }
  .ps-peunutoh-mobile__head .ps-hero__right-label {
    font-size: 13px; font-weight: 700; color: #fff;
    border-left: 3px solid #f59e0b; padding-left: 8px;
  }
  .ps-peunutoh-mobile__head .ps-hero__right-more {
    font-size: 11px; color: #f59e0b; font-weight: 600;
  }

  /* List: SAMA SEPERTI DESKTOP – gambar kiri, teks kanan */
  .ps-peunutoh-mobile__list {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
  }
  [data-theme="dark"] .ps-peunutoh-mobile__list { background: #1c2330; border-color: #30363d; }

  .ps-peunutoh-mobile__item {
    display: grid;
    grid-template-columns: 88px 1fr;   /* image kiri, text kanan */
    text-decoration: none;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    transition: background .2s;
    min-height: 72px;
  }
  [data-theme="dark"] .ps-peunutoh-mobile__item { background: #1c2330; border-color: #30363d; }
  .ps-peunutoh-mobile__item:last-child { border-bottom: none; }
  .ps-peunutoh-mobile__item:hover { background: #f4f6f8; }

  .ps-peunutoh-mobile__item img {
    width: 88px;
    height: 88px;       /* gambar fixed square */
    min-height: 88px;
    max-height: 88px;
    object-fit: cover;
    display: block;
    align-self: stretch;
  }
  .ps-peunutoh-mobile__item {
    /* TIDAK pakai max-height – biarkan teks menentukan tinggi row */
    min-height: 72px;
    align-items: stretch;
  }
  .ps-peunutoh-mobile__body {
    padding: 8px 10px;
    display: flex; flex-direction: column;
    gap: 3px; justify-content: center; min-width: 0;
  }
  .ps-peunutoh-mobile__title {
    font-size: 13px; font-weight: 600; color: #1a1a2e; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  [data-theme="dark"] .ps-peunutoh-mobile__title { color: #e6edf3; }

  /* Basa 2 kolom */
  .ps-basa__card { flex: 0 0 calc(50% - 7px); }
  .ps-basa__card-img { height: 120px; }  /* sedikit lebih pendek di tablet */

  /* Layout single kolom – sidebar tampil di bawah konten (untuk iklan mobile) */
  .ps-layout { grid-template-columns: 1fr; gap: 0; padding: 20px 0 32px; }
  .ps-layout__sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: static;
    width: 100%;
    margin-top: 16px;
  }
}

@media (max-width: 600px) {
  .ps-hero-wrap { padding: 10px 12px 0; }
  .ps-page-wrap { padding: 0 12px; }
  .ps-breaking-bar__inner { padding: 0 12px; }
  /* Hero lebih pendek di mobile */
  .ps-hero__left {
    max-height: 260px;
    aspect-ratio: 16 / 9;
    min-height: 200px;
  }
  .ps-basa__card { flex: 0 0 72%; }   /* sedikit lebih kecil agar terlihat ada card berikutnya */
  .ps-basa__card-img { height: 115px; }
  .ps-basa__card-body { padding: 8px 10px 10px; }
  .ps-basa__card-title { font-size: 12px; -webkit-line-clamp: 3; }
  .ps-basa__card-date { font-size: 11px; margin-top: 3px; }
  .ps-slide__title { font-size: 16px; line-height: 1.3; }
  .ps-slide__content { padding: 14px 12px; }
  .ps-slide__meta { display: none; }  /* hemat ruang di mobile kecil */
}

/* ============================================================
   PRINT STYLES – Homepage
   Strategi: layout 1 kolom seperti mobile, semua konten visible
============================================================ */
@media print {

  /* ── Kertas & warna ────────────────────────────────────── */
  @page { size: A4 portrait; margin: 10mm 10mm 14mm 10mm; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  html, body { background: #f4f6f8 !important; font-size: 9pt !important; }

  /* ── Sembunyikan iklan & elemen non-konten ─────────────── */
  .site-header, .header-nav, .nav-sticky,
  .ps-ad-wrap, ins.adsbygoogle, .google-auto-placed,
  .ps-breaking-bar,
  .ps-basa-gap, .ps-basa,
  .ps-peunutoh-mobile,
  footer,
  .section-header .view-all,
  .ps-basa__nav,
  .slider-dot, .ps-slider__arrows, .ps-slider__dots { display: none !important; }

  /* ── Kop & footer print ────────────────────────────────── */
  .ps-print-header {
    display: block !important;
    border-bottom: 2pt solid #053d6a !important;
    padding-bottom: 6pt !important; margin-bottom: 10pt !important;
  }
  .ps-print-site-name {
    font-size: 16pt !important; font-weight: 800 !important;
    color: #053d6a !important; display: block !important;
  }
  .ps-print-site-url, .ps-print-date {
    font-size: 7.5pt !important; color: #6b7280 !important;
    display: block !important; margin-top: 1pt !important;
  }
  .ps-print-footer {
    display: block !important;
    border-top: 1px solid #e2e8f0 !important;
    margin-top: 12pt !important; padding-top: 5pt !important;
    font-size: 7.5pt !important; color: #888 !important; text-align: center !important;
  }

  /* ── Wrapper: 1 kolom penuh ────────────────────────────── */
  .ps-page-wrap  { max-width: 100% !important; padding: 0 !important; }
  .ps-hero-wrap  { max-width: 100% !important; padding: 0 0 10pt !important; overflow: visible !important; }

  /* ── HERO: 2 kolom (slider kiri + peunutoh kanan) ──────── */
  .ps-hero {
    display: grid !important;
    grid-template-columns: 1fr 170pt !important;
    gap: 8pt !important;
    align-items: stretch !important;
  }

  /* Hero kiri: fix position absolute agar gambar muncul */
  .ps-hero__left {
    position: relative !important;
    border-radius: 6px !important; overflow: hidden !important;
    height: 170pt !important;
    background: #111 !important;
  }
  .ps-hero__slider {
    position: absolute !important; inset: 0 !important;
    width: 100% !important; height: 100% !important;
  }
  /* Semua slide tersembunyi kecuali yang aktif */
  .ps-slide { display: none !important; position: absolute !important; inset: 0 !important; }
  .ps-slide.is-active { display: block !important; }
  .ps-slide > a { display: block !important; width: 100% !important; height: 100% !important; }
  .ps-slide img {
    width: 100% !important; height: 100% !important;
    object-fit: cover !important; display: block !important;
  }
  .ps-slide__overlay {
    position: absolute !important; inset: 0 !important;
    background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.15) 55%, transparent 100%) !important;
    pointer-events: none !important;
  }
  .ps-slide__content {
    position: absolute !important; bottom: 0 !important; left: 0 !important; right: 0 !important;
    padding: 10pt 10pt !important; z-index: 2 !important;
  }
  .ps-slide__cat {
    display: inline-block !important; background: #e8232a !important; color: #fff !important;
    font-size: 7pt !important; font-weight: 800 !important;
    padding: 2pt 6pt !important; border-radius: 2px !important;
    text-transform: uppercase !important; letter-spacing: 1px !important;
    margin-bottom: 5pt !important;
  }
  .ps-slide__title {
    font-size: 12pt !important; font-weight: 700 !important;
    line-height: 1.3 !important; color: #fff !important; margin: 0 0 3pt !important;
  }
  .ps-slide__title a { color: #fff !important; text-decoration: none !important; }
  .ps-slide__meta { font-size: 7.5pt !important; color: rgba(255,255,255,.8) !important; }

  /* Hero kanan: Peunutoh */
  .ps-hero__right {
    display: flex !important; flex-direction: column !important;
    background: #fff !important; border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important; overflow: hidden !important; height: 170pt !important;
  }
  .ps-hero__right-head {
    display: flex !important; align-items: center !important; justify-content: space-between !important;
    padding: 6pt 8pt !important; background: #053d6a !important; flex-shrink: 0 !important;
  }
  .ps-hero__right-label {
    font-size: 8pt !important; font-weight: 700 !important; color: #fff !important;
    border-left: 3px solid #f59e0b !important; padding-left: 5pt !important;
  }
  .ps-hero__right-list {
    flex: 1 !important; display: flex !important;
    flex-direction: column !important; overflow: hidden !important;
  }
  .ps-hero__post {
    display: grid !important; grid-template-columns: 52pt 1fr !important;
    flex: 1 !important; min-height: 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    text-decoration: none !important; background: #fff !important;
  }
  .ps-hero__post:last-child { border-bottom: none !important; }
  .ps-hero__post-img { overflow: hidden !important; flex-shrink: 0 !important; }
  .ps-hero__post-thumb {
    width: 52pt !important; height: 100% !important;
    object-fit: cover !important; display: block !important;
  }
  .ps-hero__post-body {
    padding: 4pt 6pt !important; display: flex !important; flex-direction: column !important;
    gap: 2pt !important; justify-content: center !important; min-width: 0 !important;
  }
  .ps-hero__post-cat { font-size: 6.5pt !important; font-weight: 800 !important; color: #c41e24 !important; text-transform: uppercase !important; }
  .ps-hero__post-title { font-size: 8pt !important; font-weight: 600 !important; line-height: 1.3 !important; color: #1a1a2e !important; }
  .ps-hero__post-date { font-size: 6.5pt !important; color: #5a6a7a !important; }

  /* ── LAYOUT UTAMA: 1 kolom (konten full, sidebar di bawah) ─ */
  .ps-layout {
    display: block !important;
    padding: 8pt 0 0 !important;
  }
  .ps-layout__content { min-width: 0 !important; display: block !important; }
  .ps-layout__sidebar {
    display: block !important; position: static !important;
    width: 100% !important; top: auto !important;
    margin-top: 12pt !important;
    columns: 2 !important; column-gap: 14pt !important;
  }
  .ps-layout__sidebar .sidebar-widget {
    break-inside: avoid !important;
    -webkit-column-break-inside: avoid !important;
    display: inline-block !important; width: 100% !important;
    margin-bottom: 10pt !important;
  }

  /* ── SECTION: card & border tetap ─────────────────────── */
  .content-section {
    background: #fff !important; border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important; overflow: visible !important;
    margin-bottom: 10pt !important; page-break-inside: avoid !important;
  }
  .section-header {
    display: flex !important; align-items: center !important; gap: 7pt !important;
    padding: 6pt 10pt !important; border-bottom: 1px solid #e2e8f0 !important;
    background: #fff !important;
  }
  .section-header::before {
    content: '' !important; display: block !important; flex-shrink: 0 !important;
    width: 4px !important; height: 14px !important;
    background: #e8232a !important; border-radius: 2px !important;
  }
  .section-header h2 { font-size: 9.5pt !important; font-weight: 700 !important; color: #1a1a2e !important; }

  /* ── TERBARU LEAD ──────────────────────────────────────── */
  .terbaru-lead {
    display: grid !important; grid-template-columns: 1fr 1fr !important;
    gap: 12pt !important; padding: 10pt 12pt !important;
    border-bottom: 1px solid #e2e8f0 !important; align-items: start !important;
  }
  .terbaru-lead-img {
    width: 100% !important; height: 130pt !important;
    object-fit: cover !important; border-radius: 4px !important; display: block !important;
  }
  .terbaru-lead-body { display: flex !important; flex-direction: column !important; gap: 6pt !important; }
  .post-badge {
    display: inline-block !important; background: #e8232a !important;
    color: #fff !important; font-size: 7pt !important; font-weight: 800 !important;
    padding: 2pt 7pt !important; border-radius: 3px !important;
    text-transform: uppercase !important; width: fit-content !important;
  }
  .post-title-xl {
    font-size: 12pt !important; font-weight: 800 !important;
    line-height: 1.3 !important; color: #1a1a2e !important;
  }
  .post-title-xl a { color: #1a1a2e !important; text-decoration: none !important; }
  .post-excerpt { font-size: 8pt !important; color: #4a5568 !important; line-height: 1.6 !important; }
  .post-meta-row { font-size: 7.5pt !important; color: #718096 !important; display: flex !important; gap: 8pt !important; }
  .post-meta-row a { color: #053d6a !important; }

  /* ── TERBARU GRID: 3 kolom ─────────────────────────────── */
  .terbaru-grid {
    display: grid !important; grid-template-columns: repeat(3,1fr) !important;
  }
  .news-card {
    background: #fff !important; display: flex !important; flex-direction: column !important;
    border-right: 1px solid #e2e8f0 !important; border-bottom: 1px solid #e2e8f0 !important;
    page-break-inside: avoid !important; overflow: visible !important;
  }
  .terbaru-grid .news-card:nth-child(3n) { border-right: none !important; }
  .terbaru-grid .news-card:nth-last-child(-n+3) { border-bottom: none !important; }
  .news-card-thumb {
    width: 100% !important; height: 80pt !important;
    object-fit: cover !important; display: block !important; flex-shrink: 0 !important;
  }
  .news-card-body {
    padding: 5pt 7pt 7pt !important; display: flex !important;
    flex-direction: column !important; gap: 3pt !important; flex: 1 !important;
  }
  .news-card-cat {
    font-size: 6.5pt !important; font-weight: 800 !important; color: #c41e24 !important;
    text-transform: uppercase !important; letter-spacing: .8px !important;
    border-left: 2px solid #c41e24 !important; padding-left: 4pt !important;
    display: inline-block !important;
  }
  .news-card-title {
    font-size: 8pt !important; font-weight: 700 !important;
    line-height: 1.35 !important; color: #1a1a2e !important;
  }
  .news-card-title a { color: #1a1a2e !important; text-decoration: none !important; }
  .news-card-meta { font-size: 6.5pt !important; color: #5a6a7a !important; }

  /* ── CATEGORY SECTIONS ─────────────────────────────────── */
  /* Variant B & C: force tampil (disembunyikan di desktop CSS) */
  .ps-cat-b__featured,
  .ps-cat-c__mag { display: block !important; }
  .ps-cat-b .news-list,
  .ps-cat-c .news-list { display: grid !important; }

  /* Variant B: featured + list */
  .ps-cat-b__img-link {
    display: block !important; position: relative !important;
    overflow: hidden !important;
  }
  .ps-cat-b__img { width: 100% !important; height: 130pt !important; object-fit: cover !important; display: block !important; }
  .ps-cat-b__overlay {
    position: absolute !important; inset: 0 !important;
    background: linear-gradient(to top, rgba(0,0,0,.78) 0%, transparent 55%) !important;
  }
  .ps-cat-b__meta {
    position: absolute !important; bottom: 0 !important; left: 0 !important; right: 0 !important;
    padding: 8pt 10pt !important; color: #fff !important;
  }
  .ps-cat-b__badge {
    display: inline-block !important; background: #e8232a !important;
    font-size: 7pt !important; font-weight: 800 !important;
    padding: 2pt 6pt !important; border-radius: 2px !important;
    text-transform: uppercase !important; margin-bottom: 4pt !important; color: #fff !important;
  }
  .ps-cat-b__title { font-size: 11pt !important; font-weight: 700 !important; color: #fff !important; line-height: 1.3 !important; }
  .ps-cat-b__date { font-size: 7pt !important; opacity: .8 !important; color: #fff !important; margin-top: 3pt !important; }

  /* Variant C: magazine */
  .ps-cat-c__mag {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    border-bottom: 1px solid #e2e8f0 !important;
    overflow: visible !important;
  }
  .ps-cat-c__main {
    position: relative !important; overflow: hidden !important;
    display: block !important; text-decoration: none !important;
    border-right: 1px solid #e2e8f0 !important; min-height: 130pt !important;
  }
  .ps-cat-c__main-img {
    width: 100% !important; height: 100% !important;
    min-height: 130pt !important; object-fit: cover !important; display: block !important;
  }
  .ps-cat-c__badge {
    position: absolute !important; top: 5pt !important; left: 5pt !important;
    display: inline-block !important; background: #053d6a !important;
    color: #fff !important; font-size: 7pt !important; font-weight: 800 !important;
    padding: 2pt 5pt !important; border-radius: 2px !important; text-transform: uppercase !important;
  }
  .ps-cat-c__main-title {
    position: absolute !important; bottom: 0 !important; left: 0 !important; right: 0 !important;
    padding: 6pt 8pt 8pt !important;
    background: linear-gradient(to top, rgba(0,0,0,.82) 0%, transparent 100%) !important;
    font-size: 9pt !important; font-weight: 700 !important; color: #fff !important; line-height: 1.3 !important;
  }
  .ps-cat-c__main-date {
    position: absolute !important; bottom: 5pt !important; right: 5pt !important;
    font-size: 7pt !important; color: rgba(255,255,255,.65) !important;
  }
  .ps-cat-c__side { display: flex !important; flex-direction: column !important; }
  .ps-cat-c__side-item {
    display: flex !important; flex-direction: column !important; flex: 1 !important;
    text-decoration: none !important; border-bottom: 1px solid #e2e8f0 !important;
    background: #fff !important; overflow: hidden !important;
  }
  .ps-cat-c__side-item:last-child { border-bottom: none !important; }
  .ps-cat-c__side-img { width: 100% !important; height: 60pt !important; object-fit: cover !important; display: block !important; }
  .ps-cat-c__side-title {
    font-size: 8pt !important; font-weight: 600 !important;
    color: #1a1a2e !important; line-height: 1.3 !important; padding: 4pt 6pt 2pt !important;
  }
  .ps-cat-c__side-date { font-size: 7pt !important; color: #5a6a7a !important; padding: 0 6pt 4pt !important; }

  /* NEWS LIST: 2 kolom */
  .news-list { display: grid !important; grid-template-columns: 1fr 1fr !important; }
  .news-list-item {
    display: grid !important; grid-template-columns: 60pt 1fr !important;
    gap: 6pt !important; padding: 6pt 8pt !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
    page-break-inside: avoid !important;
  }
  .news-list-item:nth-child(even) { border-right: none !important; }
  .news-list-item:nth-last-child(-n+2) { border-bottom: none !important; }
  .news-list-img { width: 60pt !important; height: 44pt !important; object-fit: cover !important; border-radius: 3px !important; display: block !important; flex-shrink: 0 !important; }
  .news-list-body { display: flex !important; flex-direction: column !important; gap: 2pt !important; min-width: 0 !important; }
  .news-list-cat {
    font-size: 6.5pt !important; font-weight: 800 !important; color: #c41e24 !important;
    text-transform: uppercase !important; letter-spacing: .8px !important;
    border-left: 2px solid #c41e24 !important; padding-left: 4pt !important; display: inline-block !important;
  }
  .news-list-title { font-size: 8pt !important; font-weight: 700 !important; line-height: 1.35 !important; color: #1a1a2e !important; }
  .news-list-title a { color: #1a1a2e !important; text-decoration: none !important; }
  .news-list-meta { font-size: 7pt !important; color: #5a6a7a !important; }

  /* FOTO GRID: 3 kolom */
  .foto-grid { display: grid !important; grid-template-columns: repeat(3,1fr) !important; gap: 6pt !important; padding: 7pt 9pt !important; }
  .foto-item {
    position: relative !important; border-radius: 4px !important;
    overflow: hidden !important; aspect-ratio: 4/3 !important; display: block !important;
  }
  .foto-item img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
  .foto-overlay {
    position: absolute !important; inset: 0 !important;
    background: linear-gradient(to top, rgba(0,0,0,.72), transparent 60%) !important;
    display: flex !important; align-items: flex-end !important; padding: 6pt !important;
  }
  .foto-caption { color: #fff !important; font-size: 7pt !important; font-weight: 600 !important; line-height: 1.3 !important; }

  /* PENDAPAT */
  .pendapat-list { display: flex !important; flex-direction: column !important; padding: 8pt 10pt !important; gap: 8pt !important; }
  .pendapat-item {
    display: grid !important; grid-template-columns: 36pt 1fr !important;
    gap: 7pt !important; padding-bottom: 8pt !important;
    border-bottom: 1px solid #e2e8f0 !important; align-items: start !important;
    page-break-inside: avoid !important;
  }
  .pendapat-item:last-child { border-bottom: none !important; padding-bottom: 0 !important; }
  .author-avatar { width: 36pt !important; height: 36pt !important; border-radius: 50% !important; object-fit: cover !important; display: block !important; }
  .author-name { font-size: 7pt !important; font-weight: 700 !important; color: #053d6a !important; margin-bottom: 2pt !important; }
  .pendapat-title { font-size: 8pt !important; font-weight: 700 !important; line-height: 1.35 !important; color: #1a1a2e !important; text-decoration: none !important; display: block !important; }
  .pendapat-meta { font-size: 7pt !important; color: #718096 !important; }

  /* ── SIDEBAR: 2 kolom di bawah konten ──────────────────── */
  .sidebar-widget {
    background: #fff !important; border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important; overflow: hidden !important;
    page-break-inside: avoid !important; margin-bottom: 10pt !important;
  }
  .widget-header {
    background: #053d6a !important; padding: 5pt 8pt !important;
    display: flex !important; align-items: center !important; gap: 5pt !important;
  }
  .widget-header h3 { font-size: 8pt !important; font-weight: 700 !important; color: #fff !important; }
  .widget-icon { display: inline !important; font-size: 8pt !important; }
  .widget-body { padding: 7pt 9pt !important; }
  .trending-list { display: flex !important; flex-direction: column !important; gap: 5pt !important; }
  .trending-item {
    display: flex !important; gap: 5pt !important; align-items: flex-start !important;
    padding-bottom: 5pt !important; border-bottom: 1px dashed #e2e8f0 !important;
    page-break-inside: avoid !important;
  }
  .trending-item:last-child { border-bottom: none !important; }
  .trending-rank { font-size: 12pt !important; font-weight: 800 !important; color: #e2e8f0 !important; min-width: 16pt !important; line-height: 1 !important; flex-shrink: 0 !important; }
  .trending-item:nth-child(1) .trending-rank { color: #e8232a !important; }
  .trending-item:nth-child(2) .trending-rank { color: #f59e0b !important; }
  .trending-item:nth-child(3) .trending-rank { color: #94a3b8 !important; }
  .trending-title { font-size: 7.5pt !important; font-weight: 700 !important; line-height: 1.35 !important; color: #1a1a2e !important; }
  .trending-meta  { font-size: 6.5pt !important; color: #5a6a7a !important; margin-top: 1pt !important; }
  .popular-list { display: flex !important; flex-direction: column !important; }
  .popular-item {
    display: grid !important; grid-template-columns: 44pt 1fr !important;
    gap: 5pt !important; padding: 5pt 0 !important;
    border-bottom: 1px solid #e2e8f0 !important; page-break-inside: avoid !important;
  }
  .popular-item:last-child { border-bottom: none !important; }
  .popular-img { width: 44pt !important; height: 33pt !important; object-fit: cover !important; border-radius: 3px !important; display: block !important; }
  .popular-title { font-size: 7.5pt !important; font-weight: 700 !important; line-height: 1.35 !important; color: #1a1a2e !important; }
  .popular-meta  { font-size: 6.5pt !important; color: #5a6a7a !important; }
  .tag-cloud { display: flex !important; flex-wrap: wrap !important; gap: 3pt !important; }
  .tag-pill {
    display: inline-block !important; background: #eef0f3 !important;
    color: #4a5568 !important; font-size: 7pt !important; font-weight: 600 !important;
    padding: 2pt 6pt !important; border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
  }
  .sidebar-cat-list { display: flex !important; flex-direction: column !important; }
  .sidebar-cat-list li { border-bottom: 1px solid #e2e8f0 !important; }
  .sidebar-cat-list li:last-child { border-bottom: none !important; }
  .sidebar-cat-list li a {
    display: flex !important; align-items: center !important;
    gap: 5pt !important; padding: 4pt 2pt !important;
    font-size: 7.5pt !important; color: #4a5568 !important; text-decoration: none !important;
  }
  .sidebar-cat-count {
    background: #eef0f3 !important; color: #4a5568 !important;
    font-size: 6.5pt !important; font-weight: 700 !important;
    padding: 1pt 5pt !important; border-radius: 10px !important; margin-left: auto !important;
  }
  .sidebar-cat-rank {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    width: 13pt !important; height: 13pt !important; border-radius: 3px !important;
    background: #053d6a !important; color: #fff !important;
    font-size: 6.5pt !important; font-weight: 800 !important; flex-shrink: 0 !important;
  }

  /* ── Page break ─────────────────────────────────────────── */
  .content-section, .sidebar-widget { page-break-inside: avoid !important; }
  h2, h3 { page-break-after: avoid !important; }
}
