* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Sans Thai", sans-serif;
  scroll-behavior: smooth;
}

.navigation-tab {
  margin: 7vw 0 0 3vw;
  width: fit-content;
}

.navigation-tab a,
.navigation-tab span {
  padding: 0 0.5vw;
  font-size: 18px;
  text-decoration: none;
  color: #000;
}

.navigation-tab a:hover {
  color: #a72c32;
  transition: 0.5s;
  font-weight: 600;
}

.news-layout {
  display: flex;
  align-items: flex-start;
  padding: 3vw;
  gap: 1.5vw;
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 0.5vw;
}

.filter-buttons {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 100px;
  flex: 0 0 240px;
  height: 460px;
  border: 3px solid #a72c32;
  border-radius: 10px;
  background: #fff;
  z-index: 2;
}

.filter-buttons h2 {
  margin: 0.3vw 0.7vw;
  color: #000;
}

.filter-buttons h4 {
  margin: 0.5vw 0.7vw;
  color: #6e6e6e;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5vw;
  margin: 0 1vw;
}

.btn-group .btn {
  border-radius: 30px !important;
  font-weight: 600;
  color: #a72c32;
  background-color: #fff;
  border: 1px solid #a72c32;
  cursor: pointer;
}

.btn:hover {
  background: #f0f0f0 !important;
  border: 1px solid #a72c32 !important;
  color: #a72c32 !important;
}

.btn.active {
  background: #a72c32 !important;
  color: #fff !important;
}

.news-container {
  flex: 1;
}

.carousels .news {
  display: flex;
  margin: auto;
  height: 250px;
  overflow: hidden;
}

.carousel-item {
  height: 250px;
}

.carousel-item a {
  text-decoration: none;
}

.carousel-flex {
  display: flex;
  height: 100%;
}

.carousel-poster {
  flex: 1.2;
}

.carousel-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.carousel-text {
  flex: 1;
  padding: 3vw 2vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: right;
  background: #9c9c9c;
}

.carousel-text h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.carousel-text p {
  font-size: 14px;
  line-height: 1.8;
  color: #e9e9e9;
}

.news-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
}

.tags {
  flex-direction: column;
  padding: 0.5vw 1vw;
  border-radius: 50px;
  background: #a72c32;
  color: white;
  font-size: 12px;
  font-weight: 600;
  flex: 0 0 auto;
}

.carousel-indicators [data-bs-target] {
  margin: 0 0 0.1vw 0;
  background-color: #000 !important;
  opacity: 0.4;
}

.carousel-indicators .active {
  background-color: #000;
  opacity: 1;
}

.card-container {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
