/* font, color, body 기본값 */
:root {
  --font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  --color-primary: #007bff;
  --color-secondary: #6c757d;
  --color-success: #28a745;
  --color-danger: #dc3545;
  --color-warning: #ffc107;
  --color-info: #17a2b8;
  --color-light: #f8f9fa;
  --color-dark: #111;
  --color-gray: #333;
  --color-white: #f1f1f1;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  color: var(--color-dark);
  letter-spacing: -0.01em;
  background-color: #212a63; 
  word-break: keep-all;
}

/* --- 서브페이지 메인 래퍼(Wrapper) 여백 설정 --- */
#wrapper {
  position: relative;
  z-index: 1;
  /* PC 기준 헤더 높이(90px)만큼 위로 공간을 밀어줌 */
  padding-top: 90px;
}

/* 태블릿 해상도 헤더 높이(80px)에 맞춤 */
@media (max-width: 1024px) {
  #wrapper {
    padding-top: 80px;
  }
}

/* 모바일 해상도 헤더 높이(65px)에 맞춤 */
@media (max-width: 768px) {
  #wrapper {
    padding-top: 65px;
  }
}

/* ========================================= */
/* --- 공통 레이아웃 (Container) 뼈대 --- */
/* ========================================= */

/* 기본 1400px 넓은 컨테이너 */
.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 50px;
  box-sizing: border-box;
}

/* 좁은 컨테이너 (공지사항 본문, 텍스트 위주의 페이지용 - 가독성 극대화) */
.container1200 {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 50px;
  box-sizing: border-box;
}

/* --- 컨테이너 반응형 (태블릿 & 모바일 여백 조정) --- */
@media (max-width: 1024px) {
  .container,
  .container1200 {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .container,
  .container1200 {
    padding: 0 20px; /* 모바일에서는 여백을 줄여서 콘텐츠 공간 확보 */
  }
}

#wrapper {
  background: #fff;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}
.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: #a8ff00;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

/* ===================================== HEADER ===================================== */
/* --- 헤더 및 로고 --- */
.top_header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  box-sizing: border-box;
  background: transparent;
  z-index: 100;
}
/* 메가메뉴 드롭다운 배경 (기본 투명, 마우스 오버시 확장) */
.header_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #212a63;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}
.logo img {
  height: 36px;
}

/* --- PC 메인 네비게이션 (메가메뉴 스타일) --- */
.top_menu {
  display: flex;
  gap: 124px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.top_menu > li {
  position: relative;
  padding: 35px 0; /* 마우스가 벗어나지 않도록 헤더 영역 꽉 채움 */
}
.top_menu > li > a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  transition: 0.25s;
}
.top_menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  background: #a8ff00;
  transition: 0.25s;
}
.top_menu > li:hover > a::after,
.top_menu > li.active > a::after {
  width: 100%;
}

@media (min-width: 769px) {
  /* top_menu에 마우스 올렸을 때 메가메뉴 배경 확장 (최신 브라우저용) */
  .top_header:has(.top_menu:hover) .header_bg,
  .top_header.mega_open .header_bg {
    height: 380px; /* 서브메뉴가 긴 항목에 맞춘 전체 높이 */
    /* background: rgba(10, 10, 10, 0.95); */
    background: #212a63;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(168, 255, 0, 0.3);
  }

  /* 모든 서브메뉴 동시 노출 */
  .top_header:has(.top_menu:hover) .sub_menu,
  .top_header.mega_open .sub_menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .sub_menu {
    position: absolute;
    top: 75px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);

    /* 너비 제한을 걸어 텍스트가 너무 길면 줄바꿈 되도록 유도 */
    width: max-content;
    min-width: 150px;
    max-width: 180px;

    padding: 15px 0;
    margin: 0;
    list-style: none;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .sub_menu > li > a {
    display: block;
    color: #cecece;
    padding: 10px 15px;
    text-decoration: none;
    font-size: 16px;
    transition: 0.2s;

    /* 텍스트가 넘칠 때 단어 단위로 깔끔하게 줄바꿈 */
    word-break: keep-all;
    line-height: 1.4;
  }
  .sub_menu > li:hover > a,
  .sub_menu > li.active > a {
    color: #a8ff00;
    font-weight: 600;
  }
}

