/*
 * Developing Scholarly Journal (DSJ)
 * Complete custom OJS stylesheet
 *
 * Design direction:
 * - Clean academic layout
 * - Full-width navy navigation
 * - Gold + green brand accents
 * - White/light content surfaces
 * - Dark navy footer with white journal-logo card
 *
 * Brand palette:
 * Navy:      #0B3A6E
 * Deep Navy: #062B52
 * Gold:      #D9A625
 * Green:     #2DBE68
 * Background:#F5F8FB
 */

/* =========================================================
   1. BRAND VARIABLES
   ========================================================= */

:root {
    --dsj-navy: #0B3A6E;
    --dsj-navy-dark: #062B52;
    --dsj-navy-light: #14558F;

    --dsj-gold: #D9A625;
    --dsj-gold-light: #F1C75B;

    --dsj-green: #2DBE68;
    --dsj-green-dark: #1E934E;

    --dsj-text: #243447;
    --dsj-muted: #6B7785;

    --dsj-bg: #F5F8FB;
    --dsj-white: #FFFFFF;
    --dsj-border: #DDE5EC;

    --dsj-shadow-sm: 0 4px 16px rgba(6, 43, 82, 0.06);
    --dsj-shadow: 0 10px 30px rgba(6, 43, 82, 0.08);
    --dsj-shadow-lg: 0 16px 40px rgba(6, 43, 82, 0.12);

    --dsj-radius-sm: 8px;
    --dsj-radius: 12px;
    --dsj-radius-lg: 16px;
}


/* =========================================================
   2. GLOBAL
   ========================================================= */

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--dsj-bg);
    color: var(--dsj-text);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--dsj-navy-light);
    text-decoration: none;
    transition:
        color .18s ease,
        background-color .18s ease,
        border-color .18s ease,
        opacity .18s ease;
}

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

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: rgba(217, 166, 37, .28);
    color: var(--dsj-navy-dark);
}

:focus-visible {
    outline: 3px solid rgba(217, 166, 37, .55);
    outline-offset: 2px;
}


/* =========================================================
   3. HEADER
   ========================================================= */

.pkp_structure_head {
    background: var(--dsj-white);
    border-top: 4px solid var(--dsj-gold);
    box-shadow: 0 2px 16px rgba(6, 43, 82, 0.08);
}

.pkp_head_wrapper {
    padding-top: 0;
}

.pkp_site_name_wrapper {
    background: var(--dsj-white);
}

.pkp_site_name {
    padding-top: 18px;
    padding-bottom: 18px;
}

.pkp_site_name .is_img img,
.pkp_site_name img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 118px;
}

.pkp_site_name .is_text {
    color: var(--dsj-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: .2px;
}


/* =========================================================
   4. USER NAVIGATION
   Register / Login
   ========================================================= */

.pkp_navigation_user {
    padding-top: 8px;
}

.pkp_navigation_user > li > a,
.pkp_navigation_user > li > button {
    color: var(--dsj-navy) !important;
    font-weight: 650;
    padding: 7px 10px;
    border-radius: 6px;
}

.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > button:hover {
    color: var(--dsj-green-dark) !important;
    background: rgba(11, 58, 110, 0.05);
}


/* =========================================================
   5. FULL-WIDTH PRIMARY NAVIGATION
   ========================================================= */

/*
 * OJS constrains the menu to the main content width.
 * The pseudo-element below extends only the blue background
 * to the full browser width while keeping menu items aligned.
 */

.pkp_navigation_primary_row {
    position: relative;
    z-index: 10;
    min-height: 60px;
    background: transparent !important;
}

.pkp_navigation_primary_row::before {
    content: "";
    position: absolute;
    z-index: -1;

    top: 0;
    bottom: 0;
    left: 50%;

    width: 100vw;
    transform: translateX(-50%);

    background: linear-gradient(
        90deg,
        var(--dsj-navy-dark) 0%,
        var(--dsj-navy) 52%,
        #124F83 100%
    );

    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 5px 18px rgba(6, 43, 82, 0.12);
}

.pkp_navigation_primary_wrapper {
    background: transparent !important;
}


/* Main navigation list */

.pkp_navigation_primary {
    display: flex;
    align-items: stretch;
    gap: 4px;
    margin: 0;
}

.pkp_navigation_primary > li {
    margin: 0;
}

.pkp_navigation_primary > li > a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 60px;
    box-sizing: border-box;

    padding: 0 22px !important;

    color: #ffffff !important;
    font-size: 0.97rem;
    font-weight: 650;
    letter-spacing: 0.15px;
    line-height: 1.2;

    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;

    transition:
        background-color .18s ease,
        color .18s ease,
        border-color .18s ease;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li.current > a {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.09);
    border-bottom-color: var(--dsj-gold);
}


