/* Remove space above the header in Manuscript theme */
body, 
.pkp_structure_page, 
.pkp_structure_head, 
header[role="banner"] {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Change navigation menu text from uppercase to normal text */
.pkp_structure_head .pkp_navigation_primary a,
.pkp_structure_head .pkp_navigation_user a {
    text-transform: none !important;
}

/* Bulletproof way to hide the OJS/PKP logo in the footer */
.pkp_brand_footer,
a[href*="aboutThisPublishingSystem"],
img[src*="ojs_brand.png"],
div[role="contentinfo"] div[role="complementary"] {
    display: none !important;
}

/* Remove space below the footer */
body, 
.pkp_structure_page, 
.pkp_structure_footer_wrapper, 
.pkp_structure_footer {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Change the default OJS footer background color */
.pkp_structure_footer_wrapper {
    background-color: #004400 !important;
}

/* Ensure the text inside the default footer is white */
.pkp_structure_footer_wrapper,
.pkp_structure_footer_wrapper a,
.pkp_structure_footer_wrapper p {
    color: #ffffff !important;
}

/* Style sidebar text links to look like buttons */
.pkp_structure_sidebar .pkp_block div > a:not(.pkp_button),
.pkp_structure_sidebar .pkp_block p > a:not(.pkp_button),
.pkp_structure_sidebar .pkp_block li > a:not(.pkp_button) {
    display: flex;
    align-items: center;
    background-color: #004400; /* Dark green */
    color: #ffffff !important;
    padding: 10px 15px;
    margin-bottom: 8px;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out;
    line-height: 1.3;
}

/* Hover effect for the new buttons */
.pkp_structure_sidebar .pkp_block div > a:not(.pkp_button):hover,
.pkp_structure_sidebar .pkp_block p > a:not(.pkp_button):hover,
.pkp_structure_sidebar .pkp_block li > a:not(.pkp_button):hover {
    background-color: #1e2e40; /* Turns dark blue on hover */
}

/* Add the small icon before the text */
.pkp_structure_sidebar .pkp_block div > a:not(.pkp_button):::before,
.pkp_structure_sidebar .pkp_block p > a:not(.pkp_button):::before,
.pkp_structure_sidebar .pkp_block li > a:not(.pkp_button):::before {
    content: "\27A4"; /* Unicode for a solid right arrow (➤) */
    margin-right: 10px;
    font-size: 12px;
}

/* Style sidebar block titles: normal text and new background */
.pkp_structure_sidebar .pkp_block .title,
.pkp_structure_sidebar .pkp_block h2 {
    text-transform: none !important; /* Changes ALL CAPS back to normal */
    background-color: #e2e8f0 !important; /* Soft slate-gray background */
    color: #1e2e40 !important; /* Dark blue text */
    padding: 10px 15px !important;
    margin-bottom: 15px !important;
    border-radius: 4px;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-left: 5px solid #004400 !important; /* Dark green accent line */
    display: block; /* Ensures the background covers the full width */
}