/* --- 우측 유틸 영역 (영어버튼 & 햄버거) --- */
.top_util {
  display: flex;
  align-items: center;
  gap: 30px; /* ENG 버튼과 햄버거 버튼 사이 간격 */
}

.top_util a {
  color: #fff;
}

/* 영어 전환 버튼 스타일 */
.lang_btn {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.2s ease;
}
.lang_btn:hover {
  border-color: #a8ff00;
  color: #a8ff00;
  background: rgba(168, 255, 0, 0.05);
}

/* 모바일 햄버거 버튼 수정 (상단바 중앙정렬 유지용) */
.mobile_btn {
  display: none; /* PC에서는 기본 숨김 */
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1000;
}
.mobile_btn span {
  width: 30px;
  height: 2px;
  background: #fff;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile_btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background: #a8ff00;
}
.mobile_btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile_btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background: #a8ff00;
}

/* --- 반응형 (노트북/태블릿/모바일) --- */

/* 1. 작은 데스크톱 (1400px 이하) */
@media (max-width: 1400px) {
  .top_menu {
    gap: 80px;
  } /* 140px에서 서서히 줄임 */
}

/* 2. 작은 노트북/아이패드 프로 (1200px 이하) */
@media (max-width: 1200px) {
  .top_header {
    padding: 0 40px;
  }
  .top_menu {
    gap: 40px;
  }
}

/* 3. 태블릿 및 일반 노트북 (1024px 이하) */
@media (max-width: 1024px) {
  .top_header {
    padding: 0 30px;
    height: 80px;
  }
  .logo img {
    height: 36px;
  }

  /* 핵심 1: 가로 공간 확보를 위해 1024px부터 SNS 아이콘 그룹 숨김 */
  .top_sns {
    display: none;
  }

  /* 핵심 2: 확보된 공간을 활용해 서브메뉴가 겹치지 않도록 gap을 55px 이상으로 유지 */
  .top_menu {
    gap: 55px;
  }
  .top_menu > li > a {
    font-size: 16px;
  }

  /* 핵심 3: 서브메뉴 최대 너비를 메뉴 간격(gap+글씨너비)보다 작게 제한하여 겹침 원천 차단 */
  .sub_menu {
    min-width: 110px;
    max-width: 125px;
    padding: 10px 0;
  }
  .sub_menu > li > a {
    font-size: 13px;
    padding: 8px 10px;
    letter-spacing: -0.5px; /* 자간을 살짝 줄여 텍스트가 예쁘게 떨어지도록 함 */
  }

  /* 태블릿/모바일 환경에서 커스텀 커서 숨기기 */
  .cursor {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .top_header {
    height: 65px;
    padding: 0 20px;
    background: #212a63;
  }
  .header_bg {
    display: none;
  } /* 모바일에선 배경 확장 불필요 */
  .logo img {
    height: 30px;
  }
  .top_sns {
    display: none;
  }

  .mobile_btn {
    display: flex;
  }

  /* 모바일 풀스크린 오버레이 메뉴 */
  .top_menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(33, 42, 99, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: 0.4s ease-in-out;
    z-index: 999;
    overflow-y: auto;
    padding: 50px 0;
  }
  .top_menu.open {
    right: 0;
  }
  .top_menu > li {
    width: 100%;
    text-align: center;
    padding: 0;
  }
  .top_menu > li > a {
    font-size: 20px;
    padding: 15px 0;
    display: block;
  }

  /* 모바일 아코디언 서브메뉴 */
  .sub_menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    display: none;
    padding: 15px 0 15px 0;
    margin: 0;
    list-style: none;

    /* 핵심 수정: 태블릿에서 걸어둔 너비 제한을 모바일에서는 100%로 풀어줌 */
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    text-align: center;
  }
  .sub_menu.open {
    display: block;
  }
  .sub_menu > li > a {
    font-size: 15px;
    padding: 8px 0;
    color: #888;
    display: block;
    text-decoration: none;
    text-align: center; /* 텍스트 중앙 정렬 쐐기 */
  }
  .sub_menu > li.active > a,
  .sub_menu > li:hover > a {
    color: #a8ff00;
  }
}

