/* =========================================================
   CSS TEMA CACHE BERDASARKAN DESAIN MOCKUP (image_838855.jpg)
   Platform: OJS 3 (Update: Full Width Navigation & Clean Grid)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

:root {
    --warna-biru-tua: #0F2D53;   /* Warna biru gelap untuk Navigasi & Judul */
    --warna-teal: #42B9B9;       /* Warna tosca/teal untuk tombol dan menu aktif */
    --warna-latar-abu: #F3F3F3;  /* Warna abu-abu terang untuk sidebar */
    --warna-teks: #333333;       /* Warna teks umum */
    --warna-teks-muted: #666666; /* Warna teks sekunder (penulis) */
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--warna-teks);
    background-color: #ffffff;
}

/* --- KUSTOMISASI HEADER & LOGO FULL WIDTH --- */
.pkp_structure_header {
    background-color: #ffffff;
    border-bottom: none;
    padding: 0 !important; /* Menghapus jarak atas-bawah agar logo menempel */
}

/* Memaksa pembungkus (wrapper) bawaan OJS agar tidak dibatasi lebarnya */
.pkp_structure_header .pkp_head_wrapper {
    max-width: 100% !important; 
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}

.pkp_site_name_wrapper {
    width: 100%;
}

.pkp_site_name {
    width: 100%;
    margin: 0;
}

/* Mengatur gambar logo agar membentang 100% dan proporsional (tidak gepeng) */
.pkp_site_name .is_img img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important; 
    max-height: none !important; /* Menimpa aturan tinggi maksimal OJS (biasanya 75px) */
    display: block;
}

/* Memastikan tombol hamburger menu di HP tetap bisa diklik dan tampil di atas logo */
.pkp_site_nav_toggle {
    z-index: 999;
}

/* --- NAVIGASI UTAMA (Biru Tua - FULL WIDTH) --- */
.pkp_navigation_primary_wrapper {
    background-color: var(--warna-biru-tua);
    
    /* Trik agar background menembus batas container dan membentang penuh (Edge-to-Edge) */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    
    /* Memastikan isi menu tetap terpusat dan rapi */
    display: flex;
    justify-content: center;
}

.pkp_navigation_primary {
    max-width: 1100px; /* Lebar maksimal agar tidak terlalu memanjang di monitor besar */
    width: 100%;
    margin: 0;
    padding: 0;
    /* Ubah ke 'center' jika ingin menu di tengah, atau 'flex-start' jika ingin rata kiri */
    justify-content: flex-start; 
}

.pkp_navigation_primary > li > a {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 20px;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
}

/* Menu Aktif & Hover (Warna Teal) */
.pkp_navigation_primary > li.pkp_current > a,
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    background-color: var(--warna-teal);
    color: #ffffff !important;
    text-decoration: none;
}

/* Dropdown Navigasi */
.pkp_navigation_primary ul {
    background-color: var(--warna-biru-tua);
    border-top: 3px solid var(--warna-teal);
}
.pkp_navigation_primary ul li a {
    color: #ffffff;
}
.pkp_navigation_primary ul li a:hover {
    background-color: var(--warna-teal);
}

/* --- DAFTAR ARTIKEL (Featured Articles) --- */
.cmp_article_list .title, .homepage_issue .title {
    font-size: 20px;
    font-weight: 700;
    color: var(--warna-biru-tua);
    margin-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
}

.obj_article_summary {
    margin-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 20px;
}

.obj_article_summary .title a {
    font-size: 18px;
    font-weight: 600;
    color: var(--warna-biru-tua);
}

.obj_article_summary .title a:hover {
    color: var(--warna-teal);
    text-decoration: none;
}

.obj_article_summary .authors {
    color: var(--warna-teks-muted);
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 10px;
}

/* --- SIDEBAR KANAN (Kotak Abu-abu) --- */
.pkp_structure_sidebar .block {
    background-color: var(--warna-latar-abu);
    padding: 20px;
    border-radius: 8px;
    border: none;
    margin-bottom: 25px;
}

