/* 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 */
}

/* 1. Hide the issue description */
.obj_issue_summary .description {
    display: none !important;
}

/* 2. Convert the archive list to a grid */
.issues_archive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    padding: 0;
    list-style: none;
}

/* 3. Style the individual items */
.issues_archive > li {
    margin-bottom: 0 !important;
}

.obj_issue_summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 4. Ensure the cover image looks good with a fixed height */
.obj_issue_summary .cover {
    display: block;
    margin-bottom: 10px;
    width: 100%;
}

.obj_issue_summary .cover img {
    width: 100%;
    height: 300px; /* Adjust this value (e.g., 250px, 300px) to your preference */
    object-fit: cover; /* Prevents the image from distorting */
    object-position: top; /* Ensures the top part of the cover is prioritized if cropped */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 4px; /* Optional: adds a slight curve to the corners */
}

/* 5. Adjust title and series text */
.obj_issue_summary h2 {
    font-size: 1rem;
    margin: 0;
}

.obj_issue_summary .series {
    font-size: 0.9rem;
    color: #666;
}