body {
  margin: 0px;
  font-family: 'Sarabun', sans-serif;
  font-size: 16px !important;
  background-color: #edeeee !important;
}

.bold {
  font-family: 'Sarabun', sans-serif !important;
  font-weight: 700 !important;
}
.semibold {
  font-family: 'Sarabun', sans-serif !important;
  font-weight: 600 !important;
}
.medium {
  font-family: 'Sarabun', sans-serif !important;
  font-weight: 500 !important;
}

h2 {
  font-size: 22px !important;
}

.t-primary {
  color: #16686a !important;
}
.t-primary2 {
  color: #1B7D7A !important;
}
.t-red {
  color: #ff0000 !important;
}

.header-wrapper {
  min-height: 114px;
  max-height: 60px;
  display: flex;
  align-items: center;
  background-color: #fff;
  box-shadow: 0 1px 20px rgb(57 63 72 / 15%);
}

.header-wrapper .header {
  display: flex;
  gap: 16px;
 }
 .header-wrapper .header h1 {
  font-size: 24px !important;
  margin: 0;
 }
 .header-wrapper .header h3 {
  font-size: 18px !important;
  margin: 0;
 }

.main-menu-wrapper {
  min-height: 100px;
  max-height: 100px;
  border-bottom: 1px solid #c2d4d4;
  background-color: #fff;
}
.footer-wrapper {
  min-height: 60px;
  border-top: 1px solid #c2d4d4;
  font-family: 'Sarabun', sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px;
}

.content-wrapper {
  min-height: calc(100vh - 200px);
  padding-top: 60px;
  padding-bottom: 60px;
}

.carousel, .carousel-inner, .carousel-item {
  min-height: 450px;
  position: relative;
}
.carousel-item, .carousel-inner .banner-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.carousel-indicators {
  justify-content: left !important;
  margin-left: 5% !important;
}
.carousel-indicators button {
  width: 15px !important;
  height: 15px !important;
  background-color: #FFF !important;
  opacity: 1 !important;
}
.carousel-indicators button.active {
  background-color: #16686a !important;
  opacity: 0.7 !important;
}
.owl-carousel .owl-item img {
  width: 60px !important;
}

.menu-item {
  text-align: center;
  padding: 14px;
  text-decoration: none;
  min-height: 100px;
  max-height: 100px;
  position: relative;
  justify-content: center;
  align-items: center;
  color: #16686a !important;
  white-space: normal;
  text-align: left;
  display: inline-flex;
  width: 100%;
  justify-content: flex-start;
}

.menu-item:after {
  content: '';
  position: absolute;
  right: 0;
  width: 1px;
  height: 50%;
  background-color: #c2d4d4;
}
.owl-item:last-child .menu-item:after {
  width: 0px;
}


