.carousel {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: auto;
    min-height: 200px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: #eeeeee50;
    padding: 30px 60px;
    box-sizing: border-box;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    box-sizing: border-box;
}

.slide {
    min-width: 100%;
    /* flex-shrink: 0; */
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: nowrap;
    gap: 30px;
    padding: 10px 20px;
    box-sizing: border-box;
    transition:
        opacity 0.24s cubic-bezier(0.6, 0.04, 0.98, 0.34),
        visibility 0.24s ease-in-out;
}

.slide .element-item {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    box-sizing: border-box;
}

.slide .element-item img {
    max-width: 150px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.24s ease-out;
    box-sizing: border-box;
}

.slide .element-item img:hover {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel {
        padding: 20px 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .slide .element-item img {
        max-width: 110px;
        max-height: 900px;
    }

    .slide {
        gap: 20px;
        align-content: center;
    }

    .arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .arrow-left {
        left: 5px;
    }
    .arrow-right {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .carousel {
        padding: 15px 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .slide .element-item img {
        max-width: 100px;
        max-height: 80px;
    }

    .slide {
        gap: 10px;
        align-content: center;
    }

    .arrow {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    background: color-mix(in srgb,rgba(80, 80, 80, 0.64), #002947 24%);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

.arrow:hover {
    background: color-mix(in srgb, rgba(70, 70, 70, 0.8), #002947 24%);
}

.arrow-left {
    left: 15px;
}
.arrow-right {
    right: 15px;
}

.indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: color-mix(in srgb, rgba(80, 80, 80, 0.5), #002947 24%);
    cursor: pointer;
    transition: background 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.indicator.active {
    background: color-mix(in srgb, rgba(60, 60, 60, 1), #002947 24%);
}
