/* Keep the complete navigation menu on one line */
.pkp_navigation_primary_wrapper {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

#navigationPrimary {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    flex: 1;
}

#navigationPrimary > li {
    white-space: nowrap;
    margin-right: 4px;
}

#navigationPrimary > li > a {
    padding-left: 7px;
    padding-right: 7px;
}

/* Keep Search on the right */
.pkp_navigation_search_wrapper {
    flex-shrink: 0;
    margin-left: auto;
}
/* Keep the main navigation on one line */
.pkp_navigation_primary_wrapper {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

#navigationPrimary {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    flex: 1;
}

#navigationPrimary > li {
    flex-shrink: 0;
    margin-right: 4px;
    white-space: normal;
}

#navigationPrimary > li > a {
    padding-left: 7px;
    padding-right: 7px;
    white-space: nowrap;
}

/* Wrap long dropdown menu titles without increasing width */
#navigationPrimary ul li,
#navigationPrimary ul li a {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
}

#navigationPrimary ul li a {
    display: block !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    line-height: 1.35 !important;
    padding: 10px 12px !important;
}

/* Keep Search on the right */
.pkp_navigation_search_wrapper {
    flex-shrink: 0;
    margin-left: auto;
}
.journal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.journal-footer-content {
    flex: 1;
}

.journal-footer-logo {
    flex: 0 0 auto;
    margin-left: auto;
}

.journal-footer-logo img {
    width: 210px;
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .journal-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .journal-footer-logo {
        margin: 20px auto 0;
    }
}
/* Separate contact-information boxes */
.journal-contact-box {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 28px;
    padding: 24px 28px;
    background: #f3f3f3;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    color: #222;
    line-height: 1.6;
}

/* Contact person’s name */
.journal-contact-box h3 {
    display: inline-block;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid #e7a52d;
    color: #555;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
}

/* Remove unnecessary paragraph spacing */
.journal-contact-box p {
    margin: 2px 0;
}

