@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,900&display=swap');


* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
    font-family: 'Roboto';

}

nav {
    position: fixed;
    background: #284B63;
    height: 80px;
    width: 100%;
    z-index: 2048;
}

label.logo {
    padding: 0 100px;

}

nav ul {
    float: right;
    margin-right: 20px;
}

nav ul li {
    display: inline-block;
    line-height: 80px;
    margin: 0 5px;
}

nav ul li a {
    color: white;
    font-size: 17px;
    padding: 7px 13px;
    border-radius: 3px;
}

a.active,
a:hover {
    background: #40799e;
    ;
    transition: .5s;
}

.checkbtn {
    font-size: 30px;
    color: white;
    float: right;
    line-height: 80px;
    margin-right: 40px;
    cursor: pointer;
    display: none;
}

#check {
    display: none;
}

@media (max-width: 952px) {
    label.logo {
        font-size: 30px;
        padding-left: 50px;
    }

    nav ul li a {
        font-size: 16px;
    }
}

@media (max-width: 858px) {
    .checkbtn {
        display: block;
    }

    ul {
        position: fixed;
        width: 100%;
        height: 100vh;
        background: #2c3e50;
        top: 80px;
        left: -100%;
        text-align: center;
        transition: all .5s;
    }

    nav ul li {
        display: block;
        margin: 50px 0;
        line-height: 30px;
    }

    nav ul li a {
        font-size: 20px;
    }

    a:hover,
    a.active {
        background: none;
        color: #0082e6;
    }

    #check:checked~ul {
        left: 0;
    }
}

.about-header {
    padding: 8% 10%;
}

.about-header>h1 {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 800;
    font-size: 53px;
    line-height: 62px;
    text-align: center;

    color: #284B63;
}

.about-header>p {
    padding: 5%;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 22px;
    line-height: 26px;
    text-align: center;

    color: #284B63;
}

.logo-1 {
    text-align: center;
}


.img-pano {
    padding: 2%;
    margin: 0 0 0 3%;
    width: 90%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

}

.img-pano img {
    width: 100%;
    height: 100%;
}

.head-history {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 50px;
    line-height: 59px;
    /* identical to box height */
    text-align: center;
    padding: 3%;
    color: rgba(40, 75, 99, 0.7);
    border-top: 2px solid rgb(194, 193, 193);

}


.img-year {
    width: 100%;

}

.y-1,
.y-2 {
    width: 50%;
    height: 100px;

}

.y-1 {
    padding: 1% 10% 2% 10%;
}

.y-2 {
    padding: 2% 0% 2% 40%;
}

.image-grid {
    --gap: 16px;
    --num-cols: 5;
    --row-height: 200px;

    box-sizing: border-box;
    padding: var(--gap);

    display: grid;
    grid-template-columns: repeat(var(--num-cols), 1fr);
    grid-auto-rows: var(--row-height);
    gap: var(--gap);
    padding: 0 10%;
}

.image-grid>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-grid-col-2 {
    grid-column: span 2;
}

.image-grid-row-2 {
    grid-row: span 2;
}

.image-grid-col-1 {
    grid-column: span 1;
}

.image-grid-row-1 {
    grid-row: span 2;
}

.image-grid-col-3 {
    grid-column: span 2;
}

.image-grid-row-3 {
    grid-row: span 1;
}


/* Anything udner 1024px */
@media screen and (max-width: 1024px) {
    .image-grid {
        --num-cols: 2;
        --row-height: 200px;
    }
}


.img-content {
    display: grid;
    grid-template-columns: auto auto;
    padding: 3% 27% 3% 33%;
}

.img-content>div {
    height: 100%;
    width: 100%;
}

.img-content>div img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.text-brand h1 {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-size: 40px;
    line-height: 47px;
    /* identical to box height */
    text-align: center;
    color: #284B63;
}

.text-brand p {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 23px;
    color: #284B63;
    text-align: center;
}


.certificated {
    min-height: 10vh;
    padding: 3%;

}

.title-certificated {
    padding: 5% 0;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 33px;
    line-height: 39px;
    text-align: center;

    color: rgba(40, 75, 99, 0.7);
}

.certificated-grid1 {
    display: grid;

    margin: 0 25% 0 25%;
}

.certificated-grid2 {
    display: grid;

    margin: 0 33% 0 33%;
}

.certificated-grid1>div,
.certificated-grid2>div {
    height: 64px;
    width: 100px;
    overflow: hidden;
    text-align: center;
}

.certificated-grid1>div img,
.certificated-grid2>div img {
    height: 100%;
    object-fit: cover;
}


