/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
:root {
  --primary-color: #1F396D;
  --secondary-color: #E7EEFD;
  --white-color: #FFFFFF;
  --light-gray-color: #EFEFED;
  --gray-color: #6E6E6E;
  --gray-8-color: #6e6e6e14;
  --black-color: #000000;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: "Prompt", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--black-color);
  background-color: var(--white-color);
  max-width: 100%;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  -moz-transition: all .3s ease-in-out;
  -webkit-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out;
}

a:hover {
  color: var(--gray-color);
}

h1, .h1 {font-size: 54px; font-weight: 500; line-height: 1.3;}
h2, .h2 {font-size: 32px; font-weight: 700;}
h3, .h3 {font-size: 24px; font-weight: 500;}
h4, .h4 {font-size: 18px; font-weight: 500; line-height: 1.5;}
h5, .h5 {font-size: 14px; font-weight: 400;}
h6, .h6 {font-size: 12px; font-weight: 400; line-height: 1.5;}

h1,h2,h3,h4,h5,h6 {margin-bottom: .8rem;}

.text-white h3, .text-white .h3, .text-white h4, .text-white .h4 { font-weight: 400; }
.text-white h6, .text-white .h6 { font-weight: 300; }
.text-white p { font-weight: 300; }

.line-clamp {
  display: -webkit-box;
  max-width: 100%;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp.line-1 {-webkit-line-clamp: 1;}
.line-clamp.line-2 {-webkit-line-clamp: 2;}
.line-clamp.line-3 {-webkit-line-clamp: 3;}

img {
  width: 100%;
  height: auto;
}

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

.text-pri {color: var(--primary-color);}
.text-sec {color: var(--secondary-color);}
.text-gray {color: var(--gray-color);}

.bg-pri {background-color: var(--primary-color);}
.bg-gray {background-color: var(--gray-color);}
.bg-gray-8 {background-color: var(--gray-8-color);}
.bg-light-gray {background-color: var(--light-gray-color);}

.p-section {
  padding: 80px 0;
}
.p-section-small {
  padding: 40px 0;
}
.p-section-medium {
  padding: 70px 0;
}
.p-section-top {
  padding-top: 80px;
}
.p-section-bottom {
  padding-bottom: 80px;
}
.pb-detail {
  padding-bottom: 69px;
}

.btn-main {
  display: inline-flex;
  background-color: var(--primary-color);
  color: var(--white-color);
  border: 1px solid var(--primary-color);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 10px 20px;
  -moz-transition: all .3s ease-out;
  -webkit-transition: all .3s ease-out;
  transition: all .3s ease-out;
}

.btn-main:hover {
  color: var(--white-color);
}

.w-arrow {
  display: inline-flex;
  letter-spacing: .5px;
  -moz-transition: all .3s ease-out;
  -webkit-transition: all .3s ease-out;
  transition: all .3s ease-out;
}

.w-arrow .icon {
  width: 14px;
  margin-left: 10px;
  transition: all .3s ease-out;
}

.w-arrow:hover .icon,
.w-arrow:focus .icon {
  transform: rotate(45deg);
}

.btn-main.white {
  background-color: var(--white-color);
  color: var(--primary-color);
  border: 1px solid var(--white-color);
  font-weight: 700;
  padding: 8px 20px;
}

.btn-main.shop-now {
  padding: 10px 55px;
}

.shadow-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(31, 57, 109, 1) 0, rgba(31, 57, 109, .7) 0);
  opacity: 1;
  z-index: 1;
}

.lazy {
  opacity: 0;
  transition: opacity .5s;
}

.lazy.loaded {
  opacity: 1;
}

.content-center {
  padding: 5% 10%;
  min-height: 400px;
}

.keep-right {
  width: 100%;
  margin-left: auto !important;
  padding-left: 15px;
}

.text-nowrap {
  white-space: nowrap;
}

.content-no-data {
  min-height: 10vh;
}

.container-fluid {
  padding-left: 90px;
  padding-right: 90px;
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
#header {
  position: -webkit-sticky;
  position: sticky;
  top: var(--header-scroll-offset, -60px);
  color: var(--black-color);
  background: var(--white-color);
  transition: all 0.4s ease;
  z-index: 1030;
}

#main-navbar {
  position: relative;
  background: var(--white-color);
}

#header .top-bar {
  background: var(--primary-color);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
}

#header .logo {
  width: 100px;
}

#header .social-icon {
  width: 24px;
  height: auto;
  margin-right: 8px;
  margin-bottom: 0;
}

#header .social-icon:last-child {
  margin-right: 0;
}

.change-lang {
  width: 22px;
  margin: 0 30px;
}

.tel-box {
  padding: 4px 10px;
  white-space: nowrap;
  font-size: 13px;
}

.tel-box .icon {
  width: 15px;
}

#header .nav-link {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  color: var(--primary-color);
  position: relative;
}

#header .nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 3px;
  background: var(--primary-color);
}

.btn-shop-now {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  background-color: var(--primary-color);
  color: var(--white-color);
  text-decoration: none;
  padding: 15px 90px 15px 60px;
  /* เพิ่ม padding ฝั่งซ้ายเผื่อพื้นที่มุมเอียง */
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 400;
  transition: all 0.3s ease;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 35px 100%);
  min-width: 250px;
  height: 100%;
}
.btn-shop-now:hover {
  color: var(--white-color);
}

