:root {
  --full-size-width: 1920px;
  --text-size-80: 80px;/*100pt*/
  --text-size-35: 35px;
  --text-size-25: 25px;
  --text-size-20: 20px;
  --color-main: #78a5c5;
  --color-reserve-main: #6b94b1;
  --font-weight-300: 300;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ฟอนต์สำหรับ h1, h2, h3, h4 */
h1, h2, h3, h4 {
  font-family: 'Kanit', sans-serif;
  font-weight: 100; /* ExtraLight */

}

/* ฟอนต์สำหรับ p, span, div, a, li */
p, span, div, a, li {
  font-family: 'Kanit', sans-serif;
  font-weight: 100; /* Light */
}




body {
  background-color: gray;
  display: flex;
  color: #fff;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}



#nav {
  width: var(--full-size-width);
  height: auto;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav_row1 {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 132px;
  justify-content: flex-end;
  background-color: var(--color-main);
  /* transition: opacity 0.5s ease, visibility 0.5s ease; */
  transition: 300ms ease-in-out;
}


.nav_row1.visible {
  opacity: 1;
}

.nav_row1.hidden {
  opacity: 0;
  transform: translateY(-132px); /*Height of nav_row1*/
}


.nav_row2 {
  display: flex;
  justify-content: center;
  position: sticky;
  width: 100%; /* ให้แถบ nav ยืดเต็มความกว้าง */
  max-width: 1920px; /* กำหนดความกว้างสูงสุดเป็น 1920px */
  height: 88px;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: rgb(0, 0, 0);
  align-items: center;
  margin: 0 auto; /* จัดให้อยู่ตรงกลาง */
  transition: 300ms ease-in-out;
}


.nav_row2.fixed {
  top: 0;
  transform: translateY(-132px); /*Height of nav_row1*/
  width: 100%; /* ความกว้าง 100% ของ container */
  max-width: 1920px; /* ยังคงจำกัดความกว้างไว้ที่ 1920px */
  background-color: #fff; /* ปรับสีพื้นหลังของแถบ nav เพื่อให้มองเห็นชัด */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* เพิ่มเงาเพื่อความสวยงาม */
}



.nav_col1 {
  display: flex;
  justify-content: center;
  width: 20%;
  height: 100%;
}

.nav_col2_container {
  display: flex;
  justify-content: center;
  width: 45%;
}

.nav_col2 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 20%;
  height: 100%;
}

.nav_col2 a {
  text-decoration: none;
  margin: 0 10px;
  color: #fff;
  font-size: 25px;
}

.nav_col1_container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 60%;
}

.logomain {
  width: 150px;
  height: 100px;
}

.nav_row2_container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  /* กระจายเนื้อหาระหว่างซ้ายและขวา */
  align-items: center;
  width: 100%;
  margin: 0 auto;
  /* Center the container */

}
.text_lang,
.languageEN,
.languageTH{
  font-weight: 200;
}
.nav_links {
  display: flex;
  flex: 1;
  /* ให้ครอบคลุมพื้นที่มากที่สุด */
  justify-content: center;
  /* จัดให้อยู่ตรงกลาง */
}

.nav_row2_container a {
  display: flex;
  margin: 0 30px;
  text-decoration: none;
  color: #fff;
  font-size: var(--text-size-20);
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.nav_row2_container a:hover {
  color: var(--color-main);
  /* สีฟ้าเมื่อ hover */

}

.nav_row2_container a:active {
  color: var(--color-reserve-main);
  
  /* สีฟ้าอ่อนเมื่อ active */

}

/* ห้ามเปลี่ยนสีเมื่อ hover ถ้ามีคลาส 'no-hover-change' */
.nav_row2_container a.no-hover-change:hover {
  color: rgb(159, 213, 252);
  /* สีตัวอักษรไม่เปลี่ยนแปลงเมื่อ hover */
}

.languageEN{
  font-size: var(--text-size-25);
  font-weight: 200;
}

/* เมื่อ dropdown ถูกเปิด */
.show {
  display: none;
}
.Dropdown_Arrow{
  width: 10px; 
  margin-left: 10px; 
  filter: contrast(0.5); 
  transform: rotate(0deg);
}
/* ซ่อนปุ่ม hamburger และ close เมื่อเป็นโหมด desktop */
#hamburgerMenu,
#closeMenu {
  display: none;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(2, 2, 2, 0.8);
  min-width: 50px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 15;
  cursor: pointer;
  text-align: center;

}

