ol {
    position: relative;
    display: block;
    width: 100%;
}

ol::before {
    content: "";
    position: absolute;
    height: 2.5px;
    background: #223460;
    left: 0;
    right: 2px;
    top: 11px;
}


/* ol>li:first-child {
    left: 0;
}

ol>li:last-child {
    right: 0;
} */


/* ---- Timeline elements ---- */

.li>p {
    font-weight: bold;
    font-size: 14px;
}

.li:not(.li:first-child):not(.li:last-child) {
    position: relative;
    display: inline-block;
    float: left;
    width: 23.59%;
    height: 50px;
}

.li:first-child {
    float: left;
    position: relative;
    display: inline-block;
    left: 0;
    width: 10px;
    height: 10px;
}

.li:last-child {
    float: left;
    position: relative;
    display: inline-block;
    right: 0;
    width: 10px;
    height: 10px;
}

.li .point:not(.li:first-child .point):not(.li:last-child .point) {
    content: "";
    top: 7px;
    left: 47.5%;
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
}

.li:nth-child(6) .point {
    border: 1px solid #024B94;
    background: #024B94;
}

.li:first-child .point {
    top: 7px;
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-text);
    border-radius: 50%;
    background: var(--color-text);
    position: absolute;
}

.li:last-child .point {
    top: 7px;
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-text);
    border-radius: 50%;
    background: var(--color-text);
    position: absolute;
}

.li:nth-child(2)::before {
    content: '';
    position: absolute;
    width: 3.5px;
    background-color: #024B94;
    left: 49%;
    bottom: 69%;
    height: 56px;
}

.li:nth-child(3)::before {
    content: '';
    position: absolute;
    width: 2.5px;
    background-color: #E4B84D;
    left: 49%;
    top: 14%;
    height: 56px;
}

.li:nth-child(4)::before {
    content: '';
    position: absolute;
    width: 2.5px;
    background-color: #0A7AA0;
    left: 49%;
    bottom: 69%;
    height: 56px;
}

.li:nth-child(5)::before {
    content: '';
    position: absolute;
    width: 3.5px;
    background-color: #024B94;
    left: 49%;
    top: 14%;
    height: 56px;
}


/* 
.li:nth-child(6)::before {
    content: '';
    position: absolute;
    width: 2.5px;
    background-color: #024B94;
    left: 49%;
    bottom: 69%;
    height: 56px;
} */

.li .description:not(.li:nth-child(2) .description):not(.li:nth-child(4) .description):not(.li:nth-child(6) .description)::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    left: 47.5%;
    top: -18px;
    border-radius: 50%;
}

.li:nth-child(2) .diplome::before {
    background-color: #024B94;
    border: 4px solid #024B94;
}

.li:nth-child(4) .diplome::before {
    background-color: #0A7AA0;
    border: 4px solid #0A7AA0;
}

.li:nth-child(6) .diplome::before {
    background-color: #024B94;
    border: 4px solid #024B94;
}

.li:nth-child(3) .description::before {
    background-color: #E4B84D;
    border: 4px solid #E4B84D;
}

.li:nth-child(5) .description::before {
    background-color: #024B94;
    border: 4px solid #024B94;
}

.li:nth-child(2) .diplome {
    background-color: #024B94;
    border: 4px solid #024B94;
}

.li:nth-child(4) .diplome {
    background-color: #0A7AA0;
    border: 4px solid #0A7AA0;
}

.li:nth-child(6) .diplome {
    background-color: #024B94;
    border: 4px solid #024B94;
}

.li:nth-child(3) .description {
    background-color: #E4B84D;
    border: 4px solid #E4B84D;
}

.li:nth-child(5) .description {
    background-color: #024B94;
    border: 4px solid #024B94;
}

.li .diplome {
    width: 100%;
    font-size: 14px;
}

.li .diplome:not(.li:nth-child(3) .diplome):not(.li:nth-child(5) .diplome)::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    left: 47.5%;
    bottom: -17px;
    border-radius: 50%;
}


/* .li:nth-child(6) {
    transform: translateY(-50%);
} */

.li:nth-child(2) .point {
    background-color: #024B94;
}

.li:nth-child(3) .point {
    background-color: #E4B84D;
}

.li:nth-child(4) .point {
    background-color: #0A7AA0;
}

.li:nth-child(5) .point {
    background-color: #024B94;
}

