/* ======================================================================= */
/*                           TIMELINE STYLES                               */
/* ======================================================================= */

/* Tombstone: Moved timeline styles from timeline-carousel.css */
/* Tombstone: Moved timeline styles from base.css */

/* Timeline grid styles */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.timeline-item {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #00548c;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-height: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.timeline-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    margin-bottom:0;
    padding: 0;
    opacity: 1;
    filter: none;
    box-shadow: none;
}

.timeline-year-big {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
    text-shadow: none;
    display: block;
}

.timeline-item h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: block;
}

.timeline-item p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    flex-grow: 1;
    letter-spacing: 0.01em;
    display: block;
}

/* TIMELINE STYLES from base.css */
.timeline-container {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 0 1rem;
}

.timeline-track {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
}

.timeline-card {
    flex: 1;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid var(--primary-color);
    min-height: 400px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    z-index: 2;
    width: 100%;
    max-width: 350px;
    min-width: 300px;
}

.timeline-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    border-color: var(--secondary-color);
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid #ffffff;
    z-index: 3;
}

.timeline-year {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Amaranth', sans-serif;
    flex-shrink: 0;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    justify-content: space-between;
    height: 100%;
}

.timeline-icon {
    width: 100px;
    height: 100px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    padding: 10px;
}

.timeline-icon img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
}

.timeline-card h3 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.3;
    flex-shrink: 0;
}

.timeline-card p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.6;
    color: var(--text-muted-color);
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .timeline-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .timeline-item {
        min-height: 250px;
        padding: 1.5rem 1rem;
    }
    
    .timeline-item img {
        width: 60px;
        height: 45px;
    }
    
    .timeline-year-big {
        font-size: 1.5rem;
    }
    
    .timeline-item h3 {
        font-size: 1.2rem;
    }
    
    .timeline-item p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .timeline-item {
        padding: 1.2rem 0.8rem;
    }
    
    .timeline-year-big {
        font-size: 1.3rem;
    }
    
    .timeline-item h3 {
        font-size: 1.1rem;
    }
    
    .timeline-item p {
        font-size: 1rem;
    }
}