* CSS STATISTIK PENDUDUK */
.stat-box {
    padding: 18px 15px;
    border-radius: 12px;
    color: #fff;
    text-align: center;
    margin-bottom: 15px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
}

.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}


/* Penduduk - Blue Gradient */
.stat-penduduk {
    background: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%);
}


/* Dusun - Green Gradient */
.stat-dusun {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}


/* Laki-laki - Orange Gradient */
.stat-laki {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}


/* Perempuan - Pink Gradient */
.stat-perempuan {
    background: linear-gradient(135deg, #ec6f9f 0%, #f5a1c0 100%);
}


.stat-box h4 {
    font-size: 27px;
    font-weight: 700;
    margin: 0;
}

.stat-box p {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 600;
}

/* CSS UNTUK GRAFIK WELCOME */
.grafik-card {
    margin-bottom: 15px;
    border-radius: 6px;
}

.grafik-card .panel-heading {
    padding: 9px 12px;
    font-size: 13px;
}

.grafik-card .panel-body {
    padding: 10px;
}

.grafik-wrap {
    position: relative;
    height: 200px;
}

/* CSS UMKM */
.img-portfolio {
                position: relative;
            }

            .label-umkm {
                position: absolute;
                top: 8px;
                left: 8px;

                background: red;
                color: #fff;

                font-size: 11px;
                font-weight: 600;

                padding: 4px 10px;
                border-radius: 4px;

                box-shadow: 0 2px 6px rgba(0, 0, 0, .15);

                z-index: 2;
                pointer-events: none;
            }

            /* css baru  */
            .card-umkm {
                background: #fff;
                border-radius: 12px;
                overflow: hidden;
                margin-bottom: 25px;
                border: 1px solid #eee;
                box-shadow: 0 2px 12px rgba(0,0,0,.08);
                transition: .3s;
            }
            
            .card-umkm:hover {
                transform: translateY(-5px);
                box-shadow: 0 10px 25px rgba(0,0,0,.15);
            }
            
            .card-umkm:hover .img-berita {
                transform: scale(1.05);
            }
            
            .card-body {
                padding: 15px;
            }
            
            .judul-produk {
                font-size: 16px;
                font-weight: 600;
                line-height: 22px;
                min-height: 44px;
                margin: 0 0 10px;
                color: #333;
            }
            
            .owner {
                color: #777;
                font-size: 13px;
                margin-bottom: 8px;
            }
            
            .harga {
                font-size: 18px;
                color: #d9534f;
                font-weight: bold;
                margin-bottom: 15px;
            }
            
            .aksi-umkm {
                display: flex;
                gap: 8px;
            }
            
            .btn-wa,
            .btn-detail {
                flex: 1;
                border-radius: 25px;
                font-size: 12px;
                font-weight: 600;
                padding: 6px 0;
                text-align: center;
                transition: .3s;
            }
            
            .btn-wa:hover,
            .btn-detail:hover {
                transform: translateY(-2px);
            }
            
            .label-umkm {
                position: absolute;
                top: 10px;
                left: 10px;
                background: #28a745;
                color: #fff;
                padding: 5px 10px;
                border-radius: 20px;
                font-size: 11px;
                font-weight: 600;
                z-index: 2;
            }
            
            .label-umkm i {
                margin-right: 3px;
            }
            
            /* ==========================
               RESPONSIVE MOBILE
            ========================== */
            
            @media (max-width:768px){
            
                .img-berita{
                    height:90px;
                }
            
                .card-body{
                    padding:10px;
                }
            
                .judul-produk{
                    font-size:13px;
                    line-height:18px;
                    min-height:54px;
                    margin-bottom:6px;
                }
            
                .owner{
                    font-size:11px;
                    margin-bottom:5px;
                }
            
                .harga{
                    font-size:15px;
                    margin-bottom:10px;
                }
            
                .aksi-umkm{
                    gap:5px;
                }
            
                .btn-wa,
                .btn-detail{
                    font-size:10px;
                    padding:5px 0;
                    border-radius:18px;
                }
            
                .btn-wa i,
                .btn-detail i{
                    font-size:12px;
                }
            
            
            }

            /* CSS LIHAT SEMUA UMKM */
            .btn-umkm {
                background: #28a745;
                color: #fff;
                border: 1px solid #28a745;
                border-radius: 30px;
                padding: 8px 20px;
                font-size: 13px;
                font-weight: 600;
                transition: .3s;
            }

            .btn-umkm:hover,
            .btn-umkm:focus {
                background: #218838;
                border-color: #218838;
                color: #fff;
                text-decoration: none;
                transform: translateY(-2px);
                box-shadow: 0 6px 15px rgba(40, 167, 69, .25);
            }

            .btn-umkm i {
                margin-right: 6px;
            }

            /* CSS BERITA */
            .badge-terbaru {
                position: absolute;
                top: 8px;
                left: 8px;

                background: red;
                color: #fff;

                font-size: 11px;
                font-weight: 600;

                padding: 4px 8px;
                border-radius: 4px;

                z-index: 2;
                pointer-events: none;
            }

            /* css baru  */
            .card-berita {
                background: #fff;
                border-radius: 12px;
                overflow: hidden;
                margin-bottom: 25px;
                box-shadow: 0 2px 12px rgba(0,0,0,.08);
                transition: .3s;
                border: 1px solid #eee;
            }
            
            .card-berita:hover {
                transform: translateY(-5px);
                box-shadow: 0 10px 25px rgba(0,0,0,.15);
            }
            
            .card-body {
                padding: 15px;
            }
            
            .img-wrap {
                display: block;
                position: relative;
                overflow: hidden;
            }
            
            .img-berita {
                width: 100%;
                height: 140px;
                object-fit: cover;
                transition: .4s;
            }
            
            .card-berita:hover .img-berita {
                transform: scale(1.05);
            }
            
            .judul-berita {
                font-size: 16px;
                font-weight: 600;
                line-height: 24px;
                min-height: 48px;
                margin: 0 0 12px;
            }
            
            .judul-berita a {
                color: #333;
                text-decoration: none;
            }
            
            .judul-berita a:hover {
                color: #1c84c6;
            }
            
            .meta-berita {
                font-size: 12px;
                color: #888;
                margin-bottom: 15px;
            }
            
            .meta-berita span {
                display: inline-block;
                margin-right: 10px;
                margin-bottom: 5px;
            }
            
            .btn-read {
                display: block;
                width: 170px;
                margin: 0 auto;
                padding: 6px 18px;
                border-radius: 30px;
                font-size: 12px;
                font-weight: 600;
                text-align: center;
                transition: .3s;
            }
            
            .btn-read i {
                margin-left: 5px;
            }
            
            .btn-read:hover {
                transform: translateY(-2px);
            }
            
            /* =======================
               RESPONSIVE HP
            ======================= */
            
            @media (max-width:768px){
            
                .img-berita{
                    height:90px;
                }
            
                .card-body{
                    padding:10px;
                }
            
                .judul-berita{
                    font-size:13px;
                    line-height:18px;
                    min-height:54px;
                    margin-bottom:8px;
                }
            
                .meta-berita{
                    font-size:10px;
                    margin-bottom:10px;
                }
            
                .meta-berita span{
                    display:block;
                    margin-right:0;
                    margin-bottom:3px;
                }
            
                .btn-read{
                    width:120px;
                    padding:5px 10px;
                    font-size:11px;
                    border-radius:20px;
                }
            
            }

            /* CSS LIHAT SEMUA BERITA */
            .btn-berita {
                background: #1c84c6;
                color: #fff;
                border: 1px solid #1c84c6;
                border-radius: 30px;
                padding: 8px 20px;
                font-size: 13px;
                font-weight: 600;
                transition: .3s;
            }

            .btn-berita:hover,
            .btn-berita:focus {
                background: #176ca0;
                border-color: #176ca0;
                color: #fff;
                text-decoration: none;
                transform: translateY(-2px);
                box-shadow: 0 6px 15px rgba(28, 132, 198, .25);
            }

            .btn-berita i {
                margin-right: 6px;
            }

            

        /* CSS SAMBUTAN KEPALA DESA */
        .row-center{
            display:flex;
            flex-wrap:wrap;
        }
        
        @media (max-width:768px){
            .row-center{
                justify-content:center;
            }
        }

        /* CSS AJUKAN SURAT ONLINE */
        .callout-box {
        background: linear-gradient(135deg, #0d47a1, #d142f5);
        color: #fff;
        border-radius: 12px;
        padding: 25px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    .callout-box p {
        font-size: 16px;
        margin: 0;
    }

    .callout-box b {
        color: #ffe082;
    }

    .btn-cta {
        border-radius: 50px;
        font-size: 16px;
        padding: 12px;
        background: #ffffff;
        color: #0d47a1;
        border: none;
        font-weight: bold;
        transition: 0.3s;
    }

    .btn-cta:hover {
        background: #bbdefb;
        color: #0d47a1;
        transform: translateY(-2px);
    }

    .icon-box {
        font-size: 40px;
        margin-bottom: 10px;
    }

    /* CSS PRELOADER */
    /* css untuk preloader */
    #preloader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #ffffff;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999999;
        transition: opacity .6s ease;
    }

    #preloader.hide {
        opacity: 0;
        visibility: hidden;
    }

    .loader-content {
        text-align: center;
    }

    .logo-loader {
        width: 100px;
        animation: logoAnim 2s ease-in-out infinite;
        filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .15));
    }

    .loader-content p {
        margin-top: 18px;
        font-size: 16px;
        color: #666;
        font-weight: 600;
        letter-spacing: 1px;
    }

    @keyframes logoAnim {

        0% {
            transform: translateY(0) scale(1);
        }

        50% {
            transform: translateY(-8px) scale(1.08);
        }

        100% {
            transform: translateY(0) scale(1);
        }

    }
    
    /* css untuk waktu  */
    .jadwal-box {
        background-color: #fff;
        border-radius: 8px;
        padding: 10px;
        text-align: center;
        width: 110px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        margin: 5px;
    }

    .jadwal-box .jam {
        font-weight: bold;
        font-size: 18px;
    }

    @media (max-width: 768px) {
        .jadwal-box {
            width: 80px;
            font-size: 13px;
        }
    }

    /* css chart  */
    .pie-chart-container {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 300px;
        /* tinggi sama */
    }

    .pie-chart-container canvas {
        max-width: 100% !important;
        max-height: 100% !important;
    }

    /* css untuk foto kades  */
    /* Card modern */
    .card {
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        padding: 20px;
        margin-bottom: 40px;
        transition: all 0.35s ease;
        overflow: hidden;
        position: relative;
    }

    /* Hover lebih halus & elegan */
    .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    }

    /* Profil image wrapper */
    .profile-card {
        text-align: center;
    }

    /* Gambar */
    .profile-card img {
        width: 250px;
        height: 250px;
        object-fit: cover;
        /* biar penuh & rapi */
        border-radius: 12px;
        transition: transform 0.4s ease;
    }

    /* Zoom halus saat hover */
    .card:hover .profile-card img {
        transform: scale(1.05);
    }

    /* Nama / teks */
    .profile-card h4 {
        margin-top: 12px;
        font-weight: 600;
        font-size: 18px;
        color: #333;
    }

    .profile-card p {
        font-size: 14px;
        color: #777;
        margin-bottom: 0;
    }

    /* Garis aksen modern */
    .card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, #007bff, #00c6ff);
    }

    /* Responsive */
    @media (max-width: 768px) {
        .profile-card img {
            height: 240px;
        }
    }

    /* Label custom */
    .label-custom {
        margin-right: 5px;
        display: inline-block;
        transition: all 0.2s ease;
    }

    .label-custom:hover {
        transform: scale(1.1);
        opacity: 0.9;
    }

    /* Tambahan efek pada link */
    a {
        transition: color 0.3s ease;
    }

    a:hover {
        color: #0b67b2;
        text-decoration: none;
    }

    /* css slider  */
    .carousel .item img {
        transition: transform 5s ease;
        transform: scale(1.1);
    }

    .carousel .active img {
        transform: scale(1);
    }

    /* code untuk perangkat desa di halaman utama */
    .prestasi-card {
        border: 1px solid #ddd;
        border-radius: 10px;
        /* lebih halus */
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        height: 100%;
        display: flex;
        flex-direction: column;
        background: #fff;
        margin-bottom: 20px;
    }

    .prestasi-image {
        width: 100%;
        aspect-ratio: 3 / 4;
        max-height: 280px;
        /* kecilin dikit */
        object-fit: cover;
        border-radius: 14px 14px 0 0;
    }


    .prestasi-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }

    .prestasi-body {
        padding: 10px 15px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .prestasi-body h4 {
        margin: 5px 0;
        font-size: 16px;
        font-weight: bold;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        /* batas 2 baris */
        -webkit-box-orient: vertical;
    }