/* =========================================================
   STYLE OJS 3 - AL-MUYASSAR (ELEGANT GOLD & ROYAL BLUE)
   Optimized & Cleaned Version (Merged Conflicts)
   ========================================================= */

/* ==================================================
   1. GLOBAL & TYPOGRAPHY
   ================================================== */
* {
    font-family: 'Book Antiqua', Palatino, serif !important;
}

body {
    font-family: 'Book Antiqua', Palatino, serif !important;
    background-color: #f9f9f9;
    font-size: 15px; 
}

p {
    text-align: justify; 
}

.pkp_structure_page {
    background: #ffffff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.pkp_structure_main a {
    color: #D4AF37; 
    text-decoration: none !important; 
    transition: 0.3s;
}

.pkp_structure_main a:hover {
    color: #002456; 
}

/* ==================================================
   2. HEADER, NAVIGATION MENU & SEARCH ICON
   ================================================== */
.pkp_navigation_primary_row {
    background: #002456 !important;
    border-top: 3px solid #D4AF37;
}

.pkp_navigation_primary_wrapper {
    margin: 0 auto;
    padding-left: 29px;
    padding-right: 0px;
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li a {
    color: #ffffff !important;
    font-weight: bold !important;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding-right: 12px !important; 
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li a:hover,
.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li a:focus {
    background: #D4AF37 !important;
    color: #002456 !important;
}

/* Custom Search Icon (White SVG) */
.pkp_navigation_search_wrapper a span.fa-search {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23ffffff' d='M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.pkp_navigation_search_wrapper a span.fa-search::before {
    content: "" !important;
}

/* ==================================================
   3. HOMEPAGE LAYOUT & ABOUT JOURNAL
   ================================================== */
.page_index_journal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.page_index_journal > .homepage_image {
    order: 1 !important;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

/* MENYEMBUNYIKAN TEKS ABOUT JOURNAL BAWAAN (YANG TIDAK BISA DIHAPUS) */
.page_index_journal > .homepage_about {
    display: none !important; 
}

.homepage_image img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border: 2px solid #F9F6E8;
    border-radius: 5px;
}

.page_index_journal > .homepage_about {
    order: 2 !important;
    width: 100% !important; 
    margin-top: 10px;
}
.homepage_about h2, .homepage_about .section-title {
    display: none !important;
}

/* Layout Komponen Halaman Depan */
.page_index_journal > .additional_content {
    order: 3 !important;
    width: 100%;
}
.page_index_journal > .cmp_announcements {
    order: 4 !important;
    width: 100%;
    margin-top: 20px;
}
.page_index_journal > .current_issue {
    order: 5 !important;
    width: 100%;
    margin-top: 20px;
}

/* Pembersihan teks sisa MS Word di About */
.homepage_about p {
    text-align: justify !important;
    line-height: 1.6 !important;
    margin-bottom: 5px !important;
}
.homepage_about p.MsoListParagraphCxSpFirst,
.homepage_about p.MsoListParagraphCxSpMiddle,
.homepage_about p.MsoListParagraphCxSpLast {
    text-indent: 0 !important;
    margin-left: 25px !important;
    margin-bottom: 5px !important;
}
.homepage_about span {
    font-family: inherit !important;
    font-size: inherit !important;
}

/* Custom Box About The Journal */
.homepage_about .about-box {
    background-color: #F9F6E8;
    border-left: 4px solid #D4AF37;
    padding: 10px 15px; 
    margin-bottom: 12px; 
    border-radius: 3px;
}
.homepage_about .about-box p {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.4; 
    color: #333;
}
.homepage_about .about-box p:last-child {
    margin-bottom: 0;
}
.homepage_about .indexation-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; 
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea; 
}
.homepage_about .indexation-box img {
    height: 35px; 
    width: auto;
    display: block;
}

/* Sub-Judul About */
.homepage_about .about-section { margin-bottom: 15px; }
.homepage_about .sub-title {
    color: #002456;
    font-size: 16px; 
    font-weight: bold;
    border-bottom: 2px solid #002456;
    padding-bottom: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.homepage_about .mini-title {
    color: #D4AF37;
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 4px;
}
.homepage_about .custom-list {
    margin-left: 15px;
    padding-left: 10px;
    margin-bottom: 10px;
}
.homepage_about .custom-list li {
    margin-bottom: 3px;
    line-height: 1.4;
    font-size: 14px;
    color: #333;
}
.homepage_about .scope-text {
    line-height: 1.4;
    text-align: justify;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

/* Kotak Submissions & Tombol */
.homepage_about .submission-box {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    border-radius: 3px;
}
.homepage_about .submission-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
}
.homepage_about .submission-list li {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border-bottom: 1px dashed #eee;
    padding-bottom: 6px;
    font-size: 14px;
}
.homepage_about .submission-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.homepage_about .btn-action {
    display: inline-block;
    background-color: #002456;
    color: #ffffff !important;
    padding: 4px 10px; 
    border-radius: 3px;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 12px;
    transition: background-color 0.3s ease;
}
.homepage_about .btn-action:hover {
    background-color: #D4AF37;
    color: #002456 !important;
}
.homepage_about .submission-note {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    margin-bottom: 0;
    line-height: 1.3;
}

/* ==================================================
   4. SIDEBAR & ANNOUNCEMENTS
   ================================================== */
.pkp_structure_sidebar .kepala {
    background-color: #002456;
    color: #D4AF37;
    padding: 12px 15px;
    font-weight: bold;
    border-bottom: 3px solid #D4AF37;
    margin-bottom: 0;
    text-transform: uppercase;
    font-size: 14px;
}

.pkp_structure_sidebar .badan {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-top: none;
    margin-bottom: 8px !important;
}

.pkp_structure_sidebar .content {
    margin-bottom: 0 !important;
}

.pkp_structure_sidebar .badan a {
    display: block;
    padding: 10px 15px;
    color: #333333;
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.3s ease;
}

.pkp_structure_sidebar .badan a:hover {
    background-color: #F9F6E8;
    color: #002456;
    padding-left: 20px;
    border-left: 4px solid #D4AF37;
}

@media (min-width: 992px) {
    .pkp_structure_sidebar.left .pkp_block,
    .pkp_block.block_custom {
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* Announcement Mepet Kiri */
.pkp_structure_content.has_sidebar .cmp_announcements,
.cmp_announcements.highlight_first {
    margin-left: 0 !important;
    padding-left: 0 !important;
    border-radius: 0 4px 4px 0 !important; 
}
.cmp_announcements.highlight_first {
    background-color: #F9F6E8;
    padding: 20px;
    border-left: 5px solid #D4AF37;
    border-radius: 4px;
}

/* ==================================================
   5. DAFTAR ARTIKEL (LIST, GRID & BUTTON PDF)
   ================================================== */
ul.cmp_article_list {
    margin: 0 !important;
    padding: 0 !important;
}
ul.cmp_article_list > li {
    margin-bottom: 8px !important; 
    padding: 0 !important;
}

/* Grid Layout untuk Artikel */
.obj_article_summary {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-left: 4px solid #002456;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    padding: 12px 15px !important; 
    margin-bottom: 0 !important;
    display: grid !important;
    grid-template-columns: max-content 1fr !important; 
    grid-template-areas: 
        "title title"   
        "pdf meta" !important; 
    align-items: center !important; 
    column-gap: 15px !important; 
    row-gap: 8px !important; 
}

.obj_article_summary:hover {
    background: #F9F6E8;
    border-left: 4px solid #D4AF37;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.obj_article_summary .title {
    grid-area: title !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}
.obj_article_summary .title a {
    font-size: 14px !important; 
    line-height: 1.4 !important;
    color: #002456 !important;
    font-weight: bold;
}

/* Tombol PDF & Meta */
.obj_article_summary .galleys_links {
    grid-area: pdf !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.obj_article_summary .galleys_links li {
    margin: 0 !important;
    padding: 0 !important;
}
.obj_galley_link {
    background: #002456 !important;
    color: #D4AF37 !important;
    border: 1px solid #002456 !important;
    border-radius: 3px !important;
    padding: 3px 8px !important; 
    font-size: 11px !important;  
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 !important; 
    display: inline-block !important;
}
.obj_galley_link:hover {
    background: #D4AF37 !important;
    color: #002456 !important;
    border: 1px solid #D4AF37 !important;
}

/* Penulis & Halaman */
.obj_article_summary .meta {
    grid-area: meta !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important; 
    gap: 8px 12px !important; 
    width: 100% !important;
}
.obj_article_summary .authors {
    font-size: 13px !important; 
    margin: 0 !important;
    text-align: left !important;
    line-height: 1.5 !important;
    flex: 0 1 auto !important; 
}
.obj_article_summary .pages {
    display: inline-block !important; 
    visibility: visible !important; 
    opacity: 1 !important;
    font-size: 11px !important;
    font-family: inherit !important;
    color: #ffffff !important;
    background-color: #002456 !important; 
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    white-space: nowrap !important; 
    line-height: 1.2 !important;
    border: 1px solid #002456 !important;
}

/* Detail Artikel (Copyright & License) */
.obj_article_details .item.copyright h2.label,
.obj_article_details .item.copyright p,
.obj_article_details .item.copyright ol,
.obj_article_details .item.copyright ul,
.obj_article_details .item.copyright li {
    color: #333333 !important; 
    line-height: 1.6 !important;
}
.obj_article_details .item.copyright a {
    color: #002456 !important; 
    font-weight: bold;
}
.obj_article_details .item.copyright a:hover {
    color: #D4AF37 !important; 
    text-decoration: underline !important;
}

/* ==================================================
   6. FOOTER (CENTERED, CLEAN & CONTRAST)
   ================================================== */
.pkp_brand_footer { display: none !important; }

.pkp_structure_footer_wrapper {
    background-color: #002456 !important;
    border-top: 5px solid #D4AF37 !important;
    padding: 20px 20px !important;
}
.pkp_structure_footer {
    display: block !important;
    max-width: 1160px !important; 
    margin: 0 auto !important; 
}
.pkp_footer_content {
    width: 100% !important;
    text-align: center !important;
    float: none !important;
    padding: 25px 0 !important; 
}

.pkp_structure_footer_wrapper p,
.pkp_structure_footer_wrapper strong,
.pkp_structure_footer_wrapper span,
.pkp_structure_footer_wrapper div {
    color: #ffffff !important;
    line-height: 1.6; 
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.pkp_structure_footer_wrapper a {
    color: #D4AF37 !important;
    text-decoration: none !important;
    font-weight: bold;
}
.pkp_structure_footer_wrapper a:hover {
    color: #ffffff !important; 
    text-decoration: underline !important;
}

.pkp_footer_content img {
    display: inline-block !important;
    margin: 0 auto !important;
    vertical-align: middle !important;
}
.pkp_footer_content hr {
    max-width: 100% !important;
    width: 100% !important;
    margin: 20px auto !important; 
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.3) !important; 
    box-sizing: border-box !important;
}

/* ==================================================
   7. RESPONSIVE MEDIA QUERIES
   ================================================== */
@media (max-width: 1280px) {
    .pkp_navigation_primary_wrapper { padding-left: 20px; }
}
@media (max-width: 1024px) {
    .pkp_navigation_primary_wrapper { padding-left: 30px; }
}
@media (max-width: 768px) {
    body { font-size: 14px; } 
    .pkp_navigation_primary_wrapper { padding-left: 10px; }
    
    .page_index_journal > .homepage_about { order: 2; width: 100%; }
    .page_index_journal > .homepage_image { order: 1; width: 100%; text-align: center; margin-bottom: 20px; }
}
@media (max-width: 576px) {
    body { font-size: 13px; }
    .pkp_navigation_primary_wrapper { padding-left: 8px; }
}