.text-carousel-marquee-container {
    --marquee-duration: 15s;
    --marquee-gap: 40px;
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    user-select: none;
}

.text-carousel-marquee-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: max-content;
    animation: textCarouselMarqueeScroll var(--marquee-duration) linear infinite;
}

/* Perfect linear scrolling keyframes for seamless loops - no calcs */
@keyframes textCarouselMarqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.text-carousel-marquee-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    flex-shrink: 0;
}

.text-carousel-slide {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    box-sizing: border-box;
    width: auto !important;
    padding-right: var(--marquee-gap); /* Gap managed natively within slides */
}

.text-carousel-slide-text {
    cursor: pointer;
    transition: color 0.3s ease;
    display: inline-block;
}

/* Autoplay Control Overrides */
.marquee-no-autoplay {
    animation-play-state: paused !important;
}

.marquee-pause-hover:hover {
    animation-play-state: paused;
}
