/* NGRJM — Full-width, gap-free header image */

/* Remove header spacing */
.pkp_head_wrapper,
.pkp_head_wrapper .pkp_site_name_wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* Remove inner container gaps */
.pkp_head_wrapper .pkp_site_name_wrapper > .container,
.pkp_head_wrapper .pkp_site_name_wrapper > .container-fluid {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Make the image link fill the available width */
.pkp_head_wrapper .pkp_site_name,
.pkp_head_wrapper .pkp_site_name a {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

/* Banner image */
.pkp_head_wrapper .pkp_site_name img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain;
    border: 0 !important;
}

/* Prevent default heading spacing */
.pkp_head_wrapper h1.pkp_site_name {
    margin: 0 !important;
    padding: 0 !important;
}

/* Mobile header */
@media (max-width: 767px) {
    .pkp_head_wrapper .pkp_site_name_wrapper,
    .pkp_head_wrapper .pkp_site_name,
    .pkp_head_wrapper .pkp_site_name a {
        margin: 0 !important;
        padding: 0 !important;
    }

    .pkp_head_wrapper .pkp_site_name img {
        width: 100% !important;
        height: auto !important;
    }
}


/* =========================================
   NGRJM – Clean Navbar Alignment
   ========================================= */

/* Full-width navbar background */
.pkp_navigation_primary_wrapper {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Main navbar row */
.pkp_navigation_primary_row {
    display: grid !important;
    grid-template-columns: max-content max-content !important;
    justify-content: start !important;
    align-items: center !important;
    column-gap: 12px !important;

    width: calc(100% - 30px) !important;
    max-width: 1110px !important;

    height: 40px !important;
    min-height: 40px !important;

    margin: 0 auto !important;
    padding: 0 !important;

    box-sizing: border-box !important;
    overflow: visible !important;
}

/* OJS navigation wrapper */
.pkp_navigation_primary_row > .pkp_navigation_primary_wrapper {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Navigation menu */
.pkp_navigation_primary_row ul.pkp_navigation_primary {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;

    width: auto !important;
    height: 40px !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* Navigation items */
.pkp_navigation_primary > li {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

/* Navigation links */
.pkp_navigation_primary > li > a {
    padding: 10px 12px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
}

/* Search wrapper */
.pkp_navigation_primary_row > .pkp_navigation_search_wrapper {
    display: flex !important;
    position: static !important;

    grid-column: 2 !important;
    grid-row: 1 !important;

    width: auto !important;
    min-width: 0 !important;
    height: 40px !important;

    margin: 0 !important;
    padding: 0 5px !important;

    align-items: center !important;
    justify-content: center !important;

    visibility: visible !important;
    opacity: 1 !important;

    white-space: nowrap !important;
    background: transparent !important;
}

/* Search link */
.pkp_navigation_search_wrapper a.pkp_search {
    display: inline-flex !important;
    align-items: center !important;

    color: #ffffff !important;
    font-size: 14px !important;

    white-space: nowrap !important;
    text-decoration: none !important;
}

/* Mobile navbar */
@media (max-width: 767px) {

    .pkp_navigation_primary_wrapper {
        height: auto !important;
    }

    .pkp_navigation_primary_row {
        display: flex !important;
        flex-wrap: wrap !important;

        width: 100% !important;
        height: auto !important;
        min-height: 40px !important;

        padding: 0 15px !important;
    }

    .pkp_navigation_primary_row > .pkp_navigation_primary_wrapper {
        width: 100% !important;
        height: auto !important;
    }

    .pkp_navigation_primary_row ul.pkp_navigation_primary {
        flex-wrap: wrap !important;
        height: auto !important;
    }

    .pkp_navigation_primary_row > .pkp_navigation_search_wrapper {
        position: static !important;
        margin: 0 !important;
    }
}

/* =========================================
   NGRJM – Modern Academic Footer
   ========================================= */

/* Main footer background */
.pkp_structure_footer_wrapper {
    background: #f5f8fa !important;
    border-top: 3px solid #2786a3 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Footer container */
.pkp_structure_footer {
    max-width: 1110px !important;
    width: calc(100% - 30px) !important;
    margin: 0 auto !important;
    padding: 35px 0 25px !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

/* Footer text */
.pkp_structure_footer,
.pkp_structure_footer p,
.pkp_structure_footer div {
    color: #344054 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

/* Footer links */
.pkp_structure_footer a {
    color: #087da5 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.pkp_structure_footer a:hover {
    color: #07536f !important;
    text-decoration: underline !important;
}

/* Footer paragraphs */
.pkp_structure_footer p {
    margin: 0 0 10px !important;
}

/* Publisher information */
.pkp_footer_content {
    padding: 0 !important;
    margin: 0 !important;
}

/* PKP branding */
.pkp_brand_footer {
    margin-top: 25px !important;
    padding-top: 15px !important;
    border-top: 1px solid #dce5e9 !important;
    text-align: right !important;
}

.pkp_brand_footer img {
    max-width: 145px !important;
    height: auto !important;
    opacity: 0.85;
}

/* Mobile footer */
@media (max-width: 767px) {

    .pkp_structure_footer {
        width: calc(100% - 30px) !important;
        padding: 25px 0 20px !important;
    }

    .pkp_structure_footer,
    .pkp_structure_footer p {
        font-size: 13px !important;
    }

    .pkp_brand_footer {
        text-align: center !important;
        margin-top: 20px !important;
    }

    .pkp_brand_footer img {
        max-width: 120px !important;
    }
}
/* =========================================
   NGRJM – OJS Text Branding (Single Line)
   ========================================= */

/* Footer branding container */
.pkp_brand_footer {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
    text-align: right !important;
    margin-top: 25px !important;
    padding-top: 15px !important;
    border-top: 1px solid #dce5e9 !important;
    box-sizing: border-box !important;
}

/* Hide original OJS/PKP logo */
.pkp_brand_footer img {
    display: none !important;
}

/* Branding link */
.pkp_brand_footer a {
    display: inline-block !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    white-space: nowrap !important;
    text-align: right !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
    font-size: 19px !important;
    color: #52636c !important;
}

/* Branding text */
.pkp_brand_footer a::after {
    content: "Platform & workflow by OJS / PKP";
    display: inline !important;
    white-space: nowrap !important;
}

/* Hover */
.pkp_brand_footer a:hover {
    color: #087da5 !important;
    text-decoration: underline !important;
}

/* Mobile */
@media (max-width: 767px) {
    .pkp_brand_footer {
        justify-content: center !important;
    }

    .pkp_brand_footer a {
        font-size: 14px !important;
    }
}




/* =========================================
   NGRJM – Minimal Academic Content Design
   ========================================= */

/* Main content background */
.pkp_structure_content {
    background: #ffffff !important;
}

/* Main content and sidebar spacing */
.pkp_structure_main {
    padding: 30px 28px !important;
    box-sizing: border-box !important;
}

.pkp_structure_sidebar {
    padding: 30px 22px !important;
    box-sizing: border-box !important;
}

/* About the Journal */
.homepage_about {
    background: #ffffff !important;
    border: 1px solid #e3ebef !important;
    border-left: 3px solid #2786a3 !important;
    border-radius: 5px !important;
    padding: 22px 24px !important;
    margin-bottom: 25px !important;
}

/* Current Issue */
.current_issue {
    background: #ffffff !important;
    border: 1px solid #e3ebef !important;
    border-radius: 5px !important;
    padding: 22px 24px !important;
    margin-bottom: 25px !important;
}

/* Section headings */
.pkp_structure_main h2,
.pkp_structure_main h3,
.pkp_structure_sidebar h2,
.pkp_structure_sidebar h3 {
    color: #183849 !important;
}

/* Current issue heading */
.current_issue h2 {
    border-bottom: 2px solid #e8eff2 !important;
    padding-bottom: 10px !important;
}

/* Article section */
.obj_issue_toc .sections {
    margin-top: 20px !important;
}

.obj_issue_toc .section {
    border-top: 1px solid #e3ebef !important;
    padding-top: 18px !important;
}

/* Article cards */
.obj_article_summary {
    background: #f8fafb !important;
    border: 1px solid #e5ecef !important;
    border-radius: 5px !important;
    padding: 18px !important;
    margin: 12px 0 !important;
    transition: border-color 0.2s ease;
}

.obj_article_summary:hover {
    border-color: #2786a3 !important;
}

/* Article titles */
.obj_article_summary .title,
.obj_article_summary h3 a {
    color: #087da5 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.obj_article_summary .title:hover,
.obj_article_summary h3 a:hover {
    color: #07536f !important;
}

/* Article author and details */
.obj_article_summary .authors,
.obj_article_summary .pages {
    color: #64748b !important;
    font-size: 13px !important;
}

/* Sidebar blocks */
.pkp_structure_sidebar .pkp_block {
    background: #ffffff !important;
    border: 1px solid #e3ebef !important;
    border-radius: 5px !important;
    padding: 18px !important;
    margin-bottom: 20px !important;
}

/* Sidebar headings */
.pkp_structure_sidebar .pkp_block h2 {
    color: #183849 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #2786a3 !important;
    padding-bottom: 10px !important;
    margin-bottom: 14px !important;
}

/* Sidebar links */
.pkp_structure_sidebar a {
    color: #087da5 !important;
    text-decoration: none !important;
}

.pkp_structure_sidebar a:hover {
    color: #07536f !important;
    text-decoration: underline !important;
}

/* General content links */
.pkp_structure_main a {
    color: #087da5;
}

/* Buttons */
.pkp_structure_main .cmp_button,
.pkp_structure_main button,
.pkp_structure_main .obj_galley_link {
    border-radius: 4px !important;
}

/* View all issues */
.pkp_structure_main .current_issue a.read_more {
    color: #087da5 !important;
    font-weight: 600 !important;
}

/* Responsive layout */
@media (max-width: 767px) {

    .pkp_structure_main {
        padding: 18px 15px !important;
    }

    .pkp_structure_sidebar {
        padding: 15px !important;
    }

    .homepage_about,
    .current_issue {
        padding: 17px !important;
        margin-bottom: 18px !important;
    }

    .obj_article_summary {
        padding: 14px !important;
    }

    .pkp_structure_sidebar .pkp_block {
        padding: 15px !important;
    }
}




/* =========================================
   NGRJM – Archive Page Design
   ========================================= */

/* Archive page background */
.page_issue_archive {
    background: #ffffff !important;
}

/* Main archive content */
.page_issue_archive .pkp_structure_main {
    padding: 30px 28px !important;
}

/* Breadcrumb */
.page_issue_archive .cmp_breadcrumbs {
    margin-bottom: 20px !important;
    font-size: 13px !important;
    color: #64748b !important;
}

.page_issue_archive .cmp_breadcrumbs a {
    color: #087da5 !important;
    text-decoration: none !important;
}

/* Archive heading */
.page_issue_archive h1 {
    color: #183849 !important;
    font-size: 25px !important;
    font-weight: 600 !important;
    padding-bottom: 14px !important;
    margin-bottom: 22px !important;
    border-bottom: 2px solid #e3ebef !important;
    position: relative !important;
}

.page_issue_archive h1::after {
    content: "";
    display: block;
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 55px;
    height: 2px;
    background: #2786a3;
}

/* Archive list */
.page_issue_archive .issues_archive {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

/* Individual issue cards */
.page_issue_archive .obj_issue_summary {
    background: #f8fafb !important;
    border: 1px solid #e3ebef !important;
    border-left: 3px solid #2786a3 !important;
    border-radius: 5px !important;
    padding: 19px 20px !important;
    margin: 0 !important;
    transition: background 0.2s ease,
                border-color 0.2s ease,
                transform 0.2s ease !important;
}

/* Hover effect */
.page_issue_archive .obj_issue_summary:hover {
    background: #f1f7f9 !important;
    border-color: #2786a3 !important;
    transform: translateX(3px);
}

/* Issue titles */
.page_issue_archive .obj_issue_summary .title,
.page_issue_archive .obj_issue_summary h2,
.page_issue_archive .obj_issue_summary h3 {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

/* Issue title links */
.page_issue_archive .obj_issue_summary .title a,
.page_issue_archive .obj_issue_summary h2 a,
.page_issue_archive .obj_issue_summary h3 a {
    color: #087da5 !important;
    text-decoration: none !important;
}

/* Link hover */
.page_issue_archive .obj_issue_summary a:hover {
    color: #07536f !important;
    text-decoration: underline !important;
}

/* Issue description */
.page_issue_archive .obj_issue_summary .description {
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-top: 8px !important;
}

/* Published date */
.page_issue_archive .obj_issue_summary .published {
    color: #64748b !important;
    font-size: 12px !important;
    margin-top: 7px !important;
}

/* Sidebar – maintain matching design */
.page_issue_archive .pkp_structure_sidebar .pkp_block {
    background: #ffffff !important;
    border: 1px solid #e3ebef !important;
    border-radius: 5px !important;
    padding: 18px !important;
    margin-bottom: 18px !important;
}

.page_issue_archive .pkp_structure_sidebar .pkp_block h2 {
    color: #183849 !important;
    font-size: 17px !important;
    border-bottom: 2px solid #2786a3 !important;
    padding-bottom: 10px !important;
}

/* Mobile */
@media (max-width: 767px) {

    .page_issue_archive .pkp_structure_main {
        padding: 20px 15px !important;
    }

    .page_issue_archive .obj_issue_summary {
        padding: 15px !important;
    }

    .page_issue_archive h1 {
        font-size: 22px !important;
    }

    .page_issue_archive .issues_archive {
        gap: 10px !important;
    }
}






/* =========================================
   NGRJM – Article Layout Correction
   ========================================= */

/* Restore OJS article row structure */
.page_article .obj_article_details .row {
    display: block !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
    overflow: hidden !important;
}

/* Main article column – left */
.page_article .obj_article_details .main_entry {
    display: block !important;
    float: left !important;
    width: 66.666667% !important;
    box-sizing: border-box !important;
    padding: 22px 25px !important;
    background: #ffffff !important;
}

/* Article information – right */
.page_article .obj_article_details .entry_details {
    display: block !important;
    float: left !important;
    width: 33.333333% !important;
    box-sizing: border-box !important;
    padding: 15px !important;
    background: #f5f9fa !important;
    border-left: 1px solid #e3ebef !important;
    min-height: 100% !important;
}

/* PDF button */
.page_article .obj_article_details .entry_details .obj_galley_link {
    display: inline-block !important;
    background: #2786a3 !important;
    color: #ffffff !important;
    padding: 8px 15px !important;
    border-radius: 4px !important;
    border: none !important;
    text-decoration: none !important;
}

/* Article information separators */
.page_article .obj_article_details .entry_details .item {
    padding: 13px 10px !important;
    margin: 0 !important;
    border-bottom: 1px solid #dfe8ec !important;
}

/* Similar Articles – full width */
.page_article .obj_article_details .item.references,
.page_article .obj_article_details .item.similar,
.page_article .obj_article_details .item.similar_articles {
    display: block !important;
    clear: both !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 22px 25px !important;
    background: #ffffff !important;
    border-top: 1px solid #e3ebef !important;
}

/* Similar Articles heading */
.page_article .obj_article_details .item.references h2,
.page_article .obj_article_details .item.similar h2,
.page_article .obj_article_details .item.similar_articles h2 {
    color: #183849 !important;
    border-bottom: 2px solid #2786a3 !important;
    padding-bottom: 10px !important;
}

/* Article content */
.page_article .obj_article_details .item.abstract {
    line-height: 1.85 !important;
    color: #344054 !important;
}

/* Mobile – stack columns */
@media (max-width: 767px) {

    .page_article .obj_article_details .main_entry,
    .page_article .obj_article_details .entry_details {
        float: none !important;
        width: 100% !important;
    }

    .page_article .obj_article_details .entry_details {
        border-left: none !important;
        border-top: 1px solid #e3ebef !important;
    }

    .page_article .obj_article_details .item.references,
    .page_article .obj_article_details .item.similar,
    .page_article .obj_article_details .item.similar_articles {
        padding: 18px 15px !important;
    }
}
