/* Enhanced carousel styles */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

.carousel-nav {
    pointer-events: all !important;
}

/* Desktop styles */
@media (min-width: 768px) {
    .carousel {
        display: flex;
        transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        will-change: transform;
        height: 450px;
        touch-action: pan-y pinch-zoom;
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .carousel-item {
        flex: 0 0 calc(100% / 3);
        min-width: calc(100% / 3);
        padding: 0 10px;
        user-select: none;
        -webkit-user-select: none;
    }
}

/* Mobile styles */
@media (max-width: 767px) {
    .carousel-container {
        width: 100%;
        overflow: hidden;
        padding: 0;
    }
    
    .carousel {
        display: flex;
        transition: transform 0.3s ease;
        height: 300px;
        width: 100%;
        transform: translateX(0);
        pointer-events: none;
        touch-action: none;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
    }

    .carousel-item {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        height: 100%;
        position: relative;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    .carousel-content {
        width: 100%;
        height: 100%;
        position: relative;
    }

    .carousel-content img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        display: block;
        -webkit-user-drag: none;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        pointer-events: none;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
        touch-action: none;
    }
}

/* Navigation buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #0056fd;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: #0043ca;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

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

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

/* Position indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
    padding: 5px;
}

.indicator {
    width: 24px;
    height: 4px;
    border-radius: 2px;
    background: rgba(200, 200, 200, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #0056fd;
    transform: scale(1.05);
}