/* ==========================================
   BERITA-DETAIL.CSS
   ========================================== */

/* ── Hero artikel ── */
.bd-hero {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: var(--ink);
}
.bd-hero-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: 0.45;
}
.bd-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,10,14,0.85) 0%, rgba(20,10,14,0.2) 60%, transparent 100%);
}
.bd-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px 0 44px;
}
.bd-hero-content .container { max-width: 860px; }
.bd-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
}
.bd-breadcrumb a { color: rgba(255,255,255,0.75); }
.bd-breadcrumb a:hover { color: #fff; }
.bd-breadcrumb svg { width: 13px; height: 13px; }
.bd-category {
  display: inline-block;
  background: var(--primary); color: #fff;
  font-size: 0.75rem; font-weight: 700; letter-spacing: .05em;
  padding: 4px 14px; border-radius: 100px;
  margin-bottom: 14px;
}
.bd-hero-content h1 {
  font-size: 2.2rem; font-weight: 800;
  color: #fff; margin: 0 0 18px; line-height: 1.2;
}
.bd-meta {
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap;
}
.bd-meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: rgba(255,255,255,0.75);
}
.bd-meta-item svg { width: 15px; height: 15px; }

/* ── Layout utama ── */
.bd-main { padding: 56px 0 80px; }
.bd-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* ── Konten artikel ── */
.bd-article { min-width: 0; }
.bd-article-body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--ink-soft);
}
.bd-article-body p { margin: 0 0 20px; }
.bd-article-body h2 { font-size: 1.4rem; font-weight: 800; color: var(--ink); margin: 36px 0 14px; }
.bd-article-body h3 { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 28px 0 10px; }
.bd-article-body ul, .bd-article-body ol { margin: 0 0 20px; padding-left: 24px; }
.bd-article-body li { margin-bottom: 8px; }
.bd-article-body strong { color: var(--ink); font-weight: 700; }
.bd-article-body a { color: var(--primary); text-decoration: underline; }
.bd-article-body blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  margin: 24px 0; padding: 18px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--ink);
  font-size: 1rem;
}

/* Tags */
.bd-tags {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-top: 36px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.bd-tags-label { font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }
.bd-tag {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 100px; font-size: 0.8rem; font-weight: 600;
  color: var(--ink-soft); padding: 4px 14px;
  transition: all .15s ease; text-decoration: none;
}
.bd-tag:hover { border-color: var(--primary); color: var(--primary); }

/* Share */
.bd-share {
  display: flex; align-items: center; gap: 10px;
  margin-top: 24px; flex-wrap: wrap;
}
.bd-share-label { font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }
.bd-share-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); background: #fff;
  color: var(--ink); cursor: pointer;
  transition: all .15s ease; text-decoration: none;
}
.bd-share-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.bd-share-btn svg { width: 16px; height: 16px; }

/* Nav prev/next */
.bd-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 40px;
}
.bd-nav-btn {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px 20px;
  text-decoration: none; color: inherit;
  transition: all .2s ease; display: flex;
  flex-direction: column; gap: 6px;
}
.bd-nav-btn:hover { border-color: var(--primary); box-shadow: var(--shadow-card); }
.bd-nav-btn.next { text-align: right; }
.bd-nav-label {
  font-size: 0.75rem; font-weight: 700;
  color: var(--ink-soft); letter-spacing: .04em;
  display: flex; align-items: center; gap: 5px;
}
.bd-nav-btn.next .bd-nav-label { justify-content: flex-end; }
.bd-nav-label svg { width: 14px; height: 14px; }
.bd-nav-title {
  font-size: 0.9rem; font-weight: 700; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Sidebar ── */
.bd-sidebar { display: flex; flex-direction: column; gap: 32px; }

.bd-sidebar-box {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.bd-sidebar-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem; font-weight: 800; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.bd-sidebar-head svg { width: 16px; height: 16px; color: var(--primary); }

/* Berita terkait di sidebar */
.bd-related-list { padding: 8px 0; }
.bd-related-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 20px; text-decoration: none; color: inherit;
  transition: background .15s ease;
  border-bottom: 1px solid var(--border);
}
.bd-related-item:last-child { border-bottom: none; }
.bd-related-item:hover { background: var(--bg-soft); }
.bd-related-thumb {
  width: 64px; height: 48px; border-radius: 6px;
  overflow: hidden; flex-shrink: 0; background: var(--bg-soft-2);
}
.bd-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bd-related-info { flex: 1; min-width: 0; }
.bd-related-info h4 {
  font-size: 0.85rem; font-weight: 700; margin: 0 0 4px;
  color: var(--ink); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.bd-related-info span { font-size: 0.75rem; color: var(--ink-soft); }

/* Kategori di sidebar */
.bd-cat-list { padding: 12px 20px 16px; display: flex; flex-direction: column; gap: 4px; }
.bd-cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; text-decoration: none; color: var(--ink-soft);
  font-size: 0.9rem; font-weight: 500;
  border-bottom: 1px solid var(--border); transition: color .15s ease;
}
.bd-cat-item:last-child { border-bottom: none; }
.bd-cat-item:hover { color: var(--primary); }
.bd-cat-count {
  background: var(--bg-soft); border-radius: 100px;
  font-size: 0.75rem; font-weight: 700; color: var(--ink-soft);
  padding: 2px 10px;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .bd-hero { height: 380px; }
  .bd-hero-content h1 { font-size: 1.7rem; }
  .bd-layout { grid-template-columns: 1fr; }
  .bd-sidebar { order: -1; }
  .bd-related-list { display: grid; grid-template-columns: 1fr 1fr; }
  .bd-related-item { border-bottom: none; border-right: 1px solid var(--border); }
  .bd-related-item:nth-child(even) { border-right: none; }
}
@media (max-width: 640px) {
  .bd-hero { height: 300px; }
  .bd-hero-content h1 { font-size: 1.35rem; }
  .bd-nav { grid-template-columns: 1fr; }
  .bd-related-list { grid-template-columns: 1fr; }
  .bd-related-item { border-right: none; border-bottom: 1px solid var(--border); }
}
