/* 
* Carousel Styles for Contoso Medical Travel
* This contains the styles for the homepage carousel
*/

.carousel-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-caption {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.carousel-caption h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.carousel-caption p {
    font-size: 22px;
    margin-bottom: 25px;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background: rgba(0, 120, 212, 0.8);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

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

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active, .indicator:hover {
    background: #fff;
    transform: scale(1.2);
}

/* Responsive Styles */
@media screen and (max-width: 991px) {
    .carousel-section {
        height: 500px;
    }
    
    .carousel-caption h2 {
        font-size: 36px;
    }
    
    .carousel-caption p {
        font-size: 18px;
    }
}

@media screen and (max-width: 768px) {
    .carousel-section {
        height: 400px;
    }
    
    .carousel-caption h2 {
        font-size: 28px;
    }
    
    .carousel-caption p {
        font-size: 16px;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media screen and (max-width: 576px) {
    .carousel-section {
        height: 350px;
    }
    
    .carousel-caption h2 {
        font-size: 24px;
    }
    
    .carousel-caption p {
        font-size: 14px;
    }
    
    .carousel-caption .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}
