﻿body {
    background: #fff;
}

/* ================= TIMELINE ================= */
.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-top: 80px;
}

    /* Desktop horizontal line */
    .timeline::before {
        content: "";
        position: absolute;
        top: 65px;
        left: 5%;
        width: 90%;
        height: 3px;
        background: #0d6efd;
        z-index: 1;
    }

/* ================= STEP ================= */
.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    min-width: 120px;
}

/* ================= BUBBLE ================= */
.timeline-bubble {
    width: 90px;
    height: 90px;
    border: 2px solid #9e9e9e;
    border-radius: 50%;
    background: #fff;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    /* Desktop arrow down */
    .timeline-bubble::after {
        content: "";
        position: absolute;
        bottom: -14px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-top: 14px solid #9e9e9e;
    }

    .timeline-bubble i {
        font-size: 28px;
        color: #0d6efd;
    }

/* Dot */
.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(45deg,#0d6efd,#6ee1ec);
    margin: 6px auto 0;
    position: relative;
    z-index: 3;
}

/* Label */
.timeline-label {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* ================================================= */
/* ================= MOBILE VIEW =================== */
/* ================================================= */

@media(max-width:768px) {

    .timeline {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 40px;
        padding-left: 40px;
    }

        /* Vertical line LEFT */
        .timeline::before {
            top: 0;
            left: 18px;
            width: 3px;
            height: 100%;
            transform: none;
        }

    /* Step row */
    .timeline-step {
        display: flex;
        align-items: center;
        text-align: left;
        margin-bottom: 50px;
    }

    /* Bubble */
    .timeline-bubble {
        margin: 0;
    }

        /* Arrow RIGHT */
        .timeline-bubble::after {
            top: 50%;
            left: -14px;
            bottom: auto;
            transform: translateY(-50%);
            border-top: 12px solid transparent;
            border-bottom: 12px solid transparent;
            border-right: 14px solid #9e9e9e;
            border-left: none;
        }

    /* Dot on line */
    .timeline-dot {
        position: absolute;
        left: 11px;
        margin: 0;
    }

    /* Label right side */
    .timeline-label {
        margin-left: 20px;
        max-width: 240px;
        font-size: 14px;
    }
}