/* Dropdown navigation */

.pkp_navigation_primary ul {
    margin-top: 0;
    padding: 5px 0;

    background: #ffffff;

    border: 1px solid var(--dsj-border);
    border-top: 3px solid var(--dsj-gold);
    border-radius: 0 0 10px 10px;

    box-shadow: 0 16px 38px rgba(6, 43, 82, 0.18);
    overflow: hidden;
}

.pkp_navigation_primary ul a {
    display: block;

    padding: 11px 17px !important;

    color: var(--dsj-navy) !important;
    background: #ffffff;

    font-weight: 600;
}

.pkp_navigation_primary ul a:hover,
.pkp_navigation_primary ul a:focus {
    color: #ffffff !important;
    background: var(--dsj-navy);
}


/* Search */

.pkp_navigation_search_wrapper {
    min-height: 60px;
    display: flex;
    align-items: center;
}

.pkp_navigation_search_wrapper a,
.pkp_head_wrapper .pkp_search {
    color: #ffffff !important;

    padding: 10px 14px;

    border-radius: 7px;

    font-weight: 600;
}

.pkp_navigation_search_wrapper a:hover,
.pkp_head_wrapper .pkp_search:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.10);
}


/* =========================================================
   6. MAIN LAYOUT
   ========================================================= */

.pkp_structure_content {
    padding-top: 34px;
    padding-bottom: 48px;
}

.pkp_structure_main {
    background: #ffffff;

    border: 1px solid rgba(11, 58, 110, 0.10);
    border-radius: var(--dsj-radius);

    box-shadow: var(--dsj-shadow);

    padding: 32px;
}


/* =========================================================
   7. TYPOGRAPHY / HEADINGS
   ========================================================= */

.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3,
.pkp_structure_main h4 {
    color: var(--dsj-navy);
    line-height: 1.3;
}

