@import url("https://fonts.googleapis.com/css2?family=Maitree:wght@200;300;400;500;600;700&family=Noto+Sans+Thai:wght@100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://use.typekit.net/vbk6mvm.css");

* {
  font-family: "preuksa", sans-serif;
  font-optical-sizing: auto;
}

body {
  background-image: url(../images/news-bg.webp);
  background-position: top center;
  background-repeat: no-repeat;
  background-color: #fffdf5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-attachment: fixed;
}

.news {
  flex: 1 0 auto;
}
.news-title {
  margin-top: 120px;
  margin-bottom: 60px;
}

.all-news-container-border {
  padding: 10px;
  background-color: #f1e9d3;
  border-radius: 10px;
  margin-bottom: 100px;
}

.all-news-container {
  padding: 20px 30px 30px 30px;
  background-color: #f1e9d3;
  background-repeat: repeat;
  border: 2px solid rgba(74, 66, 55, 0.35);
  border-style: dashed;
  border-radius: 8px;
}

.cate-tag {
  padding-top: 1px;
  padding-bottom: 1px;
  font-size: 12px;
  color: #fff;
  font-weight: 500;
  padding-left: 10px;
  padding-right: 10px;
  background-color: #adadad;
  display: inline-block;
  width: 70px;
  text-align: center;
  position: relative;
  line-height: 22px;
  border-radius: 5px;
}

.tag-promotion {
  background-color: #9b0000;
}

.tag-update {
  background-color: #6a1871;
}

.tag-event {
  background-color: #4d7cae;
}

.news-title {
  font-size: 14px;
  color: #111111;
  line-height: 24px;
  font-weight: 600;
}

.news-date {
  font-size: 12px;
  color: #5e5d5d;
  text-align: right;
  font-weight: 500;
  line-height: 24px;
}

/* navtab */
.nav-tabs-container {
  /* margin: 0 auto; */
}

.nav-tabs-container nav {
  border-top: 0px solid #4a4237;
  border-bottom: 4px solid rgb(74 66 55 / 50%);
  padding: 9px 10px;
  margin: 0 auto;
}

.nav-tabs-container .nav-tabs {
  border-bottom: 0px;
}

.nav-tabs-container .nav-tabs .nav-link {
  border: 0;
  margin-bottom: 0;
  border-radius: 0;
  padding-bottom: 5px;
  padding-top: 5px;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: 2px;
  margin-right: 2px;
  font-size: 16px;
  font-weight: 500;
  color: #111111;
  border-radius: 5px;
}

.nav-tabs-container .nav-tabs .nav-link.active {
  background-color: #014d4b;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.nav-tabs-container .nav-tabs .nav-link:hover {
  background-color: #014d4b;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.nav-tabs-container .nav-tabs .nav-link .nav-heading {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  color: inherit;
  line-height: inherit;
  display: inline;
}

.all-news-thumbnail {
  margin-top: 20px;
  text-decoration: none;
  display: block;
  background-color: #fff;
  box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.1);
  transition: 0.1s;
  text-align: start;
}

.all-news-thumbnail:hover {
  transform: scale(102%);
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.2);
}

.thumbnail-content {
  padding: 7px 15px 15px 15px;
  display: flex;
  flex-direction: column;
  min-height: 104px;
  align-items: stretch;
  justify-content: space-between;
}

.thumbnail-title {
  font-size: 12px;
  color: #111111;
  padding-bottom: 4px;
  margin: 0;
  font-weight: normal;
  line-height: inherit;
}

.all-news-container .tab-content {
  /* margin-top: 20px; */
}

.navigation-container {
  margin-top: 20px;
}

.pagination {
  margin-bottom: 0px;
}

.page-link {
  color: #014d4b;
  font-size: 14px;
  border: 0px;
  margin-left: 4px;
  margin-right: 4px;
}

.page-link:hover {
  color: #fff;
  background-color: #014d4b;
  border: 0px;
}

.active > .page-link,
.page-link.active {
  background-color: #014d4b;
  border: 0px;
  font-size: 14px;
}

.page-link:focus {
  box-shadow: none;
}

.headline-news {
  border-bottom: 2px solid #aeaeae;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.headline-news h1 {
  font-size: 22px;
  font-weight: 700;
  color: #111111;
  line-height: 24px;
  margin-bottom: 4px;
}

.headline-news .news-date {
  margin-left: 10px;
}

.news-detail img {
  margin-bottom: 24px;
  margin-top: 20px;
  max-width: 100%;
  height: auto !important;
}

