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

.timeline:after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -2px;
    background-color: #ffd6a0;
    height: 100%;
    width: 1px;
    display: block; 
}

.timeline .timeline-row {
    padding-left: 50%;
    position: relative;
    z-index: 10; 
}

.timeline .timeline-row .timeline-time {
    position: absolute;
    right: 50%;
    top: 31px;
    text-align: right;
    margin-right: 40px;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600; 
}

.timeline .timeline-row .timeline-time small {
    display: block;
    color: #76bbad;
    font-size: 11px;
    font-weight: 600; 
}

.timeline .timeline-row .timeline-icon {
    position: absolute;
    top: 30px;
    left: 50%;
    margin-left: -20px;
    width: 38px;
    height: 38px;
    background-color: #d1d1d1;
    text-align: center;
    overflow: hidden;
    padding: 2px;
    color: white;
    font-size: 14px;
    z-index: 100; 
}

.timeline .timeline-row .timeline-icon > div {
    line-height: 34px;
    font-size: 16px; 
}

.timeline .timeline-row .timeline-content {
    margin-left: 40px;
    position: relative;
    background-color: white;
    color: #333333; 
}

.timeline .timeline-row .timeline-content:after {
    content: "";
    position: absolute;
    top: 48px;
    left: -41px;
    height: 1px;
    width: 40px;
    background-color: #ffd6a0;
    z-index: -1; 
}

.timeline .timeline-row .timeline-content .panel-body {
    padding: 15px 15px 2px;
    position: relative;
    z-index: 10; 
}

.timeline .timeline-row .timeline-content h2 {
    font-size: 22px;
    margin-bottom: 12px;
    margin-top: 0;
    line-height: 1.2; 
}

.timeline .timeline-row .timeline-content p, .timeline .timeline-row .timeline-content img {
    margin-bottom: 15px; 
}

.timeline .timeline-row:nth-child(odd) {
    padding-left: 0;
    padding-right: 50%; 
}

.timeline .timeline-row:nth-child(odd) .timeline-time {
    right: auto;
    left: 50%;
    text-align: left;
    margin-right: 0;
    margin-left: 30px; 
}

.timeline .timeline-row:nth-child(odd) .timeline-content {
    margin-right: 40px;
    margin-left: 0; 
}

.timeline .timeline-row:nth-child(odd) .timeline-content:after {
    left: auto;
    right: -41px; 
}

.timeline.animated .timeline-row .timeline-content {
    opacity: 0;
    left: 20px;
    -webkit-transition: all 0.8s;
    -moz-transition: all 0.8s;
    transition: all 0.8s; 
}

.timeline.animated .timeline-row:nth-child(odd) .timeline-content {
    left: -20px; 
}

.timeline.animated .timeline-row.active .timeline-content {
    opacity: 1;
    left: 0; 
}

.timeline.animated .timeline-row.active:nth-child(odd) .timeline-content {
    left: 0; 
}

@media (max-width: 1200px) {
    .timeline {
        padding: 15px 10px; 
    }
    
    .timeline:after {
        left: 28px; 
    }
    
    .timeline .timeline-row {
        padding-left: 0;
        margin-bottom: 16px; 
    }
    
    .timeline .timeline-row .timeline-time {
        position: relative;
        right: auto;
        top: 0;
        text-align: left;
        margin: 0 0 6px 56px; 
    }
    
    .timeline .timeline-row .timeline-time strong {
        display: inline-block;
        margin-right: 10px; 
    }
    
    .timeline .timeline-row .timeline-icon {
        top: 52px;
        left: -2px;
        margin-left: 0; 
    }
    
    .timeline .timeline-row .timeline-content {
        margin-left: 56px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        position: relative; 
    }
    
    .timeline .timeline-row .timeline-content:after {
        right: auto !important;
        left: -20px !important;
        top: 32px; 
    }
    
    .timeline .timeline-row:nth-child(odd) {
        padding-right: 0; 
    }
    
    .timeline .timeline-row:nth-child(odd) .timeline-time {
        position: relative;
        right: auto;
        left: auto;
        top: 0;
        text-align: left;
        margin: 0 0 6px 56px; 
    }
    
    .timeline .timeline-row:nth-child(odd) .timeline-content {
        margin-right: 0;
        margin-left: 55px; 
    }
    
    .timeline.animated .timeline-row:nth-child(odd) .timeline-content {
        left: 20px; 
    }
    
    .timeline.animated .timeline-row.active:nth-child(odd) .timeline-content {
        left: 0; 
    } 
}
