/* ==========================================================
   PKP Bootstrap Theme – Responsive header logo
   OJS 3.3.x – Corrected version
   ========================================================== */

/* ---------- Header wrapper ---------- */

.pkp_site_name_wrapper {
    background: #070e3d;
}


.pkp_structure_head {
    width: 100% !important;
    background: #fff;
    padding: 0 !important;
}

/* ---------- Remove container width limits ---------- */
.pkp_structure_head .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ---------- Flex layout for header ---------- */
.pkp_structure_head .row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* ---------- Logo wrapper ---------- */
.pkp_site_name_wrapper {
    flex: 1 1 100%;
    text-align: center;
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ---------- Logo container ---------- */
.pkp_site_name {
    display: inline-block;
    max-width: 100%;
}

/* ---------- Logo image ---------- */
.pkp_site_name .is_img img {
    display: block;
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: contain; /* maintain proportion */
}

/* ---------- Desktop adjustments (>=992px) ---------- */
@media (min-width: 992px) {
    .pkp_site_name .is_img img {
        max-height: fit-content !important;
        width: auto;
        height: auto;
    }
}

@media (min-width: 992px) {
    .pkp_site_name {
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* ---------- Mobile adjustments (<=991px) ---------- */
@media (max-width: 991px) {
    .pkp_structure_head .row {
        flex-direction: column !important;
        align-items: center !important;
    }

    .pkp_site_name_wrapper {
        margin-bottom: 10px;
    }

    .pkp_site_name .is_img img {
        max-width: 80% !important;
        height: auto !important;
    }

    .pkp_navigation_user_wrapper {
        width: 100%;
        text-align: center;
        margin-top: 10px;
        position: relative;
        z-index: 10;
    }
}

/* ---------- Prevent horizontal scroll ---------- */
body {
    overflow-x: hidden;
}

/* ---------- Hide visual <h1> for screen readers ---------- */
.pkp_site_name_wrapper h1.pkp_screen_reader {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
}