@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');

body,.pkp_structure_main h1, .obj_issue_toc .galleys h2, .obj_issue_toc .section h2, .pkp_block .title, .obj_article_summary>.title a, .current_issue h2, .pkp_page_index .cmp_announcements h2, .obj_announcement_summary h2 a, .obj_announcement_summary h3 a, .obj_announcement_summary h4 a, .obj_article_details .main_entry .item .label, .obj_article_details .entry_details .item .label, .obj_issue_summary .title, .pkp_structure_main h3, .obj_article_details .authors, .obj_article_details .doi,.pkp_page_index .current_issue .read_more, .pkp_structure_main h2, .cmp_breadcrumbs, .obj_issue_toc .heading .pub_id, .obj_issue_toc .heading .published, .pkp_navigation_user_wrapper a, .pkp_page_index .current_issue .current_issue_title {
    font-family: Arial, Helvetica, sans-serif !important;
}

.pkp_page_index .current_issue .current_issue_title {
    margin: -1rem 0 1.43rem 0 !important;
}

.pkp_page_index .current_issue h2 {
    padding-bottom: 0em !important;
    border-bottom: 3px solid #008000 !important;
}

.pkp_site_name .is_img img {
    margin-top: -15px !important;
    margin-bottom: -35px !important;
    max-height: 225px !important;
}

#headerNavigationContainer {
    background-color: white !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}

.obj_article_details .entry_details .galleys_links>li a, .obj_article_details .entry_details .galleys_links>li a:hover {
    color: #ffffff !important;
}

.obj_article_details .entry_details .item.galleys .galleys_links a:hover {
    background-color: #303030 !important;
}

.obj_issue_toc .section>h2 {
    background-color: transparent !important;
    box-shadow: 0 0px 0px rgb(0 128 0), 0 0px 0px rgba(0, 0, 0, 0.24) !important;
    padding: 0em 0em !important;
}

.pkp_page_index .current_issue h2 {
    font-weight: 700 !important;
    color: rgb(0 128 0) !important;
    width: 100% !important;
}

.cmp_manuscript_button, .block_make_submission a, .obj_galley_link {
    background-color: #008000 !important;
    border-radius: 15px !important;
}

.obj_article_summary>.galleys_links a:hover {
    background-color: #303030 !important;
}

.obj_article_summary>.title a, .doi_link, .pkp_page_index .current_issue .read_more {
    color: #008000 !important;
}

.obj_article_summary {
    padding: 0em 0em !important
}

.pkp_page_index .current_issue .read_more {
    text-transform: capitalize !important;
}

.obj_article_summary>.title a:hover, .doi_link:hover, .pkp_page_index .current_issue .read_more:hover {
color: #000000 !important;
}

.obj_article_summary>.galleys_links a, .obj_article_summary>.galleys_links a:hover {
    color: #ffffff !important;
}

a {
    color: #008000 !important;
    text-decoration: none !important;
}

a:hover {
    color: #19ff00 !important;
    text-decoration: none !important;
}

#navigationPrimary>li>a {
    color: #008000 !important;
}

#navigationPrimary a:focus {
    color: #008000 !important;
}

a:hover {
    text-shadow: none !important;
}

.pkp_nav_list li.profile {
    padding: 0px 0px 0px 0px !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
}

.pkp_navigation_user_wrapper {
    top: 13px !important;
    right: -10px !important;
}

/* 1. Pengaturan Dasar Ikon User Menu */
ul#navigationUser > li > a:before {
    font-family: "FontAwesome" !important;
    margin-right: 0px !important;
    display: inline-block !important;
    font-weight: normal !important;
}

/* 2. Ikon Register (User Plus) */
ul#navigationUser > li.profile > a[href*="register"]:before {
    content: "\f234" !important; /* Ikon user-plus */
}

/* 3. Ikon Login (Sign In) */
ul#navigationUser > li.profile > a[href*="login"]:before {
    content: "\f090" !important; /* Ikon sign-in */
}

/* --- OPSIONAL: Mempercantik Tampilan User Menu --- */
ul#navigationUser {
    display: flex !important;
    gap: 0px !important;
    list-style: none !important;
}

.pkp_navigation_user.pkp_navigation_user {
    margin: 0px 0px 0px 55px !important;
}

ul#navigationUser > li > a {
    color: #008000 !important; /* Biru tua agar senada dengan menu utama */
    font-weight: bold !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    text-decoration: none !important;
}

ul#navigationUser > li > a:hover {
    color: #000000 !important;
}

.pkp_navigation_primary {
    max-width: 90% !important;
}

.pkp_navigation_primary>li>a:focus {
    background: rgb(255 255 255 / 84%) !important;
}

#navigationPrimary>li>a:hover {
    color: #000000 !important;
}

#navigationPrimary ul a {
    color: #000000 !important;
}

#navigationPrimary ul a:hover {
    color: #000000 !important;
}

.pkp_navigation_search_wrapper a {
    color: #008000 !important;
}

.pkp_navigation_search_wrapper a:focus {
    background: rgb(255 255 255 / 84%) !important;
}

.pkp_navigation_search_wrapper a:hover, .pkp_navigation_search_wrapper a:focus {
    color: #000000 !important;
}

.pkp_navigation_search_wrapper {
        float: right !important;
        margin: 0px -9px 0px 0px !important;
        padding: 0 !important;
        border: none !important;
}

.pkp_structure_head {
    background-image: linear-gradient(to bottom, #ffffff, #ffffff, #ffffff, #ffffff, #ffffff) !important;
}

.pkp_navigation_primary_row {
    background: none !important;
    border: none !important;
    padding-left: 30px !important;
    box-shadow: 0 8px 10px -7px rgba(103, 104, 107, 0.3) !important;
}


/* 2. Pengaturan Dasar Ikon */
ul#navigationPrimary > li > a:before {
    font-family: "FontAwesome" !important;
    margin-right: 8px !important;
    display: inline-block !important;
}

/* 3. Ikon berdasarkan URUTAN (Hitung dari menu paling kiri) */

/* Menu ke-1: HOME */
ul#navigationPrimary > li:nth-child(1) > a:before { content: "\f015" !important; }

