body {
  font-family: "Noto Sans Thai Looped", sans-serif;
  background-color: #f1f1f1;
  width: 100vw;
  font-size: 16px;
  overflow-y: hidden; /* Hide vertical scrollbar */
  overflow-x: hidden; /* Hide horizontal scrollbar */
}

.sidebar-ws-n {
  white-space: nowrap !important;
}

.empty {
  opacity: 0 !important;
  padding: 0px !important;
}

.nav-item-custom {
  margin-bottom: 15px !important;
}

.content-wrapper {
  background-color: white !important;
}

.main-pd {
  padding: 30px 20px;
}

h5 {
  font-size: 20px;
}

h4 {
  font-size: 24px;
}

.img-cover {
  object-fit: cover;
}

.img-contain {
  object-fit: contain;
  background-color: white;
}

.hide {
  display: none !important;
}

.ratio3-2 {
  aspect-ratio: 3/2;
}

.ratio3-3 {
    aspect-ratio: 3/3;
  }

.content-custom {
  margin-left: 0px !important;
}

.content-wrapper-custom {
  overflow: scroll;
}

.card {
  background-color: #f7f7f7 !important;
}

.main-footer {
  background-color: #f4f6f9;
  border-top: none;
  color: #707070;
  padding: 1rem;
}

.banner {
  height: 5vh;
}

.select2-container .select2-selection--single {
  height: auto !important;
}

.select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background-color: #040404;
  color: white;
}

.select2-container--default
  .select2-results__option--highlighted[aria-selected]
  :focus {
  background-color: #040404;
  color: white;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 40px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  padding-left: 0;
}

.select2-container--default .select2-selection--single {
  border: 1px solid #ced4da;
}

.custom-file-label::after {
  display: none;
}

.text-center {
  text-align: center;
}

.container-menu {
  padding-right: 20px;
}

.top-content {
  text-align: center;
}

.top-content .image {
  width: 220px;
}

.login-btn {
  cursor: pointer;
  padding: 0px 20px;
  position: absolute;
  right: 0px;
}

.bg-w {
  background-color: white !important;
}

.bg-b {
  color: white !important;
  background-color: #040404 !important;
}

.follow {
  cursor: pointer;
  background-color: #e7e7e7 !important;
  padding-right: 10px;
  border-radius: 50px;
}

.icon {
  width: 40px;
}

.text-card-title {
  font-size: 32px !important;
  color: #495057 !important;
  text-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.nav-custom {
  font-size: 14px;
  font-weight: 100;
  padding: 5px !important;
  color: white !important;
  background-color: #040404 !important;
}

.card-custom {
  padding: 10px;
  position: relative;
  cursor: pointer;
  background-color: #f7f7f7 !important;
}

.card-custom-active {
  padding: 10px;
  position: relative;
  cursor: pointer;
  background-color: #cfd4da !important;
}

.tag-new {
  z-index: 999;
  font-weight: 200;
  right: 10px;
  position: absolute;
  font-size: 15px;
  color: white;
  background-color: black;
  border-radius: 5px;
  padding: 2px 10px;
}

.col-container-tb {
  display: table;
  width: 100%;
}

.col-tb {
  display: table-cell;
  padding: 0px;
}

.news-content {
  overflow-x: hidden;
  overflow-y: scroll;
  aspect-ratio: 3/2.5 !important;
  font-size: 16px !important;
}

.text-card-news-title {
  font-size: 24px !important;
  color: #495057 !important;
  text-shadow: 0px 2px 2px rgba(59, 59, 59, 0.4);
}

.card {
  border-radius: 8px !important;
}

.btn-sr {
  font-size: 13px !important;
}

/* Container for image text */
.caption-container {
  width: 100%;
  position: absolute;
  text-align: center;
  /* opacity: 0.3; */
  padding: 6px 10px;
  background-color: rgba(42, 46, 55, 0.4);
  color: white;
  bottom: 10px;
  font-size: 16px !important;
}

.caption-text {
  font-weight: 100;
  font-size: 14px !important;
}

@media only screen and (max-width: 1258px) {
  .top-content .image {
    max-width: 190px;
    width: 100%;
  }

  .btn-sr {
    font-size: 11px !important;
  }

  body {
    font-size: 14px !important;
  }

  .main-pd {
    padding: 25px 15px !important;
  }

  .text-card-news-title {
    font-size: 20px !important;
  }

  .text-card-title {
    font-size: 30px !important;
  }

  .caption-container {
    font-size: 15px !important;
  }

  .caption-text {
    font-size: 14px !important;
  }
}

@media only screen and (max-width: 880px) {
  .top-content .image {
    max-width: 160px;
    width: 100%;
  }

  body {
    font-size: 13px !important;
  }

  h5 {
    font-size: 18px !important;
  }

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

  .icon {
    width: 35px;
  }

  .text-card-news-title {
    font-size: 18px !important;
  }

  .btn-sr {
    font-size: 10px !important;
  }

  .text-card-title {
    font-size: 28px !important;
  }

  .caption-container {
    font-size: 14px !important;
  }

  .caption-text {
    font-size: 13px !important;
  }
}

@media only screen and (max-width: 766px) {
  .top-content .image {
    max-width: 140px;
    width: 100%;
  }

  body {
    font-size: 13px !important;
  }

  .main-pd {
    padding: 0px !important;
  }

  h5 {
    font-size: 17px !important;
  }

  h4 {
    font-size: 20px !important;
  }

  .icon {
    width: 35px;
  }

  .caption-container {
    font-size: 13px !important;
  }

  .caption-text {
    font-size: 12px !important;
  }

  .text-card-title {
    font-size: 26px !important;
  }

  .btn-sr {
    font-size: 10px !important;
  }

  .text-card-news-title {
    font-size: 19px !important;
  }

  .news-content {
    font-size: 12px !important;
  }

  .news-content {
    margin-top: 30px;
    overflow-x: hidden;
    overflow-y: hidden;
    aspect-ratio: unset !important;
  }

  .login-btn {
    cursor: pointer;
    padding: 0px 20px;
    margin-top: -40px;
    right: 0px;
  }

  .top-content {
    margin-top: 40px;
    text-align: center;
  }

  .tag-new {
    right: 14px;
  }

  .card-custom {
    padding: 14px;
  }

  .card-custom-active {
    padding: 14px;
  }
}