.pkp_structure_main h1 {
    color: var(--dsj-navy-dark);

    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.pkp_structure_main h2 {
    position: relative;

    border-bottom: 1px solid var(--dsj-border);

    padding-bottom: 10px;
}

.pkp_structure_main h2::after {
    content: "";

    display: block;

    width: 58px;
    height: 3px;

    margin-top: 9px;

    background: linear-gradient(
        90deg,
        var(--dsj-gold),
        var(--dsj-green)
    );

    border-radius: 10px;
}


/* =========================================================
   8. BREADCRUMBS
   ========================================================= */

.cmp_breadcrumbs {
    margin-bottom: 20px;

    color: var(--dsj-muted);
    font-size: 0.92rem;
}

.cmp_breadcrumbs a {
    color: var(--dsj-navy-light);
    font-weight: 600;
}


/* =========================================================
   9. JOURNAL HOMEPAGE
   ========================================================= */

.pkp_page_index .homepage_image,
.pkp_page_index .journal_description {
    margin-bottom: 28px;
}

.pkp_page_index .journal_description {
    color: var(--dsj-text);
    font-size: 1.02rem;
}

.pkp_page_index .current_issue,
.pkp_page_index .additional_content {
    padding-top: 22px;
    border-top: 1px solid var(--dsj-border);
}


/* =========================================================
   10. CURRENT ISSUE / ISSUE TOC
   ========================================================= */

.current_issue,
.obj_issue_toc {
    margin-top: 10px;
}

.obj_issue_toc .heading {
    margin-bottom: 20px;

    padding: 20px 22px;

    background: linear-gradient(
        135deg,
        #FBFCFE 0%,
        #F1F6FA 100%
    );

    border: 1px solid rgba(11, 58, 110, 0.08);
    border-left: 5px solid var(--dsj-gold);

    border-radius: 12px;
}

.obj_issue_toc .section {
    margin-top: 30px;
}

.obj_issue_toc .section > h2,
.obj_issue_toc .section > h3 {
    color: var(--dsj-navy);
}


/* Issue cover */

.obj_issue_toc .cover img,
.obj_issue_summary .cover img {
    border-radius: 9px;
    box-shadow: 0 10px 28px rgba(6, 43, 82, 0.13);
}


/* =========================================================
   11. ARTICLE LISTINGS
   ========================================================= */

.obj_article_summary {
    padding: 20px 0;

    border-bottom: 1px solid var(--dsj-border);
}

.obj_article_summary:last-child {
    border-bottom: 0;
}

.obj_article_summary .title a {
    color: var(--dsj-navy-dark);

    font-size: 1.04rem;
    font-weight: 700;
    line-height: 1.45;
}

.obj_article_summary .title a:hover {
    color: var(--dsj-green-dark);
}

.obj_article_summary .authors {
    color: var(--dsj-muted);
}


/* =========================================================
   12. ARTICLE DETAILS
   ========================================================= */

.obj_article_details .page_title {
    color: var(--dsj-navy-dark);

    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
}

.obj_article_details .authors {
    color: var(--dsj-muted);
}

.obj_article_details .item {
    margin-bottom: 24px;
}

.obj_article_details .label {
    color: var(--dsj-navy);
    font-weight: 700;
}

.obj_article_details .value a {
    color: var(--dsj-navy-light);
}

.obj_article_details .abstract {
    padding: 20px 22px;

    background: linear-gradient(
        135deg,
        #FBFDFE,
        #F4F9F7
    );

    border: 1px solid rgba(45, 190, 104, 0.12);
    border-left: 4px solid var(--dsj-green);

    border-radius: 9px;
}


/* =========================================================
   13. BUTTONS
   ========================================================= */

.cmp_button,
.pkp_button,
button,
input[type="submit"],
input[type="button"],
a.cmp_button,
a.pkp_button {
    background: var(--dsj-navy);
    color: #ffffff !important;

    border: 1px solid var(--dsj-navy);
    border-radius: 8px;

    padding: 9px 15px;

    font-weight: 650;

    box-shadow: 0 3px 10px rgba(6, 43, 82, 0.08);

    transition:
        background-color .18s ease,
        border-color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.cmp_button:hover,
.pkp_button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
a.cmp_button:hover,
a.pkp_button:hover {
    background: var(--dsj-green-dark);
    border-color: var(--dsj-green-dark);

    color: #ffffff !important;

    transform: translateY(-1px);

    box-shadow: 0 6px 16px rgba(6, 43, 82, 0.12);
}


/* Main submission CTA */

.block_make_submission a {
    display: block;

    padding: 13px 17px;

    background: var(--dsj-green);
    color: #ffffff !important;

    border-radius: 9px;

    text-align: center;
    font-weight: 700;

    box-shadow: 0 7px 18px rgba(45, 190, 104, 0.20);
}

.block_make_submission a:hover {
    background: var(--dsj-green-dark);
}


/* =========================================================
   14. SIDEBAR
   ========================================================= */

.pkp_structure_sidebar .pkp_block {
    margin-bottom: 20px;

    padding: 20px;

    background: #ffffff;

    border: 1px solid rgba(11, 58, 110, 0.10);
    border-radius: 12px;

    box-shadow: 0 8px 24px rgba(6, 43, 82, 0.05);
}

.pkp_structure_sidebar .pkp_block .title {
    position: relative;

    margin-bottom: 12px;
    padding-bottom: 10px;

    color: var(--dsj-navy-dark);

    font-weight: 700;

    border-bottom: 0;
}

.pkp_structure_sidebar .pkp_block .title::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 42px;
    height: 3px;

    background: var(--dsj-gold);

    border-radius: 5px;
}

.pkp_structure_sidebar .pkp_block a {
    color: var(--dsj-navy-light);
}

.pkp_structure_sidebar .pkp_block a:hover {
    color: var(--dsj-green-dark);
}


/* =========================================================
   15. FORMS
   ========================================================= */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
select,
textarea {
    background: #ffffff;
    color: var(--dsj-text);

    border: 1px solid #C7D3DF;
    border-radius: 8px;

    padding: 9px 11px;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;

    border-color: var(--dsj-navy-light);

    box-shadow: 0 0 0 4px rgba(20, 85, 143, 0.10);
}


/* =========================================================
   16. TABLES
   ========================================================= */

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: var(--dsj-navy);
    color: #ffffff;

    font-weight: 600;
}

table th,
table td {
    padding: 10px 12px;

    border: 1px solid var(--dsj-border);
}

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


/* =========================================================
   17. NOTIFICATIONS
   ========================================================= */

.cmp_notification {
    border-radius: 7px;
}

.cmp_notification.notice {
    border-left: 4px solid var(--dsj-gold);
}

.cmp_notification.success {
    border-left: 4px solid var(--dsj-green);
}


/* =========================================================
   18. PAGINATION
   ========================================================= */

.cmp_pagination .current {
    background: var(--dsj-navy);
    color: #ffffff;

    border-radius: 5px;
}


/* =========================================================
   19. LOGIN / REGISTER / SUBMISSION PAGES
   ========================================================= */

