@charset 'utf-8';

/* ===== Before/After 증례 섹션 ===== */
#ba-section {
  background: #fff;
  padding: 70px 0 50px;
}

.ba-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 30px;
}

/* 제목 */
.ba-title {
  font-size: 34px;
  font-weight: 700;
  text-align: center;
  color: #222;
  margin: 0 0 36px;
  letter-spacing: -0.5px;
}

/* 탭 버튼 */
.ba-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
}

.ba-tab {
  width: 200px;
  height: 56px;
  border: none;
  border-radius: 4px;
  font-size: 21px;
  font-weight: 400;
  cursor: pointer;
  background: #DBDBDB;
  color: #fff;
  transition: background 0.2s;
  letter-spacing: -0.3px;
}

.ba-tab.active {
  background: #063E91;
}

.ba-tab:hover:not(.active) {
  background: #bbb;
}

/* 캐로셀 래퍼 */
.ba-carousel-wrap {
  position: relative;
  max-width: 1120px;
  margin: 0 auto 44px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ba-swiper {
  flex: 1;
  overflow: hidden;
}

/* 슬라이드 내부 */
.ba-slide {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.ba-col {
  flex: 1;
}

/* 이미지 박스 */
.ba-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 827 / 447;
  background: #ebebeb;
  border-radius: 2px;
  overflow: hidden;
}

/* 비로그인 오버레이 */
.ba-login-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.ba-login-overlay:hover {
  background: rgba(255, 255, 255, 0.7);
}
.ba-login-overlay span {
  color: #063E91;
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: 30px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

/* 추후 DB 이미지 연결 시 사용 */
.ba-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 라벨 */
.ba-label {
  margin-top: 0;
  padding: 12px 0;
  font-size: 21px;
  color: #fff;
  text-align: center;
  letter-spacing: -0.3px;
}

.ba-label-before {
  background: #5D5D5D;
}

.ba-label-after {
  background: #063E91;
}

/* 네비게이션 버튼 */
.ba-nav {
  flex-shrink: 0 !important;
  width: auto !important;
  height: auto !important;
  background: none !important;
  color: #000 !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 52px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.2s !important;
  padding: 0 !important;
}

.ba-nav:hover {
  color: rgba(0, 0, 0, 0.35) !important;
  cursor: pointer !important;
}

.ba-nav.swiper-button-disabled {
  opacity: 0.25;
  cursor: default !important;
}

/* CTA */
.ba-cta {
  text-align: center;
  margin-bottom: 28px;
}

.ba-cta-q {
  font-size: 24px;
  color: #222;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  word-break: keep-all;
}

.ba-cta-btn {
  display: inline-block;
  padding: 15px 54px;
  background: #063E91;
  color: #fff;
  font-size: 22px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s;
  letter-spacing: -0.3px;
}

.ba-cta-btn:hover {
  background: #0450c0;
  color: #fff;
}

/* 빈 슬라이드 */
.ba-empty {
  justify-content: center;
  align-items: center;
  min-height: 200px;
  color: #999;
  font-size: 16px;
}

/* 고지사항 */
.ba-notice {
  background: #f7f7f7;
  padding: 22px 30px;
  border-radius: 4px;
  text-align: center;
}

.ba-notice p {
  font-size: 13px;
  color: #353535;
  line-height: 2;
  font-weight: 300;
  letter-spacing: -0.2px;
  word-break: keep-all;
}

/* ===== 모바일 ===== */
@media all and (max-width: 768px) {
  #ba-section {
    padding: 44px 0 34px;
  }

  .ba-inner {
    padding: 0 16px;
  }

  .ba-title {
    font-size: 21px;
    margin-bottom: 24px;
  }

  .ba-tabs {
    gap: 8px;
    margin-bottom: 28px;
  }

  .ba-tab {
    width: 140px;
    height: 46px;
    font-size: 14px;
  }

  .ba-carousel-wrap {
    gap: 8px;
    margin-bottom: 28px;
  }

  .ba-nav {
    font-size: 36px;
  }

  .ba-slide {
    flex-direction: column;
    gap: 16px;
  }

  .ba-label {
    font-size: 14px;
    padding: 10px 0;
  }

  .ba-cta-q {
    font-size: 17px;
    margin-bottom: 14px;
  }

  .ba-cta-btn {
    font-size: 15px;
    padding: 12px 40px;
  }

  .ba-login-overlay span {
    font-size: 14px;
    text-align: center;
    word-break: keep-all;
  }

  .ba-notice {
    padding: 16px 16px;
  }

  .ba-notice p {
    font-size: 11px;
    line-height: 1.9;
  }
}
