/* pengaturan artikel main*/
.post-list-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 3px;
  margin-bottom: 3px;
  border-bottom: 1px solid #eeeeee;
}

/* Kotak Thumbnail Kiri */
.post-thumb-box {
  width: 240px;
  height: 150px;
  flex-shrink: 0;
  overflow: hidden;
  background-color: #f4f4f4;
}

.post-thumb-box a {
  display: block;
  width: 100%;
  height: 100%;
}

.post-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.post-list-item:hover .post-thumb-box img {
  transform: scale(1.04);
}

/* Area Konten Kanan */
.post-info-box {
  flex: 1;
  min-width: 0;
  font-family: Arial, Helvetica, sans-serif;
}

/* Kategori / Label di Atas Judul */
.post-meta-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 5px;
}

.post-cat-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #cc0000;
  background-color: #ffeeee;
  padding: 2px 6px;
  border-radius: 3px;
  text-decoration: none;
  line-height: 1.2;
}

.post-cat-badge:hover {
  background-color: #cc0000;
  color: #ffffff;
}

/* Tanggal / Waktu di bawah cuplikan artikel */
.post-meta-date {
  font-size: 11px;
  font-weight: 600;
  color: #0056b3;
  margin-top: 6px;
  display: block;
}

/* Waktu di bawah artikel saat dibuka penuh (Single Post) */
.single-post-footer-date {
  font-size: 12.5px;
  font-weight: 600;
  color: #0056b3;
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid #eeeeee;
}

/* Judul Artikel (Maksimal 2 Baris) */
.post-list-title {
  margin: 0 0 8px 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-list-title a {
  color: #111111;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-list-title a:hover {
  color: #cc0000;
}

/* Cuplikan / Snippet Isi Berita (Maksimal 3 Baris) */
.post-list-snippet {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: #666666;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tampilan Halaman Single Post (Saat Artikel Dibuka) */
.single-post-article h1.post-title {
  font-size: 26px;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #111111;
}

.single-post-body {
  font-size: 15px;
  line-height: 1.7;
  color: #222222;
}

/* Responsif untuk Layar HP */
@media screen and (max-width: 600px) {
  .post-list-item {
    display: flex;
    align-items: stretch;
    gap: 12px;
  }
  .post-thumb-box {
    width: 130px;
    min-height: 105px;
    height: auto;
  }
  .post-thumb-box a,
  .post-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .post-cat-badge {
    font-size: 9.5px;
    padding: 1.5px 5px;
  }
  .post-meta-date {
      display: block;
      font-size: 10px;
      margin-top: 4px;
    }
  .post-list-title {
    font-size: 14.5px;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .post-list-snippet {
    display: none;
  }
}
  
/*===================================================*/
/* Responsif List Berita untuk Layar HP */
@media screen and (max-width: 600px) {
  .post-list-item {
    display: flex !important;
    align-items: stretch !important;
    gap: 12px;
  }

  /* Kotak foto kiri */
  .post-thumb-box {
    width: 125px !important;
    min-height: 105px !important;
    height: auto !important;
    flex-shrink: 0;
  }

  /* Tag link pembungkus foto wajib 100% tinggi */
  .post-thumb-box a {
    display: block;
    width: 100%;
    height: 100%;
  }

  /* Foto penuh menutup kotak tanpa ruang kosong */
  .post-thumb-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Judul maksimal 4 baris */
  .post-list-title {
    font-size: 14.5px;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Sembunyikan cuplikan teks di tampilan HP */
  .post-list-snippet {
    display: none !important;
  }
  /* Kategori / Label hanya 1 baris di HP */
  .post-meta-categories {
    flex-wrap: nowrap;
    overflow: hidden;
    max-height: 18px;
    margin-bottom: 4px;
  }
  .post-cat-badge {
    font-size: 9px;
    padding: 1.5px 5px;
    white-space: nowrap;
    flex-shrink: 0;
  }
}