.ks-wrapper-4139be9e {
    overflow: hidden;
    width: 100%;
    display: flex;
    background-color: #f8f9fa;
    padding: 30px 0;
    position: relative;
    box-sizing: border-box;
}

/* Gradient fade effects at the edges for smooth entry/exit */
.ks-wrapper-4139be9e::before, 
.ks-wrapper-4139be9e::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15%;
    max-width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.ks-wrapper-4139be9e::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa 0%, transparent 100%);
}

.ks-wrapper-4139be9e::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa 0%, transparent 100%);
}

.ks-track-4139be9e {
    display: flex;
    width: max-content;
    animation-name: scroll-4139be9e;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.ks-track-4139be9e:hover {
    animation-play-state: paused; /* Pause on hover for better UX */
}

.ks-item-4139be9e {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background-color: #ffffff;
    color: #333333;
    border-radius: 50px; /* Modern pill shape */
    margin: 0 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    font-weight: 500;
    font-size: 16px;
    white-space: nowrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.ks-item-4139be9e:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

@keyframes scroll-4139be9e {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move exactly half of the track width (one full set of items) */
        transform: translateX(-50%);
    }
}
