/* ========================================
   sw3 - 위젯 스와이퍼 v3 (KNB 카드 디자인)
   기능: sw2 동일 / 카드 디자인: MAIN_sw_KNB
   ======================================== */

/* === 관리자 뱃지 === */
.sw3 .sw3_badge {
  position: absolute;
  top: -8px;
  left: 10px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}
.sw3.admin_div:hover .sw3_badge { opacity: 1; }

/* === 배경이미지 === */
.sw3 .sw3_bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.sw3 .sw3_bg img,
.sw3 .sw3_bg video,
.sw3 .sw3_bg lottie-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.sw3 .sw3_bg_pc { position: absolute; inset: 0; }
.sw3 .sw3_bg_mo { position: absolute; inset: 0; display: none; }
@media (max-width: 767px) {
  .sw3 .sw3_bg:has(.sw3_bg_mo) .sw3_bg_pc { display: none; }
  .sw3 .sw3_bg_mo { display: block; }
}
.sw3 .sw3_bg_fixed {
  position: fixed;
  inset: 0;
}
.sw3:has(.sw3_bg) {
  position: relative;
  z-index: 0;
}
.sw3:has(.sw3_bg_fixed) {
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
}
.sw3:has(.sw3_bg) .sw_bbs1_header,
.sw3:has(.sw3_bg) .sw3_swiper_wrap {
  position: relative;
  z-index: 1;
}

/* === 헤더 (제목 + 더보기) === */
.sw3 .sw_bbs1_header {
  position: relative;
  width: 100%;
  float: left;
  margin-bottom: clamp(16px, calc(1.56vw + 11px), 30px);
}

.sw3 .sw_bbs1_titles {
  width: 100%;
  float: left;
}

