.timeline-hero {
    background: #ffffff;
    padding: 7rem 0 3rem 0; /* match gallery hero top offset */
    text-align: center;
}

.timeline-hero .section-title {
    color: var(--text-primary);
}

.timeline-hero .section-subtitle {
    color: var(--text-secondary);
}

.timeline-section {
    background: #ffffff;
    padding: 3rem 0 5rem 0;
}

.timeline {
    position: relative;
    margin: 0 auto;
    max-width: 800px;
}

.timeline-year {
    margin: 3rem 0 2rem 0;
}

.timeline-year .year-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
}

.timeline-group {
    background: rgba(255,255,255,0.95);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.timeline-item:hover {
    background-color: rgba(102, 126, 234, 0.02);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item .flag {
    width: 32px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
    background: #f1f5f9;
    border: 1px solid var(--border-color);
}

.timeline-item .country {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.timeline-item .code {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Year grouping header */
.timeline-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.timeline-header .count {
    color: var(--text-light);
    font-weight: 600;
}

/* Subtle fade-in animation */
.timeline-year, .timeline-item {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeInUp 0.5s ease forwards;
}

.timeline-year { animation-delay: 0.05s; }
.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.15s; }
.timeline-item:nth-child(3) { animation-delay: 0.2s; }
.timeline-item:nth-child(4) { animation-delay: 0.25s; }
.timeline-item:nth-child(5) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .timeline-group {
        padding: 1.5rem;
    }
}


