/* ==========================================
   TARIK SPASI KOSONG ANTAR-BLOK SIDEBAR
   ========================================= */

/* 1. Potong jarak kosong putih di bawah setiap blok menu */
.pkp_structure_sidebar .pkp_block {
    margin-bottom: 5px !important;  /* Menarik blok di bawahnya agar mendekat */
    padding-bottom: 0px !important; /* Menghapus ruang kosong di dalam bagian bawah blok */
}

/* 2. Potong margin judul/header blok (Template Journal, Index, dll) */
.pkp_structure_sidebar .pkp_block .title,
.pkp_structure_sidebar .pkp_block h2,
.pkp_structure_sidebar .pkp_block h3 {
    margin-top: 10px !important;
    margin-bottom: 5px !important;
}

/* 3. Kembalikan ukuran gambar/logo ke normal (tidak gepeng/kecil) */
.pkp_structure_sidebar img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-top: 0px !important;
    margin-bottom: 3px !important; /* Spasi antar tombol gambar dalam 1 grup */
}

/* 4. Hapus paragraf kosong bawaan OJS yang bikin spasi putih melar */
.pkp_structure_sidebar p:empty,
.pkp_structure_sidebar div:empty {
    display: none !important;
}

/* ==========================================
   PAKSA MERAPATKAN WIDGET ISSN KE VISITOR
   ========================================== */

/* 1. Hapus jarak kosong di dalam & di bawah tabel ISSN */
.pkp_structure_sidebar table {
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
    border-collapse: collapse !important;
}

.pkp_structure_sidebar td,
.pkp_structure_sidebar tr {
    padding-bottom: 0px !important;
    margin-bottom: 0px !important;
}

/* 2. Hapus spasi paragraf/br kosong bawaan editor OJS */
.pkp_structure_sidebar p {
    margin-bottom: 2px !important;
}

.pkp_structure_sidebar br {
    display: none !important; /* Menghapus enter/spasi baris kosong */
}

/* 3. Tarik judul 'Visitor' langsung mepet ke atas */
.pkp_structure_sidebar .pkp_block:has(img[src*="flagcounter"]) .title,
.pkp_structure_sidebar .pkp_block:has(img[src*="flagcounter"]) h2,
.pkp_structure_sidebar .pkp_block:has(img[src*="flagcounter"]) h3 {
    margin-top: 2px !important;
}