/* Menu ke-2: ISSUES (Meskipun ada dropdown, ini pasti muncul) */
ul#navigationPrimary > li:nth-child(2) > a:before { content: "\f02d" !important; }

/* Menu ke-3: CONFERENCE */
ul#navigationPrimary > li:nth-child(3) > a:before { content: "\f0c0" !important; }

/* Menu ke-4: JOURNAL METRICS */
ul#navigationPrimary > li:nth-child(4) > a:before { content: "\f080" !important; }

/* Menu ke-5: ANNOUNCEMENTS */
ul#navigationPrimary > li:nth-child(5) > a:before { content: "\f0a1" !important; }

/* Menu ke-6: ABOUT (Meskipun ada dropdown, ini pasti muncul) */
ul#navigationPrimary > li:nth-child(6) > a:before { content: "\f05a" !important; }

/* Menu ke-7: CONTACT */
ul#navigationPrimary > li:nth-child(7) > a:before { content: "\f0e0" !important; }

/* Menu ke-8: INDEXING */
ul#navigationPrimary > li:nth-child(8) > a:before { content: "\f00c" !important; }



.pkp_structure_content {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

html, body {
    background: none !important;
}

body {
    background-color: transparent !important;
    text-align: justify !important;
}

.header .pkp_head_wrapper {
    background: unset !important;
}

.has_site_logo .pkp_head_wrapper {
    padding-top: 1rem !important;
}


.pkp_block {
    padding: 15px 0px 10px 1px !important;
}

.pkp_block .title {
    width: 83% !important;
}

.pkp_page_index .additional_content {
    border-top: 0px solid #ddd !important;
    padding: 10px 30px 0px 30px !important;
    text-align: justify !important;
}

.row {
    margin-left: 7px !important;
    margin-right: 7px !important;
}

.obj_article_details .row {
        margin-left: -2.143rem !important;
        margin-right: -2.143rem !important;
    }

#kotak-hijau-custom {
    background-image: 
              url('#'), 
        linear-gradient(to bottom, #004000, #008000) !important;
    
    /* Pengaturan Gambar: Ukuran penuh, posisi di tengah, tidak berulang */
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;

    /* Menambahkan overlay transparan tipis agar teks lebih terbaca */
    background-blend-mode: multiply !important;
    background-color: rgba(45, 106, 79, 0.7) !important; /* Hijau dengan transparansi 70% */

    /* Pengaturan asli kotak (TETAPKAN INI) */
    position: relative !important;
    border-radius: 15px !important;
    padding: 60px 0 40px 0 !important; /* Memberi ruang padding lebih besar agar gambar garis terlihat */
    margin: 20px 0 !important;
    font-family: "Roboto", sans-serif !important;
    color: white !important;
    overflow: hidden !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

#kotak-hijau-custom .isi-kotak {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 25px !important;
}

/* Header Text */
#kotak-hijau-custom h2 { font-size: 3rem !important; font-weight: bold !important; color: white !important; margin: 0 !important; }
#kotak-hijau-custom h3 { font-size: 1.5rem !important; color: rgba(255,255,255,0.8) !important; margin: 15px 0px 15px 0px !important; }
#kotak-hijau-custom p { line-height: 1.6 !important; margin-bottom: 25px !important; color: white !important; }



/* Container Utama */
.sidebar-sportarea-container {
    display: flex !important;
    flex-direction: row !important; /* Mengubah susunan ke samping */
    flex-wrap: nowrap !important;  /* Memaksa tetap dalam satu baris */
    justify-content: center !important;
    align-items: stretch !important;
    gap: 10px !important; /* Jarak antar tombol */
    width: 100% !important;
    margin: 20px 0 !important;
}

/* Gaya Tombol Individual */
.sportarea-common {
    flex: 1 !important; /* Membagi lebar rata menjadi 4 */
    padding: 15px 5px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important; /* Ukuran teks sedikit diperkecil agar muat sebaris */
    text-align: center !important;
    position: relative !important;
    z-index: 1 !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    color: #004000 !important;
    transition: all 0.5s ease !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* --- EFEK LENGKUNGAN TETAP ADA --- */
.sportarea-common::before {
    content: "" !important;
    position: absolute !important;
    top: 120% !important;
    left: 50% !important;
    width: 200% !important; /* Lebih lebar untuk efek lengkung maksimal */
    height: 300% !important;
    background-color: #004000 !important;
    border-radius: 50% !important;
    transform: translateX(-50%) !important;
    z-index: -1 !important;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

.sportarea-common:hover {
    color: #ffffff !important;
    transform: translateY(-5px) !important;
}

.sportarea-common:hover::before {
    top: -50% !important;
}

/* Pengaturan Responsif: Jika di HP, tombol otomatis bertumpuk lagi agar tidak terpotong */
@media (max-width: 768px) {
    .sidebar-sportarea-container {
        flex-direction: column !important;
    }
    .sportarea-common {
        width: 100% !important;
    }
}


.btn-custom-sidebar:not(.btn-title, .btn-wa, .btn-sm)::before {
    font-family: "FontAwesome" !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    color: #424242 !important;

    width: 30px !important;
    height: 30px !important;
    background-color: #ffffff !important;
    border-radius: 50% !important;
    
    display: flex !important; /* Memastikan lingkaran muncul */
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    
    box-shadow: inset 0px 2px 5px rgba(25, 225, 0, 0.3), 
                inset 0px 1px 2px rgba(0, 0, 0, 0.1) !important;
    content: "\f007" !important; /* Default ikon user, nanti ditimpa di bawah */
}

.btn-title{
    justify-content: center !important;
    color: #000000 !important;
    font-size: 16px !important;
    pointer-events: none !important;
    padding: 10px 20px !important;
}

.btn-wa, .btn-sm  {
    justify-content: center !important;
    color: #000000 !important;
    font-size: 16px !important;
    padding: 10px 20px !important;
}

.btn-title::before {
    display: none !important;
    content: none !important;
}

.block_custom_block a, 
.pkp_structure_sidebar a {
    font-size: 15px !important;    
    font-family: "Roboto", sans-serif !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
}
.sidebar-menu-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 20px 10px !important;
  }

.btn-custom-sidebar {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    min-height: 40px !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    border-radius: 25px !important;
    padding: 5px 9px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    color: #424242 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0px -5px 15px #f9f9f9, 0px 2px 5px #19ff00 !important;
    margin: -5px 22px -23px 10px !important;
}

.btn-custom-sidebar::before {
    font-family: "FontAwesome" !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    color: #424242 !important;
    
    width: 30px !important;
    height: 30px !important;
    background-color: #ffffff !important;
    border-radius: 50% !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    
    box-shadow: inset 0px 2px 5px rgba(23, 72, 65, 0.2), 
                inset 0px 1px 2px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.btn-custom-sidebar[href*="https://journal.uir.ac.id/index.php/JSP/accreditation"]::before { content: "\f091" !important; }

.btn-custom-sidebar[href*="https://journal.uir.ac.id/index.php/JSP/editorialteam"]::before { content: "\f0c0" !important; }

.btn-custom-sidebar[href*="https://journal.uir.ac.id/index.php/JSP/reviewers"]::before { content: "\f0e3" !important; }

.btn-custom-sidebar[href*="https://journal.uir.ac.id/index.php/JSP/about/contact"]::before { content: "\f0e0" !important; }

.btn-custom-sidebar[href*="https://journal.uir.ac.id/index.php/JSP/location"]::before { content: "\f041" !important; }

.btn-custom-sidebar[href*="https://journal.uir.ac.id/index.php/JSP/focus"]::before { content: "\f002" !important; }

.btn-custom-sidebar[href*="https://journal.uir.ac.id/index.php/JSP/REVIEW"]::before { content: "\f0ec" !important; }

.btn-custom-sidebar[href*="https://journal.uir.ac.id/index.php/JSP/publication"]::before { content: "\f073" !important; }

.btn-custom-sidebar[href*="https://journal.uir.ac.id/index.php/JSP/policy"]::before { content: "\f09c" !important; }

.btn-custom-sidebar[href*="https://journal.uir.ac.id/index.php/JSP/archiving"]::before { content: "\f187" !important; }

.btn-custom-sidebar[href*="https://journal.uir.ac.id/index.php/JSP/depositpolicy"]::before { content: "\f0ee" !important; }

.btn-custom-sidebar[href*="https://journal.uir.ac.id/index.php/JSP/statement"]::before { content: "\f24e" !important; }

.btn-custom-sidebar[href*="https://journal.uir.ac.id/index.php/JSP/WithdrawalofManuscripts"]::before { content: "\f122" !important; }

.btn-custom-sidebar[href*="https://journal.uir.ac.id/index.php/JSP/indexing"]::before { content: "\f1c0" !important; }

.btn-custom-sidebar[href*="https://journal.uir.ac.id/index.php/JSP/authorguidelines"]::before { content: "\f15c" !important; }

.btn-custom-sidebar[href*="https://journal.uir.ac.id/index.php/JSP/about-article-in-press"]::before { content: "\f252" !important; }

.btn-custom-sidebar[href*="https://journal.uir.ac.id/index.php/JSP/apc"]::before { content: "\f09d" !important; }

.btn-custom-sidebar[href*="https://journal.uir.ac.id/index.php/JSP/copyright"]::before { content: "\f25e" !important; }

.btn-custom-sidebar[href*="https://journal.uir.ac.id/index.php/JSP/license"]::before { content: "\f25e" !important; }

.btn-custom-sidebar[href*="https://journal.uir.ac.id/index.php/JSP/plagiarism"]::before { content: "\f132" !important; }

.btn-custom-sidebar[href*="https://journal.uir.ac.id/index.php/JSP/complaints"]::before { content: "\f06a" !important; }



.btn-custom-sidebar:hover {
    transform: translateY(2px) !important;
    box-shadow: 0px 0px 2px #f9f9f9, 0px -2px 4px #19ff00 !important;
    color: #000000 !important;
}

.btn-custom-sidebar:hover::before {
    color: #000000 !important; 
}


.sidebar-picture-container {
    margin: 11px 32px -15px 20px !important;
}

.block_Keywordcloud .title {
    /* Menghilangkan gaya bawaan */
    color: #424242 !important; 
    border-bottom: none !important;
    text-decoration: none !important;

    /* Mengambil gaya dari source code Anda */
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    min-height: 40px !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    border-radius: 25px !important;
    padding: 5px 9px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    color: #424242 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0px -5px 15px #f9f9f9, 0px 3px 5px #00000090 !important;   
    justify-content: center !important;
    font-size: 15px !important;
    pointer-events: none !important;
    padding: 10px 20px !important;
    margin: 15px 32px 0px 20px !important;
    text-transform: capitalize !important;
}

#customblock-Flagcounter img {
  border: #000 solid 1px !important;
}

#wordcloud {
    border: #000 solid 1px !important;
    margin-top: 12px !important;
    margin-left: 20px !important;
    margin-right: 32px !important;
    margin-bottom: -5px !important;
    border-radius: 15px !important;
}

.pkp_footer_content a:hover {
    text-decoration: none !important;
    color: #000000 !important;
}


.pkp_structure_footer_wrapper {
    background: #008000 !important;
    border-bottom: unset !important;
}

.pkp_structure_footer {
    background: #008000 !important;
}

.pkp_footer_content {
    background: #008000 !important;
    color: #000000 !important;
    padding: 3.43rem !important;
}

.pkp_footer_content a {
    text-decoration: none !important;
    color: #ffffff !important;
}

.pkp_footer_content a:hover {
    text-decoration: none !important;
    color: #000000 !important;
}

.pkp_brand_footer {
    display: none !important;
}

.sie-footer {
    color: #ffffff !important;
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    font-family: 'Inter', sans-serif !important;
    margin-top: -175px !important;
}

.footer-column:nth-child(1) {
    flex: 3 !important;
    min-width: 400px !important;
    padding-right: 100px !important;
}

.footer-column:nth-child(2) {
    flex: 1 !important;
    min-width: 210px !important;
}

.footer-column:nth-child(3) {
    flex: 1.5 !important;
    min-width: 362px !important;
}

/* Container Utama agar Ikon Berjejer ke Samping */
.footer-social-icons {
    display: flex !important;
    flex-direction: row !important; /* Memaksa ke samping */
    gap: 15px !important;
    margin-top: 20px !important;
    justify-content: flex-start !important;
}

/* Tombol Bulat */
.icon-btn-round {
    width: 35px !important;
    height: 35px !important;
    background-color: #ffffff !important;
    color: #008000 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

/* Memastikan Ikon Muncul di Tengah Bulatan */
.icon-btn-round span.fa {
    font-family: "FontAwesome" !important;
    font-size: 17px !important;
    font-style: normal !important;
    display: inline-block !important;
    color: #008000 !important;
    transition: color 0.3s ease !important;
    padding: 0px 0px 0px 3px !important;
}

/* --- 2. WARNA SAAT HOVER (Kursor Diatasnya) --- */
/* Targetkan span saat link utama (a) di-hover */
.icon-btn-round:hover span.fa {
    color: #ffffff !important; /* Contoh: Mengubah ikon menjadi PUTIH saat di-hover */
}

/* Efek Hover */
.icon-btn-round:hover {
    background-color: #19ff00 !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
}

.footer-column h3 {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    text-transform: none !important;
}

.footer-column p {
    font-size: 14px !important;
    line-height: 1.8 !important;
    margin-bottom: 20px !important;
    text-align: justify !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.895) !important;
    padding-top: unset !important;
    padding-bottom: unset !important;
    text-align: left !important;
    color: #ffffff !important;
    font-size: 13px !important;
}

.sie-footer .footer-column img {
    width: 65px !important;
    height: auto !important;
    display: block !important;
    margin-bottom: 10px !important;
}

/* Container Utama Newsletter */
.newsletter-card {
    background-color: #ffffff !important; /* Warna biru sesuai gambar */
    border-radius: 20px !important;
    padding: 45px !important;
    max-width: 1065px !important;
    margin: 0 auto !important; /* Margin bawah negatif agar melayang di atas footer */
    transform: translateY(-65%) !important;
    position: relative !important;
    z-index: 10 !important;
    color: #181818 !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.newsletter-flex {
    display: flex !important;
    flex-wrap: nowrap !important; /* Di desktop tetap sejajar */
    align-items: center !important;
    gap: 0px;
}

/* Untuk Mobile agar card tidak hancur */
@media (max-width: 767px) {
    .newsletter-flex {
        flex-wrap: wrap !important;
        justify-content: center;
    }
    .newsletter-image {
        flex: 0 0 150px !important; /* Perkecil gambar di HP */
        margin-bottom: 15px;
    }
}

.newsletter-content {
    flex: 2 !important;
}

.pkp_structure_content {
    padding-top: 10px !important;
    padding-bottom: 215px !important;
}

/* KUNCI PERBAIKAN: Aturan khusus untuk Handphone */
@media (max-width: 767px) {
    .pkp_structure_content {
        /* Tambah ruang bawah agar tidak menabrak newsletter yang memanjang ke bawah */
        padding-bottom: 450px !important; 
    }
}

@media (max-width: 767px) {
    /* 1. Paksa kontainer utama menjadi satu kolom vertikal */
    .newsletter-flex, .newsletter-card {
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important;
        width: 100% !important;
        padding: 20px !important;
    }
}


/* Container Utama Gallery */
.image-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important; /* Membuat 4 kolom sejajar */
    gap: 25px !important; /* Jarak antar gambar */
    padding: 10px !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    justify-items: center !important; /* Menengahkan gambar di dalam sel grid masing-masing */
    align-items: center !important;
    width: 100% !important;
}

