/* =====================================================
 GLOBAL TYPOGRAPHY (ELSEVIER / SPRINGER STYLE)
===================================================== */

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5rem !important;
    color: #222;
}

h1, .page_title {
    font-size: 1.75rem;
    line-height: 1.3;
    font-weight: 600;
}

h2 {
    font-size: 1.45rem;
    line-height: 1.35;
    font-weight: 600;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 600;
}

h4 {
    font-size: 1.1rem;
    line-height: 1.45;
    font-weight: 600;
}

p, ul, ol {
    font-size: 1rem;
    line-height: 1.5rem !important;
    margin-bottom: 1rem;
}


/* =====================================================
 ARTICLE & ABSTRACT STYLING
===================================================== */

.obj_article_details p,
.obj_article_summary p {
    line-height: 1.5rem !important;
    margin-bottom: 1rem;
}

.obj_article_details .abstract {
    font-size: 0.98rem;
    line-height: 1.5rem !important;
    background: #fafafa;
    padding: 12px 15px;
    border-left: 3px solid #2a7db8;
    margin-bottom: 1rem;
}


/* =====================================================
 ARCHIVE PAGE CONSISTENCY
===================================================== */

.obj_issue_toc,
.obj_issue_summary,
.obj_issue_toc p,
.obj_issue_summary p {
    font-size: 1rem;
    line-height: 1.5rem !important;
}

.obj_issue_summary h2,
.obj_issue_summary h3 {
    font-size: 1.25rem;
    line-height: 1.4;
}


/* =====================================================
 SIDEBAR GAP FIX
===================================================== */

html body .pkp_structure_sidebar .pkp_block {
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
}


/* =====================================================
 REMOVE OJS LOGO / ATTRIBUTION
===================================================== */

.pkp_brand,
.pkp_brand_footer,
.pkp-attribution,
footer img[src*="ojs"],
footer img[alt*="OJS"] {
    display: none !important;
}


/* =====================================================
 FOOTER – CLEAN, ALIGNED, BALANCED
===================================================== */

.pkp_structure_footerWrapper {
    max-width: 1140px !important;
    margin: 0 auto !important;
    padding: 20px 15px !important;
}

.pkp_footer_content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
}

.ijmcr-footer-left {
    width: 70%;
    font-size: 14px;
    line-height: 1.5rem !important;
}

/* 🔵 NEW — remove underline from left side footer links */
.ijmcr-footer-left a {
    text-decoration: none !important;
}

.ijmcr-footer-right {
    width: 30%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
    row-gap: 8px;
    text-align: left;
}

.ijmcr-footer-right a {
    font-size: 14px;
    line-height: 1.5rem !important;
    white-space: nowrap;
    text-decoration: none !important; /* ← already correct */
}

.ijmcr-footer-right a:hover {
    text-decoration: underline;
}


/* =====================================================
 MOBILE FOOTER
===================================================== */

@media (max-width: 768px) {

    .pkp_footer_content {
        flex-direction: column;
        gap: 15px;
    }

    .ijmcr-footer-left,
    .ijmcr-footer-right {
        width: 100%;
    }

    .ijmcr-footer-right {
        grid-template-columns: 1fr;
    }
}


/* =====================================================
 FIX: ONE LINK PER LINE IN FOOTER RIGHT
===================================================== */

.ijmcr-footer-right {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 28px;
    row-gap: 8px;
}

.ijmcr-footer-right a {
    display: block !important;
    width: 100%;
    line-height: 1.5rem !important;
    white-space: nowrap;
}

/* =====================================================
 REMOVE UNDERLINE FROM INDEXER LINKS (NO HOVER UNDERLINE)
===================================================== */

.pkp_block a {
    text-decoration: none !important;
}

.pkp_block a:hover {
    text-decoration: none !important;
}
/* =====================================================
 REMOVE UNDERLINE FROM ALL LINKS (GLOBAL)
===================================================== */

a {
    text-decoration: none !important;
}

