/**
 * Interactive Timeline Accordion - Split Layout
 * Two-column design: events list on left, images on right
 */

.timeline-accordion-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.timeline-accordion-section .container {
    padding: 0 var(--spacing-sm) !important;
}

.timeline-accordion-container {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 0;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
}

/* Left Column - Events List */
.timeline-events {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-event-item {
    position: relative;
    padding: 1.75rem 2rem;
    border-left: 4px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.timeline-event-item:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.timeline-event-item:last-child {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
}

.timeline-event-item:hover {
    background-color: #f8f9fa;
}

.timeline-event-item.active {
    background-color: var(--brand-mid-blue-gray);
    border-left-color: var(--brand-primary-orange);
    box-shadow: 0 4px 12px rgba(92, 123, 146, 0.15);
}

.timeline-event-year {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--brand-primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.timeline-event-item.active .timeline-event-year {
    color: #ffffff;
}

.timeline-event-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.timeline-event-item.active .timeline-event-title {
    color: #ffffff;
}

.timeline-event-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    transition: color 0.3s ease;
}

.timeline-event-item.active .timeline-event-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Right Column - Image Display */
.timeline-images {
    position: relative;
    background-color: #e5e7eb;
    border-radius: 0;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-image-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-image-item.active {
    opacity: 1;
    z-index: 1;
}

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

.timeline-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.125rem;
}

.timeline-image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Section Header */
.timeline-accordion-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 2rem;
}

.timeline-accordion-section .section-header h2 {
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-accordion-section .section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 48rem;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .timeline-accordion-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline-images {
        min-height: 400px;
        order: -1; /* Show images above events on mobile */
    }

    .timeline-events {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .timeline-accordion-section {
        padding: 3rem 0;
    }

    .timeline-accordion-container {
        padding: 0 1rem;
    }

    .timeline-accordion-section .section-header {
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    .timeline-accordion-section .section-header h2 {
        font-size: 1.75rem;
    }

    .timeline-event-item {
        padding: 1.25rem 1.5rem;
    }

    .timeline-event-title {
        font-size: 1.125rem;
    }

    .timeline-event-description {
        font-size: 0.875rem;
    }

    .timeline-images {
        min-height: 300px;
    }
}
