
.scc-container {
  position: relative;
  width: 100%;
}

.scc-wrapper {
  overflow-x: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 40px 0;
}

.scc-wrapper::-webkit-scrollbar {
  display: none;
}

.scc-track {
  display: flex;
  gap: 20px;
  padding: 0 70px;
  width: max-content;
}

.scc-card {
  flex: 0 0 260px;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;             
  background-size: cover;
  background-position: center;
  position: relative;
  text-decoration: none;
  color: #fff;
  transition: all 0.4s ease;
}

.scc-card:hover {
  flex: 0 0 420px;
}


.scc-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  padding: 20px;
  box-sizing: border-box;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.95),
    rgba(0,0,0,0.6),
    transparent
  );

  border-radius: 0 0 20px 20px;

  max-height: 65%;              
  overflow: hidden;             
}

.scc-overlay h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.3;
}

.scc-overlay p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;

  display: -webkit-box;
  -webkit-line-clamp: 3;          
  -webkit-box-orient: vertical;

  overflow: hidden;
  text-overflow: ellipsis;

  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scc-card:hover .scc-overlay p {
  opacity: 1;
  transform: translateY(0);
}

.scc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.scc-nav.left {
  left: 10px;
}

.scc-nav.right {
  right: 10px;
}

@media (max-width: 768px) {
  .scc-card {
    flex: 0 0 220px;
    height: 320px;
  }

  .scc-card:hover {
    flex: 0 0 220px;
  }

  .scc-overlay {
    max-height: 70%;
  }
}
