

/* 구분 -----------------------------------*/
/* ★ 탭 스타일은 공통 CSS(.hayan_tab_st1)로 제어 - wing_sub_right.php에서 설정 */
/**** pc ****/
@media only all and (min-width:768px) {
.tab_1 .contents-container .sub_stit{width: 100%; float: left; font-size:calc(var(--tit-md-size) * 1); font-weight: 700; line-height: 130%; margin-bottom: 40px; }

.tab_1 .contents-container .tab_area{width: 100%; float: left; overflow: hidden; }
/* 탭 버튼 스타일은 .hayan_tab_st1 공통 CSS 사용 */



/* 화살표 버튼 */
.arrow {
position: absolute;
top: 50%;
transform: translateY(-80%);
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
}
.arrow.left { left: 5px; }
.arrow.right { right: 5px; }


}
/**** pc2 ****/
@media all and (max-width:1280px) and (min-width:768px) {
}
/**** 모바일 ****/
@media only all and (max-width:767px) {
.tab_1 .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; }


.tab_1 .contents-container .tab_area{ width: 100%; float: left; position: relative; overflow: hidden;}
/* 모바일 탭 버튼 스타일은 .hayan_tab_st1 공통 CSS 사용 */

.scroll-hidden {
overflow-x: auto;
-webkit-overflow-scrolling: touch; /* iOS 부드러운 스크롤 */
scrollbar-width: none; /* Firefox */
}

.scroll-hidden::-webkit-scrollbar {
display: none; /* Chrome, Safari, Opera */
}  


.scroll-mask {position: relative; padding: 0px 0px}

/* 마스크 효과 */
.scroll-mask::before,
.scroll-mask::after {
content: '';
position: absolute;
top: 0;
width:50px;
height: 70px;
z-index: 2;
pointer-events: none;
}
.scroll-mask::before {
content: '';
position: absolute;
top: 0;
left: -1px;
width: 60px;

background: linear-gradient(to right, #fff 0px, #fff 25px, transparent 40px);
z-index: 9999;
pointer-events: none;
}

.scroll-mask::after {
content: '';
position: absolute;
top: 0;
right:-1px;
width: 40px;

background: linear-gradient(to left, #fff 0px, #fff 25px, transparent 40px);
z-index: 9999;
pointer-events: none;
}

/* 화살표 버튼 */
.arrow {
position: absolute;
top:25px;

width: 36px;
height: 36px;
background: rgba(0,0,0,0.5);
color: #fff;
border: none;
border-radius: 50%;
z-index: 9999999;
cursor: pointer;
font-size: 18px;
line-height: 36px;
display: flex;
align-items: center;
justify-content: center;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
}
.arrow:active {
background: rgba(0,0,0,0.7);
transform: scale(0.95);
}
.arrow.left { left: 5px; }
.arrow.right { right: 5px; }


}
/**** 모바일2 ****/
@media only all and (max-width:400px) {
}
/* 구분 //end -----------------------------------*/



/* 구분 -----------------------------------*/
/* ★ 탭 버튼 스타일(.tab, .tab.on)은 공통 CSS(.hayan_tab_st1)로 제어 */
/**** pc ****/
@media only all and (min-width:768px) {
.tab_1 .tab-content { display: none;  padding: 0px 0PX; width: 100%; float: left }
.tab_1 .tab-content .grid_cont{width: 100%; float: left;display: flex;flex-direction: column;  }
}
/**** 모바일 ****/
@media only all and (max-width:767px) {
.tab_1 .tab-content { display: none;  background-color: #fafafa; padding: 10px 0px; border-radius: 6px;  }
}
/* 구분 //end -----------------------------------*/

.tab_1 .tab-content.active { display: block; }

/* ✅ 탭 링크 스타일 (a 태그 탭) - 공통 CSS와 호환 */
.tab_1 .tab_area .tabs .tab.tab-link {
  text-decoration: none;
  color: inherit;
}


/* 기본 포커스 링/하이라이트 제거 */
.tabs [role="tab"] {
outline: none;
-webkit-tap-highlight-color: transparent;
}
.tabs [role="tab"]:focus { outline: none; box-shadow: none; }
.tabs [role="tab"]::-moz-focus-inner { border: 0; }

/* 키보드 탐색일 때만 보이게 하려면 이 줄 유지/수정, 완전 숨기려면 아예 지우세요 */
.tabs [role="tab"]:focus-visible {
/* 포커스 보일 필요 없으면 다음 두 줄도 주석 처리 또는 삭제 */
outline: 0;
box-shadow: none;
}

/* 크롬의 :focus 표시를 강제로 숨김 (focus-visible 아닐 때) */
.tabs [role="tab"]:focus:not(:focus-visible){
outline: none !important;
box-shadow: none !important;
}

/* ===== 관리자 모드 스타일 (권한 8 이상) ===== */
/* 관리자 모드일 때 스크롤 방지 */
html:has(.tab_admin_mode),
body:has(.tab_admin_mode) {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* tab_1 전체 너비 제한 */
.tab_1 {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

.tab_1 .tab_area {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  overflow: hidden !important;
}

.tab_1 .tab-content {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  overflow-x: hidden !important;
}

.tab_1 .tab-content.tab_admin_mode {
  position: relative;
  border: 2px dashed #3b82f6;
  overflow: visible;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.tab_1 .tab-content.tab_admin_mode:hover {
  border-color: #2563eb;
  background-color: rgba(59, 130, 246, 0.03);
}

/* 탭 컨테이너 관리자 뱃지 */
.tab_1 .tab_admin_badge,
.hayan_tab_st1 .tab_admin_badge {
  position: absolute;
  top: 5px;
  right: 10px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  border-radius: 20px;
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tab_1 .tab_admin_badge:hover,
.hayan_tab_st1 .tab_admin_badge:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.tab_1 .tab_admin_badge i,
.hayan_tab_st1 .tab_admin_badge i {
  font-size: 12px;
}

/* 모바일에서 관리자 뱃지 */
@media only all and (max-width:767px) {
  .tab_1 .tab_admin_badge,
  .hayan_tab_st1 .tab_admin_badge {
    top: 3px;
    right: 5px;
    padding: 3px 8px;
    font-size: 10px;
  }

  .tab_1 .tab-content.tab_admin_mode {
    padding: 15px;
  }
}



