/* Clients Section */
.clients__section * {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    -ms-box-sizing: border-box;
    outline: none;
}

.clients__section {
    position: relative;
    padding-top: 130px;
    padding-bottom: 136px;
}

.clients__section .clients__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.clients__section .clients__bg-image {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.clients__bg-image--mobile {
    display: none;
}

@media (max-width: 768px) {
    .clients__bg-image--desktop {
        display: none;
    }

    .clients__bg-image--mobile {
        display: block;
    }
}

.clients__section .clients__bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.1)), to(rgba(0, 0, 0, 0.1))), -webkit-gradient(linear, left bottom, left top, from(rgba(0, 23, 45, 0.3)), to(rgba(0, 23, 45, 0.3))), -webkit-gradient(linear, left top, left bottom, color-stop(13.03%, rgba(0, 81, 156, 0)), color-stop(64.09%, rgba(0, 23, 45, 0.7)));
    background: -o-linear-gradient(bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), -o-linear-gradient(bottom, rgba(0, 23, 45, 0.3), rgba(0, 23, 45, 0.3)), -o-linear-gradient(top, rgba(0, 81, 156, 0) 13.03%, rgba(0, 23, 45, 0.7) 64.09%);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), linear-gradient(0deg, rgba(0, 23, 45, 0.3), rgba(0, 23, 45, 0.3)), linear-gradient(180deg, rgba(0, 81, 156, 0) 13.03%, rgba(0, 23, 45, 0.7) 64.09%);
    -webkit-transform: matrix(-1, 0, 0, 1, 0, 0);
        -ms-transform: matrix(-1, 0, 0, 1, 0, 0);
            transform: matrix(-1, 0, 0, 1, 0, 0);
}

.clients__section .clients__container {
    position: relative;
    z-index: 1;
}

.clients__section .clients__top {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    color: var(--color-white, #fff);
}

.clients__title {
    margin-top: 0;
    margin-bottom: 20px;
}

.clients__title,
.clients__desc {
    max-width: 500px;
    width: 100%;
}

.clients__stats {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 4rem;
    margin-top: 112px;
    position: relative;
    left: -5px;
}

.clients__stat .clients__stat-icon {
    display: block;
    margin-bottom: 20px;
    max-width: 24px;
    overflow: hidden;
}

.clients__stat .clients__stat-icon img {
    width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: top;
}

.clients__stat .clients__stat-text {
    margin-top: 6px;
    white-space: nowrap;
}

.clients__stat {
    padding-bottom: 29px;
    padding-left: 31px;
    border-left: 5px solid rgba(255, 255, 255, 0.2);
    height: -webkit-max-content;
    height: -moz-max-content;
    height: max-content;
}

.clients__stats .clients__stat:nth-child(2) {
    margin-top: 98px;
    margin-left: 3vw;
}

.clients__stats .clients__stat:nth-child(3) {
    margin-top: -79px;
    margin-left: 11.6vw;
}

/* Logos Grid */
.clients__logos {
    margin-top: 103px;
}

.clients__logos-grid {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(161px, 1fr));
    gap: 20px;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.clients__logo {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    max-width: 161px;
    width: 100%;
    height: 100%;
    gap: 10px;
    border-radius: 10px;
    padding: 19px;
    background: #F6F6F6;
}

.clients__logo-img {
    max-width: 100%;
    height: auto;
}

/* Marquee Styles */
.clients__marquee-mobile {
    display: none;
    overflow: hidden;
    width: 100%;
}

.clients__marquee-mobile .marquee {
    position: relative;
    width: 100vw;
    max-width: 100%;
    height: auto;
    overflow: hidden;
    --marquee-speed: 50s; /* Default duration */
    --marquee-direction: normal;
}

.clients__marquee-mobile .marquee_scroll {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
}

.clients__marquee-mobile .marquee_collection {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-negative: 0;
        flex-shrink: 0;
    gap: 20px; /* Adjust gap between logos */
    /* animation: scroll var(--marquee-duration) linear infinite;
    animation-direction: var(--marquee-direction); */
    padding-right: 20px; /* Match gap to ensure seamlessness */
}

/* Pause on hover (optional) */
/* .marquee:hover .marquee_collection {
   animation-play-state: paused; 
} */

.clients__marquee-mobile .marquee_logo {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;
    width: 161px;
    height: 100px; 
    display: -webkit-box; 
    display: -ms-flexbox; 
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    background: #F6F6F6;
    border-radius: 10px;
    padding: 10px;
}

.clients__marquee-mobile .marquee_logo img {
    max-width: 100%;
    height: auto;
    max-height: 100%;
    -o-object-fit: contain;
       object-fit: contain;
}

.clients__marquee-mobile .marquee {
    margin-top: 20px;
}

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

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

@media (max-width: 991px) {
    .clients__stats {
        flex-direction: column;
        gap: 30px;
    }

    .clients__stats .clients__stat:nth-child(3),
    .clients__stats .clients__stat:nth-child(2) {
        margin-top: 0;
        margin-left: 0;
    }
}

@media (max-width: 1278px) {
    .clients__stat .clients__stat-text {
        white-space: wrap;
    }

    .clients__stats .clients__stat:nth-child(3) {
        margin-left: 5%;
    }
}

@media (max-width: 1278px) {
    .clients__stats .clients__stat:nth-child(3) {
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    .clients__title {
        font-size: 24px;
        line-height: 32px;
        letter-spacing: 0;
    }

    .clients__logos {
        display: none;
    }
    
    .clients__marquee-mobile {
        display: block;
    }

    .clients__stats {
        gap: 30px;
        margin-bottom: 45px;
        margin-top: 40px;
    }

    .clients__section {
        padding-top: 63px;
        padding-bottom: 81px;
    }

    .clients__stat .clients__stat-value {
        font-size: 20px;
        line-height: 28px;
        letter-spacing: 0;
    }

    .clients__stat .clients__stat-icon {
        margin-bottom: 10px;
    }

    .clients__stats .clients__stat:nth-child(2) {
        -webkit-box-ordinal-group: 4;
            -ms-flex-order: 3;
                order: 3;
    }

    .clients__stat {
        padding-bottom: 18px;
        min-height: 130px;
    }
}