.cert-carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cert-carousel-wrapper {
  /* max-width: 1280px; */
  width: 100%;
  border-radius: 2rem;
  transition: box-shadow 0.2s;
}


.cert-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(0, 20, 40, 0.04);
}

.cert-carousel-track {
  display: flex;
  gap: 1.2rem;
  padding: 1.5rem 1rem;
  animation: scrollCertificates 60s linear infinite;
  width: max-content;
  will-change: transform;
}

.cert-carousel-item {
  flex: 0 0 auto;
  width: 180px; 
  height: 130px;
  /* background: linear-gradient(0deg, #2d150222, #c30eb444 100%); */
  filter: grayscale(100%);
  border-radius: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.cert-carousel-item:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 20, 40, 0.1);
  z-index: 2;
}

/* imagens – responsivas e centralizadas */
.cert-carousel-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 0.6rem;
  transition: filter 0.2s;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.02));
}

@keyframes scrollCertificates {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.cert-carousel:hover .cert-carousel-track {
  animation-play-state: paused;
}

@media (max-width: 640px) {
  .cert-carousel-item {
    width: 150px;
    height: 110px;
  }
  .cert-carousel-track {
    gap: 0.8rem;
    padding: 1rem 0.6rem;
  }
  .cert-carousel-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .cert-carousel-item {
    width: 120px;
    height: 90px;
  }
  .cert-carousel-track {
    gap: 0.6rem;
    padding: 0.8rem 0.4rem;
  }
}

.cert-carousel-wrapper {
  transition: all 0.2s;
}

.cert-carousel-track.js-cloned {
  animation: scrollCertificates 60s linear infinite;
}

.cert-carousel::before,
.cert-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 48px;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

@media (max-width: 600px) {
  .cert-carousel::before,
  .cert-carousel::after {
    width: 24px;
  }
}
