.cert-carousel-wrapper {
  margin-bottom: 2.5rem;
}

.cert-carousel-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fbbf24;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cert-carousel-title::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #fbbf24;
}

.cert-carousel {
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.cert-carousel:hover .cert-carousel-track {
  animation-play-state: paused;
}

.cert-carousel-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: cert-scroll 40s linear infinite;
}

.cert-carousel-item {
  flex-shrink: 0;
  width: 200px;
  height: 280px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.15);
  background: rgba(20, 24, 51, 0.6);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s, transform 0.3s;
}

.cert-carousel-item:hover {
  border-color: rgba(251, 191, 36, 0.4);
  transform: scale(1.03);
}

.cert-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: rgba(11, 14, 26, 0.8);
  padding: 0.5rem;
}

@keyframes cert-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .cert-carousel-item {
    width: 160px;
    height: 224px;
  }

  .cert-carousel-track {
    gap: 1rem;
    animation-duration: 30s;
  }
}