/* Mengatur Ukuran Gambar */
.image-gallery-grid img {
    width: 100% !important;
    height: auto !important;
    max-height: 50px !important; /* Membatasi tinggi agar seragam */
    object-fit: contain !important; /* Agar gambar tidak gepeng/terdistorsi */
    filter: grayscale(100%); /* Membuat gambar hitam putih (opsional, agar estetik) */
    opacity: 0.7;
    transition: all 0.3s ease !important;
}

/* Efek saat gambar disentuh (Hover) */
.image-gallery-grid img:hover {
    filter: grayscale(0%); /* Kembali berwarna */
    opacity: 1;
    transform: scale(1.1); /* Sedikit membesar */
}

/* Responsif untuk tampilan HP */
@media (max-width: 768px) {
    .image-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Jadi 2 kolom di HP */
    }
}

/* 1. Mengatur kontainer pembungkus agar mengisi seluruh ruang yang tersedia */
.newsletter-image {
    display: flex !important;
    justify-content: center !important; /* Menengahkan grid secara horizontal */
    align-items: center !important;     /* Menengahkan grid secara vertikal */
    width: 100% !important;
}


.pkp_page_editorialteam table tr:nth-child(1) td:first-child::before {
    content: "" !important;
    display: inline-block !important;
    width: 20px !important;  /* Sesuaikan ukuran ikon */
    height: 20px !important; /* Sesuaikan ukuran ikon */
    margin-right: 10px !important;
    vertical-align: middle !important;
    background-image: url('https://github.com/sakakuuuu/sportarea/blob/main/Expertise.webp?raw=true') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

.pkp_page_editorialteam table tr:nth-child(2) td:first-child::before {
    content: "" !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
    vertical-align: middle !important;
    background-image: url('https://github.com/sakakuuuu/sportarea/blob/main/Icon%20E-mail.webp?raw=true') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

.pkp_page_editorialteam table tr:nth-child(3) td:first-child::before {
    content: "" !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
    vertical-align: middle !important;
    background-image: url('https://github.com/sakakuuuu/sportarea/blob/main/Icon%20Scopus.webp?raw=true') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

.pkp_page_editorialteam table tr:nth-child(4) td:first-child::before {
    content: "" !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
    vertical-align: middle !important;
    background-image: url('https://github.com/sakakuuuu/sportarea/blob/main/Icon%20Sinta.webp?raw=true') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

.pkp_page_editorialteam table tr:nth-child(5) td:first-child::before {
    content: "" !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
    vertical-align: middle !important;
    background-image: url('https://github.com/sakakuuuu/sportarea/blob/main/Icon%20Google%20Scholar.webp?raw=true') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}


.pkp_page_editorialteam table tr:nth-child(6) td:first-child::before {
    content: "" !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
    vertical-align: middle !important;
    background-image: url('https://github.com/sakakuuuu/sportarea/blob/main/WoS%20Researcher.webp?raw=true') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

.pkp_page_editorialteam table tr:nth-child(7) td:first-child::before {
    content: "" !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
    vertical-align: middle !important;
    background-image: url('https://github.com/sakakuuuu/sportarea/blob/main/Icon%20ORCID%20ID.webp?raw=true') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

.pkp_page_reviewers table tr:nth-child(1) td:first-child::before {
    content: "" !important;
    display: inline-block !important;
    width: 20px !important;  /* Sesuaikan ukuran ikon */
    height: 20px !important; /* Sesuaikan ukuran ikon */
    margin-right: 10px !important;
    vertical-align: middle !important;
    background-image: url('https://github.com/sakakuuuu/sportarea/blob/main/Icon%20E-mail.webp?raw=true') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

.pkp_page_reviewers table tr:nth-child(2) td:first-child::before {
    content: "" !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
    vertical-align: middle !important;
    background-image: url('https://github.com/sakakuuuu/sportarea/blob/main/Icon%20Sinta.webp?raw=true') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

.pkp_page_reviewers table tr:nth-child(3) td:first-child::before {
    content: "" !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
    vertical-align: middle !important;
    background-image: url('https://github.com/sakakuuuu/sportarea/blob/main/Icon%20Scopus.webp?raw=true') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

.pkp_page_reviewers table tr:nth-child(4) td:first-child::before {
    content: "" !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
    vertical-align: middle !important;
    background-image: url('https://github.com/sakakuuuu/sportarea/blob/main/Icon%20Google%20Scholar.webp?raw=true') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

.pkp_page_reviewers table tr:nth-child(5) td:first-child::before {
    content: "" !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
    vertical-align: middle !important;
    background-image: url('https://github.com/sakakuuuu/sportarea/blob/main/Icon%20ORCID%20ID.webp?raw=true') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

/* ==========================================================
   JOURNAL SPORT AREA — ARCHIVES (CONSOLIDATED)
   Desktop: main content + visible right sidebar.
   Archive list: two equal cards per row inside main content.
   Card: compact cover on the left, issue information on right.
   ========================================================== */

/* Main content and sidebar remain side by side on desktop. */
body.pkp_page_issue.pkp_op_archive .pkp_structure_content {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body.pkp_page_issue.pkp_op_archive .pkp_structure_main {
    display: block !important;
    float: none !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

body.pkp_page_issue.pkp_op_archive .pkp_structure_sidebar {
    display: block !important;
    float: none !important;
    flex: 0 0 270px !important;
    width: 270px !important;
    min-width: 270px !important;
    max-width: 270px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Archive heading */
body.pkp_page_issue.pkp_op_archive .pkp_structure_main > h1 {
    margin: 0 0 20px !important;
    padding: 0 0 10px !important;
    border-bottom: 3px solid #08751f !important;
    color: #064b20 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 29px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: left !important;
}

/* Two equal archive columns within the left content area. */
body.pkp_page_issue.pkp_op_archive ul.issues_archive {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 18px !important;
    width: 100% !important;
    margin: 20px 0 35px !important;
    padding: 0 !important;
    list-style: none !important;
    box-sizing: border-box !important;
}

body.pkp_page_issue.pkp_op_archive ul.issues_archive > li {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    box-sizing: border-box !important;
}

/* Compact, consistent archive card. */
body.pkp_page_issue.pkp_op_archive .obj_issue_summary {
    display: grid !important;
    grid-template-columns: 105px minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    align-items: start !important;
    column-gap: 13px !important;
    row-gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 215px !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 14px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border: 1px solid #e0e8e0 !important;
    border-top: 5px solid #08751f !important;
    border-radius: 13px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 64, 0, 0.10) !important;
    text-align: left !important;
    transition: box-shadow .2s ease, transform .2s ease !important;
}

body.pkp_page_issue.pkp_op_archive .obj_issue_summary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 7px 16px rgba(0, 64, 0, 0.14) !important;
}

/* Cover dimensions are identical in every card. */
body.pkp_page_issue.pkp_op_archive .obj_issue_summary > a.cover {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    display: block !important;
    float: none !important;
    width: 105px !important;
    min-width: 105px !important;
    max-width: 105px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

body.pkp_page_issue.pkp_op_archive .obj_issue_summary > a.cover img {
    display: block !important;
    width: 105px !important;
    min-width: 105px !important;
    max-width: 105px !important;
    height: 155px !important;
    min-height: 155px !important;
    max-height: 155px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center top !important;
    border: 0 !important;
    border-radius: 3px !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.13) !important;
}

/* Issue title */
body.pkp_page_issue.pkp_op_archive .obj_issue_summary > h2 {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #08751f !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

body.pkp_page_issue.pkp_op_archive .obj_issue_summary > h2 a,
body.pkp_page_issue.pkp_op_archive .obj_issue_summary > h2 a:hover {
    color: #08751f !important;
    text-decoration: none !important;
}

body.pkp_page_issue.pkp_op_archive .obj_issue_summary > h2 .series {
    display: block !important;
    width: 100% !important;
    margin: 4px 0 0 !important;
    padding: 0 !important;
    color: #758078 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
}

/* Issue description, metrics and country label. */
body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: block !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    color: #17251b !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    text-align: left !important;
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
}

body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description p {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 5px 0 7px !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
}

/* Metrics row: allow wrapping naturally in narrower cards. */
body.pkp_page_issue.pkp_op_archive .issue-archive-metrics {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 5px 8px !important;
    width: 100% !important;
    margin: 7px 0 7px !important;
    padding: 0 0 7px !important;
    border-bottom: 1px solid #d9e0d9 !important;
    color: #17251b !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    text-align: left !important;
}

body.pkp_page_issue.pkp_op_archive .issue-archive-metrics span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
}

body.pkp_page_issue.pkp_op_archive .issue-archive-metrics i.fa {
    display: inline-block !important;
    width: 14px !important;
    min-width: 14px !important;
    font-family: FontAwesome !important;
    font-style: normal !important;
    font-size: 13px !important;
    line-height: 1 !important;
    color: #075b2a !important;
    text-align: center !important;
}

body.pkp_page_issue.pkp_op_archive .issue-country-label {
    display: block !important;
    margin: 7px 0 5px !important;
    color: #17251b !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

/* Country flags: compact, proportional, without white frames. */
body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description p.issue-country-flags,
body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description .issue-country-flags {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 3px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 6px 0 2px !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 0 !important;
}

body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description p.issue-country-flags img,
body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description .issue-country-flags img {
    display: block !important;
    flex: 0 0 auto !important;
    width: 44px !important;
    min-width: 0 !important;
    max-width: 44px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 31px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    vertical-align: middle !important;
}

/* Images without a dedicated flag wrapper remain proportional. */
body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description > img {
    display: inline-block !important;
    width: 44px !important;
    min-width: 0 !important;
    max-width: 44px !important;
    height: auto !important;
    max-height: 31px !important;
    margin: 4px 3px 4px 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Issues without a cover use the full card width. */
body.pkp_page_issue.pkp_op_archive .obj_issue_summary:not(:has(> a.cover)) > h2,
body.pkp_page_issue.pkp_op_archive .obj_issue_summary:not(:has(> a.cover)) > .description {
    grid-column: 1 / -1 !important;
}

/* Mid-size screens: retain two archive columns, reduce card internals. */
@media (max-width: 1250px) and (min-width: 901px) {
    body.pkp_page_issue.pkp_op_archive .pkp_structure_content {
        gap: 18px !important;
    }

    body.pkp_page_issue.pkp_op_archive .pkp_structure_sidebar {
        flex-basis: 245px !important;
        width: 245px !important;
        min-width: 245px !important;
        max-width: 245px !important;
    }

    body.pkp_page_issue.pkp_op_archive .obj_issue_summary {
        grid-template-columns: 92px minmax(0, 1fr) !important;
        column-gap: 10px !important;
        padding: 12px !important;
    }

    body.pkp_page_issue.pkp_op_archive .obj_issue_summary > a.cover,
    body.pkp_page_issue.pkp_op_archive .obj_issue_summary > a.cover img {
        width: 92px !important;
        min-width: 92px !important;
        max-width: 92px !important;
    }

    body.pkp_page_issue.pkp_op_archive .obj_issue_summary > a.cover img {
        height: 138px !important;
        min-height: 138px !important;
        max-height: 138px !important;
    }

    body.pkp_page_issue.pkp_op_archive .obj_issue_summary > h2 {
        font-size: 17px !important;
    }

    body.pkp_page_issue.pkp_op_archive .issue-archive-metrics {
        font-size: 10px !important;
        gap: 4px 6px !important;
    }

    body.pkp_page_issue.pkp_op_archive .issue-country-flags img {
        width: 38px !important;
        max-width: 38px !important;
        max-height: 27px !important;
    }
}

/* Tablet and mobile: content and sidebar stack vertically. */
@media (max-width: 900px) {
    body.pkp_page_issue.pkp_op_archive .pkp_structure_content {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 22px !important;
    }

    body.pkp_page_issue.pkp_op_archive .pkp_structure_main,
    body.pkp_page_issue.pkp_op_archive .pkp_structure_sidebar {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

@media (max-width: 650px) {
    body.pkp_page_issue.pkp_op_archive ul.issues_archive {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 15px !important;
    }

    body.pkp_page_issue.pkp_op_archive .obj_issue_summary {
        grid-template-columns: 105px minmax(0, 1fr) !important;
        column-gap: 13px !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 13px !important;
    }

    body.pkp_page_issue.pkp_op_archive .obj_issue_summary > a.cover,
    body.pkp_page_issue.pkp_op_archive .obj_issue_summary > a.cover img {
        width: 105px !important;
        min-width: 105px !important;
        max-width: 105px !important;
    }

    body.pkp_page_issue.pkp_op_archive .obj_issue_summary > a.cover img {
        height: 155px !important;
        min-height: 155px !important;
        max-height: 155px !important;
    }

    body.pkp_page_issue.pkp_op_archive .obj_issue_summary > h2 {
        font-size: 19px !important;
    }

    body.pkp_page_issue.pkp_op_archive .obj_issue_summary > h2 .series {
        font-size: 12px !important;
    }

    body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description,
    body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description p {
        font-size: 12px !important;
    }

    body.pkp_page_issue.pkp_op_archive .issue-archive-metrics {
        font-size: 11px !important;
    }

    body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description .issue-country-flags img,
    body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description img {
        width: 42px !important;
        max-width: 42px !important;
        max-height: 30px !important;
    }
}


/* ==========================================================
   FINAL FLAG SIZE REFINEMENT
   Reduce country flags only. Keep card layout, cover, sidebar,
   typography, and all other styling unchanged.
   ========================================================== */
body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description img,
body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description p img,
body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description .issue-country-flags img,
body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description p.issue-country-flags img {
    display: inline-block !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 29px !important;
    min-height: 29px !important;
    max-height: 29px !important;
    margin: 4px 5px 3px 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    vertical-align: middle !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12) !important;
}

body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description .issue-country-flags,
body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description p.issue-country-flags {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    text-align: left !important;
}

@media (max-width: 900px) {
    body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description img,
    body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description p img,
    body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description .issue-country-flags img,
    body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description p.issue-country-flags img {
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        height: 26px !important;
        min-height: 26px !important;
        max-height: 26px !important;
    }
}



/* ==========================================================
   ARCHIVE VIEW ISSUE BUTTON
   Requires this HTML inside each issue description:
   <p class="issue-view-button">
       <a href="YOUR_ISSUE_URL">View Issue <span>→</span></a>
   </p>
   ========================================================== */

body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description p.issue-view-button {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
    margin: 10px 0 2px !important;
    padding: 0 !important;
    text-align: right !important;
    line-height: 1 !important;
}

body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description p.issue-view-button a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 30px !important;
    padding: 5px 13px !important;
    box-sizing: border-box !important;
    border: 1.5px solid #08751f !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    color: #08751f !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    transition: background-color .2s ease, color .2s ease, transform .2s ease !important;
}

body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description p.issue-view-button a:hover,
body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description p.issue-view-button a:focus {
    background: #08751f !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

body.pkp_page_issue.pkp_op_archive .obj_issue_summary > .description p.issue-view-button a span {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}



/* ==========================================================
   FINAL OVERRIDE — VIEW ISSUE BUTTON
   Robust selector for OJS archive description markup.
   Only styles the existing .issue-view-button HTML.
   ========================================================== */

body.pkp_page_issue.pkp_op_archive .issue-view-button,
body.pkp_page_issue.pkp_op_archive p.issue-view-button {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
    margin: 10px 0 3px !important;
    padding: 0 !important;
    text-align: right !important;
    line-height: 1 !important;
    clear: both !important;
    box-sizing: border-box !important;
}

body.pkp_page_issue.pkp_op_archive .issue-view-button a,
body.pkp_page_issue.pkp_op_archive p.issue-view-button a,
body.pkp_page_issue.pkp_op_archive .obj_issue_summary .issue-view-button a {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    min-width: 108px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 5px 13px !important;
    box-sizing: border-box !important;
    border: 1.5px solid #08751f !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    color: #08751f !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-shadow: none !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease !important;
}

body.pkp_page_issue.pkp_op_archive .issue-view-button a:hover,
body.pkp_page_issue.pkp_op_archive .issue-view-button a:focus,
body.pkp_page_issue.pkp_op_archive .obj_issue_summary .issue-view-button a:hover,
body.pkp_page_issue.pkp_op_archive .obj_issue_summary .issue-view-button a:focus {
    border-color: #08751f !important;
    background: #08751f !important;
    color: #ffffff !important;
    text-decoration: none !important;
    text-shadow: none !important;
}

body.pkp_page_issue.pkp_op_archive .issue-view-button a span {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}



/* ==========================================================
   VIEW ISSUE BUTTON — OJS/TinyMCE COMPATIBILITY FIX
   Targets the issue-view URL directly in case TinyMCE removes
   the class from the surrounding paragraph.
   ========================================================== */

/* Align the paragraph containing the issue-view link to the right. */
body.pkp_page_issue.pkp_op_archive
.obj_issue_summary .description p:has(> a[href*="/issue/view/"]),
body.pkp_page_issue.pkp_op_archive
.obj_issue_summary .description p:has(> a[href*="issue/view"]) {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
    margin: 10px 0 3px !important;
    padding: 0 !important;
    text-align: right !important;
    line-height: 1 !important;
    clear: both !important;
    box-sizing: border-box !important;
}

/* Style the actual issue link as a compact outlined button. */
body.pkp_page_issue.pkp_op_archive
.obj_issue_summary .description a[href*="/issue/view/"],
body.pkp_page_issue.pkp_op_archive
.obj_issue_summary .description a[href*="issue/view"] {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-width: 108px !important;
    min-height: 31px !important;
    margin: 8px 0 2px auto !important;
    padding: 5px 14px !important;
    box-sizing: border-box !important;
    border: 1.5px solid #08751f !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    color: #08751f !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-shadow: none !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease !important;
}

body.pkp_page_issue.pkp_op_archive
.obj_issue_summary .description a[href*="/issue/view/"]:hover,
body.pkp_page_issue.pkp_op_archive
.obj_issue_summary .description a[href*="/issue/view/"]:focus,
body.pkp_page_issue.pkp_op_archive
.obj_issue_summary .description a[href*="issue/view"]:hover,
body.pkp_page_issue.pkp_op_archive
.obj_issue_summary .description a[href*="issue/view"]:focus {
    border-color: #08751f !important;
    background: #08751f !important;
    color: #ffffff !important;
    text-decoration: none !important;
    text-shadow: none !important;
}

/* Keep arrow spacing and color consistent when HTML uses a span. */
body.pkp_page_issue.pkp_op_archive
.obj_issue_summary .description a[href*="issue/view"] span {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-size: 15px !important;
    line-height: 1 !important;
}



/* ==========================================================
   FINAL HTML COMPATIBILITY — ISSUE ARCHIVE METRICS + FLAGS
   Matches the supplied TinyMCE HTML:
   - one .issue-archive-metrics paragraph containing text + strong
   - one .issue-country-flags paragraph containing flag images
   - existing .issue-view-button paragraph
   Keeps card, cover, sidebar and general layout unchanged.
   ========================================================== */

/* Three statistics in one compact line on desktop.
   Use block rather than flex because the HTML contains plain text nodes. */
body.pkp_page_issue.pkp_op_archive
.obj_issue_summary .description p.issue-archive-metrics {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 7px 0 8px !important;
    padding: 0 0 7px !important;
    border-bottom: 1px solid #d9e0d9 !important;
    color: #17251b !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

body.pkp_page_issue.pkp_op_archive
.obj_issue_summary .description p.issue-archive-metrics strong {
    display: inline !important;
    color: #17251b !important;
    font-size: inherit !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

/* Country heading */
body.pkp_page_issue.pkp_op_archive
.obj_issue_summary .description p.issue-country-label {
    display: block !important;
    width: 100% !important;
    margin: 6px 0 4px !important;
    padding: 0 !important;
    color: #17251b !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    text-align: left !important;
}

/* Country flags: close together, without changing their established size. */
body.pkp_page_issue.pkp_op_archive
.obj_issue_summary .description p.issue-country-flags {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 3px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 5px 0 3px !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 0 !important;
}

body.pkp_page_issue.pkp_op_archive
.obj_issue_summary .description p.issue-country-flags img {
    display: block !important;
    flex: 0 0 auto !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 29px !important;
    min-height: 29px !important;
    max-height: 29px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    vertical-align: middle !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* View Issue paragraph and link remain right-aligned. */
body.pkp_page_issue.pkp_op_archive
.obj_issue_summary .description p.issue-view-button {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
    margin: 9px 0 2px !important;
    padding: 0 !important;
    text-align: right !important;
    line-height: 1 !important;
}

/* On narrow cards, allow the metrics to wrap instead of being clipped. */
@media (max-width: 650px) {
    body.pkp_page_issue.pkp_op_archive
    .obj_issue_summary .description p.issue-archive-metrics {
        white-space: normal !important;
        font-size: 10px !important;
        line-height: 1.5 !important;
    }
}


/* ==========================================================
   FINAL FIX — ARCHIVE STATISTICS
   Keeps Articles | Authors | Countries on one desktop line.
   Supports both one combined paragraph and separate metric
   paragraphs carrying the same class.
   ========================================================== */

html body.pkp_page_issue.pkp_op_archive
.obj_issue_summary > .description p.issue-archive-metrics,
html body.pkp_page_issue.pkp_op_archive
.obj_issue_summary .description p.issue-archive-metrics {
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    margin: 5px 0 7px !important;
    padding: 0 3px 5px 0 !important;
    border-bottom: 1px solid #d9e0d9 !important;
    color: #17251b !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.15px !important;
    text-align: left !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    box-sizing: border-box !important;
}

html body.pkp_page_issue.pkp_op_archive
.obj_issue_summary > .description p.issue-archive-metrics strong,
html body.pkp_page_issue.pkp_op_archive
.obj_issue_summary .description p.issue-archive-metrics strong {
    display: inline !important;
    font-size: inherit !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

html body.pkp_page_issue.pkp_op_archive
.obj_issue_summary > .description p.issue-archive-metrics {
    /* If metrics are split across multiple paragraphs, keep them adjacent. */
    vertical-align: baseline !important;
}

/* Desktop: reserve enough width for the statistics in the text column. */
@media (min-width: 651px) {
    html body.pkp_page_issue.pkp_op_archive
    .obj_issue_summary > .description p.issue-archive-metrics {
        white-space: nowrap !important;
        font-size: 9px !important;
    }
}

/* Mobile: allow wrapping so the card does not overflow the screen. */
@media (max-width: 650px) {
    html body.pkp_page_issue.pkp_op_archive
    .obj_issue_summary > .description p.issue-archive-metrics,
    html body.pkp_page_issue.pkp_op_archive
    .obj_issue_summary .description p.issue-archive-metrics {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        font-size: 10px !important;
        letter-spacing: 0 !important;
    }
}



/* ==========================================================
   SIDEBAR ONLY — BUTTON LENGTH / SPACING REFINEMENT
   Scope: custom sidebar menu only.
   Does not change archive cards, cover images, statistics,
   archive columns, or the overall sidebar column width.
   ========================================================== */

body.pkp_page_issue.pkp_op_archive .sidebar-menu-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 18px 10px 24px !important;
}

/* Make each sidebar menu button longer/taller and evenly sized. */
body.pkp_page_issue.pkp_op_archive .sidebar-menu-container .btn-custom-sidebar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 13px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 58px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 9px 14px !important;
    box-sizing: border-box !important;
    border-radius: 30px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
}

/* Consistent icon size and alignment. */
body.pkp_page_issue.pkp_op_archive .sidebar-menu-container .btn-custom-sidebar::before {
    display: inline-flex !important;
    flex: 0 0 36px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

/* Category headings: retain centered pill style, without an icon. */
body.pkp_page_issue.pkp_op_archive .sidebar-menu-container .btn-custom-sidebar.btn-title {
    justify-content: center !important;
    min-height: 58px !important;
    padding: 10px 14px !important;
    text-align: center !important;
}

/* Prevent category headings from inheriting menu icon spacing. */
body.pkp_page_issue.pkp_op_archive .sidebar-menu-container .btn-custom-sidebar.btn-title::before {
    display: none !important;
    content: none !important;
}

/* Slightly more compact on small screens while retaining button height. */
@media (max-width: 900px) {
    body.pkp_page_issue.pkp_op_archive .sidebar-menu-container .btn-custom-sidebar {
        min-height: 54px !important;
        font-size: 15px !important;
    }
}


/* ==========================================================
   SIDEBAR RECOVERY — COMPACT SPACING, CONSISTENT BUTTONS
   Scoped to Archives only. Does not alter archive cards,
   cover images, metrics, flags, or the main/sidebar columns.
   ========================================================== */

/* OJS wraps sidebar content in blocks; reduce the extra
   vertical padding between those blocks as well as menu gaps. */
body.pkp_page_issue.pkp_op_archive .pkp_structure_sidebar .pkp_block {
    margin: 0 0 8px !important;
    padding: 3px 0 !important;
    box-sizing: border-box !important;
}

/* Keep the custom menu compact and aligned. */
body.pkp_page_issue.pkp_op_archive .pkp_structure_sidebar .sidebar-menu-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 6px 4px 10px !important;
    box-sizing: border-box !important;
}

/* Standard menu buttons: consistent height, no excessive gaps. */
body.pkp_page_issue.pkp_op_archive .pkp_structure_sidebar .sidebar-menu-container a.btn-custom-sidebar:not(.btn-title) {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 52px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 6px 12px !important;
    box-sizing: border-box !important;
    border-radius: 28px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

/* Keep icons fixed-size and prevent them from squeezing text. */
body.pkp_page_issue.pkp_op_archive .pkp_structure_sidebar .sidebar-menu-container a.btn-custom-sidebar:not(.btn-title)::before {
    display: inline-flex !important;
    flex: 0 0 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

/* Category headers remain centered and slightly shorter. */
body.pkp_page_issue.pkp_op_archive .pkp_structure_sidebar .sidebar-menu-container a.btn-custom-sidebar.btn-title {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 48px !important;
    height: auto !important;
    margin: 8px 0 4px !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    text-align: center !important;
}

body.pkp_page_issue.pkp_op_archive .pkp_structure_sidebar .sidebar-menu-container a.btn-custom-sidebar.btn-title::before {
    display: none !important;
    content: none !important;
}

/* Slightly smaller type on narrow screens to avoid clipping. */
@media (max-width: 900px) {
    body.pkp_page_issue.pkp_op_archive .pkp_structure_sidebar .sidebar-menu-container a.btn-custom-sidebar:not(.btn-title) {
        font-size: 14px !important;
        gap: 9px !important;
        min-height: 48px !important;
        white-space: normal !important;
    }
}