.menu-item div{
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.menu-item div p{
  display: flex;
  flex: 1;
  margin: 0px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.col-12 {
  padding: 0 !important;
}

.loop {
  position: relative;
}
.owl-nav {
  position: absolute;
  top: 0px;
  display: flex;
  justify-content: space-between;
  left: -30px;
  right: -30px;
  margin-top: 0px !important;
  z-index: 0;
  bottom: 0;
}
.owl-nav span {
  font-size: 40px;
}
.owl-theme .owl-nav button {
  color: #c7c7c7 !important;
  opacity: 0.3;
  transition: all 0.5s ease-in-out;
}
.owl-theme .owl-nav button:hover {
  background: none !important;
  opacity: 1 !important;
  color: #c7c7c7 !important;
  opacity: 1;
}
.owl-stage-outer {
  z-index: 1;
}

.page-heading {
  border-bottom: 3px solid #16686a;
  position: relative;
}
.page-heading h2 {
  color: #fff;
  font-size: 18px !important;
  background-color: #16686a;
  margin-bottom: 0px;
  display: inline-block;
  padding: 10px 20px;
}

.news-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 16px;
}

.card {
  background-color: #FFF;
  border-radius: 0px !important;
  border-color: #FFF !important;
  padding: 12px !important;
  transition: all 0.5s ease-in-out;
  position: relative;
  /* box-shadow: 1px 3px 12px -1px rgba(61,61,61,0.75);
  -webkit-box-shadow: 1px 3px 12px -1px rgba(61,61,61,0.75);
  -moz-box-shadow: 1px 3px 12px -1px rgba(61,61,61,0.75); */
}

.card:hover {
  transform: scale(1.03);
}

.news-image {
  padding-top: 62%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.news-desc {
  gap: 16px;
}
.news-desc p {
  margin: 0px;
}
.date-label {
  font-family: 'Helvetica', 'Arial', sans-serif;
  color: #495057;
  font-size: 14px;
  opacity: 0.7;
}

.full-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

#pagination ul {
  display: flex;
  list-style: none;
  gap: 12px;
  align-items: center;
  margin: 0px;
  padding: 0px;
}
#pagination ul li {
  float: left;
}
#pagination ul li:has(.prev),
#pagination ul li:has(.next) {
  display: none;

}
#pagination ul li,
#pagination ul li span{
  font-family: 'Sarabun', sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
}
#pagination ul li .page-link {
  background-color: transparent !important;
  border: none !important;
  color: #16686a !important;
}
#pagination ul li .page-link:focus {
  outline: none !important;
  box-shadow: none !important;
}
#pagination ul li .current {
  position: relative;
  display: block;
  text-decoration: none;
  background-color: #16686a;
  border: 1px solid #16686a;
  color: #FFF !important;
  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
  padding: 4px 10px;
  border-radius: 6px;
}
@media only screen and (min-width: 320px) and (max-width: 992px) {
  .container, .container-md, .container-sm {
      max-width: 97% !important;
  }
  .news-wrapper {
    grid-template-columns: 1fr 1fr;
  }
  .content-wrapper {
    min-height: calc(100vh - 500px);
    padding-top: 40px;
    padding-bottom: 30px;
  }
  .header-wrapper .header {
    gap: 12px;
    align-items: center;
  }
  .header-wrapper .header h1 {
    font-size: 20px !important;
  }
  .header-wrapper img {
    width: 40px;
    height: 40px;
  }
  .header-wrapper .header h3 {
    font-size: 16px !important;
  }
  .carousel, .carousel-inner, .carousel-item {
    min-height: 250px;
  }
  .menu-item div p {
    font-size: 11px;
  }
  .owl-carousel .owl-item img {
    width: 30px !important;
  }
  .main-menu-wrapper,
  .menu-item {
    min-height: 60px;
    max-height: 60px;
  }
  .menu-item {
    padding: 12px;
  }
  .header-wrapper {
    min-height: 75px;
  }
  .page-heading.mb-5 {
    margin-bottom: 24px !important;
  }
  .page-heading h2 {
    font-size: 14px !important;
    padding: 6px 14px;
  }
  .news-desc p {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .date-label {
    font-size: 10px !important;
  }
  .news-page-heading h2 {
    font-size: 20px !important;
  }
  .news-page-heading p {
    font-size: 14px;
  }
  .news-content-wrapper {
    font-size: 14px;
  }
  .gallery {
    margin-bottom: 30px !important;
  }
}

.news-page-heading h2 {
  font-size: 28px;
  font-family: 'Sarabun', sans-serif !important;
  font-weight: 700 !important;
  color: #16686a;
  margin-bottom: 12px;
}

.news-page-heading p {
  font-family: 'Helvetica', 'Arial', sans-serif;
  font-size: 16px;
  opacity: 0.7;
  color: #495057;
  margin-bottom: 0px;
}
.main-image-wrapper {
  margin: 0px !important;
}
.main-image-wrapper .main-1 {
  padding-top: 33.33%;
  position: relative;
}
.main-image-wrapper .main-2 {
  margin-bottom: 20px;
}
.main-image-wrapper .main-2,
.main-image-wrapper .main-3 {
  padding-top: 45%;
  position: relative;
}
.main-image-wrapper div {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.main-image-wrapper .col-5 {
  padding-left: 20px;
  width: 37.666667%;
  padding-right: 0px;
}

element.style {
  background-image: url(./assets/images/mock/example-banner-01.jpg);
}
.main-image-wrapper .main-1 {
  padding-top: 33.33%;
}
.main-image-wrapper div {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.main-image-wrapper .col-7 {
  width: 62.333333%;
}

.gallery .image {
  padding-top: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.gallery {
  margin-bottom: 60px;
}

.news-content-wrapper {
  color: #707070;
  font-family: 'Helvetica', 'Arial', sans-serif;
  font-size: 16px;
}

#galleryModal .modal-body {
  padding: 0px;
}

.gallery-modal-wrapper {
  position: relative;
}
.gallery-modal-wrapper .owl-nav{
  left: 0px;
  right: 0px;
  z-index: 1;
  top: 50%;
  margin-top: -40px !important;
}

.gallery-modal-wrapper .owl-nav button,
.gallery-modal-wrapper .owl-nav button:hover {
  background-color: #000 !important;
  opacity: 0.8 !important;
  margin: 0px !important;
  border-radius: 0px !important;
  display: flex;
  justify-content: center;
  align-items: center;
}
.gallery-modal-wrapper .owl-nav button span{
  padding: 10px 6px !important;
  display: inline-block;
}

.gallery-modal-wrapper .image {
  padding-top: 65%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.modal-backdrop.show {
  opacity: 0.7 !important;
}

.modal.show {
  display: flex !important;
  align-items: center;
  flex-direction: row;
}
.modal.show .modal-dialog {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/************************** Animation **************************/
.bg-scale {
  position: relative;
  overflow: hidden;

}
.bg-scale .scale-image{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: all 0.3s ease-in-out;
}
.bg-scale:hover .scale-image {
  transform: scale(1.1);
}
.bg-scale:hover .scale-image.out {
  transform: scale(0.9);
}
/************************** Animation **************************/
