/* css/carousel.css */
.carousel-container {
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.4s ease-in-out;
}

.carousel-card {
    flex: 0 0 auto;
    width: auto;
    /* Controlled by JS */
    box-sizing: border-box;
    text-align: center;
    /* Center text */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center flex items like the pill */
    justify-content: center;
    /* Center vertically if height exists */
    background: #F8F9FA;
    /* Match section bg */
}

/* Responsive: 2 cards on tablet */
@media (max-width: 900px) {
    .carousel-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

/* Responsive: 1 card on mobile */
@media (max-width: 600px) {
    .carousel-card {
        flex: 0 0 100%;
    }
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #eee;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
    transition: all 0.2s;
}

.carousel-nav-btn:hover {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}