.timeline-slider-container {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
    padding: 60px 0;
}

.timeline-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.6s ease-in-out;
    transform: scale(1);
}

/* Add zoom effect on background images */
.timeline-background.zoom-in {
    transform: scale(1.05);
}

.timeline-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.timeline-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.timeline-years {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 50px;
    max-width: 1400px;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-year-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 2;
    justify-content: center;
}

.timeline-year {
    color: #ffffff;
    position: absolute;
    top: calc(50% + 25px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: 3;
    border: 3px solid #ffffff;
}

.timeline-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid transparent;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.timeline-dot.active {
    background-color: #0a8a7a;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.timeline-dot.active::before {
    border-color: #ffffff;
}

.timeline-dot.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ffffff;
    z-index: 2;
}

/* Only apply hover effects on non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .timeline-dot:not(.active):hover {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
    }

    .timeline-year:hover {
        transform: translateX(-50%) translateY(-2px);
    }
}

.timeline-details {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 30px;
    text-align: center;
    color: #ffffff;
}

.timeline-detail-item {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.timeline-detail-item.active {
    display: block;
}

.timeline-title {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.timeline-description {
    line-height: 1.6;
    font-size: 16px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .timeline-slider-container {
        min-height: 500px;
        padding: 40px 0;
    }
    
    .timeline-years {
        padding: 0 30px;
        max-width: 900px;
    }
    
    .timeline-year {
        font-size: 15px;
    }
    
    .timeline-details {
        margin: 30px auto 0;
        padding: 25px;
        max-width: 700px;
    }
    
    .timeline-title {
        font-size: 22px;
    }
    
    .timeline-description {
        font-size: 15px;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .timeline-slider-container {
        min-height: 350px; /* Reduced from 600px */
        padding: 30px 0; /* Reduced padding */
    }
    
    .timeline-background {
        background-size: cover;
        background-position: center center; /* Better mobile positioning */
        background-attachment: scroll; /* Better mobile performance */
    }
    
    .timeline-content {
        padding: 0 15px;
    }

    .timeline-years {
        flex-wrap: wrap;
        gap: 25px 0; /* Reduced gap */
        padding: 20px 10px; /* Reduced padding */
        max-width: 100%;
    }

    .timeline-line {
        display: none;
    }

    .timeline-year-item {
        flex: 1;
        min-width: 50%;
        position: relative;
        height: 50px; /* Reduced height */
    }

    .timeline-year {
        position: absolute;
        top: 25px; /* Adjusted for new height */
        left: 50%;
        transform: translateX(-50%);
        font-size: 13px; /* Smaller font */
        font-weight: 600; /* Bolder for better readability */
    }
    
    .timeline-dot {
        width: 16px;
        height: 16px;
        border: 2px solid #ffffff;
        top: 0;
    }
    
    .timeline-dot.active::after {
        width: 6px;
        height: 6px;
    }
    
    .timeline-details {
        margin: 25px auto 0; /* Reduced margin */
        padding: 20px 15px; /* Reduced padding */
        max-width: 100%;
    }
    
    .timeline-title {
        font-size: 20px; /* Smaller title */
        margin-bottom: 15px;
    }
    
    .timeline-description {
        font-size: 14px; /* Smaller description */
        line-height: 1.5;
    }
}

/* Small mobile phones */
@media (max-width: 480px) {
    .timeline-slider-container {
        min-height: 300px; /* Even smaller for very small phones */
        padding: 20px 0;
    }
    
    .timeline-years {
        gap: 20px 0;
        padding: 15px 5px;
    }
    
    .timeline-year-item {
        height: 45px;
    }
    
    .timeline-year {
        top: 22px;
        font-size: 12px;
    }
    
    .timeline-dot {
        width: 14px;
        height: 14px;
    }
    
    .timeline-dot.active::after {
        width: 5px;
        height: 5px;
    }
    
    .timeline-details {
        margin: 20px auto 0;
        padding: 15px 10px;
    }
    
    .timeline-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .timeline-description {
        font-size: 13px;
    }
} 