.timeline-section {
    margin-bottom: 80px;
}

.timeline-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.timeline-entry-wrap { 
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
}
@media(min-width: 768px) {
    .timeline-entry-wrap::after{
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        height: 100%;
        width: 1px;
        background: #000000;
        transform: translateX(-50%);
    }
    
    .timeline-entry{
        display: flex;
        flex-direction: column;
        width: 50%;
    }
    
    /* Left side entries (even) */
    .timeline-entry-wrap:nth-child(even) {
        flex-direction: row;
    }
    /* Right side entries (odd) */
    .timeline-entry-wrap:nth-child(odd) {
        flex-direction: row-reverse;
    }
    .timeline-entry-wrap:nth-child(even) .timeline-content {
        margin-right: 0;
        margin-left: auto;
        text-align: right;
    }
    .timeline-entry-wrap:nth-child(odd) .timeline-content {
        margin-left: 0;
        margin-right: auto;
        text-align: right;
    }
    .timeline-entry-wrap:nth-child(odd) .timeline-year {
        text-align: right;
        margin-right: auto;
    }

    .timeline-entry-wrap:nth-child(even) .timeline-year {
        text-align: right;
        margin-left: auto;
    }
    
    .timeline-entry-wrap .timeline-content,
    .timeline-entry-wrap .timeline-year{
        width: 100%;
        max-width: 510px;
    }
    
    
    .timeline-year { 
        position: relative;
        font-size: 2rem;
        font-weight: 700;
        color: #000;
        margin-bottom: 15px;
        display: block;
        padding: 0 20px;
    }
    .timeline-entry-wrap .timeline-year::after{
        content: "";
        background: #000;
        border-radius: 50%;
        height: 25px;
        width: 25px;
        opacity: 1;
        position: absolute;
        left: calc(100% + 177px);
        top: calc(50% - 6px);
        -webkit-transition: all .8s ease;
        transition: all .8s ease;
        z-index: 15;
    }

       
    .timeline-entry-wrap:nth-child(even) .timeline-year::after{
        right: calc(100% + 177px);
    }
    
    
    .pointing-line {
        display: block;
        border-radius: .05rem 0 0 .05rem;
        display: inline-block;
        height: 12px;
        opacity: 0;
        position: absolute;
        top: calc(50%);
        -webkit-transition: opacity .8s ease;
        transition: opacity .8s ease;
        width: 0;
    }
    
    .timeline-entry-wrap:nth-child(odd) .pointing-line{
        left: calc(100% + 82px);
        background: linear-gradient(94deg, #ffffff, #11c98c 55%, #0255eb);
    }
    .timeline-entry-wrap:nth-child(even) .pointing-line{
        right: calc(100% + 82px);
        background: linear-gradient(94deg, #0255eb, #11c98c 55%, #ffffff);
    }
 
    
    .timeline-entry-wrap .timeline-image{
        opacity: 0;
        height: 0;
    }
    .timeline-entry-wrap:hover .timeline-year::after{
        background: #43a895;
        transform: scale(1.12);
    }
    .timeline-entry-wrap:hover .pointing-line{
        opacity: 1;
        width: 120px;
    }

    .timeline-entry-wrap:hover .timeline-image{
        opacity: 1;
        height: auto;
    }
    
    
    .timeline-content {
        flex: 1;
        max-width: 510px; 
        padding: 20px;
        position: relative;
        cursor: pointer;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    
    .timeline-text {
        font-size: 22px;
        color: #333;
        margin: 0;
        transition: all 0.3s ease;
        
    }
    
    .timeline-text:hover {
        transform: translateY(-2px);
    }
    
    .timeline-image { 
        margin-top: 15px;
        border-radius: 8px;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .timeline-image.show {
        display: block;
    }
    
    .timeline-image img {
        width: 100%;
        height: auto;
        display: block;
    }
    
}

/* Responsive Design */
@media (max-width: 767px) {
    .about-timeline {
        padding: 40px 15px;
    }
    
    .timeline-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .timeline-entry-wrap{
        position: relative;
        padding-top: 15px;
    }
    .timeline-entry-wrap::after{
        content: "";
        position: absolute;
        top: 0;
        right: 20px;
        width: 2px;
        height: 100%;
        background: #282828;
    }

    .timeline-year{
        margin-right: 60px;
    }
    .timeline-year::after {
        content: "";
        width: 12px;
        height: 12px;
        background: #282828;
        border-radius: 100%;
        position: absolute;
        top: 22px;
        right: 15px;
    }
    
    .timeline-container::before {
        right: 30px;
    }
    
    .timeline-entry {
        flex-direction: row;
        margin-bottom: 40px;
    }
    
    .timeline-entry::before {
        right: 30px;
    }
    
    .timeline-content {
        margin-right: 60px;
        margin-left: 0 ;
        text-align: right;
        max-width: none;
        
    }
    
    .timeline-year {
        font-weight: bold;
        font-size: 22px;
    }
    
    .timeline-text {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
}
