/* ==========================================================================
   1. IMPORT FONT DARI GOOGLE FONTS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Inter:wght@400;600;700;800&family=Montserrat:wght@600&display=swap');

/* ==========================================================================
   2. BACKGROUND HALAMAN UTAMA & LAYOUT DASAR
   ========================================================================== */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    background-color: #f8fafc !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z M30 10 L50 30 L30 50 L10 30 Z' fill='none' stroke='%23064026' stroke-opacity='0.02' stroke-width='1'/%3E%3C/svg%3E") !important;
    background-repeat: repeat !important;
}

/* ==========================================================================
   3. PEMBERSIH GARIS STRUKTURAL & PSEUDO-ELEMENTS
   ========================================================================== */
.pkp_structure_page,
div.pkp_structure_content,
.pkp_structure_main,
.pkp_structure_sidebar,
.pkp_structure_sidebar_right,
.has_sidebar .pkp_structure_main {
    border: 0 none transparent !important;
    box-shadow: none !important;
    background-image: none !important;
}

div.pkp_structure_content::before,
div.pkp_structure_content::after,
.pkp_structure_page::before,
.pkp_structure_page::after,
.pkp_structure_main::before,
.pkp_structure_main::after {
    content: none !important;
    display: none !important;
    background: none !important;
    border: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* ==========================================================================
   4. HEADER HIJAU & GAMBAR BANNER FULL WIDTH (100% SELAYAR PENUH)
   ========================================================================== */
.pkp_structure_head,
header.pkp_structure_head,
#pkp_structure_head,
header#headerNavigationContainer,
.homepage_site_title_wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    left: 0 !important;
    right: 0 !important;
    background-color: #064026 !important;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffd700' stroke-opacity='0.04' stroke-width='0.75'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z'/%3E%3Cpath d='M0 0 L80 80 M80 0 L0 80'/%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3Ccircle cx='40' cy='40' r='10'/%3E%3Cpath d='M20 20 L60 20 L20 60'/%3E%3C/g%3E%3C/svg%3E"), 
        linear-gradient(135deg, #0d5c3a 0%, #064026 100%) !important;
    background-repeat: repeat !important;
    background-size: 80px 80px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
    padding: 0 !important;
    position: relative !important;
}

.pkp_structure_head::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background: linear-gradient(90deg, #d4af37, #ffd700, #d4af37) !important;
}

.pkp_head_wrapper,
.header_wrapper,
.homepage_site_title_wrapper,
.pkp_site_name_wrapper,
.pkp_structure_head .container,
header .container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 0 !important;
}

.pkp_site_name,
.pkp_site_name a,
.pkp_structure_head .pkp_site_name a,
.pkp_site_name img,
.pkp_structure_head .pkp_site_name img,
#headerSiteTitle img {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
    object-fit: cover !important;
}

/* ==========================================================================
   5. PERBAIKAN MENU NAVIGASI (MENCEGAH TEKS TERPOTONG)
   ========================================================================== */
.pkp_structure_navigation_wrapper,
.pkp_structure_navigation,
.pkp_navigation_primary_row,
.pkp_navigation_primary_wrapper,
#navigationPrimary {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffd700 !important;
    background-color: #ffd700 !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    overflow: visible !important;
}

/* Container Flexbox Rata Kiri dengan Safe Margin (25px) */
.pkp_navigation_primary {
    max-width: 1340px !important;
    margin: 0 auto !important;
    padding-left: 25px !important; /* Ruang aman agar teks HOME tidak terpotong */
    padding-right: 25px !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    list-style: none !important;
}

.pkp_navigation_primary > li {
    display: inline-flex !important;
    align-items: center !important;
    position: relative !important;
}

/* Garis Pembatas Vertikal (|) */
.pkp_navigation_primary > li:not(:last-child)::after {
    content: "|" !important;
    color: rgba(6, 64, 38, 0.4) !important;
    margin: 0 4px !important;
    font-weight: 400 !important;
}

