/* ========== GLOBAL ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(160deg, #121212, #1a1a1a);
  color: #fefefe;
  padding: 30px 20px;
  min-height: 100vh;
}

/* ========== CONTAINER ========== */
.container {
  max-width: 850px;
  margin: auto;
  background: #181818;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  padding: 30px;
  position: relative;
  overflow-wrap: break-word;
}

/* ========== BACK LINK ========== */
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #ffd700;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s;
}

.back-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ========== JUDUL & TANGGAL ========== */
.detail-card h1 {
  font-size: 2rem;
  color: #ffd700;
  margin-bottom: 10px;
}

.tanggal {
  font-size: 0.9em;
  color: #aaa;
  margin-bottom: 20px;
}

/* ========== GAMBAR ========== */
.gambar-detail {
  max-width: 100%;
  margin: 20px 0;
  border-radius: 10px;
  border: 1px solid #444;
  object-fit: cover;
  display: block;
}

/* ========== ISI BERITA ========== */
.isi-berita {
  font-size: 1.1em;
  line-height: 1.8;
  color: #e0e0e0;
  white-space: pre-line;
  margin-top: 10px;
  margin-bottom: 20px;
}

/* ========== TAUTAN ========== */
.isi-berita a {
  color: #ffd700;
  text-decoration: underline;
}

.isi-berita a:hover {
  color: #fff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  .detail-card h1 {
    font-size: 1.5rem;
  }
}
