/* ============================================ */
/* TEMA: LIME ISLAMI - untuk OJS                */
/* Warna Utama: Lime (#9ACD32) & Hijau Tua (#2A5C2A) */
/* Aksen: Emas (#D4AF37) untuk nuansa Islami    */
/* Motif: Pattern geometris transparan           */
/* ============================================ */

/* Import Font Islami (Amiri untuk teks Arab jika ada, Poppins untuk modern) */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Poppins:wght@300;400;600;700&display=swap');

/* ===== GLOBAL ===== */
body {
    /* font-family: 'Poppins', sans-serif; */
    background-color: #F7FFF0; /* Hijau sangat muda */
    color: #1E3A1E; /* Hijau tua untuk teks */
}

/* ===== HEADER - DIPERBAIKI AGAR FULL WIDTH ===== */
.pkp_structure_head {
    background: linear-gradient(135deg, #2A5C2A 0%, #3F7840 100%); /* Gradasi hijau tua */
    border-bottom: 5px solid #9ACD32; /* Garis lime cerah */
    position: relative;
    width: 100%; /* Pastikan header penuh */
}

/* Menambahkan Pattern Islami (background subtle) pada header */
.pkp_head_wrapper {
    position: relative;
    max-width: 1200px; /* Atur sesuai lebar konten website Anda, atau hapus jika ingin full */
    margin: 0 auto; /* Ini yang membuat konten header berada di tengah */
    width: 100%;
}

/* Bagian untuk gambar header */
.pkp_site_name_wrapper {
    width: 100%; /* Pastikan wrapper gambar penuh */
    margin: 0;
    padding: 0;
}

.pkp_site_name {
    display: flex;
    justify-content: center; /* Gambar akan berada di tengah */
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
}

.pkp_site_name .is_img {
    display: block;
    width: 100%; /* Buat link pembungkus gambar menjadi full width */
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.pkp_site_name .is_img img {
    display: block;
    width: 100%; /* Gambar akan memenuhi lebar pembungkus */
    height: auto;
    max-width: 100%;
    object-fit: cover; /* Pastikan gambar menutupi area */
}

/* Pattern Islami (background subtle) pada header - dipindahkan ke wrapper */
.pkp_head_wrapper::before {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path d="M20 20 L30 10 L40 20 L30 30 Z" fill="%23D4AF37"/><path d="M60 60 L70 50 L80 60 L70 70 Z" fill="%239ACD32"/></svg>'); /* Motif bintang/geometris sederhana */
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1; /* Pastikan pattern di atas background tapi di bawah konten */
}

/* Pastikan konten header berada di atas pattern */
.pkp_site_name_wrapper,
.pkp_site_nav_menu {
    position: static;
    z-index: 2;
}

/* ===== NAVIGASI ===== */
.pkp_navigation_primary {
    background-color: #9ACD32;
    /* border-radius: 40px 40px 0 0; */
    padding: 0;
}

.pkp_navigation_primary li a {
    color: #1E3A1E !important; /* Hijau tua */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.pkp_navigation_primary li a:hover {
    background-color: #D4AF37; /* Emas */
    color: #0F2B0F !important;
    border-radius: 30px;
    transform: translateY(-2px);
}

/* Submenu */
.pkp_navigation_primary li ul {
    background-color: #F0FAD2; /* Lime sangat muda */
    border: 2px solid #9ACD32;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pkp_navigation_primary li ul li a {
    color: #2A5C2A !important;
}

/* ===== USER NAV (LOGIN) ===== */
.pkp_navigation_user {
    background-color: transparent;
}

.pkp_navigation_user li a {
    background-color: #D4AF37; /* Emas */
    color: #1E3A1E !important;
    border-radius: 30px;
    /* padding: 0 !important; */
    margin: 5px 0;
    font-weight: 600;
    border: 2px solid #9ACD32;
    transition: all 0.3s;
}

.pkp_navigation_user li a:hover {
    background-color: #9ACD32;
    border-color: #D4AF37;
    box-shadow: 0 3px 8px rgba(154, 205, 50, 0.4);
}

/* ===== MAIN CONTENT ===== */
.pkp_structure_main {
    background-color: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(42, 92, 42, 0.1);
    /* padding: 0; */
    /* margin: 20px 0; */
    /* border-left: 5px solid #9ACD32; */
}

/* Judul Halaman */
.page_index_journal h2,
.pkp_structure_main h1,
.pkp_structure_main h2 {
    color: #2A5C2A;
    font-family: 'Amiri', serif; /* Font bergaya arab/Islami untuk judul */
    font-weight: 700;
    border-bottom: 3px solid #D4AF37;
    padding-bottom: 10px;
    display: inline-block;
}

/* ===== SIDEBAR ===== */
.pkp_structure_sidebar {
    background-color: transparent;
}

.pkp_block {
    background-color: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    /* border: 1px solid #E0F0C0; */
    /* overflow: hidden; */
}

.pkp_block .title {
    background: linear-gradient(135deg, #2A5C2A, #4F8A4F);
    color: #FFFFFF;
    padding: 0;
    margin: 0;
    font-family: 'Amiri', serif;
    font-size: 1.3rem;
    border-bottom: 3px solid #D4AF37;
    text-align: center;
    letter-spacing: 1px;
}

.pkp_block .content {
    padding: 0;
}

/* Custom Block Side Menu (Tabel di sidebar) */
.pkp_block table {
    width: 100%;
    background: transparent;
}

.pkp_block table td {
    background-color: #F9FFF0;
    border-bottom: 1px solid #D4E6B5;
    padding: 0 !important;
}

.pkp_block table td a {
    color: #1E5A1E;
    font-weight: 500;
    transition: all 0.2s;
    display: block;
}

.pkp_block table td a:hover {
    color: #D4AF37;
    transform: translateX(5px);
}

/* Header tabel dengan background lime/emas */
.pkp_block table td[style*="background-color: #4ea5ff;"] {
    background-color: #9ACD32 !important; /* Override biru jadi lime */
}

.pkp_block table td[style*="background-color: #4ea5ff;"] a {
    color: #1E3A1E !important;
    font-weight: bold;
}

/* ===== FORM LOGIN (SIDEBAR) ===== */
#sidebarUser form {
    background: #F5FFE5;
    padding: 0;
    border-radius: 15px;
    border: 2px dashed #9ACD32;
}

#sidebarUser input[type="text"],
#sidebarUser input[type="password"] {
    border: 2px solid #CCE6A4;
    border-radius: 30px;
    padding: 8px 15px;
    width: 100%;
    transition: all 0.3s;
}

#sidebarUser input[type="text"]:focus,
#sidebarUser input[type="password"]:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    outline: none;
}

