/* =====================================================
 GLOBAL TYPOGRAPHY (ELSEVIER / SPRINGER STYLE)
===================================================== */

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5rem !important;
    color: #222;
    background: #e0e0e0; /* Consolidated - was set twice */
    margin: 0 !important;
    padding: 0 !important;
    padding-bottom: 0 !important;
}

html {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
}

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;
}


/* =====================================================
 GLOBAL LINK STYLES
===================================================== */

/* Default - No underline */
a {
    text-decoration: none !important;
}

/* Hover - Blue color, no underline */
a:hover {
    color: #2a7db8 !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Focus/Active states */
a:focus,
a:active {
    color: #2a7db8 !important;
    outline: none !important;
    box-shadow: none !important;
}


/* =====================================================
 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;
}


/* =====================================================
 PAGE STRUCTURE - NO TOP/BOTTOM GAPS
===================================================== */

.pkp_structure_page {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.pkp_structure_head {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove focus outline 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;
}


/* =====================================================
 HEADER MENU: BLUE BOLD & CENTER-OUT HOVER
===================================================== */

.pkp_navigation_primary a {
    color: #757575 !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    padding-bottom: 8px !important;
    position: relative;
    text-decoration: none !important;
    transition: color 0.1s ease;
}

/* Animated blue underline (hidden by default) */
.pkp_navigation_primary a::before {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background-color: #007ab9;
    transition: all 0.1s ease;
}

/* Hover & Active: Text turns blue */
.pkp_navigation_primary a:hover,
.pkp_navigation_primary .current a {
    color: #007ab9 !important;
}

/* Hover & Active: Line expands from center */
.pkp_navigation_primary a:hover::before,
.pkp_navigation_primary .current a::before {
    width: 100%;
    left: 0;
}

/* Header bottom border */
.pkp_navigation_primary {
    border-bottom: 1px solid #ddd;
}


/* =====================================================
 SIDEBAR STYLING
===================================================== */

/* Block spacing */
html body .pkp_structure_sidebar .pkp_block {
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
}

/* Information block list items */
.pkp_block.block_information ul li {
    padding: 0.01rem 0 !important;
    margin: 0 !important;
}


/* =====================================================
 SIDEBAR CUSTOM BLOCKS - UNIFIED APPROACH
===================================================== */

/* Hide original underscore titles */
#customblock-call_for_papers .title,
#customblock-indexed_in .title,
#customblock-facts_and_figures .title,
#customblock-journal_details .title {
    color: transparent !important;
    position: relative;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* Clean replacement text for CALL FOR PAPERS */
#customblock-call_for_papers .title::after {
    content: "CALL FOR PAPERS";
}

/* Clean replacement text for INDEXED IN */
#customblock-indexed_in .title::after {
    content: "INDEXED IN";
}

/* Clean replacement text for FACTS & FIGURES */
#customblock-facts_and_figures .title::after {
    content: "FACTS & FIGURES";
}

/* Clean replacement text for JOURNAL DETAILS */
#customblock-journal_details .title::after {
    content: "JOURNAL DETAILS";
}

/* Shared styling for all replacement titles */
#customblock-call_for_papers .title::after,
#customblock-indexed_in .title::after,
#customblock-facts_and_figures .title::after,
#customblock-journal_details .title::after {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px !important;
    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;
    line-height: 1.4 !important;
}

/* Content styling for custom blocks */
#customblock-call_for_papers .content,
#customblock-indexed_in .content,
#customblock-facts_and_figures .content,
#customblock-journal_details .content,
#customblock-share .content {
    margin-top: 10px !important;
    font-size: 13px !important;
    line-height: 1.5rem !important;
    color: rgb(75, 125, 146) !important;
}

/* Content paragraphs and list items */
#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,
#customblock-journal_details .content p,
#customblock-journal_details .content li {
    font-size: 13px !important;
    line-height: 1.5rem !important;
    color: rgb(75, 125, 146) !important;
}

/* Content links */
#customblock-call_for_papers .content a,
#customblock-indexed_in .content a,
#customblock-facts_and_figures .content a,
#customblock-journal_details .content a {
    font-size: 13px !important;
    color: rgb(75, 125, 146) !important;
}

/* Keep buttons in custom blocks untouched */
#customblock-call_for_papers .content .cmp_button {
    font-size: inherit !important;
}


/* =====================================================
 FOOTER STYLING
===================================================== */

