/* =========================================================
   JOURNEY SECTION
========================================================= */

.journey {
    width: 100%;

    padding: 30px 0;

    background: #ffffff;
}


/* =========================================================
   CONTAINER
========================================================= */

.journey-container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 0 15px;
}


/* =========================================================
   TITLE
========================================================= */

.journey-title {
    margin: 0 0 22px;

    text-align: center;

    color: #172b50;

    font-size: clamp(22px, 2.2vw, 29px);
    font-weight: 700;

    line-height: 1.2;
}


/* =========================================================
   HORIZONTAL SCROLL AREA
========================================================= */

.journey-scroll {
    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 0 5px 15px;

    scroll-snap-type: x proximity;
    scroll-behavior: smooth;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
    scrollbar-color: #b9cde7 #f1f5fa;
}


/* Chrome / Edge / Safari */

.journey-scroll::-webkit-scrollbar {
    height: 5px;
}

.journey-scroll::-webkit-scrollbar-track {
    background: #f1f5fa;

    border-radius: 10px;
}

.journey-scroll::-webkit-scrollbar-thumb {
    background: #b9cde7;

    border-radius: 10px;
}


/* =========================================================
   STEPS WRAPPER
========================================================= */

.journey-steps {
    position: relative;

    width: max-content;
    min-width: 100%;

    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;

    padding: 0 10px;
}


/* =========================================================
   CONNECTING DOTTED LINE
========================================================= */

.journey-steps::before {
    content: "";

    position: absolute;

    top: 28px;
    left: 65px;
    right: 65px;

    height: 1px;

    background-image: repeating-linear-gradient(
        to right,
        #c5d5e9 0,
        #c5d5e9 3px,
        transparent 3px,
        transparent 7px
    );

    z-index: 0;

    pointer-events: none;
}


/* =========================================================
   INDIVIDUAL STEP
========================================================= */

.journey-step {
    position: relative;

    flex: 0 0 135px;

    min-width: 135px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    scroll-snap-align: center;

    z-index: 1;
}


/* =========================================================
   ICON
========================================================= */

.journey .icon-wrap {
    position: relative;

    z-index: 2;

    width: 57px;
    height: 57px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    border: 1px solid #e1e9f3;
    border-radius: 50%;

    box-shadow: 0 1px 5px rgba(34, 72, 125, 0.04);
}

.journey .icon-wrap img {
    width: 32px;
    height: 32px;

    display: block;

    object-fit: contain;
}


/* =========================================================
   STEP NUMBER
========================================================= */

.journey .step-number {
    margin-top: 10px;

    color: #182640;

    font-size: 12px;
    font-weight: 700;

    line-height: 1.2;
}


/* =========================================================
   STEP TITLE
========================================================= */

.journey .step-title {
    width: 100%;

    margin: 7px 0 0;

    padding: 0 5px;

    color: #00008b;

    font-size: 11px;
    font-weight: 600;

    line-height: 1.4;

    overflow-wrap: break-word;
}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1200px) {

    .journey-scroll {
        overflow-x: visible;

        padding-left: 0;
        padding-right: 0;
    }

    .journey-steps {
        width: 100%;
        min-width: 0;

        display: grid;

        grid-template-columns: repeat(8, minmax(0, 1fr));

        padding: 0;
    }

    .journey-step {
        width: auto;
        min-width: 0;

        flex: none;
    }

}


/* =========================================================
   SMALL DESKTOP / TABLET
========================================================= */

@media (max-width: 1199px) {

    .journey-step {
        flex-basis: 140px;

        min-width: 140px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    .journey {
        padding: 25px 0;
    }

    .journey-container {
        padding: 0 12px;
    }

    .journey-title {
        margin-bottom: 20px;
    }

    .journey-step {
        flex-basis: 135px;

        min-width: 135px;
    }

    .journey .icon-wrap {
        width: 55px;
        height: 55px;
    }

    .journey .icon-wrap img {
        width: 30px;
        height: 30px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575px) {

    .journey {
        padding: 22px 0;
    }

    .journey-container {
        padding: 0 10px;
    }

    .journey-title {
        font-size: 20px;

        margin-bottom: 18px;
    }

    .journey-scroll {
        padding: 0 0 12px;
    }

    .journey-steps {
        padding: 0 5px;
    }

    .journey-step {
        flex: 0 0 125px;

        min-width: 125px;
    }

    .journey .step-title {
        font-size: 10.5px;
    }

}


/* =========================================================
   EXTRA SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .journey-step {
        flex-basis: 115px;

        min-width: 115px;
    }

    .journey .icon-wrap {
        width: 52px;
        height: 52px;
    }

    .journey .icon-wrap img {
        width: 28px;
        height: 28px;
    }

    .journey-steps::before {
        top: 26px;
    }

}