/* ===== Base Styles ===== */
body {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: #f9f9f9;
    padding: 0;
    margin: 0;
    color: #333;
    line-height: 1.6;
}

.space {
    height: 100px;
}

.main-content {
    display: flex;
    flex-direction: column;
    margin: 20px auto;
    max-width: 1200px;
    padding: 0 15px;
}

/* ===== Events Section ===== */
#events {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    font-size: 2.2em;
    color: #222;
    margin-bottom: 1.2em;
    text-align: center;
    font-weight: 500;
}

/* ===== Timeline Events ===== */
.timeline-event {
    display: flex;
    margin-bottom: 35px;
    position: relative;
    padding-left: 10px;
}

.timeline-icon {
    width: 42px;
    height: 42px;
    background: #2c3e50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 20px;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 0 0 4px #f9f9f9;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 22px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* ===== Images (FIXED) ===== */
.timeline-content img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    background: #f5f5f5;
    border: 1px solid #eee;
    padding: 5px;
    box-sizing: border-box;
}

/* ===== Typography ===== */
.timeline-content h2,
.timeline-content h3 {
    margin: 0 0 6px 0;
    color: #2c3e50;
    font-size: 1.35rem;
    line-height: 1.35;
}

.timeline-content p {
    margin: 0 0 8px 0;
    color: #555;
    line-height: 1.5;
    max-width: 75ch;
}

.timeline-content .event-date {
    margin: 0 0 6px 0;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.timeline-content em {
    font-style: normal;
    font-weight: 500;
}

.timeline-content a:hover {
    text-decoration: underline;
}

.timeline-content {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* ===== Timeline Year Separator ===== */
.timeline-year {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 45px 0 20px 70px;
    position: relative;
}

/* ===== Responsive Design ===== */
@media (max-width: 900px) {
    .timeline-content img {
        max-height: 380px;
    }
}

@media (max-width: 768px) {
    .timeline-event {
        flex-direction: column;
    }

    .timeline-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .section-title {
        font-size: 1.8em;
    }
}

@media (max-width: 600px) {
    .timeline-content {
        padding: 16px;
    }

    .timeline-content img {
        max-height: 320px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.6em;
    }

    .timeline-content img {
        max-height: 260px;
    }
    
    
    /* ===== Timeline Spine ===== */

#events {
    position: relative;
}

#events::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #d9d9d9;
}
}