* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.timeline-slider {
    width: 100%;
    height: 90vh; 
    position: relative;
}

.timeline-slider .swiper-wrapper {
    height: 100%;
}

.year-slide {
    height: 100%;
}

.nested-slider {
    width: 100%;
    height: 100%;
}

.nested-slide {
    position: relative;
    height: 100%;
}

.page-id-51 .nested-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-id-51 .nested-slide .txtwrp {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10%;
    font-family: sans-serif;
    padding: 20px;
    color: #fff;
}

.page-id-51 .nested-slide .txtwrp h3 {
    font-size: 60px;
    line-height: 68px;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-id-51 .nested-slide .txtwrp p {
    font-size: 24px;
    line-height: 32px;
    max-width: 384px;
}

/* Nested slider pagination */
.nested-pagination {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.nested-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.nested-pagination .swiper-pagination-bullet-active {
    background: #BA9640;
}

/* Main timeline pagination styles */
.page-id-51 .swiper-pagination {
    display: flex;
    align-items: center;
    gap: 70px;
    bottom: 0px !important;
    position: absolute;
    top: auto !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding: 0 20px;
    scrollbar-width: none;
    min-height: 110px;
    justify-content: center;
}

.page-id-51 .swiper-pagination::-webkit-scrollbar {
    display: none;
}

.page-id-51 .swiper-pagination::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 2px;
    background-color: #fff;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.page-id-51 .swiper-pagination-bullet {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    background: #fff;
    opacity: 1;
    position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* year text above each bullet */
.page-id-51 .swiper-pagination-bullet::before {
    content: attr(data-year);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    font-family: sans-serif;
    text-shadow: 0px 3px 6px rgba(0, 0, 0, 0.44);
}

/* inner circle */
.page-id-51 .swiper-pagination-bullet::after {
    content: "";
    
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #000;
}

/* active inner circle color */
.page-id-51 .swiper-pagination-bullet.swiper-pagination-bullet-active::after {
    background: #BA9640;
}

.nested-paginationwrp .swiper-pagination-bullet::after{
    display: none;
}

.nested-paginationwrp .swiper-pagination-bullet{
    width: 18px;
    height: 18px;
}

.nested-paginationwrp .swiper-pagination-bullet.swiper-pagination-bullet-active{
    background: #BA9640;
}

@media (max-width: 768px){
  .page-id-51 .timeline-slider{
    height: 70vh !important;
  }
  
  .page-id-51 .swiper-pagination::before{
    width: 130%;
   }
}

@media (max-width: 991px) {
    .page-id-51 .nested-slide .txtwrp {
        transform: unset !important;
        top: 5%;
      left: 0 !important;
    }

    .page-id-51 .nested-slide .txtwrp h3 {
        font-size: 26px;
        line-height: 34px;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .page-id-51 .nested-slide .txtwrp p {
        font-size: 14px;
        line-height: 22px;
        max-width: 384px;
    }

    .page-id-51 .swiper-pagination {
        justify-content: unset;
        gap: 18px;
        padding: 0 12px;
        min-height: 80px;
    }
    
    .nested-pagination {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .page-id-51 .swiper-pagination-bullet {
        width: 16px;
        height: 16px;
    }

    .page-id-51 .swiper-pagination-bullet::before {
        font-size: 12px;
        top: -20px;
    }

    .page-id-51 .swiper-pagination-bullet::after {
        width: 10px;
        height: 10px;
    }
    
    .nested-pagination .swiper-pagination-bullet {
        width: 14px;
        height: 14px;
        margin: 6px 0;
    }
}