/*=========================================
 Premium Vertical Timeline
=========================================*/


*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}



body{

    font-family:'Plus Jakarta Sans',sans-serif;

    background:#f8fafc;

    color:#0f172a;

}



/*=========================================
 Section
=========================================*/

.history-section{

    padding:100px 40px;

}



.history-header{

    text-align:center;

    max-width:700px;

    margin:auto;

}



.history-header span{

    display:inline-block;

    padding:8px 22px;

    background:#dbeafe;

    color:#2563eb;

    border-radius:50px;

    font-size:13px;

    font-weight:700;

}



.history-header h1{

    font-size:52px;

    font-weight:800;

    margin:20px 0 10px;

}



.history-header p{

    color:#64748b;

    line-height:1.8;

}



/*=========================================
 Timeline
=========================================*/


.history-timeline{

    position:relative;

    max-width:1100px;

    margin:80px auto;

}



/* เส้นกลาง */

.history-timeline::before{

    content:"";

    position:absolute;

    left:50%;

    top:0;

    bottom:0;

    width:3px;

    background:#dbeafe;

    transform:translateX(-50%);

}



/*=========================================
 Item
=========================================*/


.history-timeline-item{

    position:relative;

    display:grid;

    grid-template-columns:1fr 80px 1fr;

    align-items:center;

    min-height:600px;

    margin-bottom:80px;

}



/*=========================================
 Dot
=========================================*/


.history-timeline-dot{

    position:absolute;

    left:50%;

    top:50%;

    width:24px;

    height:24px;

    background:#2563eb;

    border-radius:50%;

    transform:translate(-50%,-50%);

    border:5px solid #fff;

    box-shadow:

    0 0 0 6px rgba(37,99,235,.15);

    z-index:5;

}



/*=========================================
 Year
=========================================*/


.history-timeline-year{

    grid-column:1;

    justify-self:end;

    position:relative;

    padding:18px 35px;

    font-size:32px;

    font-weight:800;

    color:#2563eb;

    background:#ffffff;

    border-radius:50px;

    box-shadow:

    0 15px 35px rgba(15,23,42,.08);

    border:1px solid rgba(37,99,235,.12);

    text-align:center;

    min-width:150px;

    transition:.4s;

}
.history-timeline-item:hover .history-timeline-year{

    transform:translateY(-8px);

    background:

    linear-gradient(
        135deg,
        #2563eb,
        #22c55e
    );

    color:white;

    box-shadow:

    0 20px 50px rgba(37,99,235,.25);

}


/* สลับฝั่ง */

.history-timeline-item:nth-child(even)
.history-timeline-year{

    grid-column:3;

    justify-self:start;

}
.history-timeline-year::after{

    content:"";

    position:absolute;

    top:50%;

    width:50px;

    height:2px;

    background:#dbeafe;

}


.history-timeline-item:nth-child(odd)
.history-timeline-year::after{

    right:-50px;

}



.history-timeline-item:nth-child(even)
.history-timeline-year::after{

    left:-50px;

}


/*=========================================
 Card
=========================================*/


.history-timeline-card{

    grid-column:3;

    width:100%;

    max-width:540px;

    min-height:0;

    height:auto;

    background:white;

    border-radius:30px;

    overflow:hidden;

    display:flex;

    flex-direction:column;

}

.history-timeline-item + .history-timeline-item{

    margin-top:100px;

}

.history-timeline-card:hover{

    transform:translateY(-10px);

    box-shadow:

    0 30px 70px rgba(37,99,235,.18);

}



/* สลับ Card */

.history-timeline-item:nth-child(even)
.history-timeline-card{

    grid-column:1;

}



/*=========================================
 Image
=========================================*/


.history-timeline-image{

    width:100%;

    height:100%;

    overflow:hidden;

}


.history-timeline-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.5s;

}



.history-timeline-card:hover .timeline-image img{

    transform:scale(1.08);

}


/*=========================================
 Content
=========================================*/


.history-timeline-content{

    flex:1;

     padding:35px 40px;

}



.history-timeline-content h3{

    font-size:26px;

    margin-bottom:15px;

}



.history-timeline-content p{

    color:#64748b;

    line-height:1.8;

    font-size:15px;

}



/*=========================================
 Mobile
=========================================*/


@media(max-width:768px){


.history-section{

    padding:70px 20px;

}



.history-header h1{

    font-size:36px;

}



/* เส้นซ้าย */

.history-timeline::before{

    left:20px;

}



.history-timeline-item{

    display:block;

    min-height:auto;

    padding-left:60px;

    margin-bottom:60px;

}



/* จุด */

.history-timeline-dot{

    left:20px;

    top:0;

    transform:translate(-50%,0);

}



/* ปี */

.history-timeline-item:nth-child(odd)
.history-timeline-card{

    justify-self:start;

}


.history-timeline-item:nth-child(even)
.history-timeline-card{

    justify-self:end;

}



/* Image */

.history-timeline-image{

    width:100%;

    height:220px;

}



.history-timeline-image img{

    min-height:220px;

}



.history-timeline-content{

    padding:25px;

}


}
/*=========================================
 History Content Premium
=========================================*/


.history-timeline-content{

    padding:40px;

}




.history-company-title h5{

    font-size:22px;

    font-weight:800;

    color:#0f172a;

    line-height:1.4;

    margin-bottom:8px;

}



.history-company-title span{

    display:inline-block;

    padding:6px 15px;

    background:#eff6ff;

    color:#2563eb;

    border-radius:30px;

    font-size:13px;

    font-weight:600;

}





.history-info{

    margin-top:30px;

    display:flex;

    flex-direction:column;

    gap:15px;

}





.history-info-item{

    display:flex;

    align-items:center;

    gap:15px;

    padding:14px 18px;

    background:#f8fafc;

    border-radius:18px;

    transition:.3s;

}



.history-info-item:hover{


    background:#eff6ff;

    transform:translateX(5px);


}





.history-info-item i{

    width:42px;

    height:42px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:white;

    font-style:normal;

    font-size:20px;

    box-shadow:

    0 8px 20px rgba(15,23,42,.08);

}




.history-info-item small{

    display:block;

    color:#64748b;

    font-size:12px;

    margin-bottom:3px;

}





.history-info-item strong{

    display:block;

    color:#0f172a;

    font-size:15px;

    font-weight:700;

    line-height:1.5;

}