/* .body-container {
    background-color: azure;
} */

.body-container .ourstory-container .title {
    text-align: center;
    padding: 20px;
    font-size: 2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    /* background-color: gold; */
}

.body-container .ourstory-container .quote {
    font-size: 1.5rem;
    font-weight: 200;
    font-style: italic;
    line-height: 2rem;
    width: 80%;
    max-width: calc(100% - 2rem);
    margin: 0 auto;
    padding: 1.5rem 0;
}

.body-container .ourstory-container .timeline-progress-container {
    position: relative;
}

.body-container .ourstory-container .timeline-progress-container .timeline-progress {
    position: absolute;
    top: 35vh;
    left: 50%;
    transform: translate(-50%, 0);
    width: 3px;
    z-index: 0;
    /* box-shadow: 0px 0px 10px 2px #F25278; */
    animation: shadowBlink 2s linear 0s infinite normal;
    background-color: #F25278;
}

.body-container .ourstory-container .timeline-progress-container .timeline-progress::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 0);
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    animation: shadowBlink 2s linear 0s infinite normal;
    background-image: radial-gradient(circle, #FFFFFF 10%, #F25278);
}

@keyframes shadowBlink {
    0% {
        box-shadow: 0px 0px 0px 0px #F25278;
    }
    50% {
        box-shadow: 0px 0px 10px 2px #F25278;
    }
    100% {
        box-shadow: 0px 0px 0px 0px #F25278;
    }
}

.body-container .ourstory-container .story-cards .card-container {
    position: relative;
    margin-bottom: 5rem;
    min-height: 70vh;
    /* background-color: beige; */
}

.body-container .ourstory-container .story-cards .card-container .milestone-highlight {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0px 0px 0px 2px rgba(0, 0, 0, 0.24);    
    transition: all 0.3s ease-out;
    background-color: #FFFFFF;
}

.body-container .ourstory-container .story-cards .card-container .milestone-highlight.is-highlighted {
    box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.24);
}

.body-container .ourstory-container .story-cards .card-container .milestone-highlight::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    /* box-shadow: 0px 0px 10px 2px #F25278; */
    transition: all 0.3s ease-out;
    background-color: rgba(0, 0, 0, 0.24);
}

.body-container .ourstory-container .story-cards .card-container .milestone-highlight.is-highlighted::after {
    box-shadow: 0px 0px 10px 2px #F25278;
    background-color: #F25278;
}

.body-container .ourstory-container .story-cards .card-container .card-wrapper {
    width: calc(100% / 3);
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: blue;
    opacity: 0;
}

.body-container .ourstory-container .story-cards .card-container:nth-child(2n) .card-wrapper {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease-out;
}

.body-container .ourstory-container .story-cards .card-container:nth-child(2n+1) .card-wrapper {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translate(50%, -50%);
    transition: all 0.5s ease-out;
}

.body-container .ourstory-container .story-cards .card-container:has(.milestone-highlight.is-highlighted):nth-child(2n) .card-wrapper {
    transform: translate(0%, -50%);
    opacity: 1;
}

.body-container .ourstory-container .story-cards .card-container:has(.milestone-highlight.is-highlighted):nth-child(2n+1) .card-wrapper {
    transform: translate(0%, -50%);
    opacity: 1;
}

@keyframes fade-in-2n {
    to {
        transform: translate(0, -50%);
        opacity: 1;
    }
}

@keyframes fade-in-2n1 {
    to {
        transform: translate(0, -50%);
        opacity: 1;
    }
}

.body-container .ourstory-container .story-cards .card-container .card-wrapper .card-image img {
    display: block;
    width: 100%;
}

.body-container .ourstory-container .story-cards .card-container .card-wrapper .card-message {
    padding: 1.5rem;
    font-size: 1rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.5rem;
    color: #FFFFFF;
    background-color: #F25278;
}

@media screen and (max-width: 768px) {
    .body-container .ourstory-container .timeline-progress-container .timeline-progress {
        left: 4rem;
    }

    .body-container .ourstory-container .story-cards .card-container .milestone-highlight {
        left: 4rem;
    }

    .body-container .ourstory-container .story-cards .card-container .card-wrapper {
        width: calc(100% / 1.5);
    }

    .body-container .ourstory-container .story-cards .card-container:nth-child(2n) .card-wrapper {
        left: unset;
        right: -10%;
        transform: translate(0%, -50%);
    }
    
    .body-container .ourstory-container .story-cards .card-container:nth-child(2n+1) .card-wrapper {
        right: -10%;
        transform: translate(0%, -50%);
    }
    
    .body-container .ourstory-container .story-cards .card-container:has(.milestone-highlight.is-highlighted):nth-child(2n) .card-wrapper {
        transform: translate(0%, -50%);
        right: 10%;
    }
    
    .body-container .ourstory-container .story-cards .card-container:has(.milestone-highlight.is-highlighted):nth-child(2n+1) .card-wrapper {
        transform: translate(0%, -50%);
        right: 10%;
    }
}

@media screen and (max-width: 576px) {
    .body-container .ourstory-container .timeline-progress-container .timeline-progress {
        left: 3rem;
    }

    .body-container .ourstory-container .story-cards .card-container .milestone-highlight {
        left: 3rem;
    }

    .body-container .ourstory-container .story-cards .card-container:has(.milestone-highlight.is-highlighted):nth-child(2n) .card-wrapper {
        right: 5%;
    }
    
    .body-container .ourstory-container .story-cards .card-container:has(.milestone-highlight.is-highlighted):nth-child(2n+1) .card-wrapper {
        right: 5%;
    }
}