/* ===========================
   Elsevier Style
=========================== */

.article-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-top:8px;
}

.article-left{
    flex:1;
}

.article-right{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    margin-left:25px;
}

/* PDF */

.galleys_links{
    list-style:none;
    margin:0;
    padding:0;
}

.galleys_links li{
    margin:0;
}

/* Halaman */

.pdf-pages{
    margin-top:6px;
    color:#666;
    font-size:13px;
    font-weight:600;
}

/* Statistik */

.article-stats{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
}

.article-stats .stat-item{
    display:flex;
    align-items:center;
    gap:5px;
    font-size:13px;
    color:#666;
}

.article-stats img{
    width:16px;
    height:16px;
}

.article-stats .divider{
    width:1px;
    height:16px;
    background:#ccc;
}

.article-stats a{
    color:#0b63b6;
    text-decoration:none;
}

.article-stats a:hover{
    text-decoration:underline;
}

body.pkp_page_index .sections,
body.pkp_page_index .cmp_article_list,
body.pkp_page_index .issue_toc .section {
    display: none !important;
}
body.pkp_page_index .homepage_about {
    display: none !important;
}

/* ===========================
   CSS CUSTOM SIDEBAR
=========================== */
.custom-sidebar-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    width: 100%;
    max-width: 300px;
    margin-bottom: 25px;
}

/* Heading Umum Sidebar */
.sidebar-heading {
    border-bottom: 3px solid #004d26;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    text-align: left;
}

/* Tombol Submission Besar */
.btn-submission {
    display: block;
    background-color: #eeb44f;
    color: #ffffff !important;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #d4a045;
    transition: all 0.3s ease;
}
.btn-submission:hover {
    background-color: #dca038; /* Warna saat dihover (lebih gelap sedikit) */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Menu Navigasi Hijau */
.sidebar-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    border: 1px solid #003318;
    border-radius: 4px;
    overflow: hidden;
}
.sidebar-nav-menu li {
    border-bottom: 1px solid #003318;
    background-color: #004d26;
}
.sidebar-nav-menu li:last-child {
    border-bottom: none;
}
.sidebar-nav-menu a {
    display: block;
    padding: 12px 15px;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}
.sidebar-nav-menu a:hover {
    background-color: #006633; /* Warna hijau yang lebih terang saat hover */
    padding-left: 20px; /* Sedikit menggeser teks ke kanan saat hover */
}

/* Tombol Template Artikel */
.template-container {
    margin-bottom: 25px;
}
.btn-template {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #004d26;
    color: #ffffff !important;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #003318;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 8px;
    transition: all 0.2s ease;
}
.btn-template img {
    width: 20px;
    height: auto;
    margin-right: 8px;
    border-radius: 2px;
}
.btn-template:hover {
    background-color: #006633;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

/* Visitor Counter */
.visitor-counter {
    text-align: center;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}
.visitor-counter:hover {
    background-color: #f0f0f0;
}
.visitor-counter img {
    max-width: 100%;
    border: 0;
}

/* Menu Informasi Bawah */
.sidebar-info-box {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 5px 0;
}
.sidebar-info-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-info-menu a {
    display: block;
    padding: 10px 15px;
    color: #004d26;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid #eeeeee;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.sidebar-info-menu a:hover {
    background-color: #f5f9f7; /* Background abu kehijauan tipis */
    color: #007a3d;
}
.empty-space {
    font-size: 13px;
    text-align: left;
    line-height: 1.5;
    color: #444;
    margin-bottom: 20px;
}

/* ===========================
   CSS CUSTOM HEADER & NAVBAR
=========================== */

/* 1. Setup Header Utama (Latar putih agar navbar bawah berwarna putih) */
.pkp_structure_head {
    position: relative;
    padding: 0 !important;
    background-color: #ffffff; 
}

/* 2. Menanamkan Gambar Header sebagai Background Palsu di Belakang */
.pkp_structure_head::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px; /* TINGGI GAMBAR HEADER */
    background-color: #014217;
    background-image: url('/uploads-img/header-jik.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* 3. Wrapper Kolom Header (Mengontrol alur atas ke bawah secara normal) */
.pkp_structure_head .pkp_head_wrapper {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    max-width: 100% !important;
    min-height: 200px; /* Harus sama dengan tinggi gambar di atas */
    position: relative;
    z-index: 1; /* Pastikan menu berada di atas gambar */
}

/* 4. MENU USER (Login/Register) - KEMBALI KE ALUR NORMAL OJS */
.pkp_navigation_user_wrapper {
    align-self: flex-end; /* Memastikan menu selalu menempel di kanan tanpa melayang berantakan */
    padding: 10px 5% 0 0; /* Memberikan jarak rapi dari tepi atas dan kanan */
    margin: 0;
}
.pkp_navigation_user_wrapper a {
    color: #ffffff !important; /* Teks dibuat putih agar kontras di atas gambar hijau */
    background: transparent !important; /* Menghapus kotak warna default OJS jika ada */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6); /* Efek bayangan agar teks sangat jelas terbaca */
    text-decoration: none;
    font-weight: 500;
}
.pkp_navigation_user_wrapper a:hover {
    text-decoration: underline;
}

/* 5. MENYEMBUNYIKAN LOGO & MENGISI RUANG KOSONG TENGAH */
.pkp_site_name_wrapper {
    flex-grow: 1; /* Sifat ajaib Flexbox: Mengisi ruang kosong, otomatis mendorong Navbar Utama ke dasar header */
    width: 100%;
}
.pkp_site_name_wrapper > * {
    display: none !important; /* Menyembunyikan elemen logo/teks situs bawaan */
}

/* 6. NAVBAR UTAMA BAWAH (Putih dengan teks gelap) */
.pkp_navigation_primary_wrapper {
    background-color: #ffffff !important;
    width: 100%;
    margin: 0;
    padding: 0 5%;
    box-sizing: border-box;
    border-bottom: 1px solid #e0e0e0;
}

.pkp_navigation_primary_wrapper a {
    color: #333333 !important; 
    font-weight: bold;
    padding: 15px 20px !important;
    text-decoration: none;
    display: inline-block;
}

/* Efek Sorot Menu Utama */
.pkp_navigation_primary_wrapper a:hover,
.pkp_navigation_primary_wrapper a:focus {
    background-color: #f4f4f4 !important;
    color: #014217 !important; /* Berubah hijau saat ditunjuk */
}

/* ===========================
   PERBAIKAN DROPDOWN MENU USER
=========================== */

/* Memastikan latar belakang kotak dropdown berwarna putih */
.pkp_navigation_user_wrapper ul ul {
    background-color: #ffffff !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Sedikit bayangan pada kotak agar lebih rapi */
}

/* Mengubah teks di dalam dropdown menjadi hitam dan menghapus efek bayangan */
.pkp_navigation_user_wrapper ul ul a {
    color: #000000 !important; 
    text-shadow: none !important; 
    font-weight: normal !important;
    padding: 10px 15px !important;
}

/* Efek saat menu di dalam dropdown disorot kursor */
.pkp_navigation_user_wrapper ul ul a:hover,
.pkp_navigation_user_wrapper ul ul a:focus {
    background-color: #f4f4f4 !important;
    color: #014217 !important; /* Teks berubah menjadi hijau tua saat disorot */
    text-decoration: none !important;
}