/* ========================================= */
/* CSS KHUSUS UNTUK HALAMAN BERITA  */
/* ========================================= */
.titel {
  margin-top: -20px;
}

.titel h2 {
  font-size: 2.8em;
  text-transform: uppercase;
  letter-spacing: 1px;

  color: #45bef7;
  text-shadow: 0px 1px #577079, 0px 2px #577079, 0px 3px #577079,
    0px 4px #577079, 0px 5px #577079, 0px 6px #577079, 0px 7px #577079,
    0px 7px 10px #333;
}

/* CARD GLOBAL */
.news-card {
  position: relative;
  height: 100%;
}

.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Overlay */
.news-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 20px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.1));
  border-radius: 12px;
}

.badge-category {
  background: #dc3545;
}

.judul1 {
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-align: justify;
}
.judul2 {
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-align: justify;
}

.penulis {
  font-size: 0.8rem;
  line-height: 1.2;
}

/* CARD KECIL (3 & 4) */
.small-news-col {
  display: flex;
}

.small-news-card img {
  height: 180px;
  object-fit: cover;
}

.news-card {
  height: 100%;
}

.small-news-badge {
  font-size: 0.6rem;
}
.small-news-title {
  font-size: 0.6rem;
  line-height: 1.2;
  letter-spacing: 0.3px;
  text-align: justify;
}

/* TABLET (769px – 991px) termasuk ukuran 811×641 */
@media (min-width: 769px) and (max-width: 991px) {
  .small-news-col {
    width: 100% !important;
    flex: 0 0 100%;
  }

  .small-news-card img {
    height: 260px !important;
  }

  .small-news-title {
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: 0.3px;
    text-align: justify;
  }
}

/* DESKTOP (≥ 992px) */
@media (min-width: 992px) {
  .equal-height-row > [class*="col-"] {
    display: flex;
  }
}

/* MOBILE VIEW */
@media (max-width: 768px) {
  .titel h2 {
    font-size: 1.8em;
  }
  .judul1 {
    font-size: 1rem;
    line-height: 1.2;
  }
  .judul2 {
    font-size: 1rem;
    line-height: 1.2;
  }
  .berita-card-small a {
    font-size: 1rem;
  }
  .small-news-col {
    width: 100% !important;
    flex: 0 0 100%;
  }

  .small-news-card img {
    height: 260px !important;
    width: 100%;
    object-fit: cover;
  }

  .small-news-title {
    font-size: 0.9rem;
  }

  .small-news-badge {
    font-size: 0.75rem;
  }
}
@media (max-width: 480px) {
  .judul1 {
    font-size: 0.8rem;
  }
  .judul2 {
    font-size: 0.8rem;
  }
  .berita-card-big {
    padding: 0 80px;
  }
}
@media (max-width: 360px) {
  .badge-category {
    font-size: 0.6rem;
  }
  .penulis {
    font-size: 0.6rem;
  }
  .judul1 {
    font-size: 0.65rem;
  }
  .judul2 {
    font-size: 0.65rem;
  }
  .small-news-title {
    font-size: 0.65rem;
  }
  .berita-card-small a {
    font-size: 0.65rem;
  }
  .berita-card-big {
    padding: 0 40px;
  }
}

/* ========================================= */
/* CSS KHUSUS UNTUK BERITA BIDANG            */
/* ========================================= */
/* -------------------------------------------------- */
/* CARD BESAR – KIRI (col-4)                          */
/* -------------------------------------------------- */
.berita-card-big {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e3e3e3;
  display: flex;
  flex-direction: column;
}

.berita-card-big h6 {
  font-weight: 600;
  color: #f74545;
  letter-spacing: 0.1rem;
}

.tombol-bidang h6 {
  color: darkred;
  font-weight: 600;
  letter-spacing: 0.1rem;
}

.btn-bidang {
  display: block; /* Supaya tombol ke bawah */
  width: 100%; /* Lebar full card */
  margin-bottom: 6px; /* Jarak antar tombol */
}

