@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600;700&display=swap');

/* =========================================================
   1. LAYOUT UTAMA & TIPOGRAFI GLOBAL (VARIASI TERANG)
   ========================================================= */

html,
body {
    background: radial-gradient(circle at 16% 20%, #f6f9ff 0%, #eef2f9 42%, #e6ecf7 100%);
    color: #1f2933;
    font-size: 15px;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    color: #0f172a;
    margin-top: 0;
}

h1 { font-size: 26px; letter-spacing: 0.02em; }
h2 { font-size: 22px; letter-spacing: 0.01em; }
h3 { font-size: 19px; }

p {
    line-height: 1.7;
    margin: 0 0 0.75em;
}

a {
    color: #1d4ed8;                      /* biru utama */
    text-decoration: none;
}

a:hover,
a:focus {
    color: #1e40af;
    text-decoration: underline;
}

/* =========================================================
   1A. GLOBAL BREADCRUMB (SELALU TAMPIL)
   ========================================================= */

.cmp_breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 6px 0 18px;
    background: #f4f6fb;
    border: 1px solid #e6ebf5;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cmp_breadcrumbs ol {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cmp_breadcrumbs a {
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
}

.cmp_breadcrumbs a:hover {
    text-decoration: underline;
}

.cmp_breadcrumbs .current {
    color: #0f172a;
    font-weight: 700;
}

.cmp_breadcrumbs .separator {
    color: #94a3b8;
    padding: 0;
}

/* Fallback breadcrumb untuk halaman yang tidak punya markup (Home, static page) */

/* Container utama: panel terang di atas background biru lembut */
.pkp_structure_page {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border-radius: 18px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
    border: 1px solid #e4e9f3;
}

/* Wrapper konten + sidebar */
.pkp_structure_content {
    max-width: 1180px;
    margin: 38px auto 44px;             /* lebih jauh dari header & footer */
    padding: 24px 24px 36px;
    box-sizing: border-box;

    display: flex;
    align-items: flex-start;
    gap: 20px;                           /* jarak antara konten & sidebar */
}

/* Konten utama kiri */
.pkp_structure_main {
    flex: 1 1 72%;                       /* bisa menyusut agar tidak overflow */
    min-width: 0;                        /* izinkan isi mengecil di flexbox */
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border: 1px solid #e6ebf5;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    box-sizing: border-box;
}

/* Batasi lebar isi konten agar lebih fokus */
.pkp_structure_main .page_index_journal {
    max-width: 880px;                   /* kolom konten lebih sempit & rapi */
    margin: 4px auto 0;
    padding: 6px 4px 2px;
}

/* Jarak vertikal konsisten antar elemen di halaman depan */
.pkp_structure_main .page_index_journal > * + * {
    margin-top: 24px;
}

/* Bersihkan garis atas bawaan OJS pada setiap blok konten */
.pkp_structure_main .page_index_journal,
.pkp_structure_main .page_index_journal > *,
.pkp_structure_main .cmp_announcements,
.pkp_structure_main .cmp_announcements > li,
.pkp_structure_main .cmp_article_list > li,
.pkp_structure_main .pkp_page_header,
.pkp_structure_main .pkp_page_header + * {
    border-top: none !important;
}

.pkp_structure_main .page_index_journal::before,
.pkp_structure_main .page_index_journal > *::before,
.pkp_structure_main .cmp_announcements > li::before,
.pkp_structure_main .cmp_article_list > li::before,
.pkp_structure_main .pkp_page_header::before {
    display: none !important;
}

.pkp_structure_main hr {
    display: none;
}

/* Sidebar kanan */
.pkp_structure_sidebar {
    flex: 0 0 auto;                      /* lebar mengikuti isi */
    width: min(320px, 30vw);             /* adaptif: penuh bila sempit, terbatas bila lebar */
    min-width: 240px;
    box-sizing: border-box;
    position: sticky;
    top: 80px;                           /* sesuaikan tinggi header yang lebih pendek */
}

