/* =========================================================
   CUSTOM HEADER OJS
   Jurnal Pengabdian Permata Mandalika
   ========================================================= */

/* 1. HEADER UTAMA */
.pkp_structure_head {
    background: #ffffff;
    border-top: 4px solid #ed159c;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    min-height: 0 !important;
    height: auto !important;
    margin: 0;
    padding: 0;
}

/* 2. PEMBUNGKUS HEADER */
.pkp_head_wrapper {
    position: relative;
    width: 100%;
    max-width: 1160px;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 auto;
    padding: 0 !important;
    background: #ffffff;
}

/* 3. AREA NAMA JURNAL / BANNER */
.pkp_site_name_wrapper {
    position: relative;
    display: block;
    width: 100%;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 4. AREA LOGO ATAU GAMBAR HEADER */
.pkp_site_name {
    display: block;
    width: 100%;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
}

/* 5. LINK GAMBAR HEADER */
.pkp_site_name .is_img {
    display: block;
    width: 100%;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
}

/* 6. GAMBAR HEADER */
.pkp_site_name .is_img img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
    object-position: center;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0;
}

/* 7. MENCEGAH RUANG KOSONG BAWAAN TEMA */
.pkp_structure_head .pkp_head_wrapper,
.pkp_structure_head .pkp_site_name_wrapper,
.pkp_structure_head .pkp_site_name {
    min-height: 0 !important;
    height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* 8. MENU PENGGUNA / ADMIN */
.pkp_navigation_user_wrapper {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 20;
    margin: 0;
}

.pkp_navigation_user {
    margin: 0;
    padding: 0;
}

.pkp_navigation_user > li > a {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-weight: 600;
    padding: 8px 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(4px);
}

.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus {
    background: #ed159c;
    color: #ffffff;
}

/* 9. NAVIGASI UTAMA */
.pkp_navigation_primary_wrapper {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.pkp_navigation_primary {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

.pkp_navigation_primary > li > a {
    color: #0f2454;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 16px 14px;
    transition: all 0.25s ease;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    color: #ed159c;
    background: #fff5fb;
}

/* 10. MENU AKTIF */
.pkp_navigation_primary > li.current > a,
.pkp_navigation_primary > li > a[aria-current="page"] {
    color: #ed159c;
    border-bottom: 3px solid #ed159c;
}

/* 11. TOMBOL SEARCH */
.pkp_navigation_search_wrapper a {
    color: #0f2454;
    font-weight: 700;
}

.pkp_navigation_search_wrapper a:hover {
    color: #ed159c;
}

/* 12. TAMPILAN DESKTOP */
@media screen and (min-width: 992px) {
    .pkp_site_name .is_img img {
        width: 100%;
        height: auto !important;
    }
}

/* 13. TAMPILAN TABLET */
@media screen and (max-width: 991px) {
    .pkp_head_wrapper {
        max-width: 100%;
    }

    .pkp_site_name .is_img img {
        width: 100%;
        height: auto !important;
    }

    .pkp_navigation_user_wrapper {
        top: 8px;
        right: 10px;
    }
}

/* 14. TAMPILAN PONSEL */
@media screen and (max-width: 600px) {
    .pkp_structure_head {
        border-top-width: 3px;
    }

    .pkp_site_name .is_img img {
        width: 100%;
        height: auto !important;
        object-fit: contain;
    }

    .pkp_navigation_user_wrapper {
        position: static;
        display: flex;
        justify-content: flex-end;
        padding: 6px 10px;
        background: #ffffff;
    }

    .pkp_navigation_user > li > a {
        padding: 6px 10px;
        font-size: 12px;
    }

    .pkp_navigation_primary {
        padding: 0 10px;
    }

    .pkp_navigation_primary > li > a {
        padding: 12px 10px;
        font-size: 13px;
    }
}

/* 15. MENGHILANGKAN BATAS TINGGI BAWAAN TEMA OJS */
.pkp_site_name img {
    max-height: none !important;
}

/* 16. MENGHILANGKAN CELAH KECIL DI BAWAH GAMBAR */
.pkp_site_name,
.pkp_site_name a,
.pkp_site_name img {
    vertical-align: top;
}

/* 17. OPSIONAL: SUDUT LEMBUT PADA BANNER */
@media screen and (min-width: 768px) {
    .pkp_site_name .is_img img {
        border-radius: 0 0 6px 6px;
    }
}