* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Mitr", sans-serif;
    /* font-weight: 500; */
    font-style: normal;
    scroll-behavior: smooth;
}
body {
    color: #1A1A1A;
    h1 { font-size: 50px; font-weight: 500;}
    h2 { font-size: 40px; font-weight: 500;}
    h3 { font-size: 35px; font-weight: 500;}
    h4 { font-size: 30px; font-weight: 500;}
    h5 { font-size: 25px; font-weight: 500;}
    p { font-size: 25px ; color: #575757}
    li { font-size: 20px ; color: #575757}
    a {text-decoration: none;}
}
@media screen and (max-width : 1181px) {
    body {
        h1 { font-size: 40px; font-weight: 500;}
        h2 { font-size: 30px; font-weight: 500;}
        h3 { font-size: 25px; font-weight: 500;}
        h4 { font-size: 20px; font-weight: 500;}
        h5 { font-size: 15px; font-weight: 500;}
        p,li{ font-size: 15px ;}
    }
}
@media screen and (max-width : 780px) {
    body {
        h1 { font-size: 30px; font-weight: 500;}
        h2 { font-size: 25px; font-weight: 500;}
        h3 { font-size: 20px; font-weight: 500;}
        h4 { font-size: 20px; font-weight: 500;}
        h5 { font-size: 15px; font-weight: 500;}
        p,li{ font-size: 15px ;}
        samp { font-size: 12px;}
    }
}
.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: #FFFFFF;
    box-shadow: 0 0 8px 0 #000000;
}
.headermenu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 16px;
    margin: 0 auto;
    background-color: #FFFFFF;
}
.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: #007BFF;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}
.headermenu .menu:hover {
    background-color: #66B2FF;
    color: #FFFFFF;
    transition: 1s;
}
.tracking {
    padding: 14px 16px;
    background-color: #FFFFFF;
}
@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: #007BFF;
}
@media (max-width: 768px) {
    .header .menu {
        display: none;
        width: 100%;
    }
    .header a.active {
        display: block;
    }
    .menu-toggle {
        display: block;
    }
}
.body {
    width: 100%;
    background-color: #FFFFFF;
}
.TOP {
    height: 100vh;
}
.background-with-overlay {
  position: relative;
  height: 100vh;
  color: white;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.background-with-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('imge/สำเนาของ\ รับ-ส่งสินค้าทั่วประเทศ\ ไม่จำกัดจุดขึ้นลง\ \(2\).png');
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  z-index: -1;
}
.TOP-box {
    margin-top: 75px;
    opacity: 0;
    animation: fadeIn ease-in 2.5s forwards;
}
.TOP-content {
    color: #18459d;
    padding: 20px;
    p {font-size: 25px;}
    h1 {
        font-size: 60px; 
        text-shadow: 
        -2px -2px 0 white,
        2px -2px 0 white,
        -2px  2px 0 white,
        2px  2px 0 white;
    }
}

.button-Contact-top {
    display: flex;
    align-items: center;
    padding: 20px 0;
    img {height: 70px; margin-right: 20px;}
}
.button-Contact{
    font-family: Prompt, Sans-serif;
    font-size: 25px;
    text-transform: none;
    line-height: 1em;
    letter-spacing: 0;
    fill: #FFFFFF;
    color: #fff;
    border-style: solid;
    border-width: 2px;
    border-color: #fff;
    border-radius: 100px 100px 100px 100px;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, .11);
    padding: 20px 35px;
}
.button-Contact:hover{
    border-color: #000;
}
@media (max-width: 768px) {
    .TOP-content {
        text-align: center;
        p {font-size: 17px;}
        h1 {font-size: 40px;}
    }
    .button-Contact-top {
        justify-content: center;
        img {
            height: 50px;
            margin-right: 5px;
        }
        .button-Contact {
            font-size: 17px;
            padding: 20px 20px;
        }
    }
}
@media (max-width: 520px) {
    .TOP-content {
        text-align: center;
    }
}

.home-top {
    width: 100%;
    height: 550px;
    margin-top: 70px;
}
.home-top img{
    width: 100%;
    height: 100%;
    position: fixed;
    object-fit: cover;
    background-color: transparent;
    background-image: linear-gradient(180deg, #363636 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 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    padding: 50px;
}
.home-top-box .text {
    opacity: 0;
    animation: fadeIn ease-in 2.5s forwards;
}
 @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
}
.treebox {
    width: 100%;
    background-color: #66B2FF;
}
.treebox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.treebox-grid .box{
    padding: 30px 0;
    h4,p {color: #FFFFFF; text-align: center;}
    img { display: block; margin: 0 auto; height: 100px;}
}
.grid-1f1f {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-row-gap: 50px;
}
.test {
    width: 100%;
    background-image: url("imge/รับ-ส่งสินค้าทั่วประเทศ\ ไม่จำกัดจุดขึ้นลง.png");
    background-size: cover;         /* ปรับขนาดให้พอดี */
    background-position: center;    /* จัดตำแหน่งตรงกลาง */
    background-repeat: no-repeat;   /* ไม่ทำซ้ำภาพ */
}
.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;
    h2 {padding: 5px 0;}
    ul {padding: 0 30px;}
}
.Home-about-contact {
    padding: 20px 0;
    h2 {text-align: center; color: #007BFF; padding: 20px 0;}
}
.Home-about-contact-box {
    display: flex; 
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}
.Home-about-contact-button {
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    /* font-size: 20px; */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    img {
        height: 24px;
        margin-right: 8px;
    }
}
.Home-about-contact-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}



