:root {
  --font-family: 'Montserrat'; /* Replace with your desired font family */
  --border-radius: 1.5625rem;
  --offset-top: -1.5625rem;
}

.news-list-banner-section {
  position: relative;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  background: linear-gradient(115deg, #9278e8 -5.09%, #5d44c7 103.17%);
  padding: 2.5rem 0 calc(2.5rem - var(--offset-top)) 0;
  margin-top: var(--offset-top);
  z-index: 1;
}

.container {
}

.news-banner-wrapper {
  border-radius: var(--border-radius);
  background: linear-gradient(208deg, #fadc2c 11.83%, #ecc81a 76.75%);
  display: flex;
  max-width: 47.375rem;
  max-height: 19.6875rem;
  position: relative;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  overflow: hidden;
}

@media screen and (max-width: 552px) {
  .news-banner-wrapper {
    flex-flow: column;
  }
  .news-banner-wrapper {
    max-height: fit-content;
  }
  .news-banner-content {
    padding: 1rem 0;
  }
}

.news-image-swiper {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.news-image-swiper .swiper-wrapper {
  display: flex;
  max-width: 26.25rem;
}

.news-banner-image {
  flex-shrink: 0;
}

.news-banner-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3; /* 840px -> 52.5rem, 630px -> 39.375rem */
  object-fit: cover;
}

.news-banner-content {
  padding-left: 1.25rem;
  padding-right: 1.88rem;
  max-width: 21.125rem;
  display: flex;
  flex-flow: column;
  justify-content: center;
}

.news-badge-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 1.25rem;
  background: var(
    --1,
    linear-gradient(115deg, #9278e8 -5.09%, #5d44c7 103.17%)
  );
  width: 3.84375rem;
  height: 1.375rem;
  aspect-ratio: 3.84375 / 1.375;
  margin-bottom: 0.94rem;

  /* font  */
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.625rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}
.news-badge-btn:hover{
  color:#fff; 
}
.news-content-wrapper {
}

.news-content-item {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.news-content-wrapper .active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.news-title {
  color: #000;
  font-family: var(--font-family);
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  margin-bottom: 0.62rem;
}

.news-description {
  color: #000;
  font-family: Montserrat;
  font-size: 0.625rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin-bottom: 1.88rem;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5; /* 这里是超出几行省略 */
  overflow: hidden;
}

/* Swiper Pagination */
.swiper-pagination {
  display: flex;
  gap: 0.12rem;
}

.swiper-pagination-bullet {
  display: inline-block;
  width: 0.1875rem;
  height: 0.1875rem;
  aspect-ratio: 1/1;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  width: 0.8125rem;
  height: 0.1875rem;
  aspect-ratio: 8.125 / 1.875;
  border-radius: 1.25rem;
  background: var(
    --1,
    linear-gradient(115deg, #9278e8 -5.09%, #5d44c7 103.17%)
  );
}