/* Remove OJS branding */
.pkp_brand,
.pkp_brand_footer,
.pkp-attribution,
footer img[src*="ojs"],
footer img[alt*="OJS"] {
    display: none !important;
}

/* Footer wrapper */
.pkp_structure_footerWrapper {
    max-width: 1140px !important;
    margin: 0 auto !important;
    padding: 20px 15px !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Footer content layout */
.pkp_footer_content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
}

/* Left footer section */
.ijmcr-footer-left {
    width: 70%;
    font-size: 14px;
    line-height: 1.6rem;
    margin: 0 !important;
    padding: 0 !important;
    align-self: flex-start !important;
}

.ijmcr-footer-left a {
    text-decoration: none !important;
}

.ijmcr-footer-left br {
    line-height: 1.6rem;
}

/* Right footer section */
.ijmcr-footer-right {
    width: 30%;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 28px;
    row-gap: 8px;
    text-align: left;
    margin: 0 !important;
    padding: 0 !important;
    align-self: flex-start !important;
}

.ijmcr-footer-right a {
    font-size: 14px;
    line-height: 1.6rem;
    white-space: nowrap;
    text-decoration: none !important;
    display: block !important;
    width: 100%;
    margin-top: 0;
}

.ijmcr-footer-right .footer-col {
    margin: 0 !important;
    padding: 0 !important;
}

/* Footer link hover */
.ijmcr-footer-left a:hover,
.ijmcr-footer-right a:hover {
    color: #2a7db8 !important;
    text-decoration: none !important;
}


/* =====================================================
 MOBILE RESPONSIVE
===================================================== */

@media (max-width: 768px) {
    
    /* Footer mobile layout */
    .pkp_footer_content {
        flex-direction: column;
        gap: 15px;
    }

    .ijmcr-footer-left,
    .ijmcr-footer-right {
        width: 100%;
    }

    .ijmcr-footer-right {
        grid-template-columns: 1fr;
    }
}


/* =====================================================
 PRINT STYLES
===================================================== */

@media print {
    /* Hide elements not needed in print */
    .pkp_structure_sidebar,
    .pkp_navigation_primary {
        display: none;
    }
}

/* =====================================================
   CLEAN, THIN, PROFESSIONAL HOVER UNDERLINE
   ===================================================== */

.pkp_structure_sidebar a:hover,
.obj_article_details a:hover,
.obj_article_summary a:hover,
.ijmcr-footer-left a:hover,
.ijmcr-footer-right a:hover,
.pkp_structure_main a:hover,
.page a:hover { 
    text-decoration: underline !important;

    /* Thinnest reliable underline */
    text-decoration-thickness: 1px;

    /* Push underline slightly down for elegance */
    text-underline-offset: 0.22em;

    /* Prevent underline cutting through letters */
    text-decoration-skip-ink: auto;
}

/* =====================================================
   REMOVE UNDERLINE FROM ICON / BUTTON LINKS ONLY
   (HEADERS NOT TOUCHED)
   ===================================================== */

/* Common icon / button patterns */
a.btn:hover,
a.button:hover,
a.pkp_button:hover,
.pkp_button a:hover,
.icon a:hover,
.social a:hover,
.social-icons a:hover,
.shariff a:hover,
.custom-share-bar a:hover {
    text-decoration: none !important;
}
/* =====================================================
   REMOVE UNDERLINE FROM ICON / ACTION BUTTONS ONLY
   (DOES NOT AFFECT HEADERS)
   ===================================================== */

/* OJS buttons and galley links (PDF, HTML, etc.) */
.pkp_button:hover,
.pkp_button a:hover,
.obj_galley_link:hover,
.obj_galley_link a:hover,
a.obj_galley_link:hover,
a.pkp_button:hover {
    text-decoration: none !important;
}
/* =====================================================
   REMOVE UNDERLINE FROM CTA / SUBMISSION BUTTONS
   (SAFE FOR OJS – DOES NOT TOUCH HEADERS)
   ===================================================== */

/* Submission & call-to-action buttons */
.pkp_button:hover,
.pkp_button a:hover,
a.pkp_button:hover,
a.pkp_button:focus,

/* Make a Submission specific */
.block_make_submission a:hover,
.block_make_submission a:focus,

/* General button-like links */
a.btn:hover,
a.button:hover {
    text-decoration: none !important;
}

