/* ========================================
   1. HEADER & NAVIGATION JURNAL
======================================== */
/* Latar Belakang Utama */
.pkp_structure_head {
    background-color: #1C468E !important; 
    border-bottom: 4px solid #df2029 !important; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    position: relative !important; 
}

/* Menu Navigasi BARIS UTAMA SAJA */
.pkp_navigation_primary > li > a, 
.pkp_navigation_user > li > a {
    color: #ffffff !important; 
    font-weight: 600 !important;
    letter-spacing: 0.5px; 
    transition: all 0.3s ease; 
}

/* Efek Hover untuk MENU UTAMA SAJA */
.pkp_navigation_primary > li > a:hover, 
.pkp_navigation_user > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    color: #f2b83d !important; 
    text-decoration: none;
}

/* Kotak Latar Belakang Dropdown (Sub-menu) & Perbaikan Overflow */
ul.pkp_navigation_primary ul,
ul.pkp_navigation_user ul {
    background-color: #ffffff !important; 
    border: 1px solid #dfe3e8 !important; 
    border-radius: 4px !important; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important; 
    overflow: hidden !important; 
    padding: 5px 0 !important; 
}

/* Teks dan Area Klik DI DALAM Dropdown */
ul.pkp_navigation_primary ul li a,
ul.pkp_navigation_user ul li a {
    color: #333333 !important; 
    font-weight: 600 !important;
    padding: 10px 20px !important; 
    background-color: transparent !important;
    display: block !important; 
    width: 100% !important;
    margin: 0 !important;
}

/* Efek Hover DI DALAM Dropdown */
.pkp_navigation_primary ul li a:hover,
.pkp_navigation_primary ul li a:focus,
.pkp_navigation_user ul li a:hover,
.pkp_navigation_user ul li a:focus {
    background-color: #f7f9fc !important; 
    color: #1C468E !important; 
}

/* ========================================
   PERBAIKAN NOTIFIKASI PROFIL (REVISI FLEXBOX)
======================================== */
/* 1. Memaksa isi menu profil sejajar di satu garis lurus */
.pkp_navigation_user > li > a {
    display: inline-flex !important;
    align-items: center !important;
}

/* 2. Styling Gelembung Angka */
.pkp_navigation_user .task_count {
    background-color: #df2029 !important; 
    color: #ffffff !important; 
    border-radius: 20px !important; 
    padding: 2px 7px !important; 
    font-size: 0.75rem !important; 
    font-weight: bold !important;
    margin-left: 8px !important; 
    margin-right: 4px !important; /* Memberi jarak ke ikon panah dropdown */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important; 
    
    /* Menghapus vertical-align karena sudah diurus oleh flexbox di atas */
    vertical-align: baseline !important; 
}

/* ========================================
   2. TOMBOL PDF GALLEY (HALAMAN UTAMA/ARTIKEL)
======================================== */
a.obj_galley_link.pdf {
    background-color: #df2029 !important; 
    border-color: #c41c24 !important; 
    color: #ffffff !important; 
    font-weight: bold !important; 
}

a.obj_galley_link.pdf:hover {
    background-color: #bf1a22 !important; 
    border-color: #a6161d !important;
    color: #ffffff !important;
}


/* ========================================
   3. KARTU INFORMASI SIDEBAR ARTIKEL
======================================== */
/* Kerangka kotak utama (Published, Citation, dll) */
.entry_details .item.published,
.entry_details .item.citation,
.entry_details .item.issue,
.entry_details .item.section,
.entry_details .item.copyright {
    background-color: #ffffff; 
    border: 1px solid #dfe3e8; 
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05); 
}

/* Bagian Judul (Header) Kartu */
.entry_details .item.published .label,
.entry_details .item.citation .label,
.entry_details .item.issue .label,
.entry_details .item.section .label,
.entry_details .item.copyright .label {
    background-color: #1C468E; 
    color: #ffffff; 
    text-align: center; 
    padding: 11px 15px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0;
    border-bottom: none;
}

/* Bagian Isi (Body) Kartu */
.entry_details .item.published .value,
.entry_details .item.citation .value,
.entry_details .item.issue .value,
.entry_details .item.section .value,
.entry_details .item.copyright .value {
    padding: 15px;
    color: #333333;
    font-size: 0.95rem;
    line-height: 1.6;
}

