/* Custom CSS by @ilham.djaya */
/* Updated Theme: Sky Blue Theme (#38BDF8) */

/* =========================================
   1. HEADER & MAIN STRUCTURE (FULL-WIDTH BANNER)
   ========================================= */

/* Menghancurkan margin & padding dari container pembungkus logo */
.pkp_structure_head,
.pkp_head_wrapper,
.pkp_site_name_wrapper,
.pkp_site_name {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important; 
    box-sizing: border-box !important;
}

/* Memaksa tautan pembungkus gambar menjadi block penuh */
.pkp_site_name .is_img {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Membuat gambar banner meregang penuh edge-to-edge */
.pkp_site_name .is_img img {
    display: block !important;
    width: 100% !important; 
    max-width: 100% !important;
    max-height: none !important; 
    height: auto !important; 
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover; 
}

/* =========================================
   NAVIGASI UTAMA (BIRU LANGIT FULL-WIDTH & LAYOUT ASLI)
   ========================================= */

/* Wadah Utama Navigasi (display: block dihapus agar tombol hamburger mobile berfungsi) */
.pkp_site_nav_menu {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Baris Menu Utama dengan background gradient biru langit */
.pkp_navigation_primary_row {
    background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%) !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    display: block !important; 
}

/* Membatasi isi menu dan search agar tetap di tengah (Max 1140px) */
.pkp_navigation_primary_wrapper {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between; 
}

/* Mereset navbar lama (hilang round dan background transparan) */
.pkp_navigation_primary {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important; 
    box-shadow: none !important;
    margin: 0 !important;
}

/* Warna teks menu navbar OJS & Search menjadi putih */
.pkp_navigation_primary a,
.pkp_navigation_search_wrapper a {
    color: #ffffff !important;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25); 
    padding: 15px 20px !important; 
    display: inline-block;
    text-decoration: none;
}

/* =========================================
   FIX DROPDOWN NAVBAR OJS (DESKTOP)
   ========================================= */

/* Memastikan background dropdown tetap putih di Desktop */
.pkp_site_nav_menu .dropdown-menu {
    background-color: #ffffff !important;
    border-radius: 6px;
    border: 1px solid #BAE6FD;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    padding: 5px 0;
    margin-top: 0;
}

/* Warna teks khusus di dalam dropdown menjadi hitam di Desktop */
.pkp_site_nav_menu .dropdown-menu a {
    color: #0F172A !important; 
    text-shadow: none !important; 
    font-weight: 500;
    padding: 10px 20px !important;
    display: block !important;
}

/* Efek hover saat kursor diarahkan ke menu dropdown */
.pkp_site_nav_menu .dropdown-menu a:hover,
.pkp_site_nav_menu .dropdown-menu li:hover > a {
    color: #38BDF8 !important; 
    background-color: #E0F2FE !important; 
}

/* =========================================
   RESPONSIVITAS MOBILE UNTUK NAVIGASI
   ========================================= */
@media (max-width: 992px) {
    /* OJS JS tetap jalan, kita atur tampilan saat terbuka */
    .pkp_navigation_primary_row {
        background: #0284C7 !important; 
        padding: 10px 0 !important;
    }

    .pkp_navigation_primary_wrapper {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .pkp_navigation_primary {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    .pkp_navigation_primary li {
        width: 100%;
    }

    .pkp_navigation_primary a,
    .pkp_navigation_search_wrapper a {
        display: block !important;
        width: 100% !important;
        padding: 12px 20px !important;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
    }

    .pkp_navigation_search_wrapper {
        width: 100%;
        margin-top: 10px;
        padding: 0 15px;
    }

    /* Penyesuaian Dropdown di HP (Menjadi Accordion) */
    .pkp_site_nav_menu .dropdown-menu {
        position: static !important; 
        transform: none !important;
        width: 100% !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background-color: #0F172A !important; 
        border: none !important;
    }

    .pkp_site_nav_menu .dropdown-menu a {
        padding-left: 40px !important; 
        color: #ffffff !important; 
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    }
}

/* =========================================
   2. MAIN CONTENT LAYOUT
   ========================================= */

.page_index_journal {
    display: flex;
    flex-direction: column; 
}

.pkp_structure_main {
    background: white;
}

.current_issue {
    order: 2;
}

.additional_content {
    order: 1;
}

.pkp_structure_page {
    background: url("https://ejurnal.iainpare.ac.id//public/site/images/muhilhamjaya/pattern_islamic.jpg") repeat fixed;
}

.pkp_block a {
    color: #0F172A; 
}

/* =========================================
   3. SIDEBAR (GLOWING TITLE & PREMIUM ANIMATION)
   ========================================= */

.pkp_block {
    margin-bottom: 20px;
}

.pkp_block .title {
    display: block;
    background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%); 
    color: white;
    margin: 0;
    padding: 12px 15px; 
    font-size: 0.95rem; 
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px 6px 0 0; 
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4); 
    position: relative;
    z-index: 2;
    border: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2); 
}

