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

body {
  font-family: "Kanit", sans-serif;
}

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

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

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

li {
  text-align: left;
}

.content-topic {
  font-family: "PSL Advert Pro", sans-serif;
  letter-spacing: 4px;
  font-size: 64px;
  text-align: left;
  color: white;
  paint-order: stroke;
  word-break: keep-all;
  line-height: 1;
  text-shadow:
    /* Stroke หนา 10px ด้วยหลายตำแหน่งรอบ text */ -5px -5px 0 #05a450,
    -5px -4px 0 #05a450, -5px -3px 0 #05a450, -5px -2px 0 #05a450,
    -5px -1px 0 #05a450, -5px 0px 0 #05a450, -5px 1px 0 #05a450,
    -5px 2px 0 #05a450, -5px 3px 0 #05a450, -5px 4px 0 #05a450,
    -5px 5px 0 #05a450, 5px -5px 0 #05a450, 5px -4px 0 #05a450,
    5px -3px 0 #05a450, 5px -2px 0 #05a450, 5px -1px 0 #05a450,
    5px 0px 0 #05a450, 5px 1px 0 #05a450, 5px 2px 0 #05a450, 5px 3px 0 #05a450,
    5px 4px 0 #05a450, 5px 5px 0 #05a450, -4px -5px 0 #05a450,
    -3px -5px 0 #05a450, -2px -5px 0 #05a450, -1px -5px 0 #05a450,
    0px -5px 0 #05a450, 1px -5px 0 #05a450, 2px -5px 0 #05a450,
    3px -5px 0 #05a450, 4px -5px 0 #05a450, -4px 5px 0 #05a450,
    -3px 5px 0 #05a450, -2px 5px 0 #05a450, -1px 5px 0 #05a450,
    0px 5px 0 #05a450, 1px 5px 0 #05a450, 2px 5px 0 #05a450, 3px 5px 0 #05a450,
    4px 5px 0 #05a450, /* Glow */ 0 5px 20px rgba(0, 0, 0, 1),
    0 5px 10px rgba(0, 0, 0, 1), 0 5px 20px rgba(0, 0, 0, 1),
    0 5px 20px rgba(0, 0, 0, 1);
}

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

.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: url("../images/img-banner.png") center/cover no-repeat;
  position: relative;
}

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

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

.hero-title {
  font-size: 42px;
  background: #fff000;
  filter: drop-shadow(0 7px 3px rgb(0 0 0));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "PSL Advert Pro", sans-serif;
  line-height: 50px;
}

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

.hero-img {
  max-width: 606px;
  z-index: 1;
}

.hero-img-effect {
  background: url("../images/img-banner-effect.png") center/cover no-repeat;
  position: absolute;
  width: 100%;
  height: 100%;
  scale: 1.2;
  top: 5px;
  right: -500px;
  opacity: 0.9;
}

.hero-description {
  font-size: 32px;
  letter-spacing: 20px;
  text-align: left;
  color: white;
  paint-order: stroke;
  line-height: 2.2rem;
  text-shadow:
    /* Stroke หนา 10px ด้วยหลายตำแหน่งรอบ text */ -5px -5px 0 #05a450,
    -5px -4px 0 #05a450, -5px -3px 0 #05a450, -5px -2px 0 #05a450,
    -5px -1px 0 #05a450, -5px 0px 0 #05a450, -5px 1px 0 #05a450,
    -5px 2px 0 #05a450, -5px 3px 0 #05a450, -5px 4px 0 #05a450,
    -5px 5px 0 #05a450, 5px -5px 0 #05a450, 5px -4px 0 #05a450,
    5px -3px 0 #05a450, 5px -2px 0 #05a450, 5px -1px 0 #05a450,
    5px 0px 0 #05a450, 5px 1px 0 #05a450, 5px 2px 0 #05a450, 5px 3px 0 #05a450,
    5px 4px 0 #05a450, 5px 5px 0 #05a450, -4px -5px 0 #05a450,
    -3px -5px 0 #05a450, -2px -5px 0 #05a450, -1px -5px 0 #05a450,
    0px -5px 0 #05a450, 1px -5px 0 #05a450, 2px -5px 0 #05a450,
    3px -5px 0 #05a450, 4px -5px 0 #05a450, -4px 5px 0 #05a450,
    -3px 5px 0 #05a450, -2px 5px 0 #05a450, -1px 5px 0 #05a450,
    0px 5px 0 #05a450, 1px 5px 0 #05a450, 2px 5px 0 #05a450, 3px 5px 0 #05a450,
    4px 5px 0 #05a450, /* Glow */ 0 5px 20px rgba(0, 0, 0, 1),
    0 5px 10px rgba(0, 0, 0, 1), 0 5px 20px rgba(0, 0, 0, 1),
    0 5px 20px rgba(0, 0, 0, 1);
}

