/* Timeline Container */
.timeline {
    /* display: flex; */
    justify-content: center;
    background: var(--primary-color);
    margin: 20px auto;
    padding: 20px;
    width: 100%;
}

/* Card container */
.timeline-card {
    position: relative;
    /* max-width: 400px; */
}

/* setting padding based on even or odd */
.timeline-card:nth-child(odd) {
    padding: 30px 0 30px 30px;
}
.timeline-card:nth-child(even) {
    padding: 30px 30px 30px 0;
}
/* Global ::before */
.timeline-card::before {
    content: "";
    position: absolute;
    width: 50%;
    border: solid #b8b8b8;
}

/* Setting the border of top, bottom, left */
.timeline-card:nth-child(odd)::before {
    left: 0px;
    top: -4.5px;
    bottom: -4.5px;
    border-width: 5px 0 5px 5px;
    border-radius: 50px 0 0 50px;
}

/* Setting the border of top, bottom, right */
.timeline-card:nth-child(even)::before {
    right: 0;
    top: 0;
    bottom: 0;
    border-width: 5px 5px 5px 0;
    border-radius: 0 50px 50px 0;
}

/* Removing the border if it is the first card */
.timeline-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 */
.timeline-card:last-child:nth-child(odd)::before {
    border-bottom: 0;
    border-bottom-left-radius: 0;
}
.timeline-card:last-child:nth-child(odd)::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 999px;
    border: 5px solid green;
    bottom: -15px;
    left: -12px;
}

/* Removing the border if it is the last card  and it's even */
.timeline-card:last-child:nth-child(even)::before {
    border-bottom: 0;
    border-bottom-right-radius: 0;
}
.timeline-card:last-child:nth-child(even)::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 999px;
    border: 5px solid green;
    bottom: -15px;
    right: -12px;
}

/* Information about the timeline */
.timeline .info {
    display: flex;
    flex-direction: column;
    background: #e3e3e3;
    color: #333;
    border-radius: 10px;
    padding: 10px;
}
.timeline .info h3 {
    color: #9c9c9c;
}

.timeline .info.passed-stage {
    background-color: #dcf6d9;
}
.timeline .info.passed-stage h3 {
    color: #333;
}

.timeline .info.current-stage {
    background-color: #f6f49f;
}
.timeline .info.current-stage h3 {
    color: #333;
}

/* Title of the card */
.timeline .title {
    color: #333;
    position: relative;
}

/* Timeline dot  */
.timeline .title::before {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 999px;
    border: 5px solid #b8b8b8;
}

/* text right if the card is even  */
.timeline-card:nth-child(even) > .info > .title {
    text-align: right;
}

/* setting dot to the left if the card is odd */
.timeline-card:nth-child(odd) > .info > .title::before {
    left: -52px;
}

/* setting dot to the right if the card is odd */
.timeline-card:nth-child(even) > .info > .title::before {
    right: -52px;
}