/* ทำให้ Dropdown แสดงเมื่อ Hover (เฉพาะขนาดหน้าจอใหญ่) */
@media (min-width: 1200px) {
  #header .dropdown-toggle::after {
    display: none;
  }

  .navbar-nav .nav-item.dropdown {
    position: relative;
  }

  /* สร้างสะพานล่องหนยื่นลงมาจากเมนูหลัก */
  .navbar-nav .nav-item.dropdown:hover::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -25px;
    width: 100%;
    height: 30px;
    background: transparent;
    z-index: 1000;
  }

  .navbar-nav .nav-item.dropdown .dropdown-menu {
    display: block; /* ต้องเปิดเป็น block ไว้เพื่อให้ transition ทำงาน */
    visibility: hidden;
    opacity: 0;
    transform: translateY(30px); /* จุดเริ่ม Animation */
    transition: all 0.3s ease-out;
    pointer-events: none; /* ป้องกันการเอาเมาส์ไปโดนตอนที่ยังไม่แสดง */

    /* รีเซ็ตค่าเดิม */
    margin-top: 0;
    border: none;
  }

  .navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(8px); /* เลื่อนกลับมาที่ตำแหน่ง 0 */
    pointer-events: auto;
  }

  /* สำหรับ Dropdown ชั้นที่ 2 (Multi-level) */
  .dropdown-menu .dropend .dropdown-menu {
    top: -20px;
    left: 100%;

    /* สำคัญ: สร้าง "สะพานล่องหน" ด้านซ้ายเพื่อรับเมาส์ */
    border-left: 15px solid transparent;
    background-clip: padding-box;

    /* Animation เลื่อนจากซ้ายไปขวา */
    transform: translateX(10px);
    display: block;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-out;
  }

  .dropdown-menu .dropend:hover > .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  #header .nav-item:first-child .nav-link {
    padding-left: 0;
  }

  #header .nav-link.active::before {
    content: none;
  }
  #header .nav-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%);
    height: 1px;
    width: calc(100% - (14px * 2));
    padding: 0 14px;
    background: var(--primary-color);
    display: inline-block;
    margin-left: 0;
    vertical-align: unset;
    border: none;
  }
  #header .nav-item:first-child .nav-link.active::after {
    left: calc(50% - 7px);
  }
}

/* ตกแต่งหน้าตา Dropdown ให้เหมือนในรูป */
#header .dropdown-menu {
  background-color: var(--primary-color);
  border-radius: 0;
  padding: 20px 10px;
  min-width: auto;
}

#header .dropdown-item {
  color: var(--white-color);
  padding: 6px 20px;
  font-size: 13px;
  transition: all 0.3s;
}

#header .dropdown-item:hover,
#header .dropdown-item:focus,
#header .dropdown-item:active,
#header .dropdown-item.active {
  background-color: var(--primary-color);
}
#header .dropdown-item.active {
  position: relative;
  padding-left: 30px;
}

#header .dropdown-item.active::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 2px;
  background: var(--white-color);
}

#header .dropend .dropdown-toggle::after {
  display: none;
}
#header .dropend .dropdown-menu .dropdown-item:hover {
  color: var(--gray-color);
}

@media (max-width: 1510px) {
  #header .nav-link {
    padding: 8px 10px;
  }
  #header .nav-link.active::after {
    width: calc(100% - (8px * 2));
  }
  #header .nav-item:first-child .nav-link.active::after {
    left: calc(50% - 4px);
  }
}

@media (max-width: 1440px) {
  .btn-shop-now {
    padding: 15px 70px 15px 60px;
  }
}

@media (max-width: 1399px) {
  .btn-shop-now {
    min-width: initial;
    padding: 15px 70px 15px 55px;
  }
  #header .nav-link {
    padding: 8px;
  }
}

@media (max-width: 1299px) {
  .btn-shop-now {
    min-width: initial;
    padding: 15px 35px 15px 40px;
  }
}

@media (max-width: 1199.98px) {
  /* ทำให้เมนูหลัก (Navbar) ตอนกด Hamburger กางออกนุ่มขึ้น */
  .collapsing {
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* ปรับแต่ง Dropdown ให้มี Animation ค่อยๆ กางออก */
  .navbar-nav .dropdown-menu {
    /* ปลดล็อกการซ่อนแบบ display: none */
    display: block !important;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0;
    border: none;
    transition: all 0.4s ease-in-out;
  }

  /* เมื่อมีการกดเปิด Dropdown (Bootstrap จะใส่คลาส .show ให้) */
  .navbar-nav .dropdown-menu.show {
    max-height: 500px;
    /* ตั้งค่าให้สูงกว่าเนื้อหาจริง */
    opacity: 1;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    margin-top: 5px;
    margin-bottom: 5px;
  }

  /* สำหรับ Dropdown ชั้นที่ 2 ในมือถือ */
  .dropdown-menu .dropdown-menu {
    background-color: rgba(0, 0, 0, 0.05);
    margin-left: 15px !important;
    margin-right: 15px !important;
    border-left: 2px solid rgba(255, 255, 255, 0.2) !important;
  }

  /* 1. กำหนดความสูงสูงสุดให้กับส่วนที่กางออก และเปิดการ Scroll */
  .navbar-collapse {
    max-height: calc(100vh - 108.75px); /* 100vh ลบด้วยความสูงโดยประมาณของ Header */
    overflow-y: auto; /* เปิด Scroll แนวตั้ง */
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* เพื่อให้เลื่อนบนมือถือได้ลื่นไหล */
  }

  /* 2. จัดการกับตัว Dropdown เพื่อไม่ให้มันเด้งออกนอกกรอบ Scroll */
  .navbar-nav .dropdown-menu {
    position: static !important; /* ให้ Dropdown ไหลไปตามลำดับเมนูปกติ ไม่ลอยทับ */
    float: none;
  }

  #header .nav-link.active::after {
    width: initial;
  }
  .btn-shop-now {
    clip-path: none;
    padding: 10px 20px;
  }
}