/* Card default tiap block sidebar */
.pkp_structure_sidebar .pkp_block {
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
    border: 1px solid #e5e9f2;
    border-radius: 12px;
    padding: 14px 14px 12px;
    margin-bottom: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

/* Judul block sidebar (INFORMASI, dll) */
.pkp_structure_sidebar .pkp_block .title,
.pkp_structure_sidebar .pkp_block .pkp_block_title,
.pkp_structure_sidebar .pkp_block .block_title {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1f3b70;
    margin: 0 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #e1e7f0;
}

/* List biasa di dalam block (kalau pakai <ul>) */
.pkp_structure_sidebar .pkp_block ul {
    margin: 6px 0 0 0;
    padding-left: 18px;
}

.pkp_structure_sidebar .pkp_block ul li {
    margin-bottom: 6px;
}

.pkp_structure_sidebar .pkp_block ul li a {
    color: #1f3b70;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pkp_structure_sidebar .pkp_block ul li a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Responsif: di layar kecil sidebar turun ke bawah */
@media (max-width: 991px) {
    .pkp_structure_content {
        max-width: 100%;
        padding: 16px 12px 30px;
        display: block;
    }

    .pkp_structure_main {
        flex: none;
        margin-bottom: 20px;
        padding: 20px 16px;
    }

    .pkp_structure_sidebar {
        flex: none;
        position: static;
        top: auto;
    }
}

/* =========================================================
   2. HEADER & MENU UTAMA (TAMPILAN PREMIUM)
   ========================================================= */

/* Bar header */
.pkp_head {
    background-image: var(--banner-image, linear-gradient(135deg, #0ea5e9, #1d4ed8));
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
    border-bottom: none;
    padding: 36px 0 26px;               /* ruang banner lebih tinggi */
    min-height: 260px;                  /* tinggi minimum banner */
    width: 100vw;                       /* rentang penuh layar */
    margin-left: calc(-50vw + 50%);     /* keluar dari kontainer utama */
    margin-right: calc(-50vw + 50%);
    position: relative;
    overflow: hidden;                   /* rapikan overflow saat gambar melebar */
}

.pkp_head::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--banner-overlay, none); /* biar gambar header tidak tertutup overlay */
    pointer-events: none;
}

/* Wrapper di dalam header */
.pkp_head .pkp_head_wrapper,
.pkp_head .pkp_site_name_wrapper,
.pkp_site_name_wrapper {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: flex-start;        /* logo rata kiri */
    gap: 18px;
    border-radius: 0;
    background: transparent !important; /* kosongkan background agar banner full */
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none;
    position: relative;
    z-index: 1;                         /* naikkan di atas overlay */
}

.pkp_site_name_wrapper::before,
.pkp_site_name_wrapper::after {
    display: none !important;           /* hilangkan pseudo bawaan yang bisa memberi blok */
}

/* Nama situs & logo */
.pkp_site_name {
    padding: 0;
    margin: 0;                           /* hilangkan margin bawaan h1 */
    line-height: 1.1;
    width: 100%;
    max-width: 1180px;
    text-align: left;                    /* logo dan judul rata kiri */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Logo lebih kecil & rapi */
.pkp_site_name img {
    max-height: 180px;                  /* tinggi banner lebih besar */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0;
    background: transparent !important; /* jaga transparansi asli logo */
    box-shadow: none !important;
    filter: none;                       /* hilangkan efek yang bisa mengubah tampilan asli */
}

.pkp_site_name a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    color: #0f172a;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.pkp_site_name > a {
    padding-top: 0;
    padding-bottom: 0;
}

.pkp_site_name .is_img img {
    max-height: 180px !important;
}

.pkp_site_name_wrapper {
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 767px) {
    .pkp_head {
        padding: 26px 0 18px;
        min-height: 200px;
    }

    .pkp_head .pkp_head_wrapper,
    .pkp_head .pkp_site_name_wrapper {
        padding: 0 18px;
        gap: 12px;
    }

    .pkp_site_name a {
        gap: 12px;
        font-size: 18px;
    }

    .pkp_site_name img,
    .pkp_site_name .is_img img {
        max-height: 140px !important;
    }
}

.pkp_navigation_user_wrapper {
    top: 0;
    right: 0;
    padding-right: 30px;
}

.pkp_structure_page {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
}

/* Navigasi utama */
.pkp_navigation_primary {
    background: transparent;
    border-top: none;
}

/* Desktop: menu horizontal rapi */
@media (min-width: 768px) {

    .pkp_navigation_primary .pkp_nav_list {
        max-width: 1180px;
        margin: 0 auto;
        padding: 0 12px;
        list-style: none;

        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .pkp_navigation_primary .pkp_nav_list > li {
        margin: 0;
    }

    .pkp_navigation_primary .pkp_nav_list > li > a {
        display: block;
        padding: 9px 16px;
        color: #1f2933;
        text-transform: uppercase;
        font-weight: 500;
        font-size: 13px;
        letter-spacing: 0.12em;
        text-decoration: none;
        position: relative;
        border-radius: 999px;
        transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
    }

    /* Garis kecil di bawah menu saat hover/aktif */
    .pkp_navigation_primary .pkp_nav_list > li > a::after {
        content: "";
        position: absolute;
        inset: 1px;
        border-radius: inherit;
        border: 1px solid rgba(148, 163, 184, 0.0);
        transition: border-color 0.25s ease, box-shadow 0.25s ease;
    }

    .pkp_navigation_primary .pkp_nav_list > li > a:hover::after,
    .pkp_navigation_primary .pkp_nav_list > li.current > a::after {
        border-color: rgba(59, 130, 246, 0.85);
        box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
    }

    .pkp_navigation_primary .pkp_nav_list > li > a:hover,
    .pkp_navigation_primary .pkp_nav_list > li > a:focus,
    .pkp_navigation_primary .pkp_nav_list > li.current > a {
        background: rgba(59, 130, 246, 0.12);
        color: #0f172a;
        transform: translateY(-1px);
    }
}

/* =========================================================
   3. TOMBOL BIRU UNTUK MENU UTAMA & INFORMASI
   ========================================================= */

/* Style dasar untuk daftar tombol di sidebar (inspirasi side menu example.html) */
.custom-sidebar {
    width: 100%;
    margin-top: 4px;
}

.custom-sidebar .sidebar-item {
    display: block;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    text-align: center;
    padding: 13px 10px;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.custom-sidebar .sidebar-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.28);
    filter: saturate(1.05);
    text-decoration: none;
}

/* =========================================================
   4. CUSTOM BLOCK "MENU UTAMA" (HILANGKAN TITLE)
   ========================================================= */

/* Hanya block ini yang tanpa judul */
#customblock-indexing .title,
#customblock-indexing .pkp_block_title,
#customblock-indexing .block_title {
    display: none !important;
}

/* Sedikit penyesuaian padding agar isi rapi */
#customblock-indexing {
    padding-top: 10px;
}

