.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

.timeline-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    z-index: 2;
    padding: 20px 0;
}

.timeline-pagination::before {
    content: '';
    position: absolute;
    height: 2px;
    background: white;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

.timeline-dots {
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
    min-width: 0;
    flex: 1;
    justify-content: space-around;
    padding: 15px 0;
}

.timeline-dot {
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, border 0.3s ease;
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot.active {
    transform: scale(3.5);
    background-color: #FF6B35 !important;
    outline: 0.5px solid white !important;
    outline-offset: 0;
    border: none !important;
    font-size: 5px;
}

.timeline-dot.active span {
    font-size: 5px !important;
}

@media (min-width: 1024px) {
    .timeline-dot.active {
        transform: scale(2.2);
        outline: 1px solid white !important;
        outline-offset: 0;
        font-size: inherit;
    }
    
    .timeline-dot.active span {
        font-size: inherit !important;
    }
}

.timeline-dot:hover {
    opacity: 1;
}

.timeline-dot-mobile-hidden {
    display: none !important;
}

@media (max-width: 1023px) {
    .timeline-dot[data-end-dot="true"] {
        transform: scale(2) !important;
    }
    
    .timeline-dot[data-end-dot="true"] span {
        font-size: 5px !important;
    }
}

@media (min-width: 1024px) {
    .timeline-dot-mobile-hidden {
        display: flex !important;
    }
}

.timeline-arrow {
    cursor: pointer;
    background: white;
    border: none;
    transition: all 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 10;
}

.timeline-arrow:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Embla carousel styles */
.timeline-carousel.embla {
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.embla__viewport {
    overflow: hidden;
}

.embla__container {
    display: flex;
}

.embla__slide {
    flex: 0 0 100%;
    min-width: 0;
}

@media (max-width: 1023px) {
    .timeline-dot-compact-hidden {
        display: none !important;
    }
}