a:hover {
    text-decoration: none !important;
}
/* FIX: remove top gap without breaking grey side background */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

/* keep OJS default grey background */
body {
    background: #f4f4f4;
}

/* ensure header starts at top */
.pkp_structure_page {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.pkp_structure_head {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* FINAL: Darken side background */
body {
    background: #e0e0e0;
}
/* =====================================================
 FIX: REMOVE EXTRA SPACE BELOW FOOTER (DESKTOP)
===================================================== */

/* Remove bottom gap from page wrapper */
.pkp_structure_page {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove body bottom padding */
body {
    padding-bottom: 0 !important;
}

/* Ensure footer wrapper has no extra spacing */
.pkp_structure_footerWrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Prevent phantom space below footer */
html {
    height: auto !important;
}
/* =====================================================
 FIX:  FOOTER ALIGNMENT (PERFECT TOP ALIGN)
===================================================== */

/* Parent footer container */
.pkp_footer_content {
    display: flex !important;
    align-items: flex-start !important;
}

/* Left footer block */
.cjmr-footer-left {
    margin: 0 !important;
    padding: 0 !important;
    align-self: flex-start !important;
    line-height: 1.6rem;
}

/* Remove any implicit spacing caused by inline elements */
.ijmcr-footer-left br {
    line-height: 1.6rem;
}

/* Right footer block */
.ijmcr-footer-right {
    display: flex;
    gap: 28px;
    margin: 0 !important;
    padding: 0 !important;
    align-self: flex-start !important;
}

/* Each column on the right */
.cjmr-footer-right .footer-col {
    margin: 0 !important;
    padding: 0 !important;
}

/* Normalize links */
.cjmr-footer-right a {
    display: block;
    line-height: 1.6rem;
    margin-top: 0;
}
/* ================================
   Sidebar block heading base style
================================ */
.pkpsidebar .block_custom h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.6px;
    padding-bottom: 6px;
    border-bottom: 2px solid #f7bc4a;
    text-transform: uppercase;
    position: relative;
    color: transparent; /* hide original CALL_FOR_PAPERS text */
}

/* ================================
   Custom visible titles
================================ */

/* CALL FOR PAPERS */
.block_custom_call_for_papers h2::after {
    content: "CALL FOR PAPERS";
}

/* INDEXED IN */
.block_custom_indexed_in h2::after {
    content: "INDEXED IN";
}

/* FACTS & FIGURES */
.block_custom_facts_and_figures h2::after {
    content: "FACTS & FIGURES";
}

/* Apply visible text style */
.pkpsidebar .block_custom h2::after {
    color: #757575;
    position: absolute;
    left: 0;
    top: 0;
}
/* =========================================
   FIX UNDERSCORE BLOCK TITLES (OJS 3.4 / 3.5)
========================================= */

/* Hide default CALL_FOR_PAPERS etc */
.pkpsidebar .pkp_block.block_custom_call_for_papers .title,
.pkpsidebar .pkp_block.block_custom_indexed_in .title,
.pkpsidebar .pkp_block.block_custom_facts_and_figures .title {
    color: transparent !important;
    position: relative;
}

/* CALL FOR PAPERS */
.pkpsidebar .pkp_block.block_custom_call_for_papers .title::after {
    content: "CALL FOR PAPERS";
}

/* INDEXED IN */
.pkpsidebar .pkp_block.block_custom_indexed_in .title::after {
    content: "INDEXED IN";
}

/* FACTS & FIGURES */
.pkpsidebar .pkp_block.block_custom_facts_and_figures .title::after {
    content: "FACTS & FIGURES";
}

/* Final visible heading style */
.pkpsidebar .pkp_block[class*="block_custom_"] .title::after {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #757575;
    letter-spacing: 0.6px;
    padding-bottom: 6px;
    border-bottom: 2px solid #f7bc4a;
    display: inline-block;
    text-transform: uppercase;
    position: absolute;
    left: 0;
    top: 0;
}
/* ==========================================
   FIX CUSTOM BLOCK UNDERSCORE TITLES
========================================== */

/* Hide original ugly CALL_FOR_PAPERS text */
#customblock-call_for_papers .title,
#customblock-indexed_in .title,
#customblock-facts_and_figures .title {
    color: transparent !important;
    position: relative;
}

/* CALL FOR PAPERS */
#customblock-call_for_papers .title::after {
    content: "CALL FOR PAPERS";
}

