/* Custom Image Carousel Styles */

.custom-image-carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.custom-image-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.custom-carousel-swiper {
    position: relative;
    width: 100%;
    height: auto;
}

/* Ensure all images have uniform dimensions */
.custom-carousel-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.custom-carousel-slide img {
    display: block;
    width: 400px;
    height: 300px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
}

/* Single slide view styling */
.swiper-slide-active.custom-carousel-slide img {
    max-width: 100%;
    height: auto;
}

.custom-carousel-slide:hover img {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Navigation Arrows - Centered Vertically */
.custom-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.custom-carousel-arrow svg {
    width: 20px;
    height: 20px;
}

.custom-carousel-prev {
    left: 10px;
}

.custom-carousel-next {
    right: 10px;
}

.custom-carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

/* Hide arrows on mobile for better UX */
@media (max-width: 768px) {
    .custom-carousel-arrow {
        width: 35px;
        height: 35px;
    }
    
    .custom-carousel-arrow svg {
        width: 18px;
        height: 18px;
    }
    
    .custom-carousel-prev {
        left: 5px;
    }
    
    .custom-carousel-next {
        right: 5px;
    }
}

/* Pagination Dots */
.swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 20px;
    text-align: center;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
    margin: 0 5px !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #333;
    width: 25px;
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .custom-carousel-slide img {
        width: 350px;
        height: 260px;
    }
}

@media (max-width: 768px) {
    .custom-carousel-slide img {
        width: 300px;
        height: 225px;
    }
}

@media (max-width: 480px) {
    .custom-carousel-slide img {
        width: 280px;
        height: 210px;
    }
    
    .custom-image-carousel-container {
        padding: 0 40px;
    }
}

/* Smooth transitions */
.swiper-slide {
    transition: opacity 0.3s ease;
}

.swiper-slide-active {
    opacity: 1;
}

.swiper-slide:not(.swiper-slide-active) {
    opacity: 0.7;
}

/* Optional: Add loading state */
.custom-carousel-swiper.loading {
    min-height: 300px;
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Link hover effect */
.custom-carousel-slide a {
    display: block;
    position: relative;
    overflow: hidden;
}

.custom-carousel-slide a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

.custom-carousel-slide a:hover::before {
    background: rgba(0, 0, 0, 0.1);
}