/* แสดง dropdown-content เมื่อมีการคลิก dropdown */
.dropdown.active .dropdown-content {
  display: block;
}

.pd1 {
  transform: translateX(40px);
}

.mr {
  padding-left: 20px;
  padding-right: 20px;
}

.mr1 {
  transform: translateX(-20px);
}

.lg {
  padding-left: 20px;
  padding-right: 20px;
  width: 50px;
  text-align: center;
}

.lg1 {
  transform: translateX(0px);
}

.mobile-only {
  display: none;
  /* ซ่อนเริ่มต้น */
}

.mobile-onlylg {
  display: none;
  /* ซ่อนเริ่มต้น */
}

.dropbtn {
  color: white;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.button_nav {
  position: relative;
  text-decoration: none;
  color: white;
  font-size: 16px;

}


.text_special {
  display: inline;
  /* เพื่อให้สัญลักษณ์แสดงผล */
  font-size: 14px;
  /* ขนาดของสัญลักษณ์ ▼ */
  color: white;
  /* หรือสีที่คุณต้องการ */
}


.button_nav::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  /* ขยับเส้นใต้ลงด้านล่างข้อความ */
  width: 0;
  height: 2px;
  background-color: var(--color-main);
  /* สีฟ้าอ่อน */
  transition: all 0.3s ease;
}

.button_nav:hover::after {
  width: 100%;
  left: 0;
  color: var(--color-main);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content a {
  color: rgb(255, 255, 255);
  padding: 8px 8px;
  text-decoration: none;
  display: block;
}

.dropdown:hover .containerdropdown {
  display: block;
}
.container_row2_1{
  width: 20%;
}

.containernav1 {
  width: 60%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.calculator-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px;
  width: 20%;
}

/* ตัวเลือกเพิ่มเติมสำหรับการกำหนดรูปแบบของไอคอน */
.social_icon img {
  width: 24px;
  /* ปรับขนาดของไอคอนโซเชียลตามที่ต้องการ */
  height: auto;
  margin-right: 10px;
  /* เพิ่มระยะห่างระหว่างไอคอน */
}

.cal img {
  width: 30px;
  /* ปรับขนาดของไอคอนเครื่องคิดเลข */
  height: auto;
}

.calculator-container img {
  width: 30px;
  /* ปรับขนาดไอคอน */
  height: auto;
}

.lg1 {
  display: block;
  width: 100px;
  margin: 0 auto;
}

.cal {
  width: 20px;
}


.cal_box {
  display: none;
}

/*navmobile*/
.desktop-only {
  display: block;
}

.button_nav.active {
  color: rgb(159, 213, 252);
  text-shadow: 1px 0px 0px rgba(0, 0, 0, 0.5);
}

.button_nav {

  color: #000;
  /* สีข้อความปกติ */
}


#section1 {
  position: relative;
  width: var(--full-size-width);
  height: 900px;
  z-index: 9;
}

.sec1container {
  position: relative;
  width: 100%;
  height: 100%;
}

.sec1box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.video_background {
  position: absolute;
  width: auto;
  height: auto;

}

.parallax-container {
  position: absolute;
  overflow: hidden;
  height: 100vh;
  width: 100%;
}

.sec1_text {
  font-size: 100px;
  position: absolute;
  z-index: 1;
  color: white;
  text-align: center;
  text-shadow: 0 0 10px #fff;
}

.textsec1 {
  font-size: var(--text-size-80);
}

#section2 {
  width: var(--full-size-width);
  height: 360px;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.bg_sec2 {
  width: var(--full-size-width);
  height: 360px;
  position: absolute;
}

.sec2_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80%;
}

.sec2_container p {
  color: #000;
  font-size: var(--text-size-25);
  margin: 10px 0;
}

#section3 {
  width: var(--full-size-width);
  height: 800px;
  background-color: rgb(210, 228, 241);
}

.sec3_textbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 25px;
}

