/* =========================
   TIMELINE
========================= */

* {
    box-sizing: border-box;
}

body {
    font-family: Roboto;
}

#timeline {
    padding: 100px 0;
}

#timeline .demo-card-wrapper {
    position: relative;
    margin: 0 auto;
}

#timeline .demo-card-wrapper::after {
    z-index: 1;
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-left: 1px solid #bdbdbd;
}

/* =========================
   DESKTOP
========================= */

@media (min-width: 1200px) {

    #timeline .demo-card-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 90px;
        width: 1170px;
    }

    #timeline .demo-card {
        position: relative;
        max-width: 450px;
        margin: 45px 0;
        z-index: 2;
    }

    /* ฝั่งซ้าย */
    #timeline .demo-card:nth-child(odd) {
        grid-column: 1;
        justify-self: end;
    }

    /* ฝั่งขวา */
    #timeline .demo-card:nth-child(even) {
        grid-column: 2;
        justify-self: start;
        margin-top: 180px;
    }

    /* จุด timeline */
    #timeline .demo-card::before {
        content: "";
        position: absolute;
        top: 30px;
        width: 12px;
        height: 12px;
        background: #bdbdbd;
        border-radius: 50%;
        z-index: 10;
        box-shadow: 0 0 0 8px #f7f7f7;
    }

    /* จุดฝั่งซ้าย */
    #timeline .demo-card:nth-child(odd)::before {
        right: -51px;
    }

    /* จุดฝั่งขวา */
    #timeline .demo-card:nth-child(even)::before {
        left: -51px;
    }

    /* ลูกศร */
    #timeline .demo-card .head::after {
        content: "";
        position: absolute;
        top: 20px;
        width: 0;
        height: 0;
        border-top: 15px solid transparent;
        border-bottom: 15px solid transparent;
    }

    /* ลูกศรฝั่งซ้าย */
    #timeline .demo-card:nth-child(odd) .head::after {
        left: 100%;
        border-left: 15px solid #0cb68d;
    }

    /* ลูกศรฝั่งขวา */
    #timeline .demo-card:nth-child(even) .head::after {
        right: 100%;
        border-right: 15px solid #0cb68d;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 1199px) {

   
   #timeline .demo-card-wrapper::after{
        display:none;
    }
    #timeline .demo-card {
        position: relative;
        margin-bottom: 50px;
        z-index: 2;
        height: fit-content;
    }

   
}

/* =========================
   CARD
========================= */

#timeline .demo-card {
    background: #fff;
    box-shadow: 0px 1px 22px 4px rgba(0, 0, 0, 0.07);
    height: fit-content;
    max-width: 100%;
    width: 100%;
}

#timeline .demo-card .head {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #0cb68d;
    color: #fff;
    min-height: 80px;
}

#timeline .demo-card .head .number-box {
    display: inline-block;
    margin: 15px;
    padding: 10px 14px;
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.17);
}

#timeline .demo-card .body {
    padding: 20px;
    border: 1px solid rgba(191, 191, 191, 0.4);
    border-top: 0;
    background: #fff;
}

#timeline .demo-card .body p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

#timeline .demo-card .body img {
    width: 100%;
    display: block;
}

/* =========================
   TEXT
========================= */

.tex-main-timeline {
    font-family: 'rsubold';
    font-size: 23px;
    color: #111111;
}

.tex-w5 {
    font-weight: 500;
}

.tex-lis01 {
    list-style: disc;
    padding-left: 20px;
    line-height: 1.8;
}

.box-timeline {
    justify-content: center;
    display: flex;
}

.head-sub-3 {
    font-weight: bold;
    margin-bottom: 10px;
    color: #0cb68d;
}