/* Beranda CSS */
.title-header h1 {
    font-weight: 600;
    font-size: 30px;
    margin-bottom: 10px;
}
.flexbox-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.title-header p {
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 30px;
}

.list-button {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
}

/* Container for Berita */
.container-berita {
    min-height: 100vh;
    padding: 60px 20px;
    text-align: center;
    align-items: center;
    color: #000; 
    background-image: url(/Assets/BackgroundImage/paternSasirangan.png), url(/Assets/BackgroundImage/paternSasirangan2.png);
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: right bottom, left top;
}


/* === GRID MODE (Desktop > 1100px) === */
.berita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    max-width: 1300px;
    width: 100%;
}

.card-berita {
    background-color: #da261d;
    color: white;
    border-radius: 15px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 200px;
    background-position: center;
    background-size: cover;
}

.card-body {
    padding: 20px;
}

.card-body h2 {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 10px;
}

.card-body p {
    text-align: center;
    font-weight: 500;
    font-size: 12px;
}

/* === SLIDER MODE (HP & TABLET ≤1100px) === */
@media (max-width: 1100px) {

    .berita-slider-wrapper {
        position: relative;
        width: 100%;
    }

    .berita-grid {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding-bottom: 10px;
    }

    .card-berita {
        flex: 0 0 75%; /* Lebar nyaman untuk tablet */
        scroll-snap-align: center;
    }

    /* Navigasi tombol */
    .slider-nav {
        position: absolute;
        top: 50%;
        width: 100%;
        display: flex;
        justify-content: space-between;
        transform: translateY(-50%);
        pointer-events: none;
    }

    .slider-btn {
        background: rgba(218, 38, 29, 0.9);
        border: none;
        color: white;
        font-size: 20px;
        padding: 10px 15px;
        border-radius: 50%;
        cursor: pointer;
        pointer-events: all;
    }

    .slider-btn:focus {
        outline: 3px solid yellow;
    }
}
.card-berita {
    display: flex;
    flex-direction: column;
    height: 420px; /* sesuaikan jika perlu */
}

.card-img {
    flex: 0 0 200px; /* tinggi gambar */
    background-size: cover;
    background-position: center;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.card-body p {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: revert;
}

/* Container for Kota Kabupaten */
.container-wilayah {
    min-height: 100vh;
    padding: 60px 20px;
    text-align: center;
    background-size: cover;
    background-position: center;
    align-items: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(/Assets/BackgroundImage/Sasirangan.png);
    color: white;
}
.button-wilayah{
    background-color: #ffffff;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button-wilayah:hover{
    background-color: rgb(232, 193, 30);
    transition: background-color 0.3s ease;
}

.button-wilayah-inside{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.button-wilayah-inside div:nth-child(1){
    width: 80px;
    height: 80px;   
}

.button-wilayah-inside div:nth-child(1) img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(3px 3px 4px #4b4b4b); 
}

.button-wilayah-inside div:nth-child(2){
    height: 40px;
    width: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.button-wilayah-inside div:nth-child(2) p{
    color: black;
    font-weight: 500;
    font-size: 14px;
    margin: 0;
}

/* Container for Layanan Publik */
.container-LayananPublik {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(/Assets/BackgroundImage/MotifSasiranganKalsel.png);
    min-height: 100vh;
    padding: 60px 20px;
    text-align: center;
    background-size: cover;
    background-position: center;
    align-items: center;
}
.Button-Layanan {
    background-color: #ffffff;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    cursor: pointer;
    animation: pulse 2s infinite;
    transition: background-color 0.3s ease;
}

.Button-Layanan:hover {
    background-color: rgb(232, 193, 30);
}


.Button-Layanan div{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

