/* ==========================================================
   FONT GLOBAL — COMIC NEUE
   ========================================================== */
body, .pkp_page_content, .pkp_structure_content, 
.pkp_navigation_primary_wrapper, 
#navigationPrimary a, 
.sidebar-wrapper, 
.block, 
.pkp_section, 
.obj_article_summary,
.pkp_page_title, 
.page, .pkp_content, 
.pkp_navigation_search_wrapper a {
    font-family: 'Comic Neue', sans-serif !important;
}

/* ==========================================================
   KONTEN UTAMA (MAIN CONTENT AREA)
   ========================================================== */
.pkp_structure_main {
    background: #ffffff;
    padding: 30px 26px;
    border-radius: 14px;
    margin-top: 20px;
    margin-bottom: 40px;

    /* Shadow lembut */
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Judul Halaman */
.pkp_page_title > h1, 
.page_title > h1, 
h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0B3C5D;
    border-bottom: 3px solid #F2C14E;
    padding-bottom: 6px;
    margin-bottom: 18px;
}

/* Subjudul */
h2, h3, h4 {
    color: #0B3C5D;
    font-weight: 700;
}

/* Paragraph */
.pkp_structure_main p,
.page p {
    font-size: 16px;
    line-height: 1.7;
    color: #2b2b2b;
}

/* List */
.pkp_structure_main ul li,
.pkp_structure_main ol li {
    margin-bottom: 6px;
    line-height: 1.6;
}

/* Link dalam konten */
.pkp_structure_main a {
    color: #0B3C5D;
    font-weight: 600;
    text-decoration: underline;
    transition: color .2s ease;
}

.pkp_structure_main a:hover {
    color: #F2C14E;
}

/* ==========================================================
   TABLE STYLE
   ========================================================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}

table th {
    background: #0B3C5D;
    color: #ffffff;
    padding: 12px 10px;
}

table td {
    padding: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.15);
}

table tr:nth-child(even) {
    background: rgba(11,60,93,0.04);
}

/* ==========================================================
   BUTTON (OJS DEFAULT OVERRIDE)
   ========================================================== */
.pkp_button,
.pkp_button_primary,
.pkp_button_link {
    background: #0B3C5D !important;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 10px 16px;
    border: none;
    transition: all .25s ease;
}

.pkp_button:hover,
.pkp_button_primary:hover,
.pkp_button_link:hover {
    background: #F2C14E !important;
    color: #0B3C5D !important;
    transform: translateY(-2px);
}

/* ==========================================================
   INPUT, FORM & TEXTAREA
   ========================================================== */
input[type="text"], input[type="email"], input[type="password"],
textarea, select {
    width: 100%;
    border: 1px solid rgba(0,0,0,0.25);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 15px;
    transition: all .25s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: #0B3C5D;
    box-shadow: 0 0 0 3px rgba(11,60,93,0.15);
    outline: none;
}

/* ==========================================================
   BOX / BLOCK (Issue, Archive, Article Summary)
   ========================================================== */
.obj_issue_summary,
.obj_article_summary {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 18px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: border .25s ease, transform .25s ease;
}

.obj_issue_summary:hover,
.obj_article_summary:hover {
    border-color: #F2C14E;
    transform: translateY(-3px);
}

/* ==========================================================
   BREADCRUMB
   ========================================================== */
.pkp_navigation_breadcrumb li,
.pkp_navigation_breadcrumb a {
    font-size: 14px;
}

.pkp_navigation_breadcrumb a {
    color: #0B3C5D;
}

.pkp_navigation_breadcrumb a:hover {
    color: #F2C14E;
}

/* ==========================================================
   CUSTOM HEADER (BLUE–GOLD PREMIUM STYLE)
   Untuk struktur <header class="pkp_structure_head">
   ========================================================== */

