:root {
    --stm-gap: 30px;
    --stm-speed: 20s;
    --stm-visible-items: 4;
    --stm-edge-width: 120px;
    --stm-edge-color: #ffffff;
    --stm-edge-opacity: 1;
    --stm-edge-softness: 50%;
    --stm-blur-amount: 12px;
}

.marquee-f6dd4665-container {
    width: 100%;
}

.marquee-f6dd4665-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    display: flex;
}

/* Edge Effects */
.marquee-f6dd4665-wrapper.edge-effect-enabled.effect-css-mask {
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black var(--stm-edge-width),
        black calc(100% - var(--stm-edge-width)),
        transparent
    );
    mask-image: linear-gradient(
        to right,
        transparent,
        black var(--stm-edge-width),
        black calc(100% - var(--stm-edge-width)),
        transparent
    );
}

.marquee-f6dd4665-edge {
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--stm-edge-width);
    z-index: 2;
    pointer-events: none;
    opacity: var(--stm-edge-opacity);
}

.marquee-edge-left {
    left: 0;
}

.marquee-edge-right {
    right: 0;
}

/* Gradient Overlay */
.marquee-f6dd4665-wrapper.effect-gradient .marquee-edge-left {
    background: linear-gradient(to right, var(--stm-edge-color) 0%, transparent var(--stm-edge-softness), transparent 100%);
}
.marquee-f6dd4665-wrapper.effect-gradient .marquee-edge-right {
    background: linear-gradient(to left, var(--stm-edge-color) 0%, transparent var(--stm-edge-softness), transparent 100%);
}

/* Blur Overlay */
.marquee-f6dd4665-wrapper.effect-blur .marquee-edge-left {
    backdrop-filter: blur(var(--stm-blur-amount));
    -webkit-backdrop-filter: blur(var(--stm-blur-amount));
    -webkit-mask-image: linear-gradient(to right, black 0%, transparent var(--stm-edge-softness), transparent 100%);
    mask-image: linear-gradient(to right, black 0%, transparent var(--stm-edge-softness), transparent 100%);
}
.marquee-f6dd4665-wrapper.effect-blur .marquee-edge-right {
    backdrop-filter: blur(var(--stm-blur-amount));
    -webkit-backdrop-filter: blur(var(--stm-blur-amount));
    -webkit-mask-image: linear-gradient(to left, black 0%, transparent var(--stm-edge-softness), transparent 100%);
    mask-image: linear-gradient(to left, black 0%, transparent var(--stm-edge-softness), transparent 100%);
}

.marquee-f6dd4665-track {
    display: flex;
    gap: var(--stm-gap);
    /* Make the track span full width based on its contents */
    width: max-content;
}

.marquee-f6dd4665-content {
    display: flex;
    gap: var(--stm-gap);
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    /* Remove min-width 100% so it sizes based on children instead */
    justify-content: flex-start;
    align-items: stretch;
    animation: marquee-scroll-f6dd4665 var(--stm-speed) linear infinite;
    will-change: transform;
}

/* Base Animation - Moves exact width of one content set */
@keyframes marquee-scroll-f6dd4665 {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(calc(-100% - var(--stm-gap)), 0, 0);
    }
}

/* Direction Handling */
.marquee-f6dd4665-wrapper[data-direction="right"] .marquee-f6dd4665-content {
    animation-direction: reverse;
}

/* Hover Pausing */
.marquee-f6dd4665-wrapper[data-pause="yes"]:hover .marquee-f6dd4665-content {
    animation-play-state: paused;
}

/* Hover Reversing */
.marquee-f6dd4665-wrapper[data-direction="left"][data-reverse="yes"]:hover .marquee-f6dd4665-content {
    animation-direction: reverse;
}
.marquee-f6dd4665-wrapper[data-direction="right"][data-reverse="yes"]:hover .marquee-f6dd4665-content {
    animation-direction: normal;
}

/* Item Base Styles */
.marquee-f6dd4665-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: all 0.3s ease;
    /* In auto mode, items size naturally */
}

/* Fixed Visible Items Mode */
.marquee-f6dd4665-wrapper.mode-fixed .marquee-f6dd4665-track {
    /* To calculate item width relative to viewport, the track width logic differs slightly, 
       but we define item width relative to the container */
}

.marquee-f6dd4665-wrapper.mode-fixed .marquee-f6dd4665-content {
    /* For fixed mode, the content group needs to equal the total width needed 
       for the exact number of items */
}

.marquee-f6dd4665-wrapper.mode-fixed .marquee-f6dd4665-item {
    /* The key change: The width must be calculated based on the container width (100vw or 100% of parent).
       Since the wrapper is 100% of the widget, we calculate the width of each item to exactly fit 
       (100% - total gap space) / visible items.
       Because flex children might shrink, we force the width. */
    width: calc((100vw - (var(--stm-gap) * (var(--stm-visible-items) - 1))) / var(--stm-visible-items));
    max-width: calc((100vw - (var(--stm-gap) * (var(--stm-visible-items) - 1))) / var(--stm-visible-items));
    flex: 0 0 calc((100vw - (var(--stm-gap) * (var(--stm-visible-items) - 1))) / var(--stm-visible-items));
    white-space: normal;
    text-align: center;
}

/* Ensure the fixed width calculations are scoped to the container's max width rather than full vw 
   when placed inside a constrained Elementor column */
.elementor-widget-smooth_text_marquee_f6dd4665 .marquee-f6dd4665-wrapper.mode-fixed .marquee-f6dd4665-item {
    /* Fallback width calculation using container queries would be ideal, but for cross-browser
       we use a percentage-based approach on a known full-width container context or force the user to adjust */
    /* This calculation uses the wrapper's 100% space */
    width: calc((100% - (var(--stm-gap) * (var(--stm-visible-items) - 1))) / var(--stm-visible-items));
    flex: 0 0 calc((100% - (var(--stm-gap) * (var(--stm-visible-items) - 1))) / var(--stm-visible-items));
}

.marquee-f6dd4665-item a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .marquee-f6dd4665-content {
        animation-play-state: paused !important;
    }
}