/**
 * Timeline Slider Widget Stylesheet
 */

/* Main Wrapper */
.timeline-slider-widget-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    font-family: inherit;
    box-sizing: border-box;
}

.timeline-slider-inner-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    width: 100%;
}

/* -------------------------------------------------------------
   LEFT NAVIGATION - YEARS TIMELINE
------------------------------------------------------------- */
.timeline-years-navigation {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 120px; /* Space for progress line indicator */
    min-width: 240px;
    flex-shrink: 0;
}

/* Progress Track Line & Dot */
.timeline-progress-track {
    position: absolute;
    left: -130px;
    top: 0px;
    display: flex;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    z-index: 2;
}

.timeline-progress-line {
    width: 180px;
    height: 3px;
    background-color: #FF4D29;
    border-radius: 2px;
}

.timeline-progress-dot {
    width: 9px;
    height: 9px;
    background-color: #FF4D29;
    border-radius: 50%;
    margin-left: -2px;
}

/* Years List */
.timeline-years-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.timeline-year-item {
    font-size: 26px;
    font-weight: 800;
    color: #CCCCCC;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    user-select: none;
    line-height: 1.2;
}

.timeline-year-item:hover {
    color: #888888;
}

.timeline-year-item.active {
    color: #111111;
    transform: scale(1.05);
    transform-origin: left center;
}

/* -------------------------------------------------------------
   SWIPER SLIDER & SLIDE CONTENT
------------------------------------------------------------- */
.timeline-swiper-container {
    flex-grow: 1;
    width: 100%;
    overflow: hidden;
}

.timeline-slide-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

/* Content Column (Middle) */
.timeline-content-col {
    flex: 1 1 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 20px;

}



.timeline-slide-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 20px 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.timeline-title-prefix {
    color: #5E4B99; /* Primary Purple accent */
}

.timeline-title-suffix {
    color: #FF6B35; /* Secondary Orange accent */
}

.timeline-slide-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 40px;
    max-width: 480px;
}

/* Stats Area */
.timeline-stats-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 10px;
    justify-content: flex-end;
    padding-right: 20px;
}

.timeline-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.timeline-stat-number {
    font-size: 38px;
    font-weight: 900;
    color: #000000;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.timeline-stat-label {
    font-size: 15px;
    font-weight: 600;
    color: #444444;
    line-height: 1.3;
    max-width: 110px;
}

/* -------------------------------------------------------------
   RIGHT IMAGE COLUMN WITH TORN PAPER BORDER EFFECT
------------------------------------------------------------- */
.timeline-image-col {
    flex: 1 1 50%;
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Outer Torn Yellow Border Container */
.timeline-image-frame {
    /* --torn-border-color: #F5B800;
    position: relative;
    padding: 0px;
    background-color: var(--torn-border-color); */
    /* width: 100%;
    max-width: 520px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); */
    /* clip-path: polygon(
        0% 3%, 4% 0%, 9% 4%, 14% 1%, 19% 4%, 24% 0%, 29% 3%, 35% 1%, 40% 4%, 46% 1%, 51% 4%, 57% 0%, 62% 4%, 68% 1%, 74% 4%, 80% 0%, 86% 4%, 92% 1%, 97% 4%, 100% 1%,
        97% 8%, 100% 15%, 96% 22%, 100% 30%, 97% 38%, 100% 46%, 96% 54%, 100% 62%, 97% 70%, 100% 78%, 96% 86%, 100% 94%, 98% 100%,
        93% 97%, 87% 100%, 81% 96%, 75% 100%, 69% 97%, 63% 100%, 57% 96%, 51% 100%, 45% 97%, 39% 100%, 33% 96%, 27% 100%, 21% 97%, 15% 100%, 9% 96%, 3% 100%, 0% 97%,
        3% 90%, 0% 82%, 4% 74%, 0% 66%, 3% 58%, 0% 50%, 4% 42%, 0% 34%, 3% 26%, 0% 18%, 4% 10%
    ); */
    transition: transform 0.4s ease;
}

/* .timeline-image-frame:hover {
    transform: scale(1.02) rotate(-0.5deg);
} */

/* Inner Image Container */
.timeline-image-wrapper {
    position: relative;
    width: 100%;
    /* height: 400px; */
    overflow: hidden;
    /* background-color: #EFEFEF; */
    /* clip-path: polygon(
        0% 2%, 5% 0%, 10% 3%, 15% 1%, 20% 4%, 25% 0%, 30% 3%, 35% 1%, 40% 4%, 45% 1%, 50% 3%, 55% 0%, 60% 4%, 65% 1%, 70% 3%, 75% 0%, 80% 4%, 85% 1%, 90% 3%, 95% 0%, 100% 3%,
        98% 10%, 100% 18%, 97% 25%, 100% 33%, 97% 42%, 100% 50%, 97% 58%, 100% 67%, 97% 75%, 100% 83%, 97% 92%, 100% 100%,
        94% 97%, 88% 100%, 82% 97%, 76% 100%, 70% 97%, 64% 100%, 58% 97%, 52% 100%, 46% 97%, 40% 100%, 34% 97%, 28% 100%, 22% 97%, 16% 100%, 10% 97%, 4% 100%, 0% 96%,
        3% 88%, 0% 80%, 3% 72%, 0% 64%, 3% 56%, 0% 48%, 3% 40%, 0% 32%, 3% 24%, 0% 16%, 3% 8%
    ); */
}

.timeline-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.timeline-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e2e2 0%, #cccccc 100%);
}

.timeline-image-frame,
.timeline-image-wrapper {
    width: 100%;
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN BREAKPOINTS
------------------------------------------------------------- */
@media (max-width: 1024px) {
    .timeline-slider-inner-layout {
        gap: 20px;
    }
    
    .timeline-slide-grid {
        gap: 0px;
    }

    .timeline-content-col,
    .timeline-image-col {
        flex: 0 0 50%;
        max-width: 50%;
        padding-right: 0px;
    }


    .timeline-stats-wrapper {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .timeline-slider-inner-layout {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-years-navigation {
        padding-left: 0;
        padding-top: 0px; /* Space for horizontal indicator */
        width: 100%;
    }

    .timeline-stats-wrapper{
        padding-right: 0px;
    }

    .timeline-progress-track {
        display: none;
        top: 0;
        left: 0;
        transform: rotate(90deg);
        transform-origin: left top;
    }

    .timeline-years-list {
        flex-direction: row;
        gap: 24px;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 10px;
    }

    .timeline-year-item {
        font-size: 22px;
    }

    .timeline-slide-title {
        font-size: 28px;
    }
    .timeline-slide-desc{
        max-width: 100%;
        width: 100%;
        margin-bottom: 20px;
    }
    .timeline-stat-label{
        width: 100%;
        max-width: 100%;
    }

    /* .timeline-image-wrapper {
        height: 280px;
    } */
}

@media (max-width: 640px){

    .timeline-slide-grid{
        flex-wrap: wrap;
    }

    .timeline-slide-grid {
        gap: 20px;
    }

    .timeline-content-col,
    .timeline-image-col {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0px;
        flex-direction: column;
    }

}
