/* --- Zhongyu Certificate Component Styles --- */

/* Section container */
.zhongyu-certificate {
  padding: 120px 0;
  background: linear-gradient(180deg, rgba(150, 203, 255, 0.60) 0%, rgba(150, 203, 255, 0.00) 100%), #EBEBEB;
  overflow: hidden; /* Hide overflow for carousel effect */
}

@media (min-width: 1800px) {
  .container {
    max-width: 1600px;
  }
}

/* Section Header */
.zhongyu-certificate-header {
  text-align: center;
  margin-bottom: 50px;
}

.zhongyu-certificate-title {
  font-family: var(--title-font-family, 'Roboto');
  font-size: var(--zhongyu-inner-title, 64px);
  font-weight: 700;
  line-height: 1.17;
  background: linear-gradient(90deg, #0C3054 0%, #1B6ABA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin: 0 0 11px 0;
}

.zhongyu-certificate-description {
  font-family: var(--font-family, 'Roboto');
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  color: #595757;
  max-width: 1286px;
  margin: 0 auto;
}

/* Swiper Carousel */
.zhongyu-certificate-swiper {
  width: 100%;
  padding-bottom: 50px; /* Reduced padding */
}

/* Swiper wrapper with reflection effect */
.zhongyu-certificate-swiper .swiper-wrapper {
  /* Align items to the bottom */
  align-items: flex-end;
}

.zhongyu-certificate-swiper .swiper-slide {
  display: flex;
  align-items: flex-end;
  /* The slide itself no longer needs transform properties */
}

/* Certificate item now handles scaling and origin */
.zhongyu-certificate-item {
  width: 100%;
  aspect-ratio: 418 / 591;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  -webkit-box-reflect: below 0px linear-gradient(transparent 70%, rgba(0, 0, 0, 0.15));
  
  /* Critical for bottom-aligned scaling */
  transform-origin: bottom center;
  transition-property: transform; /* Animate only transform */
}

.zhongyu-certificate-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Swiper Pagination */
.swiper-pagination {
  bottom: 20px !important; /* Position above reflection */
}


/* --- Responsive Styles (Desktop First) --- */

/* Medium screens - tablet */
@media (max-width: 992px) {
  .zhongyu-certificate {
    padding: 80px 0;
  }
  .zhongyu-certificate-title {
    font-size: 48px;
  }
  .zhongyu-certificate-description {
    font-size: 14px;
  }
  .zhongyu-certificate-swiper {
    padding-bottom: 40px;
  }
}

/* Small screens - mobile */
@media (max-width: 768px) {
  .zhongyu-certificate {
    padding: 60px 0;
  }
  .zhongyu-certificate-title {
    font-size: 36px;
  }
  .zhongyu-certificate-description {
    line-height: 1.8;
  }
  .zhongyu-certificate-swiper {
    padding-bottom: 30px;
  }
  .swiper-pagination {
    bottom: 10px !important;
  }
}

@media (max-width: 576px) {
  .zhongyu-certificate-title {
    font-size: 28px;
  }
}
