/* === IMAGE CAROUSEL FOR FEATURE SECTION === */

/* Container for the slideshow */
.image-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

/* Individual slides */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

/* Active slide */
.carousel-slide.active {
    opacity: 1;
}

/* Navigation dots container */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

/* Individual dot */
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Active dot */
.carousel-dot.active {
    background-color: var(--white-color);
    transform: scale(1.2);
}

/* Left and right navigation arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--dark-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
}

/* Left arrow positioning */
.carousel-arrow.prev {
    left: 10px;
}

/* Right arrow positioning */
.carousel-arrow.next {
    right: 10px;
}

/* Hover effects for arrows */
.carousel-arrow:hover {
    background-color: var(--white-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

/* Show arrows on hover */
.image-carousel:hover .carousel-arrow {
    opacity: 1;
}

/* Pause/play button */
.carousel-control {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--dark-color);
    opacity: 0;
}

.carousel-control:hover {
    background-color: var(--white-color);
    transform: scale(1.1);
}

.image-carousel:hover .carousel-control {
    opacity: 1;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .image-carousel {
        height: 220px;
    }
}

@media (min-width: 992px) {
    .image-carousel {
        height: 240px;
    }
}

/* Overlay for slide captions */
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 15px;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    opacity: 0;
}

.carousel-slide:hover .carousel-caption {
    transform: translateY(0);
    opacity: 1;
}