.timeline {
    padding: 50px 0;
    position: relative;
}

.timeline-nodes {
    padding-bottom: 25px;
    position: relative;
}

.timeline-nodes:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline h3,
.timeline p {
    padding: 5px 15px;
}

.timeline h3 {
    font-weight: lighter;
    color: var(--primary);
}

.timeline::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    border-left: 3px solid var(--primary);
    height: 100%;
    z-index: 1;
    transform: translateX(-50%);
}

.timeline-content {
    position: relative;
    border-radius: 0 0 10px 10px;
    background-color: var(--light);
}

.timeline-nodes:nth-child(odd) h3,
.timeline-nodes:nth-child(odd) p {
    text-align: right;
}

.timeline-nodes:nth-child(odd) .timeline-content::after {
    content: "";
    position: absolute;
    top: 5%;
    left: 100%;
    width: 0;
    border-left: 10px solid var(--light);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.timeline-nodes:nth-child(even) .timeline-content::after {
    content: "";
    position: absolute;
    top: 5%;
    right: 100%;
    width: 0;
    border-right: 10px solid var(--light);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}
.timeline-nodes:nth-child(odd) .timeline-image img{background-color: var(--primary);}
.timeline-nodes:nth-child(even) .timeline-image img{background-color: var(--secondary);}
.timeline-image img {
    width: 48px;
    height: 48px;
    border: 2px solid var(--light);
    border-radius: 50%;
    display: block;
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    box-shadow: 0px 3px 5px 0px rgba(10, 55, 90, 0.5)
}

/*small device style*/

@media (max-width: 767px) {

    .timeline-nodes:nth-child(odd) h3,
    .timeline-nodes:nth-child(odd) p {
        text-align: left
    }

    .timeline-nodes:nth-child(even) {
        flex-direction: row;
    }

    .timeline::before {
        left: 5%;
    }

    .timeline-image img {
        position: absolute;
        left: 5%;
    }

    .timeline-nodes:nth-child(odd) .timeline-content::after {
        left: auto;
        right: 100%;
        border-left: 0;
        border-right: 10px solid var(--light);
    }
}