.sub-wrap {
  max-width: 1200px;
  margin: 60px auto;
}

.sub-header {
  text-align: center;
}

.sub-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

.sub-header p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.sub-title {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
  position: relative;
}

.sub-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.sub-subtitle {
  font-size: 18px;
  color: #666;
  font-weight: 400;
}

.loading-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 60px 0;
}
.loading-spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #eee;
  border-top: 5px solid #764ba2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 18px;
}
.content-wrap {
  width: 96%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 0;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



/*탭메뉴 css-> 스크롤*/
.sub-visual {
  background: url(/images/sub-br.png) center center no-repeat;
  position: relative;
  width: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.sub-visual-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.sub-visual-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  flex-direction: column;
}
.sub-visual-left h1 {
  font-size: 42px;
  font-weight: 700;
  color: #333;
  margin-bottom: 18px;
}
.sub-visual-left p {
  font-size: 18px;
  color: #666;
  text-align: center;
  line-height: 1.4;
}

.sub-nav-area {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 0;
  position: relative;
  z-index: 1;
}
.sub-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  list-style: none;
  font-size: 15px;
  color: #666;
  margin: 0 auto 10px auto;
  padding: 30px 0 10px 0;
}
.breadcrumb li {
  display: flex;
  align-items: center;
}
.breadcrumb li:not(:last-child)::after {
  content: '|';
  margin: 0 16px;
  color: #ccc;
}
.breadcrumb a {
  text-decoration: none;
  color: #444;
  transition: color 0.3s;
}
.breadcrumb a:hover {
  color: #222;
}
.icon-home {
  font-size: 18px;
}

.tab-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
  padding: 5px 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.tab-wrapper ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.tab-wrapper li {
  position: relative;
  margin: 0;
  min-width: 180px;
}
.tab-wrapper li a {
  display: block;
  padding: 12px;
  text-decoration: none;
  color: #666;
  font-weight: 500;
  font-size: 18px;
  background: transparent;
  border: none;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 2px;

  overflow: visible;
  line-height: 1.3;
  -webkit-backdrop-filter: blur(10px);
  background-clip: padding-box;
  -webkit-font-smoothing: antialiased;
}

.tab-wrapper li a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

/* .tab-wrapper li a::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 50%;
} */

.tab-wrapper li.active > a {
  color: #fff;
  font-weight: 600;
}
.tab-wrapper li.active > a::before { opacity: 1; }
.tab-wrapper li.active > a::after { width: 300px; height: 300px; }

.tab-wrapper li:not(.active) a:hover {
  color: #333;
  transform: translateY(-1px); /* 기존 -2px 완화 */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.tab-wrapper li:not(.active) a:hover::before { opacity: 0.1; }
.tab-wrapper li:not(.active) a:hover::after { width: 200px; height: 200px; }

@media (max-width: 1200px) {
  .sub-visual-img { width: 400px; height: 200px; }
  .tab-wrapper li { min-width: 150px; }
}

@media (max-width: 900px) {
  .sub-visual-img { width: 100%; height: 120px; margin-top: 20px; }
  .sub-visual-left { min-width: 0; width: 100%; }
  .sub-visual-left h1 { font-size: 32px; }
  .sub-nav-inner { padding: 0 5px; }

  .tab-wrapper ul {
    flex-wrap: wrap;
    gap: 10px;
  }
  .tab-wrapper li { min-width: 140px; }
  .tab-wrapper li a {
    font-size: 16px;
    padding: 10px 8px;
  }
}


@media (max-width: 768px) {
  .content-wrap {
    padding: 50px 20px;
    width: 100%;
  }
  .sub-header h2 {
    font-size: 28px;
  }
  .sub-visual { min-height: 200px; }
  .sub-visual-left h1 { font-size: 28px; margin-bottom: 12px; }
  .sub-visual-left p { font-size: 16px; }

  .tab-wrapper ul {
    flex-wrap: wrap;
    gap: 8px;
  }
  .tab-wrapper li { min-width: 120px; }
  .tab-wrapper li a { padding: 8px 6px; }
}

@media (max-width: 480px) {
  .tab-wrapper {
    padding: 10px 0;           
    overflow: visible;          
    justify-content: flex-start;
    position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  }
  .sub-nav-inner {
    text-align: left;
  }
  .tab-wrapper ul {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding: 0 15px;
    margin: 0;
    min-width: 100%;
    scroll-snap-type: x mandatory;      /* 한 탭씩 ‘착’ 붙게 */
    scroll-behavior: smooth;
    scroll-padding-left: 14px;
    text-align: center;

    /* 스크롤바 감춤 (WebKit + Firefox) */
    scrollbar-width: none;
  }
  .tab-wrapper ul::-webkit-scrollbar {  /* WebKit */
    display: none;
    height: 0;
  }


  .tab-wrapper li {
    display: inline-block;
    vertical-align: top;
    /* min-width: 120px; */
    min-width: unset;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .tab-wrapper li a {
    display: inline-block;
    min-width: 120px;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.06);
    background: #f7f7fa;
    color: #555;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
    transform: none !important;
    transition: background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  }
  .tab-wrapper li.active > a {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
  }

  .tab-wrapper li a::before,
  .tab-wrapper li a::after {
    content: none !important;
  }

  .tab-wrapper::before,
  .tab-wrapper::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 14px;
    pointer-events: none;
    z-index: 2;
  }
  .tab-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--tab-fade-bg, #fff), rgba(255,255,255,0));
  }
  .tab-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--tab-fade-bg, #fff), rgba(255,255,255,0));
  }
  .sub-header h2 {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tab-wrapper ul { scroll-behavior: auto; }
}