.weilan-news-category {
  position: absolute;
  z-index: 5;
  transform: translateY(calc(-5rem - 100%));
  width: 100%;
}

.weilan-news-category_tabs {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.weilan-news-category_list {
  width: max-content;
  display: flex;
  overflow: hidden;
  background: #fff;
  border-radius: 100px;
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.15);
}

.weilan-news-category_item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9375rem 2.25rem;

  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
  background: transparent;
}

.weilan-news-category_item::before {
  content: '';
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #0b62c1 0%, #54dbcc 100%);
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s;
  z-index: 0;
}

.weilan-news-category_item.active::before {
  visibility: visible;
  opacity: 1;
}

.weilan-news-category_item:hover::before {
  visibility: visible;
  opacity: 1;
}

.weilan-news-category_item:hover h4,
.weilan-news-category_item.active h4 {
  color: #fff;
}

.weilan-news-category_item h4 {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
  font-family: var(--font-family);
  font-size: var(--font-size-h4);
  font-weight: 500;
  line-height: 150%;
  color: var(--text-color, #333);
  transition: all 0.3s;
}

@media screen and (max-width: 1024px) {
  .weilan-news-category {
    position: relative;
    transform: none;
    padding: 2rem 0px;
  }
}

@media screen and (max-width: 768px) {
  .weilan-news-category_list {
    flex-direction: column;
    border-radius: 0px;
    box-shadow: none;
    background-color: transparent;
    gap: 12px;
    justify-content: center;
    align-items: center;
  }
  .weilan-news-category_item {
    border-radius: 100px;
    background-color: #fff;
    width: max-content;
  }
}

@media screen and (max-width: 576px) {
}
