/* ==========================================================================
   1. RESPONSIVE BACKGROUND (GEOMETRIC KUFI MURABBA' TILE PATTERN) & TYPOGRAPHY
   ========================================================================== */
body {
    background-color: #fcfbfa;
    
    /* Pola Mozaik Geometris Kufi Murabba' (Anyaman Belah Ketupat Siku) */
    background-image: 
        linear-gradient(45deg, rgba(128, 0, 32, 0.03) 25%, transparent 25%), 
        linear-gradient(-45deg, rgba(128, 0, 32, 0.03) 25%, transparent 25%),
        linear-gradient(135deg, rgba(128, 0, 32, 0.03) 25%, transparent 25%),
        linear-gradient(-135deg, rgba(128, 0, 32, 0.03) 25%, #fcfbfa 25%),
        radial-gradient(at 50% 50%, rgba(128, 0, 32, 0.02) 0px, transparent 60%);
        
    /* Modul Ukuran Geometris Kufi */
    background-size: 40px 40px, 40px 40px, 40px 40px, 40px 40px, 100vw 100vh;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px, 0 0;
    background-attachment: fixed;
    
    /* Font Serif Akademis Klasik & Elegan */
    font-family: Georgia, 'Times New Roman', serif !important;
    color: #2d3748;
    overflow-x: hidden !important; /* Mencegah geser horizontal di mobile */
}

/* ==========================================================================
   2. FLUID GLASSMORPHISM CONTAINER (Adaptif & Melengkung Halus)
   ========================================================================== */
#pkp_content_container, .page_index_journal, .page_issue, .obj_article_details {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(128, 0, 32, 0.15) !important;
    box-shadow: 0 12px 35px -5px rgba(128, 0, 32, 0.06) !important;
    transition: all 0.4s ease;
    
    /* Ukuran dinamis menyesuaikan layar */
    padding: clamp(16px, 3vw, 35px) !important;
    border-radius: clamp(12px, 2vw, 22px) !important;
    margin-bottom: 25px;
    font-family: Georgia, 'Times New Roman', serif !important;
}

/* ==========================================================================
   3. RESPONSIVE ARTICLE BLOCKS & TITLE TYPOGRAPHY (#800020 & #ffff00)
   ========================================================================== */
.obj_article_summary {
    background: #ffffff !important;
    border-left: 4px solid #800020 !important; /* Batas Aksen Burgundy */
    border-radius: 12px !important;
    padding: clamp(15px, 2vw, 25px) !important;
    margin-bottom: clamp(15px, 2vw, 25px) !important;
    box-shadow: 0 4px 12px rgba(128, 0, 32, 0.03) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.obj_article_summary:hover {
    transform: translateY(-4px);
    border-left-color: #800020 !important;
    box-shadow: 0 12px 25px rgba(128, 0, 32, 0.12) !important;
}

/* Judul Artikel: Warna Utama #800020, Font Georgia/Times New Roman */
.obj_article_summary .title a, 
.obj_article_details .main_entry .title,
.page_title, 
h1, h2, h3, h4, h5, h6 {
    color: #800020 !important; /* Burgundy */
    font-family: Georgia, 'Times New Roman', serif !important;
    font-weight: 700 !important;
    font-size: clamp(15px, 2.3vw, 21px) !important;
    line-height: 1.4 !important;
    transition: all 0.2s ease !important;
}

/* Efek Hover Judul: Kuning (#ffff00) dengan Latar Burgundy agar Kontras */
.obj_article_summary .title a:hover {
    color: #ffff00 !important; /* Yellow */
    background-color: #800020 !important; /* Latar Burgundy saat hover */
    padding: 2px 8px !important;
    border-radius: 4px !important;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* ==========================================================================
   4. PREMIUM ACTION BUTTONS (PDF Link - Tulisan Putih Netral & Presisi)
   ========================================================================== */
.obj_galley_link,
.entry_details .item.galleys .obj_galley_link {
    background: linear-gradient(135deg, #800020 0%, #580016 100%) !important;
    color: #ffffff !important; /* Teks Putih */
    border: 1px solid #800020 !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    box-shadow: 0 4px 10px rgba(128, 0, 32, 0.25) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Memaksa elemen anak dalam tombol PDF (seperti ikon SVG/span) menjadi warna putih */
.obj_galley_link *,
.entry_details .item.galleys .obj_galley_link * {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* Efek Hover Tombol PDF */
.obj_galley_link:hover,
.entry_details .item.galleys .obj_galley_link:hover {
    background: #ffff00 !important; /* Kuning Cerah */
    color: #800020 !important; /* Teks Burgundy saat di-hover */
    border-color: #800020 !important;
    font-weight: 700 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(255, 255, 0, 0.4) !important;
}

.obj_galley_link:hover *,
.entry_details .item.galleys .obj_galley_link:hover * {
    color: #800020 !important;
    fill: #800020 !important;
}

/* ==========================================================================
   5. FIX PRESISI TATA LETAK 2 KOLOM & GESER KANAN (DETAIL ARTIKEL OJS 3)
   ========================================================================= */

/* Kontainer utama flexbox */
.obj_article_details,
.page_article_details .row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Judul Artikel Membentang Penuh di Atas */
.obj_article_details .main_entry .title,
.obj_article_details .page_title {
    width: 100% !important;
    margin-bottom: 20px !important;
}

/* KOLOM KIRI (Penulis, Abstrak, Downloads, References) */
.obj_article_details .main_entry {
    float: left !important;
    width: 64% !important;
    max-width: 64% !important;
    box-sizing: border-box !important;
}

/* KOLOM KANAN (PDF, Published, Issue, Section, How to cite) - Digeser Mepet Kanan */
.obj_article_details .entry_details {
    float: right !important;
    width: 32% !important;
    max-width: 32% !important;
    margin-left: auto !important; /* Memaksa rata kanan */
    margin-right: 0 !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

/* Pembatas Seksi di Kolom Kanan */
.obj_article_details .entry_details > div,
.obj_article_details .entry_details .item {
    border-bottom: 1px solid #edf2f7 !important;
    padding-bottom: 15px !important;
    margin-bottom: 15px !important;
}

.obj_article_details .entry_details > div:last-child,
.obj_article_details .entry_details .item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Label & Nilai Metadata Kolom Kanan */
.entry_details .label {
    font-family: Georgia, 'Times New Roman', serif !important;
    color: #718096 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 5px !important;
    display: block !important;
}

.entry_details .value, 
.entry_details .value a {
    font-family: Georgia, 'Times New Roman', serif !important;
    color: #800020 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.entry_details .value a:hover {
    color: #000000 !important;
    text-decoration: underline !important;
}

/* Tombol PDF Pas di Dalam Card Kanan */
.entry_details .item.galleys .obj_galley_link {
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

/* Clearfix */
.obj_article_details::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* ==========================================================================
   6. RESPONSIVE MOBILE (SMARTPHONE Breakpoint < 992px)
   ========================================================================== */
@media screen and (max-width: 992px) {
    .obj_article_details .main_entry,
    .obj_article_details .entry_details {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 20px !important;
    }
    
    .pkp_structure_sidebar {
        width: 100% !important;
        margin-top: 25px !important;
    }

    .pkp_block {
        padding: 16px !important;
        border-radius: 12px !important;
        border: 1px solid rgba(128, 0, 32, 0.1) !important;
    }
}