/* ==================================================
   CSS KHUSUS UNTUK HEADER JURNAL SIPIL SAINS
   Menggunakan gambar dari lampiran sebagai latar belakang
   ================================================== */

/* --- 1. HEADER DENGAN GAMBAR LATAR BELAKANG --- */
.pkp_structure_head {
    /* Ganti 'URL_GAMBAR_ANDA' dengan link gambar yang benar */
    background: #1a3a5c url('URL_GAMBAR_ANDA') no-repeat center center / cover !important;
    background-color: #1a3a5c !important; /* Warna cadangan */
    background-size: cover !important;
    background-position: center center !important;
    
    /* Tinggi header agar gambar terlihat penuh */
    min-height: 220px;
    padding: 0;
    position: relative;
    
    /* Efek transisi halus */
    transition: all 0.3s ease;
}

/* --- 2. LAPISAN GELAP UNTUK KETERBACAAN TEKS --- */
.pkp_structure_head::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35); /* Lapisan gelap transparan */
    z-index: 0;
}

/* Konten di atas lapisan gelap */
.pkp_head_wrapper {
    position: relative;
    z-index: 1;
}

/* --- 3. MENYEMBUNYIKAN TEKS JUDUL DEFAULT --- */
.pkp_site_name {
    display: none !important; /* Sembunyikan agar tidak tumpang tindih */
}

/* --- 4. MENU NAVIGASI TETAP TERLIHAT --- */
.pkp_navigation_primary_row {
    background-color: rgba(26, 58, 92, 0.92);
    border-bottom: 3px solid #ffd700; /* Garis bawah kuning */
    position: relative;
    z-index: 2;
}

.pkp_navigation_primary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pkp_navigation_primary li {
    margin: 0;
    padding: 0;
}

.pkp_navigation_primary li a {
    display: block;
    color: #ffffff !important; /* Teks putih */
    font-weight: 600 !important;
    padding: 12px 22px;
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Bayangan teks untuk keterbacaan */
}

.pkp_navigation_primary li a:hover,
.pkp_navigation_primary li a:focus {
    background-color: #ffd700; /* Latar kuning saat hover */
    color: #1a3a5c !important; /* Teks biru tua */
    border-radius: 4px;
    text-shadow: none;
}

/* --- 5. MENU USER (Login/Profile) --- */
#navigationUser {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    list-style: none;
    padding: 0;
    margin: 0;
}

#navigationUser li a {
    color: #ffffff !important;
    font-weight: 500 !important;
    padding: 8px 15px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#navigationUser li a:hover {
    background-color: #ffd700;
    color: #1a3a5c !important;
    border-radius: 4px;
    text-shadow: none;
}

/* --- 6. RESPONSIF UNTUK PERANGKAT BERBEDA --- */
/* Tablet */
@media (max-width: 768px) {
    .pkp_structure_head {
        min-height: 160px;
    }
    
    .pkp_navigation_primary {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pkp_navigation_primary li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .pkp_navigation_primary li a {
        padding: 10px 15px;
        font-size: 0.9rem;
        text-align: center;
    }
    
    #navigationUser {
        justify-content: center;
    }
}

/* Ponsel */
@media (max-width: 480px) {
    .pkp_structure_head {
        min-height: 120px;
    }
    
    .pkp_navigation_primary li a {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}