.modern-carousel-wrapper {
    position: relative;
    width: 100%;
}

.modern-carousel-wrapper .swiper {
    width: 100%;
    height: 100%;
}

.modern-carousel-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.modern-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modern-carousel-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Overlay */
.modern-carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-carousel-slide:hover .modern-carousel-overlay {
    opacity: 1;
}

.modern-carousel-content {
    position: relative;
    z-index: 2;
}

.modern-carousel-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.modern-carousel-description {
    margin: 0;
    font-size: 14px;
    color: #ffffff;
    line-height: 1.5;
}

/* Navigation Arrows */
.modern-carousel-wrapper .swiper-button-next,
.modern-carousel-wrapper .swiper-button-prev {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
}

.modern-carousel-wrapper .swiper-button-next:after,
.modern-carousel-wrapper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.modern-carousel-wrapper .swiper-button-next:hover,
.modern-carousel-wrapper .swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Pagination */
.modern-carousel-wrapper .swiper-pagination {
    bottom: 20px;
}

.modern-carousel-wrapper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #000000;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.modern-carousel-wrapper .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

.modern-carousel-wrapper .swiper-pagination-fraction {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.modern-carousel-wrapper .swiper-pagination-progressbar {
    background-color: rgba(0, 0, 0, 0.25);
}

.modern-carousel-wrapper .swiper-pagination-progressbar-fill {
    background-color: #000000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modern-carousel-title {
        font-size: 18px;
    }

    .modern-carousel-description {
        font-size: 12px;
    }

    .modern-carousel-overlay {
        padding: 20px;
    }

    .modern-carousel-wrapper .swiper-button-next,
    .modern-carousel-wrapper .swiper-button-prev {
        width: 35px;
        height: 35px;
    }

    .modern-carousel-wrapper .swiper-button-next:after,
    .modern-carousel-wrapper .swiper-button-prev:after {
        font-size: 16px;
    }
}

/* Effect-specific styles
   Only apply 3D rendering hints when Swiper is actually in 3D mode */
.modern-carousel-wrapper .swiper.swiper-3d .swiper-slide {
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Fade effect (class is on .swiper, not wrapper) */
.modern-carousel-wrapper .swiper.swiper-fade .swiper-slide {
    pointer-events: none;
}

.modern-carousel-wrapper .swiper.swiper-fade .swiper-slide-active {
    pointer-events: auto;
}

/* Cube effect (class is on .swiper, not wrapper) */
.modern-carousel-wrapper .swiper.swiper-cube .swiper-slide {
    pointer-events: auto;
}

/* Loading state */
.modern-carousel-slide img[src=""] {
    background-color: #f0f0f0;
}

/* Smooth transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

