/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
}

.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1,h4 {
    text-align: center;
    margin-bottom: 30px;
}

.timeline {
    position: relative;
    padding: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 4px;
    /* background:  #333; */
    background:  #78adc9;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 30px;
    height: 30px;
    background: #fff;
    border: 4px solid #333;
    border-radius: 50%;
    left: -16px;
    transform: translateX(-50%);
    display: none;
}

.timeline-item:nth-child(even)::before {
    left: 100%;
    transform: translateX(-50%);
}

/* Two-column layout: image and text for desktop */
.timeline-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.timeline-content h2 {
    margin-bottom: 10px;
}

.timeline-img {
    flex: 0 0 150px; /* Image will take up 150px */
    height: 150px;
    background: #eaeaea;
    border-radius: 8px;
}

.timeline-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.timeline-text {
    flex: 1;
    text-align: left;
}

.timeline-text strong{
    color:#78adc9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 40px;
        margin-bottom: 20px;
        display: block;
    }

    .timeline-item::before {
        left: 0;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    /* Stack the image and text vertically on smaller screens */
    .timeline-content {
        flex-direction: column;
    }

    .timeline-img {
        flex: none;
        width: 100%;
        height: 200px;
    }
}