.entry_details .item.citation .value .citation_formats {
    margin-top: 15px;
}

/* Teks Tanggal Published Khusus */
.entry_details .item.published .value {
    font-size: 1.15rem !important; 
    font-weight: 500 !important; 
    color: #111111 !important;  
    text-align: center !important; 
    padding: 15px !important; 
    margin-bottom: 0 !important; 
    line-height: 1 !important; 
    font-family: "Noto Serif", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Oxygen-Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important; 
}


/* ========================================
   4. SIDEBAR KUSTOM (SAMPING KANAN)
======================================== */
.custom-sidebar-card {
    background: #ffffff;
    border: 1px solid #dfe3e8;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    font-family: "Segoe UI", Arial, sans-serif;
}

.custom-card-header {
    background: #1C468E;
    color: #ffffff;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 11px;
    line-height: 1.3;
}

.custom-card-body {
    padding: 12px;
    text-align: center;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.custom-card-body.p-0 {
    padding: 0;
}

.custom-card-body strong {
    font-size: 1.05rem;
    font-weight: 700;
}

.status-ongoing {
    display: inline-block;
    padding: 4px 12px;
    background: #fff5e6;
    border: 1px solid #ffd699;
    color: #d97706;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 4px;
}

.custom-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-menu-list li {
    border-bottom: 1px solid #ececec;
}

.custom-menu-list li:last-child {
    border-bottom: none;
}

.custom-menu-list a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #2f2f2f;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.custom-menu-list a:hover {
    background: #f7f9fc;
    color: #1C468E;
}

.custom-menu-list img {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    flex-shrink: 0;
}

.custom-card-body.p-0 > .template-download-btn {
    display: flex !important;
    flex-direction: column !important; 
    align-items: center !important; 
    justify-content: center !important; 
    width: 100% !important;
    margin: 0 !important;
    padding: 20px 14px !important;
    background-color: #ffffff;
    border-bottom: 1px solid #dfe3e8;
    text-decoration: none !important;
    color: #333333 !important;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center !important; 
    transition: all 0.2s ease-in-out;
}

.template-download-btn img {
    width: 40px !important; 
    height: 40px !important;
    object-fit: contain;
    margin-bottom: 8px !important; 
    flex-shrink: 0;
    transition: transform 0.2s ease-in-out;
}

.template-download-btn:hover {
    background-color: #f7faff !important;
    color: #1C468E !important;
}

.template-download-btn:hover img {
    transform: translateY(-3px); 
}

.grid-box {
    display: block;
    text-decoration: none;
    color: #333;
    background: #fafafa;
    border: 1px solid #e4e4e4;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.grid-box:last-child {
    margin-bottom: 0;
}

.grid-box:hover {
    border-color: #1C468E;
    color: #1C468E;
    background: #ffffff;
}

.custom-card-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1C468E;
    line-height: 1;
}

.stats-label {
    margin-top: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
}


/* ========================================
   5. KUSTOMISASI FOOTER JURNAL
======================================== */
.pkp_structure_footer_wrapper {
    background-color: #1C468E !important; 
    color: #ffffff !important; 
    border-top: 4px solid #df2029 !important; 
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.pkp_structure_footer_wrapper p,
.pkp_structure_footer_wrapper span {
    color: #ffffff !important;
}

.pkp_structure_footer_wrapper a {
    color: #ffffff !important;
    text-decoration: underline; 
    transition: all 0.3s ease;
}

.pkp_structure_footer_wrapper a:hover {
    color: #f2b83d !important; 
    text-decoration: none;
}

.pkp_brand_footer img {
    filter: brightness(0) invert(1) !important;
}

/* Menyembunyikan Logo dan Teks OJS/PKP di Footer */
.pkp_brand_footer {
    display: none !important;
}


/* ========================================
   6. MOBILE / RESPONSIVE (WAJIB DI PALING BAWAH)
======================================== */
@media (max-width: 768px) {
    .custom-card-header {
        font-size: 0.95rem;
        padding: 10px;
    }
    .custom-menu-list a {
        font-size: 0.95rem;
        padding: 10px 12px;
    }
    .grid-box {
        font-size: 0.92rem;
        padding: 9px;
    }
    .custom-card-body {
        font-size: 0.95rem;
    }
    .stats-number {
        font-size: 1.8rem;
    }
}