.wp-block-heading {
  font-size: 59px !important;
}

@media (max-width: 768px) {
  .wp-block-heading {
    font-size: 52px !important;
  }
}
.line-icon {
  background-image: url('https://yoojin-tech.com/wp-content/uploads/2025/04/LINE-PNG.png');
  background-size: 55%; /* ปรับขนาดไอคอนให้พอดี */
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-icon {
  background-image: url('https://yoojin-tech.com/wp-content/uploads/2025/04/Shop2-png.png');
  background-size: 40%; /* ปรับขนาดไอคอนให้พอดี */
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.line-icon svg,
.shop-icon svg {
  opacity: 0.3;
  filter: blur(1px);
}
.brand-logos img {
  max-width: 100%;
  height: auto;
}

/* สำหรับหน้าจอขนาดเล็ก (มือถือ) */
@media (max-width: 768px) {
  .brand-logos img {
    max-width: 80px;
    margin: 10px;
  }

  .brand-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
}
.machine-box {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.machine-box:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* ลบเส้นใต้ลิงก์ตอนปกติ */
.machine-box a.overlay-text {
  text-decoration: none !important;
  transition: all 0.3s ease;
  opacity: 1;
}

/* แสดงเส้นใต้เมื่อ hover */
.machine-box:hover a.overlay-text {
  text-decoration: underline !important;
}
.wp-block-site-logo {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.wp-block-navigation .wp-block-navigation-item a {
  color: white !important;
}
/* ทำให้ header โปร่งใส */
.custom-header {
  background-color: transparent !important;
  transition: background-color 0.3s ease;
}

/* เมื่อเอาเมาส์ชี้ ให้กลับมาเป็นสี */
.custom-header:hover {
  background-color: #1d518a !important;
}
.hero-fullscreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
}
.image-hover-effect {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.image-hover-effect:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.image-hover-effect {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.sourcing-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 16px;
  padding: 20px;
  background: white;
}

.sourcing-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}
.mobile-overlay-menu .wp-block-navigation__responsive-container a {
  color: black !important;
}
/* ซ่อนเมนู .show-desktop บนมือถือ */
@media (max-width: 768px) {
  .header-menu {
    display: none !important;
  }
}

/* ซ่อนเมนู .show-mobile บนคอมพิวเตอร์ */
@media (min-width: 769px) {
  .mobile-overlay-menu {
    display: none !important;
  }
}
/* ปรับสไตล์กล่องภาษาบน header ให้ไม่มีกรอบ */
.trp-language-switcher-container select {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: white !important;
  font-size: 16px !important;
  padding: 0 10px !important;
  appearance: none !important;
}

/* ลบกล่องพื้นหลังรอบนอก dropdown */
.trp-language-switcher-container {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* ลบลูกศร dropdown (ถ้าธีมมีลูกศรแยก) */
.trp-language-switcher-container select::-ms-expand {
  display: none;
}
.trp-language-switcher-container select::-webkit-inner-spin-button,
.trp-language-switcher-container select::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* ทำให้ Language Switcher ขยับไปขวาสุดอย่างแน่นอน */
.trp-language-switcher, .trp-language-switcher-container {
  position: absolute !important;
  top: 15px !important;
  right: 30px !important;
  z-index: 9999;
}

/* กำจัดกรอบ/พื้นหลัง */
.trp-language-switcher * {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
@media screen and (max-width: 768px) {
  .trp-language-switcher-container {
    position: absolute !important;
    top: 10px !important;
    right: -90px !important;
    z-index: 9999 !important;
  }
}
/* เส้นขีดเริ่มต้น: ซ่อนไว้ก่อน */
.wp-block-navigation__container .wp-block-navigation-item a::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-top: 5px;
}

/* ขีดของเมนูปัจจุบัน (แสดงแบบค่อยๆ เข้ามา) */
.wp-block-navigation-item.current-menu-item a::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ขีดของเมนูที่ hover */
.wp-block-navigation__container .wp-block-navigation-item a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ซ่อนขีดของ current-menu-item เมื่อมี hover ที่เมนูอื่น */
.wp-block-navigation__container:hover .wp-block-navigation-item:not(:hover).current-menu-item a::after {
  opacity: 0;
  transform: scaleX(0);
}
.wp-block-slideshow img {
  height: 320px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
/* ลบเส้นใต้ปกติ */
.wp-block-group p a {
  text-decoration: none;
  border-bottom: none;
  transition: border-bottom 0.2s ease;
}

/* แสดงเส้นใต้ตอน hover */
.wp-block-group p a:hover {
  border-bottom: 1px solid white; /* ปรับสีตามธีม */
}
.automation-title {
  text-align: left;
  margin-left: 0;
  max-width: 100%;
  padding-left: 0px; /* ปรับระยะชิดซ้ายตามที่ต้องการ */
}
.Product-title {
  text-align: left;
  margin-left: 0;
  max-width: 100%;
  padding-left: 0px; /* ปรับระยะชิดซ้ายตามที่ต้องการ */
}
.wp-block-button.is-style-fill > .wp-block-button__link {
  background-color: #000 !important;
  color: #fff !important;
  padding: 14px 30px !important;
  font-weight: bold !important;
  border-radius: 40px !important;
  font-size: 14px !important;
  display: inline-block;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
  min-width: auto;
  height: 60px;
  line-height: 30px;
}

.wp-block-button.is-style-fill > .wp-block-button__link:hover {
  background-color: #222 !important;
}