@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');


.timeline-card {
    display: flex;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 6px 32px 0 rgba(0, 32, 128, 0.10);
    overflow: hidden;
    align-items: stretch;
    max-height: 300px;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}
.timeline-card-image-wrap {
    flex: 1 1 auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    background: #f7f7fa;
    max-width: 35%;
}
.timeline-card-img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    border-radius: 0 0 0 22px;
    display: block;
      max-height: 300px;
    min-height: 300px;
}
.timeline-year-overlay {
    position: absolute;
    left: 10px;
    bottom: 15px;
    font-family: "Lora", serif;
    background: transparent;
    color: #12BFFF;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 2;
    pointer-events: none;
}
.timeline-image-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
   background: linear-gradient(0deg, rgba(0, 0, 0, 0.60) 0%, rgba(0, 0, 0, 0.00) 100%);
    z-index: 1;
    border-radius: 0 0 0 22px;
}
.timeline-card-content {
    flex: 1 1 0;
    padding: 32px 32px 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, #FFF 0%, #F0F9FF 100%);
}
.timeline-card-milestone{
   display: flex;
    align-items: center;
    gap: 5px;
     font-family: "Lora", serif;
}
.timeline-card-meta {
    color: #12599C;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
}
.timeline-card-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #000000;
}
.timeline-card-desc {
    font-size: 1.1rem;
    color: #3A3A3A;
    line-height: 1.6;
}

/* --- End Timeline Card Redesign --- */
.cyberace-timeline-wrapper {
    margin: auto;
}

.cyberace-slider {
    display: flex;
    overflow: hidden;
}

.timeline-slide {
    min-width: 100%;
    display: flex;
    gap: 30px;
    transition: transform 0.4s ease;
}

.timeline-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.timeline-year {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #0057ff;
    color: #fff;
    padding: 6px 12px;
    border-radius: 10px;
}


.timeline-years {
    position: relative;
    width: 100%;
    margin: 40px 0 0 0;
    padding: 0 0 24px 0;
}
.timeline-years-line {
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    height: 4px;
    background: #eaeef3;
    z-index: 0;
    border-radius: 2px;
}
.timeline-years-dots {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}
.timeline-dot-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    flex: 1 1 0;
}
.timeline-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 35px;
    position: relative;
    cursor: pointer;
    background: transparent;
    z-index: 2;
}
.timeline-dot-circle {
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px #D1D5DC;
    transition: background 0.2s, box-shadow 0.2s;
}
.timeline-dot.active .timeline-dot-circle,
.timeline-dot.selected .timeline-dot-circle {
    background-color: #12599C;
}
.timeline-year-label {
    margin-top: 8px;
    font-size: 1rem;
    color: #222;
    font-weight: 500;
    white-space: nowrap;
}

.swiper {
    overflow: hidden;
}

.swiper-slide {
    display: flex;
    gap: 30px;
}

.swiper-button-next,
.swiper-button-prev {
    color: #0057ff;
}

.swiper-pagination-bullet-active {
    background: #0057ff;
}

.timeline-years {
    position: relative;
}

.timeline-years::before,
.timeline-years::after {
    content: '';
    position: sticky;
    top: 0;
    width: 30px;
    height: 100%;
    pointer-events: none;
}

.timeline-years::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.timeline-years::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

/* Centered Swiper Controls */
.cyberace-swiper-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    width: 100%;
}
.cyberace-swiper-controls .swiper-pagination {
    flex: 0 1 auto;
    margin: 0 16px;
    position: static;
    width: fit-content !important;
}
.cyberace-swiper-controls .swiper-button-prev,
.cyberace-swiper-controls .swiper-button-next {
    position: static;
    transform: none;
    top: auto;
    margin: 0;
    width: 100px;
}

.swiper-pagination-bullet {
    opacity: 1 !important;
    background-color: #D1D5DC !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: #12599C !important;
    width: 50px !important;
    border-radius: 10px !important;
}
/* --- Timeline Card Redesign --- */

.swiper-button-next.swiper-button-disabled, .swiper-button-prev.swiper-button-disabled {
    opacity: 0.3 !important;
}

.swiper-button-next:after, .swiper-button-prev:after{
    display: none;
}


@media (max-width: 767px) {

}