.card-slider {
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    display: flex; /* Tambahkan ini untuk menggunakan Flexbox */
    justify-content: center; /* Pusatkan card secara horizontal */
}

.card-slider__item {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.card-slider__img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.card-slider__content {
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: -20px;
}

/* Style untuk judul dan teks */
.card-slider__title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.card-slider__text {
    font-size: 16px;
    color: #555;
}

/* Style untuk tombol */
.card-slider__button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

/* Custom CSS untuk tampilan desktop */
@media screen and (min-width: 1024px) {
    .card-slider__item {
        padding: 2rem;
        width: 80%;
    }

    .card-slider__img {
        width: 100%; /* Sesuaikan proporsi gambar */
  
    }

    .card-slider__content {
        width: 100%; /* Sesuaikan proporsi konten */
    }
}

/* Custom CSS untuk tampilan mobile */
@media screen and (max-width: 768px) {
    .card-slider__item {
        padding: 1rem; /* Penyesuaian padding di tampilan mobile */
        width: 90%; /* Membuat card lebih lebar */
    }

    .card-slider__title {
        font-size: 20px; /* Ukuran font judul lebih kecil */
    }

    .card-slider__text {
        font-size: 14px; /* Ukuran font teks lebih kecil */
    }
}
