/* =========================================================
   JURNAL INOVASI DAN KEINSINYURAN (JIK)
   FINAL CUSTOM CSS FOR OJS 3.5
   ========================================================= */

/* =========================================================
   1. PRIMARY NAVIGATION - DESKTOP
   ========================================================= */

.pkp_navigation_primary_wrapper,
.pkp_site_nav_menu,
#navigationPrimary {
    background: transparent !important;
}


/* =========================================================
   2. SIDEBAR CUSTOM MENU - ORANGE THEME
   ========================================================= */

.sidebar-menu-box {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.sidebar-menu-box a {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;

    background: #f58220 !important;
    color: #ffffff !important;

    text-align: center !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;

    padding: 10px 8px !important;
    margin: 0 0 2px 0 !important;

    border: 1px solid #dd6b0d !important;
    border-radius: 0 !important;

    text-decoration: none !important;
    white-space: normal !important;
}

.sidebar-menu-box a:hover,
.sidebar-menu-box a:focus {
    background: #d96500 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.sidebar-menu-box p {
    margin: 0 !important;
    padding: 0 !important;
}

.sidebar-menu-box br {
    display: none !important;
}


/* =========================================================
   3. LANGUAGE BLOCK - ORANGE THEME
   ========================================================= */

.pkp_block.block_language .content ul,
.block_language .content ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_block.block_language .content li,
.block_language .content li {
    display: block !important;
    width: 100% !important;
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
}

.pkp_block.block_language .content a,
.block_language .content a,
.pkp_block.block_language .content > a,
.block_language .content > a {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;

    background: #f58220 !important;
    color: #ffffff !important;

    text-align: center !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;

    padding: 10px 8px !important;
    margin: 0 0 2px 0 !important;

    border: 1px solid #dd6b0d !important;
    border-radius: 0 !important;

    text-decoration: none !important;
}

.pkp_block.block_language .content a:hover,
.block_language .content a:hover,
.pkp_block.block_language .content > a:hover,
.block_language .content > a:hover,
.pkp_block.block_language .content a:focus,
.block_language .content a:focus {
    background: #d96500 !important;
    color: #ffffff !important;
}

.pkp_block.block_language .content .current a,
.block_language .content .current a {
    background: #b95200 !important;
    color: #ffffff !important;
}


/* =========================================================
   4. JOURNAL INFORMATION BOX
   ========================================================= */

.jik-info-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 20px;

    width: 100%;
    box-sizing: border-box;

    background: #fff4e8;
    border-top: 2px solid #f58220;
    border-bottom: 1px solid #d9d9d9;

    padding: 14px 16px;
    margin: 10px 0 28px 0;
}

.jik-info-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.jik-info-row {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 10px;

    padding: 3px 0;
    line-height: 1.4;
}

.jik-info-label,
.jik-info-value {
    color: #222222;
}

.jik-info-value strong {
    font-weight: 700;
}

.jik-info-value a {
    color: #d86200 !important;
    font-weight: 700;
    text-decoration: underline;
}

.jik-info-value a:hover,
.jik-info-value a:focus {
    color: #a84800 !important;
}

.jik-info-cover {
    display: flex;
    align-items: center;
    justify-content: center;
}