@media (max-width: 575px) {
  .change-lang {
    margin: 0 18px;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  background: var(--white-color);
  color: var(--black-color);
}

.footer .footer-top {
  padding: 50px 0;
}

.footer .logo {
  width: 130px;
}

.footer .footer-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 28px;
  margin-top: 20px;
}

.footer .footer-top .menu {
  list-style: none;
  padding-left: 0;
  margin-bottom: 10px;
}

.footer .footer-top .menu li {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 10px;
}

.footer .copyright {
  padding: 18px 0;
  background: var(--gray-color);
  color: var(--white-color);
  font-weight: 300;
}

.footer .copyright a {
  font-size: 12px;
  margin-bottom: 0;
  color: var(--white-color);
}

.footer .copyright p {
  font-size: 12px;
  margin-bottom: 0;
}

.contact-w-icon {
  margin-bottom: .8rem;
}

.contact-w-icon .icon {
  width: 15px;
  height: 15px;
  margin-right: 12px;
  margin-top: 2px;
}

.contact-w-icon .address {
  max-width: 200px;
}

.social-footer {
  max-width: 195px;
}

/*--------------------------------------------------------------
# Pagination
--------------------------------------------------------------*/
.custom-pagination ul {
  display: flex;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.custom-pagination .item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary-color);
  border-radius: 50%;
  background: var(--white-color);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s ease-out;
}

.custom-pagination .item:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

.custom-pagination li.active .item {
  background: var(--primary-color);
  color: var(--white-color);
  border-color: var(--primary-color);
}

.custom-pagination li.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.custom-pagination .item-next-prev svg {
  width: 40px;
  height: 40px;
  color: var(--primary-color);
  transition: all .3s ease-out;
}

.custom-pagination .item-next-prev svg .circle-bg {
  fill: var(--white-color);
  transition: all .3s ease-out;
}

.custom-pagination li.prev svg {
  transform: rotate(180deg);
}

.custom-pagination .item-next-prev:hover svg {
  color: var(--white-color);
}

.custom-pagination .item-next-prev:hover svg .circle-bg {
  fill: var(--primary-color);
}

.custom-pagination .dots .item {
  background: transparent;
  cursor: default;
  color: var(--black-color);
}
/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: #ffffff;
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--primary-color) transparent var(--primary-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Breadcrumb
--------------------------------------------------------------*/
.breadcrumb {
  --bs-breadcrumb-divider-color: var(--black-color);
  --bs-breadcrumb-item-active-color: var(--secondary-color);
  --bs-breadcrumb-item-padding-x: .5rem;
  font-size: 15px;
  font-weight: 500;
  --bs-breadcrumb-divider: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8.465 14.108"><path d="M0 1.428 L1.424 0 L8.465 7.054 L1.424 14.108 L0 12.679 L5.612 7.054 Z" fill="%23172436"/></svg>');
}

.breadcrumb-item+.breadcrumb-item::before {
  float: none;
  display: inline-block;
  width: 11px;
  height: 11px;
  content: "" !important;
  background-image: var(--bs-breadcrumb-divider);
  background-repeat: no-repeat;
  background-size: contain;
  padding-right: 14px;
}

.breadcrumb-item a:hover {
  color: inherit;
}

.breadcrumb-item.active {
  font-weight: 700;
}

.breadcrumb-item.inner {
  max-width: 500px;
}

/*--------------------------------------------------------------
# Figure
--------------------------------------------------------------*/
figure {
  overflow: hidden;
  margin: 0;
}
.on-hover-img figure img {
	-webkit-transform: scale(1);
	transform: scale(1);
	-webkit-transition: .3s ease-out !important;
	transition: .3s ease-out !important;
}
.on-hover-img:hover figure img{
	-webkit-transform: scale(1.13);
	transform: scale(1.13);
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 60vh;
  position: relative;
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero.home {
  min-height: 90vh;
}

/* Container สำหรับคุมวิดีโอ */
.hero .video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  /* ป้องกันการคลิกบนวิดีโอ */
}

/* ทำให้ Iframe ใหญ่กว่าจอเพื่อซ่อนขอบดำ (Scale เล็กน้อย) */
.hero .video-background iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* อัตราส่วน 16:9 */
  min-height: 100vh;
  min-width: 177.77vh; /* อัตราส่วน 16:9 */
  transform: translate(-50%, -50%);

  /* ซ่อน iframe ตอนแรก */
  opacity: 1;
  transition: opacity 0.8s ease-in-out;
}

/* คลาสที่จะเติมเข้าไปตอนวิดีโอเริ่มเล่นแล้ว */
.hero .video-background iframe.is-playing {
  opacity: 1;
}

