/* ===== Pustakaloka Pedia – Portal Jurnal (OJS 3.3 default theme) ===== */

/* --- Latar & lebar halaman: dikunci 1200px, tidak mencar saat zoom --- */
html { overflow-y: scroll; }
body {
  background: #eef3f5 url("https://i.ibb.co/GngLz03/batik-BC-Rev.png") fixed;
  font-family: "Noto Sans", Tahoma, Geneva, sans-serif;
  overflow-x: hidden;
}
.pkp_structure_page {
  width: 1200px;
  max-width: 100%;
  margin: 20px auto !important;
  padding: 0 !important;
  background: #fff;
  box-shadow: 0 6px 24px rgba(4, 30, 40, .18);
  border-radius: 6px;
  overflow: hidden;
}

/* --- Banner utama: proporsional, selalu selebar garis batas konten --- */
#headerNavigationContainer { max-height: none !important; background: #0a6b6a; }
.pkp_head_wrapper { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0; }
.pkp_site_name_wrapper { padding: 0 !important; margin: 0; }
.pkp_site_name { padding: 0 !important; margin: 0 !important; width: 100%; max-width: 100%; }
.pkp_site_name > a, .pkp_site_name .is_img { display: block; padding: 0 !important; margin: 0; line-height: 0; }
.pkp_site_name .is_img img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 1200 / 220;
}
.pkp_navigation_user_wrapper { top: 6px; right: 14px; padding-right: 0; z-index: 5; }
.pkp_navigation_user > li > a { color: #fff; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* --- Struktur: konten selebar banner (hilangkan margin bawaan tema) --- */
#headerNavigationContainer { background: #075a5e !important; padding: 0 !important; margin: 0 !important; }
.pkp_structure_head .pkp_head_wrapper, .pkp_structure_head .pkp_site_name_wrapper, .pkp_structure_head .pkp_site_name {
  width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; left: 0 !important; right: 0 !important; }
.pkp_structure_content { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.pkp_structure_main { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; float: none !important; }
.pkp_structure_main:before, .pkp_structure_main:after { display: none !important; }

/* --- Daftar jurnal: kartu ringkas --- */
.page_index_site { padding: 28px 32px 36px !important; margin: 0 !important; }
.page_index_site .journals { margin: 0; padding: 0; }
.page_index_site .journals > h2 {
  font-size: 1.5rem; font-weight: 700; color: #0b3b46;
  margin: 0 0 18px; padding-bottom: 10px; border-bottom: 3px solid #0e8f89;
}
.journals > ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 18px; }
.journals > ul > li {
  margin: 0 !important; padding: 0 !important; border: 1px solid #d9e6ea; border-left: 6px solid #0e8f89;
  border-radius: 8px; background: #fbfdfd; transition: box-shadow .2s, transform .2s; list-style: none;
}
.journals > ul > li:nth-child(3n+2) { border-left-color: #7ac01f; }
.journals > ul > li:nth-child(3n+3) { border-left-color: #ee8a1c; }
.journals > ul > li:hover { box-shadow: 0 6px 18px rgba(14, 143, 137, .18); transform: translateY(-2px); }
.journals > ul > li > .body { position: relative; padding: 18px 170px 16px 22px !important; margin: 0 !important; min-height: 190px; }
.journals > ul > li > .body h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.journals > ul > li > .body h3 a { color: #0b3b46; text-decoration: none; }
.journals > ul > li > .body h3 a:hover { color: #0e8f89; }

/* Sembunyikan sampul buku & keterangan panjang; sisakan ringkasan 3 baris */
.journals .description { margin: 0; padding: 0; }
.journals .description * { display: none !important; }
.journals .description .container-fluid { display: block !important; padding: 0; margin: 0; max-width: none; }
.journals .description p:first-of-type {
  display: -webkit-box !important; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; font-size: .92rem; line-height: 1.6; color: #415a63; text-align: left; margin: 0;
}
.journals .description p:first-of-type * { display: inline !important; }

/* Sampul di sisi kanan, ukuran seragam */
.journals > ul > li > .thumb { position: absolute; right: 22px; top: 18px; width: 112px; margin: 0 !important; padding: 0 !important; float: none !important; }
.journals > ul > li > .thumb img { display: block; width: 112px; height: 152px; object-fit: cover; border-radius: 4px; box-shadow: 0 4px 12px rgba(10, 60, 66, .28); }
.journals > ul > li { position: relative; }
.journals .description div:has(> img) { display: block !important; }
.journals .description img {
  display: block !important; position: absolute; right: 22px; top: 18px;
  width: 112px !important; height: 152px !important; max-width: none !important;
  object-fit: cover; border-radius: 4px; box-shadow: 0 4px 12px rgba(10, 60, 66, .28);
}

/* Tombol tautan */
.journals > ul > li > .body .links { display: flex; gap: 10px; margin: 12px 0 0 !important; padding: 0; list-style: none; }
.journals > ul > li > .body .links li { margin: 0; padding: 0; border: 0; list-style: none; }
.journals > ul > li > .body .links a {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: #0e8f89; color: #fff; font-size: .82rem; font-weight: 600; text-decoration: none;
}
.journals > ul > li > .body .links li:nth-child(2) a { background: #fff; color: #0e8f89; border: 1px solid #0e8f89; padding: 6px 15px; }
.journals > ul > li > .body .links a:hover { filter: brightness(1.1); }

/* --- Footer --- */
.pkp_structure_footer_wrapper { border-top: 4px solid #0e8f89; background: #f4f8f9; }
.pkp_footer_content { float: none; width: 100%; padding: 16px 32px; }
.pkp_brand_footer { float: none; width: 100%; padding: 0 32px 14px; text-align: right; }

/* --- Daftar artikel --- */
.obj_issue_toc .articles > li { margin-bottom: 20px; border-bottom: 2px solid #9fd3c7; }
.obj_article_details .abstract { text-align: justify; }

/* --- Layar kecil --- */
@media (max-width: 1230px) { .pkp_structure_page { margin: 0 auto !important; border-radius: 0; } }
@media (max-width: 640px) { .page_index_site { padding: 18px 14px 24px !important; } .journals > ul > li > .body { padding-right: 130px !important; } .journals .description img { width: 90px !important; height: 122px !important; right: 14px; } }

/* --- Sampul dari "Journal thumbnail" (mockup buku): paksa posisi kanan, ukuran seragam --- */
.journals > ul > li.has_thumb > .body { margin: 0 !important; padding: 18px 170px 16px 22px !important; width: auto !important; float: none !important; }
.journals > ul > li > .thumb {
  position: absolute !important; right: 22px !important; left: auto !important; top: 18px !important;
  width: 112px !important; height: 152px !important; margin: 0 !important; padding: 0 !important;
  float: none !important; background: none !important; border: 0 !important; box-shadow: none !important;
}
.journals > ul > li > .thumb a { display: block; width: 112px; height: 152px; }
.journals > ul > li > .thumb img { display: block; width: 112px !important; height: 152px !important; object-fit: cover; border-radius: 0; box-shadow: none !important; }
