/* === Sidebar Tema Biru & Kuning (Single Column) === */

/* Container utama sidebar */
.custom-block-wrapper {
    background-color: #e6f0fa;  /* Biru muda lembut sebagai latar */
    padding: 5rem;  /* Menambahkan padding 5rem ke seluruh container */
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);  /* bayangan halus opsional */
}

/* Reset tampilan card pada setiap blok menu */
.pkp_block {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 1rem;  /* Reduced margin for blocks */
}

/* Judul blok (Main Menu, Journal Policies) */
.block-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0b3d60;  /* Biru tua */
    border-left: 5px solid #f5b342;  /* Aksen kuning */
    padding-left: 0.75rem;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Konten dalam blok */
.pkp_block .content {
    padding: 0;
}

/* Daftar menu */
.button-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-list li {
    margin-bottom: 0.3rem;  /* Reduced margin between menu items */
}

/* Tombol menu utama (btn-primary) */
.btn-primary {
    display: block;
    background-color: #0d47a1;  /* Biru utama */
    color: #ffffff;
    border: none;
    border-radius: 25px;  /* Rounded corners */
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1); /* Inward shadow effect */
}

.btn-primary i,
.btn-primary em {
    margin-right: 0.5rem;
    color: #f5b342;  /* Ikon berwarna kuning */
}

.btn-primary:hover {
    background-color: #f5b342;  /* Kuning saat hover */
    color: #0b3d60;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2), 0 3px 8px rgba(0,0,0,0.1);
}

.btn-primary:hover i,
.btn-primary:hover em {
    color: #0d47a1;  /* Ikon berubah biru saat hover */
}

/* Tombol menu kebijakan (btn-secondary) */
.btn-secondary {
    display: block;
    background-color: #f5b342;  /* Kuning utama */
    color: #0b3d60;
    border: none;
    border-radius: 25px;  /* Rounded corners */
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1); /* Inward shadow effect */
}

.btn-secondary:hover {
    background-color: #0d47a1;  /* Biru saat hover */
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2), 0 3px 8px rgba(0,0,0,0.1);
}

/* Menu kebijakan menjadi satu kolom */
.one-column-list {
    display: block;
}

.one-column-list li {
    margin-bottom: 0.3rem;  /* Reduced margin between menu items */
}

/* Penyesuaian untuk layar kecil */
@media (max-width: 480px) {
    .one-column-list li {
        margin-bottom: 0.5rem; /* Slightly larger margin for smaller screens */
    }
}

/* Bagian kontak WhatsApp */
.whatsapp-contact {
    margin-bottom: 1.5rem;
    text-align: center;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25d366;  /* Warna asli WhatsApp */
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
    border: 1px solid rgba(255,255,255,0.2);
}

.whatsapp-link:hover {
    background-color: #128C7E;
    color: white;
    text-decoration: none;
}

.whatsapp-logo {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border-radius: 50%;
}

/* Gambar jurnal */
.journal-image {
    margin-bottom: 1.8rem;
    text-align: center;
}

.journal-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 2px solid #f5b342;  /* Bingkai kuning */
}

/* Menghilangkan style default untuk ikon Font Awesome jika perlu */
.fa, .fas, .far {
    font-family: "Font Awesome 5 Free" !important;
}

/* Container flex untuk 3 kolom 1 baris */
.image-card-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;         /* Tidak membungkus */
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    margin: 30px 0;
    overflow-x: auto;          /* Scroll horizontal jika layar sempit */
    padding: 10px 0;
}

/* Desain card dengan shadow halus */
.image-card {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);  /* shadow lembut */
    padding: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;              /* Lebar tetap 300px */
    box-sizing: border-box;    /* Padding termasuk dalam lebar */
    border: 1px solid #f0f0f0;
    flex-shrink: 0;            /* Mencegah card mengecil */
}

/* Efek hover: shadow lebih besar + bounce */
.image-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: #d0d0d0;
    animation: bounce 0.5s ease;
}

/* Animasi bounce */
@keyframes bounce {
    0%, 100% {
        transform: translateY(-8px) scale(1.02);
    }
    50% {
        transform: translateY(-12px) scale(1.02);
    }
}

/* Gambar dalam card */
.image-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.image-card:hover img {
    transform: scale(1.02);
}

/* Link dalam card */
.image-card a {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* Responsif: geser ke kiri jika layar < 1000px */
@media (max-width: 1000px) {
    .image-card-container {
        justify-content: flex-start;
    }
}


    .editor-table-container {
        overflow-x: auto;
        margin: 20px 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.05);
        border-radius: 12px;
    }

    .editor-table {
        width: 100%;
        border-collapse: collapse;
        font-family: 'Segoe UI', Roboto, Arial, sans-serif;
        font-size: 14px;
        background: white;
        min-width: 1000px; /* agar kolom tidak terlalu rapat */
    }

    .editor-table th {
        background-color: #2c3e50;
        color: white;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 14px 10px;
        white-space: nowrap;
        border-right: 1px solid #3a4a5a;
    }

    .editor-table th:last-child {
        border-right: none;
    }

    .editor-table td {
        padding: 12px 10px;
        border-bottom: 1px solid #eaeef2;
        vertical-align: top;
    }

    .editor-table tbody tr {
        transition: background 0.2s ease;
    }

    .editor-table tbody tr:hover {
        background-color: #f8fafd;
    }

    .editor-table tbody tr:nth-child(even) {
        background-color: #f9f9fc;
    }

    .editor-table a {
        color: #2c6b9e;
        text-decoration: none;
        border-bottom: 1px dotted #b0c4de;
    }

    .editor-table a:hover {
        color: #1a4b77;
        border-bottom: 1px solid #1a4b77;
    }

    .no-data {
        color: #999;
        font-style: italic;
    }

    .badge-role {
        display: inline-block;
        background: #e1f0fa;
        color: #1a4b77;
        font-size: 12px;
        font-weight: 500;
        padding: 2px 8px;
        border-radius: 20px;
        margin-left: 8px;
        white-space: nowrap;
    }

    .editor-table th:first-child, .editor-table td:first-child {
        padding-left: 18px;
    }

    .editor-table th:last-child, .editor-table td:last-child {
        padding-right: 18px;
    }