

/* ================================================
   MAIN_bbstab3 - 게시판 탭 위젯 전용 스타일
   ================================================ */
.MAIN_bbstab3 { width: 100%; float: left; position: relative; height: auto; overflow: hidden !important; }
.MAIN_bbstab3 .contents-container {
 position: relative;
  /* height: 100% 제거 - float 자식 높이를 clearfix로 인식 */ padding: clamp(20px, calc(3.947vw + 4.211px), 80px) 0px
}
/* float 요소 높이 포함을 위한 clearfix */
.MAIN_bbstab3 .contents-container::after {
  content: "";
  display: table;
  clear: both;
}

/* ===== 제목 영역 중앙 정렬 ===== */
.MAIN_bbstab3 .sub_stit_box {
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
}
.MAIN_bbstab3 .sub_stit {
  text-align: center;
}

/* 구분 -----------------------------------*/
/**** pc ****/
@media only all and (min-width:768px) {
.MAIN_bbstab3 .contents-container .sub_stit{width: 100%; float: left; text-align: center;  }

.MAIN_bbstab3 .contents-container .tab_area{width: 100%; float: left; overflow: hidden; margin-top: 50px }
.MAIN_bbstab3 .tab_area .tabs { width: 100%; float: left;display: flex; flex-direction: row;  grid-gap: 10px;  margin-bottom:50PX; display: flex;  justify-content: center;  align-items: center; flex-wrap: wrap; min-height: 40px;}

.MAIN_bbstab3 .tab_area .tabs .tab {
  font-weight: 500;
  font-size:calc(var(--tx-sm-size) * 1.1);
  min-width: 100PX;
  float: left;
  background: #fff;
  padding:10px 20px;
  border-radius: 50PX;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  color: #333;
  position: relative;
  transition: all 0.3s ease;
}

.MAIN_bbstab3 .tab_area .tabs .tab:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

/* 활성화된 탭 - 기본 스타일 */
.MAIN_bbstab3 .tab_area .tabs .tab.on {
  border-color: var(--primary, #333) !important;
  background: var(--primary, #333) !important;
  color: #fff !important;
  padding: 10px 50px 10px 20px !important;
}

/* 더보기 아이콘 - 기본 숨김 */
.MAIN_bbstab3 .tab_area .tabs .tab .morebtn {
  display: none;
}

/* 활성화된 탭에서만 더보기 아이콘 표시 */
.MAIN_bbstab3 .tab_area .tabs .tab.on .morebtn {
  display: flex;
}

.MAIN_bbstab3 .tab_area .tabs .tab.tab-all {
  border-color: #fff;
  color: #333;
  padding:10px 20px!important; border: 1px solid #eee
}

.MAIN_bbstab3 .tab_area .tabs .tab.tab-all.on {
  border-color: #fff;
  color: #333;
}

/* 전체탭 - 라벨 컬러가 설정된 경우 */
.MAIN_bbstab3 .tab_area .tabs .tab.tab-all.has-label-color {
  border-color: #fff;
  color: #333;
  background: #fff;
}

.MAIN_bbstab3 .tab_area .tabs .tab.tab-all.has-label-color:hover {
  border-color: var(--tab-label-color);
  background: var(--tab-label-color);
  color: #fff;
}

.MAIN_bbstab3 .tab_area .tabs .tab.tab-all.has-label-color.on {
  border-color: var(--tab-label-color);
  background: var(--tab-label-color);
  color: #fff;
}

.MAIN_bbstab3 .tab_area .tabs .tab .tab-label {
  width: auto;
  float: left;
  white-space: nowrap;
}

/* 더보기 아이콘 - 활성화 탭에서만 표시 (위에서 정의) */
.MAIN_bbstab3 .tab_area .tabs .tab.on .morebtn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
}

.MAIN_bbstab3 .tab_area .tabs .tab .morebtn i {
  font-size: 28px;
  color: inherit;
  transition: all 0.3s ease; 
}

.MAIN_bbstab3 .tab_area .tabs .tab.on .morebtn:hover i {
  transform: scale(1.1);
}

/* 화살표 버튼 */
.MAIN_bbstab3 .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: rgba(0,0,0,0.3);
  color: #fff;
  border: none;
  border-radius: 50%;
  z-index: 3;
  cursor: pointer;
  font-size: 14px;
  line-height: 24px;
  display: none
}
.MAIN_bbstab3 .arrow.left { left: 5px; }
.MAIN_bbstab3 .arrow.right { right: 5px; }

}