.news-detail p {
  font-size: 16px;
  color: #111111;
  line-height: 24px;
}

.news-detail {
  padding-bottom: 30px;
  border-bottom: 2px solid #aeaeae;
}

td {
  font-size: 16px;
}
.news-tab-size {
  min-height: 300px;
  height: 100%;
  display: flex;
  align-items: stretch;
}
.no-date-txet {
  font-size: 18px;
  font-weight: 700;
  color: #111111;
  line-height: 22px;
  margin-bottom: 4px;
  margin-top: 10px;
}
.tab-pane .text-center {
  padding-top: 60px;
  padding-bottom: 30px;
}
/* Sidebar */
.lastes-news-border {
  padding: 10px;
  background-color: #f1e9d3;
  border-radius: 10px;
  margin-bottom: 100px;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
}

.lastes-news-container {
  /* background-image: url(../images/news/pattern-bg.jpg); */
  background-position: top center;
  background-repeat: repeat;
  /* padding: 10px 10px 10px 10px; */
  border-radius: 20px;
  background-color: #fff;
  padding-bottom: 20px;
  background-color: #f1e9d3;
  background-repeat: repeat;
  border: 2px solid rgba(74, 66, 55, 0.35);
  border-style: dashed;
  border-radius: 8px;
}

.lastes-news-title {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 10px 20px 8px 20px;
  background-color: #4a433a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 4px solid rgba(232, 188, 186, 0.3);
}

.lastes-news-box {
  text-decoration: none;
  transition: 0.1s;
  margin-left: 10px;
  margin-right: 10px;
  padding: 10px 0px 10px 0px;
  border-bottom: 1px solid #a5a6a8;
}

.lastes-news-box:hover .thumbnail-title {
  color: #014d4b;
}

.lastes-news-box .lastes-img {
  width: 40%;
}

.lastes-news-box .lastes-img img {
  border-radius: 5px;
}

.lastes-content {
  width: 60%;
  margin-left: 10px;
  display: flex;
  flex-direction: column;
}

.thumbnail-title {
  font-size: 10px;
  color: #111111;
  padding-bottom: 4px;
  font-weight: 600;
}

.lastes-content .cate-tag,
.lastes-content .news-date {
  font-size: 10px;
  line-height: 17px;
}

.lastes-content .cate-tag {
  height: 18px;
  padding-left: 10px;
  padding-right: 10px;
}

.all-news-btn {
  /* width: 100%; */
  margin-left: 10px;
  margin-right: 10px;
  background-color: #014d4b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 7px;
  text-decoration: none;
  display: block;
  transition: 0.1s;
  text-align: center;
  margin-top: 5px;
}

.all-news-btn:hover {
  background-color: #006764;
  color: #fff;
}

.news-title h1 {
  color: #fff;
}

ol ol,
ol ul,
ul ol,
ul ul {
  margin-bottom: 15px;
}
/* ================================= */
/*           Term of Service         */
/* ================================= */
.blank-page {
  flex: 1 0 auto;
}
.blank-page {
  padding: 150px 0;
}
.blank-page-container-border {
  padding: 10px;
  background-color: #f1e9d3;
  border-radius: 10px;
  margin-bottom: 100px;
}

.blank-page-container {
  padding: 20px 30px 30px 30px;
  text-align: center;
  background-color: #f1e9d3;
  border: 2px solid rgba(74, 66, 55, 0.35);
  border-style: dashed;
  border-radius: 8px;
  background-image: url(../images/trem-bg.png);
  background-position: top center;
  background-repeat: repeat;
  background-size: 100%;
}
.contact-us {
  border-radius: 30px;
  background:
    url(../images/bg-contact.png) no-repeat,
    rgba(255, 242, 216, 0.43);
  background-position: center;
  background-repeat: repeat;
}
/* Add bottom-right image using ::after */