.jik-info-cover img {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;

    background: #ffffff;
    border: 1px solid #d0d0d0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   5. ABOUT THE JOURNAL
   ========================================================= */

.jik-about-content {
    margin-top: 10px;
}

.jik-about-content p {
    line-height: 1.7;
    margin: 0 0 15px 0;
    text-align: justify;
}

.jik-further-info {
    margin-top: 22px;
    padding: 14px 16px;

    background: #f7f7f7;
    border-left: 4px solid #f58220;

    line-height: 1.65;
}


/* =========================================================
   6. EDITORIAL TEAM
   ========================================================= */

.jik-editorial-team {
    width: 100%;
    box-sizing: border-box;
}

.jik-editorial-title {
    margin: 0 0 28px 0;
    padding-bottom: 10px;

    font-size: 28px;
    font-weight: 700;

    color: #222222;
    border-bottom: 3px solid #f58220;
}

.jik-editorial-section-title {
    margin: 28px 0 12px 0;
    padding: 0 0 7px 0;

    font-size: 19px;
    font-weight: 700;

    color: #222222;
    border-bottom: 1px solid #dddddd;
}

.jik-editor-card {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 24px;
    align-items: center;

    margin: 0 0 14px 0;
    padding: 20px;

    background: #fff5eb;

    border-left: 5px solid #f58220;
    border-top: 1px solid #f2dfce;
    border-right: 1px solid #f2dfce;
    border-bottom: 1px solid #f2dfce;

    box-sizing: border-box;

    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.jik-editor-card:hover {
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.10);
    transform: translateY(-1px);
}

.jik-editor-photo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.jik-editor-photo img {
    display: block;
    width: 130px;
    height: 150px;

    object-fit: cover;

    background: #ffffff;
    border: 1px solid #dddddd;
}

.jik-editor-profile {
    min-width: 0;
}

.jik-editor-profile h3 {
    margin: 0 0 14px 0;

    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;

    color: #222222;
}

.jik-editor-detail {
    display: grid;
    grid-template-columns: 115px minmax(0, 1fr);
    gap: 10px;

    padding: 3px 0;
    line-height: 1.5;
}

.jik-editor-label {
    font-weight: 700;
    color: #444444;
}

.jik-editor-detail a {
    color: #d96500 !important;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.jik-editor-detail a:hover,
.jik-editor-detail a:focus {
    color: #a84e00 !important;
    text-decoration: underline;
}


/* =========================================================
   7. TABLET - JOURNAL INFO
   ========================================================= */

@media (max-width: 900px) {

    .jik-info-box {
        grid-template-columns: minmax(0, 1fr) 180px;
        gap: 15px;
    }

    .jik-info-row {
        grid-template-columns: 125px minmax(0, 1fr);
    }

    .jik-info-cover img {
        max-width: 170px;
    }
}


/* =========================================================
   8. TABLET - EDITORIAL TEAM
   ========================================================= */

@media (max-width: 850px) {

    .jik-editor-card {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 18px;
        padding: 16px;
    }

    .jik-editor-photo img {
        width: 110px;
        height: 130px;
    }

    .jik-editor-detail {
        grid-template-columns: 105px minmax(0, 1fr);
    }
}


/* =========================================================
   9. MOBILE CONTENT
   ========================================================= */

@media (max-width: 600px) {

    .jik-info-box {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .jik-info-cover {
        order: -1;
        margin-bottom: 12px;
    }

    .jik-info-cover img {
        max-width: 180px;
    }

    .jik-info-row {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 8px;
    }

    .jik-about-content p {
        text-align: left;
    }

    .jik-editorial-title {
        font-size: 24px;
    }

    .jik-editorial-section-title {
        font-size: 18px;
    }

    .jik-editor-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
        text-align: left;
    }

    .jik-editor-photo {
        justify-content: flex-start;
    }

    .jik-editor-photo img {
        width: 110px;
        height: 130px;
    }

    .jik-editor-profile h3 {
        font-size: 17px;
    }

    .jik-editor-detail {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 5px 0;
    }

    .jik-editor-label {
        margin-bottom: 1px;
    }
}


/* =========================================================
   10. MOBILE NAVIGATION - SAFE FIX FOR OJS 3.5
   ---------------------------------------------------------
   Tujuan:
   - desktop tetap transparan
   - menu hamburger di HP punya latar putih
   - tidak memaksa semua submenu terbuka
   - tidak mengubah mekanisme show/hide bawaan OJS
   ========================================================= */

@media (max-width: 991px) {

    .pkp_site_nav_menu,
    .pkp_site_nav_menu--isOpen,
    .pkp_navigation_primary_wrapper,
    .pkp_navigation_primary_row,
    #navigationPrimary {
        background: #ffffff !important;
    }

    .pkp_site_nav_menu {
        z-index: 9999 !important;
        box-sizing: border-box !important;
    }

    #navigationPrimary {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #navigationPrimary > li {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #navigationPrimary > li > a {
        color: #222222 !important;
    }

    #navigationPrimary > li > a:hover,
    #navigationPrimary > li > a:focus {
        color: #d96500 !important;
        background: #fff4e8 !important;
    }

    #navigationPrimary ul,
    #navigationPrimary .dropdown-menu {
        background: #ffffff !important;
    }

    #navigationPrimary ul a,
    #navigationPrimary .dropdown-menu a {
        color: #333333 !important;
    }

    .pkp_navigation_search_wrapper {
        background: #ffffff !important;
        box-sizing: border-box !important;
    }

    .pkp_navigation_search_wrapper a {
        color: #222222 !important;
    }
}

