/* ============================================================
   berita-detail.css
   ============================================================ */

#navbar {
  background: rgba(10, 37, 64, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 30px rgba(10, 37, 64, 0.20);
}

.article-hero {
  position: relative;
  overflow: hidden;
  padding: 122px 0 42px;
  background:
    radial-gradient(circle at top left, rgba(240, 180, 41, 0.18), transparent 24%),
    radial-gradient(circle at bottom right, rgba(28, 107, 178, 0.18), transparent 28%),
    linear-gradient(145deg, #071525 0%, #0d2137 56%, #14324f 100%);
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 50%);
  pointer-events: none;
}

.article-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.68);
  flex-wrap: wrap;
}

.article-breadcrumb a,
.article-breadcrumb span {
  color: rgba(255, 255, 255, 0.72);
}

.article-breadcrumb a:hover {
  color: var(--white);
}

.article-breadcrumb i {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.72rem;
}

.article-category {
  margin-bottom: 14px;
}

.article-hero h1 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.18;
  max-width: 860px;
}

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.article-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.article-hero-meta i {
  color: var(--primary);
}

.article-featured-wrap {
  margin-top: 26px;
  margin-bottom: 30px;
}

.article-featured-img {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(15, 76, 129, 0.08);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(145deg, #f7fbff, #eef4fb);
  display: grid;
  place-items: center;
  padding: 18px;
}

.article-featured-img img {
  width: auto;
  max-width: 100%;
  max-height: min(72vh, 560px);
  height: auto;
  display: block;
  object-fit: contain;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
  padding-bottom: 84px;
}

.article-hero + .article-layout {
  margin-top: 24px;
}

.article-body {
  padding: 34px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(15, 76, 129, 0.08);
  box-shadow: var(--shadow);
}

.article-excerpt {
  margin: 0 0 30px;
  padding: 18px 0 18px 18px;
  border-left: 4px solid var(--primary);
  color: var(--muted);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.85;
  background: linear-gradient(90deg, rgba(240, 180, 41, 0.08), transparent);
}

.article-content {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content div,
.article-content p {
  margin: 0;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content table,
.article-content blockquote {
  margin-bottom: 14px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 34px 0 14px;
  color: var(--secondary);
  line-height: 1.3;
}

.article-content h2 {
  font-size: 1.55rem;
}

.article-content h3 {
  font-size: 1.25rem;
}

.article-content ul,
.article-content ol {
  padding-left: 22px;
}

.article-content li {
  margin-bottom: 4px;
}

.article-content blockquote {
  padding: 18px 22px;
  border-left: 4px solid var(--primary);
  border-radius: 0 18px 18px 0;
  background: rgba(240, 180, 41, 0.10);
  color: var(--muted);
  font-style: italic;
}

.article-content img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
}

.article-content th,
.article-content td {
  padding: 12px 14px;
  border: 1px solid rgba(15, 76, 129, 0.10);
  text-align: left;
}

.article-content th {
  background: rgba(15, 76, 129, 0.06);
}

.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 24px 0;
  margin: 34px 0 26px;
  border-top: 1px solid rgba(15, 76, 129, 0.10);
  border-bottom: 1px solid rgba(15, 76, 129, 0.10);
}

.article-share span {
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 800;
}

.share-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--btn-border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-bg);
  color: var(--white);
  transition: var(--transition);
  box-shadow: 0 10px 20px rgba(28, 107, 178, 0.24);
}

.share-btn:hover {
  transform: translateY(-3px) scale(1.04);
  background: var(--gold);
  color: var(--dark);
  border-color: rgba(240, 180, 41, 0.5);
  box-shadow: 0 14px 24px rgba(216, 157, 16, 0.28);
}

.article-body .btn.btn-dark {
  background: var(--btn-bg);
  color: var(--white);
  border: 1px solid var(--btn-border);
  box-shadow: 0 12px 22px rgba(28, 107, 178, 0.24);
}

.article-body .btn.btn-dark:hover {
  background: var(--primary);
  color: var(--dark);
  border-color: rgba(240, 180, 41, 0.5);
  box-shadow: 0 16px 26px rgba(216, 157, 16, 0.28);
}

.article-sidebar {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 108px;
}

.sidebar-widget {
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(15, 76, 129, 0.08);
  box-shadow: var(--shadow);
}

