/* hero-image-carousel.css - Custom CSS for the hero image fade carousel */

.hero-image-carousel {
    position: relative;
    width: 550px;
    height: 490px; /* Changed to rectangular for better proportion */
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
    border-radius: 25px;
    backdrop-filter: blur(15px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 4px 16px rgba(0,0,0,0.05);
    animation: carouselGlow 8s ease-in-out infinite;
    margin: 0 auto;
    border: none;
}

.hero-image-carousel::before {
    /* Removed rotating border for seamless integration */
}

@keyframes carouselGlow {
    0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 4px 16px rgba(0,0,0,0.05); }
    50% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 4px 16px rgba(255,255,255,0.1); }
}

@media (max-width: 991px) {
    .hero-image-carousel { width: 390px; height: 260px; }
    .hero-image-carousel::before { border-radius: 23px; }
}

@media (max-width: 575px) {
    .hero-image-carousel { width: 340px; height: 230px; }
    .hero-image-carousel::before { border-radius: 23px; }
}

.hero-image-carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.2);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    will-change: opacity, transform;
}

.hero-image-carousel-item.active {
    opacity: 1;
    transform: scale(1);
}

.hero-image-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
