
/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    /* Explicit height to avoid mobile Safari percentage height collapse */
    height: 200px;
    min-height: 250px;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
}

.carousel-slide-1 {
    background-image: url('../images/home/hero1.png');
}

.carousel-slide-2 {
    background-image: url('../images/home/hero2.png');
}

.carousel-slide-3 {
    background-image: url('../images/home/hero3.png');
}

.carousel-slide-4 {
    background-image: url('../images/home/hero4.png');
}

/* Responsive heights for larger viewports */
@media (min-width: 768px) {
    .carousel-container {
        height: 320px;
    }
}

@media (min-width: 1024px) {
    .carousel-container {
        height: 420px;
    }
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    transition: background-color 0.3s;
    z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active,
.dot:hover {
    background-color: white;
}
