/* =======================================================
   EXCELLENT: International Journal of Computational Intelligence 
   and Sustainable Innovation - Official OJS 3 Custom CSS
   ======================================================= */

/* =======================================================
   1. PENGATURAN HEADER & LOGO BANNER
   ======================================================= */
.pkp_head_wrapper, 
.has_site_logo .pkp_head_wrapper { 
    position: relative; 
    padding-top: 0 !important; 
    background: transparent; 
}

.pkp_site_name_wrapper { 
    width: 100%; 
    padding-left: 0 !important; 
    padding-right: 0 !important; 
}

.pkp_site_name { 
    padding-top: 0 !important; 
    padding-bottom: 0 !important; 
    width: 100%;
}

.pkp_site_name > a { 
    display: block;
    width: 100%;
    padding-top: 0; 
    padding-bottom: 0; 
}

.pkp_site_name .is_img { 
    display: block; 
    margin: 0; 
    padding: 0; 
    width: 100%;
}

.pkp_site_name .is_img img { 
    max-height: none !important; 
    width: 100% !important;      
    height: auto !important;     
    display: block;
    margin: 0; 
}

/* Sembunyikan teks judul duplikat bawaan OJS */
.pkp_site_name .is_text {
    display: none !important;
}

/* =======================================================
   2. PEWARNAAN BAR NAVIGASI (#5C84F2 & #ABEAF7)
   ======================================================= */
.pkp_navigation_primary_wrapper,
.pkp_navigation_user_wrapper {
    background-color: #5C84F2 !important;
    border-bottom: 3px solid #ABEAF7 !important;
}

.pkp_navigation_primary a,
.pkp_navigation_user a {
    color: #ffffff !important;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pkp_navigation_primary a:hover,
.pkp_navigation_primary a:focus,
.pkp_navigation_user a:hover,
.pkp_navigation_user a:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ABEAF7 !important;
}

