@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: "PSL KandaExtra Pro";
  font-weight: normal;
  font-style: normal;
  src: url("../fonts/PSL156pro.ttf");
}

.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;
}

/* 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;
  background: linear-gradient(to bottom, white 0%, rgba(0, 0, 0, 0) 100%);
}

.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;
}

/* Hero banner  */
.hero-section {
  padding-top: 110px;
  background-color: #019444;
  position: relative;
}

.banner-content-description {
  display: flex;
  gap: 4px 28px;
  margin-top: 16px;
}

.hero-row-min-height {
  min-height: 420px;
}

.hero-title {
  font-size: 42px;
  font-family: "PSL Advert Pro", sans-serif;
  color: #ffffff;
  text-shadow: 0px -10px 30px rgba(255, 255, 255, 0.4),
    0px 10px 30px rgba(255, 255, 255, 0.4);
}

.hero-subtitle {
  font-weight: 500;
  color: white;
  filter: drop-shadow(0 6px 2px rgb(0 0 0));
  word-break: keep-all;
}

.hero-img {
  width: auto;
  height: 520px;
  scale: 1.2;
}

.hero-img-effect-text {
  background: url("../images/img-banner-effect-text.png") center/cover no-repeat;
  position: absolute;
  width: 100%;
  height: 100%;
}

.hero-img-effect-left {
  background: url("../images/img-banner-effect-left.png") center/cover no-repeat;
  position: absolute;
  width: 604px;
  height: 611px;
  bottom: -10px;
  left: -20px;
}

.hero-img-effect-right {
  background: url("../images/img-banner-effect-right.png") center/cover
    no-repeat;
  position: absolute;
  width: 605px;
  height: 611px;
  bottom: 0px;
  right: -0px;
}

.hero-description {
  text-align: left;
  color: white;
}

.hero-description-main {
  font-weight: 600;
  font-size: 32px;
  line-height: 33px;
  color: #ffffff;
  text-shadow: 0px 5px 5px #00551a;
  font-family: "BAAC17", sans-serif;
}

.hero-description-sub {
  font-size: 28px;
  font-weight: 500;
  text-shadow: 0px -10px 30px rgba(255, 255, 255, 0.4),
    0px 10px 30px rgba(255, 255, 255, 0.4);
}

.hero-description-sub-number {
  font-family: "PSL Advert Pro", sans-serif;
  font-size: 48px;
  line-height: 28px;
}

.hero-coverage-unitper {
  font-size: 44px;
  line-height: 24px;
  font-family: "BAAC17", sans-serif;
}

h1 {
  color: #05a450;
}

p {
  margin: 0;
}

/*button CSS and icon*/
.btn {
  font-size: 20px !important;
  font-weight: 500 !important;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}

.btn-success {
  background-color: #074e28;
  max-width: 400px;
}

.btn-light-success {
  background-color: #ffffff;
  color: #05a450;
  max-width: 400px;
  transition: background-color 0.3s, color 0.3s;
}

.btn-light-success:hover,
.btn-light-success:target {
  background-color: #05a450;
  color: #ffffff;
}

.btn-light-success:active,
.btn-light-success:focus {
  background-color: #074e28 !important;
  color: #ffffff !important;
}

.btn-green {
  background-color: #05a450;
  color: #ffffff;
}
.btn-green:hover,
.btn-green:target {
  background-color: #ffffff;
  color: #05a450;
}

.text-green-dark {
  color: #014a25;
}

table {
  margin: 1rem 0;
  border-collapse: collapse;
  font-size: 0.9em;
}

th {
  background-color: #1c6339 !important;
  color: #ffcb00 !important;
  vertical-align: middle;
}

