/* assets/css/carousel.css */

.hero-carousel {
    position: relative;
    overflow: hidden;
    background-color: #000; /* Dark background for image loading */
}

.hero-carousel .carousel-item {
    height: 80vh; /* Responsive height */
    min-height: 400px; /* Minimum height */
    max-height: 800px; /* Maximum height */
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7); /* Slightly darken images for better text readability */
}

.hero-carousel .carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Overlay for better text visibility */
    padding: 0;
}

.hero-carousel .caption-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-carousel .carousel-caption h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-carousel .carousel-caption p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.carousel-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--custom-maroon);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 2px solid transparent;
}

.carousel-btn:hover {
    background-color: transparent;
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
    opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--custom-maroon);
    background-size: 50%;
}

/* Carousel Indicators */
.carousel-indicators {
    margin-bottom: 2rem;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: white;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: var(--custom-maroon);
    transform: scale(1.2);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .hero-carousel .carousel-caption h2 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-carousel .carousel-caption h2 {
        font-size: 2.5rem;
    }
    
    .hero-carousel .carousel-item {
        height: 70vh;
    }
}

@media (max-width: 768px) {
    .hero-carousel .carousel-caption h2 {
        font-size: 2rem;
    }

    .hero-carousel .carousel-item {
        height: 60vh;
    }

    .carousel-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-carousel .carousel-caption h2 {
        font-size: 1.75rem;
    }

    .hero-carousel .carousel-item {
        height: 50vh;
    }

    .hero-carousel .caption-content {
        padding: 1rem;
    }
}

/* Animation for caption text */
.carousel-caption {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.carousel-item.active .carousel-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Fade effect for slide transitions */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}