/* ==========================================================================
   JOURNAL STYLE SHEET (OJS 3) - JURNAL PENGABDIAN MASYARAKAT POLITEKNIK KRAKATAU
   Tema Dasar  : Default Theme OJS 3.1 / 3.2 / 3.3 / 3.4
   Warna Utama : Navy Krakatau (#0f2942), Royal Blue (#1e40af), Gold (#f59e0b)
   ========================================================================== */

/* 1. RESET & LATAR BELAKANG HALAMAN */
body {
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif !important;
    background-color: #eef2f6 !important;
    color: #1e293b !important;
    line-height: 1.65;
    overflow-x: hidden;
}

.pkp_structure_page {
    max-width: 1240px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 10px 35px rgba(15, 41, 66, 0.08);
}

/* 2. HEADER & NAMA JURNAL */
.pkp_structure_head {
    position: relative;
    z-index: 1;
    background: none !important;
    border-bottom: none !important;
}

/* Latar header dibuat selebar layar penuh (di luar kotak 1240px),
   sedangkan logo dan menu tetap sejajar dengan konten halaman */
.pkp_structure_head::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    background: linear-gradient(135deg, #0f2942 0%, #1e3a8a 100%);
    border-bottom: 4px solid #f59e0b;
    z-index: -1;
}

