.ma-timeline {
    background-color: var(--lightbeige);
    font-family: "Manrope", sans-serif;
}

.container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
}

.timeline {
    width: 80%;
    height: auto;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.date {
    color: black;
    font-family: "Manrope", sans-serif;
}

.timeline ul {
    list-style: none;
    padding-left: 0!important;
}

.timeline ul li {
    padding: 20px;
    background: linear-gradient(
        90deg,
        rgba(2, 0, 36, 1) 0%,
        rgba(0, 0, 0, 1) 100%
    );
    color: white;
    border-radius: 10px;
    margin-bottom: 20px;
}

.timeline ul li:last-child {
    margin-bottom: 0;
}

.timeline-content h2 {
    font-weight: 500;
    font-size: 35px;
    line-height: 30px;
    margin-bottom: 10px;
}

.timeline-content p {
    padding-top: 10px;
    font-size: clamp(1.1rem, 2vw, 1.1rem);
    line-height: 30px;
    font-weight: 300;
    text-align: justify;
}

.timeline-content .date {
    font-size: 14px;
    font-weight: 100;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

@media only screen and (min-width: 768px) {
    .timeline:before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 100%;
        background-color: gray;
    }

    .timeline ul li {
        width: 50%;
        position: relative;
        margin-bottom: 50px;
    }

    .timeline ul li:nth-child(odd) {
        float: left;
        clear: right;
        transform: translateX(-50px);
        border-radius: 20px 0 20px 20px;
    }

    .timeline ul li:nth-child(even) {
        float: right;
        clear: left;
        transform: translateX(30px);
        border-radius: 0 20px 20px 20px;
    }

    .timeline ul li::before {
        content: "";
        position: absolute;
        height: 20px;
        width: 20px;
        border-radius: 0;
        background-color: gray;
        top: 0;
        transform: rotate(45deg);
    }

    .timeline ul li:nth-child(odd)::before {
        transform: translate(50%, -50%) rotate(45deg);
        right: -50px;
    }

    .timeline ul li:nth-child(even)::before {
        transform: translate(-50%, -50%) rotate(45deg);
        left: -30px;
    }

    .timeline-content .date {
        position: absolute;
        top: -30px;
    }

    .timeline ul li:hover::before {
        background-color: #000000;
    }
}

@media screen and (max-width: 768px) {
    .timeline-content h2 {
        font-size: 25px;
    }
    .timeline-content p {
        line-height: 25px;
    }
    .container {
        padding: 0 0;
    }
    .timeline {
        width: 95%;
    }
    .date {
        color: white;
    }
}