.contact-us {
  position: relative;
}
.contact-us::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 117px;
  height: 126px;
  background: url(../images/c-1.png) no-repeat left bottom;
  background-size: contain;
  pointer-events: none;
  z-index: 2;
}
.contact-us::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: -7px;
  width: 100px;
  height: 80px;
  background: url(../images/c-2.png) no-repeat right bottom;
  background-size: contain;
  pointer-events: none;
  z-index: 2;
}
.contact-us-contact {
  padding: 15px 105px;
}
.contact-us-contact a img {
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.contact-us-contact a:hover img {
  transform: scale(1.08);
}
.privacy-header {
  padding: 32px 0 24px 0;
  text-align: center;
  border-radius: 16px 16px 0 0;
  color: #4a4237;
  border-bottom: 2px solid rgb(74 66 55 / 50%);
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.privacy-header.contact-us-header {
  border-bottom: 0px solid rgb(74 66 55 / 50%);
}
.privacy-header h1 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.privacy-header h2 {
  font-size: 1.1rem;
  margin-bottom: 0;
}
.privacy-header a {
  text-decoration: underline;
  color: #4a4237;
}
.privacy-header a:hover {
  color: #7a6b57;
}
.privacy-header p {
  font-size: 14px;
  line-height: 1.8;
  font-weight: 400;
}
.privacy-content {
  color: #4a4237;
  border-bottom: 2px solid rgb(74 66 55 / 50%);
  margin-bottom: 20px;
}
.privacy-content h2,
h3 {
  font-size: 14px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}
.privacy-content p,
.privacy-content ul,
.privacy-content ol {
  font-size: 14px;
  line-height: 1.8;
  font-weight: 400;
}
.privacy-content a {
  text-decoration: underline;
  color: #4a4237;
}
.privacy-content a:hover {
  color: #7a6b57;
}
.privacy-content ul {
  padding-left: 20px;
}
.privacy-content ol {
  list-style-type: none;
}
.privacy-content-ul {
  list-style-type: none;
  padding-left: -20px;
}
/* ================================= */
/*           Media queries           */
/* ================================= */

@media (max-width: 1399.98px) {
}

@media (max-width: 1199.98px) {
}

@media (max-width: 991.98px) {
  .lastes-img {
    display: none;
  }

  .lastes-content {
    width: 100%;
    margin-left: 0px;
  }

  .all-news-container-border {
    margin-bottom: 30px;
  }
  .contact-us-contact {
    padding: 15px 77px;
  }
}

@media (max-width: 767.98px) {
  .all-news-container {
    padding: 10px 20px 20px 20px;
  }

  .news-detail p {
    font-size: 14px;
  }

  .headline-news h1 {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    line-height: 22px;
    margin-bottom: 4px;
    margin-top: 10px;
  }
  .contact-us-contact {
    padding: 15px 20px 40px 20px;
  }
  .contact-us::before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: -14px;
    width: 85px;
    height: 92px;
    background: url(../images/c-1.png) no-repeat left bottom;
    background-size: contain;
    pointer-events: none;
    z-index: 2;
  }
  .contact-us::after {
    content: "";
    position: absolute;
    bottom: -4px;
    right: -7px;
    width: 80px;
    height: 64px;
    background: url(../images/c-2.png) no-repeat right bottom;
    background-size: contain;
    pointer-events: none;
    z-index: 2;
  }
}

@media (max-width: 575.98px) {
  .nav-tabs-container nav {
    padding-left: 0px;
    padding-right: 0px;
  }

  .nav-tabs-container .nav-tabs .nav-link {
    font-size: 12px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .nav-tabs-container .nav-tabs .nav-link.active {
    font-size: 12px;
  }

  .nav-tabs-container .nav-tabs .nav-link:hover {
    font-size: 12px;
  }

  .thumbnail-content {
    min-height: auto;
  }

  .all-news-thumbnail {
    margin-top: 10px;
  }

  .headline-news h1 {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    line-height: 22px;
    margin-bottom: 4px;
    margin-top: 8px;
  }
  .contact-us::before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: -18px;
    width: 100px;
    height: 100px;
    background: url(../images/c-1.png) no-repeat left bottom;
    background-size: contain;
    pointer-events: none;
    z-index: 2;
  }
  .contact-us::after {
    content: "";
    position: absolute;
    bottom: -4px;
    right: -7px;
    width: 82px;
    height: 65px;
    background: url(../images/c-2.png) no-repeat right bottom;
    background-size: contain;
    pointer-events: none;
    z-index: 2;
  }
}
@media (max-width: 468.98px) {
  .contact-us::before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: -18px;
    width: 60px;
    height: 60px;
    background: url(../images/c-1.png) no-repeat left bottom;
    background-size: contain;
    pointer-events: none;
    z-index: 2;
  }
  .contact-us::after {
    content: "";
    position: absolute;
    bottom: -4px;
    right: -7px;
    width: 58px;
    height: 45px;
    background: url(../images/c-2.png) no-repeat right bottom;
    background-size: contain;
    pointer-events: none;
    z-index: 2;
  }
}
