/*
=========================================================
 MAJESTY JOURNAL - CUSTOM OJS CSS
 Maspul Journal of English Studies (MAJESTY)
 Purpose:
 1. Display the uploaded MAJESTY banner/logo at full width
 2. Preserve the original banner aspect ratio
 3. Remove the default OJS/PKP branding from the footer
 4. Keep the journal's custom footer intact
=========================================================
*/

/* =====================================================
   1. HEADER / JOURNAL LOGO
   ===================================================== */

/* Remove unnecessary spacing around the OJS header */
.pkp_structure_head {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 0 !important;
}

/* Let the site-name/logo area use the available width */
.pkp_site_name_wrapper {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/*
 * Make only the journal banner span the browser width.
 * Navigation and the journal's content layout remain unchanged.
 */
.pkp_site_name {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    margin: 0 0 0 calc(50% - 50vw) !important;
    padding: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
}

/* OJS image-logo wrapper */
.pkp_site_name .is_img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/*
 * Keep the MAJESTY banner sharp and proportional.
 * The uploaded banner is approximately 2048 x 279 px.
 */
.pkp_site_name .is_img img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: contain !important;
}

/* Remove theme constraints that sometimes restrict the logo */
.pkp_site_name > a {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* =====================================================
   2. NAVIGATION SPACING AFTER FULL-WIDTH BANNER
   ===================================================== */

/*
 * Keep the navigation visually separated from the banner,
 * without changing the existing navigation design.
 */
.pkp_navigation_primary_wrapper {
    margin-top: 0 !important;
}


/* =====================================================
   3. REMOVE DEFAULT OJS / PKP FOOTER BRANDING
   ===================================================== */

/*
 * Removes:
 * "Platform & workflow by OJS / PKP"
 *
 * This does NOT remove the MAJESTY custom footer.
 */
.pkp_brand_footer,
.pkp_footer_brand {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/*
 * Prevent unnecessary blank space after the OJS/PKP logo
 * has been removed.
 */
.pkp_structure_footer_wrapper {
    min-height: 0 !important;
    padding-bottom: 0 !important;
}

.pkp_structure_footer {
    min-height: 0 !important;
    padding-bottom: 0 !important;
}


/* =====================================================
   4. RESPONSIVE ADJUSTMENTS
   ===================================================== */

@media (max-width: 991px) {
    .pkp_site_name {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
    }

    .pkp_site_name .is_img img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
    }
}

@media (max-width: 767px) {
    .pkp_site_name,
    .pkp_site_name .is_img,
    .pkp_site_name .is_img img {
        width: 100% !important;
        max-width: 100% !important;
    }

    .pkp_site_name {
        margin-left: 0 !important;
    }
}