/* =========================================================
   END OF JIK CUSTOM CSS
   ========================================================= */


/* =========================================================
   VISITOR STATISTICS / FLAG COUNTER
   ========================================================= */

.jik-visitor-stat {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 6px 0;
    overflow: hidden;
}

.jik-visitor-stat a {
    display: inline-block;
    max-width: 100%;
}

.jik-visitor-stat img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* =========================================================
   MAKE A SUBMISSION BUTTON - ORANGE THEME
   ========================================================= */

.pkp_block.block_make_submission a,
.block_make_submission a {
    display: block !important;
width: 100% !important;
box-sizing: border-box !important;
    background: #f58220 !important;
    color: #ffffff !important;
    border: 1px solid #dd6b0d !important;

    font-weight: 700 !important;
    text-decoration: none !important;
    text-align: center !important;

    padding: 10px 16px !important;
    border-radius: 0 !important;

    box-shadow: none !important;
}

/* Hover */
.pkp_block.block_make_submission a:hover,
.block_make_submission a:hover {
    background: #d96500 !important;
    color: #ffffff !important;
    border-color: #c85d00 !important;
    text-decoration: none !important;
}

/* Saat diklik/focus */
.pkp_block.block_make_submission a:focus,
.pkp_block.block_make_submission a:active,
.block_make_submission a:focus,
.block_make_submission a:active {
    background: #b95200 !important;
    color: #ffffff !important;
    border-color: #a54800 !important;
}

/* =========================================================
   JIK - FOCUS AND SCOPE
   ========================================================= */

.jik-scope-page {
    width: 100%;
    box-sizing: border-box;
}

.jik-scope-title {
    margin: 0 0 15px 0;
    padding-bottom: 10px;

    font-size: 28px;
    font-weight: 700;

    color: #222222;

    border-bottom: 3px solid #f58220;
}

.jik-scope-intro {
    margin: 0 0 25px 0;

    line-height: 1.7;
    text-align: justify;

    color: #333333;
}


/* GRID */

.jik-scope-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;

    width: 100%;
}


/* CARD */

.jik-scope-card {
    background: #fff5eb;

    border-left: 5px solid #f58220;
    border-top: 1px solid #f2dfce;
    border-right: 1px solid #f2dfce;
    border-bottom: 1px solid #f2dfce;

    padding: 18px 20px;

    box-sizing: border-box;

    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


.jik-scope-card:hover {
    box-shadow: 0 5px 16px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}


/* TITLE */

.jik-scope-card h3 {
    margin: 0 0 10px 0;

    font-size: 18px;
    line-height: 1.4;

    font-weight: 700;

    color: #d96500;
}


/* DESCRIPTION */

.jik-scope-card p {
    margin: 0 0 12px 0;

    line-height: 1.65;

    color: #333333;

    text-align: left;
}


/* TOPICS */

.jik-scope-topics {
    margin-top: 10px;

    padding-top: 10px;

    border-top: 1px solid #ecd7c4;

    line-height: 1.6;

    color: #444444;
}


.jik-scope-topics strong {
    color: #222222;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .jik-scope-grid {
        grid-template-columns: 1fr;
    }

    .jik-scope-title {
        font-size: 24px;
    }

    .jik-scope-card {
        padding: 16px;
    }

    .jik-scope-card h3 {
        font-size: 17px;
    }

    .jik-scope-intro {
        text-align: left;
    }
}