/* carousel.css */

.cs-section {
  margin: 0;
  padding: 0;
}

.cs-header {
  margin-bottom: 1.25rem;
  padding-left: 4px;
}
.cs-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.cs-desc {
  font-size: 0.85rem;
  color: #888;
  margin: 4px 0 0;
}

/* track */
.cs-track-wrap {
  overflow: hidden;
  padding: 12px 0;
}
.cs-track {
  display: flex;
  gap: 16px;
  align-items: center;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* slide */
.cs-slide {
  flex-shrink: 0;
  width: 60%;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.07);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity  0.45s ease;
}
.cs-slide::after {
  content: '';
  display: block;
  padding-bottom: 58%;
}
.cs-slide-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  background-size: cover;
  background-position: center;
}
.cs-slide:not(.active) { opacity: 0.4; transform: scale(0.9); }
.cs-slide.active        { opacity: 1;   transform: scale(1); }

.cs-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 1;
  padding: 32px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}

/* controls */
.cs-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}
.cs-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #d0d0d0;
  background: #fff;
  color: #1a1a1a;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
}
.cs-btn:hover  { background: #f0f0f0; }
.cs-btn:active { transform: scale(0.92); }

.cs-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}
.cs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: width 0.25s, background 0.25s, border-radius 0.25s;
}
.cs-dot.active {
  width: 20px;
  border-radius: 3px;
  background: #1a1a1a;
}