.pkp_structure_sidebar .block .title {
    font-size: 16px;
    font-weight: 700;
    color: var(--warna-teks);
    border-bottom: none;
    margin-bottom: 15px;
    padding-bottom: 0;
}

/* --- FOOTER --- */
.pkp_structure_footer {
    background-color: var(--warna-latar-abu);
    color: var(--warna-teks);
    border-top: 1px solid #ddd;
    padding: 20px 0;
    font-size: 12px;
}

.pkp_structure_footer a {
    color: var(--warna-biru-tua);
}

/* --- KUSTOMISASI HERO SECTION (Halaman Depan) --- */
.hero-cache-wrapper {
    display: flex;
    align-items: center;
    background: linear-gradient(to right, #e8f1f5, #f4f8fa);
    padding: 40px 5%;
    margin-bottom: 40px;
    border-radius: 8px;
}

.hero-cache-image {
    flex: 1;
    text-align: center;
}

.hero-cache-image img {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.1));
}

.hero-cache-content {
    flex: 1;
    padding-left: 40px;
}

.hero-cache-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--warna-biru-tua);
    margin: 0 0 10px 0;
}

.hero-cache-content h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--warna-teks);
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.hero-cache-content p {
    font-size: 16px;
    color: var(--warna-teks-muted);
    margin-bottom: 30px;
}

