.news-detail-page {
  max-width: 800px; /* Lebar artikel dibatasi agar nyaman dibaca */
  margin: 0 auto;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.news-article {
  background: var(--bg-main);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.article-header {
  padding: 2rem 2rem 0;
}

.article-title {
  font-size: 2rem;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Galeri Foto Berita — diganti dari object-fit:cover (yang bikin foto ke-crop di layar lebar)
   menjadi object-fit:contain, supaya foto SELALU terlihat utuh, baik di mobile maupun desktop. */
.article-gallery {
  margin: 1.5rem 2rem;
}

.article-gallery-main {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft-gray);
}

.article-gallery-main img {
  width: 100%;
  height: auto;
  max-height: 550px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.article-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.article-gallery-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: opacity var(--transition-fast), border-color var(--transition-fast);
}

.article-gallery-thumb:hover { opacity: 1; }
.article-gallery-thumb.active { opacity: 1; border-color: var(--primary-color); }

.article-content {
  padding: 0 2rem 2rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-content p {
  margin-bottom: 1.25rem;
}

/* Responsif untuk Mobile */
@media (max-width: 768px) {
  .article-title {
    font-size: 1.5rem;
  }
  .article-header, .article-content {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .article-gallery {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
  }
  .article-gallery-main img {
    max-height: 320px;
  }
}