.acs-applications {
    width: 100%;
}

.acs-viewport {
    width: 100%;
    overflow: hidden;
}

.acs-track {
    display: flex;
    width: max-content;
    gap: 24px;
    padding-left: 24px;
    animation: acs-marquee var(--acs-speed) linear infinite;
    will-change: transform;
}

/* =================================
   DESKTOP - 5 CARDS
================================= */

.acs-card {
    flex: 0 0 calc(
        (100vw - 48px - 96px) / 5
    );
    width: calc(
        (100vw - 48px - 96px) / 5
    );
    max-width: 340px;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(16, 35, 43, .08);
}

.acs-image-wrap {
    width: 100%;
    height: auto;
    overflow: hidden;
    background: #dfe4e1;
}

.acs-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.acs-card:hover .acs-image-wrap img {
    transform: scale(1.04);
}

.acs-card-body {
    padding: 22px 23px 0;
}

.acs-tag {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 999px;
    background: #dff0d9;
    color: #42683b;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: 13px;
}

.acs-card h3 {
    margin: 0 0 10px;
    color: #102f3b;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
}

.acs-card p {
    margin: 0;
    color: #6f8088;
    font-size: 15px;
    line-height: 1.6;
}

/* =================================
   INFINITE SLIDER
================================= */

@keyframes acs-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 12px));
    }
}

.acs-applications:hover .acs-track {
    animation-play-state: paused;
}

.acs-empty {
    padding: 30px;
    text-align: center;
}


/* =================================
   TABLET - 3 CARDS
================================= */

@media (min-width: 768px) and (max-width: 1024px) {

    .acs-track {
        gap: 18px;
        padding-left: 18px;
    }

    .acs-card {
        flex: 0 0 calc(
            (100vw - 36px - 36px) / 3
        );

        width: calc(
            (100vw - 36px - 36px) / 3
        );

        max-width: none;
        border-radius: 20px;
    }

    .acs-card h3 {
        font-size: 21px;
    }

    .acs-card p {
        font-size: 14px;
    }
}


/* =================================
   MOBILE - 2 CARDS
================================= */

@media (max-width: 767px) {

    .acs-applications {
        padding: 10px 0 45px;
    }

    .acs-track {
        gap: 12px;
        padding-left: 12px;
    }

    .acs-card {
        flex: 0 0 calc(
            (100vw - 36px) / 2
        );

        width: calc(
            (100vw - 36px) / 2
        );

        max-width: none;
     
        border-radius: 18px;
    }

    .acs-card-body {
        padding: 15px 15px 0;
    }

    .acs-card h3 {
        font-size: 18px;
        line-height: 1.2;
    }

    .acs-card p {
        font-size: 13px;
        line-height: 1.5;
    }

    .acs-tag {
        font-size: 10px;
        padding: 6px 10px;
    }
}


/* =================================
   REDUCED MOTION
================================= */

@media (prefers-reduced-motion: reduce) {

    .acs-track {
        animation: none;
    }
}