/* ===== HEADER (LOGO IMAGE ONLY - RESPONSIVE FIX OJS 3.5) ===== */

/* ===== FORCE LOGO CENTER OJS 3.5 ===== */

/* header utama */
.pkp_head_wrapper {
    display: flex;
    flex-direction: column;
    /* ⬅️ penting: pisahkan logo dari menu */
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* ===== FORCE FULL WIDTH SITE NAME WRAPPER ===== */

.pkp_site_name_wrapper {
    width: 100vw;
    /* ⬅️ full layar kiri–kanan */
    max-width: 100vw;
    height: 200px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);

    display: flex;
    justify-content: center;
    /* logo tetap di tengah */
    align-items: center;

    padding: 0;
}

/* pastikan container tidak membatasi */
.pkp_site_name {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

/* link logo */
.pkp_site_name a.is_img {
    display: block;
    margin: 0 auto;
}

/* gambar logo */
.pkp_site_name a.is_img img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 120px;
    width: auto !important;
    /* ⬅️ jangan full 100% */
    height: auto !important;
    object-fit: contain;
}

.pkp_site_name {
    text-align: center;
    justify-content: center;
}

/* gambar logo / banner */
.pkp_site_name a.is_img img {
    width: 100% !important;
    /* WAJIB: override width inline */
    height: auto !important;
    /* WAJIB: override height inline */
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* =====================================================
   BUTTON STYLE OJS 3.5 (COMPACT & SQUARE)
   Daftar | Login | Lihat Jurnal | Terbitan Terkini
   ===================================================== */

/* ===== DAFTAR & LOGIN (HEADER) ===== */
.pkp_navigation_user a {
    display: inline-block;
    padding: 4px 10px;
    /* DIPERKECIL */
    margin-left: 6px;
    font-size: 12px;
    /* DIPERKECIL */
    font-weight: 500;
    color: #0b3c6d;
    background-color: #ffffff;
    border: 1px solid #0b3c6d;
    border-radius: 0;
    /* HILANGKAN RADIUS */
    text-decoration: none;
    transition: all 0.2s ease;
}

.pkp_navigation_user a:hover {
    background-color: #0b3c6d;
    color: #ffffff;
}

/* ===== LIHAT JURNAL & TERBITAN TERKINI (PORTAL) ===== */
ul.links {
    margin-top: 8px;
}

ul.links li {
    display: inline-block;
    margin-right: 6px;
}

/* style umum */
ul.links li a {
    display: inline-block;
    padding: 5px 12px;
    /* DIPERKECIL */
    font-size: 12px;
    /* DIPERKECIL */
    font-weight: 500;
    border-radius: 0;
    /* HILANGKAN RADIUS */
    text-decoration: none;
    transition: all 0.2s ease;
}

/* LIHAT JURNAL */
ul.links li.view a {
    background-color: #0b3c6d;
    color: #ffffff;
    border: 1px solid #0b3c6d;
}

ul.links li.view a:hover {
    background-color: #084298;
    color: #ffffff;
}

/* TERBITAN TERKINI */
ul.links li.current a {
    background-color: #e7f1ff;
    color: #0b3c6d;
    border: 1px solid #0b3c6d;
}

ul.links li.current a:hover {
    background-color: #0b3c6d;
    color: #ffffff;
}

/* =====================================================
   JUDUL JURNAL (HALAMAN DAFTAR JURNAL)
   ===================================================== */

.journals .body h3 {
    margin: 0 0 6px 0;
}

.journals .body h3 a {
    font-size: 17px;
    /* judul dibesarkan */
    font-weight: 600;
    line-height: 1.4;
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.journals .body h3 a:hover {
    color: #0b3c6d;
    text-decoration: none;
}

.pkp_page_index .journals img {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* =========================
   FULL WIDTH HOMEPAGE ONLY
========================= */

.page_index_site {
    position: relative;
    left: 50%;
    margin-left: -50vw;

    width: 100vw;
    max-width: 100vw;

    padding-left: 170px;
    padding-right: 170px;

    box-sizing: border-box;
}

/* HILANGKAN GARIS BEFORE & AFTER */

.pkp_structure_content::before,
.pkp_structure_content::after,
.pkp_structure_main::before,
.pkp_structure_main::after,
.page_index_site::before,
.page_index_site::after {
    border: none !important;
    background: none !important;
}

h2.title {
    background: linear-gradient(135deg, #e6f0fa 0%, #b8d1f0 100%);
    padding: 15px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #0a2f44;
    border-top: 5px solid #1e4a6d;
    border-bottom: 5px solid #1e4a6d;
    letter-spacing: 2px;
    box-shadow: 0 4px 8px rgba(0, 40, 80, 0.2);
    text-transform: uppercase;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 8px 8px 0 0;
    margin: 20px 0;
    transition: all 0.3s ease;
}

/* Container Utama */
.page_index_journal {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

/* --- BAGIAN GAMBAR (CENTERED) --- */
.page_index_journal .homepage_image {
    display: flex;         /* Mengaktifkan flex untuk centering internal */
    justify-content: center; /* Menengahkan gambar secara horizontal */
    align-items: center;     /* Menengahkan secara vertikal jika ada sisa ruang */
    margin-top: 20px;      /* Jarak margin atas yang Anda minta */
}

.page_index_journal .homepage_image img {
    max-width: 280px;      /* Sesuaikan ukuran maksimal gambar */
    width: 100%;           /* Responsif agar tidak melebihi container */
    height: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- RESPONSIVE BREAKPOINTS --- */

/* Mobile / Tablet Kecil (< 767px) */
@media (max-width: 767px) {
    .page_index_journal .homepage_image,
    .page_index_journal .homepage_about {
        flex: 0 0 100%;    /* Lebar penuh agar menumpuk rapi */
    }
}

/* Tablet Landscape & Laptop (768px - 1023px) */
@media (min-width: 768px) {
    .page_index_journal .homepage_image {
        flex: 0 0 35%;     /* Area gambar 35% lebar layar */
    }
    .page_index_journal .homepage_about {
        flex: 0 0 60%;
        padding-left: 10px;
    }
}

/* Desktop / Layar Lebar (>= 1024px) */
@media (min-width: 1024px) {
    .page_index_journal .homepage_image {
        flex: 0 0 30%;     /* Area gambar sedikit lebih kecil agar elegan */
        margin-top: 30px;  /* Margin atas sedikit lebih besar di desktop */
    }
    .page_index_journal .homepage_about {
        flex: 0 0 65%;
        padding-left: 30px;
    }
    
    .page_index_journal .current_issue {
        flex: 0 0 100%;
        margin-top: 50px;
        border-top: 1px solid #eee;
        padding-top: 30px;
    }
}

@media (max-width: 1024px) {
    .page_index_site {
        padding-left: 30px;
        padding-right: 30px;
    }

    .page_index_journal {
        padding-left: 60px;
        padding-right: 60px;
    }
}

@media (max-width: 768px) {
    .page_index_site {
        padding-left: 20px;
        padding-right: 20px;
    }

    .page_index_journal {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 480px) {
    .page_index_site {
        padding-left: 15px;
        padding-right: 15px;
    }

    .has_thumb {
        margin: 0 -1.43rem;
        padding: 1.43rem 0;
        border-top: 1px solid #ddd;
    }

    .pkp_page_index .journals img {
        width: 100% !important;
        /* full lebar */
        height: auto !important;
        /* proporsional */
        max-height: none !important;
        display: block;
        object-fit: contain;
        /* tidak terpotong */
    }

    .journals .body h3 {
        margin: 10px 0 6px 0;
    }

    .page_index_journal {
        padding-left: 15px;
        padding-right: 15px;
    }

    .obj_issue_toc .cover {
        width: 100% !important;
    }

    .obj_issue_toc .cover img {
        width: 100% !important;
        /* full lebar */
        height: auto !important;
        /* proporsional */
        max-height: none !important;
        display: block;
        object-fit: contain;
        /* tidak terpotong */
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    }

}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .pkp_navigation_user a {
        margin: 4px 0;
    }

    ul.links li {
        display: block;
        margin-bottom: 6px;
    }
}

/* mobile optimization */
@media (max-width: 768px) {
    .pkp_site_name_wrapper {
        height: 50px;
    }

    .pkp_site_name a.is_img img {
        max-height: 50px;
    }
}