/* =========================================================
   Yayasan Tashfiyyah Watarbiyah — berita.css
   Styling halaman blog untuk 1 berita (berita-detail.html)
   Warna disamakan dengan tema utama website (lihat style.css)
   ========================================================= */

:root {
  --br-emerald: #0f766e;
  --br-emerald-deep: #00504a;
  --br-gold: #c9a227;
  --br-cream: #f8f9fa;
  --br-ink: #191c1d;
  --br-gray: #3e4947;
  --br-line: #e5e7eb;
}

* {
  box-sizing: border-box;
}

.berita-body {
  margin: 0;
  background: var(--br-cream);
  color: var(--br-ink);
  font-family: "Plus Jakarta Sans", "Helvetica", "Arial", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */
.berita-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #ffffff;
  border-bottom: 1px solid var(--br-line);
}
.berita-header-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
}
.berita-back {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--br-emerald-deep);
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.berita-back svg {
  width: 20px;
  height: 20px;
}
.berita-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--br-gray);
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
}
.berita-header-brand img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.berita-header-brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Article ---------- */
.berita-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 24px;
}

.berita-loading {
  text-align: center;
  color: var(--br-gray);
  padding: 80px 0;
  font-size: 14px;
}

.berita-kategori {
  display: inline-block;
  color: var(--br-emerald);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.berita-judul {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--br-ink);
}

.berita-meta {
  color: var(--br-gray);
  font-size: 14px;
  margin-bottom: 28px;
}

.berita-cover {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
  background: #dfe4e2;
}
.berita-cover img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.berita-konten p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--br-gray);
  margin: 0 0 20px;
}

.berita-galeri {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.berita-galeri-item {
  border-radius: 12px;
  overflow: hidden;
  background: #dfe4e2;
}
.berita-galeri-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.berita-empty {
  text-align: center;
  padding: 80px 20px;
}
.berita-empty h1 {
  font-size: 22px;
  margin-bottom: 8px;
}
.berita-empty p {
  color: var(--br-gray);
  margin-bottom: 20px;
}
.berita-empty-link {
  color: var(--br-emerald);
  font-weight: 700;
  text-decoration: none;
}
.berita-empty-link:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.berita-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 20px 60px;
}
.berita-footer a {
  color: var(--br-emerald-deep);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.berita-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .berita-galeri {
    grid-template-columns: 1fr;
  }
}