/* ===================================== FOOTER ===================================== */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #a8ff00;
  color: #212a63;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top-btn:hover {
  transform: translateY(-3px);
}
.scroll-top-btn:hover i {
  animation: arrowBounce 0.6s ease infinite;
}
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@media (max-width: 768px) {
  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
}

.bottom_footer {
  background: #0D1017;
  padding: 24px 0 50px;
  color: #fff;
  position: relative;
  z-index: 10;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.footer_inner {
  margin: 0 auto;
  padding: 0 50px;
}

/* 1. 메가 텍스트*/
.footer_mega_text {
  font-size: 6.5vw;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  color: #fff;
}

/* 2. 비즈니스 정보 (은은하게 처리) */
.footer_business_info {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 40px;
}
.footer_business_info b {
  color: #c0c0c0;
  font-weight: normal;
}
.footer_business_info .divider {
  margin: 0 8px;
  color: #444;
}

/* 3. 하단 바 영역 (Flexbox 배치) */
.footer_bottom_bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 10px;
}

/* 하단 좌측 */
.bottom_left {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 15px;
}
.bl_row {
  display: flex;
  align-items: center;
  gap: 15px;
  line-height: 16px;
  flex-wrap: wrap;
}
.copyright {
  font-weight: 400;
}
.divider_bold {
  color: #555;
}
.privacy_link {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}
.privacy_link:hover {
  color: #a8ff00;
}
.email_link {
  color: #fff;
  text-decoration: none;
  transition: 0.2s;
}
.email_link:hover {
  color: #a8ff00;
}

/* 하단 우측 */
.bottom_right {
  display: flex;
  align-items: center;
  gap: 40px;
}
/* --- SNS 아이콘 영역 --- */
.footer_sns {
  display: flex;
  gap: 15px;
  align-items: center;
}
.footer_sns a {
  font-size: 28px;
  transition: 0.2s;
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* 1. 유튜브 고유 컬러 (레드) */
.footer_sns a .bi-youtube {
  color: #FF0000;
}

/* 2. 페이스북 고유 컬러 (블루) */
.footer_sns a .bi-facebook {
  color: #1877F2;
}

/* 3. 인스타그램 고유 컬러 (그라데이션 텍스트 효과) */
.footer_sns a .bi-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 4. 네이버 블로그 SVG 이미지 (강제 화이트 필터 제거) */
.footer_sns a img { 
  width: 28px; 
  opacity: 1;
}
.footer_sns a:first-child img { 
  width: 60px; 
}

/* 마우스 올렸을 때 위로 살짝 뜨는 효과 */
.footer_sns a:hover { 
  transform: translateY(-4px); 
}

.footer_sub_logo img {
  height: 30px; /* 로고 높이 */
  /* filter: brightness(0) invert(1); */
}

/* --- 모달 디자인 (기존 유지) --- */
.privacy-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}
.privacy-modal-content {
  background-color: #1a1a1a;
  margin: 5% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.privacy-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background-color: #000;
  color: #fff;
  border-bottom: 1px solid rgba(168, 255, 0, 0.3);
}
.privacy-modal-header h2 {
  margin: 0;
  font-size: 18px;
  color: #a8ff00;
}
.privacy-modal-close {
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: 0.2s;
}
.privacy-modal-close:hover {
  color: #a8ff00;
}
.privacy-modal-body {
  padding: 30px;
  overflow-y: auto;
  color: #bbb;
  line-height: 1.8;
  text-align: left;
  font-size: 14px;
}

