.team-container {
    display: flex;
    flex-wrap: wrap;

    justify-content: center;
}

/* Setiap card fleksibel mengikuti ukuran layar */
.single-team {
    flex: 1 1 calc(25% - 20px); /* 4 kolom di desktop */
    max-width: 300px; /* batasi lebar maksimum */
    border-radius: 10px;
    padding: 2px;
    transition: transform 0.3s ease-in-out;
    position: relative;
    box-sizing: border-box;
}

@media (max-width: 1199px) {
    .single-team {
        flex: 1 1 calc(33.33% - 20px); /* 3 kolom */
    }
}

@media (max-width: 991px) {
    .single-team {
        flex: 1 1 calc(50% - 20px); /* 2 kolom */
    }
}

@media (max-width: 575px) {
    .single-team {
        flex: 1 1 100%; /* 1 kolom */
    }
}

/* Gambar & tombol tetap */
.team-img {
    position: relative;
    width: 100%;
    margin: auto;
}

.team-img img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    object-fit: cover;
}

/* Caption menyesuaikan, tanpa width paksa */
.team-caption {
    margin-top: 10px;
    text-align: center;
}

.team-caption h3 a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: bold;
}

/* Tombol tetap seperti sebelumnya */
.book-btn {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 30px;
    background-color: #ff5733;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.book-btn:hover {
    background-color: #b53735;
    transform: translate(-50%, -50%) scale(1.1);
}

.single-team:hover .book-btn {
    display: inline-block;
}

.team-area .single-team .team-caption {
    width: 270px !important; /* sebelumnya 350px */
}