#sidebarUser input[type="submit"] {
    background: linear-gradient(135deg, #9ACD32, #6B8E23);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #D4AF37;
}

#sidebarUser input[type="submit"]:hover {
    background: #D4AF37;
    border-color: #9ACD32;
    color: #1E3A1E;
}

/* ===== FOOTER ===== */
.pkp_structure_footer_wrapper {
    background: linear-gradient(135deg, #1E3A1E, #2A5C2A);
    border-top: 8px solid #9ACD32;
    position: relative;
}

/* Pattern Islami di footer */
.pkp_structure_footer_wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 30%, rgba(212, 175, 55, 0.05) 2px, transparent 2px), 
                      radial-gradient(circle at 90% 70%, rgba(154, 205, 50, 0.05) 3px, transparent 3px);
    background-size: 50px 50px;
    pointer-events: none;
}

.pkp_structure_footer {
    background: transparent;
    color: #F0F7E7;
}

.pkp_footer_content {
    color: #E0F0C0;
}

.pkp_footer_content a {
    color: #D4AF37 !important;
    border-bottom: 1px dotted #9ACD32;
}

.pkp_footer_content a:hover {
    color: #9ACD32 !important;
}

/* ===== TOMBOL UMUM ===== */
.button,
input[type="submit"],
a.cmp_manuscript_button {
    background: linear-gradient(135deg, #9ACD32, #6B8E23) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 40px !important;
    padding: 10px 25px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s !important;
    border: 2px solid #D4AF37 !important;
}

.button:hover,
input[type="submit"]:hover,
a.cmp_manuscript_button:hover {
    background: #D4AF37 !important;
    color: #1E3A1E !important;
    border-color: #9ACD32 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* ===== BORDER & ELEMEN DEKORATIF ===== */
/* Menambahkan elemen bulan sabit di pojok (sangat subtle) */
.pkp_structure_page::before {
    content: "☪";
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 50px;
    color: rgba(212, 175, 55, 0.1);
    font-family: 'Amiri', serif;
    z-index: 999;
    pointer-events: none;
    transform: rotate(15deg);
}

/* Garis dekoratif di atas konten utama */
.pkp_structure_main::before {
    content: "";
    display: block;
    height: 4px;
    width: 100px;
    background: repeating-linear-gradient(45deg, #9ACD32, #9ACD32 10px, #D4AF37 10px, #D4AF37 20px);
    border-radius: 4px;
    margin-bottom: 20px;
}

.pkp_site_nav_menu {
    background-color: #9ACD32;
}

@media (min-width: 992px) {
    .pkp_site_name .is_img img {
        max-height: 180px;
    }
}