/* ================= Section 9: 26-Year Official SolarPlay EPC Portfolio ================= */
.epc-cases-sec {
  background: #ffffff;
  width: 100%;
  padding: 108px 0 124px;
  border-top: 1px solid #eef0f3;
  overflow: hidden;
}

.epc-cases-head {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto 52px;
  padding-inline: var(--container-pad);
  text-align: center;
}

.epc-cases-title {
  margin: 0;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.035em;
  color: #191f28;
  word-break: keep-all;
}

.epc-cases-title span {
  display: block;
}

/* Full-Bleed Slider Stage with Soft Left/Right Misty Fade Veils */
.epc-slider-stage {
  position: relative;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
}

.epc-veil {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(72px, 12vw, 220px);
  z-index: 4;
  pointer-events: none;
}

.epc-veil--left {
  left: 0;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.92) 28%,
    rgba(255, 255, 255, 0.45) 66%,
    rgba(255, 255, 255, 0) 100%
  );
}

.epc-veil--right {
  right: 0;
  background: linear-gradient(
    270deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.92) 28%,
    rgba(255, 255, 255, 0.45) 66%,
    rgba(255, 255, 255, 0) 100%
  );
}

.epc-slider-viewport {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}

.epc-slider-viewport::-webkit-scrollbar {
  display: none;
}

.epc-slider-viewport.is-dragging {
  cursor: grabbing;
}

.epc-slider-track {
  display: flex;
  width: max-content;
  padding: 6px 0 14px;
}

.epc-slider-group {
  display: flex;
  gap: 22px;
  padding-right: 22px;
}

/* Portrait Photo Card (Clean Editorial Style, Zero Quotes) */
.epc-card {
  position: relative;
  width: 304px;
  height: 408px;
  flex-shrink: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.epc-card:hover {
  transform: translateY(-5px);
}

.epc-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.epc-card:hover .epc-card__img {
  transform: scale(1.04);
}

.epc-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 15, 26, 0) 0%,
    rgba(10, 15, 26, 0.08) 56%,
    rgba(10, 15, 26, 0.78) 100%
  );
  pointer-events: none;
}

.epc-card__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px 24px 22px;
  display: flex;
  align-items: flex-end;
}

.epc-card__name {
  font-size: 18.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.35;
  word-break: keep-all;
}

@media (max-width: 1024px) {
  .epc-cases-title {
    font-size: 32px;
  }
  .epc-card {
    width: 276px;
    height: 372px;
  }
}

@media (max-width: 680px) {
  .epc-cases-sec {
    padding: 68px 0 84px;
  }
  .epc-cases-head {
    margin-bottom: 32px;
  }
  .epc-cases-title {
    font-size: clamp(23px, 6vw, 28px);
    line-height: 1.38;
  }
  .epc-veil {
    width: 38px;
  }
  .epc-slider-group {
    gap: 14px;
    padding-right: 14px;
  }
  .epc-card {
    width: 244px;
    height: 336px;
    border-radius: 20px;
  }
  .epc-card__content {
    padding: 20px 18px;
    gap: 12px;
  }
  .epc-card__desc {
    font-size: 15.5px;
  }
  .epc-card__name {
    font-size: 14.5px;
  }
  .epc-card__spec {
    font-size: 12.5px;
  }
}

.epc-cases-more {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  padding-inline: var(--container-pad, 24px);
}

.epc-cases-more__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: #f2f6fc;
  border: 1px solid #d8e4f8;
  color: #191f28;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.epc-cases-more__btn svg {
  width: 18px;
  height: 18px;
  color: #2272eb;
  transition: transform 0.18s ease;
}

.epc-cases-more__btn:hover {
  background: #e8f1ff;
  border-color: #b7d0fa;
  color: #2272eb;
  transform: translateY(-2px);
}

.epc-cases-more__btn:hover svg {
  transform: translateX(3px);
}
