@font-face {
  font-family: "PSL Advert Pro";
  font-weight: normal;
  font-style: normal;
  src: url("../fonts/PSL022pro.ttf");
}

@font-face {
  font-family: "BAAC17";
  font-weight: normal;
  font-style: normal;
  src: url("../fonts/BAAC17 Bold ver 1.00.otf");
}
@font-face {
  font-family: "BAAC17-Extra-Bold";
  font-weight: 900;
  font-style: normal;
  src: url("../fonts/BAAC17 Extra Bold ver 1.00.otf");
}

@font-face {
  font-family: "PSL KandaExtra Pro";
  font-weight: normal;
  font-style: normal;
  src: url("../fonts/PSL156pro.ttf");
}

#gold-saving,
#silver-saving,
#conditions {
  scroll-margin-top: 100px;
}
.font-pls-pro {
  font-family: "PSL Advert Pro", sans-serif;
}

.font-baac17 {
  font-family: "BAAC17", sans-serif;
}

body {
  font-family: "PSL KandaExtra Pro", sans-serif;
}

.w-fit {
  width: fit-content;
}

.w-30 {
  width: 30%;
}

.w-40 {
  width: 40%;
}

.w-60 {
  width: 60%;
}

.row {
  margin-right: 0;
  margin-left: 0;
}

.navbar-toggler {
  height: 40px;
  width: 56px;
  background-color: #dddddd;
}

.navbar {
  background: linear-gradient(180deg, #eac56d 0%, rgba(193, 249, 247, 0) 100%);
}
.nav-link-desktop a {
  text-decoration: none;
  font-family: "BAAC17";
  font-style: normal;
  font-size: 24px;
  line-height: 25px;
  text-align: center;
  color: #ffffff;
  text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.5);
}
/* Hamburger menu (replaces previous CTA button) */
.hamburger-menu {
  display: flex;
  flex-direction: column;
  width: 56px;
  height: 56px;
  background: rgba(242, 242, 242, 0.4);
  border-radius: 12px;
  border: none;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hamburger-menu:focus {
  outline: 2px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}

.hamburger-bar {
  display: block;
  width: 26px;
  height: 3px;
  background: #101010;
  border-radius: 2px;
  margin: 3px 0;
}

.hero-cta-placeholder {
  height: 44px; /* preserve space where hero CTA existed */
}

.gap-20px {
  gap: 20px !important;
}

li {
  text-align: left;
}

.content-topic {
  font-family: "BAAC17", sans-serif;
  font-size: 64px;
  text-align: left;
  color: white;
  paint-order: stroke;
  word-break: keep-all;
  line-height: 1;
  text-shadow:
    0px 0px 20px #05a450,
    0px 5px 5px #000000;
}

.navbar {
  padding: 20px 40px;
}

.navbar-menu {
  width: calc(100% - 60px);
}

/* Animated nav with theme color */
.nav-link,
.nav-link-desktop {
  position: relative;
  text-decoration: none;
  font-size: 24px;
}

.nav-link::after,
.nav-link-desktop::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #05a450;
  transition: width 0.3s;
  position: absolute;
  left: 0;
  bottom: 0;
}

.nav-link:hover::after,
.nav-link-desktop:hover::after,
.nav-link:focus::after,
.nav-link-desktop:focus::after {
  width: 100%;
}

.nav-link-desktop a {
  text-decoration: none;
}

a.footer {
  font-size: 18px;
  font-family: "BAAC17", sans-serif;
}

/* default navbar */
.navbar {
  transition: all 0.35s ease;
}

/* sticky state */
.navbar.is-sticky {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999 !important;
  /* background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px); */
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  animation: slideDown 0.45s ease forwards;
  background-image: linear-gradient(rgb(2, 159, 80), rgb(2, 111, 56));
  /* background: linear-gradient(90deg, #f4d86b, #d4a93f); */
}
.navbar.is-sticky .hamburger-bar {
  background: #fff !important;
}
.navbar.is-sticky {
  padding-top: 8px;
  padding-bottom: 8px;
}

.table-responsive {
  font-family: "PSL KandaExtra Pro", sans-serif;
}
.table-responsive .table {
  border-radius: 20px !important;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  margin: 20px 0 !important;
  overflow: hidden;
}

