/* =========================================
   CUSTOM OJS FOOTER
   ========================================= */

/* Main Footer Layout */
.custom-footer {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 30px;
    box-sizing: border-box;
}

/* Left Side Footer Text */
.custom-footer .footer-text {
    flex: 1;
    text-align: left;
    line-height: 1.8;
}

/* Right Side Publisher Logo */
.custom-footer .footer-publisher-logo {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: 50px !important;
}

/* Publisher Logo Size */
.custom-footer .footer-publisher-logo img {
    display: block !important;
    width: 200px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Hide Default OJS Branding Logo */
.pkp_brand_footer {
    display: none !important;
}

/* Full Width Footer Content */
.pkp_footer_content {
    width: 100% !important;
    box-sizing: border-box;
}

/* =========================================
   MOBILE RESPONSIVE FOOTER
   ========================================= */

@media screen and (max-width: 768px) {

    .custom-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .custom-footer .footer-text {
        width: 100%;
    }

    .custom-footer .footer-publisher-logo {
        flex: none;
        width: 100%;
        justify-content: center;
        margin-right: 0 !important;
    }

    .custom-footer .footer-publisher-logo img {
        width: 160px;
        max-width: 100%;
        height: auto;
    }
}
/* =========================================
   1. HIDE OJS FOOTER BRANDING
   ========================================= */

.pkp_brand_footer {
    display: none !important;
}


/* =========================================
   2. JUSTIFY MAIN PAGE CONTENT
   ========================================= */

.pkp_structure_main .page p,
.pkp_structure_main .page_content p,
.pkp_structure_main .obj_article_details p {
    text-align: justify !important;
}


/* =========================================
   3. JUSTIFY ABSTRACT TEXT
   ========================================= */

.article-summary .abstract,
.item.abstract p,
.pkp_structure_main .abstract p,
div.abstract,
div.abstract p,
section.abstract,
section.item.abstract,
.article-details .abstract {
    text-align: justify !important;
}


/* =========================================
   4. ABSTRACT IN A BOX
   ========================================= */

.item.abstract,
.article-summary .abstract,
.article-details .abstract,
.pkp_structure_main .abstract {
    background-color: #f2f2f2;
    border-radius: 10px;
    padding: 20px;
    margin: 20px;
    border: 1px solid #ddd;
    text-align: justify;
}


/* =========================================
   5. REFERENCES IN A BOX
   ========================================= */

.item.references,
.article-summary .references,
.article-details .references,
.pkp_structure_main .references,
.citation-list {
    background-color: #f2f2f2;
    border-radius: 10px;
    padding: 20px;
    margin: 20px;
    border: 1px solid #ddd;
    text-align: justify;
}


/* =========================================
   6. ABSTRACT AND REFERENCES HEADINGS
   ========================================= */

.item.abstract .title,
.item.references .title,
.article-details .references h2,
.article-details .references h3 {
    text-align: justify;
    font-weight: bold;
    margin-bottom: 10px;
}


/* =========================================
   7. JUSTIFY PAGE TITLE
   ========================================= */

.page_title {
    text-align: justify !important;
}


/* =========================================
   8. JUSTIFY MOST-READ ARTICLES
   ========================================= */

.pkp_block.block_most_read ul li a {
    text-align: justify;
    display: block;
}

.block_most_read .title,
.block_most_read a {
    text-align: justify;
}

/* =========================================
   JUSTIFY ABOUT THE JOURNAL & HOMEPAGE TEXT
   OJS 3.4 / 3.5
   ========================================= */

/* Homepage: About the Journal */
.pkp_structure_main .additional_content,
.pkp_structure_main .additional_content p,
.pkp_structure_main .homepage_about,
.pkp_structure_main .homepage_about p,
.pkp_structure_main .cmp_announcements p {
    text-align: justify !important;
    text-justify: inter-word;
}

/* About page and other custom pages */
.pkp_structure_main .page_about p,
.pkp_structure_main .page p,
.pkp_structure_main .page_content p,
.pkp_structure_main .static_page p {
    text-align: justify !important;
    text-justify: inter-word;
}

/* General content paragraphs */
.pkp_structure_main .obj_article_details p,
.pkp_structure_main .abstract p,
.pkp_structure_main .references p {
    text-align: justify !important;
    text-justify: inter-word;
}
