/* ===== BACKGROUND ===== */
.icon-flow-bg {
    position: relative;
    margin: 40px 0;
    padding: 20px 0;
    border-radius: 10px;
    overflow: hidden;

    background: url('/newsite/assets/images/bg3.jpg') center/cover no-repeat;
}
.icon-flow-bg::after{
    background: 
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 70%);
}

/* SAFE OVERLAY */
.icon-flow-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    /*background: rgba(0,0,0,0.35);*/
    pointer-events: none;
    z-index: 0;
}

.icon-flow-bg::before{
    display:none;
    
    content:"";
    
    position:absolute;

    top:0;
    left:0;
    width:100%;
    height:100%;

    background: url('/newsite/assets/images/bg3.jpg') center/cover no-repeat;

    filter: blur(8px);        /* reduce blur */
    transform: scale(1.03);   /* reduce spread */

    z-index:0;
}
.icon-flow-bg::after{
    content:"";
    position:absolute;
    inset:0;

    background: rgba(0,0,0,0.35); /* dark glass */

    z-index:1;
}

/* SECTION */

.icon-flow-section{
    position: relative;
    z-index: 2;
}
/* ROW */
.flow-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 0 20px;
}

.flow-row.reverse {
    flex-direction: row-reverse;
}

/* HEADING */
.heading {
    min-width: 220px;
    padding: 10px 15px;
    border-radius: 8px;

    background: linear-gradient(135deg,#1f3c88,#b01e4a);
    color: #fff;
    font-weight: 600;

    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

/* WRAPPER */
.flow-wrapper {
    flex: 1;
    overflow: hidden;
}

/* TRACK */
.flow-track {
    display: flex;
    width: max-content;
}

/* GROUP */
.flow-group {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* LOGOS */
.flow-track img {
    height: 55px;
    object-fit: contain;

    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.7));
    transition: 0.3s;
}

.flow-track img:hover {
    transform: scale(1.08);
}

/* ANIMATION */
.left-move {
    animation: scrollLeft 25s linear infinite;
}
.right-move {
    animation: scrollRight 25s linear infinite;
}
.slow {
    animation-duration: 35s;
}
.icon-flow-bg {
    position: relative;
    overflow: hidden;
    isolation: isolate;   /* 🔥 VERY IMPORTANT */
}

@keyframes scrollLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@keyframes scrollRight {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

/* MOBILE FIX (KEEP SAME ROW LAYOUT) */
@media(max-width:768px){

    .flow-row {
        flex-direction: row !important;   /* force same layout */
        align-items: center;
        gap: 10px;
        padding: 0 10px;
    }

    .heading {
        min-width: 120px;
        font-size: 12px;
        padding: 8px;
    }

    .flow-wrapper {
        flex: 1;
    }

    .flow-track img {
        height: 32px;
    }

    .flow-group {
        gap: 15px;
    }

    .icon-flow-bg::before{
        filter: blur(5px);     /* less blur on mobile */
        transform: scale(1.02);
    }
}