.ikm-popup {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.ikm-popup .modal-body {
    position: relative;
    /*padding: 42px 35px 35px;*/
}


/* Tombol close */

.ikm-popup-close {
    position: absolute;
    top: 12px;
    right: 15px;

    width: 32px;
    height: 32px;

    border: 0;
    border-radius: 50%;

    background: #f5f6f8;

    color: #6c757d;
    font-size: 20px;

    opacity: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.2s ease;
}

.ikm-popup-close:hover {
    background: #e9ecef;
    color: #343a40;
}


/* Icon */

.ikm-popup-icon {
    width: 40px;
    height: 40px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #eef4ff;
    color: #0d6efd;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 32px;
}


/* Judul */

.ikm-popup-title {
    margin-bottom: 12px;

    color: #003b7a;

    font-size: 25px;
    font-weight: 600;

    line-height: 1.35;
}


/* Text utama */

.ikm-popup-text {
    max-width: 470px;

    margin: 0 auto 8px;

    color: #495057;

    font-size: 15px;
    line-height: 1;
}


/* Deskripsi */

.ikm-popup-description {
    max-width: 470px;

    margin: 0 auto 25px;

    color: #6c757d;

    font-size: 14px;
    line-height: 1.1;
}

.ikm-popup-period {
    margin-top: -4px;
    margin-bottom: 18px;

    color: #0d6efd;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

/* Tombol */

.ikm-popup-actions {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 10px;
}

.ikm-popup-actions .btn {
    min-width: 115px;

    border-radius: 6px;

    font-weight: 500;
}


/* Mobile */

@media (max-width: 576px) {

    .ikm-popup .modal-body {
        padding: 38px 22px 28px;
    }

    .ikm-popup-icon {
        width: 62px;
        height: 62px;

        font-size: 29px;
    }

    .ikm-popup-title {
        font-size: 22px;
    }

    .ikm-popup-text {
        font-size: 15px;
    }

    .ikm-popup-description {
        font-size: 13px;
    }

    .ikm-popup-actions {
        flex-direction: column-reverse;
    }

    .ikm-popup-actions .btn {
        width: 100%;
    }
}

/* =========================================
   LAYANAN MASYARAKAT
========================================= */

.layanan-masyarakat {
    width: 100%;
    margin: 55px 0 60px;
}


/* =========================================
   HEADING
========================================= */

.layanan-masyarakat-heading {
    text-align: center;
    margin-bottom: 28px;
}

.layanan-masyarakat-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 20px;

    border-radius: 999px;

    background: #eef0ff;
    color: #3155d8;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;

    line-height: 1;
}

.layanan-masyarakat-heading h2 {
    margin: 12px 0 0;

    color: #063b82;

    font-size: clamp(22px, 2vw, 30px);
    font-weight: 700;

    line-height: 1.3;
}


/* =========================================
   GRID
========================================= */

.layanan-masyarakat-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 50px;

    width: 100%;
}


/* =========================================
   ITEM
========================================= */

.layanan-masyarakat-item {
    min-width: 0;
     border-left: 4px solid #0f172a; /* Aksen border tebal hanya di sisi kiri */
    border-top: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 4px 12px 12px 4px; /* Lengkungan disesuaikan dengan border kiri */
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}


/* =========================================
   BANNER
========================================= */

.layanan-banner {
    display: block;

    width: 100%;

    /*
     * Rasio ini harus sama dengan file gambar.
     * Browser dapat menghitung tinggi elemen
     * sebelum gambar selesai dimuat.
     */
    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 12px;

    background: #f5f7fa;

    text-decoration: none;

    /*
     * Memastikan gambar tidak menyebabkan
     * inline-element spacing.
     */
    line-height: 0;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================
   PICTURE
========================================= */

.layanan-banner picture {
    display: block;

    width: 100%;
    height: 100%;
}


/* =========================================
   IMAGE
========================================= */

.layanan-banner-img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    object-position: center;

    background: #fff;
}


/* =========================================
   HOVER DESKTOP
========================================= */

@media (hover: hover) and (pointer: fine) {

    /*.layanan-banner:hover {*/
    /*    border-color: rgba(0, 0, 0, 0.05);*/
    /*box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);*/
    /*transform: scale(1.02);*/
    /*}*/
    
    .layanan-masyarakat-item:hover {
    border-left-color: #f59e0b; /* Berubah menjadi warna gold/amber saat hover */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991.98px) {

    .layanan-masyarakat {
        margin: 45px 0 50px;
    }

    .layanan-masyarakat-grid {
        gap: 18px;
    }

    .layanan-masyarakat-heading {
        margin-bottom: 22px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767.98px) {

    .layanan-masyarakat {
        margin: 35px 0 40px;
    }

    .layanan-masyarakat-heading {
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .layanan-masyarakat-label {
        padding: 6px 16px;
        font-size: 11px;
    }

    .layanan-masyarakat-heading h2 {
        margin-top: 10px;

        font-size: 21px;
        line-height: 1.35;
    }

    /*
     * Satu kolom pada mobile.
     */
    .layanan-masyarakat-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .layanan-banner {
        border-radius: 10px;
    }

    /*
     * Tidak ada hover/transform pada mobile.
     */
    .layanan-banner:hover {
        transform: none;
        box-shadow: none;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .layanan-masyarakat-heading h2 {
        font-size: 19px;
    }

    .layanan-masyarakat-grid {
        gap: 14px;
    }

}


/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    .layanan-banner {
        transition: none;
    }

}