.Home-service {
    padding-top: 70px;
}
.Home-service .servicebox {
    display: block;
    text-decoration: none;
    margin: 40px 60px;
    /* border: 1px solid #797979; */
    .servicebox-text {margin: 0 30px; padding-bottom: 30px;}
    h4 { color: #FFFFFF; padding: 10px 0;}
    ul {margin: 0 20px;}
    li {font-size: 17px; color: #FFFFFF;}
    img {display: block; margin: auto; width: 100%;}
}
.Service-button {
    height: 50px;
    text-align: center;
    a { background-color: #FFFFFF; border-radius: 10px; text-decoration: none; color: #0056b3; padding: 5px 10px; }
    a:hover {background-color: #0056b3; color: #FFFFFF; transition: 1s;}
}
.car-separator {
    text-align: center;
    padding-block-start: 20px;
    padding-block-end: 20px;
}
.separator {
    width: 90%;
    margin: 0 auto;
    border-style: solid;
    color: #FFFFFF;
    border-width: 2px;
}
/* .Home-service .servicebox:hover {
    transition: 1s;
    background-color: #003090;
    color: #EEEEEE;
    h3,p {
        color: #EEEEEE;
    }
} */
.performance-con {
    padding-top: 20px;
}
.perfomance-box {
    padding: 2px;
    img {display: block; margin: auto; width: 300px; height: 300px; object-fit: cover;}
}
@media (max-width: 1181px) {
    .performance .grid-1f1f1f {
        grid-template-columns: 1fr 1fr;
    }
    .Home-service .servicebox {
        margin: 30px 20px;
    }
}
@media (max-width: 620px) {
    .performance .grid-1f1f1f {
        grid-template-columns: 1fr;
    }   
}
@media (max-width: 420px) {
    .Home-service .servicebox {
        margin: 20px 20px;
    }
}


.news-read  {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px 0;
        .button-read {
        h5 {font-size: 17px;}
        padding: 5px 10px;
        text-decoration: 0;
        border-radius: 10px;
        background-color: #007BFF;
        color: #EEEEEE;
        transition: 0.5s;
        }
}
.button-read:hover {
    background-color: #fdbe11;
}

.footer {
    width: 100%;
    background-color: #383838;
    color: #FFFFFF;
    padding: 40px 0;
}

.grid-1f1f1f {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.footerbox {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 20px 0 20px;
    a { color: #FFFFFF;}
}
.footerbox .logo {
    max-width: 400px;
}
.footerbox .logo img{
    width: 100%;
    background-color: #FFFFFF;
    border-radius: 5px;
}
.footer-contact .box {
    margin: 20px 0;
    color: #EEEEEE;
    img {
        width: 30px;
        height: 30px;
        margin-right: 5px;
    }
    .text{
        display: flex; 
        justify-content: center;
        align-items: center;
    }
}
.footer-contact .box:hover {
    color: orange;
}
@media (max-width: 768px) {
    .footer-con .grid-1f1f1f {
        grid-template-columns: 1fr;
    }
    /* .footer{
        display: block;
        margin: 0 auto;
    } */
    .footerbox {
        justify-content: left;
        align-items: left;
        width: 90%;
        margin: 0 auto;
    }
}
.footer-copyright {
    background-color: #FFFFFF;
    display: flex;
    padding: 3px 10px;
    justify-content: center;
    align-items: center;
}
.copyright {
    color: #000;
    display: block;
    text-align: center;
    p {font-size: 13px;}
    a {text-decoration: none; color: #003090;}
}



/* About */
.paddingtop50 {
    padding-top: 50px;
}
.About {
    /* padding: 40px 20px; */
    p { padding: 20px;}
}
.about-img{
    display: block; 
    margin: 20px auto;
    width: 90%;
}
.about-textbox{
    h3 {text-align: center;}
}
@media (max-width: 768px) {
    .treebox-grid {
        grid-template-columns: 1fr;
        padding: 20px 40px;
        .box { padding: 20px 0;}
    }
}

/* service */
.Service {
    margin: 90px 0;
}
.Service-grid {
    margin: 50px 0;
}

.Service-grid-box {
    justify-content: center;
    align-items: center;
    h5 {text-align: center; color: #007BFF;}
    ul {margin: 20px 40px;}
    img {display: block; margin: 20px auto; height: 220px;}
    /* li {font-size: 20px;} */
}
@media (max-width: 768px) {
    .Service-grid {
        grid-template-columns: 1fr;
    }
    .Service-grid-box {
        margin: 20px 10px;
    }
}


.Serviceabout {
    padding: 0 10px;
}
.Serviceabout .imge{
    display: flex;
    align-items: center;
    padding: 10px;
    img { display: block; margin: auto; width: 70%;}
}
.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;
    }
}

/* ----------------หน้าติดต่อเรา----------------------- */
.home-contact {
    padding: 70px 0;
}
.contact-background {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: url('imge/รูปลงสินค้า/SP\ imge\ about2.png') center/cover no-repeat;
    filter: blur(8px);
    z-index: -1;
}
.contact-head {
    margin-top: 50px;
    padding: 20px;
    background-color: #ffffffa4;
}

.contact-con {
    margin: 20px;
    /* display: grid;
    grid-template-columns: 1fr 1fr; */
}
    .contact-info, .contact-form {
    margin: 20px;
      flex: 1 1 400px;
      background: white;
      padding: 30px;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .contact-info h2,
    .contact-form h2 {
      color: #007BFF;
      margin-bottom: 15px;
      text-align: center;
    }

    .contact-info p {
      margin: 12px 0;
      line-height: 1.6;
    }

    .contact-form label {
      display: block;
      margin-top: 15px;
      font-weight: bold;
    }

    .contact-form input,
    .contact-form textarea {
      width: 100%;
      padding: 10px;
      margin-top: 5px;
      border: 1px solid #ccc;
      border-radius: 6px;
      /* font-size: 1rem; */
    }

    .contact-form button {
      margin-top: 20px;
      background-color: #005aa7;
      color: white;
      padding: 12px 20px;
      border: none;
      border-radius: 6px;
      /* font-size: 1rem; */
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .contact-form button:hover {
      background-color: #003e7e;
      transition: 0.3s;
    }

    .map {
      width: 100%;
      height: 400px;
      border: none;
      margin-top: 40px;
      border-radius: 10px;
    }

    @media (max-width: 768px) {
      .container {
        flex-direction: column;
      }

      header h1 {
        font-size: 2rem;
      }
    }

 #thankyou-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    padding: 30px 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    text-align: center;
    font-size: 18px;
  }

  /* ฉากหลังเบลอและมืด */
  #overlay {
    display: none;
    position: fixed;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
  }

  /* ปุ่มปิด */
  #thankyou-popup button {
    margin-top: 15px;
    padding: 8px 16px;
    background: #005aa7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }

  #thankyou-popup button:hover {
    background-color: #003e7e;
    transition: 0.3s;
  }

.line-QR {
    display: flex;
    justify-content: center;
    align-items: center;
    img {max-width: 200px;}
}

/* ----------------ข่าวสาร-------------------------- */

.news-grid {
    padding: 50px 10px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}
@media (max-width: 1181px) {
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 620px) {
    .news-grid {
        grid-template-columns: 1fr;
    }   
}

.news-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
      
}

.news-content {
    padding: 15px;
}

.news-date {
    font-size: 14px;
    color: #888;
}

.news-title {
    font-size: 18px;
    margin: 10px 0 5px;
    color: #007BFF;
}

.news-desc {
    font-size: 15px;
    color: #555;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #007BFF;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

.pagination {
    text-align: center;
    margin-top: 30px;
}

.pagination button {
    padding: 8px 12px;
    margin: 3px;
    border: none;
    border-radius: 6px;
    background-color: #ddd;
    cursor: pointer;
}

.pagination button.active {
    background-color: #1e88e5;
    color: white;
}

.pagination button:hover {
    background-color: #aaa;
    color: white;
}

/* ---------------หน้าข่าวสารย่อย---------------- */
.content-news {
    margin-top: 70px;
    background-color: #FFFFFF;
}
.content-con {
    padding: 30px 10px;
}
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #007BFF;
    text-decoration: none;
}
.back-link:hover {
    color: orange;
}
h1 {
    margin-bottom: 10px;
}
.meta {
    color: #777;
    font-size: 14px;
    margin-bottom: 20px;
}
.news-image {
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    display: block;
    margin: 30px auto;
}
.content p {
    margin-bottom: 16px;
}
.contents-grid3 {
    margin: 50px 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}
.contents-box-image {
    display: flex; 
    justify-content: center;
    align-items: center;
    img {width: 80%;}
}
@media (max-width: 780px) {
    .contents-grid3 {
        grid-template-columns: 1fr;
    }   
}