body {
  position: relative;
  height: 100%;
}

.events-container {
    display: flex;
    position: relative;
    z-index: 1;
}

.timeline-container {
    display: flex;
    position: fixed;
    top: 120px;
    right: 85%;
    height: 80%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none; 
}

.timeline-container::-webkit-scrollbar {
    display: none;  
}

.timeline {
    min-width: 120px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    position: relative;
}

#line {
    width: 30px;
    height: 100%;
}

#line::before {
    content: '';
    position: absolute;
    width: 3px;
    background-color: white;
    top: 30px;
    bottom: 25px;
    right: 10px;
    z-index: -5;
    min-height: 530px;
}

.timeline-item {
    min-height: 45px;
    padding: 0 20px;
    text-align: center;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 500;
    cursor: pointer;
    transition: font-size 0.25s ease-in-out;
    position: relative;
    display: flex;
    align-items: center;
}

.timeline-item.active {
    color: #eb0028;
    font-size: 2rem;
    font-weight: bold;
}

.timeline-item:hover {
    color: #ce0628;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    right: -26px;
    top: 35%;
    background-color: white;
    border: 3px solid white;
    border-radius: 50%;
}

.timeline-item.active::after {
    background-color: #eb0028;
}

.swiper-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    filter: brightness(60%);
    z-index: -10;
}

.swiper {
  width: 85%;
  height: 100vh;
  margin-right: 0;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.slide {
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    color: white;
    text-align: center;
    visibility: hidden;
}

.slide .year {
    font-size: 2rem;
}

.slide .title {
    font-size: 3rem;
}

.slide img {
    max-height: 200px;
    max-width: 50%;
}

.read-more {
    color: #ffffff;
    font-weight: 600;
    font-size: 20px;
    text-decoration: none;
    border: #ffffff solid 2px;
    border-radius: 25px;
    padding: 10px 20px;
    background-color: transparent;
    transition: background-color 0.5s ease-in-out;
}

.read-more:hover {
    color: #eb0028;
    background-color: white;
}

.emerging-title, .emerging-subtitle {
    font-family: var(--oktah-font);
    text-align: center;
}

.emerging-title {
    font-size: 3.5rem;
    line-height: 1;
}

.emerging-subtitle {
    font-style: oblique;
    font-weight: 300;
    font-size: 2rem;
    margin-bottom: 50px;
}

@media (max-width: 800px) {
    .slide .title {
        font-size: 2rem;
    }

    .slide .year {
        font-size: 1.3rem;
    }

    .swiper-slide, .read-more {
        font-size: 14px;
    }

    .timeline-item {
        font-size: 0.7rem;
    }

    .timeline-item.active {
        font-size: 0.9rem;
    }
}

@media (max-width: 560px) {
    .event-content {
        display: none;
    }

    .emerging-title {
        font-size: 24px;
    }

    .emerging-subtitle {
        font-size: 20px;
    }

    .timeline-container {
        right: 70%;
    }

    .swiper {
        width: 70%;
    }
}