/* Timeline Component Styles - Carousel Design */
.timeline-section {
    padding: 1.5rem 0;
    background: white;
    overflow: hidden;
}

.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.timeline-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.timeline-header h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: #ffc107;
    margin-bottom: 1rem;
    font-weight: 700;
}

.timeline-header p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Timeline Wrapper */
.timeline-wrapper {
    position: relative;
    width: 100%;
}

/* Carousel Container */
.timeline-carousel {
    position: relative;
    min-height: 280px;
    margin-bottom: 1.5rem;
}

/* Carousel Slide */
.timeline-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.timeline-slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Year Display - Large */
.timeline-year-display {
    text-align: center;
    margin-bottom: 0.75rem;
}

.timeline-year-large {
    font-size: clamp(3.5rem, 12vw, 7rem);
    font-weight: 700;
    color: #FFD966;
    opacity: 1;
    line-height: 1;
    letter-spacing: 0.02em;
    margin: 0;
}

/* Event Cards Container */
.timeline-events {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    min-height: 120px;
    margin-bottom: 1.5rem;
}

.timeline-event-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    flex: 1;
    min-width: 350px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.timeline-event-card h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: #ffc107;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.timeline-event-card p {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.timeline-event-card p strong {
    color: #ffc107;
}

/* Navigation Arrows */
.timeline-nav {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(255, 193, 7, 0.1);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.timeline-nav:hover {
    background: rgba(255, 193, 7, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.timeline-nav.prev {
    left: -25px;
}

.timeline-nav.next {
    right: -25px;
}

.timeline-nav i {
    font-size: 1.5rem;
    color: #ffc107;
}

.timeline-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.timeline-nav:disabled:hover {
    transform: translateY(-50%) scale(1);
    background: rgba(255, 193, 7, 0.1);
}

/* Bottom Timeline Bar */
.timeline-bar {
    position: relative;
    padding: 1rem 0;
    margin-top: 1rem;
}

/* Timeline Line - Dashed */
.timeline-line {
    position: relative;
    width: 100%;
    height: 2px;
    background: transparent;
    border-top: 2px dashed #ddd;
    margin: 1rem 0;
}

/* Timeline Points Container */
.timeline-points {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    padding: 0 20px;
}

/* Individual Timeline Point */
.timeline-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-point:hover .timeline-dot {
    transform: scale(1.3);
    background: #ffc107;
}

.timeline-point:hover .timeline-year-label {
    color: #ffc107;
    font-weight: 600;
}

/* Timeline Dot */
.timeline-dot {
    width: 10px;
    height: 10px;
    background: #ffc107;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.timeline-point.active .timeline-dot {
    width: 14px;
    height: 14px;
    background: #ffc107;
    box-shadow: 0 0 0 5px rgba(255, 193, 7, 0.3);
}

/* Year Label Below Dot */
.timeline-year-label {
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    color: #333;
    font-weight: 500;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.timeline-point.active .timeline-year-label {
    color: #FFB90F;
    font-size: clamp(0.85rem, 1.7vw, 1rem);
}

/* Current Year Indicator */
.timeline-current-year {
    text-align: right;
    font-size: clamp(2rem, 8vw, 3.5rem);
    color: #FFB90F;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .timeline-nav.prev {
        left: -15px;
    }

    .timeline-nav.next {
        right: -15px;
    }

    .timeline-points {
        padding: 0 10px;
    }

    .timeline-year-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .timeline-section {
        padding: 1.5rem 0;
    }

    .timeline-container {
        padding: 0 1rem;
    }

    .timeline-carousel {
        min-height: 260px;
    }

    .timeline-nav {
        width: 40px;
        height: 40px;
    }

    .timeline-nav i {
        font-size: 1.2rem;
    }

    .timeline-nav.prev {
        left: 0;
    }

    .timeline-nav.next {
        right: 0;
    }

    .timeline-events {
        flex-direction: column;
        gap: 1.5rem;
        min-height: 100px;
    }

    .timeline-event-card {
        max-width: 100%;
        min-width: 100%;
    }

    .timeline-bar {
        overflow-x: auto;
        padding: 1rem 0;
    }

    .timeline-points {
        min-width: 800px;
        padding: 0 5px;
    }

    .timeline-year-label {
        font-size: 0.65rem;
    }

    .timeline-dot {
        width: 8px;
        height: 8px;
    }

    .timeline-point.active .timeline-dot {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .timeline-header {
        margin-bottom: 1rem;
    }

    .timeline-carousel {
        min-height: 240px;
    }

    .timeline-event-card {
        padding: 1.5rem;
        min-width: 100%;
    }

    .timeline-year-large {
        font-size: 3rem;
    }

    .timeline-current-year {
        font-size: 1.8rem;
    }
}

/* Loading State */
.timeline-slide.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Smooth scrolling for timeline bar */
.timeline-bar {
    scroll-behavior: smooth;
}

.timeline-bar::-webkit-scrollbar {
    height: 6px;
}

.timeline-bar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.timeline-bar::-webkit-scrollbar-thumb {
    background: #ffc107;
    border-radius: 10px;
}

.timeline-bar::-webkit-scrollbar-thumb:hover {
    background: #ffb300;
}