/* ===========================
   OJS SCOPUS-STYLE THEME
   =========================== */

/* ========= BASE ========= */
body {
    font-family: "Georgia", "Calisto MT", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1f1f1f;
    background-color: #f7f7f2;
}

a {
    color: #0b5d3b;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #083d27;
}

/* ========= HEADER ========= */
.pkp_structure_head {
    background: #0b5d3b;
    border-bottom: 4px solid #f1c40f;
}

.pkp_site_name a {
    color: #ffffff !important;
    font-weight: bold;
    font-size: 20px;
}

.pkp_nav_list li a {
    color: #ffffff !important;
    padding: 10px 15px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 13px;
}

/* ACTIVE MENU BUTTON (LIME) */
.pkp_nav_list li a.current,
.pkp_nav_list li a[aria-current="page"] {
    background: #7CFC00;
    color: #000 !important;
    border-radius: 4px;
}

.pkp_nav_list li a:hover {
    background: #f1c40f;
    color: #000 !important;
    border-radius: 4px;
}

/* ========= MAIN CONTENT ========= */
.pkp_structure_main {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
}

/* ========= CLEAN TOC GRID ========= */

/* ONLY the article list becomes grid */
.cmp_issue_toc_articles {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Fix article items inside grid */
.cmp_issue_toc_articles .obj_article_summary {
    float: none !important;
    width: auto !important;
    box-sizing: border-box;
}
.pkp_structure_main {
    max-width: 100% !important;
}

/* ========= ARTICLE CARDS ========= */
.obj_article_summary {
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 5px;
    padding: 18px;
    transition: all 0.25s ease;
    position: relative;
}

.obj_article_summary:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.obj_article_summary .title a {
    font-size: 14px;
    font-weight: bold;
    color: #0b5d3b;
    line-height: 1.2;
}

.obj_article_summary .authors {
    font-size: 12px;
    color: #555;
    margin-top: 4px;
}

.obj_article_summary .abstract {
    font-size: 10px;
    color: #444;
    margin-top: 5px;
}

/* ========= DOI BADGE ========= */
.doi-badge {
    display: inline-block;
    background: #0b5d3b;
    color: #fff;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 3px;
    margin-top: 10px;
}

.doi-badge a {
    color: #fff;
}

/* ========= METRICS ========= */
.article-metrics {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    font-size: 10px;
}

.metric-box {
    background: #a7a2a2;
    padding: 6px 10px;
    border-radius: 5px;
    color: #333;
    font-weight: 500;
}

.metric-box span {
    font-weight: bold;
    color: #0b5d3b;
}

/* ========= BUTTONS ========= */
button,
.pkp_button,
input[type="submit"] {
    background: #f1c40f;
    color: #000;
    border: none;
    padding: 10px 16px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover,
.pkp_button:hover,
input[type="submit"]:hover {
    background: #d4ac0d;
}

/* ========= SIDEBAR ========= */
.pkp_structure_sidebar {
    background: #f1f1ea;
    padding: 15px;
    border-radius: 6px;
}

/* SIDEBAR ITEMS AS WILDCARDS */
.pkp_structure_sidebar ul li {
    list-style: none;
    margin-bottom: 6px;
}

.pkp_structure_sidebar ul li a::before {
    content: "- ";
    color: #0b5d3b;
}

/* BLOCK NAMES BOLD CAPS */
.pkp_structure_sidebar .block .title {
    font-weight: 800;
    text-transform: uppercase;
}

/* SIDEBAR BUTTONS YELLOW */
.pkp_structure_sidebar .pkp_button,
.pkp_structure_sidebar button,
.pkp_structure_sidebar input[type="submit"] {
    background: #f1c40f;
    color: #000;
}

/* PDF links */
.obj_article_summary .galleys_links a {
    display: inline-block;
    background: #f1c40f;
    color: #000 !important;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 10px;
}

.obj_article_summary .galleys_links a:hover {
    background: #d4ac0d;
}

/* ========= ISSUE HEADER ========= */
.current_issue_title {
    font-size: 22px;
    font-weight: bold;
    color: #0b5d3b;
    margin-bottom: 10px;
}

/* ========= TABLES ========= */
table {
    border-collapse: collapse;
    width: 100%;
}

table th {
    background: #0b5d3b;
    color: #fff;
    padding: 10px;
}

table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/* ========= FORMS ========= */
input, select, textarea {
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 4px;
}

/* =========================================================
   SCOPUS / ELSEVIER STYLE FOOTER v2
   Multi-column academic footer system
   ========================================================= */

.pkp_structure_footer {
    background: #014716;
    color: #ffffff;
    padding: 40px 20px;
    font-size: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: start;
}

/* Align all footer blocks to the top */
.footer-logo,
.footer-col,
.footer-bottom {
    align-self: start;
}

/* Control logo positioning inside its box */
.footer-logo {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Make bottom strip span full width */
.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
}
    

/* RESPONSIVE LAYOUT */
@media (max-width: 900px) {
    .pkp_structure_footer {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pkp_structure_footer {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* FOOTER LOGO */
.footer-logo img {
    max-height: 60px;
    width: auto;
    margin-bottom: 10px;
}

/* COLUMN TITLES */
.footer-col h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #f1c40f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* LINKS */
.footer-links a {
    display: block;
    margin-bottom: 6px;
    color: #ffffff !important;
    font-size: 13px;
    text-decoration: none;
}

.footer-links a:hover {
    color: #f1c40f !important;
    text-decoration: underline;
}

/* BOTTOM ROW (FULL WIDTH) */
.footer-bottom {
    grid-column: 1 / -1;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    font-size: 12px;
    color: #dcdcdc;
}

.footer-bottom a {
    color: #f1c40f !important;
}

/* CLEAN BRANDING REMOVAL */
.pkp_brand_footer,
#pkpBrandFooter,
.pkp_footer_brand {
    display: none !important;
}
.pkp_structure_footer .footer-links a {
    display: block;
    margin-bottom: 6px;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-weight: normal !important;
    text-transform: none !important;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 600px) {
    .obj_article_summary {
        padding: 15px;
    }
}


/* ========= FULL WIDTH COVER ========= */
.pkp_structure_page {
    max-width: 100% !important;
    width: 100% !important;
}

/* ========= SIDEBAR SEPARATORS ========= */
.pkp_structure_sidebar .block {
    border-bottom: 3px solid #239b55;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

/* ========= CENTER FOOTER TEXT ========= */
.pkp_structure_footer {
    text-align: center;
    background: #014716; /* light black */
    color: #fff;
}

/* ========= FOOTER LINKS ========= */
.pkp_structure_footer a {
    color: #f1c40f !important;
}

/* ========= MAKE A SUBMISSION BUTTON ========= */
a[href*="submission"],
.pkp_block_make_submission a {
    background: #28a745 !important;
    color: #fff !important;
    font-weight: bold !important;
    padding: 10px 16px !important;
    border-radius: 5px !important;
    display: inline-block;
    text-transform: uppercase;
}

a[href*="submission"]:hover,
.pkp_block_make_submission a:hover {
    background: #f1c40f !important;
    color: #000 !important;
}

/* ========= MOBILE MENU BACKGROUND ========= */
@media (max-width: 768px) {
    .pkp_navigation_primary_wrapper {
        background: #034d07 !important;
    }
}
/* =========================================================
   CLEAN UI ISOLATION RULESET (LONG-TERM FIX)
   Prevents style bleeding across OJS components
   ========================================================= */


/* =========================
   1. NAVIGATION ONLY
   ========================= */

.pkp_nav_list li a:hover {
    background: #f1c40f;
    color: #000 !important;
    border-radius: 4px;
    text-decoration: none;
}


/* =========================
   2. BUTTONS ONLY
   ========================= */

button:hover,
.pkp_button:hover,
input[type="submit"]:hover,
a[href*="submission"]:hover,
.pkp_block_make_submission a:hover {
    background: #d4ac0d !important;
    color: #000 !important;
}


/* =========================
   3. FOOTER LINKS ONLY
   ========================= */

.pkp_structure_footer a {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-weight: normal !important;
    text-transform: none !important;
}

.pkp_structure_footer .footer-links a {
    display: block;
    margin: 6px 0;
    color: #ffffff !important;
}

.pkp_structure_footer .footer-links a:hover {
    background: none !important;
    color: #f1c40f !important;
    text-decoration: underline;
}


/* =========================
   4. GLOBAL LINK DEFAULT (SAFE BASELINE)
   ========================= */

a {
    color: #0b5d3b;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #083d27;
}


/* =========================
   5. PREVENT INHERITANCE ISSUES
   ========================= */

.pkp_structure_footer a,
.pkp_nav_list a,
button,
.pkp_button {
    transition: all 0.2s ease;
}

/* Center logo in OJS 3.5 */
.pkp_structure_head {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Ensure site name/logo wrapper is centered */
.pkp_site_name {
    float: none !important;
    text-align: center !important;
    margin: 0 auto !important;
}

/* Center logo image itself */
.pkp_site_name img {
    display: block;
    margin: 0 auto;
    max-width: 180px; /* adjust if your logo is larger */
    height: auto;
}

/* Mobile fine-tuning */
@media (max-width: 768px) {
    .pkp_structure_head {
        padding: 10px 0;
    }

    .pkp_site_name img {
        max-width: 140px;
    }
}

.meta {
    position: relative;
}

.article-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.article-actions .galleys_links {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.doi-badge {
    background: #0b5d3b;
    color: #fff !important;
    font-size: 11px;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
}

.doi-badge:hover {
    background: #ddb503;
    color: #000000 !important;
}

.email-badge {
    display: inline-block;
    margin-left: 5px;
    font-size: 11px;
    background: #ffffff;
    color: #000 !important;
    padding: 4px 10px;
    border-radius: 1px;
    text-decoration: none;
}

.email-badge:hover {
    background: #d4ac0d;
}

.email-badge,
.orcid-badge {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    text-decoration: none;
    vertical-align: middle;
    font-weight: 600;
}

/* ORCID */
.orcid-badge {
    background: #a6ce39;
    color: #000 !important;
}

.orcid-badge:hover {
    background: #8fbf2f;
}

/* Corresponding author email */
.email-badge {
    background: #0b5d3b;
    color: #fff !important;
    margin-top: 10px;
}

.email-badge:hover {
    background: #083d27;
}

/* Reduce top spacing of section titles */
.obj_issue_toc h2,
.obj_issue_toc h3 {
    margin-top: 5px !important;
    margin-bottom: 5px;
}

.article-badges {
    margin-top: 8px;
}

.article-badges .badge {
    display: inline-block;
    font-size: 12px;
    padding: 4px 8px;
    margin-right: 6px;
    border-radius: 4px;
    background: #f1f1f1;
}

.badge.views { background: #8cf8bd; }
.badge.downloads { background: #8cf8bd; }

.badge.email {
    background: #8cf8bd;
    text-decoration: none;
}