/* =========================================================
   CSS TEMA CACHE BERDASARKAN DESAIN MOCKUP (image_838855.jpg)
   Platform: OJS 3 (Update: Full Width Navigation & Clean Grid)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

:root {
    --warna-biru-tua: #0F2D53;   /* Warna biru gelap untuk Navigasi & Judul */
    --warna-teal: #42B9B9;       /* Warna tosca/teal untuk tombol dan menu aktif */
    --warna-latar-abu: #F3F3F3;  /* Warna abu-abu terang untuk sidebar */
    --warna-teks: #333333;       /* Warna teks umum */
    --warna-teks-muted: #666666; /* Warna teks sekunder (penulis) */
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--warna-teks);
    background-color: #ffffff;
}

/* --- KUSTOMISASI HEADER & LOGO FULL WIDTH --- */
.pkp_structure_header {
    background-color: #ffffff;
    border-bottom: none;
    padding: 0 !important; /* Menghapus jarak atas-bawah agar logo menempel */
}

/* Memaksa pembungkus (wrapper) bawaan OJS agar tidak dibatasi lebarnya */
.pkp_structure_header .pkp_head_wrapper {
    max-width: 100% !important; 
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}

.pkp_site_name_wrapper {
    width: 100%;
}

.pkp_site_name {
    width: 100%;
    margin: 0;
}

/* Mengatur gambar logo agar membentang 100% dan proporsional (tidak gepeng) */
.pkp_site_name .is_img img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important; 
    max-height: none !important; /* Menimpa aturan tinggi maksimal OJS (biasanya 75px) */
    display: block;
}

/* Memastikan tombol hamburger menu di HP tetap bisa diklik dan tampil di atas logo */
.pkp_site_nav_toggle {
    z-index: 999;
}

/* --- NAVIGASI UTAMA (Biru Tua - FULL WIDTH) --- */
.pkp_navigation_primary_wrapper {
    background-color: var(--warna-biru-tua);
    
    /* Trik agar background menembus batas container dan membentang penuh (Edge-to-Edge) */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    
    /* Memastikan isi menu tetap terpusat dan rapi */
    display: flex;
    justify-content: center;
}

.pkp_navigation_primary {
    max-width: 1100px; /* Lebar maksimal agar tidak terlalu memanjang di monitor besar */
    width: 100%;
    margin: 0;
    padding: 0;
    /* Ubah ke 'center' jika ingin menu di tengah, atau 'flex-start' jika ingin rata kiri */
    justify-content: flex-start; 
}

.pkp_navigation_primary > li > a {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 20px;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
}

/* Menu Aktif & Hover (Warna Teal) */
.pkp_navigation_primary > li.pkp_current > a,
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    background-color: var(--warna-teal);
    color: #ffffff !important;
    text-decoration: none;
}

/* Dropdown Navigasi */
.pkp_navigation_primary ul {
    background-color: var(--warna-biru-tua);
    border-top: 3px solid var(--warna-teal);
}
.pkp_navigation_primary ul li a {
    color: #ffffff;
}
.pkp_navigation_primary ul li a:hover {
    background-color: var(--warna-teal);
}

/* --- DAFTAR ARTIKEL (Featured Articles) --- */
.cmp_article_list .title, .homepage_issue .title {
    font-size: 20px;
    font-weight: 700;
    color: var(--warna-biru-tua);
    margin-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
}

.obj_article_summary {
    margin-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 20px;
}

.obj_article_summary .title a {
    font-size: 18px;
    font-weight: 600;
    color: var(--warna-biru-tua);
}

.obj_article_summary .title a:hover {
    color: var(--warna-teal);
    text-decoration: none;
}

.obj_article_summary .authors {
    color: var(--warna-teks-muted);
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 10px;
}

/* --- SIDEBAR KANAN (Kotak Abu-abu) --- */
.pkp_structure_sidebar .block {
    background-color: var(--warna-latar-abu);
    padding: 20px;
    border-radius: 8px;
    border: none;
    margin-bottom: 25px;
}

.pkp_structure_sidebar .block .title {
    font-size: 16px;
    font-weight: 700;
    color: var(--warna-teks);
    border-bottom: none;
    margin-bottom: 15px;
    padding-bottom: 0;
}

/* --- FOOTER --- */
.pkp_structure_footer {
    background-color: var(--warna-latar-abu);
    color: var(--warna-teks);
    border-top: 1px solid #ddd;
    padding: 20px 0;
    font-size: 12px;
}

.pkp_structure_footer a {
    color: var(--warna-biru-tua);
}