/* Link Menu Utama */
.pkp_navigation_primary > li > a {
    color: #064026 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    padding: 10px 10px !important;
    transition: all 0.2s ease-in-out !important;
    text-decoration: none !important;
    white-space: nowrap !important; /* Mencegah teks terlipat ke bawah */
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li.current > a {
    color: #ffffff !important;
    background-color: #064026 !important;
}

/* ==========================================================================
   6. TATA LETAK UTAMA GRID (CONTENT & SIDEBAR)
   ========================================================================== */
.pkp_structure_page {
    max-width: 1340px !important;
    width: 96% !important;
    margin: 40px auto !important;
    display: block !important;
}

div.pkp_structure_content {
    display: grid !important;
    grid-template-columns: 74% 24% !important;
    gap: 2% !important;
    align-items: start !important;
    width: 100% !important;
    background: transparent !important;
}

.pkp_structure_main {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    padding: 35px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important;
    box-sizing: border-box !important;
}

.pkp_structure_sidebar {
    grid-column: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   7. MODERNISE MENU BALOK SIDEBAR
   ========================================================================== */
.pkp_structure_sidebar .pkp_block {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 35px !important;
    box-shadow: none !important;
}

.pkp_structure_sidebar .pkp_block .title,
.pkp_structure_sidebar .pkp_block h2,
.pkp_structure_sidebar .pkp_block h3,
.pkp_structure_sidebar .pkp_block .title span,
.pkp_structure_sidebar .pkp_block h2 span {
    color: #064026 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    margin-bottom: 14px !important;
    margin-top: 0 !important;
    padding-bottom: 8px !important;
    display: block !important;
    border-bottom: 3px solid #ffd700 !important;
}

.pkp_structure_sidebar .pkp_block ul,
.pkp_structure_sidebar .pkp_block .content ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background-color: #032b19 !important;
    border: none !important;
}

.pkp_structure_sidebar .pkp_block li,
.pkp_structure_sidebar .pkp_block .content ul li {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.pkp_structure_sidebar .pkp_block li:last-child,
.pkp_structure_sidebar .pkp_block .content ul li:last-child {
    border-bottom: none !important;
}

.pkp_structure_sidebar .pkp_block a,
.pkp_structure_sidebar .pkp_block .content ul li a,
.pkp_structure_sidebar .pkp_block .content a {
    display: block !important;
    background-color: #032b19 !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 14px 20px !important;
    text-decoration: none !important;
    transition: all 0.25s ease-in-out !important;
    box-sizing: border-box !important;
}

.pkp_structure_sidebar .pkp_block a:hover,
.pkp_structure_sidebar .pkp_block .content ul li a:hover,
.pkp_structure_sidebar .pkp_block .content a:hover {
    background-color: #064026 !important;
    color: #ffd700 !important;
    padding-left: 26px !important;
}

.pkp_block.block_make_submission a.submission_button,
.pkp_structure_sidebar .block_make_submission a {
    background: linear-gradient(135deg, #0d5c3a 0%, #064026 100%) !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    text-align: center !important;
    padding: 15px !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(6, 64, 38, 0.25) !important;
    border: 1px solid rgba(255, 215, 0, 0.2) !important;
    display: block !important;
}

.pkp_block.block_make_submission a.submission_button:hover {
    background: #ffd700 !important;
    color: #064026 !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4) !important;
}

/* ==========================================================================
   8. PERBAIKAN KOTAK TUNGGAL & TAMPILAN LENGKAP ARTIKEL
   ========================================================================== */

/* Hapus wrapper ganda dari OJS */
.cmp_article_list > li,
.sections .section ul > li,
.issue_toc .articles > li {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 25px !important;
    list-style: none !important;
}

/* KOTAK UTAMA TUNGGAL */
.obj_article_summary,
.article-summary,
div[class*="article_summary"] {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    background: #ffffff !important;
    border: 1px solid #7f8c8d !important;
    border-radius: 2px !important;
    padding: 24px 28px 24px 28px !important;
    margin: 0 !important;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.18), 0px 4px 10px rgba(0,0,0,0.05) !important;
    box-sizing: border-box !important;
}

/* 1. JUDUL ARTIKEL (ORDER -3) */
.obj_article_summary .title,
.article-summary .title,
div[class*="article_summary"] .title,
div[class*="article_summary"] h3 {
    order: -3 !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    padding-right: 60px !important;
    width: 100% !important;
}

.obj_article_summary .title a,
.article-summary .title a,
div[class*="article_summary"] h3 a {
    color: #1d70b8 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    font-size: 0.98rem !important;
    text-transform: uppercase !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
    display: block !important;
}

/* 2. NAMA PENULIS / AUTHOR (ORDER -2) */
.obj_article_summary .authors,
.article-summary .authors,
div[class*="article_summary"] .authors {
    order: -2 !important;
    color: #4a5568 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
    border: none !important;
    display: block !important;
    width: 100% !important;
}

/* 3. METADATA (TANGGAL, VIEWS, DOWNLOADS, DOI, CITATIONS) (ORDER -1) */
.obj_article_summary .date,
.obj_article_summary .doi,
.obj_article_summary .item,
.obj_article_summary .pub_date,
.obj_article_summary .stats,
div[class*="article_summary"] .date,
div[class*="article_summary"] .doi,
div[class*="article_summary"] .plugins,
div[class*="article_summary"] .cc_badge,
div[class*="article_summary"] span:not(.title):not(.authors):not(.pages) {
    order: -1 !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    font-size: 0.82rem !important;
    color: #555555 !important;
    margin-bottom: 8px !important;
}

/* Styling Link DOI & Citations Badge */
div[class*="article_summary"] .doi a,
.obj_article_summary .doi a {
    color: #1d70b8 !important;
    text-decoration: underline !important;
    word-break: break-all !important;
}

/* 4. TOMBOL PDF (ORDER 1 - PALING BAWAH) */
.obj_article_summary .galleys,
.article-summary .galleys,
div[class*="article_summary"] .galleys,
div[class*="article_summary"] .galleys_links {
    order: 1 !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    display: flex !important;
    width: 100% !important;
    border: none !important;
    background: transparent !important;
}

.obj_article_summary .galley_link,
.article-summary .galley_link,
div[class*="article_summary"] a.pdf,
.obj_article_summary a.file {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background-color: #032b19 !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    padding: 8px 18px !important;
    border-radius: 4px !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    width: fit-content !important;
}

.obj_article_summary .galley_link:hover,
.article-summary .galley_link:hover,
div[class*="article_summary"] a.pdf:hover {
    background-color: #ffd700 !important;
    color: #064026 !important;
}

/* NOMOR HALAMAN (KANAN ATAS) */
.obj_article_summary .pages,
.article-summary .pages,
div[class*="article_summary"] .pages {
    position: absolute !important;
    top: 24px !important;
    right: 28px !important;
    bottom: auto !important;
    color: #7f8c8d !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* ==========================================================================
   9. ELEMEN FORM & DROPDOWN FILTER
   ========================================================================== */
input[type="text"], 
input[type="password"], 
input[type="email"], 
input[type="search"],
select,
.form-control,
.pkp_form input,
.pkp_form select {
    display: block !important;
    width: 100% !important;
    height: 40px !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
    color: #555555 !important;
    background-color: #ffffff !important; 
    border: 1px solid #cccccc !important; 
    border-radius: 4px !important;
    margin-top: 6px !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
}

select {
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    appearance: menulist !important;
}

/* ==========================================================================
   10. AREA FOOTER & RESPONSIVE MOBILE
   ========================================================================== */
.pkp_structure_footer_wrapper {
    background-color: #064026 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z M30 10 L50 30 L30 50 L10 30 Z' fill='none' stroke='%23ffd700' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E") !important;
    background-repeat: repeat !important;
    border-top: 5px solid #ffd700 !important;
    margin-top: 60px !important;
    padding: 40px 0 20px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block;
}

.pkp_structure_footer {
    max-width: 1200px !important;
    width: 90% !important;
    margin: 0 auto !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.footer-uisu-custom {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.footer-uisu-custom .footer-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 40px !important;
    text-align: left !important;
}

.footer-uisu-custom .footer-column h3 {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin: 0 0 15px 0 !important;
    border-bottom: 2px solid #ffd700 !important;
    padding-bottom: 6px !important;
    display: inline-block !important;
}

.footer-uisu-custom .footer-column p,
.footer-uisu-custom .footer-column li,
.footer-uisu-custom .footer-column li a {
    color: #e2e8f0 !important;
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
    text-decoration: none !important;
}

.footer-uisu-custom .footer-column ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.footer-uisu-custom .footer-column ul li { margin-bottom: 8px !important; }
.footer-uisu-custom .footer-column ul li a:hover { color: #ffd700 !important; }

.footer-uisu-custom .footer-copyright { margin-top: 40px !important; padding-top: 20px !important; border-top: 1px solid rgba(255,255,255,0.1) !important; text-align: center !important; }
.footer-uisu-custom .footer-copyright p { color: #94a3b8 !important; font-size: 0.8rem !important; }

.pkp_brand_footer { display: none !important; visibility: hidden !important; }

@media (max-width: 991px) {
    div.pkp_structure_content { grid-template-columns: 100% !important; gap: 30px !important; }
    .pkp_structure_main, .pkp_structure_sidebar { grid-column: 1 !important; }
}