/* Make the header image fit perfectly and scale beautifully */
.pkp_structure_head {
    background-image: url('https://publisher.unimas.my/ojs/index.php/JCEST/$$$call$$$/api/file/file-api/download-library-file?libraryFileId=83') !important; 
    background-size: 100% auto !important; 
    background-position: top left !important; 
    background-repeat: no-repeat !important;
    background-color: #fcf9eb !important; /* Soft yellow fallback/extension */
    min-height: auto !important; /* Allow natural scaling */
}

/* Re-adjust the invisible spacer to make the header shorter vertically */
.pkp_site_name_wrapper {
    visibility: hidden !important; 
    height: 11vw !important; /* Shorter, tighter space for single-line text and e-ISSN */
    min-height: 115px !important; 
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Pin the user menu to the top right */
.pkp_navigation_user_wrapper {
    position: absolute !important;
    top: 15px;
    right: 20px;
    z-index: 10;
}

/* Keep top-right links (UNIMAS Journals, etc.) dark navy over the yellow gradient */
.pkp_navigation_user_wrapper a,
.pkp_navigation_user_wrapper button,
.pkp_navigation_user_wrapper span {
    color: #0b2645 !important; 
    font-weight: 600 !important;
    text-shadow: none !important; 
}

/* Ensure the main navigation bar sits cleanly below the image */
.pkp_navigation_primary_wrapper {
    width: 100%;
    background-color: #ffffff; 
    border-top: 1px solid #e0e0e0;
}

/* REVISED: Recover Footer & Change Only the Bottom Blue Bar to Yellow */
.pkp_structure_footer_wrapper,
footer.pkp_structure_footer_wrapper {
    background-color: #fcf9eb !important;
    background: #fcf9eb !important;
    background-image: none !important;
    border-top: 1px solid #e0e0e0 !important;
    border-bottom: none !important;
    display: block !important; /* Prevent footer from becoming hidden */
    visibility: visible !important; /* Ensure visibility */
    padding: 20px 0 !important; /* Ensure standard spacing is kept */
}

/* Force all text inside the bottom bar to remain visible and dark navy */
.pkp_structure_footer_wrapper *,
footer.pkp_structure_footer_wrapper * {
    color: #0b2645 !important;
    visibility: visible !important;
}