/*
 * Curved Carousel Widget Styles
 */

.curved-carousel-container {
    position: relative;
    width: 100%;
    overflow: visible;
    /* Add some vertical space to see the curve */
    padding-bottom: 50px; 
    padding-top: 100px;
    margin-top: 20px;
}

.curved-carousel-wrapper {
    display: flex;
    position: relative;
    left: 0;
    will-change: transform; /* Performance optimization */
}

.curved-carousel-item {
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 15px;
    will-change: transform; /* Performance optimization for JS animations */
    transform-origin: center bottom;
}

.curved-carousel-item-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 20px;
    height: 100%;
}

.curved-carousel-item .item-image {
    max-width: 60px;
    height: 60px;
    object-fit: cover;
    margin-bottom: 15px;
}

.curved-carousel-item .item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.curved-carousel-item .item-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    font-weight: bold;
}

.curved-carousel-item .item-description {
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
}

/* --- Responsive --- */
/* On mobile, disable the curve and rotation effect */
@media (max-width: 767px) {
    .curved-carousel-container {
        padding-bottom: 20px;
    }
    .curved-carousel-item {
        /* JS will try to set the transform, so we override it */
        transform: none !important; 
    }
}