.sec3_text1 {
  font-size: 60px;
  margin: 10px 0;
  color: var(--color-main);
}
.sec3_text1 h1{
  font-size: var(--text-size-80);
  font-weight: var(--font-weight-300);
}

.sec3_text2 {
  font-size: var(--text-size-25);
  margin: 10px 0;
  color: #000;
}

.sec3_container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.container_sec3_img {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.container_infoimg {
  margin: 10px;
  position: relative;
  display: inline-block;
}

.img_info1_2,
.img_info2_2,
.img_info3_2,
.img_info4_2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 350px;
  height: 350px;
  border-radius: 20px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.img_info1,
.img_info2,
.img_info3,
.img_info4 {
  width: 350px;
  height: 350px;
  border-radius: 20px;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.container_infoimg:hover .img_info1,
.container_infoimg:hover .img_info2,
.container_infoimg:hover .img_info3,
.container_infoimg:hover .img_info4 {
  opacity: 0;
}

.container_infoimg:hover .img_info1_2,
.container_infoimg:hover .img_info2_2,
.container_infoimg:hover .img_info3_2,
.container_infoimg:hover .img_info4_2 {
  opacity: 1;
}

.text_infosec3 {
  color: #4a4a4a;
  font-size: var(--text-size-25);
  text-align: center;

}

.sec4_col1_1,
.sec4_col1_2,
.sec4_col1_3,
.sec4_col1_4,
.sec4_col1_5,
.sec4_col1_6,
.sec4_col1_7,
.sec4_col1_8,
.sec4_col1_9,
.sec4_col1_10,
.sec4_col1_11,
.sec4_col1_12 {
  overflow: hidden;
  position: relative;
  width: 50%;
  width: 100%;
  height: 100%;
}

.img_sec4 {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: 0.5s ease;
  border-radius: 20px;
}

.text_sec5 {
  color: rgb(255, 255, 255);
  font-size: var(--text-size-25);
  text-align: center;
  width: 80%;
  /* text-align: center; */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}





.wrapper .carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(100% / 3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: 8px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel .card {
  scroll-snap-align: start;
  height: 500px;
  list-style: none;
  cursor: pointer;
  flex-direction: column;
  display: flex;
  justify-content: flex-start;
  overflow: hidden;
  position: relative;
  transition: height 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.carousel .card:not(.active) {
  height: 400px;
  filter: brightness(0.5);
}

/* Overlay สีทึบสำหรับการ์ดแรกและการ์ดสุดท้าย */
.card:not(.active)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(131, 184, 219, 0.493);
  z-index: 2;
}

/* CSS for card content */
.card .img {
  height: 300px;
  width: 100%;
  border-top-left-radius: 9%;
  border-top-right-radius: 9%;
  overflow: hidden;
  position: relative;
}

.card .img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
}

.card .img img:hover {
  transform: scale(1.2);
  transition: 0.5s;
}

.carousel .card h2 {
  font-weight: 600;
  font-size: 17px;
  width: 88%;
  margin: 15px 0px 5px;
}

.carousel .card span {
  color: #6a6d78;
  font-size: 14px;
  width: 88%;
}

/* new */
.wrapper {
  position: relative;
  margin: 0 auto;
  /* max-width:1000px; */
  /* background:#cecece; */
  height: 100%;
  overflow: hidden;
}

.overflow {
  display: grid;
  grid-auto-columns: minmax(600px, auto);
  grid-gap: 15px;
  grid-auto-flow: column;
  padding: 10px;
  width: 100%;
  height: 80%;
  transform: translateX(0px);
  transition: all 1s ease;
}

.bloco {
  height: 85%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.next {
  position: absolute;
  right: 15px;
  top: 50%;
  z-index: 9;
  opacity: 1;
  height: 40px;
  width: 40px;
  text-align: center;
}

.previous {
  position: absolute;
  left: 15px;
  top: 50%;
  z-index: 9;
  opacity: 0;
  height: 40px;
  width: 40px;
  text-align: center;
}

.next,
.previous {
  display: block;
  position: absolute;
  top: 50%;
  z-index: 4;
  background: #ffffff;
  border: none;
  border-radius: 50%;
  color: #000000;
  /* เปลี่ยนลูกศรเป็นสีดำเริ่มต้น */
  cursor: pointer;
  font-size: 24px;
  padding: 6px;
  transform: translateY(-50%);
  transition: background-color 0.3s ease, color 0.3s ease;
  /* เพิ่ม transition เพื่อให้การเปลี่ยนสีราบรื่น */
}

.container_nextprevious {
  background-color: var(--color-main);
  /* เปลี่ยนพื้นหลังเป็นสีฟ้า */
  color: #ffffff;
  /* เปลี่ยนลูกศรเป็นสีขาว */
}

.next:hover,
.previous:hover {
  background-color: var(--color-main);
  /* เปลี่ยนพื้นหลังเป็นสีฟ้า */
  color: #ffffff;
  /* เปลี่ยนลูกศรเป็นสีขาว */
}

/* เพิ่มเติม: เพื่อให้แน่ใจว่าลูกศรเปลี่ยนสีด้วย */
.next:hover i,
.previous:hover i {
  color: #ffffff;
  /* เปลี่ยนลูกศรเป็นสีขาวเมื่อ hover */
}

.arrow {
  font-size: 24px;
  font-weight: 600;
}

/* new */

/* wrap */

.sec3_boxbutton {
  /* width: 100%; */
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 25px;
  z-index: 1;
}

.sec3_boxbutton a {
  text-decoration: none;
}

.sec3_button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 60px;
  background-color: #ffffff;
  color: var(--color-main);
  border: 1px solid var(--color-main);
  border-radius: 10px;

}

.sec3_button:hover {
  background-color:var(--color-main);
  color: #fff;
  border-radius: 10px;
}

.sec3_button p {
  font-size: var(--text-size-25);
}

#section5 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--full-size-width);
  height: 900px;

}

.bg_sec4 {
  width: var(--full-size-width);
  height: 900px;
  position: absolute;
}

.sec5_container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.sec5_row1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 30%;
  color: var(--color-main);
}

