/* =========================================
   1. GLOBAL STYLES & TYPOGRAPHY
========================================= */
body.page_index.op_index.has_site_logo {
  display: flex;
  flex-direction: column;
}

body p, a, li {
  font-size: 16px;
}

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-right: auto;
  margin-left: auto;
}

/* =========================================
   2. MAIN LAYOUT ORDER (FLEXBOX)
========================================= */
.page_index:not(.indexSite) .main-header {
  padding: 0px !important;
  background-color: #c1c1c1;
  order: 1;
}

aside { order: 2; }

main#immersion_content_main {
  order: 3;
  overflow: hidden;
}

footer#immersion_content_footer {
  order: 4;
  background-color: #e9e9e9;
}

/* =========================================
   3. HEADER & NAVIGATION
========================================= */
.main-header {
  background-color: #c1c1c1;
  position: relative;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  height: 100%;
}

.main-header__title {
  text-align: center;
  width: 100%;
  font-size: 1.5rem;
  line-height: 1.4;
  padding: 0.5rem 0;
  margin: -10px 0px 0px 0px;
}

.page_index:not(.indexSite) .main-header__title {
  text-align: center;
  margin: -10px 0px 0px 0px !important;
  min-width: 100%;
  height: 100%;
  background-color: #c1c1c1;
}

.main-header__nav-link {
  display: inline-block;
  padding: 8px 12px;
  text-decoration: none;
  color: #000;
  box-sizing: border-box;
  transition: all 0.3s ease;
  margin: 0 2vw;
  font-size: 16px;
  font-weight: 500;
  background-color: transparent;
}

.main-header__nav-link:hover {
  background-color: #e28239;
  border-radius: 10px;
  transform: translateY(-2px);
}

.main-header__admin.locale-enabled {
  justify-content: space-between;
  margin-top: -5px;
}

nav.main-header__admin.locale-enabled ul li.nav-item.dropdown a {
  padding: 10px 20px 10px;
  border-radius: 10px;
  background-color: #8b3757;
  color: #fff;
  font-size: 14px;
}

nav.main-header__admin.locale-enabled ul li.nav-item.dropdown ul.dropdown-menu.dropdown-menu-right a {
  background-color: transparent;
  color: #000;
}

li.nmi_type_user_register.nav-item a, 
li.nmi_type_user_login.nav-item a {
  padding: 14px 20px 10px;
  border-radius: 10px;
  background-color: #e28239;
  color: #fff;
  font-size: 14px;
  margin-top: -5px;
}

#navigationPrimary .dropdown-menu.show {
  background-color: #e9e9e9;
  animation: fadeSlideDown 0.3s ease-out forwards;
  transform-origin: top center;
}

