.phases_deployment {
}

.extra_space .phases__small_container {
    min-height: 525px;
    background-position-x: 0px;
}

.phases__small_container {
    min-height: 425px;
    border-radius: 17.4px;
    background-color: #F3F8FF;
    padding: 35px;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 1%;
    flex: 0 0 32.333333% !important;
    margin-bottom: 1%;
    background-position-x: 30px;
}

.phases__small_container:last-of-type {
    margin-right: 0%;
}

.phases__subtitle {
    margin-bottom: 0.4rem !important;
    font-size: 12px;
    font-weight: 700;
    color: #0075FF;
}

.phases__title {
    margin-bottom: 0.4rem !important;
    font-size: 17px;
    font-weight: 700;
    color: #001B2F;
}

.phases__text {
    font-size: 14px;
    font-weight: 500;
    color: #001B2F;
}

/* DESKTOP STYLES FOR BIG CONTAINER */
.phases__big_container {
    min-height: 285px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position-x: 89%;
    border-radius: 15px;
    padding: 35px;
    background-color: #F3F8FF;
    flex: 0 0 100% !important; /* Force full width on desktop */
    margin-top: 20px;
}

.phases__big_container .phases__subtitle,
.phases__big_container .phases__title,
.phases__big_container .phases__text {
    width: 40%;
}

@media (max-width: 767px) {
    .phases_deployment .row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
        padding: 0 0 30px 0 !important;
        margin: 0 !important;
        scrollbar-width: none;
    }

    .phases_deployment .row::-webkit-scrollbar {
        display: none;
    }

    /* Make both types of containers look the same in the scroll loop */
    .phases__small_container, 
    .phases__big_container {
        flex: 0 0 95% !important;
        max-width: 95% !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        min-height: auto !important;
        padding: 25px 20px !important;
        border-radius: 15px;
        background-image: none !important;
    }

    .phases__big_container .phases__subtitle,
    .phases__big_container .phases__title,
    .phases__big_container .phases__text {
        width: 100% !important;
    }

    .phases__subtitle { font-size: 11px; }
    .phases__title { font-size: 16px; }
    .phases__text { font-size: 13px; }
}