@font-face {
  font-family: "Krungsri Condensed";
  src: url("../fonts/krungsri-condensed/krungsri_con-webfont.woff")
    format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Krungsri Condensed";
  src: url("../fonts/krungsri-condensed/krungsri_con_med-webfont.woff")
    format("woff");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Krungsri Condensed";
  src: url("../fonts/krungsri-condensed/krungsri_con_bol-webfont.woff")
    format("woff");
  font-weight: 700;
  font-display: swap;
}
:root {
  --primary-color: #ffd400;
  --yellow-700: #997f00;
  --gray-100: #757575;
  --gray-200: #616161;
  --gray-300: #2c2626;
  --gray-400: #424242;
  --body-color: #1a1a1a;
  --background-base-default: #f7f7f7;
  --content-high-color: #292828;
  --neutral-075-color: #e8e8e8;
  --yellow-050-color: #fffbe5;
  --border-primary-pressed: #ffe566;
  --foreground-primary-default: #ffffff;
  --border-primary-default: #e0e0e0;

  --font-xl: 24px;
  --font-lg: 20px;
  --font-md: 16px;
  --font-sm: 14px;
  --font-xs: 12px;

  --line-height-xl: 32px;
  --line-height-lg: 28px;
  --line-height-md: 24px;
  --line-height-sm: 20px;
  --line-height-xs: 14px;

  --krungsri-400: "Krungsri Condensed";
  --krungsri-500: "Krungsri Condensed";
  --krungsri-700: "Krungsri Condensed";

  --header-height: 48px;
  --footer-height: 100px;
  --footer-height-big-screen: 112px;

  --shadow-md: 5px 5px 20px 0 rgba(0, 0, 0, 0.15);
  --shadow-sm: 0 8px 16px 0 rgba(215, 217, 220, 0.4);
}
html {
  background-color: #f5f5f5;
  scroll-behavior: smooth;
}
section {
  scroll-margin-top: 40px;
}
body {
  font-family: var(--krungsri-400);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  margin: 0 auto;
  color: var(--body-color);
  background-color: #fff;
  max-width: 799px;
  background-image: url(../images-v2/background.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top var(--header-height) center;
  @media (max-width: 767px) {
    background-size: auto;
  }
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}

* {
  font-family: var(--krungsri-400);
  font-weight: 400;
}

button,
.btn {
  &:focus {
    box-shadow: unset;
  }
}

h1 {
  font-weight: 700;
}

img {
  max-width: 100%;
  height: auto;
}

main {
  max-width: 799px;
  margin: 0 auto;
  padding-top: var(--header-height);
  overflow: hidden;
}

.container-custom {
  max-width: 704px;
  width: 100%;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

@keyframes slideDown {
  0% {
    transform: translateY(-103%);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes slideUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-103%);
  }
}

.navbar.slide-down {
  animation: slideDown 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.navbar.slide-up {
  animation: slideUp 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

nav.navbar-anima {
  z-index: 1040 !important;
  transform: translateY(-103%);
}

nav.navbar {
  height: 64px;
  margin: 0 auto;
  padding: 16px 32px;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  background: #fff;
  box-shadow: 0 4px 8px #0003;
  .navbar-brand {
    font-size: var(--font-sm);
    font-family: var(--krungsri-700);
    font-weight: 700;
    color: var(--content-high-color);
    margin-right: 0;
    padding: 0;
    line-height: 20px;
    cursor: pointer;
  }
  .logo {
    height: 32px;
    width: 32px;
  }
  @media (max-width: 767px) {
    padding: 16px 16px 24px;
  }
  @media (max-width: 767px) {
    .collapse {
      display: none !important;
    }
    .collapse.show {
      display: block !important;
    }
  }
  .collapsing {
    -webkit-transition: none;
    transition: none;
    display: none;
  }
  .navbar-collapse {
    flex-grow: 0;
    .navbar-nav {
      display: flex;
      align-items: center;
      column-gap: 8px;
      height: fit-content;
      .nav-item {
        cursor: pointer;
        &:hover,
        :active {
          background-color: #ffee99;
          border-radius: 8px;
        }
      }
      .nav-link,
      .nav-link-anima {
        height: 32px;
        line-height: 20px;
        @media (max-width: 767px) {
          height: auto;
        }
      }
      @media (max-width: 767px) {
        padding-top: 32px;
        row-gap: 8px;
        align-items: flex-start;
      }
      .expand-container {
        display: flex;
        @media (max-width: 767px) {
          justify-content: space-between;
        }
        img.expand {
          height: 20px;
          width: 20px;
          align-self: center;
          margin-right: 6px;
          border: solid 1px;
          border-radius: 6px;
          border-color: #e0e0e0;
          background-color: white;
          @media (max-width: 767px) {
            height: 24px;
            width: 24px;
            margin-right: 8px;
          }
        }
        img.expand:hover {
          border-color: #ffffff;
        }
      }
      .expand-container:hover {
        img.expand {
          border-color: #ffffff;
        }
      }

      li {
        @media (max-width: 767px) {
          width: 100%;
          &:nth-child(5) {
            a.active {
              border-bottom: unset;
            }
          }
        }
        &:nth-child(5) {
          a {
            @media (max-width: 767px) {
              border-bottom: none;
            }
          }
        }

        a,
        p {
          font-family: var(--krungsri-500);
          font-weight: 500;
          font-size: var(--font-sm);
          padding: 6px;
          transition: all 0.3s ease;
          color: var(--content-high-color);
          border-radius: 8px;
          @media (max-width: 767px) {
            padding: 12px 8px;
          }
          &.active {
            font-family: var(--krungsri-700);
            font-weight: 700;
            color: var(--yellow-700);
            &.disable-active {
              font-family: var(--krungsri-500);
              font-weight: 500;
              color: var(--content-high-color);
            }
          }
        }
      }
    }
  }
  .modal-submenu-hover-container {
    display: block;
    position: absolute;
    top: 48px;
    right: 347px;
    height: 86px; /* Adjust whenever a new submenu is added. */
    border-radius: 16px;
    @media (max-width: 767px) {
      display: contents;
      position: relative;
      inset: 0;
      height: 100%;
      width: 100%;
    }
  }
  .modal-submenu-container {
    display: none;
    position: relative;
    background-color: white;
    padding: 10px;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  .modal-submenu-container.active {
    display: flex;
    flex-direction: column;
    width: 184px;
    height: fit-content;
    top: 24px;
    border-radius: 16px;
    padding: 8px;
    @media (max-width: 767px) {
      position: relative;
      padding: 0;
      top: 0;
      left: 0;
      border: unset;
      box-shadow: none;
      width: 100%;
    }
  }
  .submenu {
    padding: 12px;
    color: #1a1a1a;
    border-radius: 8px;
    @media (max-width: 767px) {
      padding-left: 32px;
    }
    &:hover,
    :active {
      background-color: #ffee99;
      cursor: pointer;
    }
    & p {
      font-family: var(--krungsri-500);
      font-weight: 500;
      font-size: var(--font-sm);
      line-height: 20px;
    }
    &.in-active {
      color: #c2c1c1;
      cursor: default !important;
    }
  }
  .hidden {
    display: none;
  }

  .navbar-toggler {
    border: none;
    outline: none;
    box-shadow: none;
    padding: 0;
    img {
      max-width: 32px;
      max-height: 32px;
    }
    @media (max-width: 767px) {
      display: block;
    }
  }
  .btn-download-goapp-container {
    display: none;
    @media (max-width: 767px) {
      display: flex;
      align-items: center;
      column-gap: 8px;
    }
  }

  #btn-download-desktop {
    @media (max-width: 767px) {
      display: none;
    }
  }
  button.btn-download {
    font-size: var(--font-sm);
    font-family: var(--krungsri-700);
    font-weight: 700;
    height: 32px;
    background-color: var(--primary-color);
    border-radius: 8px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    color: var(--content-high-color);
    line-height: 20px;
  }
  button.btn-download-hover {
    background-color: #ffe566;
  }
  button.btn-download:active {
    background-color: #ffe566;
  }
}
.navbar.navbar-expand-md.ks-show {
  @media (max-width: 767px) {
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    height: fit-content;
  }
}
.overlay {
  display: none;
  @media (max-width: 767px) {
    &.show {
      display: block;
      position: fixed;
      background-color: rgba(61, 59, 59, 0.4);
      z-index: 1000;
      inset: 0;
      width: 100%;
      height: 100%;
    }
  }
}
.no-scroll {
  @media (max-width: 767px) {
    overflow: hidden;
  }
}

.section-banner {
  .card-banner {
    box-shadow: var(--shadow-md);
    border-radius: 16px;
    padding: 32px 8px;
    text-align: center;
    background-color: #fff;
    position: relative;
    margin-top: -180px;
    z-index: 2;
    @media (max-width: 767px) {
      margin-top: -160px;
    }
    h1 {
      font-size: var(--font-xl);
      line-height: 36px;
      font-family: var(--krungsri-700);
      font-weight: 700;
      margin: 0 auto 16px;
      @media (max-width: 767px) {
        max-width: 270px;
      }
      @media (max-width: 376px) {
        margin-top: 20px;
      }
    }
    p {
      font-size: var(--font-md);
      color: var(--gray-200);
    }
  }
  .image-banner {
    position: relative;
    max-width: 485px;
    margin: 0 auto;
    padding-top: 50px;
    transition: all 0.3s ease;
    .image-car {
      position: absolute;
      display: flex;
      top: 50%;
      right: 4px;
      transform: translate(0, -28%);
      z-index: 3;
      transition: all 0.3s ease;
      @media (max-width: 767px) {
        right: 16%;
        transform: translate(0, -10%);
      }
      @media (max-width: 480px) {
        height: 130px;
        right: 11%;
        transform: translate(0, -10%);
      }
    }
  }
  .image-banner-desktop {
    display: block;
    transition: all 0.3s ease;
    @media (max-width: 767px) {
      display: none;
    }
  }
  .image-banner-mobile {
    display: none;
    transition: all 0.3s ease;
    @media (max-width: 767px) {
      display: block;
      margin: 0 auto;
    }
  }
}

.section-slider {
  padding-top: 50px;
  @media (max-width: 767px) {
    margin-bottom: 80px;
  }
  .nav-tabs {
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    @media (max-width: 767px) {
      gap: 8px;
      padding: 0 24px;
      flex-wrap: unset;
    }
    .nav-link,
    .nav-link-anima {
      border: none;
      max-width: 191px;
      width: 100%;
      height: 60px;
      border-radius: 16px;
      box-shadow: var(--shadow-sm);
      padding: 0.5rem;
      &.active {
        background-color: var(--primary-color);
        font-family: var(--krungsri-500);
        font-weight: 500;
      }
      h2 {
        font-size: var(--font-xs);
        color: var(--content-high-color);
        font-family: var(--krungsri-500);
        font-weight: 500;
      }
    }
  }
}

.multiple-items {
  &.slick-slider {
    transition: transform 0.3s ease;
    outline: none;
    padding-right: 160px;
    box-sizing: border-box;
    @media (max-width: 767px) {
      padding-right: 0;
    }
  }
  .slick-list {
    padding-left: 42px !important;
    overflow: visible !important;
  }
  .slick-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    bottom: -10px;
    @media (max-width: 767px) {
      bottom: -32px;
    }
    li {
      margin: 0;
      width: inherit;
      width: 8px;
      height: 8px;
      button {
        padding: 0;
        width: inherit;
        min-width: 8px;
        &::before {
          content: "";
          width: 8px;
          height: 8px;
          background-color: #e0e0e0;
          opacity: 1;
          border-radius: 50%;
        }
      }
      &.slick-active {
        width: 24px;
        button::before {
          width: 24px;
          background-color: var(--primary-color);
          border-radius: 8px;
        }
      }
    }
  }
  .item-slide-product {
    text-align: center;
    padding: 0 25px;
    h3 {
      font-size: var(--font-lg);
      font-family: var(--krungsri-700);
      font-weight: 700;
      line-height: 28px;
      max-width: 235px;
      margin: 0 auto 16px;
    }
    p {
      font-size: var(--font-md);
      color: var(--gray-200);
      max-width: 235px;
      margin: 0 auto;
    }
    .image-slide {
      height: 400px;
      margin-bottom: 16px;
      img {
        max-height: 100%;
        height: 100%;
        display: block;
        margin: auto;
      }
    }
    &.slick-slide {
      height: auto;
    }
  }
}

.slider-howto {
  .slick-track {
    width: 2500px !important;
  }
  padding-top: 56px;
  h2 {
    font-size: var(--font-lg);
    font-family: var(--krungsri-700);
    font-weight: 700;
    line-height: 32px;
    text-align: center;
  }
  p {
    font-size: var(--font-sm);
    text-align: center;
    margin-bottom: 50px;
  }
  .multiple-items {
    &.slick-slider {
      padding-right: 200px;
      @media (max-width: 767px) {
        padding-right: 0;
      }
    }
    .item-slide-product {
      .image-slide {
        height: 298px;
      }
    }
  }
  .slick-slide {
    width: 310px !important;
  }
  .num-howto {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 8px;
    h3 {
      margin-bottom: 0;
    }
    span {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 40px;
      font-size: var(--font-lg);
      background-color: #e0e0e0;
      border-radius: 50%;
      font-family: var(--krungsri-700);
      font-weight: 700;
      transition: all 0.3s ease;
      max-width: 40px;
    }
    .text-start p {
      text-align: left;
    }
  }
}

.slider-product {
  .slick-track {
    width: 2500px !important;
  }
  padding-top: 56px;
  h2 {
    font-size: var(--font-lg);
    font-family: var(--krungsri-700);
    font-weight: 700;
    line-height: 32px;
    text-align: center;
  }
  p {
    font-size: var(--font-sm);
    text-align: center;
    margin-bottom: 50px;
  }
  .multiple-items {
    &.slick-slider {
      padding-right: 200px;
      @media (max-width: 767px) {
        padding-right: 0;
      }
    }
    .item-slide-product {
      .image-slide {
        height: 400px;
        margin-bottom: 16px;
        img {
          max-height: 100%;
          height: 100%;
          display: block;
          margin: auto;
        }
      }
    }
  }
  .slick-slide {
    width: 310px !important;
  }
  .num-howto {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 8px;
    h3 {
      margin-bottom: 0;
    }
    span {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 40px;
      font-size: var(--font-lg);
      background-color: #e0e0e0;
      border-radius: 50%;
      font-family: var(--krungsri-700);
      font-weight: 700;
      transition: all 0.3s ease;
      max-width: 40px;
    }
    .text-start p {
      text-align: left;
    }
  }
}

.section-video {
  padding-bottom: 20px;
  iframe {
    width: 100%;
    height: 450px;
  }
  @media (max-width: 767px) {
    iframe {
      height: 250px;
    }
  }
}

.gohome-download-icon {
  width: 65px;
  height: 65px;
}

.section-faq {
  & > h2 {
    font-size: var(--font-lg);
    line-height: 40px;
    margin-bottom: 16px;
    font-family: var(--krungsri-700);
    font-weight: 700;
    text-align: center;
  }
  .accordion {
    .accordion-item {
      &:first-child {
        border-top: 0;
      }
      h2 {
        button {
          font-size: var(--font-md);
          font-family: var(--krungsri-500);
          font-weight: 500;
          color: var(--gray-400);
          background-color: #fff !important;
          box-shadow: none !important;
        }
      }
      .accordion-body {
        background-color: #f5f5f5;
        p {
          font-size: var(--font-sm);
          color: var(--gray-100);
          margin-bottom: 16px;
          font-family: var(--krungsri-500);
          font-weight: 500;
          &:last-child {
            margin-bottom: 0;
          }
        }
      }
    }
  }
}

footer {
  padding: 40px 16px 142px 16px;
  background-color: #fafafa;
  @media (max-width: 767px) {
    padding-bottom: 118px;
  }
  .logo-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
    h3 {
      font-size: var(--font-lg);
      font-family: var(--krungsri-700);
      font-weight: 700;
    }
    p {
      font-size: var(--font-md);
      font-family: var(--krungsri-700);
      font-weight: 700;
    }
    img {
      border-radius: 16px;
    }
  }
  .detail-footer {
    text-align: center;
    margin-bottom: 24px;
    p {
      text-align: center;
      &:first-child {
        font-size: var(--font-md);
        line-height: 25.6px;
      }
      &:nth-child(2) {
        font-size: var(--font-md);
        font-family: var(--krungsri-700);
        font-weight: 700;
        line-height: 25.6px;
      }
      &:nth-child(3) {
        font-style: var(--font-xs);
      }
    }
    a {
      display: inline-block;
      font-size: var(--font-md);
      font-family: var(--krungsri-700);
      font-weight: 700;
      line-height: 25.6px;
      text-align: center;
      text-decoration: none;
      color: var(--body-color);
      transition: all 0.3s ease;
      &:hover {
        color: var(--primary-color);
        text-decoration: underline;
      }
    }
  }
  .address-footer {
    text-align: center;
    p {
      font-size: var(--font-xs);
      color: var(--gray-400);
    }
  }
}

.download-fixed {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  height: fit-content;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 4px 0px 16px #e6e6e6;
  padding: 24px 32px;
  z-index: 100;
  color: var(--content-high-color);
  .btn-download-fixed {
    display: none;
  }
  .desktop-fixed-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    img {
      height: 48px;
      border-radius: 8px;
    }
    h3 {
      font-size: var(--font-md);
      line-height: var(--line-height-md);
      font-family: var(--krungsri-700);
      font-weight: 700;
    }
    p {
      font-size: var(--font-sm);
      line-height: var(--line-height-sm);
      font-family: var(--krungsri-500);
      font-weight: 500;
    }
    div {
      display: flex;
      flex-direction: column;
      row-gap: 4px;
    }
  }
  @media (max-width: 767px) {
    padding: 16px;
    .btn-download-fixed {
      background: linear-gradient(
        272deg,
        var(--primary-color) 50%,
        #fff9d9 100%
      );
      box-shadow: 4px 4px 8px #fffbe5 inset;
      transition: box-shadow 0s;
      border-width: 0;
      width: 100%;
      display: block;
      align-items: center;
      justify-content: center;
      gap: 16px;
      border-radius: 16px;
      padding: 0px;
      span {
        display: block;
        text-align: left;
        &:first-child {
          font-size: var(--font-md);
          font-family: var(--krungsri-700);
          font-weight: 700;
          line-height: var(--line-height-md);
          color: var(--content-high-color);
        }
        &:last-child {
          font-size: var(--font-sm);
          line-height: var(--line-height-sm);
          color: var(--content-high-color);
        }
      }
      &:active {
        background: #ffee99;
        box-shadow: none;
      }
    }
    .download-btn-hover {
      background: #ffee99;
      box-shadow: none;
    }

    .desktop,
    .desktop-fixed-footer {
      display: none;
    }
  }
}