.li .description {
    display: block;
    padding: 10px;
    width: 80%;
    position: relative;
    z-index: 1;
    margin: 35px auto 0;
    text-align: center;
    font-size: 14px;
}

.li .diplome:not(.li:nth-child(2) .diplome):not(.li:nth-child(4) .diplome):not(.li:nth-child(6) .diplome) {
    position: absolute;
    bottom: 100%;
    left: 0%;
    color: #023E8A;
    text-align: center;
    text-transform: uppercase;
}

.li .diplome:not(.li:nth-child(3) .diplome):not(.li:nth-child(5) .diplome) {
    position: absolute;
    bottom: 100px;
    left: 0%;
    color: white;
    text-align: center;
    padding: 15px 5px;
    text-transform: uppercase;
}

.li .description:not(.li:nth-child(2) .description):not(.li:nth-child(4) .description):not(.li:nth-child(6) .description) {
    display: block;
    padding: 15px 10px;
    width: 100%;
    position: relative;
    z-index: 1;
    margin: 76px auto 0;
    text-align: center;
    font-size: 14px;
    color: #fff;
    text-transform: uppercase;
}

.li .description:not(.li:nth-child(3) .description):not(.li:nth-child(5) .description) {
    display: block;
    padding: 10px;
    width: 85%;
    position: relative;
    z-index: 1;
    margin: 15px auto 0;
    text-align: center;
    font-size: 14px;
    color: #023E8A;
    text-transform: uppercase;
}


/* .description::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #f4f4f4;
    position: absolute;
    top: -5px;
    left: 45%;
} */

@media (max-width: 37.5em) {
    .timeline {
        position: relative;
        margin: 0 auto;
        display: block !important;
    }
    /* The actual timeline (the vertical ruler) */
    .timeline::after {
        content: '';
        position: absolute;
        width: 3px;
        background-color: #012A6D;
        top: 7%;
        bottom: 7%;
        left: 50%;
        margin-left: -1px;
    }
    .text-content-right>.timeline-text___font {
        color: #fff;
        font-size: 20px;
        text-transform: uppercase;
    }
    .text-content-left>.timeline-text___font {
        color: #012A6D;
        font-size: 20px;
        text-transform: uppercase;
    }
    /* Container around content */
    .time-container {
        padding: 10px 0px;
        position: relative;
        background-color: inherit;
        width: 100%;
        display: flex;
    }
    /* The circles on the timeline */
    .time-container::after {
        content: '';
        position: absolute;
        width: 15px;
        height: 15px;
        left: 50%;
        transform: translate(-50%, -50%);
        top: 50%;
        border-radius: 50%;
        z-index: 1;
    }
    .timeline .time-container:first-child .text-content,
    .timeline .time-container:last-child .text-content {
        background-color: #024B94 !important;
        color: white;
        font-size: 13px;
        text-align: center;
        padding: 5px 0;
    }
    .timeline .time-container:first-child::after,
    .timeline .time-container:last-child::after {
        background-color: #223460;
        border: 4px solid #223460;
    }
    .timeline .time-container:nth-child(2)::after {
        background-color: #E4B84D;
        border: 4px solid #E4B84D;
    }
    .timeline .time-container:nth-child(3)::after {
        background-color: #0A7AA0;
        border: 4px solid #0A7AA0;
    }
    .timeline .time-container:nth-child(4) .text-content {
        background-color: #024B94;
        color: white !important;
        font-size: 13px;
        text-align: center;
        padding: 5px 0;
    }
    .timeline .time-container:nth-child(2) .text-content {
        background-color: #E4B84D;
        color: white !important;
        font-size: 13px;
        text-align: center;
        padding: 5px 0;
    }
    .timeline .time-container:nth-child(3) .text-content {
        background-color: #0A7AA0;
        color: white !important;
        font-size: 13px;
        text-align: center;
        padding: 5px 0;
    }
    .timeline .time-container:nth-child(4) .text-content {
        background-color: #024B94;
        color: white !important;
    }
    /* Place the container to the left */
    .time-left {
        left: 0;
    }
    /* Place the container to the right */
    .time-right {
        left: 0%;
    }
    .time-content {
        padding: 30px 0px;
        position: relative;
        border-radius: 6px;
        width: 40%;
        margin: auto;
    }
    /* .text-content {} */
    .image-content {
        background-color: transparent !important;
    }
    /* .text-content {
        width: 35%;
    } */
}