th p {
  background: -webkit-linear-gradient(#ffcb00 0%, #f7f7c6 50%, #ffcb00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.table th + th,
.table td + td {
  border-left: 1px solid #add294;
}

.table td,
.table th {
  border-bottom: none;
}

.text-gold {
  background: -webkit-linear-gradient(#ffcb00 0%, #f7f7c6 50%, #ffcb00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ffcb00;
  display: inline-block;
}

tr:nth-child(even) > td {
  background-color: #f2f8ea !important;
}

tr:nth-child(odd) > td {
  background-color: #d9ebc5 !important;
}

td {
  padding: 0px 20px !important;
  color: #1a7244 !important;
  text-align: right;
  white-space: nowrap;
}

tr td:first-child {
  text-align: left;
}

.content-info {
  margin-top: 25px;
  background: url("../images/img-bg.png") top/cover no-repeat;
  position: relative;
  z-index: 0;
  padding-bottom: 100px;
}

.product-description {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #ffffff;
  font-family: "BAAC17", sans-serif;
  text-align: center;
  margin-top: 40px;
  text-shadow: 1px 1px 0 #05a450, -1px 1px 0 #05a450, 1px -1px 0 #05a450,
    -1px -1px 0 #05a450, 0 1px 0 #05a450, 0 -1px 0 #05a450, 1px 0 0 #05a450,
    -1px 0 0 #05a450, 0px 0px 5px #000000;
}

.product-description .product-date {
  font-family: "PSL Advert Pro";
  letter-spacing: 4px;
  text-shadow: 1px 1px 0 #05a450, -1px 1px 0 #05a450, 1px -1px 0 #05a450,
    -1px -1px 0 #05a450, 0 1px 0 #05a450, 0 -1px 0 #05a450, 1px 0 0 #05a450,
    -1px 0 0 #05a450, 0px 2px 30px rgba(255, 255, 255, 0.4),
    0px 10px 20px rgba(255, 255, 255, 0.4);
}

.product-img-effect-text {
  background: url("../images/img-product-effect-text.png") center/cover
    no-repeat;
  position: absolute;
  width: 100%;
  height: 613px;
  top: -130px;
  z-index: -1;
  opacity: 0.8;
}

.additional-condition-info {
  font-size: 32px;
}

.product-info-detail {
  width: 100%;
  justify-content: space-evenly !important;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #014a25;
  border-radius: 50px;
  box-sizing: border-box;
  position: relative;
  gap: 0px;
  border: 3px solid #fcd535;
  border-radius: 50px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.product-info-item {
  width: 100%;
  color: #ffffff;
  padding-left: 40px;
  padding-right: 40px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.product-info-detail .seperator {
  border: 5px solid #c8bba8;
}

.product-info-text {
  font-weight: 500;
  text-align: left;
  line-height: auto;
  color: white;
  paint-order: stroke;
}

.box-header {
  background: #016738;
  padding: 10px 30px;
  text-align: left;
  width: fit-content;
  height: fit-content;
  color: #ffffff;
  text-shadow: 1px 1px 0 #05a450, -1px 1px 0 #05a450, 1px -1px 0 #05a450,
    -1px -1px 0 #05a450, 0 1px 0 #05a450, 0 -1px 0 #05a450, 1px 0 0 #05a450,
    -1px 0 0 #05a450, 0px 0px 10px rgba(255, 255, 255, 0.4);
}

.box-main {
  margin-top: 30px;
  background: #f4f9f2;
  border-radius: 50px;
  border: #ffcb00 2px solid;
  overflow: auto;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  gap: 20px;
  display: flex;
  flex-direction: column;
}

.box-main-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.box-main-item ul {
  padding-left: 50px;
  color: #1a7244;
  margin-bottom: 0;
}

.box-main-item p {
  color: #1a7244;
}

.box-highlight {
  color: #c97637;
}

.box-main table {
  margin: 0;
  overflow-x: auto;
}

.table-responsive {
  padding: 20px;
  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;
}

.product-info-section {
  padding-top: 100px;
  padding-bottom: 70px;
}

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

  .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;
  }

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

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

  .hero-img-effect-text {
    top: -120px;
    left: 102px;
    scale: 1.3;
  }

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

  .product-info-text.hero-description-sub {
    font-size: 38px;
    line-height: 52px;
    font-weight: 400;
  }

  .product-info-text .hero-description-sub-number {
    font-size: 76px;
  }

  .product-info-text .hero-coverage-unitper {
    font-size: 38px;
  }

  .hero-description-sub .hero-coverage-unitper {
    font-size: 72px;
  }

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

  .product-description .product-date {
    font-size: 64px;
    line-height: 60px;
  }
}

@media (min-width: 992px) {
  .hero-img-effect-text {
    top: -40px;
    left: 122px;
    scale: 1.1;
  }

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

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

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

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

  .box-main-item {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

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

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

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

  td {
    font-size: 32px;
  }

  th {
    font-size: 36px;
  }

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

@media (min-width: 1200px) {
  .hero-img-effect-text {
    top: -20px;
    left: -180px;
  }

  .khunphaen-text {
    width: auto;
  }
}

.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;
  }
}
