@import 'variable.css';

/*--------------------------------------------------------------
# about
--------------------------------------------------------------*/
.about .img-logo{
    width: 15%;
    padding: 20px 0;
}
@media (max-width: 786px){
    .about .img-logo{
        width: 40%;
    }
}
.about .about-logo{
    padding: 10px 20px 20px;
}
.about .about-logo h2{
    padding: 0 20px;
    color: var(--color1);
    font-size: 25px;   
    text-align: center; 
    font-weight: 600;
}
.about .about-logo .desc, .about .more-info{
    text-align: center;
    color: var(--color1);
}

.about .timeline{
    position: relative;
    padding: 10px 0;
}
.about .even, .about .odd{
    position: relative;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding-bottom: 60px;
}
.about .even:last-child, .about .odd:last-child{
    padding-bottom: 0;
}
/* Connects this row's dot to the next row's dot exactly - since padding-bottom
   above already reserves the gap, height:100% lands precisely on the next dot
   without overshooting past the first or last dot. */
.about .even:not(:last-child)::after,
.about .odd:not(:last-child)::after{
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 3px;
    height: 100%;
    background: var(--bg-linear);
    transform: translateX(-50%);
    border-radius: 3px;
    z-index: 1;
}
.about .timeline-dot{
    position: absolute;
    top: 6px;
    left: 50%;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 3px solid var(--color1);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 5px rgba(47, 125, 66, 0.12);
    z-index: 2;
}
.about .story{
    font-family: var(--font-secondary);
    width: 45%;
    color: #000;
    padding: 15px;
    border: 1px solid var(--color1);
    border-radius: 20px;
    font-size: 18px;
    background: #fff;
}
.about .year{
    position: absolute;
    top: 0;
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
    color: var(--color1);
    font-weight: 700;
    z-index: 3;
    background: #fff;
    padding: 2px 14px;
    border-radius: 8px;
    white-space: nowrap;
}

@media (max-width: 786px){
    .about .even:not(:last-child)::after,
    .about .odd:not(:last-child)::after{
        left: 20px;
    }
    .about .timeline-dot{
        left: 20px;
        top: 6px;
    }
    .about .even, .about .odd{
        flex-wrap: wrap;
        gap: 8px;
        padding-left: 50px;
        justify-content: flex-start !important;
    }
    .about .even .story,
    .about .odd .story,
    .about .story{
        width: 100%;
    }
    .about .year{
        position: static;
        transform: none;
        padding: 2px 0;
        background: transparent;
    }
}
