/* Hides the original Elementor arrows and dots since we do not need them */
.hide-navigation {
    display: none !important;
}

/* Scroller Container */
.angie-scroller {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.angie-scroller-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: angie-scroll 30s linear infinite;
    /* Allow pause on hover or focus-within */
}

.angie-scroller:hover .angie-scroller-track,
.angie-scroller:focus-within .angie-scroller-track,
.angie-scroller.is-paused .angie-scroller-track {
    animation-play-state: paused;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .angie-scroller-track {
        animation: none !important;
        flex-wrap: wrap;
        width: auto;
    }
}

/* Keyframes for sliding left */
@keyframes angie-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 10px));
    }
}

/* Each card styling */
.angie-scroller-item {
    flex-shrink: 0;
    /* Desktop: 3 cards */
    width: calc((100vw - 60px) / 3);
    max-width: 400px;
}

@media (max-width: 1024px) {
    .angie-scroller-item {
        /* Tablet: 2 cards */
        width: calc((100vw - 40px) / 2);
    }
}

@media (max-width: 767px) {
    .angie-scroller-item {
        /* Mobile: 1 card */
        width: calc(100vw - 40px);
    }
}

/* Play/Pause Button */
.angie-scroller-controls {
    text-align: center;
    margin-top: 15px;
}

.angie-scroller-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.angie-scroller-btn:hover {
    background: #555;
}
