/* ========================================
   1. HEADER & NAVIGATION JURNAL
======================================== */
.pkp_structure_head {
  background-color: #ffffff !important;
  border-bottom: 4px solid #df2029 !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative !important;
}

.pkp_site_nav_menu {
  background-color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Navigasi Utama (Kiri & Search) - Latar Putih, Teks Biru Gelap */
.pkp_navigation_primary > li > a,
a.pkp_search {
  color: #1c468e !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li.in_action > a,
a.pkp_search:hover,
a.pkp_search:focus {
  color: #df2029 !important;
  text-decoration: none;
}

/* Navigasi User (Kanan Atas) - Latar Putih, Teks Biru */


ul.pkp_navigation_primary ul,
ul.pkp_navigation_user ul {
  background-color: #ffffff !important;
  border: 1px solid #dfe3e8 !important;
  border-radius: 4px !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
  overflow: hidden !important;
  padding: 5px 0 !important;
}

ul.pkp_navigation_primary ul li a,
ul.pkp_navigation_user ul li a {
  color: #333333 !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  background-color: transparent !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Sembunyikan badge double di dalam dropdown menu */
ul.pkp_navigation_user ul li a .task_count {
  display: none !important;
}

.pkp_navigation_primary ul li a:hover,
.pkp_navigation_primary ul li a:focus,
.pkp_navigation_user ul li a:hover,
.pkp_navigation_user ul li a:focus {
  background-color: #f7f9fc !important;
  color: #1c468e !important;
}

/* ========================================
   PERBAIKAN NOTIFIKASI PROFIL (BADGE)
======================================== */

.pkp_navigation_user .task_count {
  background-color: #df2029 !important;
  color: #ffffff !important;
  font-size: 0.75rem !important;
  font-weight: bold !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  margin-left: 8px !important;
  margin-right: 4px !important;

  /* Membuat badge melingkar sempurna dan angka ke tengah */
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  line-height: 1 !important;
  
  /* PERBAIKAN: */
  padding: 0 !important; 
  transform: translateY(-1px) !important; 
}

/* ========================================
   2. TOMBOL PDF GALLEY
======================================== */
a.obj_galley_link.pdf {
  background-color: #df2029 !important;
  border-color: #c41c24 !important;
  color: #ffffff !important;
  font-weight: bold !important;
}

a.obj_galley_link.pdf:hover {
  background-color: #bf1a22 !important;
  border-color: #a6161d !important;
  color: #ffffff !important;
}

/* ========================================
   3. KARTU INFORMASI SIDEBAR ARTIKEL
======================================== */
.entry_details .item.published,
.entry_details .item.citation,
.entry_details .item.issue,
.entry_details .item.section,
.entry_details .item.copyright {
  background-color: #ffffff !important;
  border: 1px solid #dfe3e8 !important;
  margin-bottom: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05) !important;
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
}

.entry_details .item.published .label,
.entry_details .item.citation .label,
.entry_details .item.issue .label,
.entry_details .item.section .label,
.entry_details .item.copyright .label {
  background-color: #1c468e !important;
  color: #ffffff !important;
  text-align: center !important;
  padding: 11px 15px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.entry_details .item.published .value,
.entry_details .item.citation .value,
.entry_details .item.issue .value,
.entry_details .item.section .value,
.entry_details .item.copyright .value {
  padding: 15px !important;
  color: #333333 !important;
  font-size: 0.95rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ========================================
   4. SIDEBAR KUSTOM
======================================== */
.custom-sidebar-card {
  background: #ffffff;
  border: 1px solid #dfe3e8;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  font-family: "Segoe UI", Arial, sans-serif;
}

.custom-card-header {
  background: #1c468e;
  color: #ffffff;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 11px;
  line-height: 1.3;
}

.custom-card-body {
  padding: 12px;
  text-align: center;
  color: #333;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.custom-card-body.p-0 {
  padding: 0;
}
.custom-card-body strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.status-ongoing {
  display: inline-block;
  padding: 4px 12px;
  background: #fff5e6;
  border: 1px solid #ffd699;
  color: #d97706;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 4px;
}

/* Memaksa wadah utama (ul) agar menempel penuh tanpa jarak */
.custom-menu-list { 
  list-style: none !important; 
  margin: 0 !important; 
  padding: 0 !important; 
  width: 100% !important;
  display: block !important;
}

/* Memaksa setiap baris (li) agar penuh ke samping dan menghapus jarak bawaan OJS */
.custom-menu-list li { 
  border-bottom: 1px solid #ececec; 
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  display: block !important;
}

.custom-menu-list li:last-child {
  border-bottom: none;
}

.custom-menu-list a {
  display: flex;
  align-items: center;
  width: 100% !important; 
  box-sizing: border-box !important; 
  padding: 10px 14px;
  color: #2f2f2f;
  text-decoration: none;
  font-size: 1.1rem; 
  font-weight: 600;
  line-height: 1.4;
  transition: all 0.2s ease;
  border-left: 4px solid transparent;
}

.custom-menu-list a:hover { 
  background-color: #f4f7fb !important; /* Latar belakang berubah jadi biru sangat muda (soft blue) */
  color: #1c468e !important; /* Teksnya berubah jadi biru gelap tema Anda */
  border-left: 4px solid #df2029 !important; /* Garis merah tegas di kiri tetap dipertahankan */
  padding-left: 22px !important; /* Efek geser ke kanan */
}

.custom-menu-list img {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  flex-shrink: 0;
}

.custom-card-body.p-0 > .template-download-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 20px 14px !important;
  background-color: #ffffff;
  border-bottom: 1px solid #dfe3e8;
  text-decoration: none !important;
  color: #333333 !important;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center !important;
  transition: all 0.2s ease-in-out;
}

.template-download-btn img {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain;
  margin-bottom: 8px !important;
  flex-shrink: 0;
  transition: transform 0.2s ease-in-out;
}

.template-download-btn:hover {
  background-color: #f7faff !important;
  color: #1c468e !important;
}
.template-download-btn:hover img {
  transform: translateY(-3px);
}

.grid-box {
  display: block;
  text-decoration: none;
  color: #333;
  background: #fafafa;
  border: 1px solid #e4e4e4;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.grid-box:last-child {
  margin-bottom: 0;
}
.grid-box:hover {
  border-color: #1c468e;
  color: #1c468e;
  background: #ffffff;
}

.custom-card-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}
.stats-number {
  font-size: 2rem;
  font-weight: 700;
  color: #1c468e;
  line-height: 1;
}
.stats-label {
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #555;
}

/* ========================================
   5. KUSTOMISASI FOOTER
======================================== */
.pkp_structure_footer_wrapper {
  background-color: #1c468e !important;
  color: #ffffff !important;
  border-top: 4px solid #df2029 !important;
  padding: 20px 0 !important;
}

/* Warna link dalam footer agar terlihat jelas */
.pkp_structure_footer_wrapper a {
  color: #f2b83d !important; /* Warna kuning emas */
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.pkp_structure_footer_wrapper a:hover,
.pkp_structure_footer_wrapper a:focus {
  color: #ffffff !important;
  text-decoration: underline !important;
}

.pkp_brand_footer {
  display: none !important;
}

/* ========================================
   6. BOXED LAYOUT & BACKGROUND 
======================================== */
body {
  background-image: url("https://umischolar.org/index.php/scope/libraryFiles/downloadPublic/5") !important;
  background-repeat: repeat !important;
  background-attachment: fixed !important;
  background-color: #e9ecef !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.pkp_structure_page {
  max-width: 1250px !important;
  margin: 0 auto !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6) !important;
  min-height: 100vh !important;
}

/* ========================================
   7. PERBAIKAN HALAMAN DETAIL ARTIKEL
======================================== */
.obj_article_details {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
}

.obj_article_details .main_entry {
  flex: 1 !important;
  border-right: none !important;
}

.obj_article_details .entry_details {
  flex: 0 0 300px !important;
  width: 300px !important;
  border-left: none !important;
  padding-left: 0 !important;
}

.obj_article_details .page_title {
  border-bottom: none !important;
  padding-bottom: 15px !important;
  margin-bottom: 20px !important;
}

.obj_article_details .page_header,
.obj_article_details .header {
  border: none !important;
  margin: 0 !important;
}

/* ========================================
   8. MOBILE / RESPONSIVE (WAJIB DI PALING BAWAH)
======================================== */
@media (max-width: 768px) {
  body {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .obj_article_details .entry_details {
    flex: 100% !important;
    width: 100% !important;
  }

  .pkp_structure_page {
    box-shadow: none !important;
    margin: 0 auto !important;
  }
}

/* ========================================
   10. ARTICLE LIST CARDS (HOME/ISSUE PAGE) - DESAIN MODERN
======================================== */
.cmp_article_list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.cmp_article_list > li {
  margin-bottom: 20px !important; /* Jarak antar kartu diperlebar sedikit agar lega */
}

/* Tampilan Utama Kartu Artikel (Full Border Style) */
.obj_article_summary {
  background: #ffffff !important;
  border: 1px solid #1c468e !important; /* Garis penuh berwarna biru mengelilingi kartu */
  border-radius: 6px !important; /* Sudut membulat tipis */
  padding: 20px 25px !important;
  box-shadow: none !important; /* Menghilangkan efek melayang/bayangan agar terlihat rata (flat) */
  transition: all 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
}

/* Efek Hover pada Kartu */
.obj_article_summary:hover {
  border: 1px solid #df2029 !important; /* Border berubah menjadi merah saat kursor diarahkan */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important; /* Bayangan sangat halus saat di-hover */
  transform: translateY(-2px) !important; /* Terangkat sangat sedikit agar terasa interaktif */
}

/* Judul Artikel */
.obj_article_summary .title {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  line-height: 1.4 !important;
}

.obj_article_summary .title a {
  color: #1c468e !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.obj_article_summary .title a:hover {
  color: #df2029 !important;
}

/* Meta Data (Penulis & Halaman) */
.obj_article_summary .meta {
  font-size: 0.95rem !important;
  color: #555 !important;
  margin-bottom: 15px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  align-items: center !important;
}

.obj_article_summary .meta .authors {
  font-weight: 600 !important;
  color: #333 !important;
}

/* Tampilan Tag Halaman (Pages) - Diubah jadi bentuk "Pill" (Kapsul) */
.obj_article_summary .meta .pages {
  background-color: #eef2f7 !important; /* Biru sangat pudar */
  color: #1c468e !important; /* Teks biru gelap */
  padding: 4px 12px !important;
  border-radius: 20px !important; /* Bentuk kapsul melingkar */
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  border: none !important;
}

/* Bagian Bawah (Wadah Tombol PDF & Statistik) */
.obj_article_summary .galleys_links {
  margin-top: auto !important;
  padding-top: 15px !important;
  border-top: 1px dashed #dfe3e8 !important; /* Garis pemisah putus-putus */
  display: flex !important;
  gap: 10px !important;
}

.obj_article_summary .galleys_links li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Tombol PDF Galley */
.obj_article_summary .galleys_links a.pdf {
  display: inline-block !important;
  background-color: #df2029 !important;
  color: #ffffff !important;
  padding: 6px 16px !important;
  border-radius: 4px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  border: none !important;
}

.obj_article_summary .galleys_links a.pdf:hover {
  background-color: #bf1a22 !important;
  box-shadow: 0 4px 8px rgba(223, 32, 41, 0.3) !important; /* Efek menyala (glow) merah lembut di bawah tombol */
}

/* ========================================
   11. STATISTIK VIEWS & DOWNLOADS (OUTLINE BORDER)
======================================== */
.obj_article_summary .galleys_links a.obj_galley_link:not(.pdf) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background-color: transparent !important;
  color: #1c468e !important;
  border: 1px solid #1c468e !important;
  padding: 4px 12px !important;
  border-radius: 4px !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out !important;
}

.obj_article_summary .galleys_links a.obj_galley_link:not(.pdf):hover {
  background-color: #f4f7fb !important;
  color: #15346a !important;
  border-color: #15346a !important;
}

.obj_article_summary .galleys_links a.obj_galley_link:not(.pdf) span.fa {
  font-size: 0.9rem !important;
}

/* ========================================
   12. HAPUS IKON DOKUMEN BAWAAN PADA STATISTIK
======================================== */
.obj_article_summary .galleys_links a.obj_galley_link:not(.pdf)::before {
  display: none !important;
  content: none !important;
}

/* ========================================

/* ========================================
   13. FULL WIDTH HEADER BANNER (FINAL)
======================================== */
.pkp_structure_head .pkp_head_wrapper {
  padding: 0 !important;
  position: relative !important;
}


/* Pastikan banner melebar penuh mengikuti kontainer pkp_head_wrapper */
.pkp_structure_head .pkp_site_name_wrapper,
.pkp_structure_head .pkp_site_name,
.pkp_structure_head .pkp_site_name a.is_img {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 100% !important;
}

/* Gambar banner responsif dan penuh tanpa terpotong */
.pkp_structure_head .pkp_site_name img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  display: block !important;
  object-fit: fill !important;
  margin: 0 !important;
}

/* Fix Header Overlap di Mobile */
.pkp_structure_head,
.pkp_structure_head .pkp_head_wrapper {
  height: auto !important;
  min-height: 64px !important;
}

/* Penyesuaian Toggle Menu Hamburger di Mobile */
@media (max-width: 992px) {
  .pkp_structure_head .pkp_site_nav_toggle {
    position: relative !important;
    display: inline-block !important;
    margin: 10px !important;
    z-index: 200 !important;
  }
  
  .pkp_structure_head .pkp_site_name_wrapper {
    margin-top: 10px !important;
  }
}

/* Force mobile banner out of absolute positioning */
@media (max-width: 992px) {
  .pkp_structure_head .pkp_site_name_wrapper {
    position: relative !important;
    top: auto !important;
    left: 20px !important;
    transform: none !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
  }
}

/* Samakan lebar header dan nav dengan halaman konten */

.pkp_site_nav_menu .pkp_navigation_primary_row {
  max-width: 1250px !important;
  margin: 0 auto !important;
}

/* Biarkan header banner full screen (tidak dibatasi) */
.pkp_structure_head .pkp_head_wrapper {
  max-width: 100% !important;
  width: 100% !important;
}

/* Beri jarak padding pada navigasi agar tidak terlalu mepet ke kiri/kanan */
.pkp_site_nav_menu .pkp_navigation_primary_row {
  padding-left: 20px !important;
  padding-right: auto !important;
}

/* Styling Menu User (Login/Register) sebagai Tombol */
.pkp_navigation_user_wrapper {
  position: absolute !important;
  top: 15px !important;
  right: auto !important;
  z-index: 100 !important;
}

.pkp_navigation_user {
  display: flex !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.pkp_navigation_user > li > a {
  background-color: #1c468e !important;
  color: #ffffff !important;
  padding: 8px 18px !important;
  border-radius: 25px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
}

.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus {
  background-color: #df2029 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 10px rgba(223, 32, 41, 0.3) !important;
  text-decoration: none !important;
}

/* Pastikan posisinya mentok kanan, timpa semua bawaan OJS */
.pkp_navigation_user_wrapper {
  position: absolute !important;
  top: 15px !important;
  right: auto !important;
  left: 20px !important;
  transform: none !important;
  margin: 0 !important;
}

/* Fix posisi ke kanan */
#navigationUserWrapper, .pkp_navigation_user_wrapper {
  width: auto !important;
  right: auto !important;
  left: 20px !important;
  display: flex !important;
  justify-content: flex-start !important;
}

ul#navigationUser {
  justify-content: flex-start !important;
}