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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--gray-300);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: flex-start;
    clear: both;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    z-index: 2;
    box-shadow: 0 0 0 4px var(--white), 0 0 0 6px rgba(30, 95, 116, 0.2);
}

.timeline-content {
    position: relative;
    width: calc(50% - 40px);
    padding: 25px;
    border-radius: 10px;
    background-color: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -13px;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 15px solid var(--white);
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -13px;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-right: 15px solid var(--white);
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--light-color);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 500;
}

.timeline-title {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.timeline-subtitle {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.timeline-description {
    margin-bottom: 0;
}

.timeline-description ul {
    padding-left: 20px;
    margin-top: 15px;
}

/* Mobile timeline layout */
@media (max-width: 767px) {
    .timeline::before {
        left: 30px;
        transform: none;
    }
    
    .timeline-item {
        margin-bottom: 40px;
        display: block;
    }
    
    .timeline-dot {
        left: 30px;
        transform: translateX(-50%);
        top: 15px;
        width: 15px;
        height: 15px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 60px !important;
        margin-right: 0 !important;
        padding: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        content: '';
        position: absolute;
        top: 15px;
        left: -13px;
        width: 0;
        height: 0;
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
        border-right: 15px solid var(--white);
        border-left: none;
    }
    
    .timeline-title {
        font-size: 1.2rem;
    }
    
    .timeline-date {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
}

.timeline-description li {
    margin-bottom: 8px;
}

/* Timeline Responsive */
@media (max-width: 991.98px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
        transform: none;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        float: right !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after {
        right: auto;
        left: -13px;
        border-left: none;
        border-right: 15px solid var(--white);
    }
}

@media (max-width: 575.98px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        padding: 20px;
    }
    
    .timeline-title {
        font-size: 1.2rem;
    }
}