.sec5_row2 {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 60%;
  align-items: center;
}

.sec5_row1_headtext h1{
  font-size: var(--text-size-80);
  font-weight: var(--font-weight-300);
  margin: 0px 0px;
  color: var(--color-main);
}

.sec5_row1_text {
  font-size: var(--text-size-25);
  margin: 10px 0px;
  color: #000000;
  text-align: center;
}

.sec5_row2_container1 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  height: 300px;
}

.sec5_row2_container2 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  height: 300px;
}

.container_sec5 {
  display: flex;
  justify-content: center;
  width: 80%;
  flex-direction: column;
  align-items: center;
}

.sec5_box1,
.sec5_box2,
.sec5_box3,
.sec5_box4,
.sec5_box5,
.sec5_box6 {
  width: 280px;
  height: 250px;
  margin: 0 15px;
}


.img_sec5 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
  /* ให้การเปลี่ยนแปลงมีความนุ่มนวล */
}

.sec5_box1,
.sec5_box2,
.sec5_box3,
.sec5_box4,
.sec5_box5,
.sec5_box6 {
  position: relative;
  display: inline-block;
  overflow: hidden;
  /* ป้องกันไม่ให้รูปภาพซูมเกินขอบของกรอบ */
}

/* .img_sec5 {
  width: 100%;
  transition: 0.5s ease;
  border-radius: 20px;
} */

.overlay13,
.overlay14,
.overlay15,
.overlay16,
.overlay17,
.overlay18 {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-color: #0d38888a;
}

.text_sec5 {
  color: white;
  font-size: 29px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.sec5_box1:hover .overlay13,
.sec5_box2:hover .overlay14,
.sec5_box3:hover .overlay15,
.sec5_box4:hover .overlay16,
.sec5_box5:hover .overlay17,
.sec5_box6:hover .overlay18 {
  opacity: 1;
}

.sec5_box1:hover .text_sec5,
.sec5_box2:hover .text_sec5,
.sec5_box3:hover .text_sec5,
.sec5_box4:hover .text_sec5,
.sec5_box5:hover .text_sec5,
.sec5_box6:hover .text_sec5 {
  opacity: 1;
}

.sec5_box1:hover .img_sec5,
.sec5_box2:hover .img_sec5,
.sec5_box3:hover .img_sec5,
.sec5_box4:hover .img_sec5,
.sec5_box5:hover .img_sec5,
.sec5_box6:hover .img_sec5 {
  transform: scale(1.1);

  /* ซูมเข้า 10% */
}


#section6 {
  position: relative;
  width: var(--full-size-width);
  height: 462px;
}