/* Dropdown Sub-Menu */
.pkp_navigation_primary ul,
.pkp_navigation_user ul {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    border-top: 3px solid #ABEAF7 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

.pkp_navigation_primary ul a,
.pkp_navigation_user ul a {
    color: #f1f5f9 !important;
    font-weight: 500;
}

.pkp_navigation_primary ul a:hover,
.pkp_navigation_primary ul a:focus {
    background-color: #5C84F2 !important;
    color: #ffffff !important;
}

/* =======================================================
   3. HAPUS GARIS PEMISAH VERTIKAL & HORIZONTAL (NO BORDER)
   ======================================================= */
body {
    background-color: #f8fafc !important;
    color: #334155;
    overflow-x: hidden !important;
}

.pkp_structure_content {
    position: relative !important;
}

/* Mematikan Seluruh Garis Border pada Elemen Body dan Sidebar */
.pkp_structure_content,
.pkp_structure_body,
.pkp_content_main,
.has_sidebar .pkp_content_main,
.pkp_structure_sidebar,
.pkp_structure_main,
.page_index_journal,
.current_issue {
    border: none !important;
    border-right: none !important;
    border-left: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Mematikan Pseudo-Elements (::before & ::after) Pembuat Garis OJS */
.pkp_structure_content::before,
.pkp_structure_content::after,
.pkp_structure_body::before,
.pkp_structure_body::after,
.pkp_content_main::before,
.pkp_content_main::after,
.has_sidebar .pkp_content_main::before,
.has_sidebar .pkp_content_main::after,
.pkp_structure_sidebar::before,
.pkp_structure_sidebar::after {
    display: none !important;
    content: none !important;
    border: none !important;
    background: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* =======================================================
   4. PERBAIKAN KARTU ARTIKEL & TAUTAN JUDUL (HOVER FIX)
   ======================================================= */
/* Judul Seksi (Current Issue, Announcements, About) */
.pkp_content_main h2, 
.page_index_journal h2,
.current_issue h2 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 700;
    padding-left: 10px;
    border-left: 4px solid #5C84F2 !important;
    margin-top: 25px;
    margin-bottom: 18px;
    background: linear-gradient(90deg, rgba(171, 234, 247, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Kontainer Kartu Artikel */
.obj_article_summary {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 5px solid #5C84F2 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Efek Hover pada Kotak Kartu Artikel */
.obj_article_summary:hover {
    background-color: #ffffff !important;
    border-color: #5C84F2 !important;
    border-left-color: #5C84F2 !important;
    box-shadow: 0 8px 24px rgba(92, 132, 242, 0.18) !important;
    transform: translateY(-3px) !important; /* Efek terangkat halus */
}

/* Penegasan Tautan Judul Artikel */
.obj_article_summary .title,
.obj_article_summary h3.title,
.obj_article_summary .title a,
.obj_article_summary h3 a {
    color: #1e293b !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    display: inline-block !important;
    position: relative !important;
    z-index: 2 !important;
}

.obj_article_summary .title a:hover,
.obj_article_summary h3 a:hover,
.obj_article_summary:hover .title a {
    color: #5C84F2 !important;
    text-decoration: underline !important;
}

/* Penulis & Metadata Artikel */
.obj_article_summary .authors {
    color: #64748b !important;
    font-size: 0.9rem !important;
    margin-top: 6px !important;
    margin-bottom: 12px !important;
}

/* Tombol PDF Galley */
.obj_article_summary .galley_link,
.obj_article_summary .obj_galley_link {
    background-color: #5C84F2 !important;
    color: #ffffff !important;
    border: 1px solid #5C84F2 !important;
    border-radius: 20px !important;
    padding: 6px 18px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    display: inline-block;
    transition: all 0.2s ease !important;
    position: relative !important;
    z-index: 2 !important;
}

.obj_article_summary .galley_link:hover,
.obj_article_summary .obj_galley_link:hover {
    background-color: #ABEAF7 !important;
    color: #0f172a !important;
    border-color: #ABEAF7 !important;
}

/* =======================================================
   5. STYLING SIDEBAR
   ======================================================= */
.pkp_structure_sidebar .block {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03) !important;
}

.pkp_structure_sidebar .block .title,
.pkp_structure_sidebar h2 {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
    padding-bottom: 6px !important;
    margin-bottom: 12px !important;
    border-bottom: 2px solid #ABEAF7 !important;
    border-left: none !important;
    background: none !important;
}

.pkp_structure_sidebar .block a {
    color: #475569 !important;
    text-decoration: none !important;
}

.pkp_structure_sidebar .block a:hover {
    color: #5C84F2 !important;
}

/* Sembunyikan Logo Bawaan OJS/PKP */
.pkp_brand_footer, 
a.pkp_brand_footer,
.pkp_footer_content .pkp_brand_footer {
    display: none !important;
}

/* =======================================================
   6. PEMEKARAN FOOTER & PENSERAGAMAN LOGO INDEXED BY
   ======================================================= */
.pkp_block_excellent_footer {
    clear: both !important;
    width: 138.8% !important; /* Melebarkan footer menembus kolom kiri agar 100% sejajar header & sidebar */
    max-width: 1200px !important;
    margin-top: 45px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 10 !important;
    float: left !important;
}

/* Section 1: Kotak Logo Indexed By */
.excellent-footer-top {
    background-color: #ffffff !important;
    padding: 25px 30px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    text-align: center !important;
    margin-bottom: 25px !important;
    border: 1px solid #e2e8f0 !important;
}

.excellent-footer-top h3 {
    margin: 0 0 20px 0 !important;
    font-size: 1.05rem !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
}

.excellent-indexed-logos {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Penseragaman Ukuran Logo Pengindeks */
.excellent-indexed-logos a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 50px !important;
    padding: 0 5px !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.excellent-indexed-logos img {
    height: 34px !important;
    max-height: 34px !important;
    width: auto !important;
    max-width: 160px !important;
    object-fit: contain !important;
    transition: all 0.3s ease !important;
}

/* Penyesuaian Logo Google Scholar */
.excellent-indexed-logos img[alt*="Google Scholar"],
.excellent-indexed-logos img[src*="google-scholar"] {
    height: 48px !important;
    max-height: 48px !important;
}

/* Penyesuaian Logo DOAJ */
.excellent-indexed-logos img[alt*="DOAJ"],
.excellent-indexed-logos img[src*="DOAJ"] {
    height: 30px !important;
    max-height: 30px !important;
}

.excellent-indexed-logos a:hover {
    transform: translateY(-4px) scale(1.08) !important;
}

.excellent-indexed-logos a:hover img {
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.16)) !important;
}

/* Section 2: Main Footer (4 Kolom Horizontal Presisi) */
.excellent-footer-bottom {
    background-color: #5C84F2 !important;
    color: #ffffff !important;
    padding: 40px 35px !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 25px rgba(92, 132, 242, 0.2) !important;
    box-sizing: border-box !important;
}

.excellent-footer-grid {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr !important;
    gap: 25px !important;
    align-items: start !important;
}

.excellent-footer-col {
    display: flex !important;
    flex-direction: column !important;
}

.excellent-footer-col h4 {
    margin: 0 0 6px 0 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
}

.excellent-divider {
    height: 3px !important;
    background-color: #ABEAF7 !important;
    width: 35px !important;
    margin-bottom: 18px !important;
    border-radius: 2px !important;
}

/* Hover Effects untuk Link Navigasi, Email & Badge */
.excellent-footer-col ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.excellent-footer-col ul li {
    margin-bottom: 8px !important;
}

.excellent-footer-col ul li a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.excellent-footer-col ul li a::before {
    content: "›" !important;
    color: #ABEAF7 !important;
    margin-right: 8px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    transition: transform 0.25s ease !important;
}

.excellent-footer-col ul li a:hover {
    background-color: rgba(255, 255, 255, 0.18) !important;
    color: #ABEAF7 !important;
    transform: translateX(6px) !important;
}

.excellent-footer-col ul li a:hover::before {
    transform: translateX(3px) !important;
    color: #ffffff !important;
}

/* Hover Email Link */
.excellent-footer-col a[href^="mailto"] {
    display: inline-block !important;
    padding: 8px 14px !important;
    border-radius: 6px !important;
    color: #ABEAF7 !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
    transition: all 0.25s ease !important;
}

.excellent-footer-col a[href^="mailto"]:hover {
    background-color: #ffffff !important;
    color: #5C84F2 !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Hover Badges */
.excellent-badge {
    display: inline-block !important;
    background-color: #ABEAF7 !important;
    color: #0f172a !important;
    padding: 5px 14px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    transition: all 0.25s ease !important;
}

.excellent-badge:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

/* Section 3: Copyright Bar */
.excellent-copyright {
    text-align: center !important;
    color: #cbd5e1 !important;
    font-size: 0.85rem !important;
    padding: 18px 20px !important;
    margin-top: 25px !important;
    background-color: #0f172a !important;
    border-radius: 8px !important;
    letter-spacing: 0.3px !important;
}

/* Responsif Mobile Screen */
@media screen and (max-width: 992px) {
    .pkp_block_excellent_footer {
        width: 100% !important;
        float: none !important;
    }

    .excellent-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
}

/*------------------------------ perbaikan link mati-----------------------------------------------------------------------------*/
/* =======================================================
   PERBAIKAN TAUTAN & TOMBOL DI HALAMAN ARTIKEL (ARTICLE VIEW)
   ======================================================= */

/* 1. Angkat Lapisan Konten Detail Artikel di Atas Footer */
.page_article,
.obj_article_details,
.obj_article_details * {
    position: relative !important;
    z-index: 20 !important;
    pointer-events: auto !important;
}

/* 2. Pastikan Seluruh Tautan & Tombol PDF Bisa Diklik */
.obj_article_details a,
.obj_article_details .galley_link,
.obj_article_details .obj_galley_link,
.obj_article_details .download,
.obj_article_details .doi a {
    position: relative !important;
    z-index: 25 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* 3. Turunkan Prioritas Lapisan Footer Agar Tidak Menutupi Artikel */
.pkp_block_excellent_footer {
    z-index: 1 !important;
}

/*-------------------------------------------------------------------------------perbaikan footer di halaman artikel-------------------------------------------*/

/* =======================================================
   PERBAIKAN FOOTER DI HALAMAN DETAIL ARTIKEL (PAGE ARTICLE)
   ======================================================= */

/* 1. Paksa Elemen Sidebar & Kontainer Footer Tetap Muncul */
.page_article .pkp_structure_sidebar,
.page_article_view .pkp_structure_sidebar,
.page_article .pkp_block_excellent_footer,
.page_article_view .pkp_block_excellent_footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 2. Reset Ukuran Footer di Halaman Artikel Agar Kembali Pas 100% */
.page_article .pkp_block_excellent_footer,
.page_article_view .pkp_block_excellent_footer {
    width: 100% !important;
    max-width: 1200px !important;
    float: none !important;
    clear: both !important;
    margin: 45px auto 0 auto !important;
    position: relative !important;
    z-index: 5 !important;
}

/* 3. Menjaga Agar Layout Konten Artikel Tetap Rapi */
.page_article .pkp_content_main,
.page_article_view .pkp_content_main {
    width: 100% !important;
    float: none !important;
}