.hero .img-banner {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.custom-video-btn {
  position: absolute;
  bottom: 20px;
  right: 30px;
  z-index: 10; /* ให้อยู่เหนือวิดีโอและเนื้อหา */
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 1px solid #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-video-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary-color);
}

/* ซ่อนปุ่มถ้าสไลด์ปัจจุบันไม่ใช่วิดีโอ */
.custom-video-btn.hidden {
  display: none;
}

.img-banner.pc {
  display: block;
}
.img-banner.mb {
  display: none;
}

.hero .content {
  position: relative;
  z-index: 3;
}

.hero .content h1 {
  text-shadow: 0 4px 10px #00000029;
}

.banner-mobile {
  display: none;
}

.bannerSwiper {
  --swiper-parallax-opacity: 0;
}

.bannerSwiper .swiper-pagination-bullets {
  bottom: 8%;
}

@media (max-width: 991px) {
  .hero {
    min-height: 60vh !important;
    padding: 60px 0;
  }
  .bannerSwiper .swiper-pagination-bullets {
    bottom: 3%;
  }
  .custom-video-btn {
    bottom: 10px;
  }
}

@media (max-width: 767px) {
  .custom-video-btn {
    right: 18px;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 600px !important;
  }
  .img-banner.pc {
    display: none;
  }
  .img-banner.mb {
    display: block;
  }
}

@media (max-width: 575px) {
  .hero h1 br{
    display: none;
  }

  .hide-mb {
    display: none;
  }
}

/*--------------------------------------------------------------
# Swiper
--------------------------------------------------------------*/
.swiper-container {
  position: relative;
}

.swiper-button-next,
.swiper-button-prev {
  width: 42px;
  height: 42px;
  color: var(--primary-color);
  transition: color 0.3s ease-out;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: var(--white-color);
}

.swiper-button-next svg .circle-bg,
.swiper-button-prev svg .circle-bg {
  fill: var(--white-color);
  transition: 0.3s ease-out;
}

.swiper-button-next:hover svg .circle-bg,
.swiper-button-prev:hover svg .circle-bg {
  fill: var(--primary-color);
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  border: 1px solid #aaaaaa;
  background: var(--white-color);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--primary-color);
}

.swiper-pagination-bullets-dynamic {
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: auto !important;
}

.has-bullet .swiper-pagination-bullets {
  bottom: 0;
}

.swiper.has-bullet {
  padding-bottom: 42px;
}

/*--------------------------------------------------------------
# Figure
--------------------------------------------------------------*/
figure {
  overflow: hidden;
  margin: 0;
}

.on-hover-img figure img {
  -webkit-transform: scale(1);
  transform: scale(1);
  -webkit-transition: .6s ease-in-out !important;
  transition: .6s ease-in-out !important;
}

.on-hover-img:hover figure img {
  -webkit-transform: scale(1.15);
  transform: scale(1.15);
}

/*--------------------------------------------------------------
# Home
--------------------------------------------------------------*/
.number {
  font-family: "Prompt", sans-serif !important;
  display: inline-block;
}

.number.plus {
  position: relative;
}

.number.plus::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: -32px;
  transform: translateY(-50%);
}

.product-card {
  position: relative;
}

.product-card .content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: end;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, rgba(59, 82, 127, 0.87) 85%, rgba(31, 57, 109, 1) 100%);
}

.card-hover-img .img-main {
  -webkit-transform: scale(1);
  transform: scale(1);
  -webkit-transition: .3s ease-out !important;
  transition: .3s ease-out !important;
}

.card-hover-img:hover .img-main{
  -webkit-transform: scale(1.12);
  transform: scale(1.12);
}

.product-card:hover .w-arrow .icon {
  transform: rotate(45deg);
}

.product-sub-card:hover .w-arrow .icon {
  transform: rotate(45deg);
}

.img-quality {
  width: auto;
  height: 180px;
}

/*--------------------------------------------------------------
# About Us
--------------------------------------------------------------*/
.vis-mis {
  max-width: 530px;
}

.video-scroll-container {
  position: sticky;
  top: 15%;
  width: 50%; /* เริ่มต้นที่ 50% */
  will-change: width; /* ช่วยให้ Browser เรนเดอร์ลื่นขึ้น */
  transition: width 0.1s linear; /* ให้การขยายดูต่อเนื่อง */
}

/* รักษาอัตราส่วน 16:9 */
.video-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  /* background: #000; */
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

.text-white.quality-control p {font-weight: 400;}

.quality-policy .item {
  max-width: 600px;
}

.quality-policy .des {
  margin-top: 12px;
}

.customerSwiperLeft .swiper-wrapper,
.customerSwiperRight .swiper-wrapper {
  /* ทำให้การเคลื่อนที่ลื่นไหลแบบสายพาน */
  transition-timing-function: linear !important;
  display: flex;
  align-items: center;
}

.customerSwiperLeft .swiper-slide,
.customerSwiperRight .swiper-slide {
    width: 130px !important; /* กำหนดความกว้างขั้นต่ำให้แต่ละโลโก้มีพื้นที่ */
    display: flex;
    justify-content: center;
    align-items: center;
}

.customerSwiperLeft .swiper-slide img,
.customerSwiperRight .swiper-slide img {
    max-width: 120px; /* ขนาดโลโก้สูงสุด */
    height: auto;
    object-fit: contain;
}
.customerSwiperLeft, .customerSwiperRight {
    width: 100%;
    overflow: hidden;
}
/*--------------------------------------------------------------
# Product
--------------------------------------------------------------*/
.product-slide-pb {
  padding-bottom: 60px;
}
.swiper-container.product {
  min-height: 400px;
}