/* =========================================================
   5. BOX "INFORMASI" (PAKAI JUDUL BAWAAN BLOCK SAJA)
   ========================================================= */

/* Kontainer isi di dalam block Informasi */
.sidebar-box {
    padding: 2px 0;
}

/* Jika di HTML masih ada <div class="sidebar-title">INFORMASI</div>,
   sembunyikan supaya tidak dobel seperti di screenshot. */
.sidebar-box .sidebar-title {
    display: none;
}

/* Khusus Informasi: kalau ingin jarak ekstra antara judul dan tombol */
.sidebar-box-info .custom-sidebar {
    margin-top: 6px;
}

/* =========================================================
   6. KONTEN HOMEPAGE "ABOUT THE JOURNAL" (CARD MODERN)
   ========================================================= */

.homepage_about {
    background: transparent;            /* biar tidak jadi kartu bertumpuk */
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    position: relative;
}

.homepage_about h2 {
    font-size: 22px;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 6px;
}

.homepage_about p {
    font-size: 15px;
    color: #4b5563;
}

/* Garis aksen di bawah judul */
.homepage_about h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 88px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #1d4ed8, #60a5fa);
}

/* Paragraf metadata (Frekuensi terbit, ISSN, dll) di bagian bawah */
.homepage_about p:last-of-type {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #e5e7f0;
    font-size: 14px;
    color: #4b5563;
}

.homepage_about p:last-of-type strong {
    font-weight: 600;
    color: #1d4ed8;
}

/* =========================================================
   7. FOOTER RINGKAS & PREMIUM
   ========================================================= */

.pkp_structure_footer {
    background: transparent;
    border-top: none;
    padding: 18px 0 24px;
    font-size: 13px;
}

.pkp_structure_footer .pkp_footer_content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
    background: transparent;
    color: #4b5563;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.pkp_structure_footer .pkp_brand_footer {
    max-width: 1180px;
    margin: 8px auto 0;
    font-size: 12px;
}

.pkp_structure_footer p {
    margin: 0;
}

.pkp_structure_footer a {
    text-decoration: none;               /* opsional: rapikan link */
}

.pkp_structure_footer a:hover {
    text-decoration: underline;
}

/* Hilangkan strip biru tebal di bagian paling bawah halaman */
.pkp_structure_footer_wrapper {
    border-bottom: none !important;
}

/* HILANGKAN COPYRIGHT "Platform & workflow by OJS / PKP" */
.pkp_footer .pkp_brand_footer,
.pkp_brand_footer,
.pkp_footer_brand {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
