/* ========================================================
   1. LATAR BELAKANG DAN LAYOUT KONTEN (WIDE DESKTOP)
   ======================================================== */

body {
    background-color: #F0F8FF !important; 
}

.pkp_structure_content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    max-width: 1200px; 
    margin: 20px auto;
    
    position: relative;
    z-index: 1; 
    animation: turunDanMuncul 0.8s ease-out 0.4s forwards;
    opacity: 0;
}


/* ========================================================
   2. TOP BAR GRADASI & BANNER UTAMA
   ======================================================== */

.pkp_structure_head {
    background-color: transparent !important; 
    background-size: 1200px auto !important; 
    background-position: center 85px !important; 
    background-repeat: no-repeat !important;
    border: none;
    position: relative;
    z-index: 9999; 
    animation: turunDanMuncul 0.8s ease-out forwards;
}

.pkp_structure_head::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 85px; 
    background: linear-gradient(to right, #005ce6, #00bfff); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: -1; 
}

.pkp_head_wrapper {
    position: static !important; 
    max-width: 100%;
    margin: 0;
    padding: 0;
}


/* ========================================================
   3. LOGO KIRI & MENU PROFIL KANAN (TOP BAR)
   ======================================================== */

.pkp_site_name_wrapper {
    display: block !important; 
    position: absolute;
    top: 15px; 
    left: 5%;
    z-index: 10000;
}

.pkp_site_name_wrapper img {
    max-height: 55px !important; 
    width: auto !important;
}

.pkp_navigation_user_wrapper {
    position: absolute;
    top: 32px; 
    right: 5%;
    z-index: 10000;
}

#navigationUser > li > a {
    color: #ffffff; 
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2); 
}


/* ========================================================
   4. MENU NAVIGASI UTAMA (GARIS KUNING)
   ======================================================== */

.pkp_site_nav_menu {
    background: transparent !important;
    margin-top: 410px !important; 
}

.pkp_navigation_primary_row {
    background-color: #ffffff !important;
    border-top: 4px solid #FFFF00; 
    border-bottom: 1px solid #ccc;
    max-width: 1200px; 
    margin: 0 auto 30px auto; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); 
    position: relative;
    z-index: 999; 
    animation: turunDanMuncul 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.pkp_navigation_primary_wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

#navigationPrimary {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

#navigationPrimary > li > a {
    padding: 15px 20px;
    border-bottom: 4px solid transparent;
    font-weight: bold;
    color: #333; 
    text-decoration: none;
    display: block;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease; 
}

#navigationPrimary > li:hover > a,
#navigationPrimary > li.current > a {
    color: #005ce6; 
    border-bottom-color: #FFFF00; 
    transform: translateY(-3px); 
}


/* ========================================================
   5. PERBAIKAN POSISI MAIN CONTENT & SIDEBAR
   ======================================================== */

.pkp_structure_content.has_sidebar {
    display: flex !important;
    align-items: flex-start !important; 
    flex-wrap: nowrap !important;
}

.pkp_structure_main {
    flex: 1 !important; 
    max-width: 75% !important; 
    padding-right: 45px !important; 
    box-sizing: border-box;
}

.pkp_structure_sidebar {
    width: 25% !important; 
    padding-left: 20px !important; 
    margin-top: 0 !important; 
    box-sizing: border-box;
}

.pkp_structure_sidebar .pkp_block {
    margin-bottom: 25px !important;
}


/* ========================================================
   6. DESAIN TOMBOL & INFORMASI SIDEBAR
   ======================================================== */

