/* Custom Carousel Styling */
.carousel {
    margin-bottom: 0;
}

.carousel-item {
    height: 650px;
    background-color: #f8f9fa;
    position: relative;
}

/* Overlay image style */
.overlay-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.9;
}

/* Caption styling */
.carousel-caption {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 8px;
    bottom: 80px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.carousel-caption.text-start {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.carousel-caption.text-end {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

.carousel-caption .btn {
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    margin-top: 15px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.carousel-caption .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.carousel-caption h1, .carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

/* Indicators styling */
.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.carousel-indicators button.active {
    background-color: white;
}

/* Controls styling */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Fade transition */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .carousel-item {
        height: 480px;
    }
    
    .carousel-caption {
        padding: 15px;
        bottom: 60px;
        max-width: 500px;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 420px;
    }
    
    .carousel-caption {
        padding: 10px;
        bottom: 40px;
        max-width: 90%;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .carousel-caption .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 420px;
    }
    
    .carousel-caption {
        bottom: 20px;
    }
    
    .carousel-caption h1 {
        font-size: 1.25rem;
    }
    
    .carousel-caption p {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
}
