.time-line {
    padding:80px 0;
    background: linear-gradient(0deg, white 0%, rgb(42, 62, 82) 100%);
    background-size: cover;

    &:hover {
        .title {
            animation-name: nameSlideIn;
            animation-duration: 300ms;
            animation-iteration-count: 1;
            animation-fill-mode: forwards;
        }
        .timeline-events {
            animation-name: eventSlideIn;
            animation-duration: 500ms;
            animation-iteration-count: 1;
            animation-fill-mode:forwards;
            animation-delay: 200ms;
        }
    }

    @keyframes nameSlideIn {
        0% {
            opacity: 0;
            transform: translateY(-500px);
        }
        25% {
            opacity: 0;
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes eventSlideIn {
        0% {
            opacity: 0;
            transform: translateY(-500px);
        }
        25% {
            opacity: 0;
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .container {
        padding: 0 80px;

        @media screen and (max-width:1024px) {
            padding:0 16px;
        }
    }
    .title {
        font-size: 50px;
        letter-spacing: 2px;
        text-align: center;
        margin: 20px 0 60px 0;
        color: white;
        opacity: 0;
    }
    .timeline-events {
        list-style-type: none;
        opacity: 0;
        li {
            display: flex;
            align-items: center;
            margin-bottom: 50px;
            position: relative;

            &::before {
                content: "";
                width: 4px;
                height: calc(100% + 50px);
                position: absolute;
                background-color: white;
                top: 0;
                left: 28px;
            }

            &:first-child::before {
                top: 50%;
            }

            &:last-child::before {
                height: 50%;
            }
        }

        @media screen and (max-width:1024px) {
            padding: 0;
        }
    }
    
    .event-image {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background-color: rgb(172 232 243);
        margin-right: 16px ;
        align-items: center;
        z-index: 1;
        background-size: cover;

        &:hover {
            box-shadow: 1px 1px 20px 1px white;
        }
    }
    .event {
        flex: 1;
        display: flex;
        background-color: rgb(230 54 7 / 90%);
        box-shadow: 1px 1px 20px 4px rgb(172 232 243);
        border-radius: 10px;
        transition: all linear 200ms;

        &:hover {
            transform: scale(1.02);
        }

        @media screen and (max-width:1024px) {
            flex-direction: column;
        }
    }

    
    .event-date {
        padding: 20px;
        width: 20%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: white;
        color: white;
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
        font-weight: bold;
        font-size: 20px;
        background-size: cover;

        @media screen and (max-width:1024px) {
            width: auto;
            flex: 1;
            border-top-right-radius: 10px;
            border-bottom-left-radius: 0px;

        }
    }
    .event-content {
        flex: 1;
        padding: 40px;
        color: white;
    }
}