.pkp_structure_head {
    background: #0B3C5D;                 /* Biru utama */
    border-bottom: 4px solid #F2C14E;    /* Garis emas */
    padding: 0;
    box-shadow: 0 3px 18px rgba(0,0,0,0.15);
    position: relative;
    z-index: 50;
}

/* Wrapper agar rata dan lebih rapat */
.pkp_head_wrapper {
    display: flex;
    flex-direction: column;
    padding: 20px 26px 10px 26px;
}

/* ===============================
   NAMA JURNAL (HEADER BAR)
   =============================== */
.pkp_site_name_wrapper {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255,255,255,0.15);
}

/* Tombol menu (mobile) */
.pkp_site_nav_toggle {
    background: #F2C14E;
    color: #0B3C5D;
    border: none;
    padding: 9px 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
}

.pkp_site_nav_toggle:hover {
    background: #ffe08e;
    transform: translateY(-2px);
}

/* Hilangkan h1 screen-reader agar tidak mengganggu layout */
.pkp_site_name_wrapper .pkp_screen_reader {
    position: absolute !important;
    left: -9999px;
}

/* Nama JURNAL */
.pkp_site_name a {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff !important;
    text-decoration: none;
    letter-spacing: 0.4px;
    transition: color .25s ease;
    line-height: 1.3;
    font-family: 'Comic Neue', sans-serif !important;
}

/* Hover emas */
.pkp_site_name a:hover {
    color: #F2C14E !important;
}

/* ===============================
   MENU PRIMER (SUDAH ANDA CUSTOM)
   - Header tidak mengganggu menu Anda
   =============================== */
.pkp_site_nav_menu {
    margin-top: 12px;
}

/* ===============================
   RESPONSIVE HEADER
   =============================== */
@media (max-width: 900px) {
    .pkp_head_wrapper {
        padding: 16px 18px 8px 18px;
    }

    .pkp_site_name_wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-bottom: 10px;
    }

    .pkp_site_name a {
        font-size: 22px;
    }

    .pkp_site_nav_toggle {
        padding: 8px 10px;
    }
}

/* ==========================================================
   NAVIGATION MENU — COMPACT WIDTH (TIDAK FULL-WIDTH)
   ========================================================== */

/* Wrapper posisi tengah, tidak full-width */
.pkp_navigation_primary_row {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* Kontainer menu (compact) */
.pkp_navigation_primary_wrapper {
    display: flex;
    align-items: center;
    background: #0B3C5D;
    padding: 0 20px;
    height: 56px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* LIST MENU UTAMA */
#navigationPrimary {
    display: flex;
    gap: 6px;
    align-items: center;
    white-space: nowrap;
}

/* ===============================
   MENU LEVEL 1 (COMPACT ITEM)
   =============================== */
#navigationPrimary > li > a {
    padding: 12px 18px;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    border-left: 3px solid transparent;
    transition: all .25s ease;
}

/* Cincin hover */
#navigationPrimary > li > a::after {
    content: "";
    position: absolute;
    width: 46px;
    height: 46px;
    border: 2px solid rgba(242,193,78,0.35);
    border-radius: 50%;
    right: -22px;
    top: 50%;
    transform: translateY(-50%) scale(0.3);
    opacity: 0;
    transition: all .25s ease;
}

/* Hover elegan */
#navigationPrimary > li > a:hover {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.05),
        rgba(242,193,78,0.35)
    );
    border-left: 3px solid #F2C14E;
    transform: translateY(-2px);
}

#navigationPrimary > li > a:hover::after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* ===============================
   SUBMENU (DROPDOWN)
   =============================== */
#navigationPrimary li ul {
    position: absolute;
    background: #0B3C5D;
    margin-top: 6px;
    padding: 8px 0;
    min-width: 210px;
    border-radius: 10px;
    display: none;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

#navigationPrimary li:hover > ul {
    display: block;
}

