/* ==========================================================
1. LAYOUT, FONT & GLOBAL JUSTIFY
========================================================== 
*/
.pkp_structure_page {
    max-width: 1400px !important; 
    margin-left: auto !important;
    margin-right: auto !important;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    background-image: url("https://juke.kedokteran.unila.ac.id/circles-light.png") !important;
    background-repeat: repeat !important;
    background-attachment: fixed !important;
    color: #333;
}

/* Membuat teks naratif rata kanan-kiri agar terlihat profesional */
p, 
.pkp_structure_main, 
.obj_article_details .abstract, 
.obj_article_summary .title,
.obj_announcement_full .description,
.obj_announcement_summary .description,
.page_archive .description,
.about_journal, 
.description,
.section_description {
    text-align: justify !important;
    hyphens: auto;
}

/* ==========================================================
2. HEADER & NAVIGATION (WARNA BIRU TUA)
========================================================== 
*/
.pkp_structure_head {
    padding-top: 0 !important;
    padding-bottom: 5px !important;
    background: #003366 !important; /* Biru Tua Navy */
    border-bottom: 4px solid #D4AF37 !important; /* Aksen Emas */
    position: relative;
    z-index: 100;
}

.pkp_site_name_wrapper {
    padding: 15px 40px !important;
}

/* Bar Navigasi Utama */
.pkp_navigation_primary_wrapper {
    background: #f0f5fa !important; /* Biru sangat muda untuk kontras */
    border-top: 1px solid #d1dbe5 !important;
    border-bottom: 1px solid #d1dbe5 !important;
    margin-top: 0 !important;
}

.pkp_navigation_primary > li > a {
    color: #003366 !important; /* Teks Biru Tua */
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
}

.pkp_navigation_primary > li > a:hover {
    color: #D4AF37 !important; /* Hover ke warna Emas */
}

/* ==========================================================
3. SIDEBAR (MENU TOMBOL BIRU)
========================================================== 
*/
@media (min-width: 992px) {
    .pkp_structure_sidebar {
        margin-top: -40px !important; 
        position: relative;
        z-index: 90;
    }
}

/* Mengubah link sidebar menjadi bentuk tombol */
.pkp_structure_sidebar .pkp_block .content a {
    display: block !important;
    color: #ffffff !important; 
    padding: 10px 15px !important; 
    margin-bottom: 6px !important; 
    background: #004a99 !important; /* Biru Medium */
    font-weight: 600 !important;
    font-size: 13px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border-left: 0px solid #D4AF37 !important;
}

.pkp_structure_sidebar .pkp_block .content a:hover {
    background: #002d5a !important; /* Biru lebih tua saat hover */
    color: #FFD700 !important; /* Teks Kuning Emas */
    padding-left: 20px !important;
    border-left: 6px solid #FFD700 !important;
}

/* ==========================================================
4. MAIN CONTENT (CARD STYLE)
========================================================== 
*/
.pkp_structure_main {
    background: #ffffff !important;
    padding: 40px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    margin-top: -20px !important;
    border: 1px solid #e1e8ed !important;
}

/* Menghilangkan Footer Bawaan PKP jika ingin tampilan clean */
.pkp_brand_footer {
    display: none !important;
}

/* ==========================================================
5. PERBAIKAN TAMPILAN MOBILE
========================================================== 
*/
@media (max-width: 767px) {
    .pkp_structure_main {
        padding: 20px 15px !important; 
        margin-top: 10px !important; 
    }
    
    .pkp_site_name_wrapper {
        padding: 10px !important;
        text-align: center;
    }
}