/* ===== HEADER: NO TOP SPACING ===== */

.pkp_structure_head {
    background: #ffffff;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pkp_site_name_wrapper {
    padding: 10px 0 !important;
    margin: 0 !important;
    text-align: center;
}

.pkp_site_name .is_img img {
    max-height: 100px;
    width: auto;
}

.pkp_navigation_primary_wrapper {
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 4px 0 !important;
    margin-top: 0 !important;
}

.pkp_navigation_primary > li {
    margin-right: 6px;
}

.pkp_navigation_primary > li > a {
    padding: 10px 18px !important;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.pkp_navigation_user_wrapper {
    padding-top: 0 !important;
    padding-right: 20px;
}

.pkp_search {
    margin-top: 0 !important;
}


/* ===== FOOTER: FIVE COLUMNS, BLUE COLOR ===== */

.custom-footer {
    background: #123456 !important;
    color: #ffffff;
    padding: 35px 20px;
    font-family: Times new roman, sans-serif;
}

.custom-footer-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.footer-box img {
    max-width: 100%;
    height: auto;
}

.footer-box h3 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.45);
    padding-bottom: 6px;
    text-transform: uppercase;
}

.footer-box p,
.footer-box li {
    font-size: 14px;
    line-height: 1.6;
    margin: 7px 0;
}

.footer-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-box a {
    color: #ffffff;
    text-decoration: none;
}

.footer-box a:hover {
    color: #eaf4ff;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1100px) {
    .custom-footer-inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .custom-footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .custom-footer-inner {
        grid-template-columns: 1fr;
    }
}
/* ===== JUSTIFY ABSTRACT TEXT ===== */

.obj_article_details .abstract,
.obj_article_details .abstract p,
.obj_article_details .item.abstract,
.obj_article_details .item.abstract p,
.obj_article_summary .summary,
.obj_article_summary .summary p {
    text-align: justify;
}


/* ===== RESPONSIVE FOOTER ===== */

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .pkp_site_name_wrapper {
        padding: 8px 10px !important;
    }

    .pkp_site_name .is_img img {
        max-height: 75px;
    }

    .pkp_navigation_primary > li > a {
        padding: 9px 12px !important;
        font-size: 14px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== FOOTER ADJUSTED TO HOME PAGE WIDTH ===== */

.custom-footer {
    background: #2f95ee !important;
    color: #ffffff;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto !important;
    padding: 35px 30px;
    font-family: Times new roman, sans-serif;
    box-sizing: border-box;
}

.custom-footer-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    width: 100%;
    margin: 0 auto;
    align-items: flex-start;
    box-sizing: border-box;
}
/* ===== OJS FOOTER: HOME CONTENT WIDTH + NO BOTTOM GAP ===== */

.pkp_structure_footer_wrapper {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.pkp_structure_footer {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: #2f95ee !important;
}

.custom-footer {
    background: #2f95ee !important;
    color: #ffffff;
    width: 100% !important;
    margin: 0 !important;
    padding: 35px 30px 25px 30px !important;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.custom-footer-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    width: 100%;
    margin: 0;
    padding: 0;
    align-items: flex-start;
}

/* Remove the bottom dark line / extra space */
.pkp_brand_footer,
.pkp_structure_footer_wrapper::after,
.pkp_structure_footer::after {
    display: none !important;
}

body,
html {
    margin: 0 !important;
    padding-bottom: 0 !important;
}
/* ===== FOOTER: SAME STYLE AS HEADER ===== */

.pkp_structure_footer_wrapper {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
}

.pkp_structure_footer {
    background: #ffffff !important;
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}

.custom-footer {
    background: #ffffff !important;
    color: #333333 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 35px 30px 25px 30px !important;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.custom-footer-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    width: 100%;
    margin: 0;
    padding: 0;
    align-items: flex-start;
}

.footer-box h3 {
    color: #222222 !important;
    border-bottom: 1px solid #e5e5e5;
}

.footer-box a {
    color: #333333 !important;
    text-decoration: none;
}

.footer-box a:hover {
    color: #000000 !important;
    text-decoration: underline;
}

.footer-box p,
.footer-box li {
    color: #333333 !important;
}

/* Remove OJS default bottom footer */
.pkp_brand_footer {
    display: none !important;
}