body {
  font-family: "Prompt", sans-serif;
  font-style: normal;
  position: relative;
  min-height: 100vh;
}

/* background + blur + white overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;

  background-image: url("picture/bg-home.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  filter: blur(8px);          /* ระดับความเบลอ */
  transform: scale(1.05);     /* กันขอบขาวจาก blur */
  z-index: -2;
}

/* white overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;

  background: rgba(255, 255, 255, 0.55); /* ปรับความขาวได้ */
  z-index: -1;
}


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

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

/* Firefox */
html {
  scrollbar-width: none;
}

/* IE / Edge เก่า */
body {
  -ms-overflow-style: none;
}

@media (max-width: 992px) {
  .masonry-4 {
    column-count: 3;
  }
}

@media (max-width: 576px) {
  .masonry-4 {
    column-count: 2;
  }
}

.carousel-100 {
  height: 70vh;
  overflow: hidden;
  position: relative;
}

.carousel-100 .carousel-item,
.carousel-100 .carousel-img {
  height: 70vh;
}

.carousel-100 img {
  width: 100%;
  object-fit: cover;
  filter: blur(3px); /* เบลอ + ทำมืดนิดหน่อย */
  transform: scale(1.05); /* กันขอบขาวตอน blur */
}

.carousel-100::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.35); /* ความขาว */
  z-index: 1;
}
/* overlay กลางจอ */
.carousel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  z-index: 2;
}

/* title */
.carousel-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 2px;
  color: #0d663d;
}

/* subtitle */
.carousel-text {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #0d663d;
}

.btn-navbar {
  position: relative;
  background: transparent;
  border: none;
  padding: 6px 10px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
}

/* เส้นใต้ (เริ่มต้นซ่อน) */
.btn-navbar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #198754; /* เขียวหญ้า */
  transition: all 0.3s ease;
  transform: translateX(-50%);
  opacity: 0;
}

/* hover */
.btn-navbar:hover::after {
  width: 100%;
  opacity: 1;
}

/* hover สีตัวอักษร */
.btn-navbar:hover {
  color: #198754;
}

.text-body {
  color: #000;
  font-size: 20px;
}

.body-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.btn-body {
  border-radius: 50px;
  color: #fff;
  background-color: #198754;
}

.img-storage {
  height: auto;
}

.masonry-4 {
  column-count: 8;
  column-gap: 5px;
  width: 100%;
}

.masonry-4 img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 5px 0;
  break-inside: avoid;
}

.masonry-4 img:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}
/* ===== Lightbox popup ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.lightbox.show {
  display: flex;
}

.lightbox-content {
  width: min(70vw, 1100px);
  height: min(70vh, 700px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.content-box {
  max-width: 60vw;
}
.content-box1 {
  max-width: 40vw;
}
.content-box2 {
  max-width: 60vw;
}

.custom-carousel {
  width: 40vh;
  height: 30vw;
  overflow: hidden;
}

.custom-carousel .carousel-inner,
.custom-carousel .carousel-item,
.custom-carousel img {
  width: 100%;
  height: 100%;
}

.custom-carousel img {
  object-fit: cover;
  object-position: center;
  display: block;
}

.text-footer {
  color: #d6dbd9;
}

.btn-footer {
  background: none;
  border: none;
  text-align: left;
}

.btn-footer:hover {
  text-decoration: underline;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.contact-item i {
  font-size: 18px;
  margin-top: 2px;
}

.btn-contact {
  font-size: 18px;
}

.btn-contact:hover {
  transform: scale(1.04);
}

#about {
  scroll-margin-top: 40vh; /* ปรับได้ 30–50vh */
}

#product {
  scroll-margin-top: 40vh; /* ปรับได้ 30–50vh */
}

/* Navbar #2: fixed + glass bg */
.huiteng-nav2 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;

  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  /* เริ่มต้นซ่อนไว้ */
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;

  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ตอนต้องแสดง */
.huiteng-nav2.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-leg {
  width: 40px;
  height: 40px;
  background-color: #e4dddd;
  border-radius: 50%;
  border: 0px solid #000;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  color: #000;
  font-size: 12px;
  font-weight: 600;

  position: relative;
  overflow: hidden;
}

/* ซ่อน ENG ตอนปกติ */
.btn-leg .en {
  display: none;
}

/* hover: ซ่อน TH */
.btn-leg:hover .th {
  display: none;
}

/* hover: แสดง ENG */
.btn-leg:hover .en {
  display: inline;
}

/* เอฟเฟกต์ hover นุ่ม ๆ */
.btn-leg:hover {
  background-color: #000;
  color: #fff;
  transition: all 0.25s ease;
}

/* ===== Navbar ตัวแรก (ทับ carousel ตอนอยู่บนสุด) ===== */
.navbar.bg-body-tertiary {
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;

  background-color : #fff;
}

.huiteng-nav2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;

  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.huiteng-nav2.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.carousel-100 {
  position: relative;
  z-index: 1;
}

.navbar-toggler {
  border: none;
}

.section-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    gap: 15px;              /* ระยะห่างระหว่างข้อความกับเส้น */
}

.section-title::after {
    content: "";
    flex: 1;                /* ให้เส้นยืดไปจนสุดด้านขวา */
    height: 2px;
    background-color: #000; /* ปรับสีได้ */
    opacity:1;           /* ดูนุ่ม ไม่แข็ง */
}

.check-list {
    list-style: none;
    padding-left: 0;
}

.check-list li {
    margin-bottom: 10px;
}

.check-list i {
    color: #198754;
    margin-right: 8px;
}


@media (max-width: 991.98px) {
  .navbar-nav {
    padding-top: 10px;
    gap: 10px !important;
  }
  .masonry-4 {
    column-count: 3;
    column-gap: 5px;
    width: 100%;
  }
  .custom-carousel {
    width: 30vh;
    height: 30vw;
    overflow: hidden;
  }

  .content-box {
    max-width: 75vw;
  }
  .content-box1 {
    max-width: 90vw;
  }
  .content-box2 {
    max-width: 70vw;
  }

  .btn-navbar,
  .btn-leg {
    width: 50%;
    border-radius: 20px;
    background-color: none;
    border: 0px solid #000;
    text-align: left;
  }
}