/* --- KUSTOMISASI HERO SECTION (Halaman Depan) --- */
.hero-cache-wrapper {
    display: flex;
    align-items: center;
    background: linear-gradient(to right, #e8f1f5, #f4f8fa);
    padding: 40px 5%;
    margin-bottom: 40px;
    border-radius: 8px;
}

.hero-cache-image {
    flex: 1;
    text-align: center;
}

.hero-cache-image img {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.1));
}

.hero-cache-content {
    flex: 1;
    padding-left: 40px;
}

.hero-cache-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--warna-biru-tua);
    margin: 0 0 10px 0;
}

.hero-cache-content h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--warna-teks);
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.hero-cache-content p {
    font-size: 16px;
    color: var(--warna-teks-muted);
    margin-bottom: 30px;
}

.btn-submit-hero {
    display: inline-block;
    background-color: var(--warna-teal);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn-submit-hero:hover {
    background-color: #359b9b;
    color: #ffffff;
    text-decoration: none;
}

/* ... existing code ... /
/ ========================================
12. KUSTOMISASI TABEL JOURNAL DETAILS (HOMEPAGE)
======================================== */
.homepage_about table {
width: 100% !important;
max-width: 100%;
border-collapse: collapse;
margin-top: 20px;
margin-bottom: 25px;
background-color: #ffffff;
border: 1px solid #DFE1E6;
border-left: 4px solid #42B9B9;
border-radius: 6px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.homepage_about table tr {
border-bottom: 1px solid #DFE1E6;
transition: background-color 0.3s ease;
}

/* Hilangkan garis bawah pada baris terakhir */
.homepage_about table tr:last-child {
border-bottom: none;
}

/* Efek saat baris disorot mouse */
.homepage_about table tr:hover {
background-color: #f0fbfb;
}

.homepage_about table td {
padding: 14px 18px !important;
vertical-align: middle;
font-size: 14.5px;
line-height: 1.6;
color: #444444;
}

/* Menghilangkan jarak paragraf bawaan OJS di dalam tabel agar rapi */
.homepage_about table td p {
margin: 0 !important;
}

/* Kustomisasi Kolom Pertama (Kolom Label) */
.homepage_about table td:first-child {
background-color: #f9f9f9;
width: 35% !important; 
border-right: 1px solid #DFE1E6;
color: #0F2D53;
}

/* Memastikan teks label di kolom pertama terlihat sedikit lebih tebal/gelap */
.homepage_about table td:first-child strong {
color: #0F2D53;
font-weight: 700;
}

/* Kustomisasi Kolom Kedua (Kolom Data) */
.homepage_about table td:nth-child(2) {
width: 65% !important;
}

/* Perbaikan untuk tampilan Mobile/HP */
@media (max-width: 768px) {
.homepage_about table td:first-child {
width: 45% !important;
}
.homepage_about table td:nth-child(2) {
width: 55% !important;
}
.homepage_about table td {
padding: 10px 12px !important;
font-size: 13.5px;
}
}

/* --- MENGHAPUS GARIS VERTIKAL SILUMAN BAWAAN OJS --- */
.pkp_structure_content:before,
.pkp_structure_content::before,
.pkp_structure_content.has_sidebar:before,
.pkp_structure_content.has_sidebar::before,
.pkp_structure_page:before,
.pkp_structure_page::before {
    display: none !important;
    content: "" !important;
}

.pkp_structure_main,
.pkp_structure_sidebar,
.pkp_structure_content {
    border-right: none !important;
    border-left: none !important;
}

/* --- RESPONSIF --- */
@media (max-width: 768px) {
    .hero-cache-wrapper {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
    }
    .hero-cache-content {
        padding-left: 0;
        margin-top: 30px;
    }
    .hero-cache-content h1 { font-size: 36px; }
    .hero-cache-content h2 { font-size: 22px; }
}


/* ... existing code ... */
@media (max-width: 992px) {
.pkp_structure_content {
padding: 0 20px;
}

.pkp_navigation_primary > li > a {
padding: 12px 15px;
font-size: 13px;
}

body:not(.pkp_page_index) .pkp_structure_main {
padding: 20px;
}

}

/* ========================================
11. CUSTOM SIDEBAR MENU (GLOBAL LIST STYLE)
======================================== */
.custom-sidebar-menu ul {
list-style: none;
padding: 0;
margin: 0;
}

.custom-sidebar-menu li {
margin-bottom: 10px;
padding-bottom: 10px;
border-bottom: 1px dashed #DFE1E6;
}

/* Menghilangkan garis bawah pada item terakhir */
.custom-sidebar-menu li:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
}

.custom-sidebar-menu a {
color: #5e6c84;
text-decoration: none;
display: block;
font-size: 14px;
font-weight: 500;
transition: all 0.3s ease; /* Transisi halus untuk semua perubahan */
}

/* Efek saat teks disentuh (Hover) */
.custom-sidebar-menu a:hover {
color: #42B9B9;
padding-left: 6px;
}