.btn-submit-hero {
    display: inline-block;
    background-color: var(--warna-teal);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn-submit-hero:hover {
    background-color: #359b9b;
    color: #ffffff;
    text-decoration: none;
}

/*
/ ========================================
12. KUSTOMISASI TABEL JOURNAL DETAILS (HOMEPAGE)
======================================== */
.homepage_about table {
width: 100% !important;
max-width: 100%;
border-collapse: collapse;
margin-top: 20px;
margin-bottom: 25px;
background-color: #ffffff;
border: 1px solid #DFE1E6;
border-left: 4px solid #42B9B9;
border-radius: 6px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.homepage_about table tr {
border-bottom: 1px solid #DFE1E6;
transition: background-color 0.3s ease;
}

/* Hilangkan garis bawah pada baris terakhir */
.homepage_about table tr:last-child {
border-bottom: none;
}

/* Efek saat baris disorot mouse */
.homepage_about table tr:hover {
background-color: #f0fbfb;
}

.homepage_about table td {
padding: 14px 18px !important;
vertical-align: middle;
font-size: 14.5px;
line-height: 1.6;
color: #444444;
}

/* Menghilangkan jarak paragraf bawaan OJS di dalam tabel agar rapi */
.homepage_about table td p {
margin: 0 !important;
}

/* Kustomisasi Kolom Pertama (Kolom Label) */
.homepage_about table td:first-child {
background-color: #f9f9f9;
width: 35% !important; 
border-right: 1px solid #DFE1E6;
color: #0F2D53;
}

/* Memastikan teks label di kolom pertama terlihat sedikit lebih tebal/gelap */
.homepage_about table td:first-child strong {
color: #0F2D53;
font-weight: 700;
}

/* Kustomisasi Kolom Kedua (Kolom Data) */
.homepage_about table td:nth-child(2) {
width: 65% !important;
}

/*========================================
13. FOOTER FULL WIDTH (PENUH LAYAR)
========================================
/ 1. Berikan warna latar dan garis pada pembungkus terluar OJS */
.pkp_structure_footer_wrapper {
background-color: #0F2D53 !important;
border-top: 4px solid #42B9B9 !important;
color: #e0e0e0 !important;
padding-bottom: 30px;
}

/* 2. Buat pembungkus dalam (container) menjadi transparan */
.pkp_structure_footer,
.pkp_footer_content {
background-color: transparent !important;
}

/* 3. Matikan warna inline bawaan dari blok HTML Anda agar tidak bertumpuk/double */
.pkp_footer_content > div {
background-color: transparent !important;
border-top: none !important;
}

/* 4. Percantik logo OJS PKP bawaan agar terlihat bagus di latar gelap */
.pkp_brand_footer img {
filter: brightness(0) invert(1);
opacity: 0.7;
transition: opacity 0.3s ease;
}

.pkp_brand_footer img:hover {
opacity: 1;
}

/* Perbaikan untuk tampilan Mobile/HP */
@media (max-width: 768px) {
.homepage_about table td:first-child {
width: 45% !important;
}
.homepage_about table td:nth-child(2) {
width: 55% !important;
}
.homepage_about table td {
padding: 10px 12px !important;
font-size: 13.5px;
}
}

/* --- MENGHAPUS GARIS VERTIKAL SILUMAN BAWAAN OJS --- */
.pkp_structure_content:before,
.pkp_structure_content::before,
.pkp_structure_content.has_sidebar:before,
.pkp_structure_content.has_sidebar::before,
.pkp_structure_page:before,
.pkp_structure_page::before {
    display: none !important;
    content: "" !important;
}

.pkp_structure_main,
.pkp_structure_sidebar,
.pkp_structure_content {
    border-right: none !important;
    border-left: none !important;
}

/* --- RESPONSIF --- */
@media (max-width: 768px) {
    .hero-cache-wrapper {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
    }
    .hero-cache-content {
        padding-left: 0;
        margin-top: 30px;
    }
    .hero-cache-content h1 { font-size: 36px; }
    .hero-cache-content h2 { font-size: 22px; }
}


/* ... existing code ... */
@media (max-width: 992px) {
.pkp_structure_content {
padding: 0 20px;
}

.pkp_navigation_primary > li > a {
padding: 12px 15px;
font-size: 13px;
}

body:not(.pkp_page_index) .pkp_structure_main {
padding: 20px;
}

}

/* ========================================
11. CUSTOM SIDEBAR MENU (GLOBAL LIST STYLE)
======================================== */
.custom-sidebar-menu ul {
list-style: none;
padding: 0;
margin: 0;
}

.custom-sidebar-menu li {
margin-bottom: 10px;
padding-bottom: 10px;
border-bottom: 1px dashed #DFE1E6;
}

/* Menghilangkan garis bawah pada item terakhir */
.custom-sidebar-menu li:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
}

.custom-sidebar-menu a {
color: #5e6c84;
text-decoration: none;
display: block;
font-size: 14px;
font-weight: 500;
transition: all 0.3s ease; /* Transisi halus untuk semua perubahan */
}

/* Efek saat teks disentuh (Hover) */
.custom-sidebar-menu a:hover {
color: #42B9B9;
padding-left: 6px;
}

/* ========================================
14. TOMBOL MAKE SUBMISSION
======================================== /
/ 1. Desain utama tombol */
.pkp_block.block_make_submission .block_make_submission_link {
display: block;
background: linear-gradient(135deg, #42B9B9 0%, #359696 100%) !important;
color: #ffffff !important;
text-align: center;
padding: 16px 20px;
font-size: 15.5px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
border-radius: 6px;
text-decoration: none;
box-shadow: 0 4px 10px rgba(66, 185, 185, 0.3) !important;
transition: all 0.3s ease !important;
border: none;
}

/* 2. Menambahkan ikon FontAwesome (Pesawat Kertas) secara otomatis lewat CSS */
.pkp_block.block_make_submission .block_make_submission_link::before {
content: "\f1d8"; 
font-family: "FontAwesome";
margin-right: 10px;
font-weight: normal;
font-size: 16px;
}

/* 3. Efek saat kursor diarahkan ke tombol (Hover) */
.pkp_block.block_make_submission .block_make_submission_link:hover {
background: linear-gradient(135deg, #0F2D53 0%, #1e4d8a 100%) !important;
box-shadow: 0 8px 15px rgba(15, 45, 83, 0.3) !important;
transform: translateY(-3px);
color: #ffffff !important;
}

/* 4. Merapikan jarak (margin) bawaan OJS agar tombol terlihat pas di sidebar */
.pkp_block.block_make_submission .content {
padding: 10px 0 !important;
}

/* ========================================
15. DAFTAR ARTIKEL (ARTICLE LIST / TOC)
======================================== */

/* Menghilangkan gaya list bawaan OJS */
.cmp_article_list {
list-style: none;
padding: 0;
margin: 0;
}

/* Memberi jarak antar kartu artikel */
.cmp_article_list > li {
margin-bottom: 25px;
}

/* 1. Desain Utama Kartu Artikel */
.obj_article_summary {
background-color: #ffffff;
border: 1px solid #DFE1E6;
border-left: 4px solid #DFE1E6; 
border-radius: 6px;
padding: 20px;
box-shadow: 0 2px 4px rgba(0,0,0,0.03);
transition: all 0.3s ease;
display: flex;
flex-direction: column;
}

/* 2. Efek Melayang saat Disorot Mouse (Hover) */
.obj_article_summary:hover {
border-left-color: #42B9B9; 
box-shadow: 0 8px 15px rgba(0,0,0,0.08);
transform: translateY(-3px); 
}

/* 3. Desain Judul Artikel */
.obj_article_summary .title {
margin: 0 0 12px 0;
font-size: 17.5px;
line-height: 1.4;
}

.obj_article_summary .title a {
color: #0F2D53; /* Biru Navy */
text-decoration: none;
font-weight: 700;
transition: color 0.3s ease;
}

.obj_article_summary .title a:hover {
color: #42B9B9; /* Berubah Tosca saat hover judul */
}

/* Desain Sub-judul (Jika ada, misal: "Bahasa Indonesia") */
.obj_article_summary .subtitle {
display: block;
font-size: 14px;
color: #777777;
font-weight: 400;
margin-top: 5px;
}

/* 4. Area Meta (Penulis dan Nomor Halaman) */
.obj_article_summary .meta {
font-size: 14.5px;
color: #555555;
margin-bottom: 15px;
display: flex;
flex-wrap: wrap;
justify-content: space-between; 
align-items: center;
border-bottom: 1px dashed #eaeaea; 
padding-bottom: 12px;
}

.obj_article_summary .authors {
font-weight: 600;
color: #333333;
flex: 1; /* Mengambil sisa ruang di kiri */
padding-right: 15px;
}

/* Nomor Halaman dibentuk seperti Badge/Label */
.obj_article_summary .pages {
font-size: 13px;
color: #5e6c84;
background-color: #f4f5f7;
padding: 4px 10px;
border-radius: 4px;
font-weight: 600;
white-space: nowrap;
}

/* 5. Area Tombol Galley (PDF) */
.obj_article_summary .galleys_links {
list-style: none;
padding: 0;
margin: 0;
display: flex;
gap: 10px;
}

/* Mengubah link teks "pdf" menjadi tombol nyata */
.obj_galley_link.pdf {
display: inline-block;
background-color: #42B9B9 !important;
color: #ffffff !important;
padding: 8px 16px;
border-radius: 4px;
font-size: 13px;
font-weight: 700;
text-transform: uppercase;
text-decoration: none;
letter-spacing: 0.5px;
transition: all 0.3s ease !important;
border: none;
}

/* Menambahkan Ikon PDF Otomatis dengan FontAwesome */
.obj_galley_link.pdf::before {
content: "\f1c1"; 
font-family: "FontAwesome";
margin-right: 8px;
font-weight: normal;
font-size: 14px;
}

/* Efek Hover pada Tombol PDF */
.obj_galley_link.pdf:hover {
background-color: #0F2D53 !important;
box-shadow: 0 4px 8px rgba(15, 45, 83, 0.2);
transform: translateY(-2px);
}