/*
====================================================================
 JATI — FINAL OJS CUSTOM CSS
 Journal of Transformative Learning and Social Innovation
 Universitas Negeri Surabaya

 Palette:
   Blue   #1261A0 / #0B3D66
   Orange #F26B21
   Yellow #F7C948

 IMPORTANT:
 - Paste this whole file into OJS Custom CSS.
 - This version includes the banner/header fix.
 - It intentionally removes the old 95px banner height limitation.
====================================================================
*/

/* ================================================================
   1. DESIGN TOKENS
   ================================================================ */

:root {
    --jati-blue: #1261A0;
    --jati-blue-dark: #0B3D66;
    --jati-blue-deep: #082D4A;
    --jati-blue-light: #EAF4FB;

    --jati-orange: #F26B21;
    --jati-orange-dark: #D95416;
    --jati-orange-light: #FFF1E8;

    --jati-yellow: #F7C948;
    --jati-yellow-light: #FFF8DC;

    --jati-text: #334155;
    --jati-muted: #64748B;
    --jati-white: #FFFFFF;
    --jati-bg: #F5F8FC;
    --jati-border: #E2E8F0;

    --jati-radius: 12px;
    --jati-shadow: 0 8px 25px rgba(15, 55, 90, .08);
    --jati-shadow-hover: 0 14px 35px rgba(15, 55, 90, .14);
}


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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--jati-bg);
    color: var(--jati-text);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
}

a {
    color: var(--jati-blue);
    transition: color .2s ease, background .2s ease, border .2s ease,
                transform .2s ease, box-shadow .2s ease;
}

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

::selection {
    background: var(--jati-yellow);
    color: var(--jati-blue-deep);
}


/* ================================================================
   3. HEADER — BANNER FIX
   IMPORTANT:
   The previous CSS used max-height:95px. That makes a wide banner
   extremely small. This version removes that restriction.
   ================================================================ */

.pkp_structure_head {
    position: relative;
    background: var(--jati-white);
    border-bottom: 4px solid var(--jati-orange);
    box-shadow: 0 3px 18px rgba(0, 0, 0, .06);
    z-index: 20;
}

/* Decorative top color strip */
.pkp_structure_head::before {
    content: "";
    display: block;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--jati-blue) 0%,
        var(--jati-blue) 35%,
        var(--jati-yellow) 35%,
        var(--jati-yellow) 65%,
        var(--jati-orange) 65%,
        var(--jati-orange) 100%
    );
}

