body {
    background-color: #ECE5DD;
    background-image: radial-gradient(#d1c7b7 1px, transparent 1px),
                      radial-gradient(#d1c7b7 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    padding-top: 75px;
}

.carousel .carousel-item img {
    border-radius: 15px;
    height: 400px; 
    object-fit: fill;
}

.carousel {
    margin: 20px auto;
    width: 95%;
}

/* Section Background */
.instagram-section {
    width: 100%;
    padding: 30px 0;
}

/* Wrapper supaya center dan full width */
.instagram-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Iframe Instagram */
.instagram-iframe {
    width: 100%;
    max-width: 1200px; /* biar tidak terlalu melebar di layar besar */
    height: 600px;
    border: none;
    border-radius: 15px;
}

/* Tombol Instagram */
.instagram-btn {
    background-color: #134784 !important;
    padding-left: 25px;
    padding-right: 25px;
    font-weight: 600;
}

/* atasnya kelas ig */
.card-info {
    /* Agar area card bisa diklik seluruhnya jika menggunakan stretched-link */
    position: relative;
    overflow: hidden; 
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: white; /* Mengatur background eksplisit */
}

.card-info:hover {
    transform: translateY(-3px); /* Efek sedikit naik saat di-hover */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; /* Efek bayangan lebih jelas */
}

.info-icon {
    width: 60px; /* Sesuaikan ukuran ikon */
    height: 60px;
    /* Tambahkan style lain jika perlu (misalnya filter atau margin khusus) */
}

.info-title {
    font-size: 1.25rem; /* Ukuran font judul */
    font-weight: 700;
    color: #333; /* Warna teks judul */
    margin-bottom: 0.1rem;
}

.info-subtitle {
    font-size: 0.9rem; /* Ukuran font subjudul/deskripsi */
    color: #6c757d; /* Warna teks subjudul */
    margin-top: 0;
}

/* Penyesuaian agar tampilan terlihat lebih rapi */
.my-5 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

/* Custom CSS narkoba */

@media (min-width: 900px) {
    .latest-training .row > .col-lg-3 {
        flex: 0 0 auto;
        width: 18%; /* 4 kartu per baris */
    }
}

.card-img-top {
    
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding-top: 0.5rem;
}

.card {
    overflow: hidden;
}

.hero-training {
            background-color: #2b3a8d; /* Warna latar belakang biru */
            padding: 100px 0;
            padding: 60px 0 120px 0;
            margin-top: -25px;
            background-image: url('../img/bgn.jpg'); 
            background-repeat: repeat;
            background-size: cover;
            color: white;
            text-align: center;
        }

    .hero-training h1 {
    font-size: 20px;  
    font-weight: 500; 
}

        /* Kontainer untuk ikon dan input, perlu position: relative */
        .search-container {
            position: relative; 
        }
        /* Gaya Ikon Pencarian */
        .search-icon {
            position: absolute;
            left: 20px; /* Jarak dari kiri */
            top: 50%;
            transform: translateY(-50%);
            color: rgba(255, 255, 255, 0.8);
            font-size: 1.1rem;
            pointer-events: none; 
            z-index: 10; /* Pastikan ikon di atas input */
        }
        /* Gaya Input Pencarian */
        .search-input {
            border-radius: 50px; 
            border: none;
            padding-left: 50px; /* Ruang agar teks tidak tertutup ikon */
            padding-top: 10px;
            padding-bottom: 10px;
            font-size: 1rem;
            background-color: rgba(255, 255, 255, 0.2); 
            color: white;
        }
        .search-input::placeholder {
            color: rgba(255, 255, 255, 0.8);
        }
        
        /* Gaya Tombol Filter dan Reset */
        .btn-custom {
            border-radius: 10px;
            font-weight: bold;
            padding: 10px 20px;
            border: none;
            color: white;
            transition: background-color 0.3s;
        }
        .btn-filter, .btn-reset {
            background-color: rgba(255, 255, 255, 0.3);
        }
        .btn-custom:hover {
            opacity: 0.9;
            color: white;
        }

/* Styling untuk bagian Desa Bersinar (DS) */
.ds-section {
    background-color: #0e3660;
    padding: 60px 0; /* Padding atas dan bawah */
    color: white; /* Warna teks putih */
}

.ds-section .row {
    /* Batasi lebar konten di tengah */
    max-width: 1000px; 
    margin: auto; 
}

/* Styling untuk judul */
.ds-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Styling untuk deskripsi */
.ds-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ffffff !important; 
}

/* Styling untuk kolom gambar */
.ds-image-col {
    padding-right: 40px;
    text-align: left
}

.ds-text-col {
    padding-left: 40px;
    text-align: justify; 
}

.DS-image {
    border-radius: 8px; /* Sudut sedikit melengkung (opsional) */
    display: block;
    margin: 0 auto;
}

/* Media query untuk tampilan di layar kecil (responsif) */
@media (max-width: 991.98px) {
    .ds-image-col {
        margin-bottom: 30px;
        padding-right: 15px; /* Kembalikan padding default */
        text-align: center;
    }
    
    .DS-image {
        max-width: 80%; /* Batasi ukuran gambar di layar kecil */
    }

    .ds-text-col {
        text-align: center;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* PDF */
.title-divider {
    height: 4px;
    width: 60px; /* Lebar garis */
    background-color: #0d6efd; /* Warna biru (Primary Bootstrap) */
    margin: 15px auto 25px auto; /* Posisi tengah */
    border-radius: 2px;
}

/* Style untuk PDF Viewer (Iframe) */
.pdf-viewer-container {
    background-color: #333; /* Latar belakang gelap seperti di screenshot */
    padding: 10px;
    border-radius: 4px;
}

.pdf-viewer {
    width: 100%;
    height: 85vh; /* Tinggi menyesuaikan 85% layar monitor */
    border: none;
    border-radius: 4px;
}

/* css home */
/* Container Utama */
.pinned-slider-container {
    width: 100%;
    overflow: hidden; /* Sembunyikan bagian yang meluap */
    padding: 10px 0;
}

/* Jalur Slide */
.pinned-slider-track {
    display: flex;
    gap: 20px;
    width: max-content; /* Pastikan lebar mengikuti isi */
    animation: scrollPinned 12s linear infinite; /* Animasi geser */
}

/* Item Card (Ukuran dikecilkan) */
/* Container Item */
.pinned-card-item {
    width: 250px;
    height: 290px; /* Ukuran lebih kecil yang Anda inginkan */
    flex-shrink: 0;
}

/* Card Utama */
.pinned-card-item .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Bagian Gambar (Dikecilkan agar hemat ruang) */
.pinned-card-item .card-img-top, 
.pinned-card-item .bg-secondary {
    height: 110px !important; /* Tinggi gambar diperkecil */
    object-fit: cover;
}

/* Body Card */
.pinned-card-item .card-body {
    padding: 12px !important;
    flex-grow: 1; /* Mengambil sisa ruang yang tersedia */
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

/* Membatasi Judul (Max 2 Baris) */
.pinned-card-item .card-title {
    font-size: 0.9rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
}

/* Membatasi Deskripsi (Max 2 Baris) - Sangat Penting agar tombol tidak hilang */
.pinned-card-item .card-text {
    font-size: 0.75rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

/* Footer Card (Tempat Tombol) */
.pinned-card-item .card-footer {
    padding: 8px 12px 12px 12px !important;
    background: white;
    border: none;
}

.pinned-card-item .btn-sm {
    padding: 5px !important;
    font-size: 0.75rem !important;
}

/* Efek Hover Card */
.hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Wrapper */
.pinned-slider-wrapper {
    width: 100%;
    overflow-x: auto;      /* horizontal scroll */
    overflow-y: hidden;    /* HILANGKAN vertical scrollbar */
    padding-bottom: 10px;
}

/* Slider */
.pinned-slider {
    display: flex;
    gap: 20px;
    width: max-content;
    scroll-behavior: smooth;
}

/* Hilangkan scrollbar (optional, tetap bisa scroll) */
.pinned-slider-wrapper::-webkit-scrollbar {
    height: 6px;
}
.pinned-slider-wrapper::-webkit-scrollbar-thumb {
    background: #0d6efd;
    border-radius: 10px;
}

/* Item */
.pinned-item {
    width: 250px;
    flex-shrink: 0;
}

/* Gambar */
.pinned-item .card-img-top {
    height: 120px;
    object-fit: cover;
}

/* Status laporan warga */
.badge-status-custom {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-pending {
    background-color: #e2e3e5;
    color: #41464b;
}

/* Hover Effect pada baris tabel */
.table hover tbody tr:hover {
    background-color: #f8f9fa;
    transition: 0.2s ease-in-out;
}

/* Background icon halus */
.bg-blue-light {
    background-color: rgba(13, 110, 253, 0.1);
}

/* Border halus pada tabel */
.table thead th {
    border-bottom: 2px solid #f0f0f0;
}

/* ===============================
   PROFIL DESA BERSINAR - SLIDER
================================ */

/* Wrapper scroll horizontal */
.desa-slider-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
}

/* Track slider */
.desa-slider {
    display: flex;
    gap: 20px;
    width: max-content;
    scroll-behavior: smooth;
}

/* Item */
.desa-item {
    width: 280px;
    flex-shrink: 0;
}

/* Card full height */
.desa-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Gambar */
.desa-img {
    height: 180px;
    object-fit: cover;
}

/* Body dibuat fleksibel */
.desa-body {
    flex-grow: 1; /* INI KUNCI AGAR FOOTER TURUN */
}

/* Deskripsi dibatasi agar rata */
.desa-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer selalu rata bawah */
.desa-footer {
    padding: 12px;
}

/* Scrollbar halus (opsional) */
.desa-slider-wrapper::-webkit-scrollbar {
    height: 6px;
}
.desa-slider-wrapper::-webkit-scrollbar-thumb {
    background-color: #0d6efd;
    border-radius: 10px;
}