.productSwiper {
  width: 100%;
  max-width: 1300px;
  overflow: visible;
  padding-top: 50px;
}

.productSwiper .swiper-slide {
  /* height: 300px; */
  display: flex;
  align-items: stretch;
  justify-content: center;

  /* แอนิเมชันย่อ/ขยาย */
  transition: all 0.4s ease;
  transform: scale(1);
  opacity: 1;
}

/* สถานะ Active (ตัวตรงกลาง) */
.productSwiper .swiper-slide.swiper-slide-active {
  transform: scale(1.1);
  /* ขยายกลับมาขนาดปกติ หรือจะใส่ 1.1 เพื่อให้ใหญ่กว่าเดิมก็ได้ */
  opacity: 1;
  z-index: 10;
}

.product-slide-card {
  position: relative;
  /* สำคัญ: เพื่อให้รูปภาพอ้างอิงตำแหน่งจากกล่องนี้ */
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding-top: 80px;
  /* ดันข้อความ h3 ลงมา ไม่ให้ชนกับรูป */
}

.product-slide-card .img-container {
  position: absolute;
  /* ลอยตัวขึ้นมา */
  top: -90px;
  /* 🚨 ดันขึ้นไปทะลุกรอบด้านบน (ปรับตัวเลขตามความเหมาะสมของขนาดรูปคุณ) */
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  transition: top 0.4s ease;
  /* แอนิเมชันเลื่อนขึ้นลง */
}

.product-slide-card .img-main {
  width: 175px;
  object-fit: contain;
  transition: width 0.4s ease;
}

.productSwiper .swiper-slide.swiper-slide-active .img-container {
  top: -95px;
}

.productSwiper .swiper-slide.swiper-slide-active .img-main {
  width: 185px;
}

.product-slide-card h4 {
  font-size: 400;
  transition: font-size 0.4s ease;
}

.productSwiper .swiper-slide.swiper-slide-active h4 {
  font-size: 24px;
}

.product-slide-card h6 {
  transition: font-size 0.4s ease;
}

.productSwiper .swiper-slide.swiper-slide-active h6 {
  font-size: 13px;
}

.product-slide-card p {
  font-size: 12px;
  transition: font-size 0.4s ease;
}

.productSwiper .swiper-slide.swiper-slide-active p {
  font-size: 13px;
}

.product-slide-card:hover .w-arrow .icon {
  transform: rotate(45deg);
}

.swiper-button-next.product,
.swiper-button-prev.product {
  top: 57%;
}
.productSwiper .swiper-button-next {
  right: 0;
}
.productSwiper .swiper-button-prev {
  left: 0;
}

.productSwiper.hero-product {
  max-width: 1100px;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 25px;
}

.menu-product-list {
  position: -webkit-sticky; /* Support for Safari */
  position: sticky;
  top: var(--navbar-height, 50px);
  z-index: 99;
}

.menu-product-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 14px 14px;
  color: var(--primary-color);
  background: var(--light-gray-color);
  box-shadow: 0 3px 6px #00000029;
}

.menu-product-list a:hover {
  font-weight: 700;
  color: var(--white-color);
  background: var(--primary-color);
}

#overview, #order-information, #downloads, #faqs {
  scroll-margin-top: var(--header-height);
}

.calculation .form-control {
  background-color: var(--light-gray-color);
}

.swiper-button-prev.product-sub {
  left: -2.5%;
}

.swiper-button-next.product-sub {
  right: -2.5%;
}

.swiper-button-prev.related {
  left: 90px;
}

.swiper-button-next.related {
  right: 90px;
}

.content-detail table thead td,
.content-detail table thead tr td,
.content-detail table thead th {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 8px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  vertical-align: middle;
}

.content-detail table thead td strong {
  color: var(--white-color) !important;
}

.content-detail table td {
  padding: 8px;
  text-align: center;
}
.content-detail table tbody tr:last-child td {
  border-bottom: 1px solid var(--primary-color);
}

.content-detail .table-hover>tbody>tr:hover>* {
  --bs-table-bg-state: var(--secondary-color);
}

/*--------------------------------------------------------------
# Sustainability
--------------------------------------------------------------*/
.sustain-text {
  max-width: 226px;
}

.sustain-text h4 {
  font-size: 16px;
}

.re-bg .icon {
  max-width: 150px;
}
.re-bg .text {
  max-width: 375px;
}

.sustain-bottom {
  max-width: 725px;
}
.sustain-bottom h1, .sustain-bottom h2, .sustain-bottom h3, .sustain-bottom h4, .sustain-bottom h5, .sustain-bottom h6 {
  line-height: 1.5;
}
.text-white .sustain-bottom h3, .text-white .sustain-bottom .h3, .text-white .sustain-bottom h4, .text-white .sustain-bottom .h4 { font-weight: 500; }

/*--------------------------------------------------------------
# Innovation
--------------------------------------------------------------*/


/*--------------------------------------------------------------
# Projects
--------------------------------------------------------------*/
.project-card {
  padding: 20px;
}

.project-card .logo {
  width: auto;
  height: 55px;
}

.project-card .title {
  height: 54px;
}

.logo-project-client {
  width: auto;
  height: 75px;
  border: 1px solid rgba(110, 110, 110, .3);
}