.block_make_submission a.block_make_submission_link,
.block_make_submission a.pkp_button,
.block_make_submission button {
    background-color: #005ce6 !important; 
    color: #ffffff !important; 
    border: none !important;
    padding: 12px 20px !important;
    font-weight: bold;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    border-radius: 6px !important; 
    text-align: center;
    display: block;
    width: 100%; 
    box-sizing: border-box;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.block_make_submission a.block_make_submission_link:hover,
.block_make_submission a.pkp_button:hover,
.block_make_submission button:hover {
    background-color: #004080 !important; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.block_information .title {
    color: #333;
    font-weight: bold;
    border-bottom: 2px solid #FFFF00; 
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.block_information ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.block_information ul li {
    margin-bottom: 10px;
}

.block_information ul li a {
    color: #005ce6; 
    text-decoration: none;
    transition: color 0.2s ease;
}

.block_information ul li a:hover {
    color: #002d5a;
    text-decoration: underline;
}


/* ========================================================
   7. PERBAIKAN FOOTER BAWAH (GAYA MENYAMPING DENGAN NAVIGASI)
   ======================================================== */

.pkp_structure_footer {
    background-image: none !important;
    background-color: #ffffff; 
    border-top: 2px solid #e06500; /* Garis oranye ala Elsevier */
    padding: 30px 0; 
}

.pkp_structure_footer_wrapper {
    display: flex !important;
    align-items: center !important; 
    justify-content: flex-start !important;
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 40px; 
    gap: 40px; /* Jarak antara logo kiri dan teks navigasi */
}

.pkp_structure_footer img {
    /* Saya besarkan sedikit menjadi 90px karena di gambar Anda terlihat terlalu kecil */
    max-height: 90px !important; 
    width: auto !important;
    flex-shrink: 0; 
}

.pkp_footer_content {
    flex: 1;
    font-size: 13px; 
    color: #333;
    line-height: 1.6;
}

.pkp_footer_content .footer-nav {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee; /* Garis pemisah halus di bawah navigasi */
}

.pkp_footer_content a {
    color: #005ce6;
    text-decoration: none;
    margin-right: 18px; 
    display: inline-block;
    font-weight: bold;
}

.pkp_footer_content a:hover {
    text-decoration: underline;
    color: #e06500; /* Berubah oranye saat disorot */
}

.pkp_footer_content p {
    margin: 0 0 5px 0;
}

/* Memastikan logo OJS/PKP otomatis terdorong ke paling kanan */
.pkp_brand_footer {
    margin-left: auto !important;
    flex-shrink: 0;
}

/* ========================================================
   8. KEYFRAMES ANIMASI
   ======================================================== */

@keyframes turunDanMuncul {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   9. PENGATURAN TAMPILAN HP (RESPONSIVE MOBILE FIXES)
   ======================================================== */

@media screen and (max-width: 768px) {
    
    /* 1. Memperbaiki Header & Banner agar tidak terpotong */
    .pkp_structure_head {
        background-size: 100% auto !important; /* Banner menyesuaikan lebar HP */
        background-position: center 60px !important; 
    }
    
    .pkp_structure_head::after {
        height: 60px; /* Top bar biru diperkecil di HP */
    }
    
    .pkp_site_name_wrapper img {
        max-height: 35px !important; /* Logo kiri atas diperkecil */
    }
    
    .pkp_navigation_user_wrapper {
        top: 15px; /* Menyesuaikan posisi menu profil */
        right: 15px;
    }
    
    /* 2. Menurunkan jarak Menu Utama agar tidak menabrak teks */
    .pkp_site_nav_menu {
        margin-top: 120px !important; /* Jarak disusutkan jauh dari 410px di versi desktop */
    }
    
    .pkp_structure_content {
        padding: 20px; /* Padding wadah konten dikurangi agar tidak memakan layar */
    }

    /* 3. Memperbaiki Konten Utama dan Sidebar yang tergencet */
    .pkp_structure_content.has_sidebar {
        flex-direction: column !important; /* Mengubah paksaan menyamping menjadi atas-bawah */
    }
    
    .pkp_structure_main {
        max-width: 100% !important; /* Konten utama 100% selebar layar */
        padding-right: 0 !important; 
    }
    
    .pkp_structure_sidebar {
        width: 100% !important; /* Sidebar dipindah ke bawah konten secara penuh */
        padding-left: 0 !important; 
        margin-top: 40px !important; 
    }

    /* 4. Memperbaiki Navigasi Menu Kuning agar turun rapi jika kepanjangan */
    #navigationPrimary > li > a {
        padding: 10px 15px;
        font-size: 13px; /* Font dikecilkan sedikit untuk HP */
    }

    /* 5. Memperbaiki Footer agar sejajar ke bawah (tidak menyamping) */
    .pkp_structure_footer_wrapper {
        flex-direction: column !important; /* Teks dan gambar ditumpuk ke bawah */
        align-items: center !important;
        text-align: center; /* Teks dirata-tengah */
        gap: 20px; 
        padding: 0 15px; 
    }

    .pkp_footer_content .footer-nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .pkp_footer_content a {
        margin-right: 0;
    }

    .pkp_brand_footer {
        margin: 0 auto !important; /* Logo OJS diketengahkan */
    }
}