
/* =========================================================
   OJS MODERN JOURNAL - CUSTOM CSS
   Compatible with OJS 3.x themes using standard classes
   ========================================================= */

/* ---------- GLOBAL ---------- */
:root {
    --primary: #123b63;
    --primary-dark: #0b2946;
    --accent: #c89b3c;
    --text: #263238;
    --muted: #667085;
    --light: #f5f7fa;
    --border: #e5e7eb;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.7;
    font-size: 15px;
}

/* ---------- LINKS ---------- */
a {
    color: var(--primary);
    transition: all .2s ease;
}

a:hover,
a:focus {
    color: var(--accent);
    text-decoration: none;
}

/* ---------- HEADER ---------- */
/* Compact, borderless journal header */
.pkp_structure_head {
    background: var(--primary);
    border-bottom: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_head_wrapper {
    padding-top: 8px !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.pkp_site_name {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    margin-bottom: 0 !important;
}

.pkp_site_name .is_img img {
    max-height: 85px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.pkp_site_name > a {
    color: #fff;
    font-weight: 700;
}

.pkp_site_name > a:hover {
    color: #fff;
}

/* ---------- PRIMARY NAVIGATION ---------- */
.pkp_navigation_primary {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.pkp_navigation_primary > li > a {
    color: #fff;
    font-weight: 600;
    padding: 11px 15px;
    border-radius: 0;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    color: #fff;
    background: rgba(255,255,255,.12);
}

.pkp_navigation_primary_row {
    border-top: none !important;
    border-bottom: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}


/* ---------- COMPACT HEADER / NAV WRAPPER ---------- */
.pkp_structure_head + .pkp_structure_body,
.pkp_structure_head + .pkp_structure_content {
    margin-top: 0 !important;
    border-top: none !important;
}

.pkp_navigation_user {
    margin-top: 0 !important;
}

.pkp_structure_head .pkp_navigation_user {
    border: none !important;
}

/* Remove unnecessary outer spacing around the navigation area */
.pkp_navigation_primary_wrapper {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
}

/* ---------- CONTENT ---------- */
.pkp_structure_content {
    padding-top: 35px;
    padding-bottom: 50px;
}

.pkp_page_index .homepage_image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

/* ---------- HEADINGS ---------- */
h1, h2, h3, h4 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 25px;
    margin-top: 30px;
}

h3 {
    font-size: 20px;
}

/* ---------- JOURNAL DESCRIPTION ---------- */
.current_issue .section {
    margin-bottom: 25px;
}

.current_issue h2 {
    border-left: 5px solid var(--accent);
    padding-left: 12px;
}

/* ---------- ISSUE / ARTICLE CARDS ---------- */
.obj_issue_summary,
.obj_article_summary {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,.04);
    transition: transform .2s ease, box-shadow .2s ease;
}

.obj_issue_summary:hover,
.obj_article_summary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

.obj_article_summary h3 {
    margin-top: 0;
}

.obj_article_summary .authors {
    color: var(--muted);
    font-size: 14px;
}

/* ---------- BUTTONS ---------- */
.pkp_button,
button,
input[type="submit"],
input[type="button"],
a.pkp_button {
    background: var(--primary);
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-weight: 600;
    transition: all .2s ease;
}

.pkp_button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
a.pkp_button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ---------- SEARCH ---------- */
.pkp_search button {
    border-radius: 0 6px 6px 0;
}

.pkp_search input {
    border: 1px solid var(--border);
    border-radius: 6px 0 0 6px;
    min-height: 42px;
}

/* ---------- SIDEBAR ---------- */
.pkp_structure_sidebar {
    padding-left: 25px;
}

.block {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 20px;
}

.block h2,
.block h3 {
    font-size: 17px;
    color: var(--primary);
    margin-top: 0;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
}

/* ---------- ANNOUNCEMENTS ---------- */
.obj_announcement_summary {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.obj_announcement_summary h2 {
    font-size: 20px;
}

/* ---------- ARTICLE PAGE ---------- */
.page_article .authors {
    color: var(--muted);
}

.page_article .item {
    margin-bottom: 25px;
}

.csl-entry {
    margin-bottom: 12px;
}

/* ---------- TABLES ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
}

table th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

table th,
table td {
    padding: 11px 13px;
    border: 1px solid var(--border);
    vertical-align: top;
}

table tr:nth-child(even) {
    background: #f8fafc;
}

/* ---------- FORMS ---------- */
input,
select,
textarea {
    border: 1px solid #d5d9e0;
    border-radius: 6px;
    padding: 10px 12px;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(18,59,99,.12);
}

/* ---------- FOOTER ---------- */
.pkp_structure_footer_wrapper {
    background: var(--primary-dark);
    color: rgba(255,255,255,.85);
    border-top: 4px solid var(--accent);
}

.pkp_structure_footer {
    padding-top: 35px;
    padding-bottom: 35px;
}

.pkp_structure_footer a {
    color: #fff;
}

.pkp_structure_footer a:hover {
    color: var(--accent);
}

/* ---------- DOI / METADATA ---------- */
.item.doi {
    background: #f8fafc;
    border-left: 4px solid var(--accent);
    padding: 12px 15px;
    border-radius: 4px;
}

/* ---------- BADGES ---------- */
.badge,
.label {
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12px;
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {

    body {
        font-size: 14px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 22px;
    }

    .pkp_structure_content {
        padding-top: 20px;
    }

    .pkp_structure_sidebar {
        padding-left: 0;
        margin-top: 25px;
    }

    .pkp_navigation_primary > li > a {
        padding: 10px 12px;
    }

    .obj_issue_summary,
    .obj_article_summary {
        padding: 16px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ---------- PRINT ---------- */
@media print {
    .pkp_structure_head,
    .pkp_structure_footer_wrapper,
    .pkp_navigation_primary,
    .pkp_search {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}


/* =========================================================
   ZERO GAP BETWEEN NAVIGATION AND PAGE CONTENT
   ========================================================= */

/* Remove the visible shadow/separator under the navigation */
.pkp_structure_head,
.pkp_structure_head *,
.pkp_navigation_primary_wrapper,
.pkp_navigation_primary_row {
    box-shadow: none !important;
}

/* Remove top spacing from the main page/content wrapper */
.pkp_structure_content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove spacing from common OJS page wrappers */
.pkp_page_index,
.pkp_page_archives,
.pkp_page_about,
.pkp_page_article,
.page,
.page_submissions,
.page_issue_archive,
.page_issue {
    margin-top: 0 !important;
}

/* Breadcrumb/header area should touch the navigation */
.pkp_breadcrumb,
.pkp_structure_main {
    margin-top: 0 !important;
}

/* Archives / page title area */
.page_issue_archive .page_title,
.pkp_page_archives .page_title {
    margin-top: 0 !important;
}

/* Remove unnecessary top padding from the main content column */
.pkp_structure_main {
    padding-top: 0 !important;
}

/* Keep only a small, clean breathing space inside the content */
.pkp_structure_content .pkp_structure_main {
    padding-top: 0 !important;
}

/* If the theme adds a border or shadow between navigation and body */
.pkp_navigation_primary_row,
.pkp_navigation_primary_wrapper,
.pkp_structure_head + * {
    border-top: none !important;
    box-shadow: none !important;
}
