/* ============================================================
   IJIOL — CUSTOM JOURNAL STYLESHEET
   International Journal of Intelligent Optimization and Logistics

   Platform : OJS 3.5
   Theme    : Default Theme

   PURPOSE
   ------------------------------------------------------------
   - Improve the journal's appearance and readability.
   - Preserve compatibility with OJS updates.
   - Keep all custom CSS in one organized file.

   RULES
   ------------------------------------------------------------
   1. Prefer OJS native settings whenever possible.
   2. Do not modify OJS core CSS files.
   3. Avoid !important unless strictly necessary.
   4. Scope changes to the relevant pages/components.
   5. Keep unused sections empty until needed.
   ============================================================ */


/* ============================================================
   01. GLOBAL SETTINGS
   ============================================================ */

/* Reserved for global typography, colors and spacing. */


/* ============================================================
   02. HEADER & NAVIGATION
   ============================================================ */

/* Reserved for journal header, logo and navigation menu. */


/* ============================================================
   03. HOMEPAGE — GENERAL LAYOUT
   ============================================================ */

/* 03.1 Reduce spacing above headings in homepage content. */

.pkp_page_index .additional_content h2,
.pkp_page_index .cmp_page_content h2,
.pkp_page_index .page_index_journal h2 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* 03.2 Homepage — Main content width
   ------------------------------------------------------------
   Expand the homepage content on desktop.
   Limit the maximum width to 1100px.
   Preserve the default OJS centering and mobile layout.
   ------------------------------------------------------------ */

@media (min-width: 992px) {
    body.pkp_page_index .pkp_structure_main {
        width: 100%;
        max-width: 1100px;
    }
}


/* 03.3 Hide obsolete decorative vertical lines
   ------------------------------------------------------------
   The OJS theme uses pseudo-elements for vertical lines.
   After widening the homepage, their positions no longer
   match the content area.

   Hide them without changing their layout dimensions.
   Homepage only; desktop only.
   ------------------------------------------------------------ */

@media (min-width: 992px) {
    body.pkp_page_index .pkp_structure_main::before,
    body.pkp_page_index .pkp_structure_main::after {
        visibility: hidden;
    }
}


/* ============================================================
   03.4 HOMEPAGE — EDITORIAL LAYOUT
   IJIOL | OJS 3.5 Default Theme

   Desktop:
   Row 1: About the Journal — full width
   Row 2: Current Issue (70%) | Call for Papers (30%)
   Row 3: Current Issue       | Announcements
   Row 4: Detailed journal information — full width

   Mobile: Default OJS layout
   ============================================================ */