/* 더보기 버튼 (기본 위치: 우측 하단) */
.sw3 .sw_bbs1_more {
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, calc(0.47vw + 6.5px), 14px);
  font-size: clamp(14px, calc(0.31vw + 13px), 18px);
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.sw3 .sw_bbs1_more:hover {
  color: var(--text-color, #333);
}

.sw3 .sw_more_txt {
  font-size: inherit;
  font-weight: inherit;
}

.sw3 .sw_more_circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(32px, calc(1.09vw + 28.5px), 46px);
  height: clamp(32px, calc(1.09vw + 28.5px), 46px);
  border-radius: 50%;
  background: #1f2937;
  color: #fff;
  font-size: clamp(16px, calc(0.47vw + 14.5px), 22px);
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.sw3 .sw_bbs1_more:hover .sw_more_circle {
  transform: translateX(2px);
}

/* hymore_wrap (MORE 스타일 사용 시) - header 기준 */
.sw3 .sw_bbs1_header .hymore_wrap {
  position: absolute;
  right: 0;
  bottom: 0;
}

/* --- 더보기 위치 프리셋 - sw_bbs1_header 기준 --- */
.sw3 .sw_bbs1_header[data-more-pos="below"] .sw_bbs1_more,
.sw3 .sw_bbs1_header[data-more-pos="below"] .hymore_wrap {
  position: static;
  margin-top: clamp(8px, calc(0.47vw + 6.5px), 14px);
}
.sw3 .sw_bbs1_header[data-more-pos="right_top"] .sw_bbs1_more,
.sw3 .sw_bbs1_header[data-more-pos="right_top"] .hymore_wrap {
  top: 0;
  bottom: auto;
}
.sw3 .sw_bbs1_header[data-more-pos="right_center"] .sw_bbs1_more,
.sw3 .sw_bbs1_header[data-more-pos="right_center"] .hymore_wrap {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}
.sw3 .sw_bbs1_header[data-more-pos="right_center"] .sw_bbs1_more:hover .sw_more_circle {
  transform: translateX(2px);
}
.sw3 .sw_bbs1_header[data-more-pos="right_bottom"] .sw_bbs1_more,
.sw3 .sw_bbs1_header[data-more-pos="right_bottom"] .hymore_wrap {
  right: 0;
  bottom: 0;
}

/* 커스텀 오프셋 PC - header 기준 */
.sw3 .sw_bbs1_header[style*="--mt"] .sw_bbs1_more,
.sw3 .sw_bbs1_header[style*="--mt"] .hymore_wrap {
  top: var(--mt, auto);
}
.sw3 .sw_bbs1_header[style*="--mr"] .sw_bbs1_more,
.sw3 .sw_bbs1_header[style*="--mr"] .hymore_wrap {
  right: var(--mr, 0);
}
.sw3 .sw_bbs1_header[style*="--mb"] .sw_bbs1_more,
.sw3 .sw_bbs1_header[style*="--mb"] .hymore_wrap {
  bottom: var(--mb, auto);
}
.sw3 .sw_bbs1_header[style*="--ml"] .sw_bbs1_more,
.sw3 .sw_bbs1_header[style*="--ml"] .hymore_wrap {
  left: var(--ml, auto);
}

/* === 데코 라인 === */
.sw3 .sw_bbs1_header[data-deco-line]::after {
  content: '';
  position: absolute;
  left: var(--dl-left, 30%);
  right: var(--dl-right, 70px);
  top: var(--dl-top, auto);
  bottom: var(--dl-bottom, auto);
  height: var(--dl-h, 1px);
  background: var(--dl-color, #ddd);
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}

/* === 데코 도트 === */
.sw3 .sw_bbs1_header[data-deco-dot]::before {
  content: '';
  position: absolute;
  width: var(--dl-dot-size, 4px);
  height: var(--dl-dot-size, 4px);
  border-radius: 50%;
  background: var(--dl-dot-color, #222);
  left: var(--dl-left, 30%);
  top: var(--dl-top, auto);
  bottom: var(--dl-bottom, auto);
  transform: translate(var(--dl-dot-x, -6px), var(--dl-dot-y, 0px));
  z-index: 2;
  pointer-events: none;
}
/* === 데코 라인 모바일 숨김 === */
@media (max-width: 768px) {
  .sw3 .sw_bbs1_header[data-deco-line-mo-hide]::after,
  .sw3 .sw_bbs1_header[data-deco-line-mo-hide]::before { display: none !important; }
}

/* === 스와이퍼 래퍼 === */
.sw3 .sw3_swiper_wrap {
  position: relative;
  float: left;
  width: 100%;
  padding-bottom: 15px; /* 버튼 확장 공간 */
}
/* 컨케이브 코너 표시를 위해 overflow:visible 필수 */
.sw3 .content-swiper {
  overflow: visible;
}

/* ========================================
   ★ KNB 카드 디자인
   ======================================== */

/* --- 슬라이드 (레이아웃 컨테이너) --- */
.sw3 .swiper-slide {
  position: relative;
  overflow: visible;
}
/* --- 카드 (시각적 스타일) --- */
.sw3 .sw3_card {
  padding: var(--sw3-card-padding, clamp(1.5rem, calc(1.17vw + 1.13rem), 3rem));
  border-radius: var(--sw3-card-radius, clamp(1.5rem, calc(1.56vw + 1rem), 3.5rem));
  background: var(--sw3-card-bg, #f0f2f6);
  position: relative;
  transition: transform 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  border: var(--sw3-active-border-width, 2px) solid transparent;
  overflow: visible;
  box-sizing: border-box;
  width: 100%;
}
/* 엑티브 라인 ON (.has-active-border 클래스) */
.sw3.has-active-border .swiper-slide:hover .sw3_card {
  border-color: var(--sw3-active-border-color, var(--primary, #3b82f6));
}

/* --- 카드 전체 링크 오버레이 (link_mode=card) --- */
.sw3 .sw3_card_link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
/* link_mode=card: wg_box_in이 링크 위에 올라감 */
.sw3 .sw3_card:has(.sw3_card_link) .wg_box_in {
  z-index: 2;
  pointer-events: none;
}
.sw3 .sw3_card:has(.sw3_card_link) .wg_edit_txt,
.sw3 .sw3_card:has(.sw3_card_link) .wg_edit_link,
.sw3 .sw3_card:has(.sw3_card_link) .wg_edit_img {
  pointer-events: auto;
}
.sw3 .sw3_card:has(.sw3_card_link) .sw3_simple_btn,
.sw3 .sw3_card:has(.sw3_card_link) .sw3_more_link {
  pointer-events: none;
}

/* --- wg_box_in --- */
.sw3 .wg_box_in {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  width: 100%;
}

/* --- 버튼 링크 (link_mode=btn) --- */
.sw3 a.sw3_simple_btn,
.sw3 a.sw3_more_link {
  pointer-events: auto;
  text-decoration: none;
  color: inherit;
}

/* --- 텍스트 영역 (KNB: 텍스트가 먼저) --- */
.sw3 .wg_txt_box {
  display: flex;
  flex-direction: column;
  width: 100%;
  float: left;
}

/* 제목 (KNB .sw_tt) */
.sw3 .wg_txt1 {
  color: var(--sw3-title-color, #253e90);
  font-weight: 700;
  font-size: clamp(18px, calc(0.47vw + 16.5px), 24px);
  line-height: 1.2;
  letter-spacing: -1.5px;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* 설명 (KNB .sw_tx) */
.sw3 .wg_txt2 {
  color: #333;
  font-weight: 500;
  font-size: clamp(12px, calc(0.16vw + 11.5px), 14px);
  letter-spacing: -0.5px;
  line-height: 1.8;
}

/* 기타 텍스트 (txt3~) */
.sw3 .wg_txt_box > div[class^="wg_txt"]:not(.wg_txt1):not(.wg_txt2) {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  margin-top: 0;
}

/* --- 이미지 영역 (KNB: 작은 아이콘) --- */
.sw3 .wg_img_box {
  width: var(--sw3-img-size, clamp(60px, calc(3.13vw + 50px), 100px));
  margin-top: clamp(10px, calc(0.78vw + 7.5px), 20px);
  flex-shrink: 0;
}
/* 이미지 우측 정렬 */
.sw3.img-right .wg_img_box {
  align-self: flex-end;
}
/* 이미지 자유 위치 (absolute) */
.sw3.img-absolute .wg_img_box {
  position: absolute;
  top: var(--sw3-img-top, auto);
  right: var(--sw3-img-right, auto);
  bottom: var(--sw3-img-bottom, auto);
  left: var(--sw3-img-left, auto);
  margin-top: 0;
  z-index: 3;
}
.sw3 .wg_img1 {
  width: 100%;
}
.sw3 .wg_img1 img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   ★ KNB 원형 더보기 버튼 + 컨케이브 코너
   ======================================== */

/* --- 더보기 링크 (슬라이드 우하단) --- */
.sw3 .sw3_more_link {
  position: absolute;
  right: -10px;
  bottom: -10px;
  display: inline-flex;
  z-index: 100;
  text-decoration: none;
}

/* --- 원형 버튼 --- */
.sw3 .sw3_more_btn {
  width: 70px;
  height: 70px;
  background: var(--sw3-btn-bg, #2a2a2a);
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 14px solid var(--sw3-cutout-bg, #fff);
  position: relative;
  z-index: 9999;
  transition: background 0.3s;
}
.sw3 .sw3_more_btn i {
  color: var(--sw3-btn-icon-color, #567cfc);
  font-size: var(--sw3-btn-icon-size, 25px);
  line-height: 1;
  transition: color 0.3s;
}

/* --- 활성 슬라이드: 버튼 색상 변경 --- */
.sw3 .swiper-slide-active .sw3_more_btn {
  background: var(--sw3-btn-hover-color, var(--primary, #253e90));
}
.sw3 .swiper-slide-active .sw3_more_btn i {
  color: var(--sw3-btn-hover-icon-color, #fff);
}

/* --- 컨케이브 코너 1 (좌측 하단 - 카드 하단 모서리) --- */
.sw3 .sw3_corner1 {
  position: absolute;
  left: -41px;
  bottom: -15px;
  width: 40px;
  height: 40px;
}

/* --- 컨케이브 코너 2 (우측 상단 - 카드 우측 모서리) --- */
.sw3 .sw3_corner2 {
  position: absolute;
  right: -15px;
  top: -41px;
  width: 40px;
  height: 40px;
}

/* --- 컨케이브 컷아웃 (radial-gradient mask) --- */
.sw3 .sw3_cutout {
  width: 100%;
  height: 100%;
  background: var(--sw3-cutout-bg, #fff);
  -webkit-mask-image: radial-gradient(circle at top left, transparent 30px, black 31px);
  mask-image: radial-gradient(circle at top left, transparent 30px, black 31px);
}

/* ========================================
   ★ 단순원 버튼 (카드 내부)
   ======================================== */
.sw3 .sw3_simple_btn {
  position: absolute;
  width: var(--sw3-btn-size, 36px);
  height: var(--sw3-btn-size, 36px);
  border-radius: 50%;
  background: var(--sw3-btn-color, #e0e3ea);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  transition: width 0.3s, height 0.3s, background 0.3s;
}
.sw3 .sw3_simple_btn i {
  color: var(--sw3-btn-icon-color, var(--primary, #253e90));
  font-size: var(--sw3-btn-icon-size, 18px);
  line-height: 1;
  transition: color 0.3s;
}
/* 호버: 단순원 */
.sw3 .swiper-slide:hover .sw3_simple_btn {
  width: var(--sw3-btn-hover-size, var(--sw3-btn-size, 36px));
  height: var(--sw3-btn-hover-size, var(--sw3-btn-size, 36px));
  background: var(--sw3-btn-hover-color, var(--sw3-btn-color, #e0e3ea));
}
.sw3 .swiper-slide:hover .sw3_simple_btn i {
  color: var(--sw3-btn-hover-icon-color, var(--sw3-btn-icon-color, var(--primary, #253e90)));
}
/* 활성 슬라이드: 단순원 색상 변경 */
.sw3 .swiper-slide-active .sw3_simple_btn {
  width: var(--sw3-btn-hover-size, var(--sw3-btn-size, 36px));
  height: var(--sw3-btn-hover-size, var(--sw3-btn-size, 36px));
  background: var(--sw3-btn-hover-color, var(--primary, #253e90));
}
.sw3 .swiper-slide-active .sw3_simple_btn i {
  color: var(--sw3-btn-hover-icon-color, #fff);
}
/* 단순원 프리셋 위치 */
.sw3[data-btn-pos="right_bottom"] .sw3_simple_btn { bottom: 12px; right: 12px; }
.sw3[data-btn-pos="right_top"] .sw3_simple_btn { top: 12px; right: 12px; }
.sw3[data-btn-pos="left_bottom"] .sw3_simple_btn { bottom: 12px; left: 12px; }
/* 단순원 자유 위치 (custom) */
.sw3[data-btn-pos="custom"] .sw3_simple_btn {
  top: var(--sw3-btn-top, auto);
  right: var(--sw3-btn-right, auto);
  bottom: var(--sw3-btn-bottom, auto);
  left: var(--sw3-btn-left, auto);
}

/* ========================================
   호버 효과 (카드 레벨 → .sw3_card에 적용)
   ======================================== */
.sw3.hover-scale .swiper-slide:hover .sw3_card {
  transform: scale(var(--sw3-hover-scale, 1.03));
}
.sw3.hover-shadow .swiper-slide:hover .sw3_card {
  box-shadow: var(--sw3-hover-shadow, 0 8px 32px rgba(0,0,0,0.12));
}
/* 카드 호버 배경색 */
.sw3 .swiper-slide:hover .sw3_card {
  background: var(--sw3-card-hover-bg, var(--sw3-card-bg, #f0f2f6));
}

/* ========================================
   카드 고정 높이
   ======================================== */
.sw3.card-fixed-height .sw3_card {
  height: var(--sw3-card-height, auto);
  overflow: hidden;
}
.sw3.card-fixed-height .wg_box_in {
  height: 100%;
}
.sw3.card-fixed-height .wg_txt_box {
  flex: 1;
  overflow: hidden;
}

/* ========================================
   엑티브 슬라이드 효과 (→ .sw3_card에 적용, 간격 유지)
   ======================================== */
.sw3.has-active-effect .content-swiper {
  overflow: visible;
}
.sw3.has-active-effect .sw3_card {
  transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease, border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.sw3.has-active-effect .swiper-slide:not(.swiper-slide-active) .sw3_card {
  transform: scale(var(--inactive-scale, 1));
  opacity: var(--inactive-opacity, 1);
  filter: var(--inactive-filter, none);
}
.sw3.has-active-effect .swiper-slide:not(.swiper-slide-active):hover .sw3_card {
  opacity: 1;
  filter: none;
}
.sw3.has-active-effect .swiper-slide-active .sw3_card {
  transform: scale(var(--active-scale, 1));
  z-index: 2;
}
.sw3.has-active-effect.has-active-border .swiper-slide-active .sw3_card {
  border-color: var(--sw3-active-border-color, var(--primary, #3b82f6));
}

/* ========================================
   페이징 공통
   ======================================== */
.sw3 .paging-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: var(--sw-nav-gap, clamp(16px, calc(1.09vw + 12.5px), 30px));
  float: left;
  width: 100%;
}
.sw3 .btn-wrap {
  display: flex;
  gap: var(--sw-arrow-gap, 8px);
  flex-shrink: 0;
}
.sw3 .btn-prev,
.sw3 .btn-next {
  width: var(--sw-arrow-size, 36px);
  height: var(--sw-arrow-size, 36px);
  border-radius: var(--sw-arrow-radius, 50%);
  border: 1px solid var(--sw-arrow-border-color, #ddd);
  background: var(--sw-arrow-bg, #fff);
  color: var(--sw-arrow-color, #555);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: var(--sw-arrow-icon-size, 18px);
  transition: all 0.2s;
  flex-shrink: 0;
}
.sw3 .btn-prev i,
.sw3 .btn-next i {
  line-height: 1;
  display: block;
}
.sw3 .btn-prev i { transform: translate(-1px, -1px); }
.sw3 .btn-next i { transform: translate(1px, -1px); }
.sw3 .btn-prev:hover,
.sw3 .btn-next:hover {
  border-color: var(--sw-arrow-border-color-hover, #999);
  color: var(--sw-arrow-color-hover, #222);
  background: var(--sw-arrow-bg-hover, var(--sw-arrow-bg, #fff));
}
.sw3 .swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

/* --- ◁▷ + 바 (arrows_bar) --- */
.sw3 .paging-arrows_bar .swiper-pagination {
  position: relative;
  flex: 1;
  height: 3px;
  background: #eee;
  border-radius: 2px;
}
.sw3 .paging-arrows_bar .swiper-pagination .swiper-pagination-progressbar-fill {
  background: var(--sw-nav-active-color, #222) !important;
  border-radius: 2px;
}

/* --- 도트 공통 (bullets) --- */
.sw3 .paging-arrows_dots .swiper-pagination,
.sw3 .paging-dots_only .swiper-pagination,
.sw3 .paging-arrows_dots_inline .swiper-pagination {
  position: relative;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  height: auto;
  background: transparent;
  width: auto;
}
.sw3 .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  opacity: 1;
  transition: all 0.3s;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0 !important;
}
.sw3 .swiper-pagination-bullet-active {
  background: var(--sw-nav-active-color, #222);
  width: 24px;
  border-radius: 4px;
}

/* --- ◁▷ + 도트 (arrows_dots) --- */
.sw3 .paging-arrows_dots .swiper-pagination {
  flex: 1;
}

/* --- 도트만 (dots_only) --- */
.sw3 .paging-dots_only .swiper-pagination {
  flex: 0 1 auto;
}
.sw3 .paging-dots_only.dots-center { justify-content: center; }
.sw3 .paging-dots_only.dots-left { justify-content: flex-start; }
.sw3 .paging-dots_only.dots-right { justify-content: flex-end; }

/* --- ◁ · · · ▷ (arrows_dots_inline) --- */
.sw3 .paging-arrows_dots_inline {
  justify-content: center;
  gap: 16px;
}
.sw3 .paging-arrows_dots_inline .swiper-pagination {
  flex: 0 1 auto;
}
.sw3 .paging-arrows_dots_inline .btn-prev,
.sw3 .paging-arrows_dots_inline .btn-next {
  width: 48px;
  height: 48px;
  font-size: 24px;
}

/* === 화살표 바깥쪽 모드 === */
.sw3 .arrows-outer {
  --arrow-size: var(--sw-arrow-size, 44px);
  --arrow-gap: 12px;
  --arrow-offset: calc(var(--arrow-size) + var(--arrow-gap));
}
.sw3:has(.arrows-outer) .contentContainer { overflow: visible; }
.sw3 .arrows-outer .btn-wrap {
  position: absolute;
  top: 0;
  left: calc(var(--arrow-offset) * -1);
  width: calc(100% + var(--arrow-offset) * 2);
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 5;
}
.sw3 .arrows-outer .btn-prev,
.sw3 .arrows-outer .btn-next {
  position: absolute;
  width: var(--arrow-size);
  height: var(--arrow-size);
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.sw3 .arrows-outer .btn-prev { left: 0; }
.sw3 .arrows-outer .btn-next { right: 0; }
.sw3 .arrows-outer.arrows-vcenter .btn-prev,
.sw3 .arrows-outer.arrows-vcenter .btn-next {
  top: 50%;
  transform: translateY(-50%);
}
.sw3 .arrows-outer.arrows-vtop .btn-prev,
.sw3 .arrows-outer.arrows-vtop .btn-next {
  top: 0;
}
.sw3 .arrows-outer .paging-wrap {
  position: static;
  justify-content: center;
}
.sw3 .arrows-outer .paging-arrows_bar .swiper-pagination {
  max-width: 200px;
  margin: 0 auto;
}

/* ========================================
   슬라이드 레이아웃 모드
   ======================================== */
.sw3 {
  overflow-x: clip;
}
.sw3 .layout-inner .content-swiper {
  overflow: hidden;
}
.sw3 .layout-right {
  overflow: visible;
}
.sw3 .layout-right .content-swiper {
  overflow: visible;
  width: calc(100vw - var(--sw-left, 0px));
  max-width: none;
}

/* === Swiper 초기화 전 FOUC 방지 === */
.sw3 .content-swiper:not(.swiper-initialized) {
  overflow: hidden;
}
.sw3 .content-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  gap: var(--sw-gap, 20px);
}
.sw3 .content-swiper:not(.swiper-initialized) .swiper-slide {
  flex-shrink: 0;
  width: calc((100% - var(--sw-gap, 20px) * (var(--slides-pc, 4) - 1)) / var(--slides-pc, 4));
}
@media screen and (max-width: 1023px) {
  .sw3 .content-swiper:not(.swiper-initialized) .swiper-slide {
    width: calc((100% - min(var(--sw-gap, 20px), 20px) * (var(--slides-tablet, 3) - 1)) / var(--slides-tablet, 3));
  }
}
@media screen and (max-width: 767px) {
  .sw3 .content-swiper:not(.swiper-initialized) .swiper-slide {
    width: calc((100% - min(var(--sw-gap, 15px), 15px) * (var(--slides-mo, 2) - 1)) / var(--slides-mo, 2));
  }
}

/* === 빈 상태 === */
.sw3 .empty_li {
  text-align: center;
  color: #999;
  padding: 40px 0;
  font-size: 14px;
}

/* ========================================
   반응형
   ======================================== */
@media screen and (max-width: 768px) {
  /* 모바일 헤더/더보기 */
  .sw3 .sw_bbs1_header {
    margin-bottom: 14px;
  }
  .sw3 .sw_bbs1_more {
    font-size: 13px;
    gap: 6px;
  }
  .sw3 .sw_more_circle {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  /* 모바일 더보기 위치 프리셋 (data-more-pos-mo) */
  .sw3 .sw_bbs1_header[data-more-pos-mo="below"] .sw_bbs1_more,
  .sw3 .sw_bbs1_header[data-more-pos-mo="below"] .hymore_wrap {
    position: static;
    margin-top: 8px;
  }
  .sw3 .sw_bbs1_header[data-more-pos-mo="right_top"] .sw_bbs1_more,
  .sw3 .sw_bbs1_header[data-more-pos-mo="right_top"] .hymore_wrap {
    top: 0; bottom: auto;
  }
  .sw3 .sw_bbs1_header[data-more-pos-mo="right_center"] .sw_bbs1_more,
  .sw3 .sw_bbs1_header[data-more-pos-mo="right_center"] .hymore_wrap {
    top: 50%; bottom: auto; transform: translateY(-50%);
  }
  .sw3 .sw_bbs1_header[data-more-pos-mo="right_bottom"] .sw_bbs1_more,
  .sw3 .sw_bbs1_header[data-more-pos-mo="right_bottom"] .hymore_wrap {
    right: 0; bottom: 0; top: auto;
  }

  /* 모바일 커스텀 오프셋 */
  .sw3 .sw_bbs1_header[style*="--mt-mo"] .sw_bbs1_more,
  .sw3 .sw_bbs1_header[style*="--mt-mo"] .hymore_wrap {
    top: var(--mt-mo) !important;
  }
  .sw3 .sw_bbs1_header[style*="--mr-mo"] .sw_bbs1_more,
  .sw3 .sw_bbs1_header[style*="--mr-mo"] .hymore_wrap {
    right: var(--mr-mo) !important;
  }
  .sw3 .sw_bbs1_header[style*="--mb-mo"] .sw_bbs1_more,
  .sw3 .sw_bbs1_header[style*="--mb-mo"] .hymore_wrap {
    bottom: var(--mb-mo) !important;
  }
  .sw3 .sw_bbs1_header[style*="--ml-mo"] .sw_bbs1_more,
  .sw3 .sw_bbs1_header[style*="--ml-mo"] .hymore_wrap {
    left: var(--ml-mo) !important;
  }

  /* 모바일: 바깥 화살표 → inner로 강제 전환 */
  .sw3 .arrows-outer .btn-wrap {
    position: static;
    width: auto;
    height: auto;
    display: flex;
    gap: 8px;
    pointer-events: auto;
  }
  .sw3 .arrows-outer .btn-prev,
  .sw3 .arrows-outer .btn-next {
    position: static;
    width: 36px;
    height: 36px;
    transform: none;
    box-shadow: none;
  }
  /* 모바일: 페이징 inner 100% */
  .sw3 .paging-wrap {
    width: 100%;
    gap: 10px;
  }
  .sw3 .paging-arrows_bar .swiper-pagination {
    flex: 1;
  }

  /* 모바일: KNB 카드 축소 */
  .sw3 .sw3_card {
    padding: clamp(1rem, calc(1.17vw + 0.63rem), 2rem);
  }
  .sw3 .wg_txt1 {
    font-size: clamp(15px, calc(0.39vw + 13.75px), 18px);
    letter-spacing: -1px;
  }
  .sw3 .wg_txt2 {
    font-size: 12px;
    line-height: 1.4;
  }
  .sw3 .wg_img_box {
    width: var(--sw3-img-size, clamp(50px, calc(2.34vw + 42.5px), 80px));
    margin-top: 10px;
  }
  /* 모바일: 단순원 (CSS변수 우선, 없으면 축소) */
  .sw3 .sw3_simple_btn {
    width: var(--sw3-btn-size, 30px);
    height: var(--sw3-btn-size, 30px);
  }
  .sw3 .sw3_simple_btn i {
    font-size: var(--sw3-btn-icon-size, 15px);
  }
  .sw3[data-btn-pos="right_bottom"] .sw3_simple_btn { bottom: 10px; right: 10px; }
  .sw3[data-btn-pos="right_top"] .sw3_simple_btn { top: 10px; right: 10px; }
  .sw3[data-btn-pos="left_bottom"] .sw3_simple_btn { bottom: 10px; left: 10px; }
  .sw3[data-btn-pos="custom"] .sw3_simple_btn {
    top: var(--sw3-btn-top, auto);
    right: var(--sw3-btn-right, auto);
    bottom: var(--sw3-btn-bottom, auto);
    left: var(--sw3-btn-left, auto);
  }

  /* 모바일: 더보기 버튼 축소 */
  .sw3 .sw3_more_btn {
    width: 50px;
    height: 50px;
    border-width: 10px;
  }
  .sw3 .sw3_more_btn i {
    font-size: 20px;
  }
  .sw3 .sw3_corner1 {
    left: -29px;
    bottom: -11px;
    width: 28px;
    height: 28px;
  }
  .sw3 .sw3_corner2 {
    right: -11px;
    top: -29px;
    width: 28px;
    height: 28px;
  }
  .sw3 .sw3_cutout {
    -webkit-mask-image: radial-gradient(circle at top left, transparent 21px, black 22px);
    mask-image: radial-gradient(circle at top left, transparent 21px, black 22px);
  }
}

@media screen and (max-width: 480px) {
  .sw3 .wg_txt1 {
    font-size: 14px;
    -webkit-line-clamp: 1;
  }
  .sw3 .wg_txt2 {
    -webkit-line-clamp: 2;
  }
}
