.timeline-container-ab6f91fe {
    padding: 2rem 0;
    overflow: hidden;
}

.timeline-ab6f91fe {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

/* Center line implementation */
.timeline-line-wrapper-ab6f91fe {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px; /* Base line left position */
    width: 4px;
    border-radius: 2px;
    z-index: 1;
}

.timeline-line-bg-ab6f91fe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #e2e8f0;
    border-radius: 2px;
}

.timeline-line-fill-ab6f91fe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%; /* JS will control this */
    background: #3b82f6; /* Default fill color */
    border-radius: 2px;
    transition: height 0.1s ease-out;
}

.timeline-item-ab6f91fe {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 60px;
}

/* Ensure the center of the dot aligns with the center of the line */
.timeline-dot-ab6f91fe {
    position: absolute;
    left: 14px; /* Centered relative to the 20px line placement */
    top: 24px; /* Align visually with card top padding */
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3b82f6;
    z-index: 2;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease-out;
}

.timeline-card-ab6f91fe {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s; /* Delayed after dot */
}

/* Visibility classes toggled by JS */
.timeline-item-ab6f91fe.is-visible .timeline-dot-ab6f91fe {
    /* Only scale here, remove the translateX to prevent overriding centering */
    transform: scale(1);
    opacity: 1;
}

.timeline-item-ab6f91fe.is-visible .timeline-card-ab6f91fe {
    opacity: 1;
    transform: translateY(0);
}

.timeline-date-ab6f91fe {
    display: inline-block;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 8px;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.timeline-title-ab6f91fe {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}

.timeline-desc-ab6f91fe {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

/* Swiper Gallery */
.timeline-gallery-ab6f91fe {
    margin-top: 16px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.timeline-gallery-ab6f91fe .swiper-slide {
    height: 350px; /* Enforce height as requested */
    width: 100%;
}

.timeline-gallery-ab6f91fe .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.timeline-gallery-ab6f91fe .swiper-button-next,
.timeline-gallery-ab6f91fe .swiper-button-prev {
    color: #fff;
    background: rgba(0,0,0,0.4);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transform: scale(0.7);
    transition: background 0.3s;
}

.timeline-gallery-ab6f91fe .swiper-button-next:hover,
.timeline-gallery-ab6f91fe .swiper-button-prev:hover {
    background: rgba(0,0,0,0.7);
}

.timeline-gallery-ab6f91fe .swiper-button-next:after,
.timeline-gallery-ab6f91fe .swiper-button-prev:after {
    font-size: 16px;
}

/* Desktop layout (Alternating) */
@media (min-width: 768px) {
    .timeline-line-wrapper-ab6f91fe {
        left: 50%;
        margin-left: -2px; /* Center 4px line perfectly */
    }

    .timeline-item-ab6f91fe {
        width: 50%;
        padding-left: 0;
        padding-right: 40px;
        margin-bottom: 4rem;
    }

    .timeline-item-ab6f91fe:nth-child(even) {
        margin-left: auto;
        padding-right: 0;
        padding-left: 40px;
    }

    .timeline-dot-ab6f91fe {
        left: 100%;
        margin-left: -8px; /* Offset half the dot width (16px / 2 = 8px) to center on right edge */
    }

    .timeline-item-ab6f91fe:nth-child(even) .timeline-dot-ab6f91fe {
        left: 0;
        margin-left: -8px; /* Offset half the dot width (16px / 2 = 8px) to center on left edge */
    }
    
    /* Ensure the transform scale in the visibility class doesn't override positioning logic */
    .timeline-item-ab6f91fe.is-visible .timeline-dot-ab6f91fe {
        transform: scale(1); /* No translation needed since we use margin-left for centering */
    }
}