/* Item submenu */
#navigationPrimary li ul li a {
    display: block;
    padding: 12px 18px;
    color: #ffffff !important;
    font-size: 14px;
    text-decoration: none;
    border-left: 3px solid transparent;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    transition: all .25s ease;
}

/* Lingkaran submenu */
#navigationPrimary li ul li a::after {
    content: "";
    position: absolute;
    width: 34px;
    height: 34px;
    border: 2px solid rgba(242,193,78,0.35);
    border-radius: 50%;
    right: -16px;
    top: 50%;
    transform: translateY(-50%) scale(0.3);
    opacity: 0;
    transition: all .25s ease;
}

/* Hover submenu */
#navigationPrimary li ul li a:hover {
    background: rgba(255,255,255,0.08);
    border-left: 3px solid #F2C14E;
    transform: translateX(4px);
}

#navigationPrimary li ul li a:hover::after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* ===============================
   SEARCH KANAN (MENYATU)
   =============================== */
.pkp_navigation_search_wrapper a {
    padding: 12px 18px;
    margin-left: 12px;
    background: rgba(255,255,255,0.1);
    color: #ffffff !important;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}

.pkp_navigation_search_wrapper a:hover {
    background: rgba(242,193,78,0.35);
    border-left: 3px solid #F2C14E;
    transform: translateY(-2px);
}

/* ===============================
   MOBILE RESPONSIVE
   =============================== */
@media (max-width: 900px) {
    .pkp_navigation_primary_wrapper {
        flex-direction: column;
        padding: 12px;
        height: auto;
    }

    #navigationPrimary {
        flex-direction: column;
        width: 100%;
    }

    #navigationPrimary > li > a {
        width: 100%;
        text-align: left;
    }

    .pkp_navigation_search_wrapper {
        width: 100%;
        margin-top: 8px;
    }

    .pkp_navigation_search_wrapper a {
        width: 100%;
    }
}

/* === Sidebar Container (tetap bersih) === */
.sidebar-wrapper {
    padding: 5px 0;
    position: relative;
}

/* === ITEM MENU BERWARNA === */
.sue_right_menu a {
    display: block;
    background: #0B3C5D;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    border-left: 4px solid transparent;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all .25s ease;
}

/* Cincin kecil menu */
.sue_right_menu a::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(242,193,78,0.35);
    border-radius: 50%;
    right: -35px;
    top: 50%;
    transform: translateY(-50%) scale(0.4);
    opacity: 0;
    transition: all .25s ease;
}

/* Hover menu */
.sue_right_menu a:hover {
    background: linear-gradient(
        90deg,
        #0B3C5D 0%,
        rgba(242,193,78,0.45) 100%
    );
    border-left: 4px solid #F2C14E;
    color: #ffffff;
    transform: translateX(5px);
}

.sue_right_menu a:hover::after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* Sidebar Title */
.sidebar-title {
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 14px;
    color: #0B3C5D;
    border-bottom: 3px solid #F2C14E;
    padding-bottom: 6px;
}

/* Keywords */
.block_keywords .content {
    height: 180px !important;
    overflow: hidden !important;
    padding: 10px 5px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Hide default OJS footer */
.pkp_structure_footer_wrapper,
.pkp_footer_content,
.footer {
    display: none !important;
}

/* Loading overlay */
#site-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11,60,93,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    z-index: 999999;
    opacity: 1;
    transition: opacity .4s ease;
}

#site-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-ring {
    width: 70px;
    height: 70px;
    border: 6px solid rgba(255,255,255,0.25);
    border-top: 6px solid #F2C14E;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Samakan warna background menu utama === */
.pkp_navigation_primary_wrapper {
    background: #0B3C5D !important;
}

/* === Warna submenu supaya sama === */
#navigationPrimary li ul {
    background: #0B3C5D !important;
}

/* === Hilangkan gradient hover (biar warnanya flat dan matching) === */
#navigationPrimary > li > a:hover {
    background: rgba(255,255,255,0.05) !important;
    border-left: 3px solid #F2C14E !important;
}

