/* --- Premium Gains Timeline v2 --- */
.team-gains-section {
    background: #f8fbff;
}

.timeline-v2-container {
      position: relative;
    max-width: 100%;
}

/* The vertical line */
.timeline-v2-container::after {
    content: '';
    position: absolute;
    width: 1px;
    /* background: #d1d5db; */
    top: 50px;
    bottom: 50px;
    left: 50%;
    margin-left: -1px;
    border: 1px dashed #b2b2b27d;
}

.timeline-v2-item {
    padding: 20px 0;
    position: relative;
    width: 50%;
    display: flex;
}

.timeline-v2-left {
    left: 0;
    padding-right: 80px;
    justify-content: flex-end;
}

.timeline-v2-right {
    left: 50%;
    padding-left: 80px;
    justify-content: flex-start;
}

/* Dots on the line */
.timeline-v2-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid #3b82f6;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 1);
}

.timeline-v2-left .timeline-v2-dot { right: -8px; }
.timeline-v2-right .timeline-v2-dot { left: -8px; }

/* Timeline Card */
.timeline-v2-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: stretch;
    transition: all 0.4s ease;
    width: 100%;
    max-width: 540px;
    overflow: visible;
    position: relative;
}

.timeline-v2-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

/* Inner Layout */
.timeline-v2-inner {
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
}

.timeline-v2-left .timeline-v2-inner { order: 1; }
.timeline-v2-right .timeline-v2-inner { order: 2; }

/* The Icon */
.timeline-v2-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.timeline-v2-text h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-v2-text p {
    font-size: 14.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* The Colored Tab (Year/Number) */
.timeline-v2-tab {
    width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    position: relative;
    flex-shrink: 0;
}

.timeline-v2-left .timeline-v2-tab {
    order: 2;
    border-radius: 0 12px 12px 0;
}

.timeline-v2-right .timeline-v2-tab {
    order: 1;
    border-radius: 12px 0 0 12px;
}

/* The Triangle Arrow */
.timeline-v2-tab::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 0 solid transparent;
    border-right: 0 solid transparent;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.timeline-v2-left .timeline-v2-tab::after {
    border-left-width: 14px;
    border-left-style: solid;
    left: 100%;
}

.timeline-v2-right .timeline-v2-tab::after {
    border-right-width: 14px;
    border-right-style: solid;
    right: 100%;
}

/* Color Schemes */
.scheme-blue .timeline-v2-tab { background: #3b82f6; border-color: #3b82f6;  position: relative;}
.scheme-blue .timeline-v2-dot { border-color: #3b82f6; }
.scheme-blue .timeline-v2-tab::after { border-left-color: #3b82f6; border-right-color: #3b82f6; }
.scheme-blue .timeline-v2-icon-box { color: #3b82f6; }

.scheme-red .timeline-v2-tab { background: #f43f5e; border-color: #f43f5e; }
.scheme-red .timeline-v2-dot { border-color: #f43f5e; }
.scheme-red .timeline-v2-tab::after { border-left-color: #f43f5e; border-right-color: #f43f5e; }
.scheme-red .timeline-v2-icon-box { color: #f43f5e; }

.scheme-green .timeline-v2-tab { background: #22c55e; border-color: #22c55e; }
.scheme-green .timeline-v2-dot { border-color: #22c55e; }
.scheme-green .timeline-v2-tab::after { border-left-color: #22c55e; border-right-color: #22c55e; }
.scheme-green .timeline-v2-icon-box { color: #22c55e; }

.scheme-purple .timeline-v2-tab { background: #8b5cf6; border-color: #8b5cf6; }
.scheme-purple .timeline-v2-dot { border-color: #8b5cf6; }
.scheme-purple .timeline-v2-tab::after { border-left-color: #8b5cf6; border-right-color: #8b5cf6; }
.scheme-purple .timeline-v2-icon-box { color: #8b5cf6; }

.scheme-orange .timeline-v2-tab { background: #f97316; border-color: #f97316; }
.scheme-orange .timeline-v2-dot { border-color: #f97316; }
.scheme-orange .timeline-v2-tab::after { border-left-color: #f97316; border-right-color: #f97316; }
.scheme-orange .timeline-v2-icon-box { color: #f97316; }

/* Responsive */
@media screen and (max-width: 991px) {
    .timeline-v2-container::after {
        left: 40px;
    }
    .timeline-v2-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 20px;
        left: 0 !important;
        justify-content: flex-start !important;
    }
    .timeline-v2-dot {
        left: 32px !important;
        right: auto !important;
    }
    .timeline-v2-card {
        max-width: 100%;
    }
    /* Icons on mobile: Keep consistent position or stack */
    .timeline-v2-right .timeline-v2-tab {
        border-radius: 12px 0 0 12px;
    }
    .timeline-v2-left .timeline-v2-tab {
        order: 1;
        border-radius: 12px 0 0 12px;
    }
    .timeline-v2-left .timeline-v2-inner {
        order: 2;
    }
    .timeline-v2-left .timeline-v2-tab::after {
        border-left-width: 0;
        border-right-width: 14px;
        border-right-style: solid;
        right: 100%;
        left: auto;
    }
}
