/* --- FINAL CLEAN & PROFESSIONAL LAYOUT BY RAM PUBLISHER --- */

/* 1. RESET DASAR */
html, body {
    background: #f4f4f4 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow-x: hidden;
}

/* 2. HEADER FULL WIDTH & PROPORSI RAPI */
header.pkp_structure_head {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: none !important;
}

/* Menghilangkan semua batasan lebar pada area Banner */
.pkp_site_name_wrapper, 
.pkp_site_name {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* KUNCI: Membuat banner lebar penuh dengan tinggi yang pas */
.pkp_site_name img {
    width: 100vw !important; /* Lebar penuh mengikuti browser */
    max-width: 100vw !important;
    height: auto !important;
    min-height: 180px !important; /* Mencegah terlalu tipis */
    max-height: 320px !important; /* Mencegah terlalu tebal/besar */
    object-fit: fill; /* Agar gambar menyesuaikan area tanpa terpotong parah */
    display: block !important;
    margin: 0 !important;
    border: none !important;
}

/* 3. MENU NAVIGASI KUNING (MENYATU DENGAN BANNER) */
.pkp_navigation_primary_wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Kunci agar Search tidak turun */
    align-items: center !important;
    justify-content: space-between !important;
    background: #084154 !important; /* Warna biru navigasi */
    width: 100% !important;
    height: 45px !important; /* Kunci tinggi ramping */
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

/* 2. Mengatur Daftar Menu (UL) */
ul.pkp_navigation_primary {
    display: flex !important;
    flex: 1 !important; /* Mengambil sisa ruang agar Search terdorong ke kanan */
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    height: 100% !important;
}

/* 3. Meratakan Item Menu (Home, Current, dll) */
ul.pkp_navigation_primary > li {
    flex: 1 !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 4. Link Teks Menu */
ul.pkp_navigation_primary > li > a {
    color: #ffffff !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    text-transform: uppercase;
    text-decoration: none !important;
    line-height: 45px !important;
    padding: 0 10px !important;
}

/* 5. KHUSUS SEARCH: Paksa Naik dan Berada di Pojok Kanan */
.pkp_navigation_search_wrapper {
    margin-left: auto !important; /* Dorong ke paling kanan */
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.pkp_navigation_search_wrapper a.pkp_search {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px !important;
    text-transform: uppercase;
    white-space: nowrap !important;
    padding: 0 10px !important;
    line-height: 45px !important;
}

/* Icon Search agar ada jarak */
.pkp_navigation_search_wrapper .fa-search {
    margin-right: 5px !important;
}

/* 4. KONTEN HALAMAN (TENGAH & BERSIH) */
.pkp_structure_page {
    width: 1160px !important;
    max-width: 95% !important;
    margin: 30px auto !important;
    background: #ffffff !important;
    box-shadow: 0 0 25px rgba(0,0,0,0.1);
    border-radius: 8px; /* Sudut sedikit membulat agar modern */
    overflow: hidden;
}

/* 5. TATA LETAK BERANDA (COVER KIRI, TEKS KANAN) */
.home-flex-container {
    display: flex !important;
    gap: 40px;
    padding: 40px;
    background: #ffffff !important;
    align-items: flex-start;
}

.home-flex-cover {
    flex: 0 0 280px !important;
    text-align: center;
}

.home-flex-cover img {
    width: 100% !important;
    height: auto !important;
    border: 1px solid #eee;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-radius: 4px;
}

.home-flex-text {
    flex: 1;
}

.home-flex-text h2 {
    margin-top: 0 !important;
    color: #112b3c !important;
    border-bottom: 4px solid #e1ba5c;
    padding-bottom: 12px;
    font-size: 26px !important;
    font-weight: 700;
}

/* 6. PERBAIKAN SIDEBAR MENU (ANTI SEMPIT) */
.pkp_structure_sidebar {
    width: 300px !important; /* Memaksa lebar sidebar agar tidak sempit */
    padding: 20px 10px !important;
    float: right; /* Memastikan posisi tetap di kanan */
}

.pkp_structure_sidebar .block_custom {
    margin-bottom: 20px;
}

/* Mengatur wadah menu agar teks tidak tertekuk/turun baris */
.pkp_structure_sidebar ul li {
    list-style: none;
    margin-bottom: 10px !important;
    display: flex;
    align-items: center;
    line-height: 1.2;
    width: 100%;
}

/* Mengatur Ikon */
.pkp_structure_sidebar ul li i, 
.pkp_structure_sidebar ul li .fa {
    margin-right: 10px !important;
    width: 18px;
    text-align: center;
    flex-shrink: 0; /* Mencegah ikon mengecil */
}

/* Mengatur Link Teks agar memanjang */
.pkp_structure_sidebar ul li a {
    display: inline-block;
    width: 100%;
    font-size: 14px;
    white-space: nowrap; /* Mencegah teks turun ke bawah jika masih muat */
    overflow: hidden;
    text-overflow: ellipsis; /* Jika sangat panjang akan jadi titik-titik (...) */
    color: #333 !important;
    text-decoration: none;
}



/* Tombol Biru Sidebar agar Full Lebar */
.pkp_block.custom_block_issn_menu .btn, 
.pkp_block.custom_block_issn_menu a {
    display: block !important;
    width: 100% !important;
    text-align: center;
    margin-bottom: 5px;
}

/* Mengatur pembagian lebar Konten vs Sidebar */
#main-content {
    width: 70% !important; /* Area teks jurnal */
    float: left;
}

#sidebar {
    width: 28% !important; /* Area menu samping */
    float: right;
}

/* Membersihkan float agar footer tidak naik */
.pkp_structure_content:after {
    content: "";
    display: table;
    clear: both;
}

.pkp_block {
    padding: 1rem 1.43rem 0.5rem 1.43rem;
}

/* 7. HEADER FULL WIDTH & ANTI TERPOTONG (FIXED) */
header.pkp_structure_head {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: none !important;
    overflow: hidden !important;
}

.pkp_site_name_wrapper, 
.pkp_site_name {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* KUNCI: Menggunakan object-fit: contain agar gambar tidak pernah terpotong */
.pkp_site_name img {
    width: 100% !important; /* Menggunakan % agar tetap berada dalam frame browser */
    max-width: 100% !important;
    height: auto !important; /* Menjaga rasio asli agar tulisan tidak gepeng */
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain !important; /* MEMASTIKAN SELURUH GAMBAR TERLIHAT */
    border: none !important;
}

/* Menghilangkan Logo OJS/PKP di Footer */
.pkp_brand_footer, 
.powered_by, 
.pkp_structure_footer_brand,
footer img[alt*="Open Journal Systems"], 
footer img[alt*="PKP"] { 
    display: none !important; 
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* --- CLEAN WHITE SUB-MENU (DROPDOWN) --- */

/* 1. Navigasi Utama */
.pkp_navigation_primary_wrapper, 
.pkp_navigation_primary,
header.pkp_structure_head {
    overflow: visible !important; 
    z-index: 9999 !important;
}

/* 2. Kotak Dropdown Jadi Putih Bersih */
.pkp_navigation_primary li ul {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff !important; /* LATAR BELAKANG PUTIH */
    min-width: 230px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Bayangan halus agar elegan */
    padding: 5px 0 !important;
    margin: 0;
    list-style: none;
    border-top: 4px solid #084154; /* Tetap pakai aksen biru cerah di atas agar modern */
    border-radius: 0 0 5px 5px;
    transition: all 0.15s ease-in-out;
    z-index: 10001 !important;
}

/* 3. Munculkan saat Hover */
.pkp_navigation_primary li:hover > ul {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}




/* 4. Teks di dalam Sub-Menu */
.pkp_navigation_primary li ul li a {
    color: #333 !important; /* Teks abu tua agar kontras di atas putih */
    padding: 12px 20px !important;
    display: block !important;
    font-size: 14px !important;
    font-weight: 500;
    text-align: left !important;
    border-bottom: 1px solid #f8f8f8; /* Garis pemisah sangat tipis */
    transition: all 0.2s;
}

/* 5. Efek Hover Sub-Menu (Biru Cerah & Teks Putih) */
.pkp_navigation_primary li ul li a:hover {
    background: #084154 !important; /* Berubah jadi biru saat disentuh */
    color: #ffffff !important;      /* Teks jadi putih agar sangat jelas */
    padding-left: 25px !important; 
}

/* --- PERBAIKAN NAVIGASI 1 BARIS RAPI --- */

/* 1. Paksa Container Row untuk Full Width */
.pkp_navigation_primary_row {
    width: 100% !important;
    max-width: 100% !important;
    height: 45px !important; /* Kunci tinggi bar agar tidak tebal */
    background: #084154 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    display: block !important;
}

/* 2. Mengatur List agar Sejajar 1 Baris */
.pkp_navigation_primary {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Melarang menu turun ke bawah */
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    height: 45px !important;
    padding: 0 20px !important;
    margin: 0 !important;
    list-style: none !important;
}


/* 4. Mengatur Link Teks */
.pkp_navigation_primary > li > a {
    color: #ffffff !important;
    display: block !important;
    padding: 0 15px !important; /* Jarak antar menu diatur dari sini */
    line-height: 50px !important; /* Menyelaraskan teks tepat di tengah secara vertikal */
    text-transform: uppercase;
    font-size: 13px !important; /* Ukuran font ideal agar muat 1 baris */
    text-decoration: none !important;
}

/* 5. Efek Hover agar lebih hidup */
.pkp_navigation_primary > li > a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* 3. Atur item menu agar simetris */
.pkp_navigation_primary > li {
    flex: 1 !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
}

/* 4. Pastikan teks Putih, 1 Baris, dan Center secara Vertikal */
.pkp_navigation_primary > li > a {
    color: #ffffff !important;
    line-height: 45px !important; /* Menarik teks ke tengah baris secara vertikal */
    display: block !important;
    white-space: nowrap !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    text-transform: uppercase;
    text-decoration: none !important;
}

/* 5. KHUSUS SEARCH: Paksa naik dan hilangkan margin pengganggu */
.pkp_navigation_primary li.search {
    flex: 0 0 auto !important; /* Search tidak ikut melebar ke tengah */
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.pkp_navigation_primary li.search a {
    line-height: 45px !important;
    color: #ffffff !important;
    padding: 0 10px !important;
}