.pkp_page_login,
.pkp_page_register,
.pkp_page_submission {
    background: #ffffff;
}

.pkp_page_login h1,
.pkp_page_register h1,
.pkp_page_submission h1 {
    color: var(--dsj-navy-dark);
}


/* =========================================================
   20. FOOTER
   Dark navy footer + white logo card
   ========================================================= */

.pkp_structure_footer_wrapper {
    position: relative;

    margin-top: 46px;

    background: var(--dsj-navy-dark);

    border-top: 0 !important;
}


/* Brand accent line */

.pkp_structure_footer_wrapper::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: linear-gradient(
        90deg,
        var(--dsj-gold) 0%,
        var(--dsj-gold-light) 50%,
        var(--dsj-green) 100%
    );
}


.pkp_structure_footer {
    background: transparent !important;

    color: rgba(255, 255, 255, 0.88);

    padding-top: 38px;
    padding-bottom: 38px;
}

.pkp_footer_content {
    color: rgba(255, 255, 255, 0.86);

    line-height: 1.75;
}

.pkp_structure_footer a {
    color: var(--dsj-gold-light) !important;
}

.pkp_structure_footer a:hover,
.pkp_structure_footer a:focus {
    color: #ffffff !important;
}


/* =========================================================
   21. FOOTER JOURNAL LOGO CARD
   Replaces default OJS / PKP logo
   ========================================================= */

.pkp_brand_footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    margin-top: 24px;
    padding-top: 24px;

    border-top: 1px solid rgba(255, 255, 255, 0.14);

    opacity: 1 !important;
}


/*
 * White card keeps the navy text and icon in the DSJ logo
 * completely visible against the dark footer.
 */

.pkp_brand_footer a {
    display: block !important;

    width: 360px;
    max-width: 100%;
    height: 105px;

    box-sizing: border-box;

    margin: 0;

    padding: 15px 20px !important;

    background-color: #ffffff !important;

    background-image:
        url("/public/journals/1/pageHeaderLogoImage_en.png") !important;

    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: calc(100% - 40px) auto !important;

    border: 1px solid rgba(255, 255, 255, 0.70);
    border-radius: 12px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);

    font-size: 0 !important;
    line-height: 0 !important;

    text-indent: -9999px;
    overflow: hidden;
}


/* Hide the default OJS / PKP branding image */

.pkp_brand_footer img {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}


/* Suppress any text generated by certain OJS themes */

.pkp_brand_footer a::before,
.pkp_brand_footer a::after {
    content: none !important;
}


/* =========================================================
   22. MOBILE NAVIGATION
   ========================================================= */

.pkp_site_nav_toggle {
    color: var(--dsj-navy);
}


@media (max-width: 991px) {

    .pkp_site_name {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .pkp_site_name .is_img img,
    .pkp_site_name img {
        max-height: 88px;
    }

    .pkp_navigation_primary {
        display: block;
    }

    .pkp_navigation_primary_row {
        min-height: auto;
    }

    .pkp_navigation_primary > li > a {
        justify-content: flex-start;

        min-height: auto;

        padding: 14px 17px !important;
    }

    .pkp_navigation_search_wrapper {
        min-height: auto;
    }

    .pkp_structure_main {
        padding: 24px;
    }

    .pkp_brand_footer {
        justify-content: flex-start;
    }

    .pkp_brand_footer a {
        width: 320px;
        height: 96px;

        background-size: calc(100% - 34px) auto !important;
    }
}


@media (max-width: 575px) {

    .pkp_site_name .is_img img,
    .pkp_site_name img {
        max-height: 68px;
    }

    .pkp_structure_content {
        padding-top: 18px;
        padding-bottom: 28px;
    }

    .pkp_structure_main {
        padding: 18px;

        border-radius: 10px;

        box-shadow: none;
    }

    .pkp_navigation_primary > li > a {
        padding: 13px 15px !important;
    }

    .pkp_brand_footer {
        justify-content: center;

        padding-left: 0;
        padding-right: 0;
    }

    .pkp_brand_footer a {
        width: 280px;
        height: 88px;

        padding: 12px 16px !important;

        background-size: calc(100% - 32px) auto !important;

        border-radius: 10px;
    }
}


/* =========================================================
   23. SMALL BRAND TOUCHES
   ========================================================= */

.pkp_page_index .current_issue h2,
.pkp_page_index .additional_content h2 {
    color: var(--dsj-navy);
}

.pkp_structure_main,
.pkp_structure_sidebar .pkp_block,
.obj_issue_toc .heading {
    overflow-wrap: anywhere;
}
