/* =========================================================
   RENEF TEXT MASTHEAD
   Centered - 60% of header width
   ========================================================= */

.pkp_structure_head {
    background: #0b2f63 !important;
    padding: 0 !important;
}

/* Remove OJS restrictions */
.pkp_head_wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Center the journal logo */
.pkp_site_name {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 15px 0 !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Logo link */
.pkp_site_name > a {
    display: block !important;
    width: 60% !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
}

/* RENEF transparent banner */
.pkp_site_name > a img,
.pkp_site_name .is_img img {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    max-height: none !important;

    margin: 0 auto !important;
    padding: 0 !important;

    object-fit: contain !important;
}


/* =========================================================
   HEADER USER LINKS
   ========================================================= */

.pkp_head_user {
    position: absolute;
    top: 15px;
    right: 30px;
}

.pkp_head_user a {
    color: #ffffff !important;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.pkp_navigation_primary_row {
    background: #082957 !important;
    border-top: 1px solid rgba(255,255,255,.15) !important;
    border-bottom: 3px solid #d4a72c !important;
}

.pkp_navigation_primary_wrapper {
    max-width: 100% !important;
    margin: 0 auto !important;
}

.pkp_navigation_primary > li > a {
    color: #ffffff !important;
}

.pkp_navigation_primary > li > a:hover {
    background: #174f8a !important;
    color: #ffffff !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

/* =========================================================
   RENEF - MOBILE MASTHEAD FINAL FIX
   ========================================================= */

@media screen and (max-width: 768px) {

    /* Give the masthead its own proper height */
    .pkp_site_name_wrapper {
        position: relative !important;
        width: 100% !important;
        height: 135px !important;
        min-height: 135px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    /* Stop OJS from absolutely positioning the logo */
    .pkp_site_name {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;

        width: 100% !important;
        height: 185px !important;
        min-height: 135px !important;

        margin: 0 !important;
        padding: 5px 0 !important;

        display: flex !important;
        justify-content: center !important;
        align-items: center !important;

        text-align: center !important;
        overflow: hidden !important;
        white-space: normal !important;
    }

    /* Keep your 92% mobile width */
    .pkp_site_name > a {
        display: block !important;

        position: relative !important;
        width: 92% !important;
        max-width: 92% !important;

        height: auto !important;

        margin: 0 auto !important;
        padding: 0 !important;

        float: none !important;
    }

    /* Banner */
    .pkp_site_name > a img,
    .pkp_site_name .is_img img {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;
        max-height: 185px !important;

        margin: 0 auto !important;
        padding: 0 !important;

        object-fit: contain !important;
    }

    /* User links */
    .pkp_navigation_user_wrapper {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
    }

    /* Navigation MUST start after masthead */
    .pkp_site_nav_menu {
        position: relative !important;
        top: auto !important;
        left: auto !important;

        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        z-index: 999 !important;
    }

    .pkp_navigation_primary_row {
        position: relative !important;
        clear: both !important;

        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;
    }
}

/* =========================================================
   RENEF FOOTER - SAME COLOUR AS HEADER
   ========================================================= */

.pkp_structure_footer_wrapper {
    background: #0b2f63 !important;
    border-top: 3px solid #d4a72c !important;
}

.pkp_structure_footer {
    background: #0b2f63 !important;
    color: #ffffff !important;
}

.pkp_structure_footer_wrapper a,
.pkp_structure_footer a {
    color: #ffffff !important;
}

.pkp_structure_footer_wrapper a:hover,
.pkp_structure_footer a:hover {
    color: #d4a72c !important;
}

/* Footer text */
.pkp_structure_footer p,
.pkp_structure_footer li,
.pkp_structure_footer span {
    color: #ffffff !important;
}

/* Powered by Myrasoft */
.pkp_structure_footer .powered_by {
    color: #d4a72c !important;
}