/* ========== Brands Section ========== */
.brands-section {
  padding: 80px 0;
  background: white;
  overflow: hidden;
}

.brands-title {
  font-size: var(--big-font-size);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 74px;
}

.brands-swiper {
  overflow: hidden;
}

.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  height: 60px;
  /* opacity: 0.5; */
  transition: opacity 0.3s ease;
}

.brand-item:hover {
  opacity: 1;
}

.brand-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* filter: grayscale(100%); */
  transition: filter 0.3s ease;
}

.brand-item:hover img {
  filter: grayscale(0%);
}
.brands-swiper{
  position: relative;
}
.brands-swiper::before{
  position: absolute;
  content: '';
  left: 0;
  top: 0;
  background: rgba(255, 255, 255, 0.5);
  width: 30%;
  height: 100%;
  z-index: 2;
}
.brands-swiper::after{
  position: absolute;
  content: '';
  right: 0;
  top: 0;
  background: rgba(255, 255, 255, 0.4);
  width: 30%;
  height: 100%;
  z-index: 2;
}
/* ========== News Section ========== */
.news-section {
  padding: 80px 0;
  background: white;
}

.news-title {
  font-size: var(--big-font-size);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 56px;
}

.news-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.news-featured {
  cursor: pointer;
  position: relative;
}
.news-featured::after{
  position: absolute;
  content: '';
  right: -25px;
  top: 0;
  height: 95%;
  width: 1px;
  border-right: 2px dashed var(--color-border);
}
.news-featured-image {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.news-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  /* aspect-ratio: 4 / 3; */
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.news-featured-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
  padding: 16px 0;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-list-item {
  display: flex;
  /* align-items: center; */
  gap: 20px;
  padding: 24px 0;
  border-bottom: 2px dashed var(--color-border);
  text-decoration: none;
  transition: background 0.3s ease;
}

.news-list-item:first-child {
  padding-top: 0;
}

.news-list-item:last-child {
  border-bottom: none;
}


.news-list-item:hover .news-list-thumb img{
  transform: scale(1.1);
}
.news-list-thumb {
  width: 120px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.news-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all .4s;
}

.ind-news-list-title {
  font-size: 24px ;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
  transition: color 0.3s ease;
}

.news-list-item:hover .ind-news-list-title {
  color: var(--color-primary);
}

/* News Responsive */
@media (max-width: 1024px) {
  .news-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .news-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }

  .news-list-item {
    flex: 0 0 calc(33.333% - 14px);
    /* flex-direction: column; */
    border-bottom: none;
    border-bottom: 1px solid var(--color-border);
    /* border-radius: 12px; */
    /* padding: 16px; */
  }

  /* .news-list-item:hover {
    padding-left: 16px;
    padding-right: 16px;
  } */

  .news-list-thumb {
    width: 100%;
    height: 120px;
  }
}

@media (max-width: 768px) {
  .news-featured-title{font-size: 18px;}
  .cta-desc{font-size: 16px;}
  .news-section {
    padding: 60px 0;
  }

  .news-title {
    font-size: 28px;
  }

  .news-list-item {
    flex: 0 0 100%;
  }

  .news-list-thumb {
    width: 100px;
    height: 70px;
  }
}

/* ========== CTA Section ========== */
.cta-section {
  padding: 0;
}

.cta-inner {
  background: url(../img/wenhao.png) no-repeat center, radial-gradient(circle, rgba(46, 105, 203, 1) 0%, rgba(25, 63, 125, 1) 100%);
  background-size: auto 90%, 100% 100%;
  background-position: center, center;
  background-repeat: no-repeat, repeat;
  padding: 80px 0;
  text-align: center;
}

.cta-title {
  font-size: 36px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}

/* .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: white;
  color: var(--color-primary);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
} */