.pkp_block .content {
    background: transparent; 
    border: none; 
    padding: 0; 
    box-shadow: none;
}

.pkp_block .content ul {
    list-style: none;
    padding: 8px; 
    margin: 0;
    background: #ffffff; 
    border: 1px solid #BAE6FD; 
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pkp_block .content ul li {
    display: block;
    margin-bottom: 0; 
    border-bottom: 1px solid rgba(30, 41, 59, 0.1); 
    position: relative;
    overflow: hidden; 
    z-index: 1;
    background: #F0F9FF; 
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1); 
}

.pkp_block .content ul li:last-child {
    border-bottom: none;
}
.pkp_block .content ul li:first-child {
    border-radius: 4px 4px 0 0;
}
.pkp_block .content ul li:last-child {
    border-radius: 0 0 4px 4px;
}

.pkp_block .content ul li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%; 
    height: 100%;
    background: linear-gradient(90deg, #E0F2FE 0%, #F0F9FF 100%);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1; 
}

.pkp_block .content ul li a {
    border-left: 3px solid #1E293B; 
    display: block;
    padding: 8px 12px; 
    font-size: 0.9rem; 
    color: #1E293B;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pkp_block .content ul li:hover {
    transform: translateX(5px) scale(1.01); 
    border-left-color: #38BDF8; 
    box-shadow: -3px 5px 12px rgba(56, 189, 248, 0.2); 
}

.pkp_block .content ul li:hover::before {
    width: 100%; 
}

.pkp_block .content ul li:hover a {
    color: #020617; 
    padding-left: 18px; 
}

.block_make_submission a {
    display: block;
    background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
    color: white !important;
    padding: 12px 15px; 
    border-radius: 25px; 
    text-align: center;
    font-size: 0.95rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(56, 189, 248, 0.35);
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.block_make_submission a:hover {
    transform: translateY(-3px) scale(1.01); 
    box-shadow: 0 6px 15px rgba(56, 189, 248, 0.55);
    background: linear-gradient(135deg, #7DD3FC 0%, #0369A1 100%);
}

.pkp_block .content > p {
    padding: 10px 0;
    margin: 0;
    font-size: 0.95rem;
    color: #1E293B;
}

/* =========================================
   4. TEMPLATE DOWNLOAD BOX
   ========================================= */

.template-box {
    text-align: center;
    margin: 40px auto;
    padding: 30px 25px; 
    max-width: 600px;
    background-color: #ffffff;
    border: 1px solid #BAE6FD;
    border-left: 5px solid #38BDF8; 
    border-radius: 6px; 
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.template-box:hover {
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.15);
}

.template-box h2 {
    font-size: 22px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
    color: #1E293B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.template-download-btn {
    display: inline-block;
    margin: 10px auto;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%); 
    color: white !important;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 25px; 
    box-shadow: 0 3px 10px rgba(30, 41, 59, 0.3);
    transition: all 0.3s ease;
}

.template-download-btn:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 6px 15px rgba(30, 41, 59, 0.45);
    background: linear-gradient(135deg, #334155 0%, #1E293B 100%);
}

.template-docx-link {
    color: #1E293B;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.template-docx-link:hover {
    color: #38BDF8;
}

/* =========================================
   5. FOOTER (PURE FLEXBOX)
   ========================================= */

.custom-journal-footer {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); 
    color: #ffffff;
    padding: 40px 20px 25px 20px; 
    margin-top: 50px;
    font-family: inherit;
    border-top: 3px solid #38BDF8; 
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 25px; 
}

.footer-col {
    flex: 1 1 30%; 
    min-width: 230px; 
}

.custom-journal-footer h5 {
    color: #7DD3FC; 
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    font-size: 1rem; 
}

.custom-journal-footer p {
    color: #E0F2FE; 
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 8px;
}

.custom-journal-footer a {
    color: #7DD3FC;
    text-decoration: none;
    transition: all 0.3s ease;
}

.custom-journal-footer a:hover {
    color: #38BDF8; 
    text-decoration: underline;
}

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08); 
    margin: 25px 0 20px 0;
}

.copyright-section {
    text-align: center;
    color: #7DD3FC;
    font-size: 0.85rem;
}

.copyright-section a {
    color: #ffffff;
    text-decoration: underline;
}

.copyright-section a:hover {
    color: #38BDF8;
}

.footer-icon {
    margin-right: 6px;
    color: #38BDF8; 
}

.pkp_brand_footer {
display: none;
}