html {
  overflow: hidden;
  scroll-behavior: smooth;
}
html,body {
  width: 100%;
  height: 100%;
}
a {
  color: unset;
}
section {
  scroll-margin-top: 80px; /* ปรับให้เว้นระยะจากด้านบน */
}
body {
  color: #FFFFFF;
  line-height: 1.2;
  font-family: Kanit;
  background: linear-gradient(0deg, #203675 0%, #596D9D 100%);
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 20px;
}
a {
  text-decoration: none;
}
*:not(html)[lang] {
  display: none;
}
.langs {
  display: flex;
  gap: 16px;
  align-items: center;
  text-transform: uppercase;
  filter: drop-shadow(0px 2px 4px #000000);
}
.langs > div {
  cursor: pointer;
  position: relative;
  padding: 4px 8px;
}
html[lang="en"] *[lang="en"],
html[lang="th"] *[lang="th"],
html[lang="cn"] *[lang="cn"] {
  display: inline-block;
}
html[lang="en"] .langs > *[name="en"] > span,
html[lang="th"] .langs > *[name="th"] > span,
html[lang="cn"] .langs > *[name="cn"] > span {
  background: linear-gradient(180deg, #EFDC7E 0%, #BA8035 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-weight: 700;
}

.langs > div:not(:first-child)::before {
  content: "";
  position: absolute;
  pointer-events: none;
  left: -12px;
  width: 8px;
  height: 8px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #526A9E 0%, #1E3576 50%, #091F5B 100%);
}
.clickable {
  cursor: pointer;
}
.text-shadow {
  filter: drop-shadow(0px 3px 6px #0017333D);
}
.vertical-degree {
  --bs-deg: 180deg
}
.horizon-degree {
  --bs-deg: 90deg
}
.primary-gradient,
.text-header span[lang],
.section-header span[lang] {
  --background-gradient: linear-gradient(180deg, #FFF1AB 0%, #E69F43 100%);
}
.text-gradient,
.text-header span[lang],
.section-header span[lang] {
  background: var(--background-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
.border-gradient {
  background: var(--background-gradient) padding-box, var(--border-gradient) border-box;
}
.navbar.fixed-top {
  font-size: 20px;
  background: #091F5B;
  box-shadow: 0px 4px 4px 0px #00000040;
}
.navbar.fixed-bottom {
  background: linear-gradient(180deg, rgba(9, 31, 91, 0) 0%, #091F5B 100%);
  height: 68px;
}
.navbar.fixed-bottom .rounded-circle {
  position: absolute;
  top: 10%;
  transform: translateY(-50%);
  animation: x-jello-horizontal 3s infinite both;
  width: 80px;
  box-shadow: 0px 0px 16px 0px #DEE2E6, 0px 4px 4px 0px #FFFFFF inset, 0px -4px 4px 0px #EFDC7E inset;
  border: 2px solid transparent;
  background: linear-gradient(180deg, #EFDC7E 0%, #BA8035 50%, #492719 100%) padding-box, linear-gradient(180deg, #EFDC7E 0%, #BA8035 100%) border-box;
}
.navbar.fixed-bottom .navbar-list {
  display: flex;
  justify-content: space-evenly;
  height: 100%;
}
.navbar.fixed-bottom::before,
.navbar.fixed-bottom::after {
  content: "";
  position: absolute;
  width: calc(50% - 49px);
  height: 100%;
  bottom: 0;
  z-index: 0;
  border-radius: 8px 8px 0px 0px;
  background: linear-gradient(180deg, #526A9E 0%, #1E3576 50%, #091F5B 100%);
  box-shadow: 0px 2px 0px 0px #EFDC7E inset;
}
.navbar.fixed-bottom::before {
  left: 0;
}
.navbar.fixed-bottom::after {
  right: 0;
}
.navbar.fixed-bottom .navbar-list > .navbar-item {
  width: 16%;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 4px;
  z-index: 2;
  --img-size: 2rem;
}
.navbar.fixed-bottom .navbar-list > .navbar-item:after {
  content: "";
  position: absolute;
  top: 15%;
  left: 50%;
  width: calc(var(--img-size) * 0.9);
  height: calc(var(--img-size) * 0.9);
  transform: translateX(-50%);
  background-image: url(./assets/wink-menu.svg);
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center top;
}
.navbar.fixed-bottom .navbar-list > .navbar-item:nth-child(3) {
  --img-size: 3.5rem;
  width: 20%;
  transform: translateY(-50%);
  animation: x-jello-horizontal 3s infinite both;
}
.navbar.fixed-bottom .navbar-list > .navbar-item:nth-child(3):after,
.navbar.fixed-bottom .navbar-list > .navbar-item:nth-child(3) img {
  margin-top: -1.25rem;
}
.navbar.fixed-bottom .navbar-list > .navbar-item img {
  width: var(--img-size);
  height: var(--img-size);
  filter: drop-shadow(8px 8px 8px #000000BF)
}
.navbar.fixed-bottom .navbar-list > .navbar-item span {
  filter: drop-shadow(0px 2px 4px #000000);
  word-break: unset;
  white-space: nowrap;
}
.offcanvas {
  background: #091F5BBF;
  backdrop-filter: blur(8px);
  box-shadow: 0px 0px 8px 0px #EFDC7E inset;
  --bs-offcanvas-width: 280px !important;
}
.offcanvas button {
  font-size: 20px;
}
hr {
  margin: 0;
  opacity: 1;
  height: var(--bs-border-width);
  border-top: unset;
  background: linear-gradient(270deg, rgba(186, 128, 53, 0) 0%, #EFDC7E 50%, rgba(186, 128, 53, 0) 100%);
}
.nav-link.active {
  font-weight: 700;
}
.nav-link {
  padding: 14px 12px;
  position: relative;
  border-radius: 16px;
  border: 1px solid transparent;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.nav-link .icon-next {
  display: none;
}
.nav-link.active .icon-next,
.nav-link:hover .icon-next {
  display: flex;
  margin-left: auto;
  font-size: 24px;
  font-weight: 700;
}
.nav-link.active {
  pointer-events: none;
  color: #492719 !important;
  border: 1px solid transparent;
  background: linear-gradient(180deg, #FFF1AB 0%, #E69F43 100%) padding-box, linear-gradient(180deg, #EFDC7E 0%, #BA8035 100%) border-box;
}
.nav-link:hover {
  box-shadow: 0px 4px 8px 0px #EFDC7E inset;
  border: 1px solid transparent;
  --bs-border-radius: 16px;
  --bs-border-width: 1px;
  border-radius: var(--bs-border-radius); 
}
.nav-link:hover::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 241, 171, 0.25) 0%, rgba(230, 159, 67, 0.25) 100%);
  border-radius: var(--bs-border-radius);
}
.nav-link:hover::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0px;
  border-radius: var(--bs-border-radius);
  border-width: var(--bs-border-width);
  border-style: solid;
  border-color: transparent;
  background: linear-gradient(180deg, #EFDC7E 0%, #BA8035 100%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}
.btn {
  border-radius: 99999rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 700;
}
.btn span[class^=icon-] {
  font-size: 24px;
}
.btn-primary {
  color: #492719;
  --bs-btn-hover-color: #492719;
  box-shadow: 2px 2px 8px 0px #FFFFFF inset, 0px 0px 8px 0px #EFDC7E;
  background: linear-gradient(180deg, #FFF1AB 0%, #E69F43 100%);
  border: unset !important;
}
.btn-secondary {
  border: 1px solid transparent !important;
  background: linear-gradient(#091F5B, #091F5B) padding-box, linear-gradient(180deg, #FFF1AB 0%, #E69F43 100%) border-box;
  box-shadow: 2px 2px 4px 0px #EFDC7E inset;
}
.nav-link:not(.active) span,
.btn-secondary span {
  background: linear-gradient(180deg, #FFF1AB 0%, #E69F43 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
.text-header {
  text-align: center;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  font-size: 24px;
}
.section-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  margin: 8px 0;
}
.section-header span[lang] {
  min-width: 100px;
}
.section-header::before,
.section-header::after {
  content: "";
  height: 4px;
  flex: 1;
  background: linear-gradient(270deg, #E69F43 0%, #FFF1AB 30%, rgba(255, 241, 171, 0.5) 70%, rgba(230, 159, 67, 0) 100%);
}
.section-header::after {
  transform: scaleX(-1);
}
.bg-border-gradient {
  border: 1px solid transparent;
  box-shadow: 0px 4px 8px 0px #EFDC7E inset;
  background: linear-gradient(180deg, #526A9E 0%, #1E3576 50%, #091F5B 100%) padding-box, linear-gradient(180deg, #EFDC7E 0%, #BA8035 100%) border-box;
}
section {
  padding: 24px 0px;
  font-size: 20px;
}
section#promotion,
section#service,
section#partner,
section#footer {
  background: #091F5B;
  margin-top: 50px;
  margin-bottom: 50px;
  position: relative;
}
section#promotion::after,
section#service::before,
section#service::after,
section#partner::before,
section#partner::after,
section#footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 50px;
  background-image: 
    url(./assets/wink.png),
    url(./assets/wave-line.png);
  background-size: 
    auto 100%,
    100% 100%;
  background-position: 
    25%,
    center;
  background-repeat: 
    no-repeat,
    no-repeat;
}
section#promotion::before,
section#footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 50px;
  background: #091F5B;
}
section#promotion::before,
section#service::before,
section#partner::before,
section#footer::before {
  bottom: 100%;
  transform: scale(-1, -1);
}
section#promotion::after,
section#service::after,
section#partner::after,
section#footer::after {
  top: 100%;
}
.promotion-banner img {
  border-radius: 16px;
}
.promotion-banner .ratio::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: 0px 0px 8px 0px #FFF1AB, 0px 4px 8px 0px #EFDC7E inset;
}
.service-menu-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.service-menu-item {
  width: 5.625em;
  height: 5.625em;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  filter: drop-shadow(0px 4px 4px #00000080);
}
.service-menu-item::before {
  content: "";
  position: absolute;
  width: 5em;
  height: 5em;
  left: 50%;
  top: 0;
  transform: translate(-50%, 0);
  border-radius: 50%;
  box-shadow: 0px 4px 8px 0px #EFDC7E inset;
  background: linear-gradient(180deg, #526A9E 0%, #1E3576 50%, #091F5B 100%) padding-box, linear-gradient(180deg, #EFDC7E 0%, #BA8035 100%) border-box;
}
.service-menu-item > img {
  position: absolute;
  width: 5em;
  height: auto;
  left: 50%;
  top: 0;
  transform: translate(-50%, 0);
  transition: all 0.8s;
}
.service-menu-item > img:hover {
  transform: translate(-50%, 0) scale(1.3);
  transform-origin: center;
}
.service-menu-item > div {
  position: relative;
  box-shadow: 2px 2px 4px 0px #EFDC7E inset;
  border: 1px solid transparent;
  background: linear-gradient(#091F5B, #091F5B) padding-box, linear-gradient(180deg, #EFDC7E 0%, #BA8035 100%) border-box;
  width: 5em;
  height: 2.25em;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1em;
  line-height: 0.8;
}
.service-item-title span,
.service-menu-item span {
  background: linear-gradient(180deg, #FFF1AB 0%, #E69F43 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
.service-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0px 0px 4px 0px #EFDC7E;
  border: 1px solid transparent;
  background: linear-gradient(#091F5B, #091F5B) padding-box, linear-gradient(180deg, #EFDC7E 0%, #BA8035 100%) border-box;
}
.service-item::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  border: 1px solid transparent;
  box-shadow: 0px 2px 8px 0px #EFDC7E inset;
  pointer-events: none;
}
.service-item-title {
  padding: 8px 0px;
  filter: drop-shadow(0px 2px 4px #000000);
  text-align: center;
}
.service-item-image {
  position: relative;
  border-top: 1px solid transparent;
  background: linear-gradient(#091F5B, #091F5B) padding-box, linear-gradient(270deg, #BA8035 0%, #EFDC7E 50%, #BA8035 100%) border-box;
}
.service-item-image img:first-child {
  width: 100%;
}
.service-item-image img:last-child {
  box-shadow: 0px 0px 24px 0px #EFDC7E, 0px 0px 24px 0px #EFDC7E;
  border-radius: 50%;
}
.service-item-image::before,
.service-item-image img:last-child {
  position: absolute;
  height: 75%;
  width: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}
.service-item-image::before {
  content: "";
  height: 100%;
  width: 100%;
  background: url(./assets/gold-bubble.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
  mix-blend-mode: hard-light;
}
.toggle-service {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 12px;
}
.toggle-service > div {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0px 1px 4px 0px #FFF1AB inset;
  background: #FFFFFF40;
  cursor: pointer;
}
.toggle-service > div.active {
  background: linear-gradient(180deg, #FFF1AB 0%, #E69F43 100%);
  box-shadow: 0px 1px 4px 0px #FFFFFF80 inset;
}
@media (max-width: 425px) {
  .navbar > .container-xxl > div:not(.offcanvas) button span:not([lang]) {
    display: none;
  }
  .navbar > .container-xxl > div:not(.offcanvas) button {
    font-size: 12px;
    padding: 6px 6px;
  }
}

@media (max-width: 625px) {
  .service-menu-list {
    font-size: 16px;
  }
}
@media (max-width: 400px) {
  .service-menu-list {
    font-size: 12px;
  }
  section {
    font-size: 16px;
  }
  .text-header span[lang] {
    font-size: 20px;
  }
}
@media (max-width: 768px) {
  .service-scroll-wrapper {
    position: relative;
    overflow: hidden;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
  }
  .service-scroll-wrapper::-webkit-scrollbar { 
    display: none;  /* Safari and Chrome */
  }
  
  .service-scroll-container {
    width: 200%;
    display: flex;
    gap: 0.5rem;
    transition: transform 0.4s ease-in-out;
  }
  
  .service-list {
    scroll-snap-align: start;
  }
}
@keyframes x-jello-horizontal {
  0% {
    -webkit-transform: translateY(-50%) scaleX(1);
    transform: translateY(-50%) scaleX(1);
  }
  5% {
    -webkit-transform: translateY(-50%) scale3d(1.25, .75, 1);
    transform: translateY(-50%) scale3d(1.25, .75, 1);
  }
  7.5% {
    -webkit-transform: translateY(-50%) scale3d(.75, 1.25, 1);
    transform: translateY(-50%) scale3d(.75, 1.25, 1);
  }
  10% {
    -webkit-transform: translateY(-50%) scale3d(1.15, .85, 1);
    transform: translateY(-50%) scale3d(1.15, .85, 1);
  }
  15% {
    -webkit-transform: translateY(-50%) scale3d(.95, 1.05, 1);
    transform: translateY(-50%) scale3d(.95, 1.05, 1);
  }
  20% {
    -webkit-transform: translateY(-50%) scale3d(1.05, .95, 1);
    transform: translateY(-50%) scale3d(1.05, .95, 1);
  }
}