@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-500px * 3 - 3rem));
    }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* Mobile Features Slider */
@media (max-width: 768px) {
    .features-slider-container {
        overflow: hidden;
        position: relative;
        width: 100%;
    }

    .features-slider {
        display: flex;
        transition: transform 0.3s ease-in-out;
        width: 300%;
        /* 100% for each slide */
    }

    .feature-slide {
        flex: 0 0 33.333%;
        /* Each slide takes exactly 1/3 of the slider width */
        padding: 0 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .feature-slide-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .slider-dots {
        display: flex;
        justify-content: center;
        gap: 0.75rem;
        margin-top: 2rem;
        padding-bottom: 1rem;
        position: relative;
        z-index: 20;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.5);
        transition: all 0.3s ease;
        cursor: pointer;
        border: none;
    }

    .slider-dot.active {
        background-color: white;
        transform: scale(1.25);
    }
}

@media (min-width: 769px) {
    .features-slider-container {
        width: 100%;
    }

    .features-slider {
        display: block;
    }

    .feature-slide {
        padding: 0;
        margin-bottom: 2rem;
    }

    .slider-dots {
        display: none;
    }
}

/* Mobile Benefits Cards Slider */
@media (max-width: 768px) {
    .benefits-cards-container {
        overflow: hidden;
        position: relative;
        width: 100%;
    }

    .benefits-cards-slider {
        display: flex;
        transition: transform 0.3s ease-in-out;
        width: 300%;
        /* 100% for each slide */
    }

    .benefits-cards-slide {
        flex: 0 0 33.333%;
        /* Each slide takes exactly 1/3 of the slider width */
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateX(0);
        transition: transform 0.3s ease-in-out;
    }

    /* Updated Dots Styling */
    .benefits-cards-container .slider-dots {
        display: flex;
        justify-content: center;
        gap: 0.75rem;
        margin-top: 2rem;
        padding-bottom: 1rem;
        position: relative;
        z-index: 20;
    }

    .benefits-cards-container .slider-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: #dcdcdc;
        transition: all 0.3s ease;
        cursor: pointer;
        border: none;
        padding: 0;
    }

    .benefits-cards-container .slider-dot.active {
        background-color: #0871c7;
        transform: scale(1.2);
    }
}

@media (min-width: 769px) {
    .benefits-cards-container {
        width: 100%;
    }

    .benefits-cards-slider {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 3rem;
    }

    .benefits-cards-slide {
        flex: 0 0 auto;
    }

    .benefits-cards-container .slider-dots {
        display: none;
    }
}

/* Mobile Features Cards Slider */
@media (max-width: 768px) {
    .features-cards-container {
        overflow: hidden;
        position: relative;
        width: 100%;
    }

    .features-cards-slider {
        display: flex;
        transition: transform 0.3s ease-in-out;
        width: 200%;
        /* 100% for each slide */
    }

    .features-cards-slide {
        flex: 0 0 50%;
        /* Each slide takes exactly 1/2 of the slider width */
        padding: 0 1rem;
    }

    /* Updated Dots Styling */
    .features-cards-container .slider-dots {
        display: flex;
        justify-content: center;
        gap: 0.75rem;
        margin-top: 2rem;
        padding-bottom: 1rem;
        position: relative;
        z-index: 20;
    }

    .features-cards-container .slider-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: #dcdcdc;
        transition: all 0.3s ease;
        cursor: pointer;
        border: none;
        padding: 0;
    }

    .features-cards-container .slider-dot.active {
        background-color: #0871c7;
        transform: scale(1.2);
    }
}

@media (min-width: 769px) {
    .features-cards-container {
        width: 100%;
    }

    .features-cards-slider {
        display: grid;
    }

    .features-cards-slide {
        padding: 0;
    }
}