.widget-head {
  padding: 16px 20px;
  background: linear-gradient(135deg, #0f4c81, #1c6bb2);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
}

.widget-head i {
  margin-right: 8px;
  color: var(--primary);
}

.widget-body {
  padding: 16px 18px;
}

.widget-news-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 76, 129, 0.08);
  transition: transform .24s ease, background .24s ease, border-color .24s ease;
  border-radius: 12px;
}

.widget-news-item:first-child {
  padding-top: 0;
}

.widget-news-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.widget-news-item:hover {
  transform: translateX(4px);
  background: rgba(240, 180, 41, 0.1);
  border-color: rgba(240, 180, 41, 0.3);
}

.widget-news-thumb {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0f4c81, #1c6bb2);
}

.widget-news-thumb img,
.widget-news-thumb .media-placeholder {
  width: 100%;
  height: 100%;
}

.widget-news-thumb img {
  object-fit: cover;
}

.widget-news-thumb .media-placeholder,
.related-card-img .media-placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.34);
  font-size: 1.8rem;
  background: linear-gradient(135deg, #0f4c81, #1c6bb2);
}

.related-card-img {
  display: grid;
  place-items: center;
}

.related-card-img .media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 100%;
  font-size: 3.15rem;
  color: rgba(255, 255, 255, 0.24);
}

.related-card-img .media-placeholder i {
  display: block;
  line-height: 1;
}

.widget-news-info a {
  display: block;
  margin-bottom: 6px;
  color: var(--secondary);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.widget-news-info a:hover {
  color: var(--primary-dark);
}

.widget-news-info span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.widget-cats {
  display: grid;
}

.widget-cats li {
  border-bottom: 1px solid rgba(15, 76, 129, 0.08);
}

.widget-cats li:last-child {
  border-bottom: none;
}

.widget-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color .24s ease, transform .24s ease, background .24s ease;
}

.widget-cats a:hover {
  color: var(--primary-dark);
  transform: translateX(4px);
  background: rgba(240, 180, 41, 0.12);
}

.widget-cats a:hover .badge {
  background: rgba(240, 180, 41, 0.18);
  color: #9a6900;
}

.related-articles {
  padding: 74px 0 86px;
  background: linear-gradient(180deg, #f5f8fc 0%, #edf3f9 100%);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.related-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(15, 76, 129, 0.08);
  box-shadow: var(--shadow);
  transform: translateZ(0);
  transform-style: preserve-3d;
  transition: transform .34s cubic-bezier(.2,.8,.2,1), box-shadow .34s cubic-bezier(.2,.8,.2,1), border-color .28s ease;
}

.related-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(28, 107, 178, 0.22);
  opacity: 0;
  transform: scale(.98);
  transition: opacity .28s ease, transform .28s ease, border-color .28s ease;
  pointer-events: none;
}

.related-card:hover {
  transform: translateY(-8px) translateZ(22px) rotateX(1.8deg);
  border-color: rgba(28, 107, 178, 0.28);
  box-shadow: 0 28px 48px rgba(10, 37, 64, 0.22);
}

.related-card:hover::after {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(28, 107, 178, 0.42);
}

.related-card-img {
  height: 190px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f4c81, #1c6bb2);
}

.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.related-card:hover .related-card-img img {
  transform: scale(1.07);
}

.related-card:hover h4 {
  color: var(--primary-dark);
}

.related-card-body {
  padding: 20px;
  transition: transform .3s ease;
}

.related-card:hover .related-card-body {
  transform: translateY(-2px);
}

.related-badge {
  margin-bottom: 10px;
}

.related-card h4 {
  margin-bottom: 12px;
  color: var(--secondary);
  font-size: 1.02rem;
  line-height: 1.45;
}

.related-card-meta {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.related-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.related-card-meta i {
  color: var(--primary-dark);
}

@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .article-hero {
    padding: 112px 0 34px;
  }

  .article-body {
    padding: 24px 22px;
    border-radius: 24px;
  }

  .article-featured-wrap {
    margin-top: 18px;
  }

  .article-featured-img {
    border-radius: 24px;
    padding: 12px;
  }

  .article-hero-meta span {
    width: 100%;
    justify-content: flex-start;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}