.pkp_head_wrapper {
    width: 100%;
    max-width: 100%;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Make the OJS site-name/banner container full width */
.pkp_site_name {
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_site_name a {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* FINAL BANNER RULE — no artificial height restriction */
.pkp_site_name img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    object-fit: contain;
    margin: 0 auto !important;
}

/* If OJS wraps the image in a picture element */
.pkp_site_name picture {
    display: block;
    width: 100%;
}

.pkp_site_name picture img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
}


/* ================================================================
   4. NAVIGATION
   ================================================================ */

.pkp_navigation_primary {
    background: var(--jati-blue-dark);
    border-radius: 10px;
    padding: 0 8px;
    margin-top: 12px;
    margin-bottom: 12px;
    box-shadow: 0 5px 16px rgba(11, 61, 102, .16);
}

.pkp_navigation_primary > li > a {
    color: #fff !important;
    font-weight: 650;
    padding: 12px 16px;
    border-radius: 7px;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li.current > a {
    background: var(--jati-orange);
    color: #fff !important;
}

.pkp_navigation_primary .dropdown-menu {
    border: 0;
    border-top: 3px solid var(--jati-orange);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.pkp_navigation_primary .dropdown-menu a:hover {
    background: var(--jati-orange-light);
    color: var(--jati-orange);
}


/* ================================================================
   5. USER NAVIGATION / SEARCH
   ================================================================ */

.pkp_navigation_user {
    font-weight: 600;
}

.pkp_navigation_user > li > a:hover {
    color: var(--jati-orange);
}

.pkp_search button {
    background: var(--jati-yellow);
    color: var(--jati-blue-deep);
    border: 0;
    border-radius: 8px;
    font-weight: 700;
}

.pkp_search button:hover {
    background: var(--jati-orange);
    color: #fff;
}


/* ================================================================
   6. MAIN CONTENT
   ================================================================ */

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

.pkp_structure_main {
    min-width: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--jati-blue-dark);
    font-weight: 750;
    line-height: 1.3;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.35rem; }

.title {
    color: var(--jati-blue-dark);
    font-weight: 800;
}

.title::after {
    content: "";
    display: block;
    width: 65px;
    height: 4px;
    margin-top: 10px;
    border-radius: 20px;
    background: linear-gradient(
        90deg,
        var(--jati-orange),
        var(--jati-yellow)
    );
}


/* ================================================================
   7. HOMEPAGE / ABOUT
   ================================================================ */

.homepage_about {
    background: #fff;
    border-radius: var(--jati-radius);
    padding: 30px;
    margin-bottom: 30px;
    border-left: 6px solid var(--jati-orange);
    box-shadow: var(--jati-shadow);
}

.homepage_about h2,
.homepage_about h3 {
    color: var(--jati-blue-dark);
}


/* ================================================================
   8. ISSUE CARDS
   ================================================================ */

.obj_issue_summary {
    background: #fff;
    border-radius: var(--jati-radius);
    padding: 22px;
    margin-bottom: 22px;
    border: 1px solid var(--jati-border);
    border-top: 4px solid var(--jati-blue);
    box-shadow: 0 5px 18px rgba(0,0,0,.05);
    transition: transform .25s ease, box-shadow .25s ease,
                border-color .25s ease;
}

.obj_issue_summary:hover {
    transform: translateY(-3px);
    border-top-color: var(--jati-orange);
    box-shadow: var(--jati-shadow-hover);
}

.obj_issue_summary h2 {
    margin-top: 0;
}

.obj_issue_summary h2 a {
    color: var(--jati-blue-dark);
}

.obj_issue_summary h2 a:hover {
    color: var(--jati-orange);
}


/* ================================================================
   9. ARTICLE CARDS
   ================================================================ */

.obj_article_summary {
    background: #fff;
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 10px;
    border: 1px solid var(--jati-border);
    transition: transform .2s ease, box-shadow .2s ease,
                border-color .2s ease;
}

.obj_article_summary:hover {
    transform: translateY(-2px);
    border-left: 5px solid var(--jati-orange);
    box-shadow: var(--jati-shadow);
}

.obj_article_summary .title {
    color: var(--jati-blue-dark);
    font-weight: 700;
}

.obj_article_summary .title:hover {
    color: var(--jati-orange);
}

.obj_article_summary .doi,
.item.doi {
    color: var(--jati-orange);
    font-weight: 700;
}


/* ================================================================
   10. SUBMISSION / CTA
   ================================================================ */

.block_make_submission {
    background: linear-gradient(
        135deg,
        var(--jati-orange),
        #FF8A3D
    );
    border-radius: var(--jati-radius);
    padding: 22px !important;
    box-shadow: 0 8px 20px rgba(242, 107, 33, .22);
}

.block_make_submission a {
    color: #fff !important;
    font-weight: 800;
}


/* ================================================================
   11. SIDEBAR BLOCKS
   ================================================================ */

.pkp_structure_sidebar {
    padding-left: 25px;
}

.block {
    background: #fff;
    border-radius: var(--jati-radius);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--jati-border);
    box-shadow: 0 4px 15px rgba(0,0,0,.04);
}

.block h2 {
    color: var(--jati-blue-dark);
    font-size: 1.15rem;
    border-bottom: 3px solid var(--jati-yellow);
    padding-bottom: 9px;
}


/* ================================================================
   12. ANNOUNCEMENTS
   ================================================================ */

.obj_announcement_summary {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 18px;
    border-left: 5px solid var(--jati-yellow);
    box-shadow: var(--jati-shadow);
}

.obj_announcement_summary h2 a {
    color: var(--jati-blue-dark);
}

.obj_announcement_summary h2 a:hover {
    color: var(--jati-orange);
}


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

.cmp_button,
.pkp_button,
button,
input[type="submit"] {
    border-radius: 8px !important;
    font-weight: 700;
    transition: all .2s ease;
}

.cmp_button {
    background: var(--jati-orange);
    border: 1px solid var(--jati-orange);
    color: #fff;
}

.cmp_button:hover,
.cmp_button:focus {
    background: var(--jati-orange-dark);
    border-color: var(--jati-orange-dark);
    color: #fff;
    transform: translateY(-1px);
}


/* ================================================================
   14. GALLEY / PDF
   ================================================================ */

.obj_galley_link {
    background: var(--jati-orange) !important;
    color: #fff !important;
    border-radius: 7px !important;
    padding: 8px 15px !important;
    font-weight: 700;
}

.obj_galley_link:hover {
    background: var(--jati-blue-dark) !important;
}


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

input,
textarea,
select {
    border: 1px solid #CBD5E1 !important;
    border-radius: 8px !important;
    padding: 10px !important;
    transition: border .2s ease, box-shadow .2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--jati-orange) !important;
    box-shadow: 0 0 0 3px rgba(242,107,33,.12) !important;
    outline: none;
}


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

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--jati-shadow);
}

