/* ================================================
   MAIN_SWCF_7_1 - 게시판 탭 믹스 위젯 스타일
   상단: 탭 (가로) + 더보기
   하단: 게시물 리스트 (첫번째 이미지카드 + 나머지 텍스트리스트)
   ================================================ */

.MAIN_SWCF_7_1 {
  width: 100%;
  float: left;
  position: relative;
  padding:30px ; background-color: #f7f7f7; border-radius: 30px
}

.MAIN_SWCF_7_1 .contents-container {
  position: relative;
}

/* float 요소 높이 포함을 위한 clearfix */
.MAIN_SWCF_7_1 .contents-container::after {
  content: "";
  display: table;
  clear: both;
}

/* ================================================
   전체 레이아웃
   ================================================ */
.MAIN_SWCF_7_1 .bbstab2-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ================================================
   상단: 탭 + 더보기
   ================================================ */
.MAIN_SWCF_7_1 .bbstab2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;

}

/* 탭 버튼 스타일 (가로 배치) */
.MAIN_SWCF_7_1 .bbstab2-tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.MAIN_SWCF_7_1 .bbstab2-tabs .tab-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.MAIN_SWCF_7_1 .bbstab2-tabs .tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  background: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.MAIN_SWCF_7_1 .bbstab2-tabs .tab:hover {
  color: var(--primary, #10b981);
}

/* 활성화 탭: 프라이머리 색상 배경 + 흰 글씨 */
.MAIN_SWCF_7_1 .bbstab2-tabs .tab.on {
  background: var(--primary, #10b981);
  color: #fff;
  font-weight: 600;
}

.MAIN_SWCF_7_1 .bbstab2-tabs .tab .tab-label {
  line-height: 1;
}

/* 관리자 설정 아이콘 */
.MAIN_SWCF_7_1 .bbstab2-tabs .tab_mix_icon {
  position: absolute;
  right: -8px;
  top: -8px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #10b981;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
}

.MAIN_SWCF_7_1 .bbstab2-tabs .tab-wrapper:hover .tab_mix_icon {
  opacity: 1;
}

.MAIN_SWCF_7_1 .bbstab2-tabs .tab_mix_icon i {
  font-size: 12px;
  color: #fff;
}

/* ================================================
   더보기 링크 (우측)
   ================================================ */
.MAIN_SWCF_7_1 .bbstab2-more {
  flex-shrink: 0;
}

.MAIN_SWCF_7_1 .bbstab2-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.MAIN_SWCF_7_1 .bbstab2-more a:hover {
  color: #1e293b;
}

.MAIN_SWCF_7_1 .bbstab2-more .more-text {
  display: inline-flex;
  align-items: center;
}

.MAIN_SWCF_7_1 .bbstab2-more .more-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  transition: all 0.2s;
}

.MAIN_SWCF_7_1 .bbstab2-more a:hover .more-icon {
  border-color: #1e293b;
}

.MAIN_SWCF_7_1 .bbstab2-more .more-icon i {
  font-size: 14px;
}

/* ================================================
   하단: 게시물 콘텐츠 영역
   ================================================ */
.MAIN_SWCF_7_1 .bbstab2-content {
  width: 100%;
}

.MAIN_SWCF_7_1 .tab-content {
  display: none;
}

.MAIN_SWCF_7_1 .tab-content.active {
  display: block;
}

.MAIN_SWCF_7_1 .bbs_list_wrap {
  width: 100%;
}

/* ================================================
   구분선
   ================================================ */
.MAIN_SWCF_7_1 .bbstab2-divider {
  width: 100%;
  height: 1px;
  background: #e2e8f0;
  margin-top: 40px;
}

/* ================================================
   빈 리스트 스타일
   ================================================ */
.MAIN_SWCF_7_1 .empty_li {
  padding: 60px 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 15px;
}

/* ================================================
   반응형 - 태블릿
   ================================================ */
@media only all and (max-width: 1024px) {
  .MAIN_SWCF_7_1 .bbstab2-tabs .tab {
    padding: 10px 20px;
    font-size: 15px;
  }
}

/* ================================================
   반응형 - 모바일
   ================================================ */
@media only all and (max-width: 767px) {
  .MAIN_SWCF_7_1 {
    padding: 20px;
  }

  .MAIN_SWCF_7_1 .bbstab2-layout {
    gap:10px;
  }

  .MAIN_SWCF_7_1 .bbstab2-header {
    padding-bottom: 15px;
  }

  /* 탭 가로 스크롤 */
  .MAIN_SWCF_7_1 .bbstab2-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 5px;
  }

  .MAIN_SWCF_7_1 .bbstab2-tabs::-webkit-scrollbar {
    display: none;
  }

  .MAIN_SWCF_7_1 .bbstab2-tabs .tab {
    padding: 10px 18px;
    font-size: 14px;
  }

  .MAIN_SWCF_7_1 .bbstab2-more a {
    font-size: 14px;
  }

  .MAIN_SWCF_7_1 .bbstab2-divider {
    margin-top: 30px;
  }
}

/* ================================================
   관리자 모드 스타일
   ================================================ */
.MAIN_SWCF_7_1 .tab-content.tab_admin_mode {
  position: relative;
  border: 2px dashed #10b981;
  transition: all 0.2s ease;
}

.MAIN_SWCF_7_1 .tab-content.tab_admin_mode:hover {
  border-color: #059669;
  background-color: rgba(16, 185, 129, 0.03);
}

/* 포커스 스타일 제거 */
.MAIN_SWCF_7_1 .bbstab2-tabs [role="tab"] {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.MAIN_SWCF_7_1 .bbstab2-tabs [role="tab"]:focus {
  outline: none;
  box-shadow: none;
}

.MAIN_SWCF_7_1 .bbstab2-tabs [role="tab"]:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* 숨김 보장 */
[hidden] {
  display: none !important;
}

/* ================================================
   데코 영역 스타일
   ================================================ */
.MAIN_SWCF_7_1 .deco_area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.MAIN_SWCF_7_1 .deco_area_left {
  overflow: visible !important;
}

.MAIN_SWCF_7_1 .deco_area_right {
  position: absolute;
  bottom: 0px;
  left: calc((100% - var(--container-width, 1560px)) / 2);
  right: 0;
  width: auto;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 1400px) {
  .MAIN_SWCF_7_1 .deco_area_right {
    left: 0;
  }
}

.MAIN_SWCF_7_1 .deco_img {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.MAIN_SWCF_7_1 .deco_img img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* PC/모바일 표시 제어 */
.MAIN_SWCF_7_1 .wg_pc_only {
  display: block;
}

.MAIN_SWCF_7_1 .wg_mo_only {
  display: none;
}

@media only all and (max-width:767px) {
  .MAIN_SWCF_7_1 .wg_pc_only {
    display: none;
  }
  .MAIN_SWCF_7_1 .wg_mo_only {
    display: block;
  }
}

/* 관리자 모드 - 데코 이미지 편집 가능 상태 */
.MAIN_SWCF_7_1 .deco_area.admin_mode {
  pointer-events: auto;
}

.MAIN_SWCF_7_1 .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_SWCF_7_1 .deco_area.admin_mode .deco_img:hover {
  outline-color: #f59e0b;
}
