.carousel-3d-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 40px 0;
}

.carousel-3d-wrapper {
    overflow: hidden;
}

.carousel-3d-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 400px;
    perspective: 1000px;
}

.carousel-slide {
    position: absolute;
    width: 400px !important;
    height: 400px !important;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.6s ease-in-out;
    transform-style: preserve-3d;
    cursor: pointer;
    overflow: hidden;
}

.carousel-slide.active-slide {
    width: 415px !important;
    height: 415px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.carousel-slide:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.carousel-slide.active-slide:hover {
    transform: translateX(0) scale(1) translateY(-10px) !important;
}

.carousel-slide:nth-child(1) {
    transform: translateX(-347px) scale(0.8);
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

.carousel-slide:nth-child(2) {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 3;
    pointer-events: all;
}

.carousel-slide:nth-child(3) {
    transform: translateX(347px) scale(0.8);
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

.carousel-slide.active-slide {
    transform: translateX(0) scale(1) !important;
    opacity: 1 !important;
    z-index: 3 !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.slide-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.carousel-slide.active-slide .slide-image {
    height: 250px;
}

.slide-image::before {
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    content: '';
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
    transform: skewX(-25deg);
}

.carousel-slide:hover .slide-image::before {
    animation: shine .75s;
}

@keyframes shine {
    100% {
        left: 125%;
    }
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-slide:hover .slide-image img {
    transform: scale(1.1);
}

.active-slide .slide-image img {
    transform: scale(1.05);
}

.slide-content {
    padding: 20px;
    text-align: center;
}

.slide-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    transition: color 0.3s ease;
    display: inline-block;
}

.slide-content h3::after {
    content: '→';
    margin-left: 10px;
    font-size: 22px;
    transition: color 0.3s ease;
    display: inline-block;
    vertical-align: top;
    margin-top: 0px;
}

.carousel-slide:hover .slide-content h3::after {
    color: #D4B54A;
}

.slide-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 4;
    transform: translateY(-50%);
}

.nav-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .carousel-3d-wrapper {
        height: 320px;
    }
    
    .carousel-slide {
        width: 300px;
        height: 300px;
    }
    
    .carousel-slide:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
    }
    
    .carousel-slide:nth-child(1) {
        transform: translateX(-260px) scale(0.8);
        pointer-events: none;
    }
    
    .carousel-slide:nth-child(3) {
        transform: translateX(260px) scale(0.8);
        pointer-events: none;
    }
    
    .carousel-slide.active-slide {
        width: 320px !important;
        height: 320px !important;
    }
    
    .carousel-slide.active-slide .slide-image {
        height: 180px;
    }
    
    .slide-image {
        height: 170px;
    }
    
    .slide-content {
        padding: 15px;
    }
    
    .slide-content h3 {
        font-size: 16px;
    }
    
    .slide-content p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .carousel-slide {
        width: 250px;
        height: 250px;
    }
    
    .carousel-slide:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 12px 25px rgba(0,0,0,0.18) !important;
    }
    
    .carousel-slide:nth-child(1) {
        transform: translateX(-220px) scale(0.8);
        pointer-events: none;
    }
    
    .carousel-slide:nth-child(3) {
        transform: translateX(220px) scale(0.8);
        pointer-events: none;
    }
    
    .carousel-slide.active-slide {
        width: 280px !important;
        height: 280px !important;
    }
    
    .slide-image {
        height: 140px;
    }
    
    .carousel-slide.active-slide .slide-image {
        height: 160px;
    }
}