/* =========================================================
   CUSTOM CSS - TEMA DEFAULT MANUSCRIPT (OJS 3.5.0.4)
   EDISI KHUSUS JURNAL PRODI STATISTIKA / MATEMATIKA
   ========================================================= */

/* 1. Background Body dengan Gambar Pola Statistika & Konten/Sidebar Putih Solid */
html,
body {
    background-color: #ffffff !important;
    background-image: url("https://i.imageupload.app/69d603e0c72a3e02b45f.jpeg") !important;
    background-repeat: repeat !important;
    background-size: 350px auto !important;
    background-attachment: fixed !important;
}

.pkp_structure_page,
.pkp_structure_content,
.pkp_structure_content::before,
.pkp_structure_content::after {
    background-color: transparent !important;
    background-image: none !important;
}

.pkp_structure_main,
.pkp_structure_sidebar,
.pkp_structure_sidebar.left {
    background-color: #ffffff !important;
    border-radius: 6px;
}

.pkp_navigation_user_row,
.pkp_structure_footer_wrapper,
.pkp_structure_footer,
.pkp_brand_footer {
    background-color: #ffffff !important;
}

/* 2. Warna Dasar Header */
.pkp_structure_head {
    background-color: #1a365d !important;
    border-bottom: 3px solid #ecc94b !important;
    position: relative;
    height: auto !important;
}

/* =========================================================
   3. PENGATURAN HEADER KHUSUS DESKTOP (LAYAR >= 992px)
   ========================================================= */
@media (min-width: 992px) {
    .pkp_head_wrapper {
        position: relative !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        height: auto !important;
    }

    .pkp_site_name_wrapper,
    .pkp_site_name,
    .pkp_site_name .is_img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .pkp_site_name .is_img img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
        height: auto !important;
        object-fit: cover !important;
    }

    .pkp_navigation_user_wrapper {
        position: absolute !important;
        top: 15px !important;
        right: 20px !important;
        z-index: 99 !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* =========================================================
   4. PENGATURAN HEADER & HAMBURGER KHUSUS MOBILE (LAYAR < 992px)
   ========================================================= */
@media (max-width: 991px) {
    .pkp_head_wrapper {
        display: block !important;
        position: relative !important;
        height: auto !important;
    }

    .pkp_site_name_wrapper {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: 52px !important;
        padding: 6px 12px 6px 52px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .pkp_site_nav_toggle {
        display: block !important;
        position: absolute !important;
        left: 8px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 100 !important;
    }

    .pkp_site_name,
    .pkp_site_name .is_img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .pkp_site_name .is_img img {
        display: block !important;
        width: auto !important;
        max-width: 100% !important;
        max-height: 46px !important;
        height: auto !important;
        margin: 0 !important;
    }

    .pkp_navigation_user_wrapper {
        position: static !important;
        width: 100% !important;
        padding: 10px 15px !important;
    }
}

/* 5. Gaya Tombol Register & Login */
.pkp_navigation_user {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_navigation_user a[href*="register"] {
    display: inline-block !important;
    padding: 6px 16px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    background-color: rgba(26, 54, 93, 0.85) !important; 
    color: #ffffff !important;
    border: 1.5px solid #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease-in-out;
    line-height: 1.4 !important;
}

.pkp_navigation_user a[href*="register"]:hover {
    background-color: #1a365d !important;
}

.pkp_navigation_user a[href*="login"] {
    display: inline-block !important;
    padding: 6px 16px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    background-color: #ecc94b !important;
    color: #1a365d !important;
    border: 1.5px solid #ecc94b !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease-in-out;
    line-height: 1.4 !important;
}

.pkp_navigation_user a[href*="login"]:hover {
    background-color: #d69e2e !important;
    border-color: #d69e2e !important;
}

/* 6. Warna Teks Menu Navigasi Utama & Search Wrapper */
.pkp_navigation_primary_row {
    width: 100% !important;
    background-color: #1a365d !important;
}

.pkp_navigation_primary > li > a,
.pkp_navigation_search_wrapper,
.pkp_navigation_search_wrapper a,
.pkp_navigation_search_wrapper .pkp_search {
    color: #ffffff !important;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_search_wrapper a:hover {
    color: #ecc94b !important;
}

/* 7. Warna Link & Judul Artikel */
a, 
.obj_article_summary .title a {
    color: #1a365d;
}

a:hover, 
.obj_article_summary .title a:hover {
    color: #2b6cb0;
}

/* 8. Warna Tombol Umum (Submit, PDF, Search, dll.) */
.cmp_button, 
.obj_galley_link,
.pkp_button_primary {
    background-color: #1a365d !important;
    color: #ffffff !important;
    border-color: #1a365d !important;
}

.cmp_button:hover, 
.obj_galley_link:hover {
    background-color: #2b6cb0 !important;
}

/* 9. Warna Header Blok Sidebar (Kanan) */
.pkp_block .title {
    background-color: #1a365d;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
}

/* 10. Warna Garis & Teks Footer */
.pkp_structure_footer_wrapper {
    border-top: 2px solid #1a365d;
    color: #2d3748;
}
