/* ==== Header: buat logo jurnal penuh mengisi lebar header ==== */
.pkp_structure_head {
    padding: 0 !important;
    margin-top: 0 !important;
}

.pkp_site_name_wrapper {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* Samakan padding oranye kiri/kanan/atas, dan bawah dibuat setengah dari semula */
.pkp_site_name > a {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

@media (min-width: 992px) {
    .pkp_navigation_user_wrapper {
        top: 0 !important;
    }
    .pkp_site_name_wrapper {
        height: 196px !important;
    }
    .pkp_site_name {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

.pkp_site_name {
    width: 100%;
    height: 100%;
}

.pkp_site_name .is_img {
    display: block;
    width: 100%;
    height: 100%;
}

.pkp_site_name .is_img img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    padding: 0;
    border: 0;
}

/* Ubah footer OJS menjadi 2 kolom: teks kontak di kiri, logo OJS/PKP di kanan-tengah */

.pkp_structure_footer_wrapper .pkp_structure_footer {
    position: static !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center !important;
    justify-content: space-between;
    gap: 2rem;
}

.pkp_structure_footer_wrapper .pkp_footer_content {
    flex: 1 1 560px;
    position: static !important;
}

.pkp_structure_footer_wrapper .pkp_brand_footer {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    flex: 0 1 220px;
    max-width: 220px;
    min-width: 0;
    align-self: center !important;
    margin: 0;
    text-align: right;
    overflow: hidden;
}

.pkp_structure_footer_wrapper .pkp_brand_footer a {
    display: block;
    max-width: 100%;
}

/* Berlaku untuk gambar logo JIKA berhasil dimuat */
.pkp_structure_footer_wrapper .pkp_brand_footer img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    /* Berlaku untuk teks alt JIKA gambar gagal dimuat (fallback) */
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    font-style: normal;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Jaring pengaman: cegah footer memicu scroll horizontal pada halaman */
.pkp_structure_footer_wrapper {
    overflow-x: hidden;
    max-width: 100%;
}

/* Responsif: tumpuk jadi 1 kolom di layar kecil */
@media (max-width: 768px) {
    .pkp_structure_footer_wrapper .pkp_structure_footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .pkp_structure_footer_wrapper .pkp_brand_footer {
        margin-top: 1.5rem;
    }
}
