/* ===== C1 섹션 전체 ===== */

.c1{
  background:#f6f6f6;              /* 시안처럼 아주 연한 회색 배경 */
  word-break: keep-all;
}

.c1-inner{
  max-width:1360px;
  margin:0 auto;
  padding:120px 20px 140px;
  text-align:center;
}

/* 상단 아이콘 + 타이틀 */

.c1-head{
  margin-bottom:80px;
}

.c1-icon{
  width:64px;
  height:64px;
  border-radius:50%;
  margin:0 auto 24px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#ffffff;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}

.c1-icon span{
  font-size:32px;
}

.c1-heading{
  font-size:32px;
  font-weight:500;
  margin:0 0 18px;
  color:#111;
  letter-spacing:-0.02em;
}

.c1-heading-em{
  font-weight:700;
}

.c1-sub{
  margin:0;
  font-size:18px;
  color:#6b6b76;
  letter-spacing:-0.01em;
}

.c1-sub-em{
  font-weight:700;
  color:#333;
}

.c1-head-divider{
  width:36px;
  height:3px;
  border-radius:999px;
  background:#1c425f;
  margin:28px auto 0;
}

/* 하단 3개의 카드 레이아웃 */

.c1-cases{
  margin-top:24px;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:32px;
  align-items:stretch;
}

.c1-case{
  display:flex;
  flex-direction:column;
  align-items:stretch;
}

/* 케이스 하단 메타 정보 pill */

.c1-case-meta{
  margin:16px auto 0;
  padding:10px 22px;
  font-size:18px;
  color:#555e6b;
  background:#e9edf3;
  border-radius:999px;
  display:inline-block;
}

/* ===== 세로 Before / After 슬라이더 공통 ===== */

.ba{
  position:relative;
  width:100%;
  height:280px;
}

.ba--vertical{
  display:flex;
  flex-direction:column;
}

@media (max-width:1024px){
  .ba{
    height:260px;
  }
}

@media (max-width:768px){
  .ba{
    height:230px;
  }
}

/* 이미지 영역 */

.ba__stage{
  position:relative;
  width:100%;
  height:100%;
  flex:1;
  overflow:hidden;
  border-radius:16px;
  background:#000;
  box-shadow:0 14px 28px rgba(0,0,0,.15);
}

.ba__img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

/* BEFORE(위쪽) 이미지는 위에서부터 v% 만큼 보여주고, 아래는 AFTER가 보이게 한다 */
.ba__img--before{
  clip-path:inset(0 0 50% 0);   /* JS에서 변경 */
}

/* BEFORE / AFTER 텍스트 라벨 */

.ba__label{
  position:absolute;
  left:18px;
  z-index:3;
  font-size:13px;
  font-weight:500;
  letter-spacing:.06em;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(0,0,0,.6);
  color:#fff;
}

.ba__label--before{
  top:14px;
}

.ba__label--after{
  bottom:14px;
}

/* 핸들 (수평 라인 + 동그라미 knob) */

.ba__handle{
  position:absolute;
  left:0;
  right:0;
  top:50%;
  transform:translateY(-50%);
  height:0;
  border:0;
  background:transparent;
  cursor:ns-resize;
  outline:none;
}

/* 가운데 가로줄 */
.ba__handle::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:calc(50% - 1px);
  height:2px;
  background:#ffffff;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.25) inset,
    0 0 0 1px rgba(255,255,255,.5);
}

/* 중앙 동그라미 knob */
.ba__knob{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:40px;
  height:40px;
  border-radius:50%;
  background:#ffffff;
  box-shadow:
    0 10px 18px rgba(0,0,0,.25),
    0 0 0 2px rgba(255,255,255,.9);
    z-index: 1;
}

/* knob 안에 위/아래 아이콘 모양 (삼각형 느낌) */
.ba__knob::before,
.ba__knob::after{
  content:"";
  position:absolute;
  left:50%;
  width:10px;
  height:10px;
  border-left:2px solid #1c425f;
  border-bottom:2px solid #1c425f;
  transform-origin:center;
}

/* 위쪽 화살표 */
.ba__knob::before{
  top:11px;
  transform:translateX(-50%) rotate(135deg);
}

/* 아래쪽 화살표 */
.ba__knob::after{
  bottom:11px;
  transform:translateX(-50%) rotate(-45deg);
}

/* 키보드 포커스 시 강조 */
.ba__handle:focus-visible .ba__knob{
  box-shadow:
    0 0 0 4px rgba(32,134,200,.35),
    0 10px 18px rgba(0,0,0,.25);
}

/* 반응형 조정 */

@media (max-width:1024px){
  .c1-inner{
    padding:80px 20px 110px;
  }
  .c1-heading{
    font-size:28px;
  }
  .c1-sub{
    font-size:16px;
  }
}

@media (max-width:900px){
  .c1-cases{
    grid-template-columns:repeat(2, 1fr);
  }
  .c1-inner {
    max-width: 100%;}
}

@media (max-width:640px){
  .c1-inner{
    padding:60px 16px 90px;
  }
  .c1-cases{
    grid-template-columns:1fr;
    gap:24px;
  }
  .c1-heading{
    font-size:24px;
  }
  .c1-sub{
    font-size:15px;
  }
  .ba{
    height:220px;
  }
}
