.yawei-featured-news {
  padding: 80px 0;
  background-color: var(--bg-color);
}

.yawei-featured-news .section-title {
  font-family: var(--title-font-family);
  font-weight: 700;
  line-height: 1em;
  margin-bottom: 50px;
}

.yawei-featured-news .featured-news-main {
  margin-bottom: 30px;
}

.yawei-featured-news .news-image {
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 10px;
}

.yawei-featured-news .news-image img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.yawei-featured-news .news-image:hover img {
  transform: scale(1.05);
}

.yawei-featured-news .featured-news-main .news-title {
  font-family: var(--title-font-family);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15em;
  color: var(--title-text-color);
  margin-bottom: 15px;
  transition: color 0.3s ease;
}


.yawei-featured-news .news-excerpt {
  font-family: var(--font-family);
  font-size: 18px;
  line-height: 1.67em;
  letter-spacing: -0.999999956952201%;
  color: #797979;
  margin-bottom: 15px;
}

.yawei-featured-news .news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.yawei-featured-news .news-date {
  font-family: var(--font-family);
  font-size: 18px;
  line-height: 1.15em;
  letter-spacing: -0.999999956952201%;
  color: #797979;
}

.yawei-featured-news .read-more {
  font-family: var(--font-family);
  font-size: 18px;
  line-height: 1.15em;
  letter-spacing: -0.999999956952201%;
  color: #0C0C0C;
  text-decoration: none;
  transition: color 0.3s ease;
}

.yawei-featured-news .read-more:hover {
  color: #e61f2d;
}

.yawei-featured-news .news-list {
  padding-left: 30px;
}

.yawei-featured-news .news-item {
  padding: 20px 0;
  border-bottom: 1px solid #BEBEBE;
}
.yawei-featured-news .news-item:nth-child(1){
  padding-top: 0;
}


.yawei-featured-news .news-item .news-title {
  font-family: var(--title-font-family);
  font-size: 22px;
  line-height: 1.3em;
  letter-spacing: -2.500000054186041%;
  color: #BEBEBE;
  transition: color 0.4s ease;
}

.yawei-featured-news .news-item .news-title a {
  color: var(--title-text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.yawei-featured-news .news-item .news-title a:hover {
  color: var(--color-primary);
}

/* Accordion Styles */
.yawei-featured-news .news-item-toggle {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  cursor: pointer;
  gap: 15px;
}

.yawei-featured-news .accordion-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 5px;
  transition: transform 0.4s ease;
}

.yawei-featured-news .accordion-icon::before,
.yawei-featured-news .accordion-icon::after {
  content: '';
  position: absolute;
  background-color: #BEBEBE;
  transition: background-color 0.4s ease;
}

.yawei-featured-news .accordion-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  margin-top: -1px;
}

.yawei-featured-news .accordion-icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  margin-left: -1px;
}

.yawei-featured-news .news-item.is-open .news-title {
  color: #0C0C0C;
}

.yawei-featured-news .news-item.is-open .accordion-icon {
  transform: rotate(45deg);
}

.yawei-featured-news .news-item.is-open .accordion-icon::before,
.yawei-featured-news .news-item.is-open .accordion-icon::after {
  background-color: #0C0C0C;
}

.yawei-featured-news .news-date-visible-on-open {
  display: block;
  color: #797979;
  font-family: Arimo, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.18px;
  margin-bottom: 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.yawei-featured-news .news-item.is-open .news-date-visible-on-open {
  max-height: 30px;
}

.yawei-featured-news .accordion-body {
  /* max-height and transition are now handled by jQuery's slideToggle */
}

.yawei-featured-news .accordion-inner {
  padding: 15px 0 15px 0;
}

.yawei-featured-news .news-item.is-open .accordion-body {
  /* This class is still useful for state, but max-height is not needed */
}

.yawei-featured-news .accordion-body .news-excerpt {
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yawei-featured-news .accordion-body .news-meta {
  justify-content: flex-start;
  gap: 20px;
}

@media (max-width: 991px) {
  .yawei-featured-news {
    padding: 50px 0;
  }

  .yawei-featured-news .section-title {
    font-size: 40px;
    margin-bottom: 30px;
  }

  .yawei-featured-news .news-list {
    padding-left: 0;
    margin-top: 30px;
  }

  .yawei-featured-news .featured-news-main{
    display: none;
  }
  .yawei-featured-news .section-title{
    margin-bottom: 0;
  }
  .yawei-featured-news .container{
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .yawei-featured-news{
    padding: 25px 0;
  }
  .yawei-featured-news .section-title {
    font-size: 20px;
  }

  .yawei-featured-news .featured-news-main .news-title {
    font-size: 20px;
  }

  .yawei-featured-news .news-excerpt {
    font-size: 16px;
  }

  .yawei-featured-news .news-item .news-title {
    font-size: 16px;
  }
  .yawei-featured-news .read-more{
    font-size: 16px;
  }
} 