/* carousel.css */

/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
}

/* Carousel Wrapper */
.carousel {
    position: relative;
    width: 100%;
    height: 500px;
}

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

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

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Carousel Caption */
.carousel-caption {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    background: rgba(255, 255, 255, 0.6);
    padding: 20px 40px;
    border-radius: 10px;
    max-width: 90%;
    backdrop-filter: blur(5px);
}

.carousel-caption h2 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.carousel-caption p {
    font-size: 18px;
    margin: 0;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Navigation Arrows */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(123, 44, 191, 0.8);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.carousel-control:hover {
    background: rgba(123, 44, 191, 1);
    transform: translateY(-50%) scale(1.1);
}

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

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

/* Dots Indicators */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: #7b2cbf;
    border-color: white;
    transform: scale(1.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel {
        height: 350px;
    }

    .carousel-caption {
        bottom: 60px;
        padding: 15px 25px;
    }

    .carousel-caption h2 {
        font-size: 24px;
    }

    .carousel-caption p {
        font-size: 14px;
    }

    .carousel-control {
        padding: 10px 15px;
        font-size: 18px;
    }

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

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

    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .carousel {
        height: 250px;
    }

    .carousel-caption {
        bottom: 40px;
        padding: 10px 15px;
    }

    .carousel-caption h2 {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .carousel-caption p {
        font-size: 12px;
    }
}