@keyframes fadeSlideDown {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* =========================================
   4. ARTICLE PAGE & META ELEMENTS
========================================= */
.table-wrapper table.table {
  width: 100% !important;
  float: left !important;
}

figure.article__img {
  overflow: hidden;
  border-radius: 8px;
}

figure.article__img a img {
  max-width: 150px;
  transition: transform 0.4s ease-in-out;
}

figure.article__img a:hover img {
  transform: scale(1.05);
}

/* Merapikan blok tanggal Publish pada metadata artikel */
.article-page__meta dl {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.article-page__meta dl dt {
  margin: 0;
  font-weight: 600;
  color: #8b3757;
}

.article-page__meta dl dd {
  margin: 0;
  color: #444;
}

/* =========================================
   5. CUSTOM BLOCKS & SIDEBAR
========================================= */
.description-wrapper {
  display: flex;
  margin-bottom: 30px;
}

.description-wrapper .left-side {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  padding-bottom: 50px;
  overflow: hidden;
  border-radius: 8px;
}

.description-wrapper .left-side img {
  border: 2px solid #d5d5d5;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  transition: transform 0.4s ease-in-out;
}

.description-wrapper .left-side:hover img {
  transform: scale(1.05);
}

.description-wrapper .left-side p { width: 50%; }

.description-wrapper .right-side {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: -10px;
  border-left: 4px solid #e1e1e1;
  padding-left: 50px;
  padding-bottom: 50px;
}

.right-side h2 { font-size: 22px; }

section.journal-description.section_dark .container .row {
  width: 100%;
  background-color: transparent;
  display: flex;
  justify-content: center;
  text-align: center;
}

/* Struktur Balok Custom Sidebar */
.sidebar_wrapper.row {
  display: flex;
  justify-content: center;
  align-items: stretch !important;
  flex-wrap: wrap;
  gap: 25px;
  padding: 20px 0;
}

.pkp_block {
  display: flex !important;
  flex-direction: column;
  width: calc(33.333% - 25px) !important; 
  min-width: 280px !important;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
  padding: 0px;
  border: 2px solid #dfdfdf;
  border-radius: 21px;
  background-color: #fff;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pkp_block:hover {
  transform: translateY(-6px);
  box-shadow: rgba(0, 0, 0, 0.15) 0px 25px 30px -5px, rgba(0, 0, 0, 0.08) 0px 15px 15px -5px;
}

.pkp_block .content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
}

.pkp_block .content h2, 
.pkp_block h2 {
  text-align: center;
  background-color: #8b3757;
  padding: 20px;
  border-radius: 20px 20px 0px 0px;
  color: white;
  margin: 0 0 15px 0 !important;
  flex-grow: 0;
}

.pkp_block .content .image-wrapper, 
.pkp_block .content > div {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pkp_block .content .image-size { width: 50%; }

.pkp_block:has(.collab-wrapper) {
  width: 100% !important;
  margin-top: 20px;
}

.visitor-wrapper { margin: 50px 0px; }

/* Menghilangkan wujud kotak kosong bawaan OJS di footer */
#customblock-navigation {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  visibility: hidden;
  box-shadow: none !important;
  background-color: transparent !important;
}

#customblock-navigation:hover { transform: none !important; box-shadow: none !important; }
#customblock-navigation .content { pointer-events: none !important; }

/* Mengaktifkan kembali klik khusus untuk tombol menu FAB */
#customblock-navigation .floating-nav-wrapper {
  visibility: visible;
  pointer-events: auto !important;
}

/* =========================================
   6. COLLABORATION SLIDER (MARQUEE)
========================================= */
.collab-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  background: #ffffff; 
  padding: 20px 0;
  border-radius: 8px;
}

.collab-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: slideCollab 12s linear infinite; 
}

.collab-track:hover { animation-play-state: paused; }

.collab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 130px;
}

.collab-item img {
  width: 90px;
  height: auto;
  margin-bottom: 12px;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
}

.collab-item:hover img {
  transform: scale(1.1) translateY(-3px);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
}

.collab-item span {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 13px;
  text-align: center;
  font-weight: 600;
  color: #243140;
}

@keyframes slideCollab {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } 
}

/* =========================================
   7. FLOATING ACTION BUTTON MENU (FAB)
========================================= */
.floating-nav-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999999;
  font-family: Arial, sans-serif;
}

.float-toggle-checkbox { display: none; }

.float-menu-popup {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  padding: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none; 
}

.floating-nav-wrapper:has(.float-toggle-checkbox:checked) .float-menu-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.float-menu-header {
  background-color: #8b3a4f;
  color: white;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 16px;
}

.float-logo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 3px solid #8b3a4f;
  margin: 0;
  position: relative;
  z-index: 10;
}

.float-logo-btn:hover { transform: scale(1.08); }

.float-logo-btn:has(.float-toggle-checkbox:checked) {
  transform: rotate(15deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.float-logo-btn img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 50%;
  pointer-events: none; 
}

.nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 5px;
}

