.timeline-container {
    background-color: var(--white);
}

.timeline-container .cards {
    display: grid;
    row-gap: 2rem;
    margin-top: 60px;
    position: relative;
}

.timeline-container.cards-space-bottom .cards {
    margin-bottom: 60px;
}

.timeline-container .cards::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    border-radius: 4px;
    background: var(--celtic-blue-a50);
}

.timeline-container .card {
    justify-self: end;
    background-color: var(--white);
    width: 100%;
    max-width: calc(100% - 18px);
    padding: 22.5px 18px;
    border-radius: 8px;
    box-shadow: 0 0 32.14px 0 rgba(29, 136, 237, 0.15);
    position: relative;
}

.timeline-container .card::before {
    content: "";
    position: absolute;
    /* adjust 'top' to align with heading */
    top: 3rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bleu-de-france);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--bleu-de-france-a40);
}

.timeline-container .icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    margin-bottom: 24px;
}

.timeline-container .icon-box>img {
    width: 72px;
    height: 72px;
}

.timeline-container .card-text {
    margin: 0;
}

.timeline-container .cards+.sub-text {
    margin-bottom: 60px;
}

.timeline-container+p {
    margin-top: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8rem;
    color: var(--black-a90);
}

@media (max-width: 1080px) {
    .timeline-container .icon-box {
        margin-bottom: 20px;
    }

    .timeline-container .icon-box>img {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 800px) {
    .timeline-container .cards {
        margin-top: 40px;
    }

    .timeline-container.cards-space-bottom .cards {
        margin-bottom: 40px;
    }
}

@media (min-width: 801px) {
    .timeline-container .cards {
        gap: 1rem;
    }

    .timeline-container .card {
        justify-self: start;
        max-width: calc(50% - 18px);
    }

    .timeline-container .cards::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-container .card:nth-of-type(odd) {
        justify-self: end;
    }

    .timeline-container .card:nth-of-type(odd)::before {
        left: calc(-18px - 8px);
    }

    .timeline-container .card:nth-of-type(even)::before {
        right: calc(-18px - 8px);
    }
}

@media (max-width: 800px) {
    .timeline-container .card::before {
        left: calc(-18px - 8px);
    }
}

@media (max-width: 640px) {
    .timeline-container .cards+.sub-text {
        margin-bottom: 30px;
    }
}