* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Mitr", sans-serif;
    /* font-weight: 500; */
    font-style: normal;
    scroll-behavior: smooth;
}
body {
    h1 { font-size: 60px; font-weight: 500;}
    h2 { font-size: 50px; font-weight: 500;}
    h3 { font-size: 40px; font-weight: 500;}
    h4 { font-size: 30px; font-weight: 500;}
    h5 { font-size: 20px; font-weight: 500;}
    p,span,li { font-size: 20px ;}
}
@media screen and (max-width : 1180px) {
    body {
        h1 { font-size: 40px; font-weight: 500;}
        h2 { font-size: 35px; font-weight: 500;}
        h3 { font-size: 30px; font-weight: 500;}
        h4 { font-size: 20px; font-weight: 500;}
        h5 { font-size: 15px; font-weight: 500;}
        p,span,li{ font-size: 15px ;}
    }
}
.container {
    width: 1180px;
    margin: 0 auto;
}
@media screen and (max-width : 1180px) {
    .container {
        width: 768px;
    }
}
@media screen and (max-width : 768px) {
    .container {
        width: 100%;
    }
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    width: 100%;
    height: 70px;
    background-color: #EEEEEE;
    box-shadow: 0 0 8px 0 black;
}
.headermenu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 16px;
    margin: 0 auto;
    background-color: #EEEEEE;
}
.headermenu .headerlogo{
    padding: 0 8px;
}
.headermenu .headerlogo img{
    display: block;
    height: 50px;
    left: 0;
    margin-top: 5px;
    margin-left: 1vw;
}
.headermenu a {
    margin-top: 5px;
    font-size: 20px;
    color: #003090;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}
.headermenu .menu:hover {
    background-color: #003090;
    color: #EEEEEE;
}
.tracking {
    padding: 14px 16px;
    background-color: #EEEEEE;
}
@media screen and (max-width : 1180px) {
    .headermenu a {
        padding: 14px 5px;
        font-size: 15px;
    }
}

.menu-toggle {
    display: none;
    position: absolute;
    right: 20px;
    font-size: 45px;
    cursor: pointer;
    color: #003090;
}
@media (max-width: 768px) {
    .header .menu {
        display: none;
        width: 100%;
    }
    .header a.active {
        display: block;
    }
    .menu-toggle {
        display: block;
    }
}
.body {
    width: 100%;
    background-color: #EEEEEE;
}
.home-top {
    width: 100%;
    height: 500px;
    margin-top: 70px;
}
.home-top img{
    width: 100%;
    height: 500px;
    position: fixed;
    object-fit: cover;
    background-color: transparent;
    background-image: linear-gradient(180deg, #535353 0%, var(--e-global-color-44a89db) 100%);
    opacity: 0.3;
    transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
    z-index: -10;
}
.home-top-box {
    height: 500px;
    padding: 50px;
}
.home-top-box .text {
    padding-top: 10vw;
}
.treebox {
    width: 100%;
    background-color: #003090;
}
.treebox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.treebox-grid .box{
    padding: 30px 0;
    h4,p {color: #EEEEEE; text-align: center;}
    img { display: block; margin: 0 auto; height: 70px;}
}
.grid-1f1f {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-row-gap: 50px;
}
.Home-about {
    padding-top: 70px;
}
.Home-about .grid-1f1f{
    padding: 0px 20px;
}
@media (max-width: 768px) {
    .grid-1f1f {
        display: grid;
        grid-template-columns: 1fr;
        grid-row-gap: 0px;
    }
}
@media (max-width: 420px) {
    .Home-about .grid-1f1f{
        padding: 0px 0px;
    }
}
.Home-about-img {
    display: flex;
    align-items: center;
    padding: 10px;
    img { display: block; margin: auto; width: 90%;}
}
.Home-about-text {
    display: flex; 
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.Home-service {
    padding-top: 70px;
}
.Home-service .servicebox {
    display: block;
    text-decoration: none;
    margin: 40px 60px;
    padding: 15px;
    border: 2px solid #003090;
    border-radius: 10px;
    background-color: #EEEEEE;
    h3 { color: #003090;}
    p {color: #1D1616;}
}
.Home-service .servicebox:hover {
    transition: 1s;
    background-color: #003090;
    color: #EEEEEE;
    h3,p {
        color: #EEEEEE;
    }
}
@media (max-width: 420px) {
    .servicebox {
        margin: 40px 20px;
    }
}
.Home-service .servicebox img{
    display: block;
    margin: auto;
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.delivery-area {
    display: flex; 
    justify-content: center;
    align-items: center;
    padding: 10px;
    li {padding: 5px 0;}
}
@media (max-width: 420px) {
    .delivery-area li {
        padding: 0 5px;
    }
}
.home-contact {
    padding-top: 70px;
}
.contactbox{
    padding: 40px 60px;
}
@media (max-width: 420px) {
    .servicebox {
        margin: 40px 20px;
    }
    .contactbox {
        padding: 40px 10px;
    }
}
.contactbox img{
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.contacttextbox {
    display: flex; 
    justify-content: center;
    align-items: center;
}
.home-news {
    padding-top: 70px;
}
.home-news .grid-1f1f{
    padding: 60px 10px 20px 20px;
    grid-row-gap: 20px;
    grid-column-gap: 20px;
}
.newsbox-con {
    display: block;
    margin: 0 auto;
}
.newsbox {
    display: flex; 
    /* justify-content: center;
    align-items: center; */
    min-width: 100%;
    text-decoration: none;  
}
.newsbox-img {
    display: block;
    margin: auto;
    width: 150px;
    height: 150px;
}
.newsbox-img img{
    width: 150px;
    height: 150px;
    object-fit: cover;
    /* border-radius: 20px; */
}
.newsbox-text {
    display: flex;
    padding: 5px 10px;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.newsbox-text h5{
    overflow: hidden; /* ซ่อนข้อความที่เกินกรอบ */
    display: -webkit-box; /* สำหรับ multiline */
    -webkit-box-orient: vertical; /* กำหนดการจัดเรียง */
    -webkit-line-clamp: 1; /* จำกัดที่ 1 บรรทัด */
    color: #003090;
    padding: 5px 0;
}
.newsbox-text .explain {
    overflow: hidden; /* ซ่อนข้อความที่เกินกรอบ */
    display: -webkit-box; /* สำหรับ multiline */
    -webkit-box-orient: vertical; /* กำหนดการจัดเรียง */
    -webkit-line-clamp: 2; /* จำกัดที่ 1 บรรทัด */
    font-size: 15px;
    color: #1D1616;
}
.newsbox-text .read {
    display: none;
    font-size: 15px;
    text-align: right;
}
.newsbox-text .time {
    overflow: hidden; /* ซ่อนข้อความที่เกินกรอบ */
    display: -webkit-box; /* สำหรับ multiline */
    -webkit-box-orient: vertical; /* กำหนดการจัดเรียง */
    -webkit-line-clamp: 1; /* จำกัดที่ 1 บรรทัด */
    font-size: 15px;
    color:#868686c4;
}
.newsbox:hover {
    .newsbox-text h5{
        transition: 0.7s;
        color: #fdbe11;
    }
    .newsbox-text .read {
        display: block;
        color:#003090;
    }
}
@media (max-width: 1180px) {
    .home-news .grid-1f1f {
        grid-template-columns: 1fr;
        padding: 60px 10px 10px 10px;
    }
    .newsbox-text .explain {

    }
}
.news-read  {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px 0;
        .button-read {
        padding: 5px 10px;
        text-decoration: 0;
        border-radius: 10px;
        background-color: #003090;
        color: #EEEEEE;
        }
}
.button-read:hover {
    background-color: #fdbe11;
}
.pagination {
    display: flex;
    justify-content: center;
    padding: 40px 0;
    gap: 10px;
}

.pagination a {
    text-decoration: none;
    color: #003090;
    padding: 8px 15px;
    border: 1px solid #003090;
    border-radius: 5px;
    font-weight: 500;
}

.pagination a, .pagination span {
    text-decoration: none;
    color: #003090;
    padding: 8px 15px;
    /* border: 1px solid #003090; */
    border-radius: 5px;
    font-weight: 500;
    transition: 0.2s;
}

.pagination a:hover {
    background: #003090;
    color: #fff;
}

.pagination a.active {
    background: #003090;
    color: #fff;
}


.footer {
    width: 100%;
    background-color: #003090;
    color: #EEEEEE;
}

.grid-1f1f1f {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 768px) {
    .footer-con .grid-1f1f1f {
        grid-template-columns: 1fr;
    }
}
.footerbox {
    padding: 20px;
}
.footerbox .logo{
    border-radius: 100%;
}
.footerbox .logo img{
    background-color: white;
    height: 150px;
}
.footer-contact .box {
    display: flex;
    padding: 5px 0;
    text-decoration: none;
    color: #EEEEEE;
    img {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    .text{
        display: flex; 
        justify-content: center;
        align-items: center;
    }
}
.footer-contact .box:hover {
    color: orange;
}
.footer-copyright {
    background-color: #EEEEEE;
    display: flex;
    padding: 5px 10px;
    justify-content: center;
    align-items: center;
}
.copyright {
    color: #000;
    display: block;
    a {text-decoration: none; color: #003090;}
}
@media (max-width: 1180px) {
    .footer-contact .box {
        padding: 5px 0;
        img {
            width: 30px;
            height: 30px; 
        }
    }
}

/* Contentnews  */
.content-news {
    margin-top: 70px;
    background-color: #EEEEEE;
}
.content-con {
    padding: 20px 40px;
    h3 {color: #003090; text-align: center;}
    h4 {color: #003090; padding: 15px 0;}
    p,li {padding: 10px 0;}
    .time {color: #868686c4; text-align: center;}
    img {
        max-width: 800px;
        max-height: 500px;
        object-fit: cover;
        display: block; 
        margin: 40px auto;
    }
}
@media (max-width: 768px) {
    .content-con {
        img {
            max-width: 100%;
            max-height: 300px;
        }
    }
}
@media (max-width: 420px) {
    .content-con {
        padding: 20px 20px;
        img{max-width: 100px auto;}
    }
}

/* About */
.About {
    padding: 40px 20px;
    p { padding: 20px 0;}
}
.About .treebox-grid .box{
    padding: 50px 0;
    h4 {color:#003090; text-align: center;}
    p {color: #1D1616; text-align: center; padding: 0 40px;}
    img { display: block; margin: 0 auto; height: 70px;}
}
@media (max-width: 768px) {
    .About .treebox-grid {
        grid-template-columns: 1fr;
        padding: 20px 40px;
        .box { padding: 20px 0;}
    }
}

/* service */
.Service {
    margin-top: 70px;
}
.Serviceabout {
    padding: 70px 0 10px 10px;
}
.Serviceabout .imge{
    display: flex;
    align-items: center;
    padding: 10px;
    img { display: block; margin: auto; width: 90%;}
}
.Serviceabout .text {
    display: flex; 
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.goods {
    margin: 50px 0 0 0;
}
.goods .grid-1f1f1f {
    padding: 50px 20px;
    display: grid;
    grid-template-columns: 1f 1f 1f;
}

.goods .grid-1f1f1f .goodsbox{
    padding: 0;
    height: 250px;
    img {    width: 100%;
        height: 250px;
        object-fit: cover;}
}
.goodsbox .goodsbox-con {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 250px;
    background-color:#003090;
}
.goodsbox .goodsbox-con .text{
    color: #EEEEEE; 
}
.goods .grid-1f1f1f .goodsbox:hover {
    .goodsbox-con {
        display: flex;
    }
    img {
        display: none;
    }
}
@media (max-width: 768px) {
    .goods .grid-1f1f1f {
        grid-template-columns: 1fr 1fr;
        padding: 50px 40px;
    }
}
@media (max-width: 420px) {
    .goods .grid-1f1f1f {
        grid-template-columns: 1fr;
    }
    .goods .grid-1f1f1f .goodsbox{
        height: 200px;
        img { height: 200px;}
    }
    .goodsbox .goodsbox-con {
        height: 200px;
    }
}