.cert-section {
  width: 100%;
  height: fit-content;
}

.cert-section .title-wrapper {
  margin-bottom: 50px;
}

.section-title-certs {
  font-family: "Bangers", system-ui;
  font-weight: 400;
  font-style: normal;
  color: var(--text-sec-title);
}

.cert-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 100px;
}

.certcontainer {
  width: fit-content;
}

.cert-wrapper .cert-card {
  height: auto;
  display: flex;
  flex-direction: column;
  background-color: var(--box-color1);
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-wrapper {
  max-width: 1100px;
  padding: 20px 10px;
  margin: 0 60px 35px;
  overflow: hidden;
}

.cert-card .cert-image img {
  width: 100%;
  padding: 10px;
  border-radius: 22px;
  /* aspect-ratio: 16/9; */
  object-fit: contain;
  transition: transform 0.7s ease;
}

.cert-card .cert-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 25px 25px;
}

.cert-card .cert-content .cert-title {
  width: 100%;
  text-align: center;
  font-family: "Lilita One", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.4rem;
}

.cert-wrapper .swiper-pagination-bullet {
  height: 15px;
  width: 15px;
  overflow: hidden;
  opacity: 1;
  background-color: var(--swiper-0);
}

.cert-wrapper .swiper-pagination-bullet-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: var(--swiper-1);
  transform: scaleX(0);
  transform-origin: left center;
  animation: autoplay-loading 5s linear forwards;
}

.cert-container:hover .cert-wrapper .swiper-pagination-bullet-active::before {
  animation-play-state: paused;
}

@keyframes autoplay-loading {
  100% {
    transform: scale(1);
  }
}

.cert-wrapper :where(.swiper-button-prev, .swiper-button-next) {
  color: var(--swiper-0);
  margin-top: -35px;
  transition: all 0.3s ease;
}

.cert-wrapper :where(.swiper-button-prev, .swiper-button-next):hover {
  color: var(--swiper-1);
}

@media (max-width: 768px) {
  .section-title-certs {
    font-size: 3rem;
  }

  .cert-wrapper {
    margin: 0 10px 25px;
  }

  .cert-wrapper :where(.swiper-button-prev, .swiper-button-next) {
    display: none;
  }
}

@media (min-width: 768px) {
  .section-title-certs {
    font-size: 4rem;
  }

  .cert-wrapper .cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 10px var(--box-shadow4);
  }

  .cert-card .cert-image img:hover {
    transform: scale(1.1);
    overflow: visible;
  }
}