.desktop {
  height: 64px;
}

.top-page {
  position: fixed;
  bottom: 104px;
  right: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.25);
  background-color: #fff;
  z-index: 101;
  transition: all 0.3s ease;
  &:hover {
    background-color: #eee;
  }
  img {
    width: 27px;
    height: 13.5px;
  }
}

.modal-header .btn-close {
  opacity: 1;
  padding: 0;
  margin: unset;
  width: 32px;
  height: 32px;
}
.downloadimg {
  transition: 0.3s ease; /* Smooth transition for hover and click changes */
  content: url("../images-v2/close_button.webp");
}

.downloadimg:hover,
.downloadimg:active {
  content: url("../images-v2/close_button_pressed.webp"); /* Image for hover state */
}

.modal-header {
  padding-bottom: 0;
}
.modal-body {
  padding-top: 0;
}
.accordion-button {
  h3 {
    font-size: 16px;
    font-family: var(--krungsri-500);
    font-weight: 500;
    line-height: 24px;
    color: #424242;
  }
}

#modal-scanqr {
  background-color: rgba(61, 59, 59, 0.4);
  .logo {
    width: 48px;
    margin-right: 16px;
    border-radius: 8px;
  }
  .modal-body {
    text-align: center;
    border-radius: 0px 0px 24px 24px;
    background-color: #ffffff;
  }
  .qr {
    margin-top: 32px;
    margin-bottom: 32px;
  }
  .modal-header {
    padding: 24px;
    border-bottom: none;
    display: flex;
    align-items: flex-start;
    border-radius: 24px 24px 0px 0px;
    min-height: 100px;
    background: linear-gradient(180deg, #ffee99, #fff);
  }
  .modal-dialog {
    min-width: 600px;
    transition: none;
    transform: none;
  }
  .text-header {
    h3 {
      font-size: 22px;
      line-height: 28px;
      font-family: var(--krungsri-700);
      font-weight: 700;
      margin-bottom: 4px;
      text-align: left;
      color: #292828;
    }
    p {
      font-size: 14px;
      line-height: 20px;
      font-family: var(--krungsri-500);
      font-weight: 500;
      color: #292828;
    }
  }
}

.modal-content {
  border: unset;
  width: 548px;
  min-width: 400px;
  height: 424px;
  min-height: 424px;
  border-radius: 24px 24px 24px 24px;
  margin: auto;
  box-shadow: 0px 8px 16px rgba(44, 38, 38, 0.16);
}

.img-download-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.download-btn-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
}
