/* Timeline Section Styles */
.timeline-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
    position: relative;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
}

.timeline-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #2196F3;
    border-radius: 2px;
}

/* Timeline Container */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Timeline Items */
.timeline-item {
    /* padding: 30px 0; */
    padding: -13px 0;

    width: 100%;
    position: relative;
    background-color: transparent;
    opacity: 1;
    transition: all 0.5s ease;
}

/* Year badge */
.timeline-year {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #2196F3;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    z-index: 2;
    width: 100px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(33,150,243,0.3);
}

/* Vertical line next to year badge */
.timeline-year::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 30px;
    background: #2196F3;
    right: -20px;
    top: 50%;
}

/* Connecting curved line between years */
.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    width: 4px;
    background: #2196F3; /* Changed from red to theme color */
    left: 50px;
    top: 50%;
    height: calc(100% + 30px);
    transform-origin: top;
    animation: drawLine 1s ease forwards;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.2);
}

@keyframes drawLine {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

.timeline-content {
    margin-left: 150px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
}

/* Timeline Box */
.timeline-box {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    display: flex;
    gap: 30px;
    transition: all 0.3s ease;
    margin-top: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.timeline-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.timeline-box:active {
    transform: translateY(-2px);
}

.timeline-image {
    flex: 0 0 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.timeline-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.timeline-image:hover img {
    transform: scale(1.1);
}

.timeline-info {
    flex: 1;
    width: 100%;
}

.timeline-info h3 {
    margin: 0 0 15px;
    color: #333;
    font-size: 24px;
}

.timeline-brief {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.timeline-details {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #555;
    line-height: 1.6;
    animation: fadeIn 0.3s ease;
}

/* Remove any remaining read-more button styles */
.read-more-btn {
    display: none;
}

.timeline-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-details > ul > li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 16px;
    font-weight: 500;
}

.timeline-details > ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #2196F3;
    border-radius: 50%;
}

/* Nested lists styling */
.timeline-details ul ul {
    margin-top: 12px;
    margin-left: 4px;
}

.timeline-details ul ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-weight: normal;
    font-size: 0.95em;
    color: #5a6c7d;
}

.timeline-details ul ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 1px;
    background: #2196F3;
}

/* Third level lists */
.timeline-details ul ul ul {
    margin-top: 8px;
    margin-left: 2px;
}

.timeline-details ul ul ul li {
    padding-left: 16px;
    margin-bottom: 6px;
    font-size: 0.9em;
}

.timeline-details ul ul ul li::before {
    width: 6px;
    height: 1px;
    top: 9px;
}

/* Animation for expanding content */
@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline-details > ul > li {
        padding-left: 20px;
        margin-bottom: 14px;
    }

    .timeline-details ul ul {
        margin-left: 0;
    }

    .timeline-details ul ul li {
        padding-left: 16px;
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .timeline-details {
        margin-top: 15px;
        padding-top: 15px;
    }

    .timeline-details > ul > li {
        padding-left: 18px;
        margin-bottom: 12px;
        font-size: 0.95em;
    }

    .timeline-details ul ul li {
        padding-left: 14px;
        font-size: 0.9em;
    }
}

/* Active State Indicators */
.timeline-nav button.disabled {
    background: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Timeline Progress Bar */
.timeline-progress {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dee2e6;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: #2196F3;
    transform: scale(1.3);
} 