.nav-grid::-webkit-scrollbar { width: 5px; }
.nav-grid::-webkit-scrollbar-thumb { background: #c86419; border-radius: 10px; }

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  background-color: #c86419;
  color: #ffffff !important;
  text-decoration: none;
  padding: 8px 5px;
  text-align: center;
  font-weight: bold;
  font-size: 12px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  line-height: 1.2;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-btn:hover { background-color: #ad5312; transform: translateY(-2px); }
.nav-btn-full { grid-column: 1 / -1; }

/* =========================================
   8. MEDIA QUERIES (DESKTOP)
========================================= */
@media (min-width: 576px) {
  .navbar-expand-sm {
    flex-wrap: nowrap;
    justify-content: flex-start;
    background-color: #e9e9e9;
    padding: 10px 0px 4px 0px;
  }
}

@media (min-width: 992px) {
  #navigationPrimary .nav-item {
    position: static;
    padding: 0px;
  }

  #navigationPrimary .dropdown-item a {
    margin-left: 0;
    padding: 10px 8px 8px 8px;
    border: none;
  }

  #navigationPrimary .dropdown-item a:hover {
    background-color: #e28239;
    border-radius: 10px;
    color: white;
  }

  #navigationPrimary .dropdown-menu.show {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-content: center;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1rem 1rem 14px 1rem;
    background-color: #e9e9e9;
    border-radius: 0;
    width: 100%;
  }

  nav.main-header__admin.locale-disabled #navigationUser {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #e28239;
    padding: 0px 20px 0px 0px;
    border-radius: 0px 0px 20px 0px;
    z-index: 99;
  }

  nav.main-header__admin.locale-disabled #navigationUser a {
    background-color: transparent;
    color: white;
  }

  nav.main-header__admin.locale-disabled #navigationUser ul a { color: black; }

  .pkp_block .content .image-wrapper { padding: 10px 30px 30px !important; }

  .main-header__admin.locale-enabled {
    position: fixed;
    z-index: 1;
    margin-top: 0px;
  }

  nav.main-header__admin.locale-enabled ul li.nav-item.dropdown a {
    padding: 14px 20px 10px;
    background-color: #e28239;
  }

  li.nmi_type_user_register.nav-item a, 
  li.nmi_type_user_login.nav-item a { margin-top: 0px; }
}

/* =========================================
   9. MEDIA QUERIES (MOBILE)
========================================= */
@media (max-width: 600px) {
  .description-wrapper { flex-direction: column; }
  .description-wrapper .left-side { width: 100%; margin-top: 30px; padding-bottom: 30px; }
  .description-wrapper .left-side p { width: 60%; }
  .description-wrapper .right-side {
    width: 100%; margin-top: -10px; border-left: none;
    border-top: 4px solid #e1e1e1;
    padding: 30px; overflow-x: scroll;
  }

  .journal-description { padding: 10vh 20px 7.5vh 20px; }
  .sidebar_wrapper.row { flex-direction: column; align-items: center; }
  
  .pkp_block { width: 80% !important; min-width: auto !important; }
  
  footer#immersion_content_footer { overflow: hidden; }
  main#immersion_content_main .row { padding: 0px 20px; }
  nav.navbar.navbar-expand-sm.main-header__nav { padding: 0px; }
  button.navbar-toggler.mx-auto.hamburger { border-radius: 10px !important; }
  .right-side h2 { font-size: 28px; }

  .float-menu-popup { width: 290px; right: 0; }
  .floating-nav-wrapper { bottom: 20px; right: 20px; }
}

/* =========================================
   10. MERAPIKAN KOLOM ARTIKEL (TEMA GELAP ELEGAN / ELEGANT DARK)
========================================= */

/* Kotak utama artikel dengan warna gelap premium */
section.article-page {
    background-color: #16181c !important; /* Hitam matte elegan */
    padding: 40px 35px !important;
    border-radius: 21px; /* Melengkung serasi dengan kotak di bawahnya */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    margin-bottom: 30px;
    border: 1px solid #2d2e33; /* Garis tepi tipis memberikan efek 3D bertekstur */
}

/* Mengatur warna teks dasar agar nyaman dibaca di latar gelap */
section.article-page,
section.article-page p,
section.article-page div,
section.article-page dd {
    color: #d1d5db !important; /* Abu-abu terang, lebih nyaman dari putih murni */
    line-height: 1.7;
    font-size: 16px;
}