/* --- 모바일 반응형 (레퍼런스 이미지 2번 완벽 구현) --- */
@media (max-width: 1024px) {
  .footer_inner {
    padding: 0 40px;
  }
  .footer_mega_text {
    font-size: 14vw;
    margin-bottom: 50px;
  }
  .bottom_left {
    gap: 20px;
    font-size: 14px;
  }
  .bottom_right {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .bottom_footer {
    padding: 60px 0 40px;
  }
  .footer_inner {
    padding: 0 20px;
  }

  .footer_mega_text {
    font-size: 14.5vw; /* 모바일에서 글씨를 더 꽉 차게 */
    margin-bottom: 40px;
  }

  /* 비즈니스 정보 세로 정렬 */
  .footer_business_info {
    font-size: 12px;
    margin-bottom: 30px;
  }
  .footer_business_info span {
    display: block;
    margin-bottom: 3px;
  }
  .footer_business_info .divider,
  .footer_business_info .pc_br {
    display: none;
  }

  /* 하단 바: 모바일 레퍼런스(2번 이미지)처럼 배치 */
  .footer_bottom_bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }

  /* 좌측 내용 세로 쌓기 */
  .bottom_left {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* 우측(SNS, 로고)를 양끝으로 벌림 */
  .bottom_right {
    width: 100%;
    justify-content: space-between;
    padding-top: 15px; /* 약간의 여백 추가 */
    flex-wrap: wrap;
  }
}


/* ===================================== SUBPAGE LAYOUT ===================================== */

/* --- 서브페이지 상단 배너 (페이지 타이틀 영역) --- */
.page-banner {
  background: linear-gradient(160deg, #1a2050 0%, #0c1228 100%);
  padding: 80px 0 60px;
  text-align: center;
}
.page-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a8ff00;
  margin: 0 0 16px;
}
.page-title {
  font-size: 44px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.2;
}
.page-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.page-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .page-banner { padding: 60px 0 50px; }
  .page-title { font-size: 36px; }
}
@media (max-width: 768px) {
  .page-banner { padding: 50px 0 40px; }
  .page-title { font-size: 28px; }
  .page-desc { font-size: 14px; }
}

/* --- 서브페이지 히어로 헤더 V2 --- */
.page-banner-v2 {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse 45% 80% at 0% 0%,   rgba(33,42,99,0.14)  0%, transparent 100%),
    radial-gradient(ellipse 40% 80% at 100% 0%,  rgba(29,158,117,0.16) 0%, transparent 100%),
    radial-gradient(ellipse 42% 80% at 100% 100%, rgba(168,255,0,0.22)  0%, transparent 100%),
    radial-gradient(ellipse 35% 80% at 0% 100%,  rgba(74,47,189,0.10)  0%, transparent 100%),
    #f0f2f9;
  border-bottom: 1px solid rgba(33,42,99,0.08);
}

.pb-eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4A2FBD;
  margin: 0 0 10px;
}

.page-banner-v2 .pb-title {
  font-size: 36px;
  font-weight: 700;
  color: #212a63;
  margin: 0;
  line-height: 1.3;
}

.pb-accent {
  width: 32px;
  height: 3px;
  background: #a8ff00;
  border-radius: 2px;
  margin: 10px auto 0;
}

.pb-breadcrumb {
  margin-top: 12px;
  font-size: 14px;
  color: #aaaaaa;
}
.pb-breadcrumb a {
  color: #aaaaaa;
  text-decoration: none;
  transition: color 0.2s;
}
.pb-breadcrumb a:hover {
  color: #4A2FBD;
}
.pb-sep {
  margin: 0 6px;
  color: #cccccc;
}
.pb-current {
  color: #4A2FBD;
  font-weight: 500;
}

