/* =========================================================
   CUSTOM CSS OJS - MODERN, LUXURY & PROFESSIONAL (REVISED)
   ========================================================= */

/* 1. Import Font Modern (Inter) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* 2. Pengaturan Dasar Halaman */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    background-color: #f4f7f6;
    color: #333333;
    line-height: 1.6;
}

/* 3. Area Konten Utama (Card Container) */
.pkp_structure_page {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin-top: 25px;
    margin-bottom: 40px;
    padding: 30px;
}

/* 4. Header & Navigasi Utama + Menu Akun User */
.pkp_structure_head {
    background-color: #1a5276 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Link Navigasi Utama & User Nav (Tombol/Menu Baris Utama) */
.pkp_navigation_primary > li > a, 
.pkp_navigation_user > li > a {
    color: #ffffff !important;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Efek Hover Link Utama Header */
.pkp_navigation_primary > li > a:hover, 
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus {
    background-color: rgba(255, 255, 255, 0.18) !important; /* Latar transparan gelap */
    color: #ffffff !important; /* Teks tetap putih */
    text-decoration: none;
}

/* Sub-Menu / Dropdown Menu (Untuk Menu 'About' DAN Menu 'User Account') */
.pkp_navigation_primary ul,
.pkp_navigation_user ul {
    background-color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    padding: 6px 0;
}

/* Teks Sub-Menu (Warna Gelap Agar Sangat Jelas di Latar Putih) */
.pkp_navigation_primary ul a,
.pkp_navigation_user ul a {
    color: #2c3e50 !important; /* Warna teks gelap */
    font-weight: 500;
    padding: 8px 18px;
    display: block;
}

/* Efek Hover pada Sub-Menu (About & User Account) */
.pkp_navigation_primary ul a:hover,
.pkp_navigation_primary ul a:focus,
.pkp_navigation_user ul a:hover,
.pkp_navigation_user ul a:focus {
    background-color: #f1f5f9 !important; /* Latar abu-abu muda saat kursor diarahkan */
    color: #1a5276 !important; /* Teks berubah menjadi biru header */
}

/* 5. Typography Headings (H1, H2, H3) */
h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 20px;
}

.pkp_page_title {
    font-size: 2rem;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

/* 6. Kotak Notifikasi */
.cmp_notification, 
.page_submissions .cmp_notification {
    background-color: #fff3cd;
    color: #856404;
    border-left: 5px solid #ffc107;
    padding: 14px 18px;
    border-radius: 4px;
    font-weight: 500;
    margin-bottom: 25px;
}

/* 7. Mempercantik Tombol-Tombol */
.cmp_button, .pkp_button {
    background-color: #1a5276;
    color: #ffffff !important;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.cmp_button:hover, .pkp_button:hover {
    background-color: #11364f;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* 8. Desain Sidebar Wrapper */
.pkp_block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.pkp_block .title {
    color: #1a5276;
    font-weight: 700;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
}

/* 9. Desain Side Menu (Rapat, Presisi & Mewah) */
.pkp_block ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.pkp_block ul li {
    margin-bottom: 4px !important; 
}

.pkp_block ul li a {
    display: block;
    padding: 7px 12px;
    color: #4a5568 !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.88rem;
    background-color: #ffffff;
    
    border: 1px solid #e2e8f0;
    border-left: 4px solid #cbd5e1;
    border-radius: 5px;
    
    transition: all 0.2s ease-in-out;
}

/* Efek Hover Side Menu */
.pkp_block ul li a:hover {
    background-color: #f8fafc !important;
    color: #1a5276 !important;
    border-left: 0px solid #1a5276 !important;
    box-shadow: 2px 3px 8px rgba(26, 82, 118, 0.08);
    transform: translateX(4px);
}

/* 10. Tautan Dalam Teks Konten */
.pkp_page_content a {
    color: #2980b9;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dotted #2980b9;
    transition: all 0.2s ease;
}

.pkp_page_content a:hover {
    color: #d35400;
    border-bottom: 1px solid #d35400;
}

/* =========================================================
   11. Footer Kustom Profesional
   ========================================================= */
.pkp_structure_footer_wrapper {
    background-color: #eaf2f8 !important;
    margin-top: 40px;
}

.journal-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px 20px 30px;
    color: #4a5568;
    font-size: 0.9rem;
}

.journal-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(26, 82, 118, 0.15);
}

.journal-footer-col h4 {
    color: #1a5276 !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.journal-footer-col p {
    margin: 0 0 8px 0;
    line-height: 1.7;
    color: #4a5568;
}

.journal-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.journal-footer-col ul li {
    margin-bottom: 10px;
}

.journal-footer-col ul li a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s ease;
}

.journal-footer-col ul li a:hover {
    color: #1a5276;
    text-decoration: underline;
}

.journal-footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.journal-footer-badges img {
    height: 40px;
    background: #ffffff;
    border-radius: 4px;
    padding: 4px 8px;
    border: 1px solid #e2e8f0;
}

.journal-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    font-size: 0.82rem;
    color: #64748b;
}

.journal-footer-bottom a {
    color: #4a5568;
    text-decoration: none;
}

.journal-footer-bottom a:hover {
    color: #1a5276;
}

.journal-footer-social {
    display: flex;
    gap: 12px;
}

.journal-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(26, 82, 118, 0.08);
    border-radius: 50%;
    color: #1a5276 !important;
    transition: background 0.2s ease;
}

.journal-footer-social a:hover {
    background: #1a5276;
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .journal-footer-grid {
        grid-template-columns: 1fr;
    }
    .journal-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================================
   12. Menyejajarkan Footer Custom dengan "Powered by OJS/PKP"
   ========================================================= */
.pkp_structure_footer_wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
}

.pkp_structure_footer_wrapper .journal-footer {
    flex: 1 1 auto;
    margin: 0;
}

.pkp_structure_footer_wrapper .pkp_brand_footer {
    flex: 0 0 auto;
    margin-left: 20px;
}

/* Kalau elemen "Powered by" pakai class pkp_structure_footer bukan pkp_brand_footer */
.pkp_structure_footer_wrapper .pkp_structure_footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}