/**** pc2 ****/
@media all and (max-width:1280px) and (min-width:768px) {
}

/**** 모바일 ****/
@media only all and (max-width:767px) {
.MAIN_bbstab3 .contents-container .sub_stit{width: 100%; float: left; font-size:calc(var(--tit-md-size) * 1); font-weight: 700; line-height: 130%; margin-bottom: 10px; }

.MAIN_bbstab3 .contents-container .tab_area{ width: 100%; float: left; position: relative; overflow: hidden;}
.MAIN_bbstab3 .tab_area .tabs {
  display: flex;
  flex-direction: row;
  grid-gap: 10px;
  justify-content: flex-start;
  margin-bottom: 20px;
  overflow-x: auto;
  padding: 0px 40px;
  flex-wrap: nowrap;
}

.MAIN_bbstab3 .scroll-hidden {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.MAIN_bbstab3 .scroll-hidden::-webkit-scrollbar {
  display: none;
}

.MAIN_bbstab3 .tab_area .tabs .tab {
  min-width: auto;
  flex-shrink: 0;
  background: #fff;
  padding: 10px 15px;
  border-radius: 50PX;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  color: #333;
  position: relative;
  font-size: calc(var(--tx-sm-size) * 0.9);
}

/* 모바일 탭 활성화 */
.MAIN_bbstab3 .tab_area .tabs .tab.on {
  border-color: var(--primary, #333) !important;
  background: var(--primary, #333) !important;
  color: #fff !important;
  padding: 10px 30px 10px 15px !important;
}

.MAIN_bbstab3 .tab_area .tabs .tab.tab-all {
  padding: 10px 15px;
  border-color: #e5e7eb;
  color: #333;
}

/* 모바일 더보기 아이콘 */
.MAIN_bbstab3 .tab_area .tabs .tab .morebtn {
  display: none;
}

.MAIN_bbstab3 .tab_area .tabs .tab.on .morebtn {
  display: flex;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
}

.MAIN_bbstab3 .tab_area .tabs .tab .morebtn i {
  font-size: 20px;
  position: static;
}

.MAIN_bbstab3 .scroll-mask {position: relative; padding: 0px 0px}

/* 마스크 효과 */
.MAIN_bbstab3 .scroll-mask::before,
.MAIN_bbstab3 .scroll-mask::after {
  content: '';
  position: absolute;
  top: 0;
  width:50px;
  height: 70px;
  z-index: 2;
  pointer-events: none;
}
.MAIN_bbstab3 .scroll-mask::before {
  content: '';
  position: absolute;
  top: 0;
  left: -1px;
  width: 40px;
  background: linear-gradient(to right, #fff 0px, #fff 15px, transparent 30px);
  z-index: 9999;
  pointer-events: none;
}

.MAIN_bbstab3 .scroll-mask::after {
  content: '';
  position: absolute;
  top: 0;
  right:-1px;
  width: 40px;
  background: linear-gradient(to left, #fff 0px, #fff 15px, transparent 30px);
  z-index: 9999;
  pointer-events: none;
}

/* 화살표 버튼 */
.MAIN_bbstab3 .arrow {
  position: absolute;
  top: 20px;
  width: 30px;
  height: 30px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  z-index: 9999999;
  cursor: pointer;
  font-size: 16px;
  line-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.MAIN_bbstab3 .arrow:active {
  background: rgba(0,0,0,0.7);
  transform: scale(0.95);
}
.MAIN_bbstab3 .arrow.left { left: 5px; }
.MAIN_bbstab3 .arrow.right { right: 5px; }
}

/**** 모바일2 ****/
@media only all and (max-width:400px) {
}
/* 구분 //end -----------------------------------*/



/* 탭 활성화 상태 스타일 */
/**** pc ****/
@media only all and (min-width:768px) {

.MAIN_bbstab3 .tab_area .tabs .tab .tab-label {
  padding: 5px 0px;
  cursor: pointer;
 font-size:calc(var(--tx-sm-size) * 1.1);
  font-weight: 700;
  width: auto;
  float: left;
  white-space:nowrap;
}

.MAIN_bbstab3 .tab_area .tabs .tab.on {
  background-color: #fff;
  border-color: var(--primary-700);
  color: var(--primary-700);
}

.MAIN_bbstab3 .tab_area .tabs .tab.tab-all.on {
  border-color: var(--tertiary-700);
  color: var(--tertiary-700);
}

.MAIN_bbstab3 .tab_area .tabs .tab.on .tab-label {
 font-size:calc(var(--tx-sm-size) * 1.1);
  font-weight: 700;
  color: inherit;
}

.MAIN_bbstab3 .tab-content {
  display: none;
  padding: 0px 0PX;
  width: 100%;
  float: left;
  min-height: 400px;
}

.MAIN_bbstab3 .tab-content .bbs_swiper_wrap {
  width: 100%;
  float: left;
  position: relative;
}

/* 스와이퍼 오른쪽 화면 끝까지 확장 - 활성 패널에만 적용 */
/* bbs_swiper_wrap은 원래 너비 유지, overflow만 visible */
.MAIN_bbstab3 .tab-content.active .bbs_swiper_wrap.full-right {
  width: 100%;
  overflow: visible;
}

/* content-swiper도 원래 너비 유지 - Swiper가 이 너비 기준으로 슬라이드 계산 */
.MAIN_bbstab3 .tab-content.active .bbs_swiper_wrap.full-right .content-swiper {
  width: 100%;
  overflow: visible;
}

/* swiper-wrapper만 오른쪽으로 확장 가능하도록 */
.MAIN_bbstab3 .tab-content.active .bbs_swiper_wrap.full-right .swiper-wrapper {
  overflow: visible;
}

/* full-right 활성화시 - clip-path로만 확장, overflow는 hidden 유지 */
/* .contents-container는 overflow 변경 안함 - 데코 밀림 방지 */

.MAIN_bbstab3:has(.tab-content.active .bbs_swiper_wrap.full-right) .tab_area {
  overflow: visible !important;
}

/* 활성 패널에만 overflow visible 적용 */
.MAIN_bbstab3 .tab-content.active:has(.bbs_swiper_wrap.full-right) {
  overflow: visible !important;
}

/* 비활성 패널은 hidden 유지 */
.MAIN_bbstab3 .tab-content:not(.active) {
  overflow: hidden !important;
}

/* 왼쪽은 가리고 오른쪽만 보이게 - 활성 패널에만 적용 */
.MAIN_bbstab3 .tab-content.active .bbs_swiper_wrap.full-right .content-swiper {
  clip-path: inset(0 -100vw 0 0);
}

}

/**** 모바일 ****/
@media only all and (max-width:767px) {

.MAIN_bbstab3 .tab_area .tabs .tab .tab-label {
  padding: 2px 0px;
  cursor: pointer;
  font-size:calc(var(--tit-mds-size) * 0.75);
  font-weight: 600;
  width: auto;
  float: left;
  white-space:nowrap;
}

.MAIN_bbstab3 .tab_area .tabs .tab.on {
  background-color: #fff;
  border-color: #fff;
  color: #333;
}

.MAIN_bbstab3 .tab_area .tabs .tab.tab-all.on {
  border-color: #fff;
  color: #333;
}

.MAIN_bbstab3 .tab_area .tabs .tab.on .tab-label {
  font-weight: 700;
  color: inherit;
}

.MAIN_bbstab3 .tab-content {
  display: none;
  padding: 10px 0px;
  border-radius: 6px;
  min-height: 300px;
}
}

/* 탭 컨텐츠 활성화 */
.MAIN_bbstab3 .tab-content.active { display: block; }


/* 기본 포커스 링/하이라이트 제거 */
.MAIN_bbstab3 .tabs [role="tab"] {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.MAIN_bbstab3 .tabs [role="tab"]:focus { outline: none; box-shadow: none; }
.MAIN_bbstab3 .tabs [role="tab"]::-moz-focus-inner { border: 0; }

.MAIN_bbstab3 .tabs [role="tab"]:focus-visible {
  outline: 0;
  box-shadow: none;
}

.MAIN_bbstab3 .tabs [role="tab"]:focus:not(:focus-visible){
  outline: none !important;
  box-shadow: none !important;
}

/* ===== 관리자 모드 스타일 (권한 8 이상) ===== */
html:has(.MAIN_bbstab3 .tab_admin_mode),
body:has(.MAIN_bbstab3 .tab_admin_mode) {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

.MAIN_bbstab3 {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

.MAIN_bbstab3 .tab_area {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  overflow: hidden !important;
}

.MAIN_bbstab3 .tab-content {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  overflow-x: hidden !important;
}

.MAIN_bbstab3 .tab-content.tab_admin_mode {
  position: relative;
  border: 2px dashed #10b981;
  overflow: visible;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.MAIN_bbstab3 .tab-content.tab_admin_mode:hover {
  border-color: #059669;
  background-color: rgba(16, 185, 129, 0.03);
}

/* 탭 래퍼 - 탭 버튼과 설정 아이콘을 감싸는 컨테이너 */
.MAIN_bbstab3 .tab-wrapper {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

/* 탭 아래 설정 아이콘 */
.MAIN_bbstab3 .tab_mix_icon {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: #10b981;
  color: #fff;
  font-size: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.MAIN_bbstab3 .tab_mix_icon:hover {
  background: #059669;
  transform: translateX(-50%) scale(1.2);
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.5);
}

/* 모바일에서 관리자 패딩 조정 */
@media only all and (max-width:767px) {
  .MAIN_bbstab3 .tab-content.tab_admin_mode {
    padding: 15px;
  }

  .MAIN_bbstab3 .tab_mix_icon {
    width: 18px;
    height: 18px;
    font-size: 10px;
    bottom: -18px;
  }
}


/* ================================================
   게시판 그리드 래퍼 스타일 (3열 x 2행)
   ================================================ */

.MAIN_bbstab3 .bbs_swiper_wrap {
  width: 100%;
  float: left;
  position: relative;
}

.MAIN_bbstab3 .content-swiper {
  overflow: visible;
  position: relative;
}

/* 그리드 레이아웃: 3열 x 2행 */
.MAIN_bbstab3 .content-swiper .swiper-wrapper {
  --grid-gap-row: 50px;    /* 행 간격 */
  --grid-gap-col: 50px;    /* 열 간격 */
  position: relative;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--grid-gap-row) var(--grid-gap-col);
  transform: none !important;
}

/* 슬라이드(카드) 아이템 - 그리드 칸 100% 채움 */
.MAIN_bbstab3 .swiper-slide {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box;
}

/* 슬라이드 내부 모든 요소 100% */
.MAIN_bbstab3 .swiper-slide > * {
  width: 100% !important;
  max-width: 100% !important;
}

/* 6개 초과 아이템 숨김 */
.MAIN_bbstab3 .swiper-slide:nth-child(n+7) {
  display: none;
}

/**** pc ****/
@media only all and (min-width:768px) {
  .MAIN_bbstab3 .bbs_swiper_wrap {
    padding: 0px;
  }

  /* 하단 네비게이션 - 그리드 모드에서는 숨김 */
  .MAIN_bbstab3 .swiper-nav-bottom {
    display: none !important;
  }
}

/**** 모바일 ****/
@media only all and (max-width:767px) {
  .MAIN_bbstab3 .bbs_swiper_wrap {
    padding: 0px 15px;
  }

  /* 모바일: 2열 그리드 */
  .MAIN_bbstab3 .content-swiper .swiper-wrapper {
    --grid-gap-row: 20px;
    --grid-gap-col: 15px;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--grid-gap-row) var(--grid-gap-col);
  }

  /* 모바일 하단 네비게이션 - 숨김 */
  .MAIN_bbstab3 .swiper-nav-bottom {
    display: none !important;
  }
}


/* Swiper 슬라이드 - slidesPerView 정수 사용시 자동 계산됨 */
/* 슬라이드 너비는 Swiper breakpoints에서 제어 */
.MAIN_bbstab3 .swiper-slide {
  flex-shrink: 0;
  box-sizing: border-box;
}

/* slidesPerView: 'auto' 사용시에만 고정 너비 적용 */
.MAIN_bbstab3 .content-swiper.auto-width .swiper-slide {
  width: min(100%, 375px) !important;
}

@media (max-width: 420px) {
  .MAIN_bbstab3 .content-swiper.auto-width .swiper-slide {
    width: 100% !important;
    max-width: 375px;
  }
}


/* ================================================
   데코 이미지 스타일
   ================================================

   [클래스 명명 규칙]
   .deco_img_[항목번호]_[이미지번호]
   예: .deco_img_6_1 = 항목6의 이미지1

   [위젯 CSS 필드에서 커스터마이징 예시]

   .deco_img_6_1 {
     top: -50px;
     right: 0;
     width: 200px;
   }
   .deco_img_6_2 {
     bottom: 0;
     left: -30px;
     width: 150px;
   }

   ================================================ */

/* 데코 영역 컨테이너 - 탭 콘텐츠 뒤에 배치 */
.MAIN_bbstab3 .deco_area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0; /* tab_content_wrap이 z-index:1이므로 그 뒤에 배치 */
  overflow: visible;
}

/* 왼쪽 확장용 데코 영역 - 항상 overflow visible 유지 */
.MAIN_bbstab3 .deco_area_left {
  overflow: visible !important; /* full-right 영향 받지 않음 */
}

/* 오른쪽 확장용 데코 영역 - 컨테이너 시작점에서 시작, 오른쪽 끝까지 확장 */
.MAIN_bbstab3 .deco_area_right {
  position: absolute;
  bottom: 0px;
  /* 컨테이너 시작점 계산: (100vw - 컨테이너너비) / 2 */
  left: calc((100% - var(--container-width, 1560px)) / 2);
  right: 0; /* 오른쪽 끝까지 */
  width: auto; /* left와 right로 너비 결정 */
  height: 100%;
  pointer-events: none;
  z-index: -1; /* 가장 뒤에 배치 */
}

/* 컨테이너가 뷰포트보다 작을 때만 계산 적용, 뷰포트가 작으면 left:0 */
@media (max-width: 1400px) {
  .MAIN_bbstab3 .deco_area_right {
    left: 0;
  }
}

/* full-right 활성화 시 오른쪽 데코 영역만 잘림 */
.MAIN_bbstab3:has(.tab-content.active .bbs_swiper_wrap.full-right) .deco_area_right {
  overflow: hidden !important;
}


/* 데코 이미지 기본 스타일 - 탭 콘텐츠 뒤에 배치 */
.MAIN_bbstab3 .deco_img {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.MAIN_bbstab3 .deco_img img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 데코 텍스트 기본 스타일 */
.MAIN_bbstab3 .deco_txt {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* PC/모바일 표시 제어 */
.MAIN_bbstab3 .wg_pc_only {
  display: block;
}

.MAIN_bbstab3 .wg_mo_only {
  display: none;
}

@media only all and (max-width:767px) {
  .MAIN_bbstab3 .wg_pc_only {
    display: none;
  }
  .MAIN_bbstab3 .wg_mo_only {
    display: block;
  }
}

/* 관리자 모드 - 데코 이미지 편집 가능 상태 */
.MAIN_bbstab3 .deco_area.admin_mode {
  pointer-events: auto;
}

.MAIN_bbstab3 .deco_area.admin_mode .deco_img {
  pointer-events: auto;
  cursor: pointer;
  outline: 2px dashed transparent;
  outline-offset: 2px;
  transition: outline-color 0.2s ease;
}

.MAIN_bbstab3 .deco_area.admin_mode .deco_img:hover {
  outline-color: #f59e0b;
}

/* ================================================
   데코 이미지 위치 예시 (참고용)
   실제 사용 시 위젯 CSS 필드에서 오버라이드
   ================================================ */

/*
[예시 1] 우측 상단 장식
.MAIN_bbstab3 .deco_img_6_1 {
  top: -30px;
  right: 20px;
  width: 180px;
}

[예시 2] 좌측 하단 장식
.MAIN_bbstab3 .deco_img_6_2 {
  bottom: -20px;
  left: -40px;
  width: 120px;
  opacity: 0.8;
}

[예시 3] 배경 이미지 스타일
.MAIN_bbstab3 .deco_img_7_1 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  opacity: 0.1;
  z-index: 0;
}
*/


.MAIN_bbstab3 .deco_img_5_1 {
  top: 0px;
  left: auto !important; /* left 해제 - right 기준으로 배치 */
  right: 0px;
  width: 150%; height: 630px;
  opacity: 0.8; z-index: 0; text-align: right; border-radius: 0px 80px 0px 0px; overflow: hidden;
}
.MAIN_bbstab3 .deco_img_5_1 img{ position: absolute; right: 0px; top: 0px
}

.MAIN_bbstab3 .deco_txt_5_1 {
  position: absolute !important;
  top: auto !important;
  bottom: 0px;
  left: 5%;
  right: auto !important;
  width: 150%; /* 컨테이너 기준 */
  height: 630px;
  opacity: 0.8;
  z-index: -1;
  text-align: right;

  background-color: #e6e9f0;
  border-radius: 0px 0px 0px 40px;
}
.MAIN_bbstab3 .deco_txt_5_1:before {content: "\eb19";    font-family: unicons-line;
  position: absolute !important;
  top: auto !important;
  bottom: 0px;
  left:100%;
  right: auto !important;
  width:100%; /* 컨테이너 기준 */
  height: 630px;
  opacity: 0.8;
  z-index: -1;
  text-align: right;
  overflow: hidden;
  background-color: #000;
  background-color: #e6e9f0;
}


/* ================================================
   탭 라벨 컬러 스타일
   ================================================ */

/* 라벨 컬러가 설정된 탭 버튼 - 기본 상태 (흰색 배경, 검은 폰트, 연한 회색 라인) */
.MAIN_bbstab3 .tab_area .tabs .tab.has-label-color {
  --tab-label-color: #10b981; /* 기본 컬러 (fallback) */
  border-color: #e5e7eb;
  background: #fff;
  color: #333;
}

/* 라벨 컬러 탭 - 호버 상태 */
.MAIN_bbstab3 .tab_area .tabs .tab.has-label-color:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  color: #333;
}

/* 라벨 컬러 탭 - 활성화 상태 (on) - 지정 컬러 배경, 흰색 폰트, 지정 컬러 라인 */
.MAIN_bbstab3 .tab_area .tabs .tab.has-label-color.on {
  border-color: var(--tab-label-color) !important;
  background: var(--tab-label-color) !important;
  color: #fff !important;
  padding: 7px 50px 7px 20px !important;
}

/* 화살표 아이콘 - 기본적으로 숨김 */
.MAIN_bbstab3 .tab_area .tabs .tab .tab-arrow-icon {
  display: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #fff;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.MAIN_bbstab3 .tab_area .tabs .tab .tab-arrow-icon:hover {
  transform: scale(1.1);
}

.MAIN_bbstab3 .tab_area .tabs .tab .tab-arrow-icon i {
  font-size: 16px;
  line-height: 1;
}

/* 활성화된 탭에서만 화살표 아이콘 표시 */
.MAIN_bbstab3 .tab_area .tabs .tab.has-label-color.on .tab-arrow-icon {
  display: flex;
}

/* PC에서 라벨 컬러 탭 패딩 조정 (화살표 공간 확보) */
@media only all and (min-width:768px) {
  .MAIN_bbstab3 .tab_area .tabs .tab.has-label-color {
    padding: 7px 20px;
  }

  .MAIN_bbstab3 .tab_area .tabs .tab.has-label-color.on {
    padding: 7px 50px 7px 20px !important;
  }
}

/* 모바일에서 라벨 컬러 탭 패딩 조정 */
@media only all and (max-width:767px) {
  .MAIN_bbstab3 .tab_area .tabs .tab.has-label-color {
    padding: 10px 15px;
  }

  .MAIN_bbstab3 .tab_area .tabs .tab.has-label-color.on {
    padding: 10px 30px 10px 15px !important;
  }

  .MAIN_bbstab3 .tab_area .tabs .tab .tab-arrow-icon {
    width: 20px;
    height: 20px;
    margin-left: 6px;
  }

  .MAIN_bbstab3 .tab_area .tabs .tab .tab-arrow-icon i {
    font-size: 14px;
  }
}


/* ================================================
   빈 리스트 스타일 및 네비게이션 숨김
   ================================================ */

/* 빈 슬라이드 스타일 - 일반 슬라이드와 동일한 크기 유지 */
.MAIN_bbstab3 .empty-slide {
  width: 100%;
}

.MAIN_bbstab3 .empty-slide .empty_li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  margin: 0;
  padding: 40px 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 15px;
}

/* 빈 리스트일 때 네비게이션(화살표, 스크롤바) 숨김 */
.MAIN_bbstab3 .bbs_swiper_wrap:has(.empty-slide) .swiper-nav-bottom {
  display: none !important;
}

/* :has 미지원 브라우저용 클래스 (JS로 추가) */
.MAIN_bbstab3 .bbs_swiper_wrap.has-empty-slide .swiper-nav-bottom {
  display: none !important;
}


/* ================================================
   모바일 스와이퍼 레이아웃 - 100% + 양옆 패딩
   ================================================ */

@media only all and (max-width:767px) {
  /* 모바일에서 full-right 확장 해제 - 100% 유지 */
  .MAIN_bbstab3 .tab-content.active .bbs_swiper_wrap.full-right {
    width: 100%;
    overflow: hidden;
  }

  .MAIN_bbstab3 .tab-content.active .bbs_swiper_wrap.full-right .content-swiper {
    width: 100%;
    overflow: hidden;
    clip-path: none;
  }

  /* 모바일 스와이퍼 양옆 패딩 */
  .MAIN_bbstab3 .bbs_swiper_wrap {
    padding: 0 15px;
    box-sizing: border-box;
  }

  .MAIN_bbstab3 .content-swiper {
    width: 100%;
  }
}


/* ================================================
   카드 디자인 스타일 (temhain-N4 참고)
   ================================================ */

/* 카드 아이템 기본 스타일 */
.MAIN_bbstab3 .swiper-slide .li_box {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  height: 100%;
}

.MAIN_bbstab3 .swiper-slide .li_box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* 이미지 영역 */
.MAIN_bbstab3 .swiper-slide .li_box .img_box {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.MAIN_bbstab3 .swiper-slide .li_box .img_box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.MAIN_bbstab3 .swiper-slide .li_box:hover .img_box img {
  transform: scale(1.05);
}

/* 라벨 영역 - 이미지 위 좌측 상단 */
.MAIN_bbstab3 .swiper-slide .li_box .label_box,
.MAIN_bbstab3 .swiper-slide .li_box .cate_label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--tab-label-color, var(--primary, #10b981));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 2;
}

/* 텍스트 콘텐츠 영역 */
.MAIN_bbstab3 .swiper-slide .li_box .txt_box,
.MAIN_bbstab3 .swiper-slide .li_box .info_box {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

/* 제목 스타일 */
.MAIN_bbstab3 .swiper-slide .li_box .tit,
.MAIN_bbstab3 .swiper-slide .li_box .subject {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* 설명 스타일 */
.MAIN_bbstab3 .swiper-slide .li_box .desc,
.MAIN_bbstab3 .swiper-slide .li_box .summary {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* 날짜 스타일 */
.MAIN_bbstab3 .swiper-slide .li_box .date {
  font-size: 13px;
  color: #9ca3af;
  margin-top: auto;
}

/* MORE 버튼 스타일 */
.MAIN_bbstab3 .swiper-slide .li_box .more_btn,
.MAIN_bbstab3 .swiper-slide .li_box .btn_more {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: var(--primary, #10b981);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
  z-index: 2;
}

.MAIN_bbstab3 .swiper-slide .li_box .more_btn:hover,
.MAIN_bbstab3 .swiper-slide .li_box .btn_more:hover {
  background: var(--primary-700, #059669);
  transform: scale(1.1);
}

.MAIN_bbstab3 .swiper-slide .li_box .more_btn i,
.MAIN_bbstab3 .swiper-slide .li_box .btn_more i {
  font-size: 18px;
}

/* 이미지 우측 MORE 버튼 스타일 (대안) */
.MAIN_bbstab3 .swiper-slide .li_box .img_box .more_btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  z-index: 2;
}

.MAIN_bbstab3 .swiper-slide .li_box .img_box .more_btn i {
  color: var(--primary, #10b981);
  font-size: 20px;
}

.MAIN_bbstab3 .swiper-slide .li_box .img_box .more_btn:hover {
  background: var(--primary, #10b981);
  transform: scale(1.1);
}

.MAIN_bbstab3 .swiper-slide .li_box .img_box .more_btn:hover i {
  color: #fff;
}

/**** 모바일 카드 스타일 ****/
@media only all and (max-width:767px) {
  .MAIN_bbstab3 .swiper-slide .li_box {
    border-radius: 12px;
  }

  .MAIN_bbstab3 .swiper-slide .li_box .txt_box,
  .MAIN_bbstab3 .swiper-slide .li_box .info_box {
    padding: 15px;
    gap: 8px;
  }

  .MAIN_bbstab3 .swiper-slide .li_box .tit,
  .MAIN_bbstab3 .swiper-slide .li_box .subject {
    font-size: 15px;
    -webkit-line-clamp: 2;
  }

  .MAIN_bbstab3 .swiper-slide .li_box .desc,
  .MAIN_bbstab3 .swiper-slide .li_box .summary {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .MAIN_bbstab3 .swiper-slide .li_box .label_box,
  .MAIN_bbstab3 .swiper-slide .li_box .cate_label {
    font-size: 11px;
    padding: 4px 10px;
  }

  .MAIN_bbstab3 .swiper-slide .li_box .img_box .more_btn {
    width: 32px;
    height: 32px;
  }

  .MAIN_bbstab3 .swiper-slide .li_box .img_box .more_btn i {
    font-size: 16px;
  }
}


/* ================================================
   이미지 카드 스타일 (SCF_totalnotice 스킨용)
   ================================================ */

/* 카드 아이템 */
.MAIN_bbstab3 .card_item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  text-decoration: none;
  width: 100% !important;
  max-width: 100% !important;
  height: 100%;
}

.MAIN_bbstab3 .card_item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* 이미지 영역 */
.MAIN_bbstab3 .card_img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f3f4f6;
}

.MAIN_bbstab3 .card_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.MAIN_bbstab3 .card_item:hover .card_img img {
  transform: scale(1.05);
}

/* MORE 버튼 (화살표) */
.MAIN_bbstab3 .card_more {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  background: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
}

.MAIN_bbstab3 .card_more i {
  color: #fff;
  font-size: 22px;
}

.MAIN_bbstab3 .card_item:hover .card_more {
  background: var(--primary, #10b981);
  transform: scale(1.05);
}

/* 텍스트 영역 */
.MAIN_bbstab3 .card_info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0px!important;
}

/* 라벨 */
.MAIN_bbstab3 .card_label {
  display: inline-block;
  width: fit-content;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin-bottom: 4px;
}

/* 라벨 색상 */
.MAIN_bbstab3 .card_label.labelcolor1 { color: #f16246; }
.MAIN_bbstab3 .card_label.labelcolor2 { color: #f7b55e; }
.MAIN_bbstab3 .card_label.labelcolor3 { color: #13b4b7; }

/* 제목 */
.MAIN_bbstab3 .card_title {
font-size:calc(var(--tit-mds-size) * 0.9);
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* 설명 */
.MAIN_bbstab3 .card_desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  margin-top: 4px;
}

/* 호버 시 색상 변화 */
.MAIN_bbstab3 .card_item.color1:hover .card_more { background: #f16246; }
.MAIN_bbstab3 .card_item.color2:hover .card_more { background: #f7b55e; }
.MAIN_bbstab3 .card_item.color3:hover .card_more { background: #13b4b7; }

/* 모바일 스타일 */
@media only all and (max-width:767px) {
  .MAIN_bbstab3 .card_item {
    border-radius: 12px;
  }

  .MAIN_bbstab3 .card_img {
    aspect-ratio: 16/9;
  }

  .MAIN_bbstab3 .card_more {
    width: 36px;
    height: 36px;
    bottom: 10px;
    right: 10px;
  }

  .MAIN_bbstab3 .card_more i {
    font-size: 18px;
  }

  .MAIN_bbstab3 .card_info {
    padding: 15px;
    gap: 6px;
  }

  .MAIN_bbstab3 .card_label {
    font-size: 12px;
  }

  .MAIN_bbstab3 .card_title {
font-size:calc(var(--tit-mds-size) * 0.9);
  }

  .MAIN_bbstab3 .card_desc {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }
}

