.timeline {
    background: var(--primary-color);
    margin: 20px auto;
    padding: 20px;
}

/* Card container */
.card {
    position: relative;
    max-width: 100%;
}

/* setting padding based on even or odd */
.card:nth-child(odd) {
    padding: 70px 400px 70px 100px;
}

.card:nth-child(even) {
    padding: 70px 100px 70px 400px;
}

/* Global ::before */
.card::before {
    content: "";
    position: absolute;
    width: 50%;
    border: solid #ebedef;
}

/* Setting the border of top, bottom, left */
.card:nth-child(odd)::before {
    left: 0px;
    top: -49.5px;
    bottom: -39.5px;
    border-width: 80px 0px 80px 80px;
    border-radius: 150px 0 0 150px;
}

/* Setting the border of top, bottom, right */
.card:nth-child(even)::before {
    right: 0;
    top: -41px;
    bottom: -31px;
    border-width: 80px 80px 80px 0;
    border-radius: 0 170px 170px 0;
}

/* Removing the border if it is the first card */
.card:first-child::before {
    border-top: 0;
    border-top-left-radius: 0;
}

/* Removing the border if it is the last card  and it's odd */
.card:last-child:nth-child(odd)::before {
    border-bottom: 0;
    border-bottom-left-radius: 0;
}

/* Removing the border if it is the last card  and it's even */
.card:last-child:nth-child(even)::before {
    border-bottom: 0;
    border-bottom-right-radius: 0;
}

/* Information about the timeline */
.info {
    display: flex;
    flex-direction: column;
    /* background: #333;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    color: gray; */
    border-radius: 10px;
    padding: 10px;
}

/* Title of the card */
.title {
    color: #ff8533;
    position: relative;
    letter-spacing: -4px;
    font-weight: 900;
}

/* Timeline dot  */
.title::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f1b9";
    position: absolute;
    width: 268px;
    color: #ff8533;
    font-size: 50px;
}

/* text right if the card is even  */
.card:nth-child(even)>.info>.title {
    text-align: right;
}

/* setting dot to the left if the card is odd */
.card:nth-child(odd)>.info>.title::before {
    left: -203px;
    z-index: 1;
}

/* setting dot to the right if the card is odd */
.card:nth-child(even)>.info>.title::before {
    right: -230px;
    z-index: 1;
}

.card::after {
    content: "";
    position: absolute;
    width: 50%;
    border: solid #d5d0c1;
    border-style: dashed;
}

.card:nth-child(even)::after {
    right: 38.5px;
    top: -3.5px;
    bottom: 6.5px;
    border-width: 5px 5px 5px 0;
    border-radius: 0 140px 150px 0;
}

.card:nth-child(odd)::after {
    left: 35.5px;
    top: -11.5px;
    bottom: -1.5px;
    border-width: 5px 0 5px 5px;
    border-radius: 125px 0 0 114px;
}

.card:first-child::after {
    border-top: 0;
    border-top-left-radius: 0;
}

.card:last-child:nth-child(odd)::after {
    border-bottom: 0;
    border-bottom-left-radius: 0;
}

.card:last-child:nth-child(even)::after {
    border-bottom: 0;
    border-bottom-right-radius: 0;
}

.card .info p {
    text-align: justify;
}

h3 {
    font-size: 70px;
}

.card .info h3 {
    text-align: center !important;
}

@media only screen and (min-width: 200px) and (max-width: 767px) {
    .card:nth-child(odd) {
        padding: 70px 0px 70px 100px;
    }
    .card:nth-child(even) {
        padding: 70px 0px 70px 100px;
    }
    .card:nth-child(even)::before {
        left: 0;
        top: -41px;
        bottom: -31px;
        border-width: 0px 0px 0px 80px;
        border-radius: 0 0px 0px 0px;
    }
    .card:nth-child(even)::after {
        left: 38.5px;
        top: -3.5px;
        bottom: 6.5px;
        border-width: 0px 0px 0px 5px;
        border-radius: 0 0px 0px 0;
    }
    .card:nth-child(odd)::before {
        left: 0px;
        top: -49.5px;
        bottom: -39.5px;
        border-width: 0px 0px 0px 80px;
        border-radius: 0px 0 0 0px;
    }
    .card:nth-child(odd)::after {
        left: 35.5px;
        top: -11.5px;
        bottom: -1.5px;
        border-width: 0px 0 0px 5px;
        border-radius: 0px 0 0 0px;
    }
    .card:nth-child(even)>.info>.title::before {
        left: -205px;
        z-index: 1;
    }
    .card:nth-child(odd)>.info>.title::before {
        left: -208px;
        z-index: 1;
    }
}