.cert-section {
  background: #fff;
  text-align: center;
  padding: 10px 0 10px;
  position: relative;
  overflow: hidden;
  height: auto;
}

.cert-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: #004aad;
  text-transform: uppercase;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.cert-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 420px;
  transition: transform 0.3s ease;
  padding: 10px 0px 10px;
}

.cert-item {
  position: absolute;
  width: 230px;
  background: #fff;
  border: 3px solid;
  border-image: linear-gradient(to right, #FFCC33, #C7C300) 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: transform 0.25s ease;
}

.cert-item:hover {
  transform: translateY(-6px);
}

.cert-item img {
  width: 100%;
  height: auto;
  display: block;
}

.cert-item p {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  color: #006837;
  font-weight: 700;
  font-size: 13px;
  margin: 0;
  padding: 6px 8px;
  text-align: left;
}

.cert-item.item1 { left: 264px; top: 50px;   width: 180px; height: 160px; z-index: 3; }
.cert-item.item2 { left: 51px;  top: 100px;  width: 180px; height: 260px; z-index: 2; }
.cert-item.item3 { left: 264px; top: 240px;  width: 180px; height: 160px; z-index: 1; }
.cert-item.item4 { left: 480px; top: 30px;   width: 250px; height: 400px; z-index: 4; }
.cert-item.item5 { right: 250px; top: 50px;  width: 180px; height: 160px; z-index: 3; }
.cert-item.item6 { right: 250px; top: 240px; width: 180px; height: 160px; z-index: 1; }
.cert-item.item7 { right: 39px;  top: 100px; width: 180px; height: 260px; z-index: 2; }

.cert-swiper {
  display: none;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 50px;
}

.cert-swiper .swiper-slide {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 3px solid;
  border-image: linear-gradient(to right, #FFCC33, #C7C300) 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease;
  height: 360px;
}

.cert-swiper .swiper-slide:hover {
  transform: translateY(-6px);
}

.cert-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  flex-shrink: 0;
}

.cert-swiper .swiper-slide p {
  background: rgba(255, 255, 255, 0.9);
  color: #006837;
  font-weight: 700;
  font-size: 16px;
  margin: 0;
  padding: 8px;
  text-align: left;
}

.swiper-pagination-bullet {
  background: #ccc;
  opacity: 1;
  width: 12px;
  height: 12px;
  margin: 0 5px !important;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #00a651;
  transform: scale(1.3);
}

.cert-swiper .swiper-pagination {
  position: relative;
  margin-top: 20px;
}

@media (max-width: 1000px) and (min-width: 601px) {
  .cert-wrapper {
    transform: scale(0.85);
    transform-origin: top center;
    height: auto;
  }

  .cert-section h3 {
    font-size: 26px;
    margin-bottom: 40px;
  }
}

@media (max-width: 600px) {
  .cert-wrapper {
    display: none;
  }
  .cert-swiper {
    display: block;
  }
}
