
.custom-slider-section {
  width: 100%;
  padding: 60px 0;
  background: #f7f7f7;
  overflow: hidden;
}

.custom-slider-header {
  text-align: center;
  margin-bottom: 35px;
  padding: 0 20px;
}

.custom-slider-header h2 {
  font-size: 38px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.custom-slider-header p {
  font-size: 15px;
  color: #666;
  margin: 0;
}

.custom-slider-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.custom-slider-track {
  display: flex;
  width: max-content;
  animation: scrollSlider 38s linear infinite;
}

.custom-slider-track:hover {
  animation-play-state: paused;
}

.custom-slide {
  width: 240px;
  flex-shrink: 0;
  margin-right: 18px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.custom-slide:hover {
  transform: translateY(-6px);
}

.custom-slide img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.custom-slide-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.72), transparent);
  color: #fff;
}

.custom-slide-overlay span {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@keyframes scrollSlider {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-258px * 7));
  }
}

@media (max-width: 768px) {
  .custom-slider-section {
    padding: 40px 0;
  }

  .custom-slider-header h2 {
    font-size: 28px;
  }

  .custom-slide {
    width: 180px;
    margin-right: 12px;
  }

  @keyframes scrollSlider {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-192px * 7));
    }
  }
}
