.fl-carousel-image-module {
    position: relative;
    width: 100%;
}

.fl-carousel-image-item {
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
}

.fl-carousel-image-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.fl-carousel-image-item:hover img {
    transform: scale(1.1);
}

.fl-carousel-image-module .swiper {
    padding-bottom: 50px;
    padding-top: 10px;
    /* Use padding to ensure slides have space and buttons don't hit edges */
    padding-left: 5px;
    padding-right: 5px;
    overflow: hidden;
    position: relative;
}

.fl-carousel-image-module .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    /* Ensure slides are visible during transitions */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.fl-carousel-image-module .swiper-pagination-bullet-active {
    background: #000;
}

/* Custom Navigation Styling */
.fl-carousel-image-module .swiper-button-next,
.fl-carousel-image-module .swiper-button-prev {
    background-color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    margin-top: -25px; /* Offset for pagination padding */
}

.fl-carousel-image-module .swiper-button-next:hover,
.fl-carousel-image-module .swiper-button-prev:hover {
    background-color: #f8f8f8;
    transform: translateY(-50%) scale(1.1);
}

.fl-carousel-image-module .swiper-button-next::after,
.fl-carousel-image-module .swiper-button-prev::after {
    font-size: 14px;
    font-weight: 900;
}

/* Position inside swiper to avoid cutting off */
.fl-carousel-image-module .swiper-button-next {
    right: 15px;
}

.fl-carousel-image-module .swiper-button-prev {
    left: 15px;
}

/* Responsive adjustment for navigation buttons */
@media (max-width: 768px) {
    .fl-carousel-image-module .swiper-button-next,
    .fl-carousel-image-module .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
    .fl-carousel-image-module .swiper-button-next::after,
    .fl-carousel-image-module .swiper-button-prev::after {
        font-size: 12px;
    }
    .fl-carousel-image-module .swiper-button-next {
        right: 5px;
    }
    .fl-carousel-image-module .swiper-button-prev {
        left: 5px;
    }
}

/* Custom Pagination Styling */
.fl-carousel-image-module .swiper-pagination {
    bottom: 0;
}

.fl-carousel-image-module .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    opacity: 0.5;
    background: #ccc;
}

.fl-carousel-image-module .swiper-pagination-bullet-active {
    opacity: 1;
    background: #1a1a1a;
}