/* * OJS 3 Manuscript Child Theme - JURNAL DARAS (Blue Theme)
 * Fokus Update:
 * 1. FIX ISSN DESKTOP: Menambahkan !important dan selector spesifik agar teks ISSN
 * tidak berubah menjadi nama Publisher (PT Sahayu...).
 * 2. TEMA: Tetap Biru (#002c5f).
 * 3. LAYOUT: Tetap rapi untuk HP dan Desktop.
 */

/* =========================================
   1. RESET & GLOBAL TYPOGRAPHY
   ========================================= */
body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #334155;
    line-height: 1.6;
    background-color: #ffffff !important; 
}

a { transition: color 0.2s ease-in-out; }

/* =========================================
   2. HEADER & LOGO CONFIGURATION
   ========================================= */
.pkp_structure_head {
    background-color: #ffffff;
    border-bottom: none; 
    padding-top: 15px;
    padding-bottom: 15px;
}

/* LOGO KIRI - ISSN KANAN */
.pkp_site_name_wrapper {
    padding: 15px 0;
    position: relative;
    display: flex;            
    align-items: center;      
    justify-content: space-between; 
    width: 100%;
}

.pkp_site_name {
    text-align: left !important;
    margin-right: auto !important; 
    margin-left: 0 !important;
    flex-grow: 0; 
}

.pkp_site_name a { display: inline-block; }

/* --- LOGO DESKTOP --- */
.pkp_site_name img {
    display: block;
    margin: 0 !important; 
    max-height: 80px; /* Standar Desktop */
    width: auto;
}

/* Styling ISSN (Tampilan Desktop) - FIX CONFLICT */
/* Menggunakan selector lebih spesifik (.pkp_structure_head ...) dan !important */
.pkp_structure_head .pkp_site_name_wrapper::after {
    /* --- GANTI NOMOR ISSN DI SINI --- */
    content: "E-ISSN: 1234-5678  |  P-ISSN: 8765-4321" !important; 
    
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    background-color: #f1f5f9;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid #cbd5e1;
    white-space: pre;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-left: 20px; 
}

/* =========================================
   3. NAVIGATION MENU (User & Primary)
   ========================================= */

/* User Nav (Login/Register) */
.pkp_navigation_user > li > a {
    color: #475569 !important;
    font-weight: 500;
    font-size: 0.85rem;
}

.pkp_navigation_user > li > a:hover {
    color: #2563eb !important;
    text-decoration: none;
}

