/**
 * Journey Timeline Widget Styles
 * Swiper-based timeline slider with fade animation
 */

 .rsgt-timeline-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-sizing: border-box;
    color: #ffffff;
}

.rsgt-timeline-section .swiper {
    width: 100%;
    height: 100%;
}

.rsgt-timeline-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

/* Timeline line */
.rsgt-timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--timeline-line-color, #63dae9);
    z-index: 1;
   transform: translatey(-50%);
    
}

/* Year blocks */
.rsgt-year-block {
    position: relative;
    width: 100%;
    padding-left: 85px;
    z-index: 2;
    opacity: 1;
    min-height: 1042px;
    transition: opacity 0.6s ease-in-out;
    box-sizing: border-box;
    display: flex;
}

.rsgt-year-block.rsgt-position-bottom {
    padding-top: 658px;
}

.rsgt-year-block.rsgt-position-top {
    padding-bottom: 658px;
    flex-direction: column-reverse;
}

.swiper-slide-next .rsgt-year-block.visible {
    opacity: 1;
}

.rsgt-year-block .rsgt-year {
    font-size: 32px;
    font-weight: 700;
    color: var(--year-text-color, #37c8e3);
}

.rsgt-year-block .rsgt-details {
    font-size: 18px;
    color: var(--achievement-color, #ffffffcc);
    line-height: 1.4;
    max-width: 240px;
    margin: 0 auto;
}

/* Alternate top / bottom positioning */
.rsgt-year-block.rsgt-position-top .rsgt-year {
    margin-bottom: 10px;
}

.rsgt-year-block.rsgt-position-bottom .rsgt-connector {
    margin-top: 0;
}

/* Marker */
.rsgt-marker {
    width: 24px;
    height: 24px;
    background: var(--marker-color, #37c8e3);
    position: absolute;
    top: 50%;
    left: 49px;
    transform: translate(0, -50%);
    z-index: 3;
}

.rsgt-marker::before {
    width: 2px;
    height: 122px;
    background: repeating-linear-gradient(to bottom,
            var(--marker-color, #37c8e3),
            var(--marker-color, #37c8e3) 4px,
            transparent 4px,
            transparent 8px);
    margin: 10px 0;
    content: "";
    position: absolute;
    left: 11px;
}

.rsgt-marker::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--marker-color, #37c8e3);
    border-radius: 50px;
    left: 6px;
}

.rsgt-year-block.rsgt-position-top .rsgt-marker::after {
    bottom: 150px;
}

.rsgt-year-block.rsgt-position-bottom .rsgt-marker::after {
    top: 150px;
}

.rsgt-year-block.rsgt-position-top .rsgt-marker::before {
    bottom: 30px;
}

.rsgt-year-block.rsgt-position-bottom .rsgt-marker::before {
    top: 30px;
}

.rsgt-timeline-swiper .swiper-slide {
    /* opacity: 0 !important;
    transition: opacity 0.7s ease; */
    background-color: var(--bg-color, #0b1224);
}

.rsgt-timeline-swiper .swiper-slide-active {
    /* opacity: 1 !important; */
}

/* Ship image */
.rsgt-bot-image {
    background: no-repeat center center;
    background-size: contain;
    width: 210px;
    height: 47px;
    transform: translate(-50%, -50%);
    top: 50%;
    position: absolute;
    left: -6px;
    opacity: 0;
}

.rsgt-timeline-section .swiper-slide-active .rsgt-bot-image {
    opacity: 1;
}

/* Swiper arrows styling */
.rsgt-timeline-swiper .swiper-button-prev {
    left: -2px;
}

.rsgt-timeline-swiper .swiper-button-next {
    right: -2px;
}

.rsgt-timeline-swiper .swiper-button-next,
.rsgt-timeline-swiper .swiper-button-prev {
    color: var(--marker-color, #37c8e3);
    transition: opacity 0.3s;
}

.rsgt-timeline-swiper .swiper-button-next:hover,
.rsgt-timeline-swiper .swiper-button-prev:hover {
    opacity: 0.7;
}

.rsgt-journey-info {
    width: 270px;
}

.rsgt-year-block.rsgt-position-bottom {
    max-height: 200px;
}

/* .rsgt-timeline-swiper .swiper-slide .rsgt-year-block:last-child .rsgt-journey-info {
    width: 100%;
} */

.rsgt-year-block .rsgt-details li {
    margin-bottom: 8px;
    padding-left: 0;
}

.rsgt-year-block .rsgt-details li:last-child {
    margin-bottom: 0;
}

.rsgt-journey-listing {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rsgt-journey-listing li {
    margin-bottom: 8px;
    color: var(--achievement-color, #ffffffcc);
    line-height: 1.4;
}

.rsgt-journey-listing li:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .rsgt-timeline-section {
        max-width: 100%;
        padding: 40px 15px;
    }

    .rsgt-year-block {
        width: 18%;
        padding-left: 70px;
    }

    .rsgt-year-block .rsgt-year {
        font-size: 28px;
    }

    .rsgt-year-block .rsgt-details {
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .rsgt-year-block {
        width: 22%;
        padding-left: 60px;
        min-height: 800px;
    }

    .rsgt-year-block.rsgt-position-bottom {
        padding-top: 500px;
    }

    .rsgt-year-block.rsgt-position-top {
        padding-bottom: 500px;
    }

    .rsgt-marker {
        left: 39px;
    }

    .rsgt-bot-image {
        width: 160px;
        height: 36px;
    }
}

@media (max-width: 768px) {
    .rsgt-timeline-section {
        padding: 30px 10px;
    }

    .rsgt-timeline-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .rsgt-timeline-line {
        display: none;
    }

    .rsgt-year-block {
        width: 100%;
        padding-left: 0;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        min-height: auto;
        position: relative;
        opacity: 1;
    }

    .rsgt-year-block.rsgt-position-top {
        flex-direction: column;
    }

    .rsgt-marker {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        margin-bottom: 20px;
    }

    .rsgt-marker::before,
    .rsgt-marker::after {
        display: none;
    }

    .rsgt-bot-image {
        display: none;
    }

    .rsgt-year-block .rsgt-year {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .rsgt-year-block .rsgt-details {
        font-size: 16px;
        max-width: 100%;
    }

    .rsgt-journey-info {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .rsgt-year-block .rsgt-year {
        font-size: 20px;
    }

    .rsgt-year-block .rsgt-details {
        font-size: 14px;
    }
}

.rsgt-timeline-swiper .swiper-slide:last-child .rsgt-position-top .rsgt-journey-info {
  width: 100%;
  height: 384px;
}