.hero-description-main {
  letter-spacing: 6px;
}

.hero-description-sub {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 6px;
}

h1 {
  color: #05a450;
}

p {
  margin: 0;
}

/*button CSS and icon*/
.btn {
  font-size: 18px !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;
}

.text-green-dark {
  color: #074e28;
}

.text-blue-dark {
  color: #02003d;
}

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

th {
  background-color: #1c6339 !important;
  color: #ffcb00 !important;
  padding: 0.5em 1em;
  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: 0.5em 1em !important;
  color: #1a7244 !important;
}

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

.additional-condition-info {
  background: url("../images/img-bg-glow-emerald.jpg") top/cover no-repeat;
  text-align: justify;
  position: relative;
  z-index: 0;
}

.additional-condition-info .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 50px;
  padding-bottom: 50px;
}

.additional-condition-info .container > .btn {
  background-color: #05a450;
  border: none;
  min-height: 50px;
  margin: auto;
  padding: 0 30px;
  width: fit-content;
}

.additional-condition-info .container > .btn:hover {
  background-color: rgb(44, 189, 112);
}

.additional-condition-info .card {
  border-radius: 50px;
  border-color: #dddddd;
  padding: 50px 20px 50px 10px;
}

.product-info-detail-wrap {
  background: linear-gradient(to right, red, purple);
  padding: 3px;
}

.product-info-detail {
  margin-top: 40px;
  width: 100%;
  justify-content: space-evenly !important;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, #dadace 0%, #fcfcfc 50%, #f7f5f0 100%);
  border-radius: 50px;
  box-sizing: border-box;
  position: relative;
  gap: 0;
}

.product-info-detail:before {
  border-radius: 55px;
  content: "";
  background-image: linear-gradient(
    to right,
    #e2a92c 0%,
    #b0842e 50%,
    #8d6201 100%
  );
  top: -10px;
  left: -10px;
  bottom: -10px;
  right: -10px;
  position: absolute;
  z-index: -1;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.product-info-item {
  width: 100%;
}

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

.product-info-text,
.product-info-text-sm,
.product-info-text-lg {
  font-weight: 500;
  text-align: left;
  line-height: auto;
  color: white;
  paint-order: stroke;
  text-shadow:
    /* 🟢 Stroke เนียนรอบตัวอักษร (จำลอง -webkit-text-stroke: 7px #367b4e) */ 0
      0 1px #367b4e,
    0 0 2px #367b4e, 0 0 3px #367b4e, 0 0 4px #367b4e, 0 0 5px #367b4e,
    0 0 6px #367b4e, 0 0 7px #367b4e, 0 0 8px #367b4e, 0 0 9px #367b4e,
    0 0 10px #367b4e,
    /* ☁️ เงาฟุ้งใต้ข้อความ */ 0 6px 12px rgba(33, 124, 81, 0.5),
    0 10px 24px rgba(33, 124, 81, 0.3);
}

.box-header {
  background: #1c6339;
  font-size: 20px;
  padding: 4px 20px;
  text-align: left;
}

.box-main {
  margin-top: 30px;
  background: white;
  border-radius: 50px;
  border: #ffcb00 2px solid;
  padding: 30px 10px;
  overflow: auto;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

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

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

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

.box-main .table-responsive {
  padding: 8px 20px;
}

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: 1000;
  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: 752px;
  }

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

  .navbar {
    padding: 20px 10px;
  }

  .navbar-collapse {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 1050;
    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;
  }

  .navbar-collapse.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  body.menu-open {
    overflow: hidden;
  }

  .product-info-section {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }

  .product-info-detail {
    padding: 0 10px;
  }

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

  .product-info-item {
    padding: 12px 0;
  }

  .product-info-text-sm {
    font-size: 24px;
  }

  .product-info-text-lg {
    font-size: 30px;
  }

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

  .emerald-text {
    width: 100%;
  }
}

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

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

