/* =========================================================
   HAMUPA — SITE INDEX (daftar semua jurnal)
   Tempel di: Website Settings > Appearance > Advanced > Site Stylesheet
   (atau digabung dengan CSS header/navbar yang sudah ada)
   Setelah paste, clear cache OJS supaya perubahan terlihat.
   ========================================================= */

/* Judul section "Journals" di atas daftar */
.page_index_site .journals > h2 {
  border-left: 4px solid #166C8F;
  padding-left: 10px;
  color: #10202b;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

/* Reset list bawaan, beri jarak antar kartu */
.page_index_site .journals > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Kartu per jurnal */
.page_index_site .journals > ul > li {
  display: flex;
  gap: 20px;
  background: #ffffff;
  border: 1.5px solid #cfe3ea;
  border-radius: 18px;
  box-shadow: none;
  padding: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page_index_site .journals > ul > li:hover {
  border-color: #166C8F;
  box-shadow: 0 4px 14px rgba(22, 108, 143, 0.08);
}

/* Thumbnail cover — lebar tetap, tinggi menyesuaikan rasio asli gambar
   (tidak dipaksa, supaya tidak ada spasi kosong atau crop) */
.page_index_site .journals .thumb {
  flex: 0 0 150px;
  padding: 0 !important;
}

.page_index_site .journals .thumb a {
  display: block;
  padding: 0 !important;
  margin: 0 !important;
}

.page_index_site .journals .thumb img {
  display: block;
  width: 150px;
  height: auto;
  border-radius: 8px;
  border: 1px solid #eef1f4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Konten teks di sebelah cover */
.page_index_site .journals .body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.page_index_site .journals .body h3 {
  margin: 0 0 8px 0;
  font-size: 19px;
}

.page_index_site .journals .body h3 a {
  color: #10202b !important;
  text-decoration: none !important;
  font-weight: 700;
}

.page_index_site .journals .body h3 a:hover {
  color: #166C8F !important;
}

.page_index_site .journals .description {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
  text-align: justify;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.page_index_site .journals .body .links {
  margin-top: auto;
}

/* Tombol "View Journal" / "Current Issue" */
.page_index_site .journals .links {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.page_index_site .journals .links li a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
}

.page_index_site .journals .links li.view a {
  background: linear-gradient(135deg, #1D82AB, #166C8F);
  color: #ffffff !important;
}

.page_index_site .journals .links li.current a {
  background: #f4f9fb;
  color: #166C8F !important;
  border: 1px solid #d7e6eb;
}

.page_index_site .journals .links li a:hover {
  opacity: 0.85;
}

/* Responsif di layar kecil: cover pindah ke atas */
@media (max-width: 600px) {
  .page_index_site .journals > ul > li {
    flex-direction: column;
  }
  .page_index_site .journals .thumb {
    flex: 0 0 auto;
  }
  .page_index_site .journals .thumb img {
    width: 150px;
    height: auto;
    margin: 0 auto;
  }
}