/* === Warna cincin hover tetap (opasitas diperhalus) === */
#navigationPrimary > li > a::after {
    border-color: rgba(242,193,78,0.35) !important;
}

#navigationPrimary li ul li a::after {
    border-color: rgba(242,193,78,0.35) !important;
}

/* === Hover submenu tanpa perubahan warna yang tidak konsisten === */
#navigationPrimary li ul li a:hover {
    background: rgba(255,255,255,0.08) !important;
    border-left: 3px solid #F2C14E !important;
    color: #ffffff !important;
}

/* === Search bar disamakan warnanya === */
.pkp_navigation_search_wrapper a {
    background: rgba(255,255,255,0.10) !important;
    border-left: 3px solid transparent !important;
}
.pkp_navigation_search_wrapper a:hover {
    background: rgba(242,193,78,0.35) !important;
    border-left: 3px solid #F2C14E !important;
}
/* ==========================================================
   FIX PERBEDAAN WARNA DI KIRI–KANAN MENU OJS
   ========================================================== */

/* Samakan semua background wrapper header agar biru tua */
.pkp_structure_head,
.pkp_head_wrapper,
.pkp_site_name_wrapper,
.pkp_navigation_primary_row,
.pkp_navigation_primary_wrapper,
.pkp_site_nav_menu {
    background: #0B3C5D !important;
}

/* Hapus background layer bawaan OJS yang membuat warna jadi beda */
.pkp_navigation_primary_wrapper::before,
.pkp_navigation_primary_wrapper::after,
.pkp_structure_head::before,
.pkp_structure_head::after {
    display: none !important;
    background: none !important;
}

/* Hilangkan outline border tipis bawaan OJS */
.pkp_navigation_primary_wrapper,
.pkp_navigation_primary,
.pkp_site_nav_menu {
    border: none !important;
    box-shadow: none !important;
}

/* Pastikan padding kiri–kanan tidak menunjukkan warna dasar tema */
.pkp_navigation_primary_row {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* =============================
   SIDEBAR BLOCK — PREMIUM THEME
   ============================= */

.pkp_block {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px 18px 10px 18px;
    margin-bottom: 26px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.08);
    position: relative;
}

/* ===== Title Sidebar ===== */
.pkp_block .title {
    font-size: 18px;
    font-weight: 700;
    color: #0B3C5D;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(11,60,93,0.15);
}

/* ===== Content Text ===== */
.pkp_block .content p,
.pkp_block .content a,
.pkp_block .content li {
    font-size: 15px;
    color: #2b2b2b;
    line-height: 1.6;
}

/* ===== Sidebar List ===== */
.pkp_block .content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.pkp_block .content ul li {
    margin-bottom: 10px;
}

/* ===== Sidebar Links ===== */
.pkp_block .content a {
    display: block;
    padding: 10px 12px;
    background: #0B3C5D;
    color: #ffffff !important;
    border-radius: 8px;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}

/* Lingkaran efek hover */
.pkp_block .content a::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(242,193,78,0.35);
    border-radius: 50%;
    right: -30px;
    top: 50%;
    transform: translateY(-50%) scale(0.4);
    opacity: 0;
    transition: all .25s ease;
}

.pkp_block .content a:hover {
    background: linear-gradient(
        90deg,
        #0B3C5D 0%,
        rgba(242,193,78,0.45) 100%
    );
    border-left: 4px solid #F2C14E;
    transform: translateX(4px);
}

.pkp_block .content a:hover::after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* ===== Bottom Accent Bar ===== */
.pkp_block::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;      /* memastikan full lebar */
    bottom: 0;
    height: 6px;   /* tebal garis */
    background: #e4b100; /* warna emas */
    border-radius: 0 0 10px 10px;
}

.pkp_page_view_pdf .pkp_structure_footer {
    visibility: hidden;
    height: 0;
}