/* Job title */
.journal-contact-box .contact-position {
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

/* Email and phone links */
.journal-contact-box a {
    color: #24799b;
    text-decoration: none;
}

.journal-contact-box a:hover {
    color: #d48b13;
    text-decoration: underline;
}

/* Mobile layout */
@media (max-width: 600px) {
    .journal-contact-box {
        padding: 20px;
    }
}

/* Widen About dropdown and keep menu titles on one line */
.pkp_navigation_primary > li > ul {
    width: 260px !important;
    min-width: 260px !important;
}

.pkp_navigation_primary > li > ul > li > a {
    white-space: nowrap !important;
}
/* =========================================================
   ABOUT DROPDOWN MENU ICONS
   ========================================================= */

/* Common dropdown icon settings */
.pkp_navigation_primary > li > ul > li > a::before {
    font-family: "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    display: inline-block;
    width: 20px;
    margin-right: 8px;
    text-align: center;
    font-size: 14px;
    line-height: 1;
    transition: transform 0.2s ease;
}


/* Dropdown icon hover effect */
.pkp_navigation_primary > li > ul > li > a:hover::before {
    transform: scale(1.15);
}

/* Increase only the complete white page width */
@media (min-width: 1200px) {
    body .pkp_structure_page {
        width: 1250px !important;
        max-width: 1250px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* =========================================================
   OJS CUSTOM STYLESHEET
   ========================================================= */


/* =========================================================
   1. ARTICLE LISTING
   Cover on left; title, author and PDF on right
   ========================================================= */

.obj_article_summary {
    display: grid !important;
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
    column-gap: 30px;
    align-items: start;
    width: 100%;
    min-height: 240px;
    margin: 0 0 45px 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* Article cover */
.obj_article_summary > .cover {
    grid-column: 1 !important;
    grid-row: 1 / span 4 !important;
    float: none !important;
    clear: none !important;
    width: 200px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.obj_article_summary > .cover a {
    display: block;
}

.obj_article_summary > .cover img {
    display: block !important;
    width: 198px !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
}

/* Article title and page numbers */
.obj_article_summary > .title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    float: none !important;
    width: 100% !important;
    margin: 0 0 7px 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

/* Author information */
.obj_article_summary > .meta {
    grid-column: 2 !important;
    grid-row: 2 !important;
    float: none !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

/* PDF galley area */
.obj_article_summary > .galleys_links {
    grid-column: 2 !important;
    grid-row: 3 !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

/* Remove inherited floating */
.obj_article_summary > * {
    float: none !important;
}


/* =========================================================
   2. MOBILE ARTICLE LAYOUT
   ========================================================= */

@media (max-width: 600px) {

    .obj_article_summary {
        grid-template-columns: 110px minmax(0, 1fr);
        column-gap: 15px;
        min-height: 150px;
        margin-bottom: 30px !important;
    }

    .obj_article_summary > .cover {
        width: 110px !important;
    }

    .obj_article_summary > .cover img {
        width: 108px !important;
    }
}


/* =========================================================
   3. NAVIGATION ICONS
   ========================================================= */

.pkp_navigation_primary > li > a::before,
.pkp_navigation_user > li > a::before {
    font-family: "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    display: inline-block;
    margin-right: 8px;
    font-size: 15px;
    line-height: 1;
    transition: transform 0.2s ease;
}


/* PRIMARY MENU */

/* Home */
.pkp_navigation_primary > li:nth-child(1) > a::before {
    content: "\f015";
}

/* Issues */
.pkp_navigation_primary > li:nth-child(2) > a::before {
    content: "\f02d";
}

/* Announcements */
.pkp_navigation_primary > li:nth-child(3) > a::before {
    content: "\f0a1";
}

/* Editorial Policies */
.pkp_navigation_primary > li:nth-child(4) > a::before {
    content: "\f24e";
}

/* Indexation */
.pkp_navigation_primary > li:nth-child(5) > a::before {
    content: "\f187";
}

/* About */
.pkp_navigation_primary > li:nth-child(6) > a::before {
    content: "\f19c";
}


/* SECONDARY/USER MENU */

/* Journals */
.pkp_navigation_user a[href$="/index"]::before {
    content: "\f015";
}

/* Register */
.pkp_navigation_user a[href*="register"]::before {
    content: "\f234";
}

/* Login */
.pkp_navigation_user a[href*="login"]::before {
    content: "\f090";
}

/* Profile */
.pkp_navigation_user a[href*="profile"]::before {
    content: "\f007";
}

/* Dashboard */
.pkp_navigation_user a[href*="dashboard"]::before {
    content: "\f3fd";
}

/* Logout */
.pkp_navigation_user a[href*="logout"]::before {
    content: "\f2f5";
}


/* Navigation icon hover */
.pkp_navigation_primary > li > a:hover::before,
.pkp_navigation_user > li > a:hover::before {
    transform: scale(1.15);
}


/* =========================================================
   4. BLINKING PDF BUTTON
   ========================================================= */

@keyframes pdfBlink {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 rgba(59, 130, 160, 0);
    }

    50% {
        opacity: 0.45;
        transform: scale(1.04);
        box-shadow: 0 0 10px rgba(59, 130, 160, 0.65);
    }
}

.obj_galley_link.pdf {
    animation: pdfBlink 1.2s ease-in-out infinite;
    transform-origin: center;
}

/* Stop blinking when hovered */
.obj_galley_link.pdf:hover {
    animation-play-state: paused;
    opacity: 1;
}


/* =========================================================
   5. HOME PAGE TEXT
   ========================================================= */

.pkp_page_index .pkp_structure_main p,
.pkp_page_index .pkp_structure_main .description,
.pkp_page_index .pkp_structure_main .summary,
.pkp_page_index .pkp_structure_main .content,
.pkp_page_index .pkp_structure_main .obj_announcement_summary {
    text-align: justify;
    text-justify: inter-word;
}

/* Keep article information normally aligned */
.pkp_page_index .obj_article_summary,
.pkp_page_index .obj_article_summary .title,
.pkp_page_index .obj_article_summary .meta,
.pkp_page_index .obj_article_summary .galleys_links {
    text-align: left !important;
}


/* =========================================================
   6. ABSTRACT
   ========================================================= */

.item.abstract,
.article-summary .abstract,
.article-details .abstract,
.pkp_structure_main .abstract {
    background-color: #f2f2f2;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-sizing: border-box;
}

.item.abstract p,
.article-summary .abstract p,
.article-details .abstract p,
.pkp_structure_main .abstract p {
    text-align: justify !important;
    text-justify: inter-word;
}


/* =========================================================
   7. REFERENCES
   Left alignment prevents excessive spaces
   ========================================================= */

.item.references,
.article-summary .references,
.article-details .references,
.pkp_structure_main .references,
.citation-list {
    background-color: #f2f2f2;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-sizing: border-box;
    text-align: left !important;
}

.item.references p,
.item.references li,
.article-summary .references p,
.article-details .references p,
.pkp_structure_main .references p,
.citation-list p,
.citation-list li {
    text-align: left !important;
    word-spacing: normal !important;
    overflow-wrap: anywhere;
}

/* Abstract and references headings */
.item.abstract .title,
.item.references .title,
.article-details .references h2,
.article-details .references h3 {
    text-align: left !important;
    font-weight: bold;
    margin-bottom: 10px;
}


/* =========================================================
   8. SIDEBAR
   ========================================================= */

.pkp_block .title {
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

@keyframes sidebarBounce {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(3px);
    }

    100% {
        transform: translateY(0);
    }
}

.pkp_block .title:hover {
    animation: sidebarBounce 0.3s ease;
}

/* Shift selected custom blocks slightly left */
.pkp_block.block_custom.about,
.pkp_block.block_custom.keywords {
    margin-left: -10px;
}

.pkp_block.block_custom.about p,
.pkp_block.block_custom.about li,
.pkp_block.block_custom.about strong,
.pkp_block.block_custom.keywords p {
    margin-left: 0;
    text-align: left;
}


/* =========================================================
   9. FOOTER
   ========================================================= */

/* Hide automatic OJS/PKP footer logo */
.pkp_brand_footer,
.pkp_structure_footer .pkp_brand_footer,
.pkp_structure_footer_wrapper .pkp_brand_footer,
.pkp_structure_footer img[src*="ojs_brand.png"] {
    display: none !important;
}

/* Main website width */
.pkp_structure_page {
    max-width: 1160px !important;
}

/* Custom footer */
.custom-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    padding: 30px 35px;
    box-sizing: border-box;
}

.footer-text {
    flex: 1;
    line-height: 1.4;
}

.footer-logo {
    flex: 0 0 200px;
    text-align: right;
}

.custom-footer .footer-logo img {
    display: block !important;
    width: 180px;
    max-width: 100%;
    height: auto;
    margin-left: auto;
}


/* Mobile footer */
@media (max-width: 600px) {

    .custom-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 25px 20px;
    }

    .footer-logo {
        flex: none;
        width: 100%;
        text-align: left;
    }

    .custom-footer .footer-logo img {
        margin-left: 0;
    }
}