th p.gold {
  background: -webkit-linear-gradient(#ffcb00 0%, #f7f7c6 50%, #ffcb00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
th p {
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: end;
  line-height: normal;
}
th {
  background-color: #1c6339 !important;
  color: #ffcb00 !important;
  vertical-align: middle;
}

td {
  padding: 5px 20px !important;
  color: #1a7244 !important;
  text-align: right;
}
tr td:first-child {
  text-align: left;
}
tr:nth-child(even) > td {
  background-color: #f2f8ea !important;
}

tr:nth-child(odd) > td {
  background-color: #d9ebc5 !important;
}
.table td,
.table th {
  line-height: normal;
  border-bottom: none;
}
tr:nth-child(odd) > td {
  background-color: #d9ebc5 !important;
}

.table td + td {
  border-left: 1px solid #add294;
  vertical-align: middle;
}

.table .border-right {
  border-right: 1px solid #add294;
}

/* เส้นคั่นกลาง */

.gold-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #ebedfa;
  transform: translateX(-50%);
}
@media (max-width: 992px) {
  .gold-container {
    flex-direction: column;
  }

  .gold-container::after {
    display: none;
  }
}
.gold-heading h2 {
  font-family: "BAAC17-Extra-Bold";
  font-style: normal;
  font-size: 48px;
  text-align: center;
  margin-bottom: 10px;
  color: #1a4a16;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
.gold-heading h3 {
  font-family: "BAAC17-Extra-Bold";
  font-style: normal;
  font-size: 60px;
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 10px;
}
.gold-heading h3 .text-first {
  background: linear-gradient(90deg, #dfae51 0%, #dcbd85 50%, #dfae51 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
.gold-heading h3 .text-two {
  background: linear-gradient(
    90.31deg,
    #6a6a6a -1.57%,
    #dadada 12.47%,
    #a2a2a2 34.06%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
.gold-heading h3 span {
  color: #1a7244;
}
.gold-wrapper {
  padding: 80px 0px;
  background-image: url(../images/img-background-body.webp);
  font-family: "BAAC17", sans-serif;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.gold-container {
  display: flex;
  gap: 40px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  position: relative;
}

.gold-column {
  flex: 1;
  text-align: center;
}

.gold-title {
  display: inline-block;
  text-align: center;
  padding: 5px 30px;
  border-radius: 40px;
  margin-bottom: 30px;
  font-weight: normal;
  font-size: 48px;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
.gold-heading {
  margin-bottom: 30px;
}
.extra-bold {
  font-weight: 900 !important;
  font-family: "BAAC17-Extra-Bold";
}
.yellow {
  background: #f4d86b;
  color: #9b8036;
}

.green {
  background: #b7d9b1;
  color: #1a7244;
}

.gold-item {
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.gold-item .label {
  text-align: center;
  width: 40%;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: normal;
}

.gold-yellow .label {
  background: linear-gradient(90deg, #f8df6a 0%, #fdf49a 100%);
  color: #9b8036;
  font-size: 24px;
  font-weight: 900;

}

.gold-green .label {
  background: linear-gradient(90deg, #b4d9a8 0%, #d8ead2 100%);
  color: #1a7244;
  font-size: 24px;
  font-weight: 900;
}

.gold-item .value {
  width: 60%;
  padding: 10px;
  display: flex;
  text-align: center;
  line-height: normal;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  background-color: #fff;
}

.gold-item.highlight .value {
  font-size: 28px;
  font-weight: 700;
}

.big {
  font-size: 36px !important;
  font-weight: bold;
}

.table-heading {
  font-weight: 700px;
  font-size: 36px;
  line-height: normal;
  margin: 50px 0 20px;
}

.other-conditions h4 {
  font-size: 48px;
  text-align: left;
  color: #1c6339;
  margin-bottom: 20px;
}
.other-conditions p,
.other-conditions li {
  font-weight: normal;
  font-size: 32px;
  text-align: left;
  color: #212529;
  line-height: 1.2em;
}

.other-conditions {
  margin-top: 20px;
  position: relative;
  padding: 40px;
  background: rgba(236, 242, 238, 0.6);
  border: 1px solid #dddddd;
  border-radius: 50px;
}

/* QA_1 */

/* Responsive */
@media (max-width: 992px) {
  .gold-container {
    flex-direction: column;
  }
}

/* animation */
@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Mobile */

@media (max-width: 1024px) {
  .table > tbody td,
  .other-conditions p,
  .other-conditions li {
    font-size: 28px;
  }
  .gold-wrapper {
    padding: 50px 0px;
  }
  .gold-heading h2,
  .big,
  .table-heading,
  th p {
    font-size: 30px !important;
  }
  .gold-heading h3,
  .gold-title,
  .other-conditions h4 {
    font-size: 40px;
  }
  .navbar {
    background: linear-gradient(180deg, #c1f9f7 0%, rgba(193, 249, 247, 0) 33%);
  }
  .navbar-menu {
    justify-content: end !important;
    width: 100%;
  }
  ul.navbar-nav {
    display: none;
  }
  .hamburger-menu.d-flex.d-lg-none {
    position: unset !important;
  }
  .navbar > .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-left: 0;
    padding-right: 0;
  }

  .navbar > .container {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .table {
    table-layout: fixed;
    min-width: 900px; /* ป้องกัน table หด */
  }

  /* ช่องแรก 300px */
  .table th:first-child,
  .table td:first-child {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
  }

  /* ช่องอื่นกำหนดกว้างประมาณ 150px */
  .table th:not(:first-child),
  .table td:not(:first-child) {
    width: 50px;
    min-width: 50px;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 767px) {
  .big {
    font-size: 25px !important;
  }
  .gold-heading h2 {
    font-size: 30px !important;
  }
  .gold-item .label,
  .gold-item .value {
    font-size: 20px;
    line-height: normal;
  }
  .table-responsive {
    margin-top: 30px;
  }
  .table-heading {
    margin-bottom: 0;
  }
  /* ช่องอื่นกำหนดกว้างประมาณ 150px */
  .table th:not(:first-child),
  .table td:not(:first-child),
  .table th:first-child,
  .table td:first-child {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
  tr td:first-child {
    white-space: normal;
  }
  .gold-container,
  .other-conditions {
    padding: 20px;
  }
  .other-conditions p,
  .other-conditions li {
    font-size: 20px;
  }
  .table > tbody td {
    font-size: 22px;
  }
  .table-heading,
  th p {
    font-size: 24px !important;
  }
  .gold-heading h3,
  .gold-title,
  .other-conditions h4,
  .gold-heading h2 {
    font-size: 30px !important;
  }
  .m-none {
    display: none !important;
  }
}

h1 {
  color: #05a450;
}

p {
  margin: 0;
}

.table-responsive table {
  background-color: #ffffff;
}

footer {
  background-image: linear-gradient(180deg, #029f50, #026f38);
}

.footer:hover,
.footer:link,
.footer:active,
.footer:visited {
  color: white;
}

#stickyWidget {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 900;
  width: 68px;
  height: 68px;
  border: none;
  border-radius: 50%;
  background: #1a8f3c;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition:
    opacity 0.3s,
    transform 0.3s;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#stickyWidget.hide {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

html {
  scroll-behavior: smooth;
}

.btn-call-mobile {
  text-align: center;
}

/*Media query*/
@media (min-width: 0px) {
  .hero-section {
    min-height: 750px;
  }

  .hero-coverage-amount {
    font-size: 100px;
    line-height: 80px;
  }

  .hero-coverage-unit {
    font-size: 60px;
    line-height: 40px;
  }

  .hero-section .product-img-effect-text {
    z-index: 0;
  }

  .hero-description {
    font-size: 28px;
  }

  .navbar {
    padding: 20px 10px;
  }

  .navbar-collapse {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 1060;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    /* Animation states */
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    transition:
      opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important;
  }

  /* Pin the mobile hamburger to the top-right corner on small screens */
  .hamburger-menu.d-flex.d-lg-none {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1065; /* above sticky widget but below opened sidebar which uses 99999 */
  }

  .navbar-collapse.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 99999 !important; /* ensure it overlays sticky widget and hamburger when open */
  }
  .nav-item-mobile {
    width: 100%;
  }

  /* Ensure the collapsed mobile menu content doesn't touch the very edge of the screen */
  .navbar-collapse .navbar-nav {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  /* Overlay shade that covers the rest of the page when sidebar is open */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1050; /* sit behind the sidebar */
  }
  .nav-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }
  .navbar-collapse .navbar-nav {
    margin-top: 25px;
    /* allow vertical scroll when content exceeds viewport */
    max-height: calc(
      100vh - 100px
    ); /* leave space for close button and some breathing room */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
  }

  /* Desktop: make the navbar-collapse a right sidebar */
  @media (min-width: 992px) {
    .navbar-collapse {
      width: 420px;
      height: 100vh;
      right: 0;
      left: auto;
      transform: translateX(100%);
      border-left: 1px solid rgba(0, 0, 0, 0.06);
      box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
    }
    .navbar-collapse.show {
      transform: translateX(0);
      z-index: 99999 !important; /* ensure sidebar is topmost */
    }
    .navbar-collapse .navbar-nav {
      align-items: flex-start;
      padding: 48px 32px;
    }

    .mobile-only {
      display: none !important;
    }
  }

  body.menu-open {
    overflow: hidden;
  }

  .navbar-collapse .navbar-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px;
    align-items: center;
  }

  .navbar-collapse .btn-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    z-index: 1100;
    opacity: 0.9;
  }

  .navbar-collapse .navbar-nav {
    padding-top: 50px;
  }

  .hamburger-menu {
    /* sit above the sticky widget but under the navbar-collapse when open */
    z-index: 1055;
  }

  .product-info-detail .seperator {
    border-right-width: 0;
    border-left-width: 0;
    border-top-width: 5px;
    border-bottom-width: 0px;
  }

  .content-topic {
    font-size: 36px;
  }

  .khunphaen-text {
    width: 100%;
  }

  .product-description {
    font-size: 30px;
    line-height: 30px;
  }

  .product-description .product-date {
    font-size: 36px;
    line-height: 40px;
  }

  .product-info-detail {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .box-header {
    font-size: 26px;
  }

  .box-main-item {
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .box-main-item ul {
    font-size: 26px;
    line-height: 26px;
  }

  .box-main-item p {
    font-size: 26px;
    line-height: 26px;
  }

  .box-highlight {
    font-size: 26px;
  }

  td {
    font-size: 22px;
  }

  th {
    font-size: 24px;
  }

  .box-main {
    padding: 12px 20px;
  }
}

@media (min-width: 768px) {
  .navbar {
    padding: 20px 40px;
  }
}

@media (min-width: 992px) {
  td {
    font-size: 32px;
  }

  th {
    font-size: 36px;
  }

  .box-main {
    padding: 40px 20px;
  }
}

@media (min-width: 1200px) {
}

.navbar-mobile {
  align-items: flex-start !important;
  padding-left: 10px !important;
  width: 100%;
}
.navbar-mobile .nav-item,
.navbar-mobile .nav-link {
  width: 100%;
  text-align: left !important;
  padding-left: 0.75rem !important; /* small inset on mobile so text doesn't touch edge */
}

#navbarNav .submenu-title-wrapper {
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 700; /* container visual weight */
  font-size: 26px !important; /* slightly smaller than main nav items */
}

#navbarNav .submenu-title {
  width: 100%;
}

#navbarNav .submenu-title-link {
  display: inline-block;
  width: 100%;
  font-weight: 400; /* actual text is normal weight */
  text-decoration: none;
  color: inherit;
}

#navbarNav .submenu-title-link:focus,
#navbarNav .submenu-title-link:hover {
  text-decoration: none; /* prevent underline on hover/focus for title */
}

#navbarNav .submenu,
#navbarNav .submenu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

#navbarNav .submenu a {
  font-weight: 400;
  display: block;
}

@media (min-width: 992px) {
  .navbar-collapse .navbar-nav {
    align-items: flex-start !important;
    padding-left: 32px !important;
  }
  .navbar-collapse .navbar-nav .nav-link {
    text-align: left !important;
  }
}