/* INDEXED IN */
#customblock-indexed_in .title::after {
    content: "INDEXED IN";
}

/* FACTS & FIGURES */
#customblock-facts_and_figures .title::after {
    content: "FACTS & FIGURES";
}

/* Visible heading style */
#customblock-call_for_papers .title::after,
#customblock-indexed_in .title::after,
#customblock-facts_and_figures .title::after {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #757575;
    letter-spacing: 0.6px;
    padding-bottom: 6px;
    border-bottom: 3px solid #f7bc4a;
    display: inline-block;
    text-transform: uppercase;
    position: absolute;
    left: 0;
    top: 0;
}
/* Remove default sidebar heading underline */
#customblock-call_for_papers .title,
#customblock-indexed_in .title,
#customblock-facts_and_figures .title {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* Keep only custom underline */
#customblock-call_for_papers .title::after,
#customblock-indexed_in .title::after,
#customblock-facts_and_figures .title::after {
    border-bottom: 3px solid #f7bc4a;
    padding-bottom: 6px;
}
/* Match sidebar custom block heading size with INFORMATION */

#customblock-call_for_papers .title::after,
#customblock-indexed_in .title::after,
#customblock-facts_and_figures .title::after {
    font-size: 15px !important;      /* same as INFORMATION */
    line-height: 1.4 !important;
}
/* Normalize sidebar custom block content to match INFORMATION list */

#customblock-call_for_papers .content,
#customblock-indexed_in .content,
#customblock-facts_and_figures .content,
#customblock-share .content {
    font-size: 14px !important;
    line-height: 1.7rem !important;
}

/* Normalize links inside custom blocks */
#customblock-call_for_papers .content a,
#customblock-indexed_in .content a,
#customblock-facts_and_figures .content a,
#customblock-share .content a {
    font-size: 14px !important;
}
/* Extra space below headings for selected blocks */
#customblock-call_for_papers .content,
#customblock-indexed_in .content,
#customblock-facts_and_figures .content {
    margin-top: 10px !important;
}
/* Color ONLY the content below custom block headings */
#customblock-call_for_papers .content,
#customblock-indexed_in .content,
#customblock-facts_and_figures .content {
    color: rgb(75, 125, 146) !important;
}

/* Color ONLY links inside the content area */
#customblock-call_for_papers .content a,
#customblock-indexed_in .content a,
#customblock-facts_and_figures .content a {
    color: rgb(75, 125, 146) !important;
}
/* Match custom block content font-size with INFORMATION menu */

#customblock-call_for_papers .content,
#customblock-indexed_in .content,
#customblock-facts_and_figures .content {
    font-size: 13px !important;
    line-height: 1.5rem !important;
}

#customblock-call_for_papers .content a,
#customblock-indexed_in .content a,
#customblock-facts_and_figures .content a {
    font-size: 13px !important;
}
/* Resize ONLY plain text under custom block headings (not buttons) */
#customblock-call_for_papers .content p,
#customblock-call_for_papers .content li,
#customblock-indexed_in .content p,
#customblock-indexed_in .content li,
#customblock-facts_and_figures .content p,
#customblock-facts_and_figures .content li {
    font-size: 13px !important;
    line-height: 1.5rem !important;
    color: rgb(75, 125, 146) !important;
}

/* Keep buttons untouched */
#customblock-call_for_papers .content .cmp_button {
    font-size: inherit !important;
}
/* Remove focus outline box on header clicks */
.pkp_structure_head a:focus,
.pkp_structure_head a:active,
.pkp_structure_head button:focus,
.pkp_structure_head button:active {
    outline: none !important;
    box-shadow: none !important;
}