.pkp_head_wrapper {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

.pkp_site_name .is_text {
    font-size: 25px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    text-decoration: none !important;
}

.pkp_site_name .is_img img {
    max-height: 95px !important;
    width: auto;
}

/* Menu User (Register / Login) di Kanan Atas */
.pkp_navigation_user_wrapper {
    top: 12px !important;
}

.pkp_navigation_user>li>a {
    color: #f8fafc !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    background: rgba(255, 255, 255, 0.12);
    padding: 5px 12px !important;
    border-radius: 6px;
    margin-left: 6px;
    transition: all 0.2s ease;
}

.pkp_navigation_user>li>a:hover {
    background: #f59e0b !important;
    color: #0f2942 !important;
}

/* 3. MENU NAVIGASI UTAMA (NAVBAR) */
.pkp_navigation_primary_row {
    background-color: #091a2c !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Pita navbar gelap melebar penuh di desktop; menu tetap sejajar dengan konten */
@media (min-width: 992px) {
    .pkp_navigation_primary_row {
        position: relative;
        z-index: 0;
        background: none !important;
        border-top: none !important;
        box-shadow: none !important;
    }

    .pkp_navigation_primary_row::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 100vw;
        margin-left: -50vw;
        background-color: #091a2c;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: -1;
    }
}

.pkp_navigation_primary>li>a {
    color: #f8fafc !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 13px 18px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent !important;
    transition: all 0.2s ease;
}

.pkp_navigation_primary>li>a:hover,
.pkp_navigation_primary>li>a:focus {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: #fbbf24 !important;
    border-bottom: 3px solid #f59e0b !important;
}

/* Dropdown Sub-Menu */
.pkp_navigation_primary ul {
    background-color: #0f2942 !important;
    border-top: 3px solid #f59e0b !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

.pkp_navigation_primary ul li a {
    color: #e2e8f0 !important;
    font-size: 13px !important;
    padding: 10px 16px !important;
}

.pkp_navigation_primary ul li a:hover {
    background-color: #1e40af !important;
    color: #ffffff !important;
}

/* Tombol Pencarian di Navbar */
.pkp_search .search_controls a {
    color: #fbbf24 !important;
    font-weight: 600 !important;
}

/* 4. BREADCRUMBS (JEJAK HALAMAN) */
.cmp_breadcrumbs {
    background: #f8fafc;
    padding: 10px 16px !important;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px !important;
    font-size: 13px;
}

.cmp_breadcrumbs a {
    color: #1e40af !important;
    font-weight: 600;
    text-decoration: none;
}

/* 5. JUDUL SECTION & TERBITAN TERKINI (CURRENT ISSUE) DI HALAMAN INDEX */
.pkp_structure_content {
    padding-top: 28px !important;
}

.current_issue .current_issue_title,
.pkp_structure_main h1,
.pkp_structure_main h2 {
    color: #0f2942 !important;
    font-weight: 800 !important;
    font-size: 20px !important;
    border-left: 5px solid #f59e0b;
    padding-left: 12px;
    margin-bottom: 20px;
}

.obj_issue_toc .heading {
    background: #f8fafc;
    padding: 18px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.obj_issue_toc .cover img {
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    border: 1px solid #cbd5e1;
}

/* Heading Kategori Artikel (Contoh: Artikel Pengabdian) */
.obj_issue_toc .section h2,
.obj_issue_toc .section h3 {
    background: linear-gradient(90deg, #0f2942 0%, #1e40af 100%);
    color: #ffffff !important;
    padding: 10px 16px !important;
    border-radius: 8px;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-left: 5px solid #f59e0b !important;
    margin-top: 10px;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 6. KARTU DAFTAR ARTIKEL DI HALAMAN DEPAN (ARTICLE SUMMARY CARD) */
.obj_issue_toc .articles>li {
    margin-bottom: 16px !important;
}

.obj_article_summary {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #1e40af;
    border-radius: 10px;
    padding: 18px 20px !important;
    box-shadow: 0 2px 8px rgba(15, 41, 66, 0.04);
    transition: all 0.25s ease;
}

.obj_article_summary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(15, 41, 66, 0.1);
    border-left-color: #f59e0b;
}

.obj_article_summary .title {
    margin-bottom: 8px !important;
}

.obj_article_summary .title a {
    color: #0f2942 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    line-height: 1.45;
    display: block;
}

.obj_article_summary .title a:hover {
    color: #1e40af !important;
}

.obj_article_summary .authors {
    color: #475569 !important;
    font-size: 13.5px !important;
    font-weight: 500;
}

.obj_article_summary .pages {
    color: #64748b !important;
    font-size: 12.5px !important;
    font-weight: 600;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 6px;
}

/* 7. TOMBOL UNDUH PDF (GALLEY LINK) & TOMBOL LAINNYA */
.obj_galley_link {
    display: inline-block !important;
    background: linear-gradient(135deg, #0f2942 0%, #1e40af 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 6px 16px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.25);
    transition: all 0.2s ease;
}

.obj_galley_link:hover {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
    color: #0f2942 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.read_more,
.cmp_button,
.pkp_button {
    background: #0f2942 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 9px 18px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    border: none !important;
    transition: all 0.2s ease;
}

.read_more:hover,
.cmp_button:hover,
.pkp_button:hover {
    background: #f59e0b !important;
    color: #0f2942 !important;
}

/* 8. HALAMAN DETAIL ARTIKEL (ABSTRAK & METADATA) */
.obj_article_details .page_title {
    color: #0f2942 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.4;
    border-left: none !important;
    padding-left: 0 !important;
}

.obj_article_details .abstract {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0f2942;
    padding: 20px;
    border-radius: 10px;
    text-align: justify;
    margin-bottom: 20px;
}

.obj_article_details .item.doi,
.obj_article_details .item.keywords {
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* 9. SIDEBAR & BLOK BAWAAN OJS (POSISI DI TENGAH KOLOM) */

/* Kolom sidebar: jarak kiri dan kanan dibuat sama supaya kartu berada di tengah.
   Ubah angka 24px jika ingin jarak yang lebih lebar atau lebih sempit. */
.pkp_structure_sidebar {
    box-sizing: border-box !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

/* Setiap blok mengisi penuh lebar kolom (setelah dikurangi padding di atas) */
.pkp_block,
.pkp_structure_sidebar .pkp_block {
    float: none !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
}

.pkp_block .title {
    background: linear-gradient(135deg, #0f2942 0%, #1e40af 100%);
    color: #ffffff !important;
    padding: 13px 16px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid #f59e0b !important;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0 !important;
}

.pkp_block .content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 16px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Menghilangkan padding ganda khusus untuk Custom Block yang sudah punya kartu sendiri */
.pkp_block.block_custom .content {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.pk-nav-list a:hover {
    background-color: #f1f5f9 !important;
    color: #0f2942 !important;
    padding-left: 22px !important;
    font-weight: 700 !important;
}

.pk-btn-template:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.pk-btn-submit:hover {
    background-color: #1e40af !important;
}

/* 10. FOOTER UTAMA OJS */
.pkp_structure_footer_wrapper {
    background: #091a2c !important;
    border-top: 5px solid #f59e0b !important;
    color: #cbd5e1 !important;
    margin-top: 40px;
}

.pkp_structure_footer a {
    color: #fbbf24 !important;
}

/* 11. RESPONSIVE MOBILE (HP & TABLET) */
@media (max-width: 992px) {

    /* Sidebar turun ke bawah konten: jarak samping dibuat lebih kecil */
    .pkp_structure_sidebar {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

@media (max-width: 768px) {
    .pkp_site_name .is_text {
        font-size: 18px !important;
    }

    .obj_article_summary {
        padding: 14px !important;
    }
}
