/* =====================================================================
   BERITA TERKINI v2 — lapisan desain di atas style.css (khusus halaman berita).
   Gaya majalah: tipografi baca yang nyaman, kartu lebih bersih, artikel
   statis dengan bilah progres, tombol bagikan, & navigasi artikel.
   Tanpa neon/glow; animasi pendek.
   ===================================================================== */
:root {
  --nw-gold: #facc15;
  --nw-gold-2: #f59e0b;
  --nw-ink: #e8eef7;
  --nw-soft: #9fb0c5;
  --nw-card: rgba(15, 28, 46, .78);
  --nw-card-2: rgba(9, 18, 31, .92);
  --nw-radius: 18px;
}

/* ---------- bilah progres baca (artikel statis) ---------- */
.news-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 2000; pointer-events: none; }
.news-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--nw-gold), var(--nw-gold-2)); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- landing ---------- */
.news-hero-compact { position: relative; overflow: hidden; }
.news-hero-compact::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(250,204,21,.35), transparent); }
.news-hero-compact-inner h1 { font-weight: 800; letter-spacing: -1px; }
.news-hero-compact-inner h1::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--nw-gold), var(--nw-gold-2)); }
.news-hero-card { border-radius: 22px; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.news-hero-media img { transition: transform .5s ease; }
.news-hero-card:hover .news-hero-media img { transform: scale(1.03); }
.news-hero-title { font-size: clamp(1.2rem, 2.6vw, 1.85rem); font-weight: 800; }
.news-headline-list { padding: 6px 16px; border: 1px solid var(--line); border-radius: 22px; background: var(--nw-card); }
.news-headline-item { position: relative; padding: 13px 0 13px 18px; }
.news-headline-item::before { content: ""; position: absolute; left: 0; top: 19px; width: 7px; height: 7px; border-radius: 50%; background: var(--nw-gold); }

/* ---------- kartu ---------- */
.news-mini-card { border-radius: var(--nw-radius); background: linear-gradient(160deg, var(--nw-card), var(--nw-card-2)); }
.news-mini-card:hover { transform: translateY(-3px); }
.news-mini-media { overflow: hidden; }
.news-mini-media img { transition: transform .4s ease; }
.news-mini-card:hover .news-mini-media img { transform: scale(1.05); }
.news-mini-media.is-empty { background: linear-gradient(135deg, #16233b, #0a1524) url("https://i.ibb.co/N6QjSXMW/cf486a22-b7cc-4e19-9b24-1b3515f697b6.png") center / 56px no-repeat; }
.news-mini-title { font-size: 13px; height: 72px; }
.news-row { border-radius: var(--nw-radius); }
.news-row-media img { transition: transform .4s ease; }
.news-row:hover .news-row-media img { transform: scale(1.05); }
.news-home-section-head h2 { font-size: 19px; font-weight: 800; }
.news-home-section-head h2::after { content: ""; flex: 0 0 34px; height: 3px; margin-left: 4px; border-radius: 3px; background: linear-gradient(90deg, var(--nw-gold), transparent); }

/* ---------- artikel ---------- */
.news-static .news-article-box,
.news-article-box { padding: clamp(20px, 4vw, 44px); border-radius: 24px; background: linear-gradient(170deg, var(--nw-card), var(--nw-card-2)); }
.news-article-eyebrow { justify-content: flex-start; gap: 10px 16px; }
.news-article-title { font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 800; line-height: 1.22; letter-spacing: -.8px; margin-bottom: 18px; }
.news-article-byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.news-article-byline .news-article-source { margin: 0; padding: 0; border: 0; color: var(--nw-soft); font-size: 12.5px; }
.news-article-byline .news-article-source b { color: var(--nw-ink); font-weight: 700; }
.news-share { display: inline-flex; gap: 8px; }
.news-share a, .news-share button { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #cbd5e1; background: rgba(255,255,255,.03); font-size: 14px; text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.news-share a:hover, .news-share button:hover { color: #07111f; background: var(--nw-gold); border-color: transparent; }
.news-share .is-done { color: #07111f; background: #22c55e; border-color: transparent; }

.news-article-body { max-width: 720px; margin: 0 auto; color: var(--nw-ink); font-family: 'Lora', Georgia, serif; font-size: 17.5px; line-height: 1.85; }
.news-article-body > p:first-of-type img { margin-top: 0; }
.news-article-body img { border-radius: 18px; box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.news-article-body figure { margin: 8px 0 26px; }
.news-article-body figure img { margin-bottom: 8px; }
.news-article-body figcaption { color: var(--nw-soft); font-family: 'Poppins', sans-serif; font-size: 11.5px; text-align: center; }
.news-article-body h2, .news-article-body h3 { margin: 30px 0 12px; color: #fff; font-family: 'Poppins', sans-serif; font-weight: 800; line-height: 1.3; letter-spacing: -.3px; }
.news-article-body h2 { font-size: 1.35em; }
.news-article-body h3 { font-size: 1.15em; }
.news-article-body blockquote { margin: 22px 0; padding: 14px 20px; border-left: 4px solid var(--nw-gold); border-radius: 0 14px 14px 0; background: rgba(250,204,21,.06); color: #f1f5f9; font-style: italic; }
.news-article-body ul, .news-article-body ol { margin: 0 0 20px 1.3em; }
.news-article-body li { margin-bottom: 8px; }
.news-article-body a { color: #7dd3fc; text-underline-offset: 3px; }
.news-baca-juga { max-width: 720px; margin-left: auto; margin-right: auto; padding: 14px 18px; border-left: 4px solid var(--nw-gold); border-radius: 0 14px 14px 0; font-family: 'Poppins', sans-serif; }

.news-article-origin { max-width: 720px; margin: 8px auto 0; color: var(--nw-soft); font-size: 12px; }
.news-article-origin a { color: var(--nw-soft); text-decoration: underline; text-underline-offset: 3px; }

.news-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 720px; margin: 30px auto 0; padding-top: 22px; border-top: 1px solid var(--line); }
.news-pn-item { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.news-pn-item.next { text-align: right; }
.news-pn-item span { color: var(--nw-gold); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.news-pn-item b { color: #e2e8f0; font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-pn-item:hover { border-color: rgba(250,204,21,.35); background: rgba(250,204,21,.05); }

/* ---------- indeks statis (tautan untuk mesin pencari, juga berguna bagi pembaca) ---------- */
.news-static-index { padding: 6px 20px 54px; }
.news-index-list { max-width: 1180px; margin: 0 auto; padding: 8px 22px; list-style: none; counter-reset: idx; columns: 2 380px; column-gap: 34px; border: 1px solid var(--line); border-radius: 20px; background: var(--nw-card); }
.news-index-list li { counter-increment: idx; break-inside: avoid; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 8px; padding: 11px 0; border-bottom: 1px solid rgba(148,163,184,.08); }
.news-index-list li::before { content: counter(idx, decimal-leading-zero); grid-row: 1 / 3; color: var(--nw-gold); font-size: 12px; font-weight: 800; padding-top: 2px; }
.news-index-list a { color: #dbe4f0; font-size: 13px; font-weight: 600; line-height: 1.45; text-decoration: none; }
.news-index-list a:hover { color: var(--nw-gold); }
.news-index-list time { color: #7f8ea2; font-size: 10.5px; margin-top: 3px; }
.news-layout + .news-static-index { padding-top: 0; }

/* ---------- footer berita & halaman informasi ---------- */
.news-footer { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 20px; border-top: 1px solid var(--line); }
.news-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.news-footer-links a { color: #9fb0c5; font-size: 12px; font-weight: 600; text-decoration: none; }
.news-footer-links a:hover { color: var(--nw-gold); }

.info-page main { padding: 120px 20px 60px; }
.info-card { max-width: 820px; margin: 0 auto; padding: clamp(22px, 4vw, 44px); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(170deg, var(--nw-card), var(--nw-card-2)); }
.info-card h1 { margin-bottom: 8px; color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -.6px; }
.info-card .info-updated { margin-bottom: 26px; color: var(--nw-soft); font-size: 12px; }
.info-card h2 { margin: 26px 0 10px; color: #fff; font-size: 1.1rem; font-weight: 800; }
.info-card p, .info-card li { color: #d5deea; font-size: 14.5px; line-height: 1.8; }
.info-card ul { margin: 0 0 14px 1.2em; }
.info-card a { color: #7dd3fc; }

.page-404 main { min-height: 70vh; display: grid; place-items: center; padding: 120px 20px 60px; text-align: center; }
.page-404 h1 { font-size: clamp(3rem, 10vw, 6rem); font-weight: 900; line-height: 1; background: linear-gradient(135deg, var(--nw-gold), var(--nw-gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-404 p { margin: 12px 0 22px; color: var(--nw-soft); }
.page-404 a.btn-home { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; color: #07111f; background: linear-gradient(135deg, var(--nw-gold), var(--nw-gold-2)); font-weight: 800; text-decoration: none; }

@media (max-width: 760px) {
  .news-article-body { font-size: 16.5px; line-height: 1.8; }
  .news-prevnext { grid-template-columns: 1fr; }
  .news-pn-item.next { text-align: left; }
  .news-index-list { columns: 1; padding: 6px 16px; }
}
@media (max-width: 620px) {
  .news-static-index { padding: 4px 14px 40px; }
  .news-article-byline { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .news-hero-media img, .news-mini-media img, .news-row-media img { transition: none; }
}

/* Baris byline lama di awal isi artikel ("LokalStore88 <tanggal>") sudah digantikan byline di kepala artikel statis -- disembunyikan
   (tampilan saja; isi artikel tidak diubah) supaya tanggal & nama brand tidak dobel/berbeda. */
.news-static .news-article-body > p:first-child[style*="font-size:13px"] { display: none; }
