@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Smooch+Sans:wght@900&family=Sriracha&display=swap');
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* ------------------------------------------ hamburger ------------------*/

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1000;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: black;
  margin: 5px 0;
  transition: all 0.3s ease;
}


/* ------------------------------------------ hamburger ------------------*/

/* ------------------------------------------ Header ------------------*/
.main-wrapper {
  width: 100%;
  height: auto;
  /* max-width: 1500px; */
  margin: 0 auto; /* จัดให้อยู่ตรงกลางโดยไม่ต้องใช้ flex */
}

.head {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* background-color: white; */
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background-image: url(../Img/background-head-step-1.jpg);
  background-size: cover;    
    background-position: center;      
   background-repeat: no-repeat;     
}

.head-inner {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;

}

.logo-group {
  display: flex;
  align-items: center;
}

.Logo {
  width: 200px;
  height: 120px;
}

.Text-company-green {
  background: linear-gradient(45deg, #33ff00, #3efd5b, rgb(255, 8, 8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 20px;
}

.Text-company-west {
  color: rgb(248, 8, 8);
  margin-left: 10px;
}

.Nav-bar {
  display: flex;
  gap: 50px;
  font-family: 'Kanit';
  font-weight: 700;
}

.Nav {
  text-decoration: none;
  color: white;
}

.Nav:hover {
  color: #03C4FF;
}
.Nav:nth-of-type(2){
  color: #03C4FF;

}

/* Scroll style */
.head.scrolled {
  background-color: white;
  opacity: 0.8;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.head.scrolled .Nav:nth-of-type(2) {
  color: #03C4FF;
}

.head.scrolled .Nav:hover {
  color: #03C4FF;
}



/* ------------------------------------------ Header ------------------*/



/* ------------------------------------------ Tital Header ------------------*/

.tital {
    position: relative;
    display: inline-block;
    width: 100%;
   margin: 150px auto 0 auto; /* จัดให้อยู่ตรงกลางโดยไม่ต้องใช้ flex */
  }
  
  .tital-pic {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .tital-text-1 {
    position: absolute;
    bottom: 55%;
    left: 50%;
    transform: translateX(-50%);
    color: #03C4FF;
    font-size: 30px;
    font-weight: 700;
    font-family: "Kanit", sans-serif;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
  }
  
  .tital-text-2 {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 24px;
    font-family: "Kanit", sans-serif;
    text-align: center;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
    letter-spacing: 1px;
  }
  
/* ------------------------------------------ Tital Header ------------------*/

/* ------------------------------------------ Product 1 ------------------*/

.container-product {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-image-section {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-right: 20px;
}

.product-item {
    border-radius: 20px;
    overflow: hidden;
    background-color: #f8f8f8;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    padding: 20px;
}

.product-item:hover {
    transform: translateY(-5px);
}

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

.P-name {
    font-size: 22px;
    font-weight: bold;
    color: #03C4FF;
    font-family: "Kanit", sans-serif;
    margin-top: 15px;
}

.D-name {
    font-size: 16px;
    color: #333;
    font-family: "Kanit", sans-serif;
    margin-top: 5px;
}

.download-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: red;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-family: "Kanit", sans-serif;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #33ff00;
}

.image-wrapper {
    position: relative;
    display: inline-block;
}

.pdf-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    width: 60px;
    height: 60px;
}

.pdf-overlay img {
    width: 100%;
    height: 100%;
}

.image-wrapper:hover .product-image {
    opacity: 0.6;
}

.image-wrapper:hover .pdf-overlay {
    opacity: 1;
}

/* Sidebar styles */
.sidebar {
    width: 250px;
    /* position: sticky; */
    top: 0;
    height: fit-content;
    background-color: #f8f8f8;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

.sidebar h2 {
    font-size: 24px;
    font-family: 'Kanit', sans-serif;
    margin-bottom: 15px;
}

.sidebar ul {
    list-style-type: none;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
    font-family: 'Kanit', sans-serif;
    font-size: 18px;
    transition: color 0.3s ease;
}

.sidebar li a[href="Product1.html"] {
    color: #03C4FF; /* หรือสีอื่นที่ต้องการ */
    font-weight: bold; /* ตัวหนา (ถ้าต้องการ) */
  
}
.sidebar ul li a:hover {
    color: #34cefd;
}
  
/* ------------------------------------------ Product 1 ------------------*/

/* ------------------------------------------ Footer ------------------*/
.footer {
    width: 100%;
    background-color: #111; /* หรือใช้สีอื่นที่คุณต้องการ */
    color: #fff;
    padding: 40px 0;
    position: relative;
  }
  
  .footer-inner {
    max-width: 100%;
    text-align: center;
    font-size: 16px;
    font-family: "Kanit", sans-serif;
    padding: 0 15px;
  }
  
  
  /* ------------------------------------------ Footer ------------------*/
/* ==================== Responsive สำหรับหน้าจอขนาด 1440px ลงมา ==================== */
@media (min-width: 1600px) {
    .tital-text-1 {
        bottom: 50%;
        font-size: 60px;
      }
    
      .tital-text-2 {
        bottom: 2%;
        font-size: 40px;
      }
}


/* ==================== Responsive สำหรับหน้าจอขนาด 1440px ลงมา ==================== */
@media (max-width: 1440px) {
  .head{ 
    background-image: url(../Img/background-head-step-2.jpg);
    background-size: cover;    
      background-position: center;      
     background-repeat: no-repeat;     
  
  }
    .head-inner {
      padding: 0 40px;
    }
  
    .logo-group h1 {
      font-size: 20px;
    }
  
    .Logo {
      width: 160px;
      height: auto;
    }
  
    .Nav-bar {
      gap: 30px;
    }

    .tital-text-1 {
        bottom: 55%;
        font-size: 30px;
      }
    
      .tital-text-2 {
        bottom: 20%;
        font-size: 24px;
      }
      .container-product {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        padding: 40px 30px;
      }
    
      .product-item {
        padding: 10px;
      }
    
      .P-name {
        font-size: 18px;
      }
    
      .D-name {
        font-size: 15px;
      }
    
}

/* ==================== Responsive สำหรับหน้าจอขนาด 1024px ลงมา ==================== */
@media (max-width: 1024px) {
    .head-inner {
      padding: 0 40px;
    }
  
    .logo-group h1 {
      font-size: 20px;
    }
  
    .Logo {
      width: 160px;
      height: auto;
    }
  
    .Nav-bar {
      gap: 30px;
    }

    .tital-text-1 {
        font-size: 28px;
      }
    
      .tital-text-2 {
        bottom: 20%;
        font-size: 20px;
      }
      .container-product {
        display: flex;              /* เปลี่ยนจาก grid เป็น flex */
        flex-direction: column;     /* วางเรียงบนลงล่าง */
        align-items: stretch;       /* ให้ child กว้างสุด */
        padding: 30px;
        gap: 20px;
      }
    
      .product-item {
        width: 100%;                /* ขยายเต็มที่ */
        box-sizing: border-box;     /* กัน padding/width ซ้อนกัน */
      }
    
      .product-image-section {
        margin-right: 0;
        margin-bottom: 20px;
      }
    
      .sidebar {
        width: 100%;
        margin-top: 20px;
        border-radius: 10px;
        text-align: center;
      }
    
}
  /* ==================== [ส่วนเพิ่มใหม่: Responsive] ==================== */
  /* สำหรับแท็บเล็ต (768px ลงมา) */
  @media (max-width: 850px) {
    .head{ 
      background-image: url(../Img/background-head-step-3.jpg);
      background-size: cover;    
        background-position: center;      
       background-repeat: no-repeat;     
    
    }
    .head-inner {
      padding: 0 30px
    }
    .Logo {
      width: 150px; /* ลดขนาดโลโก้ */
      height: auto; /* ให้สูงปรับอัตโนมัติ */
    }
    .Nav-bar {
      gap: 20px;
    }
    
    .hamburger {
      display: block;
      order: 2; /* ให้ปุ่มอยู่ด้านขวา */
      background-color: white;
      border-radius: 10px;
    }
    
    .Nav-bar {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: black;
      padding: 20px 0;
      flex-direction: column;
      gap: 15px;
      text-align: center;
    }
    .Nav {
      display: block;
      width: 100%;
      text-align: center;
      padding: 10px 0;
      color: black;
    }
    .head.scrolled .hamburger {
      background-color: white;
      border-radius: 10px;
    }
  
    .Nav-bar.active {
      display: flex;
      background-color: white;
    }

    .container-product {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 30px;
      }
    .tital-pic {
        height: 180px;
      }
    
      .tital-text-1 {
        bottom: 65%;
        font-size: 26px;
      }
    
      .tital-text-2 {
        bottom: 20%;
        font-size: 20px;
      }
      
  

  }
  /* ==================== [ส่วนเพิ่มใหม่: Responsive] ==================== */
  /* สำหรับ tital (636px ลงมา) */
  /* @media (max-width: 680px) {

    .tital-text-1 {
        bottom: 70%;
        font-size: 24px;
      }
    .tital-text-2 {
        bottom: 20%;
        font-size: 20px;
      }
    }
     */
  /* สำหรับ tital (636px ลงมา) */
  /* @media (max-width: 564px) {

    .tital-text-1 {
        bottom: 70%;
        font-size: 24px;
      }
    .tital-text-2 {
        bottom: 25%;
        font-size: 18px;
      }

      
  } */
  /* สำหรับมือถือ (480px ลงมา) */
  @media (max-width: 510px) {
    .head-inner {
      padding: 15px 15px 15px 0px;
      flex-direction: row;
      align-items: center;
      margin-top: 20px;
    }
    .Logo {
      width: 120px; /* ขนาดเล็กกว่า */
    }
    .logo-group{
      height: 50px;
    }

    .Nav-bar {
      gap: 10px;
      flex-wrap: wrap;
      justify-content: center;
    }
    
    .Nav {
      font-size: 14px;
    }
    .nav {
      padding: 5px; /* ปุ่มเลื่อนเล็กลง */
      font-size: 20px;
    }

    .container-product {
        grid-template-columns: 1fr;
        padding: 20px;
      }
    .tital{
        margin-top: 120px;
    }
    .tital-pic {
        height: 160px;
      }
    
      .tital-text-1 {
        bottom: 65%;
        font-size: 24px;
      }
    
      .tital-text-2 {
        bottom: 20%;
        font-size: 16px;
      }
  
  }
  
  /* สำหรับมือถือแนวตั้ง (เล็กมาก) */
  @media (max-width: 408px) {
    .tital-pic {
        height: 160px;
      }
    
      .tital-text-1 {
        bottom: 70%;
        font-size: 20px;
      }
    
      .tital-text-2 {
        bottom: 30%;
        font-size: 13px;
      }
  }