.content-detail h1, .content-detail h2, .content-detail h3, .content-detail h4, .content-detail h5, .content-detail h6, .content-detail p, .content-detail ul, .content-detail ol{
  margin-bottom: 1.9rem;
}

.social-icon.share {
  margin-right: 14px;
}

.menu-list {
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 5px;
  user-select: none;
}

.menu-list.centered {
  justify-content: center;
}

.menu-list::-webkit-scrollbar {
  height: 0;
}

.menu-list a {
  font-size: 14px;
  font-weight: 700;
  padding: 9px 14px;
  margin-right: 14px;
  color: var(--primary-color);
  background: var(--white-color);
  border: 1px solid var(--primary-color);
  pointer-events: auto;
}

.menu-list.really-dragging a {
  pointer-events: none;
  /* disable hover tooltip */
}

.menu-list a:last-child {
  margin-right: 0;
}

.menu-list a:hover,
.menu-list a.active {
  color: var(--white-color);
  background: var(--primary-color);
}

.menu-wrapper .fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 2;
}

.menu-wrapper .fade-left {
  left: 0;
  background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.menu-wrapper .fade-right {
  right: 0;
  background: linear-gradient(to left, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.menu-wrapper .fade.show {
  opacity: 1;
}

/*--------------------------------------------------------------
# FAQS
--------------------------------------------------------------*/
.title-line hr {
  background: var(--gray-color);
  opacity: 1;
}

.accordion-item {
  border: none;
  background-color: var(--light-gray-color);
}

.accordion-button {
  background-color: var(--light-gray-color);
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 500;
  padding: 16px 24px;
}

.accordion-button:not(.collapsed) {
  background-color: var(--light-gray-color);
  color: var(--primary-color);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%231F396D' class='bi bi-plus-lg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2'/%3E%3C/svg%3E");
}
.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%231F396D' class='bi bi-dash-lg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M2 8a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11A.5.5 0 0 1 2 8'/%3E%3C/svg%3E");
}

.accordion-body {
  padding: 0 24px 26px 24px;
}

.accordion-body hr {
  margin-top: 0;
  margin-bottom: 26px;
  background: var(--gray-color);
}

.accordion-body p:last-child {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Download
--------------------------------------------------------------*/
.brochure-card .download-icon {
  width: 40px;
}

.brochure-card .download-icon .cls-1,
.brochure-card .download-icon .cls-2 {
  transition: .3s ease-in-out;
}

.brochure-card:hover .download-icon .cls-1 {
  fill: var(--white-color);
}

.brochure-card:hover .download-icon .cls-2 {
  fill: var(--primary-color);
}

.datasheet-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.datasheet-container .item {
  position: relative;
  padding: 50px;
  text-align: center;
}

/* วาดเส้นตั้ง (Vertical Line) */
.datasheet-container .item::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  border-right: 1px solid var(--gray-color);
  opacity: .5;
}

/* วาดเส้นนอน (Horizontal Line) */
.datasheet-container .item::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid var(--gray-color);
  opacity: .5;
}

/* ลบเส้นตั้งของคอลัมน์ที่ 4 (ตัวสุดท้ายของทุกแถว) */
.datasheet-container .item:nth-child(4n)::after,
.datasheet-container .item:last-child::after {
  display: none;
}

/* ลบเส้นนอนของ 4 ตัวสุดท้าย (แถวสุดท้าย) */
.datasheet-container .item:nth-child(4n+1):nth-last-child(-n+4)::before,
.datasheet-container .item:nth-child(4n+1):nth-last-child(-n+4) ~ .item::before {
  display: none;
}

.datasheet-container .item .icon {
  width: 40px;
}

.datasheet-container.product .item {
  padding: 30px;
}

/*--------------------------------------------------------------
# News & Activities
--------------------------------------------------------------*/
.news-card .title {
  height: 54px;
}

.tag {
  background-color: #D6E0F3;
  color: var(--primary-color);
  padding: 5px;
}

/* Media */
.thumbnail-wrapper {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  transition: all 0.3s ease;
}

#videoModal .modal-content {
  margin-top: 25px;
}

.video-btn-close {
  position: absolute;
  top: -45px;
  right: 0;
  z-index: 1070;
  background: none;
  border: none;
  padding: 0;
  width: 35px;
  height: 35px;
  transition: transform 0.2s ease;
  }