/* Judul Artikel */
section.article-page .article-page__title span {
    color: #ffffff !important; /* Putih bersih agar judul menonjol */
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Nama Penulis */
section.article-page .authors-string__item a span,
section.article-page .authors-string__item a,
section.article-page .author-string_href-none span {
    color: #e28239 !important; /* Aksen oranye khas jurnal Anda */
    font-weight: 600;
    text-decoration: none;
}

/* Meta data (Published date) */
section.article-page .article-page__meta dl {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    margin-bottom: 25px;
}

section.article-page .article-page__meta dl dt {
    margin: 0;
    font-weight: 600;
    color: #e28239 !important; /* Teks label oranye */
}

/* Merapikan label "Abstract" */
section.article-page h3.label {
    color: #ffffff !important;
    border-bottom: 2px solid #8b3757; /* Garis bawah merah marun */
    padding-bottom: 8px;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: bold;
    display: inline-block; /* Agar panjang garis bawah pas dengan teksnya saja */
}

/* Styling Tombol PDF bergaya modern */
section.article-page .article__btn.pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #8b3757 !important; /* Merah marun */
    color: #ffffff !important;
    border: none !important;
    padding: 10px 25px !important;
    border-radius: 8px !important;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(139, 55, 87, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 10px;
    letter-spacing: 0.5px;
}

/* Efek menyala saat tombol PDF disorot mouse */
section.article-page .article__btn.pdf:hover {
    background-color: #c86419 !important; /* Berubah oranye */
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(200, 100, 25, 0.5);
}
/* =========================================
   11. STYLING HALAMAN ARCHIVES (EFEK TUMPUKAN 3D)
========================================= */

/* Mengubah susunan grid bawaan agar kotak rapi di tengah dengan jarak yang pas */
.page_issue.op_archive #immersion_content_main > .row {
    display: flex;
    flex-wrap: wrap;
    gap: 45px 25px; /* 45px jarak bawah untuk ruang tumpukan, 25px jarak samping */
    padding-top: 20px;
    padding-bottom: 60px;
    justify-content: center;
}

/* KOTAK ORANYE UTAMA (EFEK TUMPUKAN) */
.page_issue.op_archive .archived-issue {
    flex: 0 1 220px; /* Ukuran lebar kotak agar presisi */
    max-width: 250px;
    width: 100%;
    margin: 0 !important; /* Menimpa margin bawaan OJS */

    /* Warna Oranye Bergradasi */
    background: linear-gradient(135deg, #e28239, #c86419) !important;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* MAGIC: EFEK TUMPUKAN (STACK) 3D MENGGUNAKAN SHADOW */
    box-shadow:
        0 8px 0 -2px #b85412,   /* Tumpukan lembar ke-2 (Oranye Gelap) */
        0 16px 0 -4px #8f3d09,  /* Tumpukan lembar ke-3 (Oranye Sangat Gelap) */
        0 24px 15px -6px rgba(0, 0, 0, 0.3); /* Bayangan jatuh di lantai */

    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* EFEK HOVER: KOTAK DIANGKAT SAAT DISENTUH MOUSE */
.page_issue.op_archive .archived-issue:hover {
    transform: translateY(-8px); /* Kotak naik */
    box-shadow:
        0 14px 0 -2px #b85412,  /* Jarak tumpukan melebar */
        0 28px 0 -4px #8f3d09,
        0 38px 20px -6px rgba(0, 0, 0, 0.4); /* Bayangan membesar */
}

/* TYPOGRAPHY: Merapikan Teks di Dalam Kotak */
.page_issue.op_archive .issue-summary__link {
    text-decoration: none;
}

.page_issue.op_archive .archived-issue__title {
    margin: 0 0 15px 0;
}

/* Judul Jurnal (Pappadalleq) menjadi Putih Tebal */
.page_issue.op_archive .archived-issue__title span {
    color: #ffffff !important;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

/* Label Volume & Issue diubah menjadi bentuk Pil (Badge) */
.page_issue.op_archive .series {
    margin-bottom: 12px;
}

.page_issue.op_archive .series span {
    background-color: rgba(255, 255, 255, 0.25); /* Transparan putih */
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 50px; /* Bentuk melengkung seperti pil */
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Teks Tanggal */
.page_issue.op_archive .archived-issue__date {
    margin: 0;
}

.page_issue.op_archive .archived-issue__date small {
    color: #ffecd2 !important; /* Putih agak krem/oranye pudar */
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* PERCANTIK JUDUL HALAMAN UTAMA "Archives" DI ATAS KOTAK */
.page_issue.op_archive .main__header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 10px;
}

.page_issue.op_archive .main__title span {
    color: #8b3757 !important; /* Menggunakan Merah Marun */
    font-weight: 800;
    font-size: 36px;
    border-bottom: 4px solid #e28239; /* Garis bawah oranye */
    padding-bottom: 8px;
    display: inline-block;
}

/* Menjaga area navigasi halaman (Pagination) tetap rapi di bawah */
.page_issue.op_archive .issue__pagination {
    flex: 1 1 100%;
    text-align: center;
    margin-top: 20px;
}