@media (max-width: 768px) {
  .page-banner-v2 {
    height: 110px;
  }
  .page-banner-v2 .pb-title {
    font-size: 20px;
  }
  .pb-eyebrow {
    font-size: 9px;
    margin-bottom: 6px;
  }
  .pb-accent {
    width: 24px;
    margin-top: 8px;
  }
  .pb-breadcrumb {
    font-size: 11px;
    margin-top: 8px;
  }
}

/* --- 서브페이지 콘텐츠 섹션 공통 --- */
.content-section {
  padding: 80px 0;
}

/* 섹션 헤더 (소제목 그룹) */
.section-header {
  margin-bottom: 50px;
}
.section-header.center { /* 중앙정렬 변형 */
  text-align: center;
}
.section-title {
  font-size: 32px;
  font-weight: 800;
  color: #111;
  margin: 0 0 14px;
  line-height: 1.3;
}

@media (max-width: 1024px) {
  .content-section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  .section-title { font-size: 26px; }
}
@media (max-width: 768px) {
  .content-section { padding: 50px 0; }
  .section-header { margin-bottom: 30px; }
  .section-title { font-size: 22px; }
  .section-desc { font-size: 14px; }
}

/* 섹션 배경 변형 (content-section에 추가 클래스로 사용) */
.content-section.bg-light { background: #f8f9fa; }
.content-section.bg-dark  { background: #212a63; }
.content-section.bg-dark .section-title { color: #fff; }
.content-section.bg-dark .section-desc  { color: rgba(255, 255, 255, 0.65); }

/* --- 서브타이틀 (아이콘 앞에 붙는 소제목 — 예: 행사개요) --- */
.section-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
}
.section-subtitle::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background: #a8ff00;
  border-radius: 2px;
  flex-shrink: 0;
}
.content-section.bg-dark .section-subtitle { color: #fff; }


/* ========================================= */
/* --- 공통 탭 내비게이션 (Page Tabs) --- */
/* ========================================= */

.page-tabs {
  background: #fff;
  border-bottom: 2px solid #e9ecef;
  position: sticky;
  top: 90px; /* 헤더 높이에 맞춤 */
  z-index: 50;
}

.tab-nav {
  display: flex;
  list-style: none;
  margin: 0 auto;
  padding: 0 50px;
  max-width: 1400px;
}

.tab-nav li {
  flex-shrink: 0;
}

.tab-btn {
  display: block;
  padding: 20px 36px;
  font-size: 16px;
  font-weight: 600;
  color: #666;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  font-family: var(--font-family);
  white-space: nowrap;
}

.tab-btn:hover {
  color: #212a63;
}

.tab-btn.active {
  color: #212a63;
  border-bottom-color: #a8ff00;
  font-weight: 700;
}

/* 탭 패널: 비활성 패널 숨김 */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

@media (max-width: 1024px) {
  .page-tabs { top: 80px; }
  .tab-nav { padding: 0 40px; }
  .tab-btn { padding: 16px 24px; font-size: 15px; }
}

@media (max-width: 768px) {
  .page-tabs { top: 65px; overflow-x: auto; }
  .tab-nav { padding: 0 20px; width: max-content; min-width: 100%; }
  .tab-btn { padding: 14px 20px; font-size: 14px; }
}


/* ========================================= */
/* --- 공통 유틸리티 --- */
/* ========================================= */

/* 테이블 가로 스크롤 래퍼 (서브페이지 테이블 공통) */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

/* 강조 텍스트 (빨간색) */
.highlight {
  color: #e60023;
  font-weight: 700;
}


/* ========================================= */
/* --- 게시판 공통 스타일 (Board) --- */
/* ========================================= */

/* 검색 영역 - 우측 정렬 */
.board-search {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 12px;
  align-items: center;
}
.board-search select {
  height: 38px;
  padding: 0 32px 0 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font-family);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%23555' d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 10px center;
  cursor: pointer;
}
.board-search input {
  height: 38px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font-family);
  width: 220px;
  box-sizing: border-box;
}
.board-search button {
  height: 38px;
  padding: 0 18px;
  background: #212a63;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font-family);
  transition: background 0.2s, color 0.2s;
}
.board-search button:hover {
  background: #a8ff00;
  color: #111;
}