table th {
    background: var(--jati-blue-dark);
    color: #fff;
    font-weight: 700;
    padding: 13px;
}

table td {
    padding: 12px;
    border-bottom: 1px solid var(--jati-border);
}

table tr:hover td {
    background: var(--jati-orange-light);
}


/* ================================================================
   17. BADGES
   ================================================================ */

.badge {
    border-radius: 20px;
    padding: 5px 11px;
    font-weight: 700;
}

.badge-primary {
    background: var(--jati-blue);
}

.badge-warning {
    background: var(--jati-yellow);
    color: var(--jati-blue-deep);
}

.badge-success {
    background: #168A55;
}


/* ================================================================
   18. NOTIFICATIONS
   ================================================================ */

.cmp_notification {
    border-radius: 10px;
    border-left: 5px solid var(--jati-yellow);
    background: var(--jati-yellow-light);
}


/* ================================================================
   19. ARTICLE PAGE
   ================================================================ */

.page_article .authors {
    color: var(--jati-muted);
}

.page_article .author_bios {
    border-left: 4px solid var(--jati-orange);
    padding-left: 15px;
}

.page_article .item.issue {
    color: var(--jati-blue);
    font-weight: 700;
}

.citation_display {
    background: var(--jati-blue-light);
    border-radius: 10px;
    padding: 18px;
    border-left: 4px solid var(--jati-blue);
}


/* ================================================================
   20. PAGINATION
   ================================================================ */

.pagination > li > a,
.pagination > li > span {
    border-radius: 7px !important;
    margin: 2px;
    color: var(--jati-blue);
}

.pagination > .active > a,
.pagination > .active > span {
    background: var(--jati-orange) !important;
    border-color: var(--jati-orange) !important;
    color: #fff !important;
}


/* ================================================================
   21. FOOTER
   ================================================================ */

.pkp_structure_footer_wrapper {
    background: var(--jati-blue-dark);
    border-top: 6px solid var(--jati-orange);
    color: #DBEAFE;
}

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

.pkp_structure_footer h2,
.pkp_structure_footer h3 {
    color: #fff;
}

.pkp_structure_footer a {
    color: var(--jati-yellow);
}

.pkp_structure_footer a:hover {
    color: #fff;
}

.pkp_structure_footer .fa,
.pkp_structure_footer .fas,
.pkp_structure_footer .fab {
    color: var(--jati-yellow);
}

.pkp_structure_footer .fa:hover,
.pkp_structure_footer .fas:hover,
.pkp_structure_footer .fab:hover {
    color: var(--jati-orange);
}


/* ================================================================
   22. MOBILE / RESPONSIVE
   ================================================================ */

@media (max-width: 768px) {

    .pkp_structure_content {
        padding-top: 20px;
    }

    .pkp_navigation_primary {
        border-radius: 0;
        margin-top: 0;
        margin-bottom: 10px;
    }

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

    /*
     * IMPORTANT:
     * Do NOT set a fixed max-height here.
     * The banner must retain its original aspect ratio.
     */
    .pkp_site_name,
    .pkp_site_name a,
    .pkp_site_name img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
    }

    h1 {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .obj_issue_summary {
        padding: 17px;
    }

    .block {
        padding: 17px;
    }
}


/* ================================================================
   23. EXTRA SMALL SCREENS
   ================================================================ */

@media (max-width: 480px) {

    .pkp_structure_content {
        padding-top: 15px;
        padding-bottom: 30px;
    }

    .obj_article_summary {
        padding: 15px;
    }

    .homepage_about {
        padding: 20px;
    }
}


/* ================================================================
   END JATI FINAL CSS
================================================================ */