/* --- MAIN NAVBAR (Desktop) --- */
.pkp_navigation_primary_row {
    background-color: #002c5f !important; /* Biru Tua Solid */
    padding: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.pkp_structure_head .pkp_navigation_primary > li > a,
.pkp_navigation_primary > li > a,
.pkp_navigation_primary > li > a:link,
.pkp_navigation_primary > li > a:visited {
    color: #ffffff !important;      
    font-family: 'Inter', sans-serif !important; 
    font-weight: 500 !important;    
    font-size: 0.9rem !important;   
    text-transform: uppercase;      
    letter-spacing: 0.5px;          
    padding: 18px 20px;             
    opacity: 1 !important;          
    text-decoration: none !important;
    text-shadow: none;              
    border-right: 1px solid rgba(255, 255, 255, 0.1); 
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    background-color: rgba(255, 255, 255, 0.2) !important; 
    color: #ffffff !important;
}

/* Tombol Search */
.pkp_navigation_primary .search_link {
    color: #ffffff !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    opacity: 1 !important;
    padding: 18px 20px; 
}
.pkp_navigation_primary .search_link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Dropdown Menu */
.pkp_navigation_primary li ul {
    background-color: #ffffff !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    border-top: 3px solid #2563eb; 
}

.pkp_navigation_primary li ul li a {
    color: #334155 !important; 
    font-weight: 400 !important;
    font-size: 0.9rem !important;
    text-transform: capitalize; 
    padding: 10px 20px;
    border-right: none;
    text-shadow: none !important; 
}

.pkp_navigation_primary li ul li a:hover {
    background-color: #f1f5f9 !important;
    color: #2563eb !important;
}

/* =========================================
   4. CONTENT & COMPONENTS
   ========================================= */
.obj_article_summary {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.obj_article_summary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border-color: #cbd5e1;
}

.obj_article_summary .title a {
    color: #1e293b;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1.4;
}

.obj_article_summary .title a:hover { color: #2563eb; }
.obj_article_summary .meta { margin-top: 12px; font-size: 0.9rem; color: #64748b; }
.obj_article_summary .authors { font-weight: 500; color: #334155; }

/* Sidebar */
.pkp_structure_sidebar { padding-left: 20px; }

/* Style Global Blok Sidebar */
.pkp_block {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.pkp_block .title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Article Detail */
.page_article_details .article_details {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}
.page_article_details .title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.article_details .main_entry .abstract {
    background: #f8fafc;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
    margin: 30px 0;
}

.obj_galley_link {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    border: none !important;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}
.obj_galley_link:hover {
    background-color: #1d4ed8 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3) !important;
}

/* =========================================
   5. FOOTER: KOMPAK, BIRU, SEJAJAR KONTEN
   ========================================= */

/* Background Biru Full Width */
.pkp_structure_footer_wrapper {
    background-color: #002c5f !important; /* Biru Tua Header */
    color: #ffffff !important;
    padding: 20px 0 !important; /* Tinggi kompak */
    margin-top: 40px;
    border-top: 4px solid #2563eb;
}

/* Container Dalam: Mengatur Posisi Teks agar Lurus dengan Garis Merah/Sidebar */
.pkp_structure_footer {
    max-width: 1140px !important; /* Standar lebar konten website modern */
    margin: 0 auto !important;    /* Posisi container di tengah layar */
    padding-left: 15px !important; /* Padding aman untuk HP */
    padding-right: 15px !important;
    text-align: left !important;  /* Teks Rata Kiri */
    width: 100% !important;
    box-sizing: border-box;
}

/* RESET ELEMEN FOOTER (Hapus style warisan sidebar) */
.pkp_structure_footer_wrapper .pkp_block,
.pkp_structure_footer_wrapper .pkp_structure_footer .content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
}

/* Styling Teks Footer */
.pkp_structure_footer p, 
.pkp_structure_footer div {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: #cbd5e1 !important; 
    margin-bottom: 3px !important; /* Jarak antar baris rapat */
}

.pkp_structure_footer strong,
.pkp_structure_footer h4 {
    color: #ffffff !important;
    font-weight: 700;
}

.pkp_structure_footer a {
    color: #60a5fa !important;
    text-decoration: none;
}
.pkp_structure_footer a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

.pkp_brand_footer { display: none !important; }

/* Logo CC */
.pkp_structure_footer img {
    margin-top: 10px !important;
    display: inline-block !important;
    border-radius: 4px;
    background: white;
    padding: 2px;
}


/* =========================================
   6. RESPONSIVENESS (MOBILE & TABLET)
   ========================================= */
@media (max-width: 991px) {
    .pkp_navigation_primary_wrapper { background-color: #002c5f; }
    
    .pkp_navigation_primary > li > a {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        color: #ffffff !important;
    }

    /* --- FIX: TOMBOL MENU MOBILE (PASTI BIRU) --- */
    .pkp_site_nav_toggle {
        border-color: #2563eb !important;
        background: transparent !important;
        color: #2563eb !important; 
        opacity: 1 !important;
        cursor: pointer;
    }

    .pkp_site_nav_toggle span, 
    .pkp_site_nav_toggle:before,
    .pkp_site_nav_toggle:after {
        background-color: #2563eb !important; /* Garis Biru */
    }

    .pkp_site_nav_toggle:hover {
        background-color: rgba(37, 99, 235, 0.1) !important;
    }
}

@media (max-width: 767px) {
    /* LAYOUT HP: LOGO KIRI - ISSN KANAN */
    .pkp_site_name_wrapper {
        flex-direction: row !important; /* Baris Samping-sampingan */
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important; /* Jangan turun ke bawah */
    }
    
    .pkp_site_name { 
        margin-right: auto !important;
        margin-bottom: 0 !important;
        flex: 0 1 auto; /* Logo boleh mengecil kalau kepepet */
    }
    
    /* FIX LOGO: Otomatis Mengecil di HP agar muat & tidak tabrakan */
    .pkp_site_name img {
        max-height: 50px !important; /* Ukuran Aman di HP */
        width: auto;
        margin: 0 !important;
    }

    /* FIX ISSN: Pindah Kanan, Font Kecil, 2 Baris */
    /* Menggunakan selector spesifik untuk menimpa aturan default di HP juga */
    .pkp_structure_head .pkp_site_name_wrapper::after {
        /* Pakai \A untuk Enter/Baris Baru */
        content: "E-ISSN: 1234-5678 \A P-ISSN: 8765-4321" !important; 
        
        white-space: pre-wrap !important;
        font-size: 0.7rem !important; /* Font Kecil */
        line-height: 1.3 !important;
        
        text-align: right !important; /* Rata Kanan */
        margin-left: 10px !important;
        width: auto !important;
        min-width: 0 !important;
        padding: 6px 10px !important;
    }
    
    .page_article_details .article_details { padding: 20px; }
    
    /* Footer HP */
    .pkp_structure_footer_wrapper {
        padding: 15px 0 !important;
    }
    .pkp_structure_footer {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}