/* ============================================
   커넥트온 - 영업 프로세스 슬라이드 v7
   완전 px 기반 — 짤림 없는 완벽 레이아웃
============================================ */

.process-slide-section {
  background: #0d0d1a;
  padding: 64px 0 0;
  overflow: hidden;
  position: relative;
}
.process-slide-section .container { text-align: center; }
.process-slide-section .section-label {
  color: #ff6b35;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.process-slide-section .section-title {
  color: #fff;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 12px;
}
.process-subtitle {
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ── 슬라이더 전체 래퍼 ── */
.ps-slider-wrap {
  position: relative;
  margin-top: 36px;
  width: 100%;
}

/* ── 화살표 ── */
.ps-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ps-arrow:hover {
  background: #ff6b35;
  border-color: #ff6b35;
  transform: translateY(-50%) scale(1.08);
}
.ps-prev { left: 16px; }
.ps-next { right: 16px; }

/* ── 트랙 외부: 뷰포트 ── */
.ps-track-outer {
  width: 100%;
  overflow: hidden;
  display: block;
  position: relative;
}

/* ── 트랙: JS가 width·transform 설정 ── */
.ps-track {
  display: flex;
  flex-wrap: nowrap;
  will-change: transform;
  transition: transform 0.52s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 개별 슬라이드 ──
   JS가 width/minWidth를 outer 픽셀 너비로 확정
   PC: 좌(이미지55%) 우(텍스트45%) 가로 2단
   모바일: 세로 1단 (CSS로 전환)
── */
.ps-slide {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  height: 460px; /* PC 고정 높이 */
  /* width는 JS가 px로 설정 */
}

/* ── 이미지 영역 (PC: 55%) ── */
.ps-img-wrap {
  flex: 0 0 55%;
  width: 55%;
  position: relative;
  overflow: hidden;
  /* 높이는 부모 .ps-slide 가 stretch로 채움 */
  background: #111;
}
.ps-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}
.ps-slide.active .ps-img-wrap img {
  transform: scale(1.04);
}

/* ── 텍스트 영역 (PC: 45%) ── */
.ps-content {
  flex: 0 0 45%;
  width: 45%;
  background: #13131f;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255,255,255,0.07);
  box-sizing: border-box;
  overflow-y: auto;
}

/* ── 배지 ── */
.ps-img-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
}
.ps-step-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 30px;
  background: #ff6b35;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 3px 12px rgba(255,107,53,0.45);
}
.ps-step-badge.badge-green { background: #22c55e; box-shadow: 0 3px 12px rgba(34,197,94,0.4); }
.ps-step-badge.badge-fire  { background: linear-gradient(135deg,#ef4444,#f97316); }
.ps-step-badge.badge-gold  { background: linear-gradient(135deg,#f59e0b,#fbbf24); }

/* ── 스텝 레이블 ── */
.ps-step-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ff6b35;
  margin-bottom: 10px;
}
.ps-step-label.step-green { color: #22c55e; }
.ps-step-label.step-fire  { color: #f97316; }
.ps-step-label.step-gold  { color: #f59e0b; }

.ps-title {
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 14px;
}
.ps-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 18px;
}
.ps-desc strong { color: #ff6b35; }

.ps-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ps-checklist li {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.8);
  padding: 8px 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 7px;
  border-left: 3px solid #ff6b35;
  font-weight: 500;
}
.ps-slide[data-index="1"] .ps-checklist li { border-left-color: #22c55e; }
.ps-slide[data-index="2"] .ps-checklist li { border-left-color: #f97316; }
.ps-slide[data-index="3"] .ps-checklist li { border-left-color: #f59e0b; }

/* ── 도트 내비게이션 ── */
.ps-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.ps-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.22);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.25s;
}
.ps-dot.active {
  background: #ff6b35;
  width: 26px;
  border-radius: 5px;
}

/* ── 슬라이드 번호 ── */
.ps-counter {
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: 1px;
}
#psCurrentNum { color: #ff6b35; font-weight: 800; }

/* ── 진입 애니메이션 ── */
@keyframes psFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ps-slide.slide-animate .ps-content {
  animation: psFadeUp 0.45s ease forwards;
}

/* ── 하단 메시지 ── */
.ps-bottom-msg {
  margin-top: 40px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-top: 1px solid rgba(255,107,53,0.25);
  padding: 28px 0;
}
.ps-bottom-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ps-bottom-icon { font-size: 2rem; flex-shrink: 0; }
.ps-bottom-text { flex: 1; min-width: 180px; }
.ps-bottom-text strong {
  display: block;
  font-size: 1.05rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 4px;
}
.ps-bottom-text p {
  color: rgba(255,255,255,0.55);
  font-size: 0.86rem;
  margin: 0;
  line-height: 1.6;
}

/* ══════════════════════════════════════
   태블릿 ≤ 860px — 세로 1단 전환
══════════════════════════════════════ */
@media (max-width: 860px) {
  .ps-slide {
    flex-direction: column !important;
    height: auto !important; /* 태블릿·모바일은 자동 높이 */
  }
  .ps-img-wrap {
    flex: none !important;
    width: 100% !important;
    min-height: 260px !important;
    height: 260px !important;
    position: relative !important;
  }
  .ps-content {
    flex: none !important;
    width: 100% !important;
    min-height: unset !important;
    padding: 28px 24px !important;
  }
  /* 화살표: 이미지 중앙 높이에 위치 */
  .ps-arrow {
    top: 130px;
    transform: none;
  }
  .ps-arrow:hover { transform: scale(1.08); }
  .ps-prev { left: 10px; }
  .ps-next { right: 10px; }
  .ps-bottom-inner { flex-direction: column; text-align: center; gap: 14px; }
}

/* ══════════════════════════════════════
   모바일 ≤ 520px
══════════════════════════════════════ */
@media (max-width: 520px) {
  .process-slide-section { padding: 48px 0 0; }
  .ps-img-wrap { height: 210px !important; min-height: 210px !important; }
  .ps-content  { padding: 22px 18px !important; }
  .ps-title    { font-size: 1rem !important; }
  .ps-desc     { font-size: 0.82rem !important; margin-bottom: 12px; }
  .ps-checklist li { font-size: 0.78rem; padding: 6px 12px; }
  .ps-arrow    { width: 36px !important; height: 36px !important; font-size: 0.9rem !important; top: 105px; }
  .ps-prev { left: 6px; }
  .ps-next { right: 6px; }
}
