.custom-tab-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.custom-tab-buttons > li > a {
  background-color: #fff;
  border: 1px solid #3d3d3d;
  color: #3d3d3d;
  border-radius: 8px;
  padding: 16px 32px;
  transition: all 0.6s ease;
}

@media screen and (max-width: 767px) {
  .custom-tab-buttons > li > a {
    padding: 12px;
  }
}

.custom-tab-buttons > li > a:hover {
  background-color: #446a80;
  color: #ffffff;
  border: 1px solid #3d3d3d;
}

.custom-tab-buttons > li.active > a,
.custom-tab-buttons > li.active > a:focus,
.custom-tab-buttons > li.active > a:hover {
  background-color: #446a80;
  color: #fff;
  border-color: #446a80;
}

.tab-pane {
  padding: 20px 0;
  opacity: 0;
  animation: fadeEffect 0.5s ease-in-out;
}

.tab-pane.active {
  opacity: 1;
}

@keyframes fadeEffect {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.search-filter-wrapper {
  display: flex;
  justify-content: center;
  gap: 18px;
  max-width: 730px;
  margin-inline: auto;
  margin-bottom: 32px;
}

@media screen and (max-width: 575px) {
  .search-filter-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
}

.search-filter-wrapper .search-container {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: #fafafa;
  border: 1px solid #e3e3e3;
  padding: 10px 16px;
  position: relative;
}

.search-filter-wrapper .search-input {
  width: 100%;
  font-size: 16px;
  color: #000;
  border: none;
  background: transparent;
  padding: 0px;
  box-shadow: none;

  &::placeholder {
    color: #959595;
  }
}

.search-filter-wrapper .btn-search {
  display: flex;
  background-color: #446a80;
  color: #fff;
  border-radius: 8px;
  padding: 8px 28px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 400;
  border: none;
  transition: background-color 0.3s;
}

@media screen and (max-width: 1199.98px) {
  .search-filter-wrapper .btn-search {
    padding: 8px 14px;
  }
}

.search-filter-wrapper .btn-filter {
  width: 100%;
  height: 100%;
  background: #fcfcfc !important;
  border: 1px solid #e0e0e0;
  color: #000;
  border-radius: 4px;
  text-transform: none;
  padding-inline: 32px;
  font-weight: 400;
  font-size: 15px;
  vertical-align: middle;
}

.news-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

@media screen and (max-width: 1199.98px) {
  .news-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

.news-card {
  height: 100%;
  text-decoration: none !important;
}

.news-card-wrapper {
  width: 100%;
  height: 100%;
  transition: all 0.6s ease;
  display: flex;
  flex-direction: column;
}

.news-card .news-card-content {
  padding: 16px 18px 14px;
  transition: all 0.6s ease;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-card .news-card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.news-card .news-card-img img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: all 0.6s ease;
}

.news-card .news-date {
  font-weight: 800;
  font-size: 15px;
  line-height: 20px;
  color: #446a80;
  margin: 0 0 18px;
  transition: all 0.6s ease;
}

.news-card .news-title {
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: #000;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.6s ease;
}

.news-card .news-desc {
  font-weight: 400;
  font-size: 15px;
  line-height: 20px;
  color: #8f8f8f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.6s ease;
}

.news-card .read-more {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0px;
  background: none;
  color: #000;
  border: none;
  transition: all 0.6s ease;
  width: 100%;
  margin-top: auto;
}

.news-card .read-more span {
  display: none;
}

.news-card .read-more img {
  transition: all 0.6s ease;
}

.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.pagination-wrapper .custom-pagination {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  margin: 0;
}

.pagination-wrapper .custom-pagination .pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  color: #000;
  transition: all 0.2s ease;
}

.pagination-wrapper .custom-pagination .pagination-item.active {
  background-color: #446a80;
  color: #fff;
  border-color: #446a80;
}

.pagination-wrapper .custom-pagination .pagination-item.active a{
    color: inherit;
}


.pagination-wrapper .custom-pagination .pagination-prev-next {
  width: auto;
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  color: #000;
  padding-inline: 4px;
  cursor: pointer;
}

.pagination-wrapper .custom-pagination .dots,
.pagination-wrapper .custom-pagination .disabled {
  border: none;
  cursor: default;
}

.pagination-wrapper .custom-pagination .disabled {
  color: #8f8f8f;
}

.pagination-wrapper .custom-pagination li.next {
  color: #000;
  font-weight: 500;
  cursor: pointer;
}

/* Hover effects for numbers */
.pagination-wrapper
  .custom-pagination
  .pagination-item:not(.active):not(.dots):hover {
  background-color: #f5f5f5;
  border-color: #ccc;
}

.news-back-button {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 12px;
  margin-bottom: 28px;
  font-weight: 400;
  font-size: 16px;
  color: #8f8f8f;
}

@media screen and (max-width: 1199.98px) {
  .news-back-button {
    margin-bottom: 20px;
  }
}

.news-details-heading {
  font-weight: 800;
  font-size: 28px;
  color: #446a80;
}

@media screen and (max-width: 1199.98px) {
  .news-details-heading {
    font-size: 22px;
  }
}

.news-details-date {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  gap: 9px;
  padding: 8px 16px;
  background-color: #fafafa;
  border: 1px solid #e3e3e3;
  margin-bottom: 28px;
}

@media screen and (max-width: 1199.98px) {
  .news-details-date {
    margin-bottom: 20px;
  }
}

.news-details-img {
  width: 100%;
  margin-bottom: 24px;
}

@media screen and (max-width: 1199.98px) {
  .news-details-img {
    margin-bottom: 18px;
  }
}

.news-details-img img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin-inline: auto;
}

.news-details-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

@media screen and (max-width: 1199.98px) {
  .news-details-gallery {
    margin-top: 20px;
  }
}

@media screen and (max-width: 575px) {
  .news-details-gallery {
    grid-template-columns: 1fr;
  }
}

.news-details-gallery-img {
  width: 100%;
}

.news-details-gallery-img img {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.most-popular-news {
  margin-top: 60px;
}

@media screen and (max-width: 1199.98px) {
  .most-popular-news {
    margin-top: 40px;
  }
}

.most-popular-news-heading {
  width: 100%;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 30px;
  color: #446a80;
}

@media screen and (max-width: 1199.98px) {
  .most-popular-news-heading {
    font-size: 22px;
    margin-bottom: 20px;
  }
}

.news-card:hover {
  .news-card-wrapper {
    width: 100%;
    height: 100%;
    background-color: #446a80;
  }

  .news-card-img img {
    transform: scale(1.08);
  }

  .news-title,
  .news-desc,
  .read-more,
  .news-date,
  .news-card-content {
    color: #fff;
  }

  .read-more img {
    filter: invert(100%) brightness(1000%);
  }
}