@media(min-width: 480px) {
    .certificated-grid1 {
        grid-template-columns: repeat(2, 1fr);
    }

    .certificated-grid2 {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media(min-width: 768px) {
    .certificated-grid1 {
        grid-template-columns: repeat(3, 1fr);
    }

    .certificated-grid2 {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media(min-width: 992px) {
    .certificated-grid1 {
        grid-template-columns: repeat(6, 1fr);
    }

    .certificated-grid1>div {
        height: 64px;
    }

    .certificated-grid2 {
        grid-template-columns: repeat(4, 1fr);
    }

    .certificated-grid2>div {
        height: 64px;
    }
}

.comment-2 {
    padding: 5% 10%;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 22px;
    line-height: 26px;
    text-align: center;

    color: #284B63;
}

.support-content {
    display: grid;
    grid-template-columns: repeat(7, minmax(100px, 1fr));
    padding: 1% 9% 1% 12%;
    border-bottom: 2px solid rgb(194, 193, 193);

}

.support-content div {
    width: 129px;
    height: 110px;
}

.support-content img {
    width: 90%;
    height: 90%;
    padding: 0 2%;
}

/****slider****/

.slider {
    height: 200px;
    margin: auto;
    position: relative;
    width: 90%;
    display: grid;
    place-items: center;
    overflow: hidden;

}

.slide-track {
    display: flex;
    width: calc(129px *21);
    animation: scroll 40s linear infinite;
}


@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-129px * 12));
    }
}

.slide {
    height: 110px;
    width: 129px;
    display: flex;
    align-items: center;
    padding: 5px;
    perspective: 100px;
}

.slide img {
    width: 100%;
    height: 105px;
}

/******End slider*******/

.download {
    height: 120%;
}

.container-download {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.btn {
    border: none;
    padding: 25px 30px;
    cursor: pointer;
    background: rgba(40, 75, 99, 0.85);
    border-radius: 20px;

    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 18px;
    color: #FFFFFF;
    margin: 3% 0;
}


/*footer*/
.footer {
    background-image: url(../img/footer/Rectangle\ 26.png);
    width: 100%;
    height: 100%;
    text-decoration: none;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    text-decoration: none;
}

.footer .footer_menu {
    display: flex;
    padding: 3% 4% 3% 9%;
    justify-content: space-between;
}


.footer .footer_menu ul li a {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    text-decoration: none;
}

.footer_title_2 {
    padding: 25% 0 10% 0;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 600;
    font-size: 27px;
    line-height: 32px;
    color: #F8F8F8;
}

.footer_menu_2,
.footer_title_3 {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 18px;
    color: #F8F8F8;
}

.qr_code div {
    height: 80px;
    width: 80px;
}

.footer_title_4 {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 600;
    font-size: 36px;
    line-height: 42px;
    color: #F8F8F8;
}

.footer_menu_4 {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;

    color: #F8F8F8;
}

.footer .icon_code {
    display: grid;
    grid-template-columns: auto auto;
    gap: 2px;
    padding: 5px;
}

.footer .icon_code div {
    justify-content: center;
    flex-wrap: wrap;
}

.icon_1 {
    padding: 0 20px;
    width: 50px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.icon_2 {
    padding: 0 20px;
    width: 50px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.footer .qr_code {
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: auto auto;
    gap: 2px;
    padding: 10px;
}

.footer .qr_code div {
    justify-content: center;
    flex-wrap: wrap;
}

.qr_1 {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.qr_2 {
    background-image: url(../assets/img/1Home/Contact/QR\ Line\(at\)\ Siam.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.endfooter {
    padding: 25px 0 0 0;
    text-align: center;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 18px;
    background: #284B63;
    color: #F8F8F8;
}

.endfooter p {
    padding: 2% 0 0 0;
}

@media (max-width:768px) {
    .footer .footer_menu {
        flex-direction: column;
        width: 220px;
        margin: 0 auto 25px;
    }

    .footer .footer_menu>div {
        margin: 10px 0;
    }

    .footer .partners ul li a {
        margin: 5px;
    }
}

@media (max-width:768px) {

    .footer .footer_menu {
        flex-direction: column;
        width: 220px;
        margin: 0 auto 25px;
    }

    .footer .footer_menu>div {
        margin: 10px 0;
    }

    .footer .partners ul li a {
        margin: 5px;
    }
}



@media screen and (min-width: 768px) {
    .contact-bg .text {
        width: 70%;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-link {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}


@media screen and (min-width: 992px) {
    .contact-bg .text {
        width: 50%;
    }

    .contact-form {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }
}

@media screen and (min-width: 1200px) {
    .contact-link {
        grid-template-columns: repeat(4, 1fr);
    }
}