@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap');

/* =====================================================
   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;
}

/* =====================================================
   REMOVE OJS LOGO / ATTRIBUTION
===================================================== */

.pkp_brand,
.pkp_brand_footer,
.pkp-attribution,
footer img[src*="ojs"],
footer img[alt*="OJS"] {
    display: none !important;
}

/* =====================================================
   REMOVE GLOBAL LINK UNDERLINES
===================================================== */

a, a:hover {
    text-decoration: none !important;
}

/* =====================================================
   SIDEBAR BLOCK BASE SPACING
===================================================== */

html body .pkp_structure_sidebar .pkp_block {
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
}

/* =====================================================
   SAFE MONTSERRAT FOR SIDEBAR HEADINGS (NO LAYOUT BREAK)
===================================================== */

.pkp_structure_sidebar .pkp_block .title,
.pkp_structure_sidebar .pkp_block .sidebar-title,
.pkp_structure_sidebar .pkp_block .cfp-head {
    font-family: 'Montserrat', Arial, sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

/* =====================================================
   CFP SIDEBAR – NATIVE OJS ALIGNMENT
===================================================== */

.cfp-galaxy {
    background: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

.cfp-head {
    color: #757575;
    display: inline-block;
    margin-bottom: 8px;
    padding-bottom: 6px;
    position: relative;
}

.cfp-head::after {
    content: "";
    width: 100%;
    height: 3px;
    background: #f5b700;
    display: block;
    margin-top: 6px;
}

.cfp-head span {
    display: block;
    font-size: 0.9rem;
    color: #0b2e59;
}

.cfp-deadline { margin: 6px 0 8px 0; }

.cfp-date {
    font-size: 1.25rem;
    font-weight: 700;
    color: #007c91;
}

.cfp-btn {
    display: inline-block;
    background: #007BC6;
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-family: 'Montserrat', Arial, sans-serif !important;
}

/* Remove extra gap after CFP block */
.pkp_structure_sidebar .pkp_block:has(.cfp-galaxy) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 6px !important;
}

/* =====================================================
   INDEXED IN BLOCK
===================================================== */

.sidebar-indexed {
    margin-top: 12px;
}

.sidebar-title {
    color: #757575;
    display: inline-block;
    padding-bottom: 6px;
    position: relative;
}

.sidebar-title::after {
    content: "";
    width: 100%;
    height: 3px;
    background: #f5b700;
    display: block;
    margin-top: 6px;
}

.indexed-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.indexed-list li {
    padding: 4px 0;
}

.indexed-list a {
    font-size: 0.9rem;
    color: rgb(75,125,146) !important;
}

.indexed-list a:hover {
    color: #007BC6 !important;
    text-decoration: underline !important;
}
/* Restore footer two-column layout */
.pkp_footer_content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 20px;
}

.ijmcr-footer-left {
    width: 70% !important;
}

.ijmcr-footer-right {
    width: 30% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 28px !important;
    row-gap: 8px !important;
}

/* One link per row in right column */
.ijmcr-footer-right a {
    display: block !important;
    white-space: nowrap;
}

/* Mobile footer fix */
@media (max-width: 768px) {
    .pkp_footer_content {
        flex-direction: column !important;
    }
    .ijmcr-footer-left,
    .ijmcr-footer-right {
        width: 100% !important;
    }
    .ijmcr-footer-right {
        grid-template-columns: 1fr !important;
    }
}
/* Remove outer grey space above header and below footer */
html, body {
    background: #ffffff !important;
}

.pkp_structure_page {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.pkp_structure_head,
.pkp_structure_footerWrapper {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Remove Hostinger theme wrapper gap */
.pkp_structure_body {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
/* Put Submission Deadline + Date on same line */
.cfp-deadline {
    display: flex !important;
    align-items: center;
    gap: 6px;
}

.cfp-deadline small {
    margin: 0;
    padding: 0;
}

.cfp-date {
    margin-left: 4px;
}
/* Submission Deadline + Date on one line, same font & size */
.cfp-deadline {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', Arial, sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 600;
}

.cfp-deadline small,
.cfp-date {
    font-family: 'Montserrat', Arial, sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 600;
    color: #007c91;
    margin: 0;
    padding: 0;
}
/* Light grey outer margins */
html, body {
    background: #E0E0E0 !important;
}

/* Keep content area white */
.pkp_structure_content,
.pkp_structure_head,
.pkp_structure_footerWrapper {
    background: #ffffff !important;
}
/* Use system sans-serif for entire sidebar */
.pkp_structure_sidebar {
    font-family: sans-serif !important;
}
/* FACTS AND FIGURES – content only (not heading) */
.sidebar-facts .facts-list li {
    color: #4b7d92 !important;
    font-family: sans-serif !important;
    font-size: 0.95rem;
    font-weight: 600;
}
/* =====================================================
   FIX: REMOVE BOLD FROM FACTS & FIGURES SIDEBAR BLOCK
===================================================== */

.sidebar-facts .facts-list li {
    color: #4b7d92 !important;
    font-family: sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
}

.sidebar-facts strong,
.sidebar-facts b {
    font-weight: 400 !important;
}
/* =====================================================
   ABSTRACT – BLUE LEFT LINE + #F2F2F2 BACKGROUND
===================================================== */

.obj_article_details .abstract,
.article-details .abstract,
#articleAbstract {
    background: #FAFAFA;
    border-left: 4px solid #007BC6;
    padding: 18px 22px;
    margin: 22px 0 28px;
    border-radius: 6px;
}
/* =====================================================
   REMOVE FOCUS OUTLINE FROM HEADER LOGO ONLY
===================================================== */

.pkp_site_name a:focus,
.pkp_site_name a:active,
.pkp_site_name a img:focus,
.pkp_site_name a img:active {
    outline: none !important;
    box-shadow: none !important;
}
/* =====================================================
   CRITICAL FIX – SHOW JOURNAL TITLE WITH LOGO (OJS 3.5.0-1)
===================================================== */

.pkp_site_name.has_logo .is_text {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Align logo + title properly */
.pkp_site_name {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

/* Prevent OJS from collapsing text block */
.pkp_site_name.has_logo {
    white-space: normal !important;
}

/* Logo size control */
.pkp_site_name .is_img img {
    max-height: 70px !important;
    width: auto !important;
}

/* Journal title styling */
.pkp_site_name .is_text {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: #ffffff !important;   /* change if header bg is light */
}