.sec6container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;

}

.bg_sec6 {
  position: absolute;
  width: var(--full-size-width);
  height: 462px;
  object-fit: cover;
  z-index: -1;
}

.sec6_box {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 40%;
  height: 100%;
}

.headtext_sec6 {
  font-size: var(--text-size-80);
  font-weight: var(--font-weight-300);
}

.text_sec6 {
  font-size: var(--text-size-25);
  text-align: center;
  margin: 10px 0;

}

.video_background6 {
  position: absolute;
  object-fit: cover;
  top: 50%;
  left: 50%;
  min-width: 100%;
  max-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -100;
  transform: translate(-50%, -50%);
  filter: contrast(0.7);
}

#section7 {
  background-color: rgb(255, 255, 255);
  width: var(--full-size-width);
  height: 500px;
}

.sec7container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.sec7_col1 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-right: 50px;
  width: 45%;
  height: 100%;
}

.sec7_col2 {
  display: flex;
  align-items: center;
  width: 100%;
  margin-left: 50px;
  height: 100%;
  justify-content: center;
}

.sec7_col2_box {
  width: 80%;
  height: 60%;
}

.headtext_sec7 {
  font-size: var(--text-size-80);
  font-weight: var(--font-weight-300);
  color: var(--color-main);
  display: flex;
  justify-content: center;
}

.text1_sec7 {
  margin-top: 20px;
  width: 100%;
  font-size: var(--text-size-25);
  color: #000;
  display: flex;
  justify-content: center;

}

.text2_sec7,
.text3_sec7 {
  margin-top: 0px;
  font-size: var(--text-size-25);
  color: var(--color-main);
  background-color: transparent; /* เปลี่ยนให้พื้นหลังเป็นใส */
  border: 2px solid var(--color-main); 
  border-radius: 10px;
  width: 350px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.text2_sec7:hover,
.text3_sec7:hover {
  background-color: var(--color-reserve-main);
  color: #fff;
  /* เปลี่ยนสีพื้นหลังเมื่อ hover */
}

.container_sec7 {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin: 30px;
}

#footer {
  width: var(--full-size-width);
  height: 60px;
  background-color: var(--color-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer_container {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  align-items: center;
}

.footer_col1 {
  display: flex;
  justify-content: center;
  width: 100%;
  font-size: var(--text-size-20);
}

.footer_col2 {
  width: 20%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.footer_col2 a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
}

.cal {
  display: flex;
  align-items: center;
  width: 5%;
  height: 40px;
  cursor: pointer;
  justify-content: center;
}

.cal img {
  width: 24px;
}

.calculator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  position: fixed;
  background-color:  rgba(2, 2, 2, 0.8);
  top: 0;
  width: 100%;
  height: 100%;
}

.error {
  border: 2px solid red;
}

.cal_box {
  width: 100%;
  display: none;
}

.radio {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 78%;
  height: 30px;
}

.a3 {
  display: flex;
  justify-content: flex-start;
  width: 80px;
  margin-left: 8px;
}

.a5 {
  display: flex;
  justify-content: flex-start;
  width: 80px;
}

.social_icon2 {
  margin: 0 10px;
  color: #000;
}

.facebook_icon img,
.instagram_icon img {
  width: 25px;
  height: 30px;
  filter: contrast(0.5);
  margin: 0px;
  padding: 0px;
}

.facebook_iconmain img, .instagram_iconmain img {
  width: 25px;
  height: 30px;
  margin: 0px;
  padding: 0px;
  opacity: 0.4; /* ตั้งค่า opacity เป็น 40% โดยเริ่มต้น */
}

.facebook_iconmain img:hover, .instagram_iconmain img:hover {
  opacity: 1; /* เมื่อ hover ให้ opacity เป็น 100% */
}

.contact_cal {
  margin-left: 40px;
}

.container_iconclosecal {
  display: flex;
  justify-content: flex-end;
  padding: 5px;
}

.close-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  background-color: transparent;
  border: 2px solid rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  padding: 0px;
  font-size: 14px;
  font-weight: 200;

}