.video-btn-close .cls-1 { fill: var(--white-color); transition: fill 0.3s; }
.video-btn-close .cls-2 { fill: #707070; transition: fill 0.3s; }

/* Hover Effect บรรทัดเดียว */
.video-btn-close:hover .cls-1 { fill: var(--primary-color); }
.video-btn-close:hover .cls-2 { fill: var(--white-color); }

/*--------------------------------------------------------------
# Career
--------------------------------------------------------------*/
.career-box {
  padding: 26px 22px;
  background-color: var(--white-color);
}

.career-box:hover {
  background-color: var(--secondary-color);
}

.career-box .icon {
  width: 24px;
}

.vertical-line {
  width: 1px;
  height: 20px;
  background: var(--black-color);
  margin: 0 10px;
  display: inline-block;
}

.info-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.info-item span:not(:last-child) {
  border-right: 1px solid var(--black-color);
  padding-right: 14px;
  height: 1.5em;
  display: flex;
  align-items: center;
}

.career-detail .icon-address {
  width: 24px;
}

.career-detail .info-item span:not(:last-child) {
  height: 1.2em;
}

.career-detail .content h1, .career-detail .content h2, .career-detail .content h3, .career-detail .content h4, .career-detail .content h5, .career-detail .content h6, .career-detail .content p, .career-detail .content ul, .career-detail .content ol{
  margin-bottom: 2rem;
}

.btn-main.apply {
  padding: 12px 60px;
}
.btn-main.calculate-btn {
  padding: 12px 65px;
}

/*--------------------------------------------------------------
# Contact Us
--------------------------------------------------------------*/
.social-icon {
  width: 30px;
  margin-right: 8px;
  margin-bottom: 8px;
}

.social-icon:last-child {
  margin-right: 0;
}

.contact-title {
  max-width: 345px;
}

.branch-box {
  padding: 45px 0;
  border-bottom: 1px solid #ffffff66;
}

.branch-box.first {
  padding: 30px 0 45px;
}

.branch-box:last-child {
  padding: 45px 0 0;
  border-bottom: none;
}

.branch-box .address {
  max-width: 315px;
}

.branch-box .gap-custom {
  column-gap: 70px;
  row-gap: 10px;
}

.branch-box .contact {
  font-weight: 300;
}

/*--------------------------------------------------------------
# Form
--------------------------------------------------------------*/
.form-control {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 400;
  color: var(--black-color);
  border: 0;
  border-radius: 0;
}

.form-control:focus {
  color: var(--black-color);
  border-color: var(--primary-color);
  box-shadow: 0 1px 0 0 rgba(31, 57, 109, .5);
}

.form-select {
  padding: 8px 36px 8px 12px;
  font-size: 14px;
  font-weight: 400;
  color: var(--black-color);
  border: 0;
  border-radius: 0;
  --bs-form-select-bg-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14.108 8.465'%3E%3Cpath d='M1.428 0L0 1.424l7.054 7.041 7.054-7.041L12.679 0 7.054 5.612Z' fill='%231F396D'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-size: 15px;
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 1px 0 0 rgba(31, 57, 109, .5);
}

.form-select option {
  font-weight: 400;
  color: var(--white-color);
  background-color: var(--primary-color);
}

.form-select option:first-child {
  color: var(--black-color);
}

.form-check-input {
  padding: 0;
  height: initial;
  width: initial;
  margin-bottom: 0;
  display: none;
  cursor: pointer;
}

.form-check-label {
  position: relative;
  cursor: pointer;
}

.form-check-label:before {
  content: '';
  -webkit-appearance: none;
  background-color: var(--white-color);
  border: 1px solid #707070;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0px -15px 10px -12px rgba(0, 0, 0, 0.05);
  padding: 10px;
  display: inline-block;
  position: relative;
  vertical-align: middle;
  cursor: pointer;
  margin-right: 5px;
}

.form-check-input:checked+.form-check-label:after {
  content: '';
  display: block;
  position: absolute;
  top: -3px;
  left: 9px;
  width: 10px;
  height: 22px;
  border: solid var(--primary-color);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

#address-data {
  display: none;
}

.custom-file-upload {
  position: relative;
  display: inline-block;
  cursor: pointer;
  background-color: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 10px 24px;
  -moz-transition: all .3s ease-out;
  -webkit-transition: all .3s ease-out;
  transition: all .3s ease-out;
}

.custom-file-upload:hover,
.custom-file-upload:active {
  background-color: var(--primary-color);
  color: white;
}

/* เมื่อฟอร์มมีการตรวจสอบ (was-validated) และ input file ยังว่าง (invalid) */
.was-validated #resume-upload:invalid+.custom-file-upload {
  border-color: var(--bs-form-invalid-border-color);
}

/* สถานะเมื่อเลือกไฟล์ถูกต้องแล้ว */
.was-validated #resume-upload:valid+.custom-file-upload {
  border-color: var(--bs-form-valid-border-color);
}

.was-validated #resume-upload:valid+.custom-file-upload::after {
  content: ' ✓';
  position: absolute;
  right: -20px;
  color: var(--bs-form-valid-border-color);
}

/*--------------------------------------------------------------
# Google Map
--------------------------------------------------------------*/
.container-iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
}

.container-iframe iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.gy-custom {
  --bs-gutter-y: 2.5rem;
}

/*--------------------------------------------------------------
# Widget
--------------------------------------------------------------*/
.sticky-contact {
  position: fixed;
  bottom: 5%;
  right: 5%;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  z-index: 1500;
}

.sticky-contact .mascot {
  order: 1;
  width: 80px;
  position: relative;
  cursor: pointer;
}

/* สไตล์ปุ่มกด (Get In Touch) */
.sticky-contact .get-in-touch {
  order: 2;
  display: block;
  background-color: var(--white-color);
  color: var(--primary-color);
  padding: 10px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
  box-shadow: 0 3px 6px #00000029;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  position: relative;
}

/* ส่วนของเบอร์โทรศัพท์ที่จะเลื่อนออกมา */
.sticky-contact .phone-number {
  order: 3;
  background-color: var(--primary-color);
  color: white;
  padding: 10px 0px;
  border-radius: 30px 0 0 30px;
  margin-right: -30px;
  width: auto;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.6s ease, opacity 0.4s ease, padding 0.5s ease;
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 12px;
  z-index: 1;
}
.sticky-contact .phone-number .icon {
  width: 14px;
}

