/* Timeline Styles */

.timeline-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 1.0rem;
    color: #2c3e50;
}

.timeline-wrapper .timeline-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.timeline-wrapper .timeline-heading h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.timeline-wrapper .timeline-heading p {
    font-size: 0.95rem;
    color: #777;
    max-width: 700px;
    margin: 0 auto;
}

.timeline-wrapper .timeline-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--color-green);
    margin: 1rem auto 0;
}

.timeline-wrapper .timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-wrapper .timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    width: 4px;
    background: var(--color-green);
    opacity: 0.3;
    border-radius: 2px;
}

.timeline-wrapper .timeline-event {
    position: relative;
    margin-bottom: 40px;
}

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

.timeline-wrapper .timeline-dot {
    display: none;
}

.timeline-wrapper .timeline-year-container {
    position: absolute;
    top: 10px;
    z-index: 5;
    left: 50%;
    margin-left: -60px;
    width: 120px;
    text-align: center;
}

.timeline-wrapper .timeline-year {
    position: relative;
    font-size: 1.2rem;
    font-weight: 700;
    display: inline-block;
    color: #2c3e50;
    background-color: white;
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

.timeline-wrapper .timeline-content {
    position: relative;
    width: 45%;
    padding: 0;
    margin-top: 40px;
    box-sizing: border-box;
}

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

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

.timeline-wrapper .timeline-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.timeline-wrapper .timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.timeline-wrapper .timeline-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.timeline-wrapper .timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-wrapper .timeline-image-contain img {
    object-fit: contain;
    padding: 20px;
    background-color: white;
}

.timeline-wrapper .timeline-card-body {
    padding: 20px;
    color: #2c3e50;
}

@media (max-width: 992px) {
    .timeline-wrapper .timeline::before {
        left: 30px;
    }

    .timeline-wrapper .timeline-year-container {
        left: 30px;
        margin-left: 0;
        width: auto;
        text-align: left;
        z-index: 10;
        top: -30px;
    }

    .timeline-wrapper .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
        margin-top: 20px;
    }
}