.headcal {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 30px;
}

.calculator_container {
  color: gray;
  background-color: rgb(210 225 237);
  width: 375px;
  height: 450px;
  border-radius: 10px;
}

.pimchill {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gemicks {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

#result {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  text-align: center;
  color: var(--color-main);
  font-size: 18px;
  font-weight: 300;
}

.form-container {
  display: none;
}
.container_boxcal{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 90%;
  height: 100%;
  margin-top: 10px;
}
.cal_size{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 285px;
  height: 50px;
}
.label_text{
  font-size: 14px;
  font-weight: 200;
  width: 80%;
  text-align: center;
}
.input_text{
  font-size: 12px;
  width: 100px;
  height: 30px;
  margin: 5px 0px;
  font-weight: 200;
}
.input_textcal{
  width: 285px;
  height: 30px;
  color: gray;
}
.container_papersize{
  display: flex;
  justify-content: center;
  flex-direction: row;
}
/*เครื่องคิดเลข*/
label{
  margin-left: 0px;
  font-size: 16px;
  font-weight: 200;
}
radio {
  padding: 5px;
  cursor: pointer;
}
required{
  text-indent: 5px;
}
button {
  color: #78a5c5;
  width: 100px;
  height: 40px;
  border-radius: 20px;
  background-color: #ffffff;
  border: 2px solid #78a5c5;
  cursor: pointer;
}

.button_cal {
  width: 100px;
  height: 20px;
}

button:hover {
  color: #ffffff;
  background-color: rgb(210 225 237);
  border: 2px solid #ffffff;
}

input {
  border: 1px solid rgb(48, 145, 255);
  border-radius: 5px;
  font-weight: 600;
  text-indent: 8px;
  cursor: pointer;
}

select {
  border-radius: 5px;
  border: 1px solid rgb(48, 145, 255);
  text-indent: 8px;
  cursor: pointer;
}
option {
 color: #6a6d78;
}


/* #material{
  margin-left: 10px;
} */
@keyframes slideUpFadeIn {
  0% {
      transform: translateY(50px);
      opacity: 0;
  }
  100% {
      transform: translateY(0);
      opacity: 1;
  }
}

/* Default state */
.animatedownToup {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

/* When scrolled into view */
.start-animation {
  opacity: 1;
  transform: translateY(0);
}

/* สำหรับการเพิ่ม delay ในแต่ละบรรทัดหรือแต่ละองค์ประกอบ */
.animatedownToup:nth-child(1) {
  animation-delay: 0.2s;
}

.animatedownToup:nth-child(2) {
  animation-delay: 0.4s;
}

.animatedownToup:nth-child(3) {
  animation-delay: 0.6s;
}

#section1 .sec1_text h1 {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

#section1 .sec1_text.start-animation h1:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

#section1 .sec1_text.start-animation h1:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

#section1 .sec1_text.start-animation h1:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}
#section2 .sec2_container p {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

#section2 .sec2_container.start-animation p:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

#section2 .sec2_container.start-animation p:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

#section2 .sec2_container.start-animation p:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}
#section3 .container_infoimg {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

#section3 .container_infoimg.start-animation:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

#section3 .container_infoimg.start-animation:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

#section3 .container_infoimg.start-animation:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

#section3 .container_infoimg.start-animation:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.8s;
}



#section5 .sec5_box1, #section5 .sec5_box2, #section5 .sec5_box3, #section5 .sec5_box4, #section5 .sec5_box5, #section5 .sec5_box6 {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

#section5 .sec5_box1.start-animation {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

#section5 .sec5_box2.start-animation {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

#section5 .sec5_box3.start-animation {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

#section5 .sec5_box4.start-animation {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.8s;
}

#section5 .sec5_box5.start-animation {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1s;
}

#section5 .sec5_box6.start-animation {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.2s;
}
/* Delay effect for each line (optional for different timing) */
.headtext_sec6, .text_sec6, .headtext_sec7, .text1_sec7, .text2_sec7, .text3_sec7 {
  transition: opacity 1s ease, transform 1s ease;
}

.headtext_sec6 {
  transition-delay: 0.2s;
}