.sticky-contact .mascot:hover~.phone-number,
.sticky-contact .get-in-touch:hover~.phone-number,
.sticky-contact .phone-number:hover {
  max-width: 300px;
  opacity: 1;
  padding: 10px 40px 10px 20px;
}

/*--------------------------------------------------------------
# Popup
--------------------------------------------------------------*/
.modal {
  z-index: 3000;
}

.modal-backdrop {
  z-index: 2900;
}

#popup .close {
  background: transparent;
  border: none;
  position: absolute;
  top: -30px;
  right: 0;
  color: var(--white-color);
  padding: 0;
}

#popup .close svg {
  width: 22px;
  height: 22px;
}

/*--------------------------------------------------------------
# CKEDITOR5
--------------------------------------------------------------*/

figure.image {
  margin: 1.5rem auto;
}
figure.image img,
img.image_resized {
  height: auto !important;
}

.image-style-align-left {
  float: left;
  margin-right: 1.5em !important;
}

.image-style-align-right {
  float: right;
  margin-left: 1.5em !important;
}

.image_resized {
  margin-left: auto;
  margin-right: auto;
}

.image-style-block-align-right {
  margin-left: auto;
  margin-right: unset;
}

.image-style-block-align-left {
  margin-right: auto;
  margin-left: unset;
}

.marker-yellow {
  background-color: #b9b924;
  color: #fff;
}

.marker-green {
  background-color: #17c117;
  color: #fff;
}

.marker-pink {
  background-color: #f63666;
  color: #fff;
}

.marker-blue {
  background-color: #2B5597;
  color: #fff;
}

.pen-red {
  color: #e91313;
}

.pen-green,
.pen-red {
  background-color: transparent;
}

.pen-green {
  color: #180;
}

figure.media {
  display: block;
  background: transparent;
  width: auto;
  padding: 10px;
}

blockquote {
  border-left: 5px solid #ccc;
  font-style: italic;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
  padding-left: 1.5em;
  padding-right: 1.5em;
  margin: 0 0 1rem;
}

figure.table {
  width: 100% !important;
  overflow-x: auto;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (min-width: 992px) {
  .gx-lg-custom {
    --bs-gutter-x: 5rem;
  }
  .g-lg-custom {
    --bs-gutter-x: 2rem;
    --bs-gutter-y: 2rem;
  }
  .news-detail-top {
    max-width: 584px;
  }
}

@media (max-width: 1440px) {
  .container-fluid {
    padding-left: 70px;
    padding-right: 70px;
  }
  .swiper-button-prev.related {
    left: 70px;
  }
  .swiper-button-next.related {
    right: 70px;
  }
}

@media (max-width: 1399px) {
  .gap-custom {
    column-gap: 16px;
    row-gap: 16px;
  }
}

@media (max-width: 1199px) {

}

@media (max-width: 991px) {
  h1, .h1 {font-size: 44px;}
  h2, .h2 {font-size: 26px; font-weight: 700;}
  h3, .h3 {font-size: 20px; font-weight: 500;}
  .container-fluid {
    padding-left: 50px;
    padding-right: 50px;
  }
  .swiper-button-prev.related {
    left: 50px;
  }
  .swiper-button-next.related {
    right: 50px;
  }
  .page-detail br {
    display: none;
  }
  .content-detail h1, .content-detail h2, .content-detail h3, .content-detail h4, .content-detail h5, .content-detail h6, .content-detail p, .content-detail ul, .content-detail ol{
    margin-bottom: .8rem;
  }
  .datasheet-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .datasheet-container .item {
    padding: 50px 20px;
  }
  /* --- เคลียร์ค่าเก่าของ Desktop ออก --- */
  .datasheet-container .item::after,
  .datasheet-container .item::before {
    display: block !important; /* บังคับให้เส้นกลับมาก่อน */
  }
  .datasheet-container .item:nth-child(2n)::after,
  .datasheet-container .item:last-child::after {
    display: none !important;
  }
  .datasheet-container .item:nth-child(2n+1):nth-last-child(-n+2)::before,
  .datasheet-container .item:nth-child(2n+1):nth-last-child(-n+2) ~ .item::before {
    display: none !important;
  }
  .quality-policy .item {
    max-width: 100%;
  }
  .productSwiper {
    padding-top: 100px;
  }
  .social-footer {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .container-fluid {
    padding-left: 18px;
    padding-right: 18px;
  }
  .swiper-button-prev.related {
    left: 18px;
  }
  .swiper-button-next.related {
    right: 18px;
  }
  .p-section {padding: 60px 0;}
  .footer .footer-title {
    margin-top: 0;
    margin-bottom: 15px;
  }
}

@media (max-width: 575px) {
  h3 {font-size: 16px;}
  .p-section {
    padding: 50px 0;
  }
  .content-text h1 br, .content-text h2 br, .content-text h3 br, .content-text h4 br, .content-text h5 br, .content-text h6 br, .content-text p br, .content-text ul br{
    display: none;
  }
}

@media (max-width: 480px) {
  h1, .h1 {font-size: 25px;}
  h2, .h2 {font-size: 18px;}
  .datasheet-container .item {
    padding: 40px 20px;
  }
  .product-slide-card{
    padding-top: 65px;
  }
  .product-slide-card .img-main {
    width: 155px;
  }
  .productSwiper .swiper-slide.swiper-slide-active .img-main {
    width: 165px;
  }
}
