.timeline-slider-wrapper {
    position: relative;
    padding: 60px 0 40px;
    max-width: 100%;
    overflow: hidden;
}

.timeline-slider {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.timeline-slider.no-scroll {
    overflow-x: hidden;
}

.timeline-slider.no-scroll .timeline-items {
    justify-content: center;
}

.timeline-slider::-webkit-scrollbar {
    display: none;
}

/* HORIZONTAL LAYOUT (Default - Desktop) */
.timeline-items {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 0;
    min-width: min-content;
    justify-content: center;
}

/* Horizontal line for desktop */
.timeline-items::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: var(--timeline-line-width, calc(100% - 175px));
    height: 2px;
    background-color: var(--e-global-color-primary, #1a3b47);
    z-index: 0;
}

.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    min-width: 175px;
    z-index: 1;
}

.timeline-title,
.timeline-text {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.timeline-item-current .timeline-title,
.timeline-item-current .timeline-text {
    opacity: 1;
}

.timeline-dot {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background-color: var(--e-global-color-primary, #1a3b47);
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot-completed {
    background-color: var(--e-global-color-primary, #1a3b47);
}

.timeline-dot svg {
    width: 10px;
    height: 10px;
    color: var(--e-global-color-secondary, white);
    stroke-width: 3;
}

/* Pulse animation for current phase */
.timeline-item-current .timeline-dot {
    animation: timeline-pulse 2s ease-in-out infinite;
}

@keyframes timeline-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(26, 59, 71, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(26, 59, 71, 0);
    }
}

/* Small title on top */
.timeline-title {
    margin: 48px 0 8px 0;
    font-size: inherit;
    font-weight: 400;
    color: var(--e-global-color-primary, #1a3b47);
    line-height: 1.2;
    order: 1;
    display: block;
}

/* Large text on bottom */
.timeline-text {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--e-global-color-primary, #1a3b47);
    line-height: 1.2;
    display: block;
    order: 2;
}

.timeline-nav {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-nav.visible {
    opacity: 1;
}

.timeline-prev,
.timeline-next {
    all: unset;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.timeline-prev svg,
.timeline-next svg {
    width: 17px;
    height: auto;
    display: block;
}

.timeline-prev:disabled,
.timeline-next:disabled {
    opacity: 0;
    cursor: not-allowed;
    pointer-events: none;
}

/* VERTICAL LAYOUT (Tablet and below) */
@media (max-width: 768px) {
    .timeline-slider-wrapper {
        padding: 40px 0;
    }
    
    .timeline-slider {
        overflow-x: visible;
        overflow-y: visible;
    }
    
    .timeline-items {
        flex-direction: column;
        gap: 0;
        min-width: auto;
        justify-content: flex-start;
    }
    
    /* Vertical line for mobile */
    .timeline-items::before {
        top: 8px;
        left: 8px;
        transform: none;
        width: 2px;
        height: calc(100% - 16px);
    }
    
    .timeline-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
        min-width: auto;
        padding: 0 0 40px 0;
    }
    
    .timeline-item:last-child {
        padding-bottom: 0;
    }
    
    .timeline-dot {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        flex-shrink: 0;
    }
    
    /* Content wrapper for vertical stacking */
    .timeline-content {
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex: 1;
    }
    
    .timeline-title {
        margin: 0;
        font-size: inherit;
    }
    
    .timeline-text {
        margin: 0;
        font-size: 20px;
    }
    
    /* Hide navigation on mobile */
    .timeline-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .timeline-item {
        gap: 16px;
    }
    
    .timeline-title {
        font-size: inherit;
    }
    
    .timeline-text {
        font-size: 18px;
    }
}