body {
  margin: 0;
  border: 0;
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: 20px;
  font-weight: 300;
  color: #462d0c;
  background-color: #fffdfa;
  background-image: url("../images/BG-main_2.png");
  background-position: top;
}
.content_top {
}
img {
  width: auto;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: #462d0c;
}

a:hover,
button:hover {
  transition: 0.3s ease-in-out;
}
.form-check-input:focus {
  box-shadow: none;
}
.form-control::placeholder {
  color: #a6a6a6;
  font-size: 20px;
}

.form-control {
  border-radius: 0;
  border: none;
  border-bottom: 1px #e9e9e9 solid;
  height: 55px;
  padding: 0;
  font-size: 20px;
}
textarea.form-control {
  height: 100px;
  font-size: 20px;
}
.form-check-input[type="checkbox"] {
  border: 1px #a6a6a6 solid;
  width: 25px;
  height: 25px;
  border-radius: 0;
  margin-right: 0.5rem;
  margin-top: 0;
}

/* ----------------------- COLOR & TEXT---------------------- */
.gray {
  color: #5d5d5d;
}
.darygray {
  color: #5d5d5d;
}
.red {
  color: #c10000;
}
.BG-lightred {
  background-color: #e13131;
}
.BG-white {
  background-color: white;
}
.BG-teal {
  background-color: #21b3a0;
}
.BG-purple {
  background-color: #2e368f;
}
.BG-hotpink {
  background-color: #e93b71;
}
.BG-lightgray {
  background-color: #f6f6f6;
}
.BG-lightgreen {
  background-color: #e4e4e4;
}
h1 {
  font-size: 36px;
  color: #ed1c24;
  line-height: 2;
  margin: 0;
}
h2 {
  font-size: 26px;
  display: inline;
}
.text-s {
  font-size: 14px;
}
.home-title .text-title {
  position: relative;
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}
.home-title .text-title::after {
  content: "";
  position: absolute;
  background-image: url("../images/title-underline.png?v=2");
  background-size: contain;
  background-repeat: no-repeat;
  width: 230px;
  height: 10px;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}
.home-title .text-subtitle {
  text-align: center;
  padding-top: 0.5rem;
}
/* ----------------------- BUTTON ---------------------- */
.btn {
  width: 165px;
  height: 44px;
  border-radius: 50px;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn:hover {
  transition: 0.3s ease-in-out;
}
.btn.btn-submit {
  background-color: #b5292f;
  border: 1px #ffffff00 solid;
}
.btn.btn-submit:hover {
  border: 1px #b5292f solid;
  background-color: unset;
  color: #b5292f;
}
.map iframe {
  width: 100% !important;
  height: 550px !important;
}
/* ----------------------- ALL PADDING ---------------------- */
.center {
  text-align: center;
}
.top50 {
  padding: 50px;
}
section {
  padding: 100px 0;
}

/* ----------------------- SCROLL BAR ---------------------- */

::-webkit-scrollbar-track {
  background: #f6f6f6;
}
::-webkit-scrollbar-thumb {
  background: #a0a0a0;
}
::-webkit-scrollbar-thumb:hover {
  background: #858585;
}

/* ----------------------- PDPA  ---------------------- */
.PDPA .PDPA-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 3rem;
  background: rgba(0, 0, 0, 0.836);
  color: #ffffff;
  position: fixed;
  z-index: 1000;
  bottom: 0;
  font-size: 1rem;
  font-weight: 400;
  gap: 1rem;
  opacity: 1;
  visibility: visible;
  text-align: center;
  width: 100%;
}
.PDPA .PDPA-container.hide {
  opacity: 0;
  visibility: hidden;
}
.PDPA .PDPA-container a {
  font-size: 15px;
  font-weight: 400;
}
.PDPA .PDPA-container a:hover {
  transition: 0.3s ease-in-out;
}
.PDPA .PDPA-container .PDPA-text,
.PDPA .PDPA-container .PDPA-text a {
  font-size: 15px;
  font-weight: 300;
  color: white;
  margin-top: 1rem;
}
.PDPA .PDPA-container .PDPA-text a {
  color: #ed1c24;
}
.PDPA .PDPA-container .agree {
  text-align: center;
}
.PDPA .agree button {
  background: #ed1c24;
  color: black;
  border: 1px #ed1c24 solid;
  padding: 0.4rem 1.2rem;
  cursor: pointer;
  border-radius: 20px;
  font-size: 1rem;
  font-size: 15px;
}
.PDPA .agree button:hover {
  background: #f3c32700;
  transition: 0.3s ease-in-out;
  color: #ed1c24;
}