.text_sec6 {
  transition-delay: 0.4s;
}

.headtext_sec7 {
  transition-delay: 0.2s;
}

.text1_sec7 {
  transition-delay: 0.4s;
}




@media (min-width: 1200px) and (max-width: 1919px) {

  .nav_row1,
  .nav_row2,
  #section2,
  #section3,
  #section4,
  #section5,
  #section6,
  #section7,
  #footer,
  .bg_sec2,
  .bg_sec4,
  .container_sec3_img,
  .video_background6 {
    width: 100%;
  }

  /* Media Query สำหรับหน้าจอมือถือ */
  #nav {
    width: 100%;
  }

  .nav_col2_container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 45%;
  }


  #section1 {
    width: 100%;
    height: 800px;
  }

  .sec2_container {
    width: 80%;
  }

  .sec2_container p {
    font-size: 28px;

  }

  .sec3_text1 {
    font-size: 36px;
  }

  .sec5_row1_headtext {
    font-size: 36px;
  }

  .video_background {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}


@media (max-width: 1199px) {

  .nav_row1,
  .nav_row2,
  #section2,
  #section4,
  #section6,
  #footer,
  .bg_sec2,
  .video_background6 {
    width: 100%;
  }

  .nav_row1,
  .nav_row2 {
    width: 100%;
  }
  .nav_row2.fixed{
    display: none;
  } 

  /* Media Query สำหรับหน้าจอมือถือ */
  #nav {
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .nav_row1 {
    width: 100%;
    height: auto;
    justify-content: center;
    padding: 10px 20px;
    background-color: var(--color-main);
    display: flex;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  .nav_col1{
    width: 0px;
  }
  .logomain {
    width: 100px;
    height: 70px;
  }

  .nav_col2 {
    width: auto;
    justify-content: flex-end;
  }

  .nav_col2_container {
    width: auto;
    display: none;
  }

  /* ซ่อน navbar โดยค่าเริ่มต้น */
  .nav_row2 {
    display: none;
    background-color: var(--color-main);
    /* สีพื้นหลังของ navbar */
    width: 100%;
  }


  .nav_row2.show {
    display: block;
    /* แสดงเมนูเมื่อถูกคลิก */
  }

  .nav_row2_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgb(255, 255, 255);
    width: 100%;
  }

  .containernav1 {
    width: 90%;
    display: flex;
    flex-direction: column;
  }

  .lg1 {
    transform: translateX(-5px);
  }

  .dropdown-content {
    background-color: #ffffff;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);

  }

  /* แสดง navbar เมื่อมีคลาส show-nav */
  .show-nav {
    display: block;
  }

  /* ปุ่ม hamburger สำหรับเปิดเมนู */
  .hamburger {
    font-size: 30px;
    cursor: pointer;
    color: white;
    display: inline-block;
    width: 20px;
    height: 20px;
  }

  /* ปุ่ม close สำหรับปิดเมนู (ซ่อนปุ่มนี้ตอนแรก) */
  .close-button {
    font-size: 30px;
    cursor: pointer;
    color: white;
    display: none;
    width: 20px;
    height: 20px;
  }

  /* แสดงปุ่ม close เมื่อเมนูถูกแสดง */
  .show-nav .close-button {
    display: inline-block;
  }

  /* ซ่อนปุ่ม hamburger เมื่อเมนูถูกแสดง */
  .show-nav .hamburger {
    display: none;
  }

  /* ขนาดและตำแหน่งของปุ่มเปิดเมนู */
  #hamburgerMenu {
    width: 20px;
    height: 20px;
    top: 40px;
    right: 5%;
    position: absolute;
    cursor: pointer;
    display: block;
  }

  /* ขนาดและตำแหน่งของปุ่มปิดเมนู (ซ่อนตอนแรก) */
  #closeMenu {
    width: 20px;
    height: 20px;
    top: 40px;
    right: 5%;
    position: absolute;
    cursor: pointer;
    display: none;
  }


  .show-nav .hamburger {
    display: none;
    /* ซ่อน hamburger เมื่อแสดงเมนู */
  }

  .nav_row2_container a {
    display: block;
    padding: 10px 0;
    text-align: center;
    color: rgba(2, 2, 2, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 200;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);

  }


  /* Calculator Icon Box */
  .calculator-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0px;
    padding: 0px;
    width: 100%;
  }

  .calculator_container {
    width: 375px;
  }

  .calculator-container .cal {
    width: 50px;
    height: 50px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
  }

  .cal img {
    width: 30px;
    height: 30px;
  }

  .cal img {
    width: 15px;
    height: auto;
    filter: brightness(0.600);
  }

  .desktop-only {
    display: none;
  }

  .mobile-onlylg {
    display: flex;
    width: 80%;
    align-items: center;
    justify-content: center;
  }

  .mobile-only {
    display: flex;
    width: 80%;
    align-items: center;
    justify-content: flex-start;
  }

  .social_icon {
    margin: 0px;
  }

  #section1 {
    width: 100%;
    height: 700px;
  }

  .textsec1 {
    font-size: 50px;
  }

  .sec2_container p {
    font-size: 16px;
    text-align: center;
  }

  .sec3_text1 {

    text-align: center;
  }

  #home_headtext_sec3_1 {
    font-size: 30px;
  }

  #home_infotext_sec3_2 {
    font-size: 16px;
  }

  .text_infosec3 {
    font-size: 16px;
  }

  .container_infoimg {
    width: 100%;
    /* แสดงเป็นคอลัมน์เดียวเมื่อหน้าจอเล็กมาก */
  }

  .container_sec3_img {
    display: flex;
    flex-wrap: wrap;
  }

  .container_infoimg {
    width: 43%;
    margin-bottom: 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }

  .img_info1,
  .img_info2,
  .img_info3,
  .img_info4 {
    width: 100%;
    height: 180px;
    border-radius: 20px;
    object-fit: cover;
    transition: opacity 0.5s ease;
  }

  .sec3_button {
    width: 100px;
    height: 40px;
  }

  .sec3_button p {
    font-size: 16px;
  }

  #section3 {
    width: 100%;
    height: 700px;
  }

  .sec3_textbox {
    text-align: center;
  }

  .sec3_boxbutton {
    text-align: center;
    margin: 0px;
  }

  .img_info1_2,
  .img_info2_2,
  .img_info3_2,
  .img_info4_2 {
    width: 100%;
    height: 180px;
  }

  #section5 {
    width: 100%;
    height: 700px;
  }

  .bg_sec4 {
    width: 100%;
    height: 700px;
  }


  #home_headtext_sec5_1 {
    font-size: 30px;
  }

  .sec5_row1_text {
    font-size: 16px;
    text-align: center;
  }

  .sec5_row2 {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 50%;
    align-items: center;
    justify-content: center;
  }

  .sec5_row2_container1,
  .sec5_row2_container2 {
    width: 45%;
    height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .sec5_box1,
  .sec5_box2,
  .sec5_box3,
  .sec5_box4,
  .sec5_box5,
  .sec5_box6 {
    width: 100%;
    height: 250px;
    margin: 8px 8px;
    display: flex;
    justify-content: center;
  }

  .img_sec5 {
    width: 90%;
    transition: 0.8s ease;
  }

  .overlay13,
  .overlay14,
  .overlay15,
  .overlay16,
  .overlay17,
  .overlay18 {
    width: 100%;
  }

  .text_sec5 {
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;

  }

  .sec6_box {
    width: 80%;
    height: 100%;
  }

  .headtext_sec6 {
    font-size: 30px;
  }

  .text_sec6 {
    font-size: 16px;
  }
  #section7{
    width: 100%;
    height: 350px;
  }

  .headtext_sec7 {
    font-size: 30px;
  }

  .container_sec7 {
    margin: 10px;
    display: flex;
    flex-direction: column;
  }

  .text1_sec7 {
    font-size: 16px;
    text-align: center;
    color: #000;
    width: 80%;
  }

  .text2_sec7,
  .text3_sec7 {
    font-size: 16px;
    width: 220px;
    height: 50px;
    margin: 5px;
  }

  .sec7_col2 {
    margin-left: 0px;
  }

  .sec7_col2_box {
    width: 100%;
    height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .video_background {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .footer_container {
    display: flex;
  }

  .footer_col1 {
    font-size: 12px;
  }
}