@media (min-width: 992px) {

    /* --------------------------------------------------------
       A. MAIN CONTENT POSITION
       -------------------------------------------------------- */

    body.pkp_page_index .pkp_structure_main:first-child:last-child {
        margin-top: 0;
    }

    body.pkp_page_index .pkp_structure_content {
        padding-top: 24px;
    }


    /* --------------------------------------------------------
       B. TWO-COLUMN GRID
       -------------------------------------------------------- */

    body.pkp_page_index .page_index_journal {
        display: grid;
        grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
        grid-template-rows: auto auto minmax(0, 1fr) auto;
        gap: 24px;
        align-items: start;
    }


    /* --------------------------------------------------------
       C. ABOUT THE JOURNAL — BLUE INTRODUCTION
       -------------------------------------------------------- */

    body.pkp_page_index .page_index_journal > .homepage_about {
        grid-column: 1 / -1;
        grid-row: 1;
        min-width: 0;
        margin: 0;
        padding: 28px 32px;

        background: linear-gradient(120deg, #24486f, #3d638d);
        border-left: 4px solid #e99b2d;
        border-radius: 6px;
    }

    body.pkp_page_index .homepage_about h2 {
        margin: 0 0 12px;
        color: #ffffff;
        font-size: 22px;
        font-weight: 600;
    }

    body.pkp_page_index .homepage_about p {
        margin: 0;
        color: #f0f4fa;
        line-height: 1.7;
    }


    /* --------------------------------------------------------
       D. CURRENT ISSUE — LEFT COLUMN
       -------------------------------------------------------- */

    body.pkp_page_index .page_index_journal > .current_issue {
        grid-column: 1;
        grid-row: 2 / span 2;
        min-width: 0;

        padding: 26px 28px 28px;
        background: #ffffff;

        border: 1px solid #e2e8f0;
        border-top: 3px solid #3d628d;
        border-radius: 6px;
    }


    /* --------------------------------------------------------
       E. HIGHLIGHTS / CALL FOR PAPERS — RIGHT COLUMN
       -------------------------------------------------------- */

    body.pkp_page_index .page_index_journal > .highlights {
        grid-column: 2;
        grid-row: 2;
        min-width: 0;
        margin: 0;

        background: #f7f9fc;
        border-radius: 6px;
        box-shadow: 0 4px 16px rgba(25, 55, 85, 0.07);
    }


    /* --------------------------------------------------------
       F. ANNOUNCEMENTS — BELOW CALL FOR PAPERS
       -------------------------------------------------------- */

    body.pkp_page_index .page_index_journal > .cmp_announcements {
        grid-column: 2;
        grid-row: 3;
        align-self: start;
        min-width: 0;

        margin: 0;
        padding: 20px;

        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
    }

    /* Adapt OJS announcement layout to the narrow column */

    body.pkp_page_index .cmp_announcements > .obj_announcement_summary,
    body.pkp_page_index .cmp_announcements > .more {
        float: none;
        width: 100%;
        padding: 0;
    }

    /* Hide separators from the default announcement layout */

    body.pkp_page_index .cmp_announcements > .obj_announcement_summary::before,
    body.pkp_page_index .cmp_announcements > .more::before {
        display: none;
    }


    /* --------------------------------------------------------
       G. DETAILED JOURNAL INFORMATION — FULL WIDTH
       -------------------------------------------------------- */

body.pkp_page_index .page_index_journal > .additional_content {
    grid-column: 1 / -1;
    grid-row: 4;
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 24px;

    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}


}


/* ============================================================
   03.5 HOMEPAGE — ABOUT IJIOL (ADDITIONAL CONTENT)
   ------------------------------------------------------------
   Applies only to the custom HTML in the OJS Additional Content
   field (.ijiol-home-info). No effect on other OJS pages.

   Desktop (>= 992px): Aims & Scope | Main Research Areas
   Below 992px:      Stacked sections
   GOL Conference:   Full-width section beneath both columns
   ------------------------------------------------------------ */


/* 03.5.0 About IJIOL — Independent card */

body.pkp_page_index .additional_content .ijiol-home-info {
    margin: 0;
    padding: 26px 28px 30px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}



/* 03.5.1 Heading — match the Current Issue visual language */
body.pkp_page_index .additional_content .ijiol-home-info > h2 {
    margin: 0 0 24px;
    padding: 0 0 12px;
    border-bottom: 1px solid #e1e7ee;
    color: #304f73;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
}

/* 03.5.2 Content layout — stack by default (phones/tablets) */
body.pkp_page_index .additional_content .ijiol-home-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

/* 03.5.3 Subheadings and readable body text */
body.pkp_page_index .additional_content .ijiol-home-info h3 {
    margin: 0 0 10px;
    color: #243b53;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

body.pkp_page_index .additional_content .ijiol-home-info p,
body.pkp_page_index .additional_content .ijiol-home-info li {
    color: #334155;
    font-size: 15px;
    line-height: 1.65;
}

body.pkp_page_index .additional_content .ijiol-home-info p {
    margin: 0;
}

body.pkp_page_index .additional_content .ijiol-home-areas ul {
    margin: 0;
    padding-left: 20px;
}

body.pkp_page_index .additional_content .ijiol-home-areas li {
    margin: 0 0 4px;
}

body.pkp_page_index .additional_content .ijiol-home-areas li:last-child {
    margin-bottom: 0;
}

/* 03.5.4 GOL Conference — full width, separated discreetly */
body.pkp_page_index .additional_content .ijiol-home-gol {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

body.pkp_page_index .additional_content .ijiol-home-gol a {
    color: #2d5b89;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.pkp_page_index .additional_content .ijiol-home-gol a:focus-visible {
    outline: 2px solid #e99b2d;
    outline-offset: 3px;
}

/* 03.5.5 Desktop only — balanced two-column presentation */
@media (min-width: 992px) {
    body.pkp_page_index .additional_content .ijiol-home-summary {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 40px;
    }
}



/* ============================================================
   03.6 HOMEPAGE — DISCOVERABILITY & SCIENTIFIC NETWORK
   ------------------------------------------------------------
   Control logo sizes and alignment.
   Homepage only.
   ============================================================ */

   
/* 03.6.0 Scientific Network — Independent card */

body.pkp_page_index .additional_content .ijiol-network {
    margin: 0;
    padding: 18px 28px 26px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}



/* 03.6.1  */
/* Remove first heading's default top margin */
body.pkp_page_index .ijiol-scholar > h3 {
    margin-top: 0;
}
/* Google Scholar logo */
body.pkp_page_index .ijiol-scholar img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: 55px;
    object-fit: contain;
    object-position: left center;
}

/* 03.6.2 GOL scientific network — Logo grid */

body.pkp_page_index .ijiol-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: center;
}

/* 03.6.3 Center logos inside their spaces */

body.pkp_page_index .ijiol-logo-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

/* 03.6.4 Uniform logo dimensions */

body.pkp_page_index .ijiol-logo-grid img {
    display: block;
    width: 100%;
    max-width: 170px;
    height: 75px;
    object-fit: contain;
}

/* 03.6.5 Responsive layout */

@media (max-width: 767px) {
    body.pkp_page_index .ijiol-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}




/* ============================================================
   04. HOMEPAGE — HIGHLIGHTS
   ============================================================ */

/*
   Purpose:
   - Compact Call for Papers presentation
   - Subtle blue academic styling
   - Reduced vertical spacing
   - Responsive layout

   Applies only to homepage Highlights.
   Does not affect article or submission pages.
*/

/* 04.1 Highlight panel */

.pkp_page_index .swiper-slide {
    background-color: #f7f9fc;
    min-height: 0;
}

/* 04.2 Highlight content */

.pkp_page_index .swiper-slide-content {
    padding: 18px 28px !important;
    background-color: #f7f9fc;
    border-left: 3px solid #3d638b;
    border-left: 3px solid orange;
}

/* 04.3 Highlight title */

.pkp_page_index .swiper-slide-title {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    margin: 0 0 8px;
    color: #243b53;
}

/* 04.4 Highlight description */

.pkp_page_index .swiper-slide-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

.pkp_page_index .swiper-slide-desc p {
    margin: 0 0 10px;
}



/* 04.5 Compact, outlined submission button */

body.pkp_page_index .highlights .swiper-slide-button.pkp_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    margin-top: 6px;
    padding: 6px 12px;
    background: transparent;
    color: #49658c;
    border: 1px solid #49658c;
    border-radius: 3px;
    box-shadow: none;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

body.pkp_page_index .highlights .swiper-slide-button.pkp_button:hover {
    background: #49658c;
    color: #fff;
}

body.pkp_page_index .highlights .swiper-slide-button.pkp_button:focus-visible {
    outline: 2px solid #e99b2d;
    outline-offset: 3px;
}


/* 04.6 Mobile submission button */

body.pkp_page_index .highlights .swiper-slide-button.pkp_button {
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    padding: 7px 12px;
    font-size: 13px;
}



/* 04.7 Hide inactive pagination and remove unused spacing
   ------------------------------------------------------------
   Swiper locks pagination when there is only one Highlight.
   Keep pagination available if more Highlights are added.
   ------------------------------------------------------------ */

.pkp_page_index .swiper-pagination-lock {
    display: none !important;
}

/* Remove the extra bottom padding reserved for pagination. */
.pkp_page_index .swiper:has(.swiper-pagination-lock) {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Remove wrapper padding added by our previous customization. */
.pkp_page_index .swiper-wrapper {
    padding-bottom: 0;
}



/* ============================================================
   05. HOMEPAGE — CURRENT ISSUE
   ============================================================ */

/* 05.1 Section spacing */

body.pkp_page_index .current_issue {
    padding-top: 20px;
}

/* 05.2 Current Issue heading */

body.pkp_page_index .current_issue > h2 {
    margin: 0 0 16px;
    padding: 0 0 10px;
    border-bottom: 1px solid #e1e7ee;

    color: #304f73;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
}

/* 05.3 Volume and issue title */

body.pkp_page_index .current_issue_title {
    margin: 0 0 18px;

    color: #243b53;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}


/* 05.4 Current Issue — Cover size
   ------------------------------------------------------------
   Reduce the cover size on desktop and tablet.
   Preserve its aspect ratio and the mobile layout.
   ------------------------------------------------------------ */

@media (min-width: 768px) {

    body.pkp_page_index .current_issue
    .obj_issue_toc .heading .cover {
        width: 140px;
        margin-right: 22px;
        margin-bottom: 12px;
    }

    body.pkp_page_index .current_issue
    .obj_issue_toc .heading .cover img {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
    }

}


/* 05.5 Current Issue — Article section spacing
   ------------------------------------------------------------
   Reduce the gap between the issue introduction
   and the published articles.
   Homepage only.
   ------------------------------------------------------------ */

/* Outer spacing */
body.pkp_page_index .current_issue
.obj_issue_toc .sections:not(:first-child) {
    margin-top: 8px;
}

/* Inner spacing — desktop and tablet */
@media (min-width: 768px) {

    body.pkp_page_index .current_issue
    .obj_issue_toc .sections > .section {
        margin-top: 0;
        padding-top: 12px;
    }

    /* Keep the divider aligned with the section heading */
    body.pkp_page_index .current_issue
    .obj_issue_toc .sections > .section::before {
        top: 24px;
    }

}



/* ============================================================
   05.6 CURRENT ISSUE — ARTICLE PRESENTATION
   ------------------------------------------------------------
   Improve article readability and visual hierarchy.
   Homepage only. Does not affect article or archive pages.
   ============================================================ */

/* 05.6.1 Article separation and spacing */

body.pkp_page_index .current_issue
.cmp_article_list.articles > li {
    margin: 0;
    padding: 16px 0;
    border-bottom: 1px solid #e8edf3;
}

body.pkp_page_index .current_issue
.cmp_article_list.articles > li:first-child {
    padding-top: 8px;
}

body.pkp_page_index .current_issue
.cmp_article_list.articles > li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}


/* 05.6.2 Article titles */

body.pkp_page_index .current_issue
.obj_article_summary h4.title {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
}

body.pkp_page_index .current_issue
.obj_article_summary h4.title a {
    color: #285785;
    text-decoration: none;
}

body.pkp_page_index .current_issue
.obj_article_summary h4.title a:hover {
    color: #183f68;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* 05.6.3 Author information */

body.pkp_page_index .current_issue
.obj_article_summary .meta {
    padding-top: 0;
    line-height: 1.5;
}

body.pkp_page_index .current_issue
.obj_article_summary .authors {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
}


/* 05.6.4 PDF and other galley links */

body.pkp_page_index .current_issue
.obj_article_summary .galleys_links {
    margin: 10px 0 0;
}

body.pkp_page_index .current_issue
.obj_article_summary .obj_galley_link {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    /* border: 1px solid #b7c9dc; */
    border: 1px solid #b42332;
    border-radius: 3px;
    background: #ffffff;
    /* color: #305c87; */
    color: #b42332;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

body.pkp_page_index .current_issue
.obj_article_summary .obj_galley_link:hover {
    /* background: #305c87;
    border-color: #305c87; */
    background: #b42332;
    border-color: #b42332;
    color: #ffffff;
}

body.pkp_page_index .current_issue
.obj_article_summary a:focus-visible {
    outline: 2px solid #e99b2d;
    outline-offset: 3px;
}



/* ============================================================
   06. ANNOUNCEMENTS
   ============================================================ */


/* ============================================================
   06. HOMEPAGE — ANNOUNCEMENTS
   ------------------------------------------------------------
   Consistent titles, dates, spacing and separators.
   Homepage only; desktop two-column layout.
   ============================================================ */

@media (min-width: 992px) {

    /* 06.1 Preserve the existing announcement card */

    body.pkp_page_index .cmp_announcements {
        border-top: 0;
        border-bottom: 0;
    }

    /* 06.2 First announcement */

    body.pkp_page_index .cmp_announcements
    > .obj_announcement_summary {
        float: none;
        width: 100%;
        margin: 0;
        padding: 0 0 16px;
    }

    /* 06.3 Remaining announcements */

    body.pkp_page_index .cmp_announcements
    .more .obj_announcement_summary {
        margin: 0;
        padding: 16px 0;
        border-top: 1px solid #e2e8f0;
    }

    body.pkp_page_index .cmp_announcements
    .more .obj_announcement_summary:last-child {
        padding-bottom: 0;
    }

    /* 06.4 Consistent announcement titles */

    body.pkp_page_index .cmp_announcements
    .obj_announcement_summary h3,
    body.pkp_page_index .cmp_announcements
    .obj_announcement_summary h4 {
        margin: 0 0 8px;
        font-size: 14px;
        line-height: 1.45;
        font-weight: 600;
    }

    body.pkp_page_index .cmp_announcements
    .obj_announcement_summary h3 a,
    body.pkp_page_index .cmp_announcements
    .obj_announcement_summary h4 a {
        color: #285785;
        text-decoration: none;
    }

    body.pkp_page_index .cmp_announcements
    .obj_announcement_summary h3 a:hover,
    body.pkp_page_index .cmp_announcements
    .obj_announcement_summary h4 a:hover {
        text-decoration: underline;
    }

    /* 06.5 Publication dates */

    body.pkp_page_index .cmp_announcements
    .obj_announcement_summary .date {
        margin: 0 0 8px;
        color: #64748b;
        font-size: 12px;
        line-height: 1.5;
    }

    /* 06.6 Announcement descriptions */

    body.pkp_page_index .cmp_announcements
    .obj_announcement_summary .summary {
        margin-top: 10px;
        color: #334155;
        font-size: 13px;
        line-height: 1.6;
    }

    /* 06.7 Read More link */

    body.pkp_page_index .cmp_announcements
    .obj_announcement_summary .read_more {
        display: inline-block;
        margin-top: 8px;
        color: #285785;
        font-size: 12px;
        font-weight: 600;
    }
}



/* ============================================================
   07. ARTICLE PAGES
   ============================================================ */

/* Reserved for article titles, abstracts and PDF links. */


/* ============================================================
   08. SIDEBAR
   ============================================================ */

/* Reserved for optional sidebar improvements. */


/* ============================================================
   09. FOOTER
   ============================================================ */

/* 09.1 Hide the PKP/OJS branding footer. */

.pkp_brand_footer {
    display: none;
}


/* ============================================================
   10. RESPONSIVE DESIGN
   ============================================================ */

/* Reserved for mobile and tablet adjustments. */


/* ============================================================
   11. FUTURE CUSTOMIZATIONS
   ============================================================ */

/* Add new sections above when needed.
   Do not retain obsolete or duplicate CSS rules.
*/


/* ===================== END OF FILE ========================= */
