/* ==========================================
   3. HEADER TANGENT PENUH + MENU BIRU + TEKS PUTIH + GARIS ANIMASI
   (tambahan, letakkan di paling bawah)
========================================== */

/* ---- Latar belakang halaman & wadah utama bersih putih total ---- */
html,
body, 
body #container, 
body .pkp_structure_page,
body .pkp_structure_site {
  background: #ffffff !important;
  background-image: none !important;
}

/* ---- Banner Header: Biru Full Rata (Hapus gradasi, bayangan, dan gambar latar tema) ---- */
body .pkp_structure_head,
body .pkp_structure_head .pkp_head_wrapper,
body header#headerNavigationContainer {
  background: #0073aa !important;
  background-image: none !important;
  box-shadow: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

body .pkp_structure_head::before,
body .pkp_structure_head::after {
  background: none !important;
  content: none !important;
  display: none !important;
}

/* ---- Area Menu Bar (Navigasi Primer) di bawah Banner: Background Biru ---- */
body .pkp_structure_head .pkp_navigation_primary_row,
body .pkp_structure_head .pkp_navigation_primary_wrapper {
  background: #0073aa !important;
  background-image: none !important;
  width: 100% !important;
  max-width: 100% !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Hilangkan garis sisa/border di bawah menu */
body .pkp_structure_page::before,
body .pkp_structure_page::after,
body .pkp_head_wrapper::before,
body .pkp_head_wrapper::after {
  display: none !important;
  content: none !important;
}

/* ---- Logo memenuhi lebar banner biru ---- */
body .pkp_structure_head .pkp_site_name_wrapper,
body .pkp_structure_head .pkp_site_name {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body .pkp_structure_head .pkp_site_name .is_img,
body .pkp_structure_head .pkp_site_name a {
  display: block !important;
  width: 100% !important;
}

body .pkp_structure_head .pkp_site_name img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
}

/* ---- Semua teks menu atas & search jadi PUTIH ---- */
body .pkp_structure_head .pkp_navigation_primary > li > a,
body .pkp_structure_head .pkp_navigation_primary > li > a:hover,
body .pkp_structure_head .pkp_navigation_primary > li > a:focus,
body .pkp_structure_head .pkp_navigation_user > li > a,
body .pkp_structure_head .pkp_navigation_user > li > a:hover,
body .pkp_structure_head .pkp_navigation_user > li > a:focus,
body .pkp_structure_head #navigationUser > li > a,
body .pkp_structure_head .pkp_navigation_search_wrapper a,
body .pkp_structure_head .pkp_navigation_search_wrapper a:hover,
body .pkp_structure_head .pkp_navigation_search_wrapper .fa {
  color: #ffffff !important;
  border-bottom-color: transparent !important;
}

/* ---- Garis animasi menu atas: kiri ke kanan (warna putih) ---- */
body .pkp_structure_head .pkp_navigation_primary > li > a,
body .pkp_structure_head .pkp_navigation_user > li > a,
body .pkp_structure_head .pkp_navigation_search_wrapper > a {
  position: relative !important;
}

body .pkp_structure_head .pkp_navigation_primary > li > a::after,
body .pkp_structure_head .pkp_navigation_user > li > a::after,
body .pkp_structure_head .pkp_navigation_search_wrapper > a::after {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 0% !important;
  height: 3px !important;
  background-color: #ffffff !important;
  transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

body .pkp_structure_head .pkp_navigation_primary > li > a:hover::after,
body .pkp_structure_head .pkp_navigation_primary > li > a:focus::after,
body .pkp_structure_head .pkp_navigation_user > li > a:hover::after,
body .pkp_structure_head .pkp_navigation_user > li > a:focus::after,
body .pkp_structure_head .pkp_navigation_search_wrapper > a:hover::after,
body .pkp_structure_head .pkp_navigation_search_wrapper > a:focus::after {
  width: 100% !important;
}

/* ---- Garis animasi sidebar: kiri ke kanan ---- */
.ojs-animated-sidebar li > a {
  background-image: linear-gradient(rgba(0, 115, 170, 0.6), rgba(0, 115, 170, 0.6)) !important;
  background-repeat: no-repeat !important;
  background-position: left bottom !important;
  background-size: 0% 3px !important;
  transition: background-size 0.6s cubic-bezier(0.25, 1, 0.5, 1), color 0.4s ease !important;
}

.ojs-animated-sidebar li:hover > a,
.ojs-animated-sidebar li > a:hover,
.ojs-animated-sidebar li > a:focus {
  background-size: 100% 3px !important;
}

/* ---- Footer: latar jadi putih ---- */
body .pkp_structure_footer_wrapper,
body .pkp_structure_footer,
body .pkp_footer_content,
body .pkp_structure_footer .pkp_footer_content,
body footer.footer {
  background: #ffffff !important;
  background-image: none !important;
}

body .pkp_structure_footer_wrapper {
  border-top: 1px solid #e5e5e5 !important;
}

/* ---- Logo indeksasi di deskripsi jurnal: diperbesar agar lebih jelas ---- */
p:has(> img[src*="/public/site/images/adminunim/screenshot-2026-11-11"]) {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 14px 20px !important;
  margin-top: 25px !important;
  padding-top: 18px !important;
  border-top: 1px solid #e5e5e5 !important;
}

img[src*="/public/site/images/adminunim/screenshot-2026-11-11"] {
  height: 36px !important; /* Diperbesar dari 22px menjadi 36px */
  width: auto !important;
  max-width: 120px !important; /* Lebar maksimum disesuaikan secara proporsional */
  max-height: 36px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pkp_structure_footer p:has(> img[src*="/public/site/images/adminunim/screenshot-2026-11-11"]),
.pkp_footer_content p:has(> img[src*="/public/site/images/adminunim/screenshot-2026-11-11"]) {
  margin-top: 0 !important;
  margin-bottom: 25px !important;
}

/* ---- Pengaturan Posisi Logo Indeksasi di atas Footer ---- */
body .pkp_structure_content {
  position: relative !important;
  padding-bottom: 125px !important; /* Ruang bawah disesuaikan agar logo yang lebih besar pas */
}

body .pkp_structure_content p:has(> img[src*="/public/site/images/adminunim/screenshot-2026-11-11"]) {
  position: absolute !important;
  left: 40px !important;
  right: 40px !important;
  bottom: 20px !important;
  margin: 0 !important;
}

@media (min-width: 992px) {
  body .pkp_structure_content p:has(> img[src*="/public/site/images/adminunim/screenshot-2026-11-11"]) {
    right: 34% !important;
  }
}

/* ==========================================
   TAMBAHAN: GARIS SIDEBAR TETAP JALAN
   MESKIPUN CLASS DIHAPUS EDITOR OJS
========================================== */

html body .pkp_structure_sidebar .pkp_block.block_custom ul li > a,
html body .pkp_block.block_custom ul li > a {
  background-image: linear-gradient(rgba(0, 115, 170, 0.6), rgba(0, 115, 170, 0.6)) !important;
  background-repeat: no-repeat !important;
  background-position: left bottom !important;
  background-size: 0% 3px !important;
  transition: background-size 0.6s cubic-bezier(0.25, 1, 0.5, 1), color 0.4s ease !important;
}

html body .pkp_structure_sidebar .pkp_block.block_custom ul li > a:hover,
html body .pkp_structure_sidebar .pkp_block.block_custom ul li > a:focus,
html body .pkp_block.block_custom ul li > a:hover,
html body .pkp_block.block_custom ul li > a:focus {
  background-size: 100% 3px !important;
}

/* ==========================================
   TAMBAHAN: BANNER FULL LEBAR + MENU NAVY
   (warna navy banner & menu bar dikembalikan)
========================================== */

:root {
  --navy: #001f5b;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

/* 1. Matikan gambar latar tema di area header */
html body .pkp_structure_head,
html body .pkp_structure_head *,
html body header#headerNavigationContainer,
html body header#headerNavigationContainer * {
  background-image: none !important;
  box-shadow: none !important;
}

/* 2. Wadah header: penuh, navy, tanpa garis */
html body .pkp_structure_head,
html body header#headerNavigationContainer {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--navy) !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
}

/* 3. Pembungkus di dalamnya: lepas dari batas lebar tema */
html body .pkp_structure_head .pkp_head_wrapper,
html body .pkp_structure_head .pkp_site_name_wrapper,
html body .pkp_structure_head .pkp_site_name {
  position: static !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  background: transparent !important;
  border: none !important;
}

/* 4. Banner memenuhi seluruh lebar layar */
html body .pkp_structure_head .pkp_site_name a,
html body .pkp_structure_head .pkp_site_name .is_img {
  display: block !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

html body .pkp_structure_head .pkp_site_name img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  vertical-align: top !important;
}

/* 5. Menu bar: penuh, navy, satu baris */
html body .pkp_structure_head .pkp_navigation_primary_row,
html body .pkp_structure_head .pkp_navigation_primary_wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  background: var(--navy) !important;
  border: none !important;
}

html body .pkp_structure_head .pkp_navigation_primary_wrapper {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  padding: 0 24px !important;
}

html body .pkp_structure_head .pkp_navigation_primary {
  display: flex !important;
  flex-wrap: nowrap !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  background: transparent !important;
}

html body .pkp_structure_head .pkp_navigation_primary > li > a {
  white-space: nowrap !important;
  padding: 14px 12px !important;
  font-size: 14px !important;
  color: #ffffff !important;
}

html body .pkp_structure_head .pkp_navigation_search_wrapper {
  float: none !important;
  width: auto !important;
  margin: 0 0 0 auto !important;
  background: transparent !important;
}

/* 6. Hapus garis putih/oranye dari pseudo-element */
html body .pkp_structure_head::before,
html body .pkp_structure_head::after,
html body .pkp_head_wrapper::before,
html body .pkp_head_wrapper::after,
html body .pkp_site_name_wrapper::before,
html body .pkp_site_name_wrapper::after,
html body .pkp_navigation_primary_row::before,
html body .pkp_navigation_primary_row::after,
html body .pkp_structure_page::before,
html body .pkp_structure_page::after {
  content: none !important;
  display: none !important;
}

html body .pkp_structure_content {
  border-top: none !important;
  margin-top: 0 !important;
}

/* Garis animasi menu atas tetap tampil (putih) */
html body .pkp_structure_head .pkp_navigation_primary > li > a,
html body .pkp_structure_head .pkp_navigation_user > li > a,
html body .pkp_structure_head .pkp_navigation_search_wrapper > a {
  position: relative !important;
}
html body .pkp_structure_head .pkp_navigation_primary > li > a::after,
html body .pkp_structure_head .pkp_navigation_user > li > a::after,
html body .pkp_structure_head .pkp_navigation_search_wrapper > a::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 0% !important;
  height: 3px !important;
  background-color: #ffffff !important;
  transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
html body .pkp_structure_head .pkp_navigation_primary > li > a:hover::after,
html body .pkp_structure_head .pkp_navigation_primary > li > a:focus::after,
html body .pkp_structure_head .pkp_navigation_user > li > a:hover::after,
html body .pkp_structure_head .pkp_navigation_user > li > a:focus::after,
html body .pkp_structure_head .pkp_navigation_search_wrapper > a:hover::after,
html body .pkp_structure_head .pkp_navigation_search_wrapper > a:focus::after {
  width: 100% !important;
}

/* ==========================================
   TAMBAHAN: LOGO INDEKSASI MEMANJANG SAMPAI KOLOM SIDEBAR
========================================== */

@media (min-width: 992px) {
  html body .pkp_structure_content p:has(> img[src*="/public/site/images/adminunim/screenshot-2026-11-11"]) {
    left: 40px !important;
    right: 40px !important;
    width: auto !important;
    justify-content: center !important;
  }
}

/* ==========================================
   TAMBAHAN: KOTAK LOGO INDEKSASI (DIV) MEMANJANG SAMPAI SIDEBAR
========================================== */

@media (min-width: 992px) {

  /* Ruang bawah ditambah supaya kotak logo tidak menimpa konten */
  html body .pkp_structure_content {
    position: relative !important;
    padding-bottom: 200px !important;
  }

  /* Kotak logo dibentangkan penuh, melewati kolom sidebar */
  html body .pkp_structure_content div:has(> img[src*="/public/site/images/adminunim/screenshot-2026-11-11"]) {
    position: absolute !important;
    left: 40px !important;
    right: 40px !important;
    bottom: 20px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 14px 26px !important;
    padding: 16px 20px !important;
  }
}

/* ==========================================
   TAMBAHAN: GARIS PEMISAH SIDEBAR TIDAK MENIMPA LOGO INDEKSASI
========================================== */

@media (min-width: 992px) {
  html body .pkp_structure_content div:has(> img[src*="/public/site/images/adminunim/screenshot-2026-11-11"]),
  html body .pkp_structure_content p:has(> img[src*="/public/site/images/adminunim/screenshot-2026-11-11"]) {
    background: #ffffff !important;
    z-index: 9999 !important;
  }
}