/* -------------------------------------------------- */
/* CARD KECIL – KANAN (8 item)                        */
/* -------------------------------------------------- */
.berita-card-small {
  width: 100%;
  height: 100px;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  display: flex;
  overflow: hidden;
}

.berita-card-small img {
  width: 130px;
  height: 100px;
  flex-shrink: 0;
  object-fit: cover;
  border-right: 1px solid #ddd;
}

.berita-card-small .judul {
  /* padding: 5px 7px; */
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2em;
  overflow: hidden;
  display: block;
  color: blue;
  text-decoration: none;
  text-align: justify;
}

.berita-card-small p {
  font-size: 0.8rem;
  line-height: 1.5em;
  color: darkred;
}

.titel-bidang h4 {
  font-size: 2.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;

  color: #f74545;
  text-shadow: 0px 1px #577079, 0px 2px #577079, 0px 3px #577079,
    0px 4px #577079, 0px 5px #577079, 0px 6px #577079, 0px 7px #577079,
    0px 7px 10px #333;
}

/* ============================ */
/* RESPONSIVE KHUSUS BERITA BIDANG */
/* ============================ */

/* --- TABLET & MOBILE (MAX 992px) --- */
@media (max-width: 992px) {
  /* card kecil (col-8) berubah jadi full dan besar */
  .berita-card.small {
    flex-direction: column;
    height: auto;
  }

  .berita-card.small img {
    width: 100%;
    height: 240px; /* ukuran serupa card besar */
    object-fit: cover;
  }

  /* teks judul */
  .berita-card.small .judul {
    font-size: 1rem;
    line-height: 1.3;
    height: auto; /* bebas tinggi */
    margin-top: 8px;
  }

  /* hilangkan batasan baris title & desc agar bebas */
  .berita-card.small .judul,
  .berita-card.small .deskripsi {
    height: auto;
    overflow: visible;
  }

  /* col menjadi 1 baris penuh */
  .col-6 {
    width: 100%;
    flex: 0 0 100%;
  }
  /* col menjadi 1 baris penuh */
  .col-4 {
    width: 100%;
    flex: 0 0 100%;
  }
}

/* --- MOBILE KECIL (MAX 576px) --- */
@media (max-width: 768px) {
  .titel-bidang h4 {
    font-size: 1.6rem;
  }
}

/* --- MOBILE KECIL (MAX 576px) --- */
@media (max-width: 480px) {
  .berita-card.small img {
    height: 220px;
  }

  .berita-card.small .judul {
    font-size: 0.95rem;
  }
  .titel-bidang h4 {
    font-size: 1.2rem;
  }
}

/* ========================================= */
/* CSS KHUSUS UNTUK DETAIL BERITA  */
/* ========================================= */
.detail-content {
  padding: 40px 0;
  background-color: #fff;
}

.berita-detail {
  max-width: 1080px;
  margin: 0 auto;
}

.berita-detail-title {
  font-size: 2em;
  margin-bottom: 15px;
  margin-top: -20px;
  line-height: 1.2;
  text-align: justify;
}

.berita-detail-meta {
  margin-bottom: 0;
}

.berita-detail-image {
  margin-top: 10px;
  margin-bottom: 10px;
}

.berita-detail-image img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.berita-detail-content {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: justify;
}

.btn-kembali {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--warna-aksen, #007bff);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.btn-kembali:hover {
  background-color: var(--warna-aksen-gelap, #0056b3);
}

@media (max-width: 768px) {
  .berita-detail-title {
    font-size: 1.8em;
    line-height: 1.1;
  }
}

@media (max-width: 468px) {
  .berita-detail-title {
    font-size: 1.4em;
    line-height: 1;
  }

  .berita-detail-meta {
    font-size: 0.9em;
  }

  .berita-detail-content {
    font-size: 1em;
    line-height: 1.4;
    text-align: justify;
    margin-top: 0;
  }
}