/* ----------------------- HOME POP-UP ---------------------- */
.popup {
  padding: 0;
}
.popup .popup-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.26);
  color: #ffffff;
  position: fixed;
  z-index: 1020;
  bottom: 0;
  width: 100%;
  height: 100%;
}
.popup .popup-container.hide {
  display: none;
}
.popup .popup-container a:hover {
  transition: 0.3s ease-in-out;
}
.popup .popup-container .pad {
  width: 700px;
}
.popup .slide-popup .item {
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup .slide-popup .item img {
  width: auto;
  border-radius: 9px 9px 0 0;
}
.popup .slide-popup .item .close-btn {
  position: absolute;
  top: 0.75rem;
  right: 4rem;
  cursor: pointer;
}
.popup .slide-popup .item .close-btn i {
  font-size: 24px;
  color: black;
}
.popup .slide-popup .item .tab {
  display: flex;
  border-radius: 0 0 9px 9px;
  align-items: center;
}
.popup .slide-popup .item .tab .box {
  width: 100%;
  text-align: center;
  cursor: pointer;

  padding: 0.75rem 0;
  border-radius: 0 0 9px 0;
}
.popup .slide-popup .item .tab .box.left {
  border-right: 1px #d9d9d9 solid;
  border-radius: 0 0 0 9px;
}
.popup .slide-popup .item .tab .box.one-btn {
  border-radius: 0 0 9px 9px;
}
.popup .slide-popup .item .tab .box a {
  color: white !important;
}

.slide-popup .owl-dots .owl-dot.active span,
.slide-popup .owl-dots .owl-dot:hover span {
  background: #00b050;
}
.slide-popup .owl-dots .owl-dot span {
  background: white;
}
.slide-popup .owl-nav button.owl-next {
  position: absolute;
  top: 3rem;
  right: 8%;
  width: 50px;
  height: 70%;
}
.slide-popup .owl-nav button.owl-prev {
  position: absolute;
  top: 3rem;
  left: 8%;
  width: 50px;
  height: 70%;
}
.slide-popup .owl-nav button.owl-next i,
.slide-popup .owl-nav button.owl-prev i {
  font-size: 20px;
  color: black;
}

/* ----------------------- PRIVACY POLICY MODALS ---------------------- */
.privacy-policy label {
  font-weight: 200;
  cursor: pointer;
}
.privacy-policy label span {
  font-weight: 200;
  text-decoration: underline;
  color: #ed1c24;
}
.privacy-policy .modal-title {
  font-weight: 400;
}
.privacy-policy .modal-dialog {
  max-width: 800px;
}
.privacy-policy .modal-dialog-scrollable .modal-content {
  max-height: 90%;
  padding: 0;
}
.privacy-policy .modal-header,
.privacy-policy .modal-footer {
  height: 65px;
  display: flex;
  justify-content: center;
}
.privacy-policy .modal-footer .btn {
  margin: 0;
}

/* ---------------TEXT BUTTON VIDEO IN BANNER---------------- */
.banner-lg,
.banner-sm {
  padding: 0;
}
.banner-sm {
  position: relative;
  padding: 0;
}

.banner-sm .textbox .inner {
  display: flex;
  width: 1300px;
  max-width: 100%;
  padding: 0 1rem;
}
.banner-sm .buttonbox .inner {
  width: 1300px;
  max-width: 100%;
  padding: 0 1rem;
}

.banner-sm .textbox {
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 50%;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  height: 5rem;
}
.banner-sm .textbox .inner .box {
  width: 33.33%;
  height: 30px;
}

.banner-sm .buttonbox {
  width: 100%;
  position: absolute;
  bottom: 25%;
  left: 0;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  height: fit-content;
}

.banner-sm .buttonbox .inner .button {
  display: flex;
  justify-content: center;
  width: 100%;
}
.banner-sm .buttonbox .inner .button button {
  border-radius: 50px;
  border: none;
  padding: 0.5rem 2rem;
  align-items: center;
  box-shadow: 1px 1px 5px #00000070;
}
.banner-sm .buttonbox .inner .button button:hover {
  transform: scale(1.08);
  transition: 0.3s ease-in-out;
}

/* -----------------------CONTACTUS---------------------- */
.home-contactus form {
      width: 50%;
  border: 1px #b5292f solid;
  padding: 3%;
  border-radius: 22px;
  background-color: #fff;
}

/* --------------------- KNOWLEDGE (include_home_blog.php)---------------------- */

.home-knowledge .heading-bar {
  font-weight: 400;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.home-knowledge .head {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  padding: 0.75rem 2rem;
  background-color: #6a3e04;
  border-radius: 50px;
  line-height: 1;
}
.home-knowledge .head:hover,
.home-knowledge .head-active {
  background-color: #b5292f;
  transition: 0.3s ease-in-out;
}

.home-knowledge .card {
  border: none;
  background: #f2f2f2;
  border-radius: 0;
  color: black;
  border-bottom: 3px #ffffff00 solid;
}
.home-knowledge .card:hover {
  border-bottom: 3px #d52926 solid;
  transition: 0.3s ease-in-out;
}

.home-knowledge .card-img {
  overflow: hidden;
  border-radius: 0;
}
.home-knowledge .card-img img {
  border-radius: 0;
}
.home-knowledge .card-body {
  padding: 1rem;
}
.home-knowledge .card-title {
  font-weight: 400;
  height: 2.85rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
}
.home-knowledge .card-detail {
  color: #5d5d5d;
  font-size: 14px;
  height: 2.5rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
}

.show-pc {
  display: block;
}
.show-mobile {
  display: none;
}

@media (max-width: 991px) {
  .show-pc {
    display: none;
  }
  .show-mobile {
    display: block;
  }
  body,
  .form-control::placeholder,
  textarea.form-control {
    font-size: 14px;
  }
  h1 {
    font-size: 20px;
  }
  h2 {
    font-size: 16px;
  }
  section {
    padding: 50px 0;
  }
  .form-control {
    height: 30px;
  }
  .map iframe {
    height: 200px !important;
  }
  .home-title .text-title::after {
    width: 150px;
  }
  .home-title .text-subtitle {
    padding-top: 0;
  }
  .btn {
    width: 130px;
    height: 35px;
  }
  /* ----------------------- CONTACTUS ---------------------- */
  .home-contactus form {
    width: 100%;
    padding: 1rem;
  }
  /* ----------------------- POP-UP ---------------------- */

  .popup .slide-popup .item img {
    width: 100%;
  }
  .popup .popup-container .pad {
    width: 100%;
  }
  .slide-popup .owl-nav button.owl-prev {
    height: 67%;
  }
  .slide-popup .owl-nav button.owl-next {
    height: 67%;
  }
  .PDPA {
    padding: 0;
  }
  .PDPA .PDPA-container {
    padding: 1rem 2rem 1rem 2rem;
    flex-direction: column;
  }
  .PDPA .PDPA-container .PDPA-text,
  .PDPA .PDPA-container .PDPA-text a,
  .PDPA .agree button {
    font-size: 10px;
    margin: 0;
  }

  /* ----------------------- BANNER WITH TEXT ---------------------- */

  .banner-sm .textbox {
    bottom: 4rem;
  }

  .banner-sm .textbox .inner .box {
    width: 100%;
  }

  .banner-sm .buttonbox {
    bottom: 2rem;
  }

  .banner-sm .buttonbox .inner .button button {
    padding: 0.35rem 1rem;
  }
  .banner-sm .textbox .inner,
  .banner-sm .buttonbox .inner {
    padding: 0 4%;
  }

  /* ----------------------- INDEX ---------------------- */

  .home-title .subtitle {
    border-left: none;
    padding: 0 0.35rem 0 0;
    font-size: 18px;
    display: flex;
  }
  .home-viewall {
    height: 35px;
    top: 0;
    width: 80px;
  }
  .home-viewall a {
    font-weight: 400;
  }
  .home-viewall a,
  .home-viewall i {
    font-size: 12px;
  }
  .home-knowledge .heading-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .home-knowledge .head {
    text-align: center;
  }
}

@media (min-width: 1180px) and (max-width: 1440px) {
  body,
  .form-control::placeholder,
  textarea.form-control {
    font-size: 16px;
  }
  h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 20px;
  }
}
