.timeline {
    position: relative;
    padding: 20px 0;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 3px;
    background: #3c70b4;
    border-radius: 3px;
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 0.8s ease-out;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    left: -75px;
    top: 80px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px #3c70b4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    z-index: 10;
    overflow: hidden;
}

.timeline-date {
    float: right;
    padding: 5px 15px;
    background: #f9f9f9;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #3c70b4;
    border: 1px solid #e0e0e0;
    font-size: 14px;
}

.timeline-content {
    background: #fff;
    width: 100%;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-wrap: wrap;
}

.timeline-content:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: translateY(-3px);
}



.experience-info {
    padding: 10px;
    margin-left: 75px;
}

.experience-info h3 {
    margin-top: 0;
    color: #2d3038;
}

.experience-info h5 {
    color: #f7941d;
    margin-bottom: 10px;
}

.experience-info p {
    color: #555;
    line-height: 1.6;
}

/* Animation for timeline line */
.animate-timeline:before {
    transform: scaleY(1);
    transition: transform 0.8s ease-out;
}

/* Responsive styles */
@media (max-width: 767px) {
    .timeline-content {
        flex-direction: column;
    }
    
    .experience-image, .experience-info {
        flex: 0 0 100%;
    }
    
    .experience-image {
        margin-bottom: 15px;
    }
    .timeline-dot {
        display: none;
    }
    .experience-info{
        margin-left: 0;
    }
}