/* 테이블 */
.board-table {
  width: 100%;
  border-top: 2px solid #212a63;
  border-collapse: collapse;
  font-size: 15px;
}
.board-table thead th {
  padding: 14px 10px;
  background: #f8f9fa;
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid #ddd;
}
.board-table tbody td {
  padding: 14px 10px;
  border-bottom: 1px solid #e9ecef;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-table tbody td.col-title {
  text-align: left;
  cursor: pointer;
}
.board-table tbody td.col-title:hover {
  text-decoration: underline;
}
.board-table tbody tr:hover {
  background: #f5f5f5;
  cursor: pointer;
}
.board-table tr.no-data td {
  text-align: center;
  color: #999;
  padding: 50px 10px;
}

/* 페이지네이션 */
.board-paging {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 30px;
}
.board-paging a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.board-paging a:hover {
  border-color: #212a63;
  color: #212a63;
}
.board-paging a.active {
  background: #212a63;
  border-color: #212a63;
  color: #fff;
  font-weight: 700;
}
.board-paging a.nav {
  color: #666;
}

/* 반응형 */
@media (max-width: 768px) {
  /* 검색 폼 */
  .board-search {
    flex-wrap: wrap;
  }
  .board-search select {
    flex: 1;
    min-width: 80px;
  }
  .board-search input {
    width: auto;
    flex: 2;
  }

  /* 게시판 테이블 - 번호/글쓴이/조회수 숨기기 */
  .board-table {
    font-size: 13px;
  }
  .board-table colgroup {
    display: none;
  }
  .board-table thead th:nth-child(1),
  .board-table thead th:nth-child(3),
  .board-table thead th:nth-child(5),
  .board-table tbody td:nth-child(1),
  .board-table tbody td:nth-child(3),
  .board-table tbody td:nth-child(5) {
    display: none;
  }
  .board-table tbody td {
    white-space: normal;
    word-break: keep-all;
  }
}

/* ========================================= */
/* --- 게시물 상세보기 (Board View) --- */
/* ========================================= */

/* 게시물 헤더 영역 */
.board-view-header {
  border-top: 2px solid #212a63;
  padding: 28px 0 20px;
}
.board-view-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  text-align: center;
  line-height: 1.5;
  margin: 0 0 20px;
  word-break: keep-all;
}

/* 메타 정보 (작성자, 날짜, 조회수) */
.board-view-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: #666;
  border-top: 1px solid #e9ecef;
  padding-top: 14px;
}
.board-view-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.board-view-meta i {
  font-size: 15px;
  color: #888;
}

/* 게시물 본문 */
.board-view-body {
  padding: 40px 0;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  min-height: 200px;
  word-break: keep-all;
}
.board-view-body p {
  margin: 0 0 14px;
}
.board-view-body p:last-child {
  margin-bottom: 0;
}

/* 하단 버튼 영역 */
.board-view-footer {
  display: flex;
  justify-content: center;
  padding-top: 30px;
}
.board-view-btn {
  display: inline-block;
  padding: 10px 36px;
  background: #e0e0e0;
  color: #333;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-family);
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.board-view-btn:hover {
  background: #212a63;
  color: #fff;
}

@media (max-width: 768px) {
  .board-view-title {
    font-size: 18px;
  }
  .board-view-meta {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
  }
  .board-view-body {
    font-size: 14px;
    padding: 30px 0;
    overflow-x: hidden;
  }
  .board-view-body img {
    max-width: 100% !important;
    height: auto !important;
  }
  .board-view-body iframe {
    max-width: 100%;
  }
  .board-view-body table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
  }
}


/* ========================================= */
/* --- 우측 플로팅 퀵 사이드바 --- */
/* ========================================= */
/* SOFTWAVE Sidebar Quick Menu (Glassmorphism) */
.sw-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  width: 78px;
  padding: 14px 0;
  border-radius: 14px 0 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(18, 18, 52, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0.5px solid rgba(184, 216, 48, 0.2);
  border-right: none;
  background-image: linear-gradient(
    180deg,
    rgba(42, 92, 170, 0.15) 0%,
    rgba(18, 18, 52, 0.01) 100%
  );
  transition: transform 0.3s ease;
}

.sw-sidebar.is-collapsed {
  transform: translateY(-50%) translateX(78px);
}

/* 토글 버튼 */
.sw-sidebar__toggle {
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 48px;
  border: none;
  border-radius: 8px 0 0 8px;
  background: rgba(18, 18, 52, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0.5px solid rgba(184, 216, 48, 0.2);
  border-right: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.25s ease;
}

.sw-sidebar__toggle svg {
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 0.3s ease, stroke 0.25s ease;
}

.sw-sidebar.is-collapsed .sw-sidebar__toggle svg {
  transform: rotate(180deg);
}

.sw-sidebar__toggle:hover {
  background: rgba(42, 92, 170, 0.3);
}

.sw-sidebar__toggle:hover svg {
  stroke: #B8D830;
}

.sw-sidebar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 66px;
  padding: 11px 6px;
  border-radius: 10px;
  box-sizing: border-box;
  background: transparent;
  border: 0.5px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.sw-sidebar__item:hover {
  background: rgba(184, 216, 48, 0.13);
  border-color: rgba(184, 216, 48, 0.3);
}

.sw-sidebar__item.is-active {
  background: rgba(184, 216, 48, 0.15);
  border-color: rgba(184, 216, 48, 0.35);
}

.sw-sidebar__icon {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: stroke 0.25s ease;
}

.sw-sidebar__item:hover .sw-sidebar__icon,
.sw-sidebar__item.is-active .sw-sidebar__icon {
  stroke: #B8D830;
}

.sw-sidebar__label {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.3px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s ease;
}

.sw-sidebar__item:hover .sw-sidebar__label,
.sw-sidebar__item.is-active .sw-sidebar__label {
  color: #B8D830;
}

/* === 모바일 FAB (768px 이하에서만 표시) === */
.fab-overlay,
.fab-wrap {
  display: none;
}

@media (max-width: 768px) {
  /* PC 사이드바 숨김 */
  .sw-sidebar {
    display: none;
  }

  /* FAB 딤 오버레이 */
  .fab-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
  }
  .fab-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* FAB 컨테이너 */
  .fab-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    gap: 10px;
  }

  /* FAB 메뉴 (위로 펼쳐짐) */
  .fab-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .fab-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* FAB 메뉴 각 아이템 (라벨 + 아이콘) */
  .fab-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    white-space: nowrap;
  }
  .fab-label {
    background: #fff;
    color: #212a63;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    min-width: 120px;
    text-align: center;
  }
  .fab-menu-item .fab-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #3D1F99;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
  /* 모바일 아이콘 배경색 통일 (연두) */
  .fab-menu-item .fab-icon { background: #a8ff00; }
  .fab-menu-item .fab-icon i { color: #1a1a2e; }

  /* FAB 메인 버튼 (scroll-top과 같은 크기 42px) */
  .fab-main {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #3D1F99;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: relative;
    transition: transform 0.3s, background 0.3s;
  }
  .fab-main .fab-icon-open,
  .fab-main .fab-icon-close {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s, transform 0.3s;
  }
  .fab-main .fab-icon-close {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
  }
  .fab-main.active .fab-icon-open {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
  }
  .fab-main.active .fab-icon-close {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
  }

  /* scroll-top 버튼: FAB 위에 배치 */
  .scroll-top-btn {
    bottom: 72px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
}