@media (min-width: 992px) {
  .hero-section {
    min-height: 560px;
  }

  .product-info-detail {
    padding: 10px 0;
  }

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

  .product-info-item {
    padding: 0 12px;
  }

  .product-info-text-sm {
    font-size: 30px;
  }

  .product-info-text-lg {
    font-size: 40px;
  }

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

@media (min-width: 1200px) {
  .hero-section {
    min-height: 560px;
  }

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

  .emerald-text {
    width: auto;
  }
}

@media (min-width: 1400px) {
  .hero-section {
    min-height: 600px;
  }
}

@supports (-webkit-hyphens: none) and (not (overflow: -webkit-marquee)) {
  .hero-description,
  .content-topic {
    -webkit-text-stroke: 2px #05a450;
    text-shadow:
    /* Stroke หนา 10px ด้วยหลายตำแหน่งรอบ text */ -5px -5px 0 #05a450,
      -5px -4px 0 #05a450, -5px -3px 0 #05a450, -5px -2px 0 #05a450,
      -5px -1px 0 #05a450, -5px 0px 0 #05a450, -5px 1px 0 #05a450,
      -5px 2px 0 #05a450, -5px 3px 0 #05a450, -5px 4px 0 #05a450,
      -5px 5px 0 #05a450, 5px -5px 0 #05a450, 5px -4px 0 #05a450,
      5px -3px 0 #05a450, 5px -2px 0 #05a450, 5px -1px 0 #05a450,
      5px 0px 0 #05a450, 5px 1px 0 #05a450, 5px 2px 0 #05a450, 5px 3px 0 #05a450,
      5px 4px 0 #05a450, 5px 5px 0 #05a450, -4px -5px 0 #05a450,
      -3px -5px 0 #05a450, -2px -5px 0 #05a450, -1px -5px 0 #05a450,
      0px -5px 0 #05a450, 1px -5px 0 #05a450, 2px -5px 0 #05a450,
      3px -5px 0 #05a450, 4px -5px 0 #05a450, -4px 5px 0 #05a450,
      -3px 5px 0 #05a450, -2px 5px 0 #05a450, -1px 5px 0 #05a450,
      0px 5px 0 #05a450, 1px 5px 0 #05a450, 2px 5px 0 #05a450, 3px 5px 0 #05a450,
      4px 5px 0 #05a450, /* Glow */ 0 5px 20px rgba(0, 0, 0, 0.4),
      0 5px 10px rgba(0, 0, 0, 0.4), 0 5px 20px rgba(0, 0, 0, 0.4),
      0 5px 20px rgba(0, 0, 0, 0.4);
  }

  .product-info-text,
  .product-info-text-sm,
  .product-info-text-lg {
    -webkit-text-stroke: 2px #05a450;
    text-shadow:
    /* 🟢 Stroke เนียนรอบตัวอักษร (จำลอง -webkit-text-stroke: 7px #367b4e) */ 0
        0 1px #367b4e,
      0 0 2px #367b4e, 0 0 3px #367b4e, 0 0 4px #367b4e, 0 0 5px #367b4e,
      0 0 6px #367b4e, 0 0 7px #367b4e, 0 0 8px #367b4e, 0 0 9px #367b4e,
      0 0 10px #367b4e,
      /* ☁️ เงาฟุ้งใต้ข้อความ */ 0 6px 12px rgba(33, 124, 81, 0.5),
      0 10px 24px rgba(33, 124, 81, 0.3);
  }
}
