/* ============================================================
   FINAL FIX: MENGHILANGKAN MARGIN ATAS & BAWAH LOGO
   ============================================================ */

/* 1. Menghilangkan padding pada semua kontainer pembungkus */
.pkp_structure_head,
.pkp_site_name_wrapper,
.pkp_site_name {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important; /* Menghapus batas tinggi minimal */
    line-height: 0 !important; /* Menghilangkan celah whitespace teks */
}

/* 2. Memastikan Link tidak memiliki spasi */
.pkp_site_name > a {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

/* 3. Modifikasi Gambar Anda (Update margin ke 0) */
.pkp_site_name .is_img img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 2414px !important;
    
    /* Ganti margin: 0 auto menjadi margin: 0 saja agar tidak ada celah */
    margin: 0 !important; 
    padding: 0 !important;
    
    max-height: none !important;
    border: none !important;
}

/* 4. Merapatkan Navigasi agar menempel ke bawah Logo */
.pkp_navigation_primary_wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 5. Menghilangkan garis halus yang sering muncul di header */
.pkp_structure_head {
    border-bottom: none !important;
    box-shadow: none !important;
}

/* 6. Memastikan elemen user (Login/Logout) tidak tertimpa */
.pkp_navigation_user_wrapper {
    position: absolute;
    top: 35px;
    right: -20px;
    z-index: 30;
}

/* TAMBAHKAN KODE INI DI SINI */
.pkp_navigation_user_wrapper a {
    color: #444444 !important; /* Warna abu-abu gelap */
    font-weight: 500; /* Opsional: sedikit menebalkan teks */
    transition: color 0.3s ease;
}

/* Efek saat kursor diarahkan (Hover) */
.pkp_navigation_user_wrapper a:hover {
    color: #e67e22 !important; /* Berubah menjadi oranye saat hover agar interaktif */
}

/* ============================================================
   1. GLOBAL & RESET (Mencegah Tabrakan Kode)
   ============================================================ */
.genrich-hero-container *, 
.genrich-sidebar-block * {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif !important;
}

/* Pengatur Urutan Halaman Depan OJS */
.page_index_journal {
    display: flex;
    flex-direction: column;
}
.obj_journal_details { order: 1; }
.page_index_journal > div:has(.genrich-hero-container), 
.additional_content { order: 2 !important; }
.cmp_announcements { order: 3; }
.obj_issue_toc { order: 4; }

/* ============================================================
   2. HALAMAN DEPAN (GENRICH HERO - PREMIUM INTERACTIVE)
   ============================================================ */
.genrich-hero-container {
    display: block !important;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
    margin: 20px 0 !important;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    clear: both;
}

/* Efek Angkat saat Hover */
.genrich-hero-container:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: #d1d8dd;
}

/* Layout Atas (Sampul & Meta) */
.genrich-hero-top-section {
    display: flex;
    padding: 25px;
    gap: 35px;
    border-bottom: 1px solid #f0f0f0;
}

.genrich-hero-cover {
    flex: 0 0 288px;
    perspective: 1000px;
}

.genrich-hero-cover img {
    width: 100%;
    height: auto;
    border: none !important; /* Menghapus border putih */
    box-shadow: none !important; /* Menghapus bayangan */
    border-radius: 0; /* Opsional: Menghapus sudut melengkung jika ingin benar-benar kotak */
    /* ------------------------ */
    transition: all 0.5s ease;
}

/* Efek Interaktif Gambar */
.genrich-hero-cover img:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: none !important;
}

.genrich-hero-info {
    flex: 1;
    min-width: 0;
}

.title-jurnal {
    font-size: 24px !important;
    color: #2c3e50;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.genrich-hero-container:hover .title-jurnal {
    color: #4682B4;
}

/* Grid Meta Data */
.genrich-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.genrich-meta-item {
    flex: 1 1 calc(50% - 10px);
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.genrich-meta-item:hover {
    background: #ffffff;
    border-color: #4682B4;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.genrich-meta-item b {
    display: block;
    color: #4682B4;
    font-size: 10px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

/* Deskripsi Jurnal */
.genrich-hero-description {
    padding: 25px;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

/* Footer & Panduan Submission */
.genrich-hero-footer {
    background: #f8fbfc;
    padding: 20px 25px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #666;
    transition: background 0.3s ease;
}

.genrich-hero-container:hover .genrich-hero-footer {
    background: #f2f7fb;
}

/* ============================================================
   3. CUSTOM BLOCK SIDEBAR (GENRICH NAVIGATION)
   ============================================================ */
.genrich-sidebar-block {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.genrich-sidebar-header {
    background: linear-gradient(135deg, #4682B4 0%, #2c3e50 100%);
    color: #ffffff !important;
    padding: 15px;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    text-transform: Proper;
    letter-spacing: 1px;
    border-bottom: 3px solid #e67e22;
}

.genrich-sidebar-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.genrich-sidebar-menu li {
    border-bottom: 1px solid #f1f4f6;
    transition: all 0.3s ease;
}

.genrich-sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: #444 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.genrich-sidebar-menu li a:hover {
    background: #f8fbfc;
    color: #e67e22 !important;
    padding-left: 25px;
}

/* Indikator Titik Oranye saat Hover */
.genrich-sidebar-menu li a::before {
    content: "•";
    color: #e1e8ed;
    margin-right: 10px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.genrich-sidebar-menu li a:hover::before {
    color: #e67e22;
    transform: scale(1.5);
}

/* Penonjolan Tombol Khusus */
.sidebar-btn-highlight {
    background: #fff5ed !important;
}

.sidebar-btn-highlight a {
    color: #d35400 !important;
}


/* ============================================================
   4. FOOTER ALIGNMENT (SINKRON DENGAN PKP BRAND)
   ============================================================ */

/* Menyejajarkan Container Anda dengan Brand OJS */
.pkp_structure_footer .pkp_footer_content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: bween;
    gap: 20px;
    padding: 20px 0;
}

.genrich-footer-container {
    flex: 1; /* Mengambil ruang sisa di kiri */
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-top: 0 !important; /* Menghapus margin atas agar tidak ada gap */
}

/* Mengatur ukuran Brand Footer OJS agar tidak terlalu besar */
.pkp_brand_footer {
    flex: 0 0 150px; /* Lebar tetap untuk logo OJS */
    text-align: right;
    align-self: center;
}

.pkp_brand_footer img {
    max-width: 130px !important;
    height: auto;
}

/* Penyesuaian konten footer agar tetap rapi */
.genrich-footer-content p {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.genrich-footer-logo {
    flex: 0 0 100px; /* Mengecilkan sedikit logo di footer */
}

/* Responsive: Jika layar sempit, kembali menumpuk */
@media (max-width: 992px) {
    .pkp_structure_footer .pkp_footer_content {
        flex-direction: column;
    }
    .pkp_brand_footer {
        text-align: center;
        order: 2;
    }
    .genrich-footer-container {
        order: 1;
        width: 100%;
    }
}

/* ============================================================
   5. RESPONSIVE (OPTIMASI MOBILE)
   ============================================================ */
@media (max-width: 768px) {
    .genrich-hero-top-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .genrich-hero-cover {
        flex: 0 0 auto;
        width: 200px;
        margin-bottom: 15px;
    }

    .genrich-meta-item {
        flex: 1 1 100%;
    }

    /* Membatasi rotasi berlebih di layar sentuh */
    .genrich-hero-cover img:hover {
        transform: scale(1.03);
    }

    .title-jurnal {
        font-size: 20px !important;
    }
}




