/* assets/css/carousel.css */

#carouselExampleCaptions {
    margin-top: 0 !important;
    position: relative;
    padding-top: 0 !important;
}

.carousel-inner {
    height: 60vh !important;
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
}

.carousel-item {
    height: 100%;
    position: relative;
    transition: transform 0.6s ease-in-out;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
}

.carousel-caption {
    position: absolute;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    transform: none !important;
    padding: 30px 20px !important;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)) !important;
    color: white !important;
    text-align: center !important;
    z-index: 10;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.carousel-caption h5 {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.8rem !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8) !important;
    color: #ffffff !important;
}

.carousel-caption p {
    font-size: 1.2rem !important;
    max-width: 800px !important;
    margin: 0 auto 1rem !important;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8) !important;
    color: #ffffff !important;
    text-align: center !important;
    line-height: 1.5 !important;
}

.carousel-caption .btn {
    margin-top: 15px;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(26, 82, 118, 0.9) !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.carousel-caption .btn:hover {
    background: rgba(41, 128, 185, 0.9) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px !important;
    height: 60px !important;
    background: rgba(26, 82, 118, 0.8) !important;
    border-radius: 50% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 20px !important;
    transition: all 0.3s ease !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(41, 128, 185, 0.9) !important;
    transform: translateY(-50%) scale(1.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.carousel-indicators {
    margin-bottom: 20px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: white;
    transform: scale(1.2);
}

@media (max-width: 992px) {
    .carousel-inner {
        height: 50vh !important;
    }
    
    .carousel-caption h5 {
        font-size: 1.8rem !important;
    }
    
    .carousel-caption p {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 768px) {
    .carousel-inner {
        height: 45vh !important;
    }
    
    .carousel-caption h5 {
        font-size: 1.6rem !important;
    }
    
    .carousel-caption p {
        font-size: 1rem !important;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px !important;
        height: 50px !important;
        margin: 0 10px !important;
    }
}

@media (max-width: 576px) {
    .carousel-inner {
        height: 40vh !important;
    }
    
    .carousel-caption h5 {
        font-size: 1.4rem !important;
    }
    
    .carousel-caption p {
        font-size: 0.9rem !important;
    }
}