.pridi-extralight {
    font-family: "Pridi", serif;
    font-weight: 200;
    font-style: normal;
}

.pridi-light {
    font-family: "Pridi", serif;
    font-weight: 300;
    font-style: normal;
}

.pridi-regular {
    font-family: "Pridi", serif;
    font-weight: 400;
    font-style: normal;
}

.pridi-medium {
    font-family: "Pridi", serif;
    font-weight: 500;
    font-style: normal;
}

.pridi-semibold {
    font-family: "Pridi", serif;
    font-weight: 600;
    font-style: normal;
}

.pridi-bold {
    font-family: "Pridi", serif;
    font-weight: 700;
    font-style: normal;
}

.mitr-extralight {
    font-family: "Mitr", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.mitr-light {
    font-family: "Mitr", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.mitr-regular {
    font-family: "Mitr", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.mitr-medium {
    font-family: "Mitr", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.mitr-semibold {
    font-family: "Mitr", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.mitr-bold {
    font-family: "Mitr", sans-serif;
    font-weight: 700;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Pridi", serif;
    font-weight: 300;
    font-style: normal;
}

body {
    background-color: #f8f9fa;
}

/* ===== NAVIGATION BAR ===== */
header {
    position: fixed;
    width: 100%;
    height: 120px;
    top: 0;
    left: 0;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    background: #ffffff; /* เริ่มต้นโปร่งใส */
}

/* Navbar มีพื้นหลังเมื่อเลื่อนลง */
header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 15px 15px;
}
.logo img {
    display: flex;
    align-items: center;
    width: 150px;
}
.logo:hover {
    color: #0056b3;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    padding: 8px 15px;
    position: relative;
    transition: all 0.3s ease-in-out;
}

/* เอฟเฟกต์เส้นใต้ไล่สี */
nav ul li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #008cff, #00c3ff);
    transition: width 0.4s ease, left 0.4s ease;
    border-radius: 5px;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

nav ul li a:hover {
    color: #008cff;
}

/* ===== HAMBURGER MENU (MOBILE) ===== */
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: #008cff;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    nav ul {
        flex-direction: column;
        background: white;
        position: absolute;
        top: 60px;
        right: 0;
        width: 220px;
        padding: 15px;
        display: none;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
    }

    nav ul li {
        text-align: center;
        padding: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

    /* เมื่อเมนูเปิด */
    nav ul.active {
        display: flex;
    }
}

.hero {
    background: url('/img/Bannerr.jpg') no-repeat center center/cover;
    height: 500px;
    color: white;
    text-align: center;
    padding: 120px 20px;
    border-radius: 15px;
}
.hero .container {
    margin-left: 150px;
}
.hero h1 {
    text-align: left;
    font-size: 40px;
    position :relative;
    margin-top: 100px;
    text-transform: uppercase;
    letter-spacing: 5px;
    overflow: hidden;
    background: linear-gradient(90deg, #ffffff, #ffffff, #ffffff);
    background-repeat: no-repeat;
    background-size: 80%;
    animation: animate 8s linear;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero .container h1 span{
    font-weight: bold;
    color: rgb(0, 140, 255) !important; 
}
@keyframes animate {
    0% {
        background-position: -500%;
    }

    100% {
        background-position: 10%;
    }
}
.section-product {
    text-align: center;
    margin-left: 10%;
    margin-right: 10%;
    background-color: #ffffff;
    /* สีพื้นหลังที่นุ่มนวล */
    /* กำหนดพื้นที่รอบๆ ข้อความ */
    border-radius: 10px;
    /* ขอบมนเล็กน้อย */
}

.section-product h2 {
    font-size: 36px;
    font-weight: 500;
    color: #34495e;
    /* สีเทาเข้มอบอุ่น */
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    /* เพิ่มระยะห่างระหว่างตัวอักษร */
    transition: all 0.3s ease;
    /* เพิ่มการเปลี่ยนแปลงที่นุ่มนวล */
}

/* เส้นใต้เรียบหรู */
.section-product h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px; /* ความยาวของเส้น */
    height: 5px; /* ความหนาของเส้น */
    background-color: #48a3ff; /* สีเส้นใต้ที่ตัดกับสีข้อความ */
    border-radius: 10px; /* มุมโค้งนุ่มนวล */
    opacity: 0; /* ซ่อนเส้นใต้เริ่มต้น */
    transition: opacity 0.3s ease; /* ทำให้เส้นใต้ค่อยๆ ปรากฏ */
}

/* เอฟเฟกต์เมื่อ hover */
.section-product h2:hover {
    color: #3498db;
    /* เปลี่ยนสีข้อความเมื่อ hover */
    transform: translateY(-4px);
    /* ขยับข้อความขึ้นเล็กน้อย */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
    /* เพิ่มเงาอ่อนๆ ให้ข้อความดูมีมิติ */
}

/* แสดงเส้นใต้เมื่อ hover */
.section-product h2:hover::after {
    opacity: 1;
    /* ทำให้เส้นใต้ปรากฏ */
    width: 50%;
    /* ขยายความยาวของเส้นใต้ */
}

.product-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* ใช้ 1fr เพื่อให้แต่ละช่องเท่ากัน */
    gap: 50px;
    width: 100%;
    height: 700px;
}

.product-card {
    background: white;
    font-size: 18px;

    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
    text-align: center;
    position: relative;
    /* ทำให้ข้อความสามารถตำแหน่งได้เหนือภาพ */
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.product-card h3  {
    font-size: 24px;
    color: white;
    text-align: center;
    font-weight: bold;
    position: absolute;
    bottom: 40px;
    /* ตั้งข้อความไว้ที่ด้านล่าง */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    /*ความกว้างของพื้นหลัง*/
    height: 15%;
    /*ความยาวของพื้นหลัง*/
    background-color: rgba(0, 0, 0, 0.5);
    /* เพิ่มพื้นหลังสีดำโปร่งใส */
    padding: 10px;
    border-radius: 5px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.product-card:hover {
    transform: translateY(-5px);
    filter: brightness(0.8) saturate(1.2);
}

.product-card:hover h3 {
    color: #f0f0f0;
}

/* Section สำหรับบริการขนส่ง */
.section-transport{
    background-color: #ffffff;
    padding: 60px 50px;
    text-align: center;
    margin-left: 10%;
    margin-right: 10%;
    /* สีพื้นหลังที่นุ่มนวล */
    padding: 50px 20px;
    /* กำหนดพื้นที่รอบๆ ข้อความ */
    border-radius: 10px;
    /* ขอบมนเล็กน้อย */
}
.section-transport .transport-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* ใช้ 1fr เพื่อให้แต่ละช่องเท่ากัน */
    gap: 50px;
    width: 100%;
    height: 150px;
}
.section-transport h2{
    font-size: 36px;
    font-weight: 500;
    color: #34495e;
    /* สีเทาเข้มอบอุ่น */
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    /* เพิ่มระยะห่างระหว่างตัวอักษร */
    transition: all 0.3s ease;
    /* เพิ่มการเปลี่ยนแปลงที่นุ่มนวล */
}
/* เส้นใต้เรียบหรู */
.section-transport h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px; /* ความยาวของเส้น */
    height: 5px; /* ความหนาของเส้น */
    background-color: #48a3ff; /* สีเส้นใต้ที่ตัดกับสีข้อความ */
    border-radius: 10px; /* มุมโค้งนุ่มนวล */
    opacity: 0; /* ซ่อนเส้นใต้เริ่มต้น */
    transition: opacity 0.3s ease; /* ทำให้เส้นใต้ค่อยๆ ปรากฏ */
}

/* เอฟเฟกต์เมื่อ hover */
.section-transport h2:hover {
    color: #3498db;
    /* เปลี่ยนสีข้อความเมื่อ hover */
    transform: translateY(-4px);
    /* ขยับข้อความขึ้นเล็กน้อย */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
    /* เพิ่มเงาอ่อนๆ ให้ข้อความดูมีมิติ */
}

/* แสดงเส้นใต้เมื่อ hover */
.section-transport h2:hover::after {
    opacity: 1;
    /* ทำให้เส้นใต้ปรากฏ */
    width: 50%;
    /* ขยายความยาวของเส้นใต้ */
}
.section-img{
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in-out;

}
.section-img img{
    display: flex;
    align-items: center;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}
.section-transport .section-img h3  {
    font-size: 24px;
    color: white;
    font-weight: bold;
    /* ตั้งข้อความไว้ที่ด้านล่าง */
    transform:translateY(-200%);
    width: 99%;
    display: flex;
    align-items: center;
    justify-content: center;
    /*ความกว้างของพื้นหลัง*/
    height: 10%;
    /*ความยาวของพื้นหลัง*/
    background-color: rgba(0, 0, 0, 0.5);
    /* เพิ่มพื้นหลังสีดำโปร่งใส */
    padding: 10px;
    border-radius: 5px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}
.transport-grid .section-img:hover {
    transform: translateY(-5px);
    filter: brightness(0.8) saturate(1.2);
}

.product-card:hover h3 {
    color: #f0f0f0;
}

/*--- BASE STYLES ---*/
* {
    box-sizing: border-box;
  }

  .cert-container {
    width: 80%;
    margin: 2em auto;
    background-color: #ffffff;
  }
  
  .content-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 25px;
    align-items: center;
    
  }

  .bold {
    font-weight: 800;
  }
 .section-certificate h2{
    color : #34495e;
    font-size: 35px;
    font-display:center;
    display: flex;
    justify-content: center;

 }
 .photo {
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    max-width: 100%;
 }
  .photo-overlay-three h3 {
    margin: 0;
    text-transform: uppercase;
  }
  img {
    width: 70%;

  }
  
  a {
    text-decoration: none;
  }

  /*-- three: slide up from bottom with margin on container --*/
  .photo-overlay-three {
    color: #fff;
    background: rgba(52, 93, 136, .9);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1em;
    margin: 0.75em;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .photo-overlay-three,
  .slide-three img {
    transition: transform 600ms ease-out;
  }
  
  .photo-overlay-three {
    transform: translateY(110%);
  }
  
  .slide-three:hover .photo-overlay-three {
    transform: translateY(0);
  }
  
  .slide-three:hover img {
    transform: scale(1.2);
  }
  .footer-container{
    width: 100%;
    background-color:#00254e;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-top: 30px;
    padding-bottom: 30px;

}
.footer-block{
    margin-left : 10px;
    display: flex;
    justify-content: center;
    width: 80%;
}
.col-1 h1{
    color: whitesmoke;
    font-size: 16px;
    padding-bottom: 20px;
}
.col-1 h2{
    color: whitesmoke;
    font-size: 12px;
    border: 5px;
    margin-bottom: 10px;
} 
.col-2 h1{
    color: whitesmoke;
    font-size: 18px;
    /* text-align: center; */
    padding-bottom: 20px;
}
.col-2 h2{
    color: whitesmoke;
    font-size: 14px;
    /* /* text-align: center; */
}
.col-3 h1{
    color: whitesmoke;
    font-size: 18px;
    /* text-align: center; */
    padding-bottom: 20px;
}
.col-3 h2{
    color: whitesmoke;
    font-size: 14px;
    /* text-align: center; */
}
.col-4 h1{
    color: whitesmoke;
    font-size: 18px;
    /* text-align: center; */
    padding-bottom: 20px;
}
.col-4 h2{
    color: whitesmoke;
    font-size: 14px;
    /* text-align: center; */
}