*:not(.pg-icon,.fa,.blueimp-gallery-button,i) {
  font-family: "Pretendard GOV Variable", "Pretendard GOV", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

:root {
  --header-auth-h: 42px;
  --header-nav-h: clamp(60px, 5.5vw, 88px);
  --header-h: calc(var(--header-auth-h) + var(--header-nav-h));
  --banner-item-h: 48px;
  --banner-menu-h: 70px;
}

@media (max-width: 991px) {
  :root {
    --banner-menu-h: var(--banner-item-h);
  }
}

/* 태블릿: 메뉴는 햄버거이지만 navbar padding 이 더 큼 (py-md-2) */
@media (min-width: 768px) and (max-width: 991.98px) {
  :root {
    --header-nav-h: 76px;
  }
}

/* 모바일: navbar padding py-1 + 로고 36px */
@media (max-width: 767.98px) {
  :root {
    --header-nav-h: 60px;
  }
}

body {
  padding-top: var(--header-h);
  font-size: 1rem;
}

/* 접근성 — 키보드 포커스 가시성 (primary 색상 solid 테두리) */
*:focus-visible {
  outline: 3px solid #29587f !important;
  outline-offset: 2px !important;
  border-radius: 2px;
  /* 인접 요소(active 탭의 흰 배경 등)에 outline이 가려지지 않도록 stacking context 상승 */
  position: relative;
  z-index: 100;
}
.modal:focus-visible,
.modal:focus {
  position: fixed !important;
  z-index: 1050 !important;
}
/* :focus-visible 미지원 브라우저 폴백 — 마우스 클릭에는 outline 표시하지 않음 */
*:focus:not(:focus-visible) {
  outline: none;
}

/* 모바일 메뉴 — overflow: hidden / clip-path가 outline을 잘라내므로 inset outline으로 변경 */
.fullpage-menu *:focus-visible,
.fullpage-menu-backdrop ~ * *:focus-visible {
  outline-offset: -3px !important;
}

/* 컨테이너 너비/브레이크포인트 — Bootstrap 기본값 사용 (커스텀 오버라이드 제거) */

.logo {
  height: clamp(36px, 3.4vw, 52.5px);
  width: auto;
}

.navbar.navbar-styled {
  align-items: start;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, .08);
}

.nav-link:hover, .nav-link:focus {
  color: #29587f !important;
  background-color: #f1f2f4;
}

.navbar.navbar-styled .navbar-nav .nav-item.active .nav-link {
  color: #29587f !important;
}

.navbar.navbar-styled.opened {
  height: 200px;
  transition: height 2s;
}

/* 배너 타이틀 — 페이지에 상관없이 동일한 높이 유지
   flex:1 제거 → banner-menu 항목 길이/줄바꿈에 의해 남는 공간이 banner-title로 흘러가지 않음 */
.banner .banner-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px 16px;
  gap: 8px;
}

@media (max-width: 991px) {
  .banner .banner-title {
    padding: 40px 16px;
  }
}

.banner .banner-title > h4,
.banner .banner-title .depth2 {
  margin: 0;
  font-size: clamp(20px, 4.6vw, 32px);
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: break-word;
  max-width: 100%;
}

.banner .banner-title .depth1 {
  margin: 0 0 6px;
  font-size: clamp(14px, 3.2vw, 24px);
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.2px;
  word-break: keep-all;
  overflow-wrap: break-word;
  max-width: 100%;
}

.banner .banner-title > p {
  font-size: 0.7rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.banner .banner-menu {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  background-color: rgba(0, 0, 0, .06) !important;
  border-bottom: 1px solid #efefef;
  z-index: 1;
}

.banner .banner-menu .banner-item {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .banner .banner-menu {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding-left: calc((100% - 960px) / 2);
    padding-right: calc((100% - 960px) / 2);
  }
}
@media (min-width: 1200px) {
  .banner .banner-menu {
    padding-left: calc((100% - 1140px) / 2);
    padding-right: calc((100% - 1140px) / 2);
  }
}

.banner .banner-menu .banner-item {
  display: flex;
  align-items: center;
  height: var(--banner-item-h);
  padding: 0 2.2rem;
  color: #FFF;
  transition: all .2s;
  text-decoration: none;
}

/* 공유/인쇄 아이콘만 가진 banner-item은 hover bg 효과 제외(각 아이콘이 자체 hover 스타일 보유)
   기존 :last-child 절대 위치 규칙은 제거 — share/print는 아래 :has() 규칙으로 배너 상단으로 이동하므로 불필요. */
.banner .banner-menu .banner-item:not(:has(> .bi-share):has(> .bi-printer), .active):hover {
  text-decoration: none;
  background-color: rgba(255, 255, 255, .2);
}

.banner .banner-menu .banner-item.active {
  background-color: #fff;
  color: #29587f;
}

.banner .banner-menu .banner-item.active h5 {
  font-weight: 700;
}

.banner .banner-menu .banner-item h5 {
  font-weight: 400;
  margin: 0 auto;
  transition: all .2s;
}

.banner .banner-menu .banner-item h5.dropdown-toggle:hover {
  color: #c8d1db;
  cursor: pointer;
}

.banner .banner-menu .banner-item > i {
  margin: 0 0.3rem;
  background: rgba(0, 0, 0, .25);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  transition: all .2s;
  backdrop-filter: blur(24px);
}

.banner .banner-menu .banner-item > i:hover {
  background: rgba(0, 0, 0, .78);
}

.banner .banner-menu .banner-item > i:hover {
  cursor: pointer;
}

/* 공유/인쇄 액션을 배너 우측 상단(타이틀 영역)으로 이동 */
.banner {
  position: relative;
}
/* 신규 패턴: <div class="banner-actions"> 가 .banner 바로 안쪽에 위치 */
.banner > .banner-actions {
  position: absolute;
  top: 28px;
  right: 24px;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}
.banner > .banner-actions > i {
  background: #29587f;
  border: 1px solid rgba(255, 255, 255, .4);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all .2s;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.banner > .banner-actions > i:hover,
.banner > .banner-actions > i:focus-visible {
  background: #1d4060;
  outline: none;
}
/* 기존 패턴: .banner-menu 안에 공유/인쇄 아이콘만 있는 .banner-item — 배너 상단으로 끌어올림 */
.banner .banner-menu .banner-item:has(> .bi-share):has(> .bi-printer):not(:has(h5)) {
  position: absolute;
  top: auto;
  right: 16px;
  bottom: calc(100% + 16px);
  transform: none;
  padding: 0;
  height: auto;
  gap: 0.5rem;
  z-index: 2;
}
.banner .banner-menu .banner-item:has(> .bi-share):has(> .bi-printer):not(:has(h5)) > i {
  background: #29587f;
  border: 1px solid rgba(255, 255, 255, .4);
  width: 40px;
  height: 40px;
  margin: 0 0 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all .2s;
}
.banner .banner-menu .banner-item:has(> .bi-share):has(> .bi-printer):not(:has(h5)) > i:hover,
.banner .banner-menu .banner-item:has(> .bi-share):has(> .bi-printer):not(:has(h5)) > i:focus-visible {
  background: #1d4060;
  outline: none;
}

@media (max-width: 991px) {
  .banner .banner-menu .banner-item {
    padding: 0 .875rem;
  }
  .banner .banner-menu .banner-item h5{
    font-size: 1rem;
  }
}

/* 모바일 — banner-menu(depth2)를 드롭다운으로 표시
   active 항목만 노출, 펼침 시 나머지 항목은 overlay로 띄워 레이아웃 shift 방지 */
@media (max-width: 991.98px) {
  .banner .banner-menu {
    position: relative;
  }
  .banner .banner-menu .banner-item.active {
    cursor: pointer;
    padding-right: 2.5rem;   /* chevron 공간 확보 → 텍스트 가운데 정렬 보정 */
    padding-left: 2.5rem;
  }
  /* chevron — 텍스트 가운데 정렬을 깨지 않도록 우측에 absolute 배치 */
  .banner .banner-menu .banner-item.active::after {
    content: '';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    transition: transform .25s ease;
  }
  .banner .banner-menu.is-open .banner-item.active::after {
    transform: translateY(-30%) rotate(-135deg);
  }
  /* 실제 토글 가능한 nav-item 탭이 2개 미만이면 chevron 숨김
     (share/print 액션 컨테이너만 있거나, 단일 탭만 있는 경우) */
  .banner .banner-menu:not(:has(> .banner-item.nav-item ~ .banner-item.nav-item)) .banner-item.active {
    cursor: default;
    padding-right: 0;
    padding-left: 0;
  }
  .banner .banner-menu:not(:has(> .banner-item.nav-item ~ .banner-item.nav-item)) .banner-item.active::after {
    display: none;
  }
  /* 비활성 nav-item 탭만 숨김 (share/print 액션 컨테이너는 기존 :last-child 절대 위치 유지) */
  .banner .banner-menu .banner-item.nav-item:not(.active) {
    display: none;
  }
  /* 펼침 시 단일 overlay 배경 (개별 항목이 아닌 전체 한 덩어리) */
  .banner .banner-menu.is-open::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(var(--dropdown-count, 0) * var(--banner-item-h));
    background-color: rgba(15, 23, 42, .88);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .35);
    z-index: 19;
    animation: bannerMenuDropdownIn .22s ease both;
  }
  /* 펼침 — 비활성 nav-item을 overlay 위에 투명 배경으로 배치 */
  .banner .banner-menu.is-open .banner-item.nav-item:not(.active) {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    background-color: transparent;
    z-index: 20;
    color: rgba(255, 255, 255, .92);
    animation: bannerMenuDropdownIn .22s ease both;
    animation-delay: calc(var(--dropdown-index, 0) * 30ms);
    top: calc(100% + var(--dropdown-index, 0) * var(--banner-item-h));
  }
  /* 탭 피드백 */
  .banner .banner-menu.is-open .banner-item.nav-item:not(.active):active {
    background-color: rgba(41, 88, 127, .55);
    color: #fff;
  }
}

@keyframes bannerMenuDropdownIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* sub-nav 없이 share/print 아이콘만 있는 배너 메뉴 — Plan A
   · 모바일(<992): 숨김 (사용 빈도 낮음)
   · 데스크톱(≥992): 배너 바로 아래 = breadcrumb 줄에 우측 정렬로 floating
                     (breadcrumb 없는 페이지에서는 컨텐츠 우상단으로 fallback)
   · .banner-menu--actions-only 클래스는 menu-top.html JS에서 동적 부여 */
.banner .banner-menu.banner-menu--actions-only {
  position: absolute;
  bottom: auto;
  left: auto;
  width: auto;
  padding: 0;
  margin: 0;
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  z-index: 2;
}
.banner .banner-menu.banner-menu--actions-only .banner-item:last-child {
  position: static;
  transform: none;
  height: auto;
  padding: 0;
}
/* 모바일 — 숨김 */
@media (max-width: 991.98px) {
  .banner .banner-menu.banner-menu--actions-only {
    display: none !important;
  }
}
/* 데스크톱 — breadcrumb 줄 우측 끝(Bootstrap container 우측 padding 라인)에 정렬 */
@media (min-width: 992px) {
  .banner .banner-menu.banner-menu--actions-only {
    top: 100%;
    right: max(15px, calc((100vw - 960px) / 2 + 15px));
    margin-top: 8px;
  }
  /* 데스크톱에서 share/print 아이콘 배경/색을 light bg에 어울리게 — 배너 밖으로 나오므로 톤 변경 */
  .banner .banner-menu.banner-menu--actions-only .banner-item > i {
    background: #f1f5fa;
    color: #29587f;
  }
  .banner .banner-menu.banner-menu--actions-only .banner-item > i:hover {
    background: #29587f;
    color: #fff;
  }
}
@media (min-width: 1200px) {
  .banner .banner-menu.banner-menu--actions-only {
    right: max(15px, calc((100vw - 1140px) / 2 + 15px));
  }
}

@media (min-width: 992px) {
  .banner .banner-menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .banner .banner-menu .banner-item {
    height: var(--banner-menu-h);
  }
}

/* depth3 (nav-sub) — underline 탭바
   배경/하단라인은 .nav-tabs에 적용 (intro/hscredit처럼 .nav-sub 안에 tab-content가 있는 경우도 정상 동작) */
.nav-sub .nav-tabs {
  display: flex;
  justify-content: center !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0 4px;
  padding: 0 16px;
  background: #fafafa;
  border-bottom: 1px solid #e5e5e5;
  min-height: 50px;
}

/* 브레드크럼 — 컨테이너 최상단 좌측에 고정 (간격은 .main-content가 담당) */
nav[aria-label="breadcrumb"] {
  text-align: left;
}
nav[aria-label="breadcrumb"] .breadcrumb {
  justify-content: flex-start;
  text-align: left;
}

/* 메인 컨텐츠 영역 — depth3/breadcrumb 다음의 본문 영역
   브레드크럼 유무와 관계없이 상단/하단 패딩으로 일관된 간격 확보 */
.main-content {
  padding-top: 40px !important;
  padding-bottom: 80px !important;
}
@media (max-width: 991.98px) {
  .main-content {
    padding-top: 56px !important;
    padding-bottom: 48px !important;
  }
}

/* 메인 컨텐츠 안에서 풀폭이 필요한 경우 — main-content의 좌우 패딩/컨테이너 가로 제약을 깨고
   뷰포트 전체 폭으로 확장. 스크롤바 영역까지 침범하지 않도록 100vw 대신 calc 사용. */
.main-content .full-bleed {
  margin-left: calc(50% - 50vw + var(--scrollbar-w, 0px) / 2);
  margin-right: calc(50% - 50vw + var(--scrollbar-w, 0px) / 2);
}

/* 모바일에선 브레드크럼 숨김 */
@media (max-width: 991.98px) {
  nav[aria-label="breadcrumb"] {
    display: none;
  }
}

/* depth3 영역이 없는 페이지 — 빈 공간 제거 */
.nav-sub:empty {
  display: none;
}

/* 탭 항목 — 항목별 underline 인디케이터 */
.nav-sub .nav-tabs .nav-item .nav-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #6b7280;
  background: transparent;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0;
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
}

.nav-sub .nav-tabs .nav-item .nav-link.active {
  color: #29587f;
  font-weight: 700;
  border-bottom-color: #29587f !important;
}

.nav-sub .nav-tabs .nav-item .nav-link:not(.active):hover {
  color: #29587f;
  border-bottom-color: rgba(41, 88, 127, .25) !important;
}

/* 모바일 — 3열 그리드, 셀별 border + 빈 셀 영역까지 채우는 vertical 라인 */
@media (max-width: 991.98px) {
  .nav-sub .nav-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0;
    border-top: 1px solid #e5e5e5;
    min-height: 48px;
    /* 빈 셀에도 보이도록 컨테이너 전체에 vertical 라인을 background로 그림 */
    background-color: #fafafa;
    background-image:
      linear-gradient(#e5e5e5, #e5e5e5),
      linear-gradient(#e5e5e5, #e5e5e5);
    background-repeat: no-repeat, no-repeat;
    background-position: 33.3333% 0, 66.6667% 0;
    background-size: 1px 100%, 1px 100%;
  }
  .nav-sub:empty {
    display: none;
  }
  .nav-sub .nav-tabs .nav-item {
    width: 100%;
    background: transparent;
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
  }
  .nav-sub .nav-tabs .nav-item:nth-child(3n) {
    border-right: none;             /* 우측 끝 열은 right border 제거 (중복 방지) */
  }

  /* 항목 1개일 때 — 1열, vertical 라인 없음 */
  .nav-sub .nav-tabs:has(> .nav-item:only-child) {
    grid-template-columns: 1fr;
    background-image: none;
  }
  .nav-sub .nav-tabs:has(> .nav-item:only-child) .nav-item {
    border-right: none;
  }

  /* 항목 2개일 때 — 2열, vertical 라인 1개 (50% 위치) */
  .nav-sub .nav-tabs:has(> .nav-item:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
    background-image: linear-gradient(#e5e5e5, #e5e5e5);
    background-repeat: no-repeat;
    background-position: 50% 0;
    background-size: 1px 100%;
  }
  .nav-sub .nav-tabs:has(> .nav-item:nth-child(2):last-child) .nav-item:nth-child(2n) {
    border-right: none;
  }
  .nav-sub .nav-tabs .nav-item .nav-link {
    width: 100%;
    height: 100%;
    padding: 10px 8px;
    font-size: 14px;
    text-align: center;
    white-space: normal;
    word-break: keep-all;
    border: none !important;
    border-radius: 0;
  }
  .nav-sub .nav-tabs .nav-item .nav-link.active {
    background: #fff;               /* 활성 셀: 흰 배경 강조 */
    color: #29587f;
    font-weight: 700;
    border: none !important;
    border-bottom: 2px solid #29587f !important;   /* 데스크톱과 동일한 brand color underline */
  }
  .nav-sub .nav-tabs .nav-item .nav-link:not(.active):hover {
    border: none !important;
  }
}

.login-select-tabs {
  border-bottom: none;
  margin: 16px 0 24px;
  padding: 5px;
  background: #eef2f7;
  border-radius: 12px;
  display: flex;
  gap: 4px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
}

.login-select-tabs .nav-item,
.login-select-tabs .nav-item.col-4 {
  flex: 1 1 0;
  max-width: none;
  padding: 0;
}

.login-select-tabs .nav-item .nav-link {
  background-color: transparent;
  color: #64748b;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}

.login-select-tabs .nav-item .nav-link:hover {
  color: #29587f;
  background-color: rgba(255, 255, 255, .6);
}

.login-select-tabs .nav-item .nav-link.active {
  background-color: #ffffff !important;
  color: #29587f !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .12), 0 0 0 1px rgba(41, 88, 127, .08);
}

.login-select-tabs .nav-item .nav-link:focus {
  background-color: rgba(255, 255, 255, .6);
  outline: none;
}

.login-select-tabs .nav-item .nav-link:active {
  transform: scale(0.98);
}

.login-form-card {
  width: 100%;
  max-width: 446px;
  height: fit-content;
  border-radius: 1rem;
  padding: 1.5rem;
}

.login-form-card label {
  color: #767676;
  margin-bottom: .25rem;
}

.login-form-card .form-control {
  padding: 4px 12px !important;
  border-radius: 8px;
  height: 46px;
}


.login-form-card .btn[type="submit"] {
  padding: 4px 12px;
  border-radius: 8px;
  height: 46px;
}

.login-form-card .select2-container,
.login-form-card .select2-selection,
.login-form-card .select2-selection__rendered {
  height: 46px !important;
  border-radius: 8px;
}

.login-form-card .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 46px;
  padding: 0 12px;
}

.login-form-card .select2-container--default .select2-selection--single .select2-selection__arrow {
  width: 32px;
  height: 46px;
}

@media (max-width: 400px) {
  .login-form-card {
    padding: 1rem;
  }

  .login-select-tabs .nav-item .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem 0.25rem;
  }

  .login-select-tabs .nav-item:first-child {
    padding-right: 4px;
  }

  .login-select-tabs .nav-item:last-child {
    padding-left: 4px;
  }

  .login-select-tabs .login-link {
    font-size: 0.75rem;
  }
}

.bg-primary-grident .select2-results__option {
  padding: 8px 12px !important;
}

.bg-primary-grident .select2-search--dropdown {
  padding: 0;
}

.bg-primary-grident .select2-search--dropdown .select2-search__field {
  border: 0;
  outline: 0;
  padding: 10px 12px;
  background: #e8f0fe;
}


.page-title-only {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  margin: 32px 0 24px;
}

/* ========== /intro/site (관련사이트) 페이지 ========== */
.site-page {
  padding-top: 32px;
  padding-bottom: 80px;
}

.site-page-head {
  text-align: center;
  margin-bottom: 48px;
}
.site-page-head p {
  margin: 0;
  font-size: 1.125rem;
  color: #475563;
  line-height: 1.7;
  word-break: keep-all;
  letter-spacing: -0.01em;
}
@media (max-width: 575.98px) {
  .site-page-head p { font-size: 1rem; }
  .site-page-head p br { display: none; }
}

.site-section {
  margin-bottom: 40px;
}
.site-section:last-child {
  margin-bottom: 0;
}

.site-section-head {
  position: relative;
  margin: 0 0 20px;
  padding-bottom: 0.85rem;
}
.site-section-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #29587f;
  letter-spacing: -0.2px;
}
.site-section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  background: #29587f;
  border-radius: 2px;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* 카드: 로고(상단) + 텍스트(하단) 2단 세로 레이아웃 */
.site-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: #ffffff;
  border: 1px solid #d6dde6;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.site-card:hover,
.site-card:focus {
  text-decoration: none;
  color: inherit;
  border-color: #29587f;
  box-shadow: 0 8px 22px rgba(41, 88, 127, .14);
  transform: translateY(-2px);
}

/* 1단: 로고 영역 — 카드 상단 풀폭 */
.site-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 130px;
  background: #f6f8fb;
  border-bottom: 1px solid #eef1f5;
  padding: 24px;
}
.site-card-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 2단: 텍스트(이름) + 외부링크 아이콘 */
.site-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 18px;
  min-height: 60px;
}
.site-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2a37;
  word-break: keep-all;
  line-height: 1.4;
}
.site-card-link {
  flex-shrink: 0;
  font-size: 1rem;
  color: #94a3b8;
  transition: color .18s ease;
}
.site-card:hover .site-card-link,
.site-card:focus .site-card-link {
  color: #29587f;
}

/* 반응형: 1199px 이하 3열 / 991px 이하 2열 / 575px 이하 1열 */
@media (max-width: 1199.98px) {
  .site-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991.98px) {
  .site-grid { grid-template-columns: repeat(2, 1fr); }
  .site-card-logo { height: 110px; padding: 20px; }
}
@media (max-width: 575px) {
  .site-page {
    padding-bottom: 60px;
  }
  .site-page-head {
    margin-bottom: 32px;
  }
  .site-section {
    margin-bottom: 32px;
  }
  .site-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .site-card-logo { height: 100px; padding: 18px; }
}

.banner.top-bg {
  background-image: url('../img/background/top-bg-1.jpg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: #FFF;
  position: relative;
  /* 페이지 간 일관된 최소 높이 — 컨텐츠가 길어지면 자동 확장(depth3 침범 방지) */
  min-height: 280px;
}

@media (max-width: 991px) {
  .banner.top-bg {
    min-height: 220px;
  }
}

.banner.top-bg::after {
  content:'';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .35);
}

.banner.top-bg .container {
  display: flex;
  flex: 1;
  justify-content: center;
  z-index: 1;
}

.top-auth-bar {
  gap: 6px;
  flex-wrap: nowrap !important;
  overflow: visible;
}

.top-auth-profile .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: color .15s ease;
}
.top-auth-profile .dropdown-toggle > small {
  opacity: 0.85;
}
.top-auth-profile .dropdown-menu {
  position: fixed !important;
  top: var(--header-h) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw;
  max-width: 100vw;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
  border-radius: 0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .18);
  background: #ffffff;
  transform-origin: top center;
}

.top-auth-profile .dropdown-menu.show {
  transform-origin: top center;
}

/* dimmed 배경 — :has() 지원 브라우저 */
body:has(.top-auth-profile .dropdown-menu.show)::before {
  content: '';
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, .5);
  z-index: 1030;
  pointer-events: none;
}

/* 메뉴 펼쳐진 동안 body 스크롤 잠금 (역할 메뉴 / 모바일 메뉴) */
body:has(.top-auth-profile .dropdown-menu.show),
body:has(#fullpage-menu-toggle:checked),
body.menu-open {
  overflow: hidden;
}


.top-auth-profile-header {
  position: relative;
  padding: 22px 24px 20px;
  background: linear-gradient(135deg, #29587f 0%, #1a3d5c 100%);
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.top-auth-profile-header::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  pointer-events: none;
}
.top-auth-profile-role {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  background: rgba(255, 255, 255, .2);
  margin-bottom: 10px;
}
.top-auth-profile-name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}
.top-auth-profile-school {
  font-size: 14px;
  opacity: 0.88;
  margin-top: 4px;
}

.top-auth-profile-edit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 16px 0 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .18s, border-color .18s;
}
.top-auth-profile-edit:hover,
.top-auth-profile-edit:focus {
  background-color: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
  text-decoration: none;
}

/* dropdown-menu 자체에서 스크롤 (top-auth-profile-body 래퍼 제거됨) */
.top-auth-profile .dropdown-menu {
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.top-auth-profile .dropdown-menu::-webkit-scrollbar { width: 6px; }
.top-auth-profile .dropdown-menu::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

/* 메가 메뉴 상단 프로필 바 — 밝은 배경 톤 */
.role-menu-profile {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #f8fafc;
  color: #1f2a37;
  border-radius: 0;
  border-bottom: 1px solid #e2e8f0;
}
/* 프로필 바 inner — 헤더 .container 와 동일한 Bootstrap 반응형 max-width 적용 */
.role-menu-profile-inner {
  width: 100%;
  margin: 0 auto;
  padding: 14px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
@media (min-width: 576px) { .role-menu-profile-inner { max-width: 540px; } }
@media (min-width: 768px) { .role-menu-profile-inner { max-width: 960px; } }
@media (min-width: 1200px) { .role-menu-profile-inner { max-width: 1425px; } }

.role-menu-profile-info {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.role-menu-profile-role {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: #e0e9f3;
  color: #29587f;
}
.role-menu-profile-name {
  font-size: 17px;
  font-weight: 700;
  color: #1f2a37;
}
.role-menu-profile-school {
  font-size: 13px;
  color: #64748b;
}

.role-menu-profile-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.role-menu-profile-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.role-menu-profile-btn:hover,
.role-menu-profile-btn:focus {
  background: #eef4fb;
  border-color: #29587f;
  color: #29587f;
  text-decoration: none;
}
.role-menu-profile-btn--logout {
  background: #fff;
  border-color: #fca5a5;
  color: #dc2626;
}
.role-menu-profile-btn--logout:hover,
.role-menu-profile-btn--logout:focus {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

/* 헤더 navbar(navbar-expand-lg)가 햄버거로 접히는 992px 동일 브레이킹포인트
   — 프로필 바도 동일 시점에 정보/액션 세로 스택 전환 */
@media (max-width: 991.98px) {
  .role-menu-profile-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 28px 16px;
    gap: 16px;
  }
  .role-menu-profile-info {
    justify-content: center;
  }
  .role-menu-profile-actions {
    justify-content: stretch;
  }
  .role-menu-profile-btn {
    flex: 1;
    justify-content: center;
  }
}

/* 카테고리 그리드 — 메가 메뉴 (4 카테고리 기준)
   너비/좌우 마진은 헤더 .container 와 동일한 Bootstrap 반응형 max-width 적용 */
.role-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 15px 24px;
}
@media (min-width: 576px) { .role-menu-grid { max-width: 540px; } }
@media (min-width: 768px) { .role-menu-grid { max-width: 960px; } }
@media (min-width: 1200px) { .role-menu-grid { max-width: 1425px; } }

.role-menu-section {
  padding: 0;
  border: none;
  min-width: 0;
}
/* <details>의 기본 마커 제거 */
details.role-menu-section > summary { list-style: none; cursor: pointer; }
details.role-menu-section > summary::-webkit-details-marker { display: none; }
details.role-menu-section > summary::marker { content: ''; }
/* 데스크톱(≥1200): 항상 펼쳐진 상태 강제 + summary 비클릭/비포커스 */
@media (min-width: 1200px) {
  details.role-menu-section > .role-menu-section-list { display: flex !important; }
  details.role-menu-section > summary {
    cursor: default;
    pointer-events: none;
    /* 데스크톱에선 토글 동작이 없으니 키보드 포커스 outline 숨김 */
    outline: none !important;
  }
  details.role-menu-section > summary:focus,
  details.role-menu-section > summary:focus-visible {
    outline: none !important;
  }
  .role-menu-section-chevron { display: none; }
}

/* 카테고리 네임(depth1) — 데스크톱: 좌측 컬러 마커 + 미니멀 라벨 톤 */
.role-menu-section-title {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 0 16px;
  padding: 0 0 12px 14px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2a37;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e6ecf3;
}
@media (min-width: 1200px) {
  .role-menu-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 14px;
    width: 4px;
    border-radius: 2px;
    background: #29587f;
  }
  details.role-menu-section.role-menu-section--admin > .role-menu-section-title::before {
    background: #b78b3a;
  }
}
.role-menu-section-title > span {
  display: inline-flex;
  align-items: center;
}
.role-menu-section-title > span > i {
  font-size: 17px;
  color: #29587f;
}
.role-menu-section-chevron {
  margin-left: auto;
  font-size: 18px;
  color: #94a3b8;
  transition: transform .2s ease, color .2s ease;
}

.role-menu-section-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.role-menu-section-list > li {
  margin: 0;
}

.role-menu-section-list .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px !important;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #334155;
  border-left: none !important;
  white-space: normal;
  word-break: keep-all;
  line-height: 1.4;
  transition: background-color .15s ease, color .15s ease, padding-left .15s ease;
}
.role-menu-section-list .dropdown-item > i {
  font-size: 17px;
  color: #94a3b8;
  width: 22px;
  flex-shrink: 0;
  text-align: center;
  transition: color .15s ease;
}
.role-menu-section-list .dropdown-item > span {
  flex: 1;
  min-width: 0;
}
.role-menu-section-list .dropdown-item:hover,
.role-menu-section-list .dropdown-item:focus {
  padding-left: 16px !important;
  background-color: #f1f5fa;
  color: #0f172a;
  border-left-color: transparent !important;
}
.role-menu-section-list .dropdown-item:hover > i,
.role-menu-section-list .dropdown-item:focus > i {
  color: #29587f;
}
.role-menu-section-list .dropdown-item.active {
  background-color: #f1f5fa;
  color: #29587f;
  border-left-color: transparent !important;
}
.role-menu-section-list .dropdown-item.active > span {
  font-weight: 700;
}
.role-menu-section-list .dropdown-item.active > i {
  color: #29587f;
}

/* 1200 미만: 2열 단계 없이 바로 1열 아코디언으로 전환 */
@media (max-width: 1199.98px) {
  /* 1열 + 풀페이지 메뉴 동일 스타일 — Bootstrap container 반응형 max-width 유지 */
  .role-menu-grid {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
  }
  /* 학생 메뉴 등 항상 펼쳐진 섹션 — 풀페이지 메뉴 동일한 좌우 패딩/하단 보더 */
  .top-auth-profile .role-menu-section--static {
    padding: 18px 15px;
    border-bottom: 1px solid #f1f5f9;
  }
  .top-auth-profile .role-menu-section--static .role-menu-section-title {
    margin: 0 0 10px;
    padding: 0 0 0 14px;
    border-bottom: none;
    color: #64748b;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    position: relative;
  }
  .top-auth-profile .role-menu-section--static .role-menu-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 14px;
    background: #004ea2;
    border-radius: 2px;
  }
  .top-auth-profile .role-menu-section--static .role-menu-section-list {
    padding: 0;
  }
  /* 섹션(<details>): 풀페이지 메뉴 .fullpage-menu-section 와 동일 — 좌우 패딩 + 하단 보더 */
  .top-auth-profile details.role-menu-section {
    padding: 0 15px;
    border-bottom: 1px solid #f1f5f9;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
  }
  /* summary(=section title): 풀페이지 메뉴 트리거와 동일 패딩/레이아웃 */
  .top-auth-profile details.role-menu-section > summary.role-menu-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 18px 0;
    border-bottom: none;
    color: #64748b;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    user-select: none;
  }
  /* 좌측 세로 바 마커 — 풀페이지 메뉴 h5::before 와 동일 */
  .top-auth-profile details.role-menu-section > summary.role-menu-section-title > span {
    position: relative;
    padding-left: 14px;
  }
  .top-auth-profile details.role-menu-section > summary.role-menu-section-title > span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: #004ea2;
    border-radius: 2px;
  }
  /* 좌측 inline 아이콘 숨김 — 풀페이지 메뉴와 동일하게 마커만 사용 */
  .top-auth-profile details.role-menu-section > summary.role-menu-section-title > span > i {
    display: none;
  }
  /* 우측 chevron */
  .top-auth-profile .role-menu-section-chevron {
    display: inline-block;
    font-size: 18px;
    color: #94a3b8;
  }
  .top-auth-profile details.role-menu-section[open] > summary .role-menu-section-chevron {
    transform: rotate(180deg);
    color: #004ea2;
  }
  /* 펼침 영역 — 풀페이지 메뉴 ul 동일 스타일/애니메이션 */
  .top-auth-profile details.role-menu-section > .role-menu-section-list {
    overflow: hidden;
    padding: 0 0 12px;
    animation: fullpageAccordionOpen .22s ease;
  }
  /* 메뉴 아이템 — 풀페이지 메뉴 li a 동일 */
  .top-auth-profile .role-menu-section-list .dropdown-item {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 14px 18px !important;
    border-radius: 10px;
    color: #1e293b;
    font-size: 17px;
    font-weight: 600;
  }
  .top-auth-profile .role-menu-section-list .dropdown-item:hover,
  .top-auth-profile .role-menu-section-list .dropdown-item:focus {
    background: #eef4fb;
    color: #004ea2;
    padding-left: 18px !important;
  }
  .top-auth-profile .role-menu-section-list .dropdown-item.active {
    background: #eef4fb;
    color: #004ea2;
  }
  .top-auth-profile .role-menu-section-list .dropdown-item.active > span {
    font-weight: 700;
  }
  .top-auth-profile .role-menu-section-list .dropdown-item.active > i {
    color: #004ea2;
  }
  .top-auth-profile .role-menu-section-list .dropdown-item > i {
    font-size: 17px;
    color: #94a3b8;
  }
}

@media (max-width: 575.98px) {
  .role-menu-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .role-menu-section-list .dropdown-item {
    font-size: 14.5px;
    padding: 12px 14px !important;
  }
}

/* 관리자 메뉴 내부 텍스트 — 장평 98% + 자간 축소 */
.top-auth-profile .dropdown-menu,
.top-auth-profile .dropdown-menu * {
  font-stretch: 98%;
  letter-spacing: -0.025em;
}

.top-auth-profile .dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 500;
  color: #334155;
  padding: 12px 24px;
  text-align: left;
  white-space: nowrap;
  border-left: 3px solid transparent;
  transition: background-color .12s, border-color .12s, color .12s, padding-left .12s;
}
.top-auth-profile .dropdown-menu .dropdown-item > i {
  font-size: 20px;
  color: #64748b;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  transition: color .12s, transform .12s;
}
.top-auth-profile .dropdown-menu .dropdown-item:hover,
.top-auth-profile .dropdown-menu .dropdown-item:focus {
  background-color: #f1f5fa;
  border-left-color: #29587f;
  color: #0f172a;
  text-decoration: none;
  padding-left: 28px;
}
.top-auth-profile .dropdown-menu .dropdown-item:hover > i,
.top-auth-profile .dropdown-menu .dropdown-item:focus > i {
  color: #29587f;
  transform: scale(1.05);
}
.top-auth-profile .dropdown-menu .dropdown-item.active,
.top-auth-profile .dropdown-menu .dropdown-item:active {
  background-color: #e8eef6;
  color: #29587f;
  border-left-color: #29587f;
  font-weight: 700;
}
.role-menu-section-list .dropdown-item {
  padding: 10px 14px !important;
  border-radius: 8px;
  font-size: 16px;
}
.role-menu-section-list .dropdown-item:hover,
.role-menu-section-list .dropdown-item:focus {
  padding-left: 18px !important;
}

.role-menu-section-list .dropdown-item--logout {
  color: #dc3545 !important;
  font-weight: 700;
}
.role-menu-section-list .dropdown-item--logout > i {
  color: #dc3545 !important;
}
.role-menu-section-list .dropdown-item--logout:hover,
.role-menu-section-list .dropdown-item--logout:focus {
  background-color: #fdecea !important;
  color: #b71c1c !important;
}
.role-menu-section-list .dropdown-item--logout:hover > i,
.role-menu-section-list .dropdown-item--logout:focus > i {
  color: #b71c1c !important;
}
.top-auth-profile .dropdown-menu .dropdown-item--logout > i {
  color: #dc3545 !important;
}
.top-auth-profile .dropdown-menu .dropdown-item--logout:hover,
.top-auth-profile .dropdown-menu .dropdown-item--logout:focus {
  background-color: #fdecea !important;
  border-left-color: #dc3545 !important;
  color: #b71c1c !important;
}
.top-auth-profile .dropdown-menu .dropdown-item--logout:hover > i,
.top-auth-profile .dropdown-menu .dropdown-item--logout:focus > i {
  color: #b71c1c !important;
}

.top-auth-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: none;
  border-radius: 0;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}

.top-auth-btn:hover,
.top-auth-btn:focus {
  background-color: transparent;
  color: #fff;
  text-decoration: none;
}

.top-auth-divider {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, .55);
  font-size: 14px;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}


body.fullpage {
  padding: 0 !important;
}

.head-common-menu-class .nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.head-common-menu-class .nav-item + .nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: #d4dae3;
  pointer-events: none;
}

.head-common-menu-class .nav-item.active .nav-link{
  font-weight: 700;
}

.head-common-menu-class .navbar-nav {
  flex-wrap: nowrap;
}

.head-common-menu-class .nav-item .nav-link {
  display: flex;
  gap: 2px;
  color: #333;
  white-space: nowrap;
  text-align: center;
  font-size: clamp(19px, 1.5vw, 22px);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-stretch: 98%;
  transform: scaleX(0.98);
  transform-origin: center center;
  height: var(--header-nav-h);
  padding: 0 clamp(14px, 1.4vw, 26px);
  margin: 0;
  background: none;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}

.head-common-menu-class .nav-item .nav-link:hover,
.head-common-menu-class .nav-item .nav-link:focus {
  font-weight: 700;
  background-color: transparent !important;
  box-shadow: 0 -4px 0 #29587f inset;
}

.head-common-menu-class .nav-item .nav-link.nav-link--external > i {
  font-size: 0.7em;
  vertical-align: super;
  margin-left: 4px;
  opacity: 0.85;
  -webkit-text-stroke: 1.2px currentColor;
  font-weight: 900;
  transition: opacity .18s ease, transform .18s ease;
}

.head-common-menu-class .nav-item .nav-link.nav-link--external:hover > i,
.head-common-menu-class .nav-item .nav-link.nav-link--external:focus > i {
  opacity: 1;
  transform: translate(1px, -1px);
}

/* sub-nav 탭의 외부링크 아이콘 — 작고 두툼하게 */
.nav-sub .nav-tabs .nav-link.nav-link--external > i {
  font-size: 0.7em;
  vertical-align: super;
  margin-left: 4px;
  opacity: 0.85;
  -webkit-text-stroke: 1.2px currentColor;
  font-weight: 900;
  transition: opacity .18s ease, transform .18s ease;
}
.nav-sub .nav-tabs .nav-link.nav-link--external:hover > i,
.nav-sub .nav-tabs .nav-link.nav-link--external:focus > i {
  opacity: 1;
  transform: translate(1px, -1px);
}

.head-common-menu-class.light .nav-item .nav-link {
  color: #fff;
  background: none;
}

.head-common-menu-class .badge-light {
  color: #29587f;
  font-size: 12px;
}

/* Table */
table td a {
  color: #535353;
}

table .input-checkbox {
  height: 20px;
}

.modal-header {
  height: 48px;
  border-bottom: 0;
}
.modal-footer {
  border-top: none;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.select2-container {
  width: 100% !important;
}

.select2-container .select2-selection--single {
  height: 35px;
}

.select2-container--default .select2-selection--single {
  border: 1px solid #ced4da;

}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 20px;
  padding: .375rem 20px .375rem .75rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 32px;
}

/* Datatables */
.no-sort::before, .no-sort::after {
  display: none !important;
}

.no-sort {
  padding: .7rem !important;
}


.form-filter button[type="submit"] {
  width: 50px;
  height: 36px;
  padding: .375rem;
}

/* JS Tree */
.jstree {
  height: 500px;
  overflow-y: auto;
}

.section-title {
  display: block;
  background-color: #29587f;
  text-align: center;
  font-weight: bold;
  color: #FFF !important;
  padding: 0.5rem 0;
}

.subject-category-box .subject-box {
  height: 140px;
  padding-top: 30px;
  background-color: #e9ecef;
  margin-bottom: 20px;
}

.subject-category-box .subject-box .subject-title {
  color: #464547;
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.subject-box .label {
  color: #29587f;
  font-weight: bold;
  border-bottom: 2px solid #29587f;
  padding-bottom: 5px;
  text-align: center;
  width: 110px;
  margin: 0 auto 10px auto;
}

.subject-category-box .subject-box:hover {
  background-color: #29587f;
}

.subject-category-box .subject-box:hover .label {
  color: #FFF;
  border-bottom: 2px solid #FFF;
}

.subject-category-box .subject-box:hover .subject-title {
  color: #FFF;
}

.majorgroup-title {
  margin-top: 0.5rem;
  text-align: left;
  font-weight: bold;
  font-size: 1.2em;
  color: #29587f;
}

.majorgroup-contents {
  font-size: 1.1em;
  padding: 0.5rem 0;
}

.subject-basket-star {
  position: absolute;
  top: 5px;
  left: 20px;
}

.subject-basket-star > input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.grade-calculation-table {
  font-size: 1.3em;
}

/* Adiga Floating Link */
.link-adiga {
  position: fixed;
  right: 0;
  top: 20%;
  width: 140px;
  height: 60px;
  background-color: #FFF;
  border-top: 1px solid #938d8f;
  border-left: 1px solid #938d8f;
  border-bottom: 1px solid #938d8f;
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
  box-shadow: 7px 4px 4px #0c0c0c;
  z-index: 10;
  opacity: .8;
}

.link-adiga img {
  height: 46px;
  width: auto;
}

/* Main */
.hscredit-summary-box {
  height: 82px;
}

.hscredit-summary-box:hover {
  background-color: #3483de;
}

.hscredit-summary-box:hover i, .hscredit-summary-box:hover .feature__body h5 {
  color: #FFF !important;
}

.main-popup {
  display: none;
  position: fixed;
  top: 90px;
  right: 5px;
  z-index: 9999;
  border: 1px solid #aaa;
  box-shadow: -0.3em 0.3em 0.7em #666666;
  background-color: #FFF;
  min-width: 200px;
  max-width: 400px;
}

.main-popup .popup-container {
  overflow-x: hidden;
  overflow-y: auto;
}

.main-popup .popup-container > p {
  margin: 0 !important;
}

.main-popup .popup-container img {
  max-width: 100% !important;
}

.main-popup .popup-footer {
  width: 100%;
  height: 30px;
  background: #424242;
}

.main-popup .popup-footer a {
  color: #FFF !important;
}

.loader-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: transparent;
  display: none;
  z-index: 900;
}

.loader-wrap .loader-message {
  display: none;
}

.loader-wrap .loader {
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 4px solid #e3e8ef;
  border-top-color: #8a94a6;
  border-radius: 50%;
  opacity: 1;
  animation: loaderSpin 0.6s linear infinite;
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

#result-table .assign:hover {
  cursor: pointer;
  background-color: #fafafa;
}

#result-table .unassigned:hover .description {
  display: block;
}

.class-division-parallel-selector {
  padding: 0 8px;
}

.cell-parallel:hover {
  cursor: pointer;
  background-color: #eee;
}

.scroll-table {
  overflow-y: auto;
  overflow-x: auto;
  max-height: 600px;
}

.scroll-table table {
  table-layout: fixed;
}

.scroll-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.scroll-table tbody td:nth-child(4) {
  background-color: #FFF;
  position: sticky;
  left: 0;
  z-index: 1;
}

.scroll-table thead th.stl {
  position: sticky;
  left: 0;
  background-color: #fff;
  z-index: 3;
}

.input-checkbox input.muted:checked + label {
  border-color: #aaa;
  background: #aaa;
}

@media (min-width: 1200px) {
  .modal-xl {
    max-width: 90% !important;
  }
}

table.dataTable thead > tr > th.sorting_asc, table.dataTable thead > tr > th.sorting_desc, table.dataTable thead > tr > th.sorting, table.dataTable thead > tr > td.sorting_asc, table.dataTable thead > tr > td.sorting_desc, table.dataTable thead > tr > td.sorting {
  padding-right: 16px !important;
}

.input-checkbox {
  margin-top: 0.1em;
}

.nav-tabs .nav-link.active {
  border-color: #dee2e6 #dee2e6 #fafafa;
  color: #29587f;
  font-weight: 600;
}

.navbar.navbar-styled {
  background-color: #FFF;
}

.navbar .navbar-toggler {
  color: #333;
  font-size: 40px;
}

.text-underline {
  text-decoration: underline;
}

.bg-danger {
  color: #FFF;
}

.collapsing {
  transition: none !important;
}


/* 모바일 메뉴: JS-free 체크박스 토글 (Bootstrap collapse 제거) */
.fullpage-menu-toggle {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

label.navbar-toggler,
label.fullpage-close-button {
  cursor: pointer;
  margin-bottom: 0;
}

.fullpage-menu-backdrop {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1029;
  opacity: 0;
  visibility: hidden;
  margin: 0;
  cursor: pointer;
}

.fullpage-menu {
  position: fixed;
  top: calc(var(--header-h) - 1px);
  left: 0;
  right: 0;
  width: 100%;
  background-color: #FFF;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .18);
  z-index: 1040;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  -webkit-clip-path: inset(0 0 100% 0);
}

.fullpage-menu-toggle:checked ~ .fullpage-menu-backdrop {
  opacity: 1;
  visibility: visible;
}

.fullpage-menu-toggle:checked ~ .fullpage-menu {
  clip-path: inset(0 0 0 0);
  -webkit-clip-path: inset(0 0 0 0);
  visibility: visible;
}

/* 헤더 아래 슬라이드 다운 형태 — 풀페이지가 아니므로 내부 자체 헤더(로고+X) 숨김 */
.fullpage-menu-header {
  display: none !important;
}

/* 모바일 메뉴: 헤더 영역 (로고 + 닫기) */
.fullpage-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  flex-shrink: 0;
}

.fullpage-menu-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.fullpage-menu-brand img {
  height: 32px;
  width: auto;
  display: block;
}

.fullpage-close-button {
  display: inline-flex;
  width: 40px;
  height: 40px;
  font-size: 24px;
  color: #475569;
  background: transparent;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.fullpage-close-button:hover,
.fullpage-close-button:focus {
  background: #f1f5f9;
  color: #0f172a;
}

/* 모바일 메뉴: 본문 리스트 — Bootstrap .container 클래스를 직접 사용해 헤더와 100% 동일한 반응형 너비.
   부모가 column flex + align-items: stretch 이므로 align-self: center 로 stretch 무력화. */
.fullpage-menu .fullpage-menu-list {
  flex: 1 1 auto;
  align-self: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
/* .container 의 좌우 15px padding 은 menu-section 자체 padding 과 중복되므로 제거.
   결과적으로 .container 의 max-width 와 margin auto 만 활용. */
.fullpage-menu .fullpage-menu-list.container {
  padding-left: 0;
  padding-right: 0;
}

.fullpage-menu-auth {
  padding: 10px 0 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

/* 로그인/로그아웃 버튼 */
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.auth-btn i {
  font-size: 18px;
  line-height: 1;
}

.auth-btn--login {
  background: #004ea2;
  color: #ffffff;
}

.auth-btn--login:hover,
.auth-btn--login:focus {
  background: #1769c8;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.auth-btn--logout {
  background: #f1f5f9;
  color: #334155;
}

.auth-btn--logout:hover,
.auth-btn--logout:focus {
  background: #e2e8f0;
  color: #0f172a;
  text-decoration: none;
}

/* 메뉴 섹션 — 헤더 .container 와 동일한 좌우 15px 패딩 */
.fullpage-menu-section {
  padding: 0 15px;
  border-bottom: 1px solid #f1f5f9;
}

/* 모든 섹션 헤더(트리거)는 같은 레이아웃·패딩 공유 */
.fullpage-menu-accordion > summary,
.fullpage-menu-external,
div.fullpage-menu-section > h5 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding-top: 18px;
  padding-bottom: 18px;
  list-style: none;
}

.fullpage-menu-section h5 {
  margin: 0 0 8px;
  padding-left: 14px;
  position: relative;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #64748b;
  text-transform: uppercase;
}

.fullpage-menu-section h5::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: #004ea2;
  border-radius: 2px;
}

/* 외부 링크 섹션 (anchor 형태) — 헤더 클릭으로 새 창 이동 */
.fullpage-menu-external {
  text-decoration: none;
  color: inherit;
}
.fullpage-menu-external:hover,
.fullpage-menu-external:focus {
  text-decoration: none;
  color: inherit;
}
.fullpage-menu-external:hover h5,
.fullpage-menu-external:focus h5 {
  color: #004ea2;
}
.fullpage-menu-external > h5 { margin: 0; }
.fullpage-menu-external:hover .fullpage-menu-chevron,
.fullpage-menu-external:focus .fullpage-menu-chevron {
  color: #004ea2;
}

/* 아코디언 (details/summary) */
.fullpage-menu-accordion {
  padding-top: 0;
}
.fullpage-menu-accordion > summary {
  cursor: pointer;
  user-select: none;
}
.fullpage-menu-accordion > summary::-webkit-details-marker { display: none; }
.fullpage-menu-accordion > summary::marker { content: ''; }
.fullpage-menu-accordion > summary > h5 { margin: 0; }
.fullpage-menu-chevron {
  font-size: 18px;
  color: #94a3b8;
  transition: transform .2s ease, color .2s ease;
}
.fullpage-menu-accordion[open] > summary .fullpage-menu-chevron {
  transform: rotate(180deg);
  color: #004ea2;
}
.fullpage-menu-accordion > ul {
  overflow: hidden;
  animation: fullpageAccordionOpen .22s ease;
}
@keyframes fullpageAccordionOpen {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fullpage-menu-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fullpage-menu-section ul li {
  margin: 0;
}

.fullpage-menu-section ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  color: #1e293b;
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}

.fullpage-menu-section ul li a:hover,
.fullpage-menu-section ul li a:focus {
  background: #eef4fb;
  color: #004ea2;
  text-decoration: none;
  padding-left: 18px;
}

/* 외부 링크(사이트 바로가기): bi-window-stack 아이콘 유지하므로 chevron 가림 */
.fullpage-menu-section ul li a:has(.bi-window-stack)::after {
  display: none;
}

/* 모바일 화면 대응 */
@media (max-width: 768px) {
  .fullpage-menu {
    width: 100%;
    max-width: none;
  }
  .fullpage-menu-header {
    padding: 10px 18px;
  }
}

.menuline {
  display: none;
  position: absolute;
  right: 64px;
  width: 1px;
  background-color: #e5e5e5;
  bottom: 0;
  z-index: 0;
}

.fullpage .navbar.navbar-styled {
  background: none !important;
}

.subpage-menu {
  position: fixed;
  z-index: 1029;
  top: 68px;
  left: 0;
  right: 0;
  height: 160px;
  background-color: #FFF;
  box-shadow: 0px 7px 20px rgb(0, 0, 0, 15%);
}

.btn-primary {
  color: #fff;
  background-color: #29587f;
  border-color: #29587f;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #4383b2;
  border-color: #4383b2;
}

.btn-rounded {
  border-radius: 1.2rem;
}

.btn--icon {
  font-weight: 600;
}

.attachment-box {
  margin-top: 0.8rem;
  background-color: #f6f6f6;
  padding: 0.8rem 1.2rem;
}

.badge-large {
  font-size: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 3rem;
}

.border-box {
  padding: 0.6rem 0.4rem;
  border: 2px solid #29587f;
}

.cursor-pointer {
  cursor: pointer;
}

/* ─────────────────────────────────────────────────────────────
   intro 페이지 — 레이아웃/장식 (타이포그래피는 Bootstrap 유틸리티 사용)
   ───────────────────────────────────────────────────────────── */

/* 각 탭의 페이지 제목 — 가운데 정렬 + 아래 brand-color bar */
.intro-tab-title {
  text-align: center;
  margin: 0 auto 36px;
  padding-bottom: 18px;
  position: relative;
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  letter-spacing: -0.02em;
}
.intro-tab-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: #29587f;
  border-radius: 2px;
}
@media (max-width: 991.98px) {
  .intro-tab-title {
    margin-bottom: 28px;
    padding-bottom: 14px;
  }
  .intro-tab-title::after {
    width: 32px;
    height: 3px;
  }
}

/* hero — full-bleed 풀폭 배경 */
.intro-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 96px 0;
}
@media (max-width: 991.98px) {
  .intro-hero {
    padding: 64px 0;
  }
}

/* hero 내부 타이포 — Bootstrap display-3/lead 위에 명시적으로 키워 잡음 */
.intro-hero h2,
.intro-hero .display-3,
.intro-hero .display-4 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.intro-hero .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.375rem);
  line-height: 1.7;
  font-weight: 400;
}

/* feature 섹션 — 좌측 제목, 우측 bullet 리스트 */
.intro-feature {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: 48px;
  align-items: start;
  padding: 56px 0;
  border-top: 1px solid #e5e7eb;
}
.intro-feature:last-child {
  border-bottom: 1px solid #e5e7eb;
}
@media (max-width: 767.98px) {
  .intro-feature {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 0;
  }
}

/* feature 제목 — 좌측 파란 막대 장식 */
.intro-feature-title {
  position: relative;
  padding-left: 20px;
  margin: 0;
  color: #1a2433;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.intro-feature-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 6px;
  border-radius: 3px;
  background: linear-gradient(180deg, #29587f 0%, #3a7fb3 100%);
}

/* feature 리스트 — 2열 그리드 + 파란 점 bullet */
.intro-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
  font-size: clamp(1.125rem, 1.4vw, 1.3125rem);
  font-weight: 500;
}
@media (max-width: 575.98px) {
  .intro-feature-list {
    grid-template-columns: 1fr;
  }
}
.intro-feature-list li {
  position: relative;
  padding-left: 24px;
  color: #334155;
  line-height: 1.6;
}
.intro-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #29587f;
}

/* ─────────────────────────────────────────────────────────────
   intro2 — 운영 중점 카드 + 학점제 운영 체계 플로우
   ───────────────────────────────────────────────────────────── */

/* 본문 영역 안에서 .nav-sub * 와일드카드와 무관하게 자연 위계 보장 */
.intro2-section { margin-top: 72px; }
.intro2-section:first-child { margin-top: 0; }

/* 섹션 제목 — 좌측 파란 막대 + 큰 타이틀 */
.intro2-section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.intro2-section-head--center {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.intro2-section-head--center::before {
  display: none;
}
.intro2-section-head--center::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #29587f 0%, #3a7fb3 100%);
}
.intro2-section-head::before {
  content: '';
  width: 6px;
  height: 22px;
  margin-top: 4px;
  background: linear-gradient(180deg, #29587f 0%, #3a7fb3 100%);
  border-radius: 3px;
}
.intro2-section-head h3,
.intro2-section-head .head-title {
  font-size: 24px !important;
  font-weight: 700;
  color: #1a2433;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}
.intro2-section-head--center .head-title {
  font-size: 32px !important;
  font-weight: 800;
}
.intro2-section-head .head-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.intro2-section-head .head-sub {
  font-size: 19px !important;
  color: #6b7280;
  font-weight: 500;
  letter-spacing: -0.01em;
}
@media (max-width: 767.98px) {
  .intro2-section-head h3,
  .intro2-section-head .head-title { font-size: 20px !important; }
  .intro2-section-head--center .head-title { font-size: 26px !important; }
}

/* 개요 lead — 와일드카드 우회를 위해 강제 사이즈 */
.intro2-lead {
  font-size: 19px !important;
  line-height: 1.75;
  color: #475569;
  letter-spacing: -0.01em;
  margin: 0;
}
@media (max-width: 767.98px) {
  .intro2-lead { font-size: 19px !important; }
}

/* 운영 중점 — 3-카드 그리드 */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 767.98px) {
  .focus-grid { grid-template-columns: 1fr; gap: 18px; }
}

.focus-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 48px 32px 40px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.focus-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(41, 88, 127, .14);
  border-color: #c7d4e0;
}
.focus-icon {
  width: 104px;
  height: 104px;
  margin: 0 auto 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f0f8 0%, #d4e1ed 100%);
  color: #29587f;
  border-radius: 50%;
  font-size: 48px !important;
  line-height: 1;
}
.focus-icon svg {
  width: 52px;
  height: 52px;
  display: block;
}
.focus-title {
  font-size: 24px !important;
  font-weight: 800;
  color: #29587f;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.focus-desc {
  font-size: 19px !important;
  line-height: 1.7;
  color: #475569;
  margin: 0;
  letter-spacing: -0.01em;
}
@media (max-width: 767.98px) {
  .focus-icon { width: 88px; height: 88px; font-size: 40px !important; }
  .focus-icon svg { width: 44px; height: 44px; }
  .focus-title { font-size: 20px !important; }
}

/* 학점제 운영 체계 — 스텝 플로우 */
.flow { margin-top: 8px; }

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 64px;
  position: relative;
}
@media (max-width: 991.98px) {
  .flow-steps { grid-template-columns: repeat(2, 1fr); gap: 20px 44px; }
}
@media (max-width: 575.98px) {
  .flow-steps { gap: 16px 28px; }
}

.flow-step {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px 24px 28px;
  text-align: center;
  position: relative;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.flow-step:hover {
  border-color: #29587f;
  box-shadow: 0 8px 22px rgba(41, 88, 127, .12);
}

/* 카드 사이 화살표 */
.flow-step + .flow-step::before {
  content: '\F285';
  font-family: 'bootstrap-icons' !important;
  position: absolute;
  left: -48px;
  top: 50%;
  transform: translateY(-50%);
  color: #29587f;
  font-size: 28px !important;
  font-weight: 700;
}
@media (max-width: 991.98px) {
  .flow-step + .flow-step::before { left: -34px; font-size: 22px !important; }
  .flow-step:nth-child(2n+1) + .flow-step::before { display: none; }
}
@media (max-width: 575.98px) {
  .flow-step + .flow-step::before { left: -22px; font-size: 18px !important; }
}

.flow-num {
  display: inline-block;
  font-size: 28px !important;
  font-weight: 800;
  color: #29587f;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #29587f;
  min-width: 56px;
  line-height: 1;
}
.flow-title {
  font-size: 22px !important;
  font-weight: 800;
  color: #1a2433;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.flow-desc {
  font-size: 19px !important;
  line-height: 1.65;
  color: #64748b;
  letter-spacing: -0.01em;
}
@media (max-width: 767.98px) {
  .flow-num { font-size: 22px !important; }
  .flow-title { font-size: 19px !important; }
}

/* 학점제 → 졸업 연결 화살표 (꼬리) */
.flow-arrow {
  display: flex;
  justify-content: center;
  margin: 32px 0 0;
  color: #29587f;
}
.flow-arrow i {
  font-size: 36px !important;
}

/* 최종 졸업 노드 — 박스 + 큰 라인 아이콘 */
.flow-final {
  margin-top: 16px;
  padding: 40px 32px 36px;
  text-align: center;
  background: transparent;
  border: 1px solid #d4e1ed;
  border-radius: 20px;
  position: relative;
}
.flow-final-icon {
  margin: 0 auto 16px;
  font-size: 88px !important;
  line-height: 1;
  color: #29587f;
}
.flow-final-title {
  font-size: 36px !important;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  line-height: 1.2;
  color: #29587f;
}
.flow-final-title span {
  font-size: 36px !important;
  font-weight: 700;
  margin-left: 4px;
  color: #29587f;
}
.flow-final-desc {
  font-size: 19px !important;
  color: #475569;
  letter-spacing: -0.01em;
  margin: 0;
}
@media (max-width: 767.98px) {
  .flow-final-icon { font-size: 68px !important; }
  .flow-final-title,
  .flow-final-title span { font-size: 28px !important; }
}

.intro-subtitle-round {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  background-color: #29587f;
  color: #FFF;
  font-weight: bold;
  font-size: 1.15rem;
  text-align: center;
  border-radius: 50%;
  width: 150px;
  height: 150px;
}

.intro-subtitle-round-sm {
  font-size: 1rem;
  width: 100px;
  height: 100px;
}

.intro-subtitle-box {
  display: flex;
  margin-top: 1.5rem;
  border-bottom: 2px solid #29587f;
}

.intro-subtitle {
  background-color: #29587f;
  color: #FFF;
  font-weight: bold;
  font-size: 1.04rem;
  padding: 0.4rem 0.6rem;
  line-height: 1.2rem;
}

/* ─────────────────────────────────────────────────────────────
   page-jbecredit — 본문 폰트 최소 19px 강제
   ───────────────────────────────────────────────────────────── */
.page-jbecredit .tab-pane p,
.page-jbecredit .tab-pane li,
.page-jbecredit .tab-pane h5,
.page-jbecredit .tab-pane h6,
.page-jbecredit .tab-pane .intro-subtitle,
.page-jbecredit .tab-pane small {
  font-size: 19px !important;
  line-height: 1.6;
}
.page-jbecredit .tab-pane h4 {
  font-size: 26px !important;
  line-height: 1.35;
}
.page-jbecredit .tab-pane h3 {
  font-size: 30px !important;
  line-height: 1.3;
}
.page-jbecredit .tab-pane h2 {
  font-size: 34px !important;
  line-height: 1.25;
}
.page-jbecredit .tab-pane ul li {
  margin-bottom: 6px;
}

.bt-primary {
  border-top: 2px solid #29587f;
}

.bb-primary {
  border-bottom: 2px solid #29587f;
}

.object-fit-contain {
  object-fit: contain !important;
}

.school-space-box {
  border: 1px solid rgba(50, 50, 50, .1);
  box-shadow: 4px 8px 24px rgba(0, 0, 0, .08);
  padding: .75rem;
  overflow: hidden;
  transition: all .3s;
  background: #fff;
  border-radius: 14px;
}

.school-space-box:hover {
  transform: translateY(-4px);
  box-shadow: 12px 20px 40px rgba(50, 50, 50, .2);
}

.school-space-box-imgbox{
  aspect-ratio: 1/1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  border-radius: 14px;
  background-color: #f1f4f9;
}

.school-space-box-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 3rem;
}

.school-space-box:hover img{
  transform: scale(1.04);
  filter: brightness(1.2);
}

.school-space-box:hover a{
  color: #29587f;
}

.school-space-box img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: all .3s linear;
}

.school-space-box .content {
  color: black;
  font-weight: bold !important;
  height: 100%;
}

.school-space-box .title {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  transition: all .3s;
  font-size: 1rem;
}

.school-space-box a:hover .title {
  color: #004ea2;
}

.school-space-box .date {
  color: rgba(0, 0, 0, .5) !important;
  font-weight: 300;
  font-size: .875rem;
}

.school-space-box a{
  text-decoration: none;
}

.inspection-input {
  width: 50%;
  border: none;
  border-color: transparent;
  text-align: center;
}

.table .table thead tr:last-child {
  border-bottom: 2px solid #8b8b8b;
}

.table .table thead tr:first-child {
  border-top: 2px solid #8b8b8b;
}

.table-responsive .table.table-condensed thead tr:first-child {
  border-top: 1px solid #dbdbdb;
}

.table-responsive .table.table-condensed thead tr:last-child {
  border-bottom: 1px solid #dbdbdb;
}

.table-responsive .table.table-condensed strong {
  font-weight: 500;
  color: #29587f;
}

.table-responsive .table.table-condensed th,
.table-responsive .table.table-condensed td {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.table-responsive .table.table-condensed .badge {
  padding: 4px 6px;
  font-size: 0.875rem;
  font-weight: 400;
  margin-right: 2px;
}

.badge-primary {
  background: #29587f !important;
}


.table .table thead th {
  color: #3c434b;
  background-color: #fcfcfc;
}

.inspection-title {
  font-size: 15px;
  font-weight: bold;
  line-height: 34px;
}

/*bg-color*/
.bg-orange {
  background-color: #E94821;
}

.bg-coral-blue {
  background-color: #0071a2;
}

.bg-light-blue {
  background-color: #0091d0;
}

.bg-blue {
  background-color: #000FA2;
}

.bg-navy {
  background-color: #2A00A2;
}

.bg-purple {
  background-color: #4F00D0;
}

.bg-light {
  background: #f4faff !important;
}

.bg-primary {
  background-color: #29587f !important;
}

.bg-primary-gradient {
  background: linear-gradient(180deg, #4d80b1 0%, #b5cfe2 78%);
}

/* 로그인 페이지 — body flex column 안에서 카드 가운데 정렬 (h-100 체인이 깨진 경우 대응) */
body.bg-primary-gradient > .container-fluid {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.bg-primary-gradient > .container-fluid > .row {
  flex: 1;
  width: 100%;
  margin: 0;
}

.required-icon {
  margin-left: 3px;
  color: red;
  font-size: 5px;
}

.different-submit-subject {
  background-color: #F9FBF7 !important;
}

.added-submit-subject {
  background-color: #C6EFCE !important;
}

.modified-submit-subject {
  background-color: #FFEB9C !important;
}

.removed-submit-subject {
  background-color: #FFC7CE !important;
}

.site-card-img {
  width: 50%;
  height: 100%;
  display: block;
  margin: 10px auto;
  object-fit: scale-down !important;
}

.site-card-link {
  font-weight: bold;
  color: black;
}

.card-site {
  height: 130px;
}

.subject-group-item {
  cursor: grab;
}

.subject-group-item:last-child {
  margin-bottom: 50px !important;
}

.subject-group {
  min-height: 100px;
  padding-right: 0px !important;
}

.intro-basket-container {
  text-align: center;
  padding-bottom: 80px;
}

/* 본문 가독성 — 와이드 뷰포트에서 줄 길이 제한 (한 줄 ~70자) */
.intro-basket-container > h2,
.intro-basket-container > h3,
.intro-basket-container > h4,
.intro-basket-container > p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  word-break: keep-all;
}

/* 유연한 타이포그래피 */
.intro-basket-container > h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.3;
  margin-top: clamp(2rem, 1.2rem + 2vw, 3.2rem) !important;
}
.intro-basket-container > p:first-of-type {
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
  color: #4b5563;
  margin-bottom: 0;
}
.intro-basket-container > h3 {
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.35;
  margin-top: clamp(2rem, 1.2rem + 2vw, 3.2rem) !important;
  color: #1f2a37;
}
.intro-basket-container > h4 {
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  line-height: 1.4;
  margin-top: clamp(1.5rem, 1rem + 1.4vw, 2.4rem) !important;
  color: #29587f;
}
.intro-basket-container > p {
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  line-height: 1.7;
  color: #475569;
}

/* 이미지 — 뷰포트 우선, 단 매우 큰 화면에서는 1024px 캡 */
.intro-basket-container img.img-fluid {
  display: block;
  margin: 24px auto 0;
  width: 100%;
  max-width: min(100%, 1024px);
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .08);
}

@media (max-width: 575.98px) {
  .intro-basket-container { padding-bottom: 56px; }
  .intro-basket-container img.img-fluid {
    margin-top: 16px;
    border-radius: 6px;
  }
}

.certbox {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  height: 260px;
  border: 2px solid #e3e3e3;
  padding: 0.45rem 0.1rem;
}

.cert-reading-box {
  width: 100%;
  height: 180px;
  border: 1px solid #d2d2d2;
  border-radius: 0.25rem;
  background-color: #ededed;
  overflow-y: auto;
}

.cert-reading-box .title {
  font-size: 1.3rem;
  font-weight: bold;
  padding: 10px;
  color: #29587f;
}

.cert-reading-box .content {
  padding: 10px;
}

.gap-1{
  gap: 4px;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.opacity-50 {
  opacity: .5;
}

.rounded-3 {
  border-radius: 1rem !important;
}

.menu-top-grid-container {
  display: grid;
}

.menu-top-grid-container.display-4column {
  grid-template-columns: repeat(4, 196px);
}

.menu-top-grid-container.display-1column {
  grid-template-columns: 196px;
}

.dropdown-menu:has(.menu-top-grid-container) {
  left: auto;
  right: 0;
  top: calc(100% + 12px);
  box-shadow: 2px 4px 8px rgba(0, 0, 0, .12);
  border: 1px solid #dbdbdb;
  border-radius: 8px;
}

/* ============================================================
   Curriculum intro page (intro/curriculum.html)
   Tokens: primary #29587f / accent #5085b1 / line #d6dde6
           surface #fff / muted #f6f8fb / text #1f2a37 / sub #6b7886
   ============================================================ */
.nav-sub .nav-tabs, .nav-sub .nav-tabs * { font-size: max(1em, 14px); }
.nav-sub .nav-tabs small { font-size: 14px; }

/* L1. Section title */
.curri-section { margin-top: 3rem; }
.curri-section-title {
  position: relative;
  text-align: center;
  margin: 0 auto 1.8rem;
  padding-bottom: 0.85rem;
}
.curri-section-title h5 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2a37;
  letter-spacing: -0.2px;
  line-height: 1.4;
}
.curri-section-title .title-sub {
  display: block;
  margin: 0.25rem 0 0;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: #6b7886;
}
.curri-section-title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 32px; height: 3px;
  background: #29587f;
  border-radius: 2px;
}
.curri-section-title .icon-wrap { display: none; }

/* L2. Numbered statement (tab 1 stmt + tab 3 rule head) */
.stmt-list { margin: 0; }
* + .stmt-list { margin-top: 1.8rem; }
.stmt {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.4rem 0;
}
.stmt + .stmt { margin-top: 1.6rem; }
.stmt-num {
  flex: 0 0 auto;
  min-width: 2.4rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #29587f;
  line-height: 1.2;
  letter-spacing: -0.2px;
}
.stmt-text {
  flex: 1;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #1f2a37;
}
.stmt-text strong { color: #29587f; font-weight: 700; }

/* L3. Card */
.curri-card {
  background: #fff;
  border: 1px solid #d6dde6;
  border-radius: 6px;
  padding: 1.1rem 1.3rem;
  margin: 0.9rem 0 0;
}
.curri-card + .curri-card { margin-top: 0.7rem; }
.curri-card-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #29587f;
  padding-bottom: 0.6rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid #eef1f5;
}
.curri-card-title .dot { display: none; }
.curri-card ul { margin-bottom: 0; padding-left: 1.2rem; }
.curri-card ul li {
  margin: 0.45rem 0;
  line-height: 1.75;
  font-size: 1rem;
  color: #1f2a37;
}
.curri-card ul li strong { color: #29587f; font-weight: 700; }

/* Equal-height card variant */
.curri-card-equal {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.curri-card-equal > .curri-card-title { flex: 0 0 auto; }
.curri-card-equal > table { flex: 1 1 auto; height: 100%; }

/* === Tab 3 rule cards === */
.rule-card {
  background: #fff;
  border: 1px solid #d6dde6;
  border-radius: 6px;
  margin-top: 0.7rem;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.rule-card:has(.rule-toggle[aria-expanded="true"]) {
  border-color: #29587f;
}
.rule-card-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
}
.rule-num {
  flex: 0 0 auto;
  min-width: 2.4rem;
  color: #29587f;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.rule-title {
  flex: 1;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #1f2a37;
}
.rule-title strong { color: #29587f; font-weight: 700; }
.rule-title ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.rule-title ul li { margin: 0.35rem 0; line-height: 1.7; }

/* L4. Toggle */
.rule-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 2.4rem;
  background: #fafbfd;
  color: #29587f;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 0;
  border-top: 1px solid #eef1f5;
  transition: background-color 0.15s ease, color 0.15s ease;
  user-select: none;
  text-align: center;
}
.rule-toggle:hover { background: #f3f6fa; }
.rule-toggle[aria-expanded="true"] {
  color: #29587f;
  font-weight: 700;
}
.rule-toggle .chev {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.2s ease;
}
.rule-toggle[aria-expanded="true"] .chev {
  transform: translateY(-25%) rotate(-135deg);
}

/* Rule body / detail */
.rule-detail { border-top: 0; }
.rule-body {
  padding: 1.7rem 1.6rem;
  background: #ffffff;
  border-top: 1px solid #eef1f5;
}
.rule-body > * + * { margin-top: 1.4rem; }
.rule-body > .table-responsive + .rule-detail-title { margin-top: 1.8rem; }
.rule-detail-title {
  display: inline-block;
  font-size: 1.08rem;
  font-weight: 700;
  color: #1f2a37;
  line-height: 1.4;
  margin: 0;
  padding: 0 0.2rem;
  background: linear-gradient(transparent 60%, #fff3a3 60%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.rule-detail-title .dot { display: none; }
.rule-detail ul { margin-bottom: 0; padding-left: 1.2rem; }
.rule-detail ul li { margin: 0.55rem 0; line-height: 1.7; }

/* Tags */
.curri-tag {
  display: inline-block;
  background: #29587f;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.18rem 0.6rem;
  border-radius: 3px;
  margin-right: 0.3rem;
}
.curri-tag-group {
  display: inline-block;
  background: #fff;
  color: #29587f;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.32rem 0.7rem;
  border-radius: 4px;
  margin: 0 0.4rem 0.45rem 0;
  border: 1px solid #d6dde6;
  line-height: 1.4;
}
.curri-tag-group:hover { background: #f6f8fb; border-color: #5085b1; }

/* Tables (compare / credit) */
.compare-table, .credit-table {
  width: 100%;
  table-layout: fixed;
  font-size: 0.95rem;
}
.compare-table th, .compare-table td,
.credit-table th, .credit-table td {
  vertical-align: middle;
  text-align: center;
  padding: 0.7rem 0.55rem;
  word-break: keep-all;
  line-height: 1.55;
}
.compare-table thead th, .credit-table thead th {
  background: #f3f6fa;
  color: #29587f;
  font-weight: 700;
  border-color: #d6dde6 !important;
}
.compare-table thead th.col-old {
  background: #f8f9fa;
  color: #6b7886;
  border-color: #d6dde6 !important;
}
.compare-table tbody th, .credit-table tbody th {
  background: #f8f9fa;
  color: #1f2a37;
  font-weight: 600;
}
.compare-table tbody td.old { background: #fcfcfc; color: #6b7886; }
.compare-table tbody td.new { background: #fff; color: #1f2a37; font-weight: 600; }
.credit-table .subtotal-row td {
  background: #f3f6fa; color: #29587f; font-weight: 700;
}
.credit-table .total-row td {
  background: #29587f; color: #fff; font-weight: 700;
}

/* Overview cards (편제 살펴보기) */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
@media (min-width: 768px) {
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
}
.overview-card {
  background: #fff;
  border: 1px solid #d6dde6;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.overview-card-head {
  padding: 0.85rem 1rem;
  background: #f3f6fa;
  border-bottom: 1px solid #d6dde6;
  text-align: center;
}
.overview-badge {
  font-size: 1rem;
  font-weight: 700;
  color: #29587f;
  letter-spacing: -0.2px;
}
.overview-card-body {
  padding: 0.9rem 1rem;
  flex: 1;
}
.overview-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px dashed #eef1f5;
}
.overview-row:last-child { border-bottom: 0; }
.overview-row-stack {
  display: block;
  padding: 0.6rem 0;
}
.overview-row-center { text-align: center; }
.overview-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #29587f;
  margin-bottom: 0.65rem;
  letter-spacing: -0.2px;
}

/* Subject chips & types */
.subject-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}
.subject-chip {
  display: inline-block;
  padding: 0.32rem 0.7rem;
  background: #f6f8fb;
  color: #29587f;
  border: 1px solid #d6dde6;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.subject-chip:hover {
  background: #eaf1f8;
  border-color: #5085b1;
}
.subject-types {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}
.subject-type {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  background: #fff;
  color: #29587f;
  border: 1px solid #29587f;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}
.subject-type-new {
  background: #29587f;
  color: #fff;
}
.subject-desc {
  display: block;
  margin-top: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: #f6f8fb;
  border: 1px solid #eef1f5;
  border-radius: 4px;
  font-size: 0.94rem;
  color: #1f2a37;
  line-height: 1.55;
}
.subject-meta {
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #29587f;
  background: #fff;
  border: 1px solid #d6dde6;
  padding: 0.08rem 0.4rem;
  border-radius: 3px;
  vertical-align: middle;
}

/* Creative experience activity (circular UI) */
.overview-cea .overview-card-body { padding: 2rem 1rem 1.6rem; }
.overview-circles {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}
.circle-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 0 1.6rem;
}
.circle-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 80px;
  width: 32px;
  height: 1px;
  border-top: 1px dashed #c8d3e0;
  transform: translateY(-50%);
}
.circle-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: #5085b1;
  letter-spacing: 1px;
}
.circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #f6f8fb;
  border: 1.5px solid #d6dde6;
  color: #29587f;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  line-height: 1.35;
  letter-spacing: -0.2px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.circle-item:hover .circle {
  background: #29587f;
  color: #ffffff;
  border-color: #29587f;
  transform: translateY(-2px);
}

/* Callout */
.info-callout {
  background: #f6f8fb;
  border-left: 3px solid #29587f;
  border-radius: 0 4px 4px 0;
  padding: 0.7rem 1rem;
  margin: 1rem 0;
  color: #1f2a37;
  font-weight: 500;
  font-size: 0.95rem;
}
.info-callout .label {
  display: inline-block;
  background: #fff;
  color: #29587f;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.12rem 0.5rem;
  border-radius: 3px;
  margin-right: 0.5rem;
  border: 1px solid #d6dde6;
  vertical-align: middle;
}

@media (max-width: 575.98px) {
  .curri-card { margin-left: 0; }
  .stmt-num, .rule-num { font-size: 1.1rem; min-width: 1.8rem; }
  .compare-table, .credit-table { font-size: 0.86rem; }
  .circle-item { padding: 0 0.5rem; }
  .circle-item:not(:last-child)::after { display: none; }
  .circle { width: 95px; height: 95px; font-size: 0.88rem; }
}

/* ============================================================
   Numbered cards (intro/curriculum tab 1)
   - Each numbered statement (01, 02, 03) wrapped as a card
   - Inner curri-card flattened to dividers/bullets
   ============================================================ */
.num-card {
  background: #ffffff;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  margin-top: 1rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.num-card-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.num-card-no {
  flex: 0 0 auto;
  min-width: 2.4rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #29587f;
  line-height: 1.2;
  letter-spacing: -0.2px;
}
.num-card-text {
  flex: 1;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #1f2a37;
}
.num-card-text strong { color: #29587f; font-weight: 700; }

.num-card-body {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px dashed #d6dde6;
  padding-left: calc(2.4rem + 1rem);
}

/* Inside num-card-body: flatten curri-card (no border/bg, dividers + bullet header) */
.num-card-body .curri-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1.1rem 0;
  margin: 0;
}
.num-card-body .curri-card:first-child { padding-top: 0; }
.num-card-body .curri-card + .curri-card {
  border-top: 1px dashed #d6dde6;
  margin-top: 0;
}
.num-card-body .curri-card-title {
  position: relative;
  padding: 0 0 0 14px;
  margin-bottom: 0.7rem;
  border-bottom: none;
  font-size: 1rem;
  color: #29587f;
  font-weight: 700;
}
.num-card-body .curri-card-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: #29587f;
  border-radius: 2px;
}
.num-card-body .curri-card ul {
  padding-left: 1.1rem;
  list-style: disc;
}
.num-card-body .curri-card ul li::marker { color: #29587f; }

@media (max-width: 575.98px) {
  .num-card { padding: 1rem 1rem; }
  .num-card-no { font-size: 1.1rem; min-width: 1.8rem; }
  .num-card-body { padding-left: 0; }
}

/* ============================================================
   Curriculum intro page (intro/curriculum.html)
   Tokens: primary #29587f / accent #5085b1 / line #d6dde6
           surface #fff / muted #f6f8fb / text #1f2a37 / sub #6b7886
   ============================================================ */
.nav-sub .nav-tabs, .nav-sub .nav-tabs * { font-size: max(1em, 14px); }
.nav-sub .nav-tabs small { font-size: 14px; }

/* L1. Section title */
.curri-section { margin-top: 3rem; }
.curri-section-title {
  position: relative;
  text-align: center;
  margin: 0 auto 1.8rem;
  padding-bottom: 0.85rem;
}
.curri-section-title h5 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2a37;
  letter-spacing: -0.2px;
  line-height: 1.4;
}
.curri-section-title .title-sub {
  display: block;
  margin: 0.25rem 0 0;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: #6b7886;
}
.curri-section-title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 32px; height: 3px;
  background: #29587f;
  border-radius: 2px;
}
.curri-section-title .icon-wrap { display: none; }

/* L2. Numbered statement (tab 1 stmt + tab 3 rule head) */
.stmt-list { margin: 0; }
* + .stmt-list { margin-top: 1.8rem; }
.stmt {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.4rem 0;
}
.stmt + .stmt { margin-top: 1.6rem; }
.stmt-num {
  flex: 0 0 auto;
  min-width: 2.4rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #29587f;
  line-height: 1.2;
  letter-spacing: -0.2px;
}
.stmt-text {
  flex: 1;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #1f2a37;
}
.stmt-text strong { color: #29587f; font-weight: 700; }

/* L3. Card */
.curri-card {
  background: #fff;
  border: 1px solid #d6dde6;
  border-radius: 6px;
  padding: 1.1rem 1.3rem;
  margin: 0.9rem 0 0;
}
.curri-card + .curri-card { margin-top: 0.7rem; }
.curri-card-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #29587f;
  padding-bottom: 0.6rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid #eef1f5;
}
.curri-card-title .dot { display: none; }
.curri-card ul { margin-bottom: 0; padding-left: 1.2rem; }
.curri-card ul li {
  margin: 0.45rem 0;
  line-height: 1.75;
  font-size: 1rem;
  color: #1f2a37;
}
.curri-card ul li strong { color: #29587f; font-weight: 700; }

/* Equal-height card variant */
.curri-card-equal {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.curri-card-equal > .curri-card-title { flex: 0 0 auto; }
.curri-card-equal > table { flex: 1 1 auto; height: 100%; }

/* === Tab 3 rule cards === */
.rule-card {
  background: #fff;
  border: 1px solid #d6dde6;
  border-radius: 6px;
  margin-top: 0.7rem;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.rule-card:has(.rule-toggle[aria-expanded="true"]) {
  border-color: #29587f;
}
.rule-card-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
}
.rule-num {
  flex: 0 0 auto;
  min-width: 2.4rem;
  color: #29587f;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.rule-title {
  flex: 1;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #1f2a37;
}
.rule-title strong { color: #29587f; font-weight: 700; }
.rule-title ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.rule-title ul li { margin: 0.35rem 0; line-height: 1.7; }

/* L4. Toggle */
.rule-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 2.4rem;
  background: #fafbfd;
  color: #29587f;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 0;
  border-top: 1px solid #eef1f5;
  transition: background-color 0.15s ease, color 0.15s ease;
  user-select: none;
  text-align: center;
}
.rule-toggle:hover { background: #f3f6fa; }
.rule-toggle[aria-expanded="true"] {
  color: #29587f;
  font-weight: 700;
}
.rule-toggle .chev {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.2s ease;
}
.rule-toggle[aria-expanded="true"] .chev {
  transform: translateY(-25%) rotate(-135deg);
}

/* Rule body / detail */
.rule-detail { border-top: 0; }
.rule-body {
  padding: 1.7rem 1.6rem;
  background: #ffffff;
  border-top: 1px solid #eef1f5;
}
.rule-body > * + * { margin-top: 1.4rem; }
.rule-body > .table-responsive + .rule-detail-title { margin-top: 1.8rem; }
.rule-detail-title {
  display: inline-block;
  font-size: 1.08rem;
  font-weight: 700;
  color: #1f2a37;
  line-height: 1.4;
  margin: 0;
  padding: 0 0.2rem;
  background: linear-gradient(transparent 60%, #fff3a3 60%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.rule-detail-title .dot { display: none; }
.rule-detail ul { margin-bottom: 0; padding-left: 1.2rem; }
.rule-detail ul li { margin: 0.55rem 0; line-height: 1.7; }

/* Tags */
.curri-tag {
  display: inline-block;
  background: #29587f;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.18rem 0.6rem;
  border-radius: 3px;
  margin-right: 0.3rem;
}
.curri-tag-group {
  display: inline-block;
  background: #fff;
  color: #29587f;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.32rem 0.7rem;
  border-radius: 4px;
  margin: 0 0.4rem 0.45rem 0;
  border: 1px solid #d6dde6;
  line-height: 1.4;
}
.curri-tag-group:hover { background: #f6f8fb; border-color: #5085b1; }

/* Tables (compare / credit) */
.compare-table, .credit-table {
  width: 100%;
  table-layout: fixed;
  font-size: 0.95rem;
}
.compare-table th, .compare-table td,
.credit-table th, .credit-table td {
  vertical-align: middle;
  text-align: center;
  padding: 0.7rem 0.55rem;
  word-break: keep-all;
  line-height: 1.55;
}
.compare-table thead th, .credit-table thead th {
  background: #f3f6fa;
  color: #29587f;
  font-weight: 700;
  border-color: #d6dde6 !important;
}
.compare-table thead th.col-old {
  background: #f8f9fa;
  color: #6b7886;
  border-color: #d6dde6 !important;
}
.compare-table tbody th, .credit-table tbody th {
  background: #f8f9fa;
  color: #1f2a37;
  font-weight: 600;
}
.compare-table tbody td.old { background: #fcfcfc; color: #6b7886; }
.compare-table tbody td.new { background: #fff; color: #1f2a37; font-weight: 600; }
.credit-table .subtotal-row td {
  background: #f3f6fa; color: #29587f; font-weight: 700;
}
.credit-table .total-row td {
  background: #29587f; color: #fff; font-weight: 700;
}

/* Overview cards (편제 살펴보기) */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
@media (min-width: 768px) {
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
}
.overview-card {
  background: #fff;
  border: 1px solid #d6dde6;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.overview-card-head {
  padding: 0.85rem 1rem;
  background: #f3f6fa;
  border-bottom: 1px solid #d6dde6;
  text-align: center;
}
.overview-badge {
  font-size: 1rem;
  font-weight: 700;
  color: #29587f;
  letter-spacing: -0.2px;
}
.overview-card-body {
  padding: 0.9rem 1rem;
  flex: 1;
}
.overview-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px dashed #eef1f5;
}
.overview-row:last-child { border-bottom: 0; }
.overview-row-stack {
  display: block;
  padding: 0.6rem 0;
}
.overview-row-center { text-align: center; }
.overview-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #29587f;
  margin-bottom: 0.65rem;
  letter-spacing: -0.2px;
}

/* Subject chips & types */
.subject-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}
.subject-chip {
  display: inline-block;
  padding: 0.32rem 0.7rem;
  background: #f6f8fb;
  color: #29587f;
  border: 1px solid #d6dde6;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.subject-chip:hover {
  background: #eaf1f8;
  border-color: #5085b1;
}
.subject-types {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}
.subject-type {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  background: #fff;
  color: #29587f;
  border: 1px solid #29587f;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}
.subject-type-new {
  background: #29587f;
  color: #fff;
}
.subject-desc {
  display: block;
  margin-top: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: #f6f8fb;
  border: 1px solid #eef1f5;
  border-radius: 4px;
  font-size: 0.94rem;
  color: #1f2a37;
  line-height: 1.55;
}
.subject-meta {
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #29587f;
  background: #fff;
  border: 1px solid #d6dde6;
  padding: 0.08rem 0.4rem;
  border-radius: 3px;
  vertical-align: middle;
}

/* Creative experience activity (circular UI) */
.overview-cea .overview-card-body { padding: 2rem 1rem 1.6rem; }
.overview-circles {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}
.circle-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 0 1.6rem;
}
.circle-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 80px;
  width: 32px;
  height: 1px;
  border-top: 1px dashed #c8d3e0;
  transform: translateY(-50%);
}
.circle-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: #5085b1;
  letter-spacing: 1px;
}
.circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #f6f8fb;
  border: 1.5px solid #d6dde6;
  color: #29587f;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  line-height: 1.35;
  letter-spacing: -0.2px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.circle-item:hover .circle {
  background: #29587f;
  color: #ffffff;
  border-color: #29587f;
  transform: translateY(-2px);
}

/* Callout */
.info-callout {
  background: #f6f8fb;
  border-left: 3px solid #29587f;
  border-radius: 0 4px 4px 0;
  padding: 0.7rem 1rem;
  margin: 1rem 0;
  color: #1f2a37;
  font-weight: 500;
  font-size: 0.95rem;
}
.info-callout .label {
  display: inline-block;
  background: #fff;
  color: #29587f;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.12rem 0.5rem;
  border-radius: 3px;
  margin-right: 0.5rem;
  border: 1px solid #d6dde6;
  vertical-align: middle;
}

@media (max-width: 575.98px) {
  .curri-card { margin-left: 0; }
  .stmt-num, .rule-num { font-size: 1.1rem; min-width: 1.8rem; }
  .compare-table, .credit-table { font-size: 0.86rem; }
  .circle-item { padding: 0 0.5rem; }
  .circle-item:not(:last-child)::after { display: none; }
  .circle { width: 95px; height: 95px; font-size: 0.88rem; }
}

.navbar-bg-style {
  background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
}

.unified-card-stepper .nav-pills {
  display: flex;
  background-color: #f1f3f5;
  padding: 8px;
  border-radius: 12px;
  gap: 8px;
}

.unified-card-stepper .nav-item {
  flex: 1;
  display: flex;
}

.step-item-box {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 80px !important;
  padding: 10px 15px !important;
  background-color: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  color: #6c757d !important;
  transition: all 0.2s ease;
}

.step-item-box.active {
  background-color: #ffffff !important;
  color: #0d6efd !important;
  border-color: #dee2e6 !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
}

.step-item-box.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.subject-name {
  white-space: normal;
  word-break: break-all;
}

/* 기초데이터 선택 토글 */
.data-source-seg {
  display: flex;
  gap: 4px;
  padding: 5px;
  background-color: #eef2f7;
  border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
}
.data-source-seg .seg-item {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  color: #64748b;
  background-color: transparent;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.data-source-seg .seg-item > i {
  font-size: 1.1rem;
}
.data-source-seg .seg-item:hover {
  color: #29587f;
  background-color: rgba(255, 255, 255, .6);
  text-decoration: none;
}
.data-source-seg .seg-item:active {
  transform: scale(0.98);
}
.data-source-seg .seg-item.active,
.data-source-seg .seg-item.active:hover {
  color: #29587f;
  font-weight: 700;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .12), 0 0 0 1px rgba(41, 88, 127, .08);
}
@media (max-width: 575.98px) {
  .data-source-seg .seg-item .seg-label { font-size: 0.85rem; }

  /* 분반관리·시간표관리 단계 탭(stepper) 모바일 대응 */
  .unified-card-stepper .nav-pills {
    flex-direction: column;
    gap: 6px;
  }
  .unified-card-stepper .nav-item {
    flex: 1 1 auto;
    width: 100%;
  }
  .step-item-box {
    min-height: 0 !important;
    justify-content: flex-start;
    padding: 12px 14px !important;
  }
  .step-content-wrapper {
    justify-content: flex-start;
    width: 100%;
  }

  .step-text-group .desc {
    white-space: normal;
  }
}

.field-help {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 0;
  padding: 9px 13px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #3f5169;
  background: #f1f6fc;
  border: 1px solid #dbe7f5;
  border-left: 3px solid #4b8fe8;
  border-radius: 6px;
}
.field-help > i {
  flex: 0 0 auto;
  margin-top: 1px;
  font-size: 1.05rem;
  color: #2f6fce;
}

.tooltip-inner {
  font-size: 0.875rem;
  line-height: 1.55;
  max-width: 300px;
  text-align: left;
  padding: 9px 12px;
}

.teacher-list-pane {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: #fff;
  max-height: 70vh;
  overflow-y: auto;
}
.teacher-list-pane .tl-head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13px;
  color: #495057;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}
.teacher-list-pane .tl-head-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.teacher-list-pane .tl-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 8px;
  font-weight: 700;
  font-size: 12px;
  color: #0d6efd;
  background: #e7f1ff;
  border-radius: 999px;
}
.teacher-list-pane .tl-search {
  position: relative;
  margin-top: 8px;
}
.teacher-list-pane .tl-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #adb5bd;
  pointer-events: none;
}
.teacher-list-pane .tl-search-input {
  width: 100%;
  padding: 7px 30px 7px 30px;
  font-size: 13px;
  font-weight: 400;
  color: #212529;
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 6px;
}
.teacher-list-pane .tl-search-input:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}
.teacher-list-pane .tl-search-input:focus + .tl-search-clear,
.teacher-list-pane .tl-search-clear { color: #adb5bd; }
.teacher-list-pane .tl-search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  font-size: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.teacher-list-pane .tl-search-clear:hover { color: #495057; }
.teacher-list-pane .tl-search.has-text .tl-search-clear { display: flex; }
.teacher-list-pane .tl-noresult {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 14px;
  font-size: 13px;
  color: #adb5bd;
  text-align: center;
}
.teacher-list-pane .tl-noresult i { font-size: 20px; }
.teacher-list-pane .tl-item {
  position: relative;
  display: block;
  padding: 11px 30px 11px 14px;
  border-left: 3px solid transparent;
  border-bottom: 1px solid #f1f3f5;
  color: #212529;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.teacher-list-pane .tl-item:last-child { border-bottom: 0; }
/* 우측 화살표(선택 가능 표시) */
.teacher-list-pane .tl-item::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid #c2ccd6;
  border-right: 2px solid #c2ccd6;
  transform: translateY(-50%) rotate(45deg);
  transition: border-color 0.12s ease;
}
.teacher-list-pane .tl-item:hover {
  background: #f4f8ff;
  color: #212529;
  text-decoration: none;
}
.teacher-list-pane .tl-item:hover::after { border-color: #8aa6c4; }
.teacher-list-pane .tl-item.active {
  background: #e7f1ff;
  border-left-color: #0d6efd;
  color: #0d6efd;
  font-weight: 600;
}
.teacher-list-pane .tl-item.active::after { border-color: #0d6efd; }
.teacher-list-pane .tl-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  white-space: nowrap;
}
.teacher-list-pane .tl-name .tl-name-text {
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}
.teacher-list-pane .tl-name .teacher-subjects {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #4b6584;
  background: #eef2f7;
}
.teacher-list-pane .tl-meta {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 13px;
  color: #6c757d;
  line-height: 1.4;
  margin-top: 4px;
  overflow: hidden;
  white-space: nowrap;
}
.teacher-list-pane .tl-meta .teacher-slot-hours {
  flex: 0 0 auto;
  font-size: 12px;
  color: #868e96;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.teacher-list-pane .tl-item.active .tl-name .teacher-subjects { background: #dbe8fb; color: #2f6fd0; }
.teacher-list-pane .tl-item.active .tl-meta { color: #4b8fe8; }
.teacher-list-pane .tl-item.active .tl-meta .teacher-slot-hours { color: #4b8fe8; }
.teacher-list-pane .tl-empty {
  padding: 16px;
  text-align: center;
  color: #6c757d;
  font-size: 13px;
}
.teacher-list-pane ul { list-style: none; margin: 0; padding: 0; }

.step-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.step-number {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background-color: #dee2e6;
  color: #495057;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.step-item-box.active .step-number {
  background-color: #0d6efd;
  color: #ffffff;
}

.step-text-group {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step-text-group .title {
  font-size: 1rem;
  line-height: 1.2;
  display: block;
}

.step-text-group .desc {
  font-size: 0.8rem;
  opacity: 0.7;
  white-space: nowrap;
}

/* 이전 버튼 비활성화 스타일 */
.btn.disabled, .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bottom-center-btn.btn-block {
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.unified-card-stepper .nav-link.active {
  background-color: #ffffff !important;
  border: 1px solid #dee2e6 !important;
  border-bottom: 3px solid #0d6efd !important;
  transform: translateY(-2px);
}

.next-process, .prev-process {
  min-width: 100px;
  font-weight: 600;
}

/* breadcrumb — 어떤 cascade(tab-content 내부 등)에서도 일관된 글로벌 사이즈 적용 */
.breadcrumb,
.breadcrumb *,
nav[aria-label="breadcrumb"] .breadcrumb,
nav[aria-label="breadcrumb"] .breadcrumb * {
  font-size: 16px !important;
  letter-spacing: -0.025em !important;
}
.breadcrumb {
  margin-bottom: 2px;
}
.breadcrumb .breadcrumb-item,
.breadcrumb .breadcrumb-item a,
.breadcrumb .breadcrumb-item.active {
  color: #505050;
}


/* sticky footer — body flex column 으로 만들어 footer를 viewport 바닥에 고정
   컨텐츠가 짧으면 footer가 화면 하단에, 길면 컨텐츠 다음에 자연스럽게 위치 */
html, body {
  min-height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body > #page-footer {
  margin-top: auto;
}

/*footer*/
#page-footer {
  background-color: #f1f4f9 !important;
  color: #475569 !important;
  padding: 60px 0 40px;
  border-top: 1px solid rgba(51, 65, 85, 0.1);
}

#page-footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

#page-footer .footer-brand img {
  height: 40px;
  filter: none;
  opacity: 1;
}

#page-footer .footer-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  margin-left: 25px;
  transition: all 0.2s ease;
}

#page-footer .footer-links a:hover {
  text-decoration: underline;
}

#page-footer .footer-links a.privacy {
  color: #0f172a;
  font-weight: 700;
}

#page-footer hr {
  border: 0;
  border-top: 1px solid #cbd5e1;
  margin-bottom: 35px;
}

#page-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

#page-footer address {
  font-style: normal;
  font-size: 14px;
  color: #334155;
  margin-bottom: 8px;
}

#page-footer .contact {
  font-size: 14px;
  margin-bottom: 15px;
}

#page-footer .contact b {
  color: #94a3b8;
  margin-right: 8px;
  font-weight: 500;
}

#page-footer .copyright {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

#page-footer .footer-family select {
  background-color: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  min-width: 220px;
  cursor: pointer;
  transition: border-color 0.2s;
}

#page-footer .footer-family select:hover {
  border-color: #94a3b8;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  #page-footer .footer-top,
  #page-footer .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
  }
  #page-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    text-align: center;
  }
  #page-footer .footer-links a {
    margin: 0;
  }
  #page-footer .footer-brand {
    width: 100%;
    text-align: center;
  }
  #page-footer .footer-brand img {
    margin: 0 auto;
  }
  #page-footer .footer-info {
    width: 100%;
    text-align: center;
  }
  #page-footer address,
  #page-footer .contact,
  #page-footer .copyright {
    text-align: center;
  }
}

input.semester{
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-align: right;
}

/* 컨설턴트 배정 (manage/consultant/edit) */
.consultant-card       { border-radius: 8px; transition: border-color 0.2s; }
.consultant-inner      { background-color: #f8f9fa !important; border-color: #f1f3f5 !important; }
.consultant-label      { font-size: 0.85rem; font-weight: 500; width: 75px; }
.consultant-value      { font-size: 0.95rem; text-align: right; }
.btn-edit-toggle       { font-size: 0.75rem; padding: 0.2rem 0.5rem; }
.btn-save-toggle       { font-size: 0.75rem; padding: 0.2rem 0.6rem; background-color: #4b5563; border-color: #4b5563; }

/* 튜토리얼 모달 */
#tutorial-modal { z-index: 10500; }
/* 백드롭이 main-popup(z-index:9999) 위로 오도록 — 튜토리얼 모달이 열린 동안만 CSS로 정렬 */
body:has(#tutorial-modal.show) .modal-backdrop { z-index: 10499; }
#tutorial-modal:focus,
#tutorial-modal:focus-visible { z-index: 10500 !important; }

#tutorial-modal .modal-dialog {
  max-width: 1280px;
  width: calc(100% - 1rem);
}
@media (max-width: 768px) {
  #tutorial-modal .modal-dialog {
    width: auto;
  }
}

/* iframe 로딩 중 검정화면 대신 YouTube 썸네일을 컨테이너 배경으로 노출 */
#tutorial-modal .video-container {
  background-color: #000;
  background-image: url('https://i.ytimg.com/vi/D4IK_328THI/hqdefault.jpg');
  background-size: cover;
  background-position: center;
}
#tutorial-modal .tutorial-video-iframe {
  opacity: 0;
  transition: opacity .2s ease-out;
}
#tutorial-modal .tutorial-video-iframe.is-loaded {
  opacity: 1;
}

#tutorial-btn {
  animation: tutorial-pulse 2s infinite;
}

/* 모달 열림 동안 버튼/말풍선 애니메이션 정지 (합성 레이어 잔존 방지) */
body.modal-open #tutorial-btn,
body.modal-open .tutorial-btn-hint {
  animation: none;
}

.tutorial-btn-wrap {
  position: relative;
  display: inline-block;
}

.tutorial-btn-hint {
  position: absolute;
  bottom: calc(100% + 13px);
  left: 50%;
  transform: translateX(-50%);
  background: #dc3545;
  color: #fff;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 14px;
  white-space: nowrap;
  pointer-events: none;
  cursor: default;
  user-select: none;
  animation: tutorial-hint-float 2.4s ease-in-out infinite;
}
.tutorial-btn-hint::after {
  content: '';
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid #dc3545;
}

/* 말풍선을 버튼 아래쪽으로 — 화살표가 위쪽(버튼)을 향함 */
.tutorial-btn-wrap--below .tutorial-btn-hint {
  bottom: auto;
  top: calc(100% + 13px);
  animation-name: tutorial-hint-float-below;
}
.tutorial-btn-wrap--below .tutorial-btn-hint::after {
  top: auto;
  bottom: 100%;
  border-top: none;
  border-bottom: 7px solid #dc3545;
}

@keyframes tutorial-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(23, 162, 184, 0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(23, 162, 184, 0); }
}
@keyframes tutorial-hint-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-6px); }
}
@keyframes tutorial-hint-float-below {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

.input-checkbox input[type="checkbox"],
input[type="checkbox"].input-checkbox {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  vertical-align: middle;
  border: 1.5px solid #c4ccd6;
  border-radius: 4px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center 47%;
  background-size: 14px 14px;
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.input-checkbox input[type="checkbox"]:hover,
input[type="checkbox"].input-checkbox:hover {
  border-color: #29587f;
}

.input-checkbox input[type="checkbox"]:focus,
.input-checkbox input[type="checkbox"]:focus-visible,
input[type="checkbox"].input-checkbox:focus,
input[type="checkbox"].input-checkbox:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(41, 88, 127, .2);
}

.input-checkbox input[type="checkbox"]:checked,
input[type="checkbox"].input-checkbox:checked {
  border-color: #29587f;
  background-color: #29587f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.8 8.6l3.4 3.4L13.2 4.8'/%3E%3C/svg%3E");
}

.input-checkbox input[type="checkbox"]:disabled,
input[type="checkbox"].input-checkbox:disabled {
  border-color: #e2e6ec;
  background-color: #f2f4f7;
  cursor: not-allowed;
  opacity: .65;
}

.input-checkbox input[type="checkbox"]:disabled:checked,
input[type="checkbox"].input-checkbox:disabled:checked {
  border-color: #a5b3c2;
  background-color: #a5b3c2;
}

.input-radio input[type="radio"],
.input-checkbox input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  vertical-align: middle;
  border: 1.5px solid #c4ccd6;
  border-radius: 50%;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.input-radio input[type="radio"]:hover,
.input-checkbox input[type="radio"]:hover {
  border-color: #29587f;
}

.input-radio input[type="radio"]:focus,
.input-radio input[type="radio"]:focus-visible,
.input-checkbox input[type="radio"]:focus,
.input-checkbox input[type="radio"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(41, 88, 127, .2);
}

.input-radio input[type="radio"]:checked,
.input-checkbox input[type="radio"]:checked {
  border-color: #29587f;
  background-color: #29587f;
  background-image: radial-gradient(circle at center, #fff 0, #fff 3.5px, transparent 4px);
}

.input-radio input[type="radio"]:disabled,
.input-checkbox input[type="radio"]:disabled {
  border-color: #e2e6ec;
  background-color: #f2f4f7;
  cursor: not-allowed;
  opacity: .65;
}

.input-radio input[type="radio"]:disabled:checked,
.input-checkbox input[type="radio"]:disabled:checked {
  border-color: #a5b3c2;
  background-color: #a5b3c2;
}

/* 분반 조정 모달 — 분반 row 교차 배경(zebra) */
#simulator-view #result-table tbody tr:nth-child(even) > td {
  background-color: #f5f8fc;
}

/* ============================================================
   분반/시간표 관리 — 템플릿 인라인 <style> 통합 (구 timetable-manage.css 포함)
   - 페이지 인라인 스타일을 지양하고 이 파일 한 곳에서 관리.
   - 아래 "공통 베이스" → "페이지 고유" 순서로 두어, 고유 규칙이
     베이스를 덮어쓰던 기존 cascade 동작을 그대로 유지한다.
   ============================================================ */

/* ===== 공통 베이스 ===== */

/* ----- 빈 상태 안내 (empty-state) : timetable-config/list, timetable/list, class-division/step2·3 ----- */
.empty-state {
  border: 1px solid #e3e8ef; border-radius: 12px; background: #f8fafc;
  padding: 28px 24px; text-align: center;
}
.empty-state .es-icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; color: #4b8fe8;
  background: #e7f1ff; border-radius: 50%;
}
.empty-state .es-title { font-size: 1.05rem; font-weight: 700; color: #1a3d5c; margin: 0 0 6px; }
.empty-state .es-desc { font-size: 0.92rem; color: #5a6b80; margin: 0 0 18px; line-height: 1.6; }
.empty-state .es-desc strong { color: #2f6fce; }
.empty-state .es-desc a { color: #2f6fce; font-weight: 700; text-decoration: underline; }
.empty-state .es-reasons {
  max-width: 760px; margin: 0 auto 20px; padding: 16px 20px;
  text-align: left; background: #fff; border: 1px solid #e3e8ef; border-radius: 10px;
}
.empty-state .es-reasons-head {
  font-size: 0.85rem; font-weight: 700; color: #3f5169; margin: 0 0 10px;
  display: flex; align-items: center; gap: 6px;
}
.empty-state .es-reasons-head i { color: #e0a800; }
.empty-state .es-reasons ul { margin: 0; padding-left: 18px; }
.empty-state .es-reasons li { font-size: 0.88rem; color: #5a6b80; line-height: 1.7; }
.empty-state .es-reasons li strong { color: #1a3d5c; }
.empty-state .es-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* 교사 목록 패널(약 220px)에 맞춘 컴팩트 변형 — 패딩·폰트 축소 */
.empty-state.empty-state--compact { padding: 18px 12px; }
.empty-state.empty-state--compact .es-icon { width: 44px; height: 44px; margin-bottom: 10px; font-size: 1.3rem; }
.empty-state.empty-state--compact .es-title { font-size: 0.95rem; margin-bottom: 5px; }
.empty-state.empty-state--compact .es-desc { font-size: 0.82rem; margin-bottom: 14px; }
.empty-state.empty-state--compact .es-actions .btn { font-size: 0.82rem; padding: 4px 10px; }

/* ----- 구분선 (안내 영역과 작업 영역 분리) : teacher-assignment/list, timetable/list ----- */
.tt-section-divider {
  height: 1px; border: 0; background: #e3e8ef;
  margin: 28px 0 16px;
}

/* ----- 좌우 분할 레이아웃 (교사 목록 패널 220px + 본문) : teacher-assignment/list, timetable/list ----- */
.timetable-layout, .ta-layout { display: flex; gap: 32px; align-items: flex-start; }
.teacher-pane, .ta-teacher-pane { flex: 0 0 220px; }
.timetable-pane, .ta-grid-pane { flex: 1 1 auto; min-width: 0; }

/* ----- 선택 교사 제목 : teacher-assignment/list(.ta-teacher-title), timetable/list(.selected-teacher-title) ----- */
.selected-teacher-title, .ta-teacher-title { font-size: 22px; font-weight: 700; color: #212529; }
.selected-teacher-title .name, .ta-teacher-title .name { color: #0d6efd; }

/* ----- 시간표형 그리드 공통 베이스 : timetable/list(.timetable-grid), teacher-assignment/list(.ta-grid) ----- */
.timetable-grid, .ta-grid { width: 100%; table-layout: fixed; border-collapse: collapse; }
.timetable-grid th, .timetable-grid td,
.ta-grid th, .ta-grid td {
  border: 1px solid #dee2e6;
  text-align: center;
  vertical-align: middle;
  padding: 5px 4px;
  font-size: 13px;
  height: 46px;
}
.timetable-grid thead th, .ta-grid thead th { background: #f8f9fa; font-weight: 600; }

/* ----- 그라디언트 생성 CTA 버튼 : timetable/list(#btn-generate-test), class-division/step4(#btn-step4-generate) ----- */
.btn-generate-cta {
  display: block; width: 100%;
  padding: 22px 24px; margin-bottom: 8px;
  border: none; border-radius: 12px; text-align: center;
  background: linear-gradient(135deg, #29587f 0%, #3a73a3 55%, #5b9bd5 100%);
  background-size: 180% auto;
  color: #fff;
  animation: gen-pulse 2.4s ease-out infinite;
  transition: background-position 0.5s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-generate-cta:hover:not(:disabled) {
  color: #fff;
  background-position: right center;
  transform: translateY(-2px);
  animation: none;
  box-shadow: 0 6px 18px rgba(41, 88, 127, 0.35);
}
.btn-generate-cta:active:not(:disabled) { transform: translateY(0); }
.btn-generate-cta:disabled { opacity: 0.6; animation: none; box-shadow: 0 3px 12px rgba(41, 88, 127, 0.2); }
.btn-generate-cta .b4-title { display: block; font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.btn-generate-cta .b4-title .bi-stars {
  display: inline-block; margin-right: 6px;
  animation: gen-twinkle 1.6s ease-in-out infinite;
}
@keyframes gen-twinkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.6; transform: scale(1.25) rotate(12deg); }
}
@keyframes gen-pulse {
  0%   { box-shadow: 0 3px 12px rgba(41, 88, 127, 0.25), 0 0 0 0 rgba(41, 88, 127, 0.45); }
  70%  { box-shadow: 0 3px 12px rgba(41, 88, 127, 0.25), 0 0 0 12px rgba(41, 88, 127, 0); }
  100% { box-shadow: 0 3px 12px rgba(41, 88, 127, 0.25), 0 0 0 0 rgba(41, 88, 127, 0); }
}

/* ===== teacher-assignment/list 고유 ===== */
.teacher-list-pane { max-height: 560px; }
.ta-teacher-title { margin-bottom: 10px; }
.ta-save-bar {
  position: sticky; bottom: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding: 12px 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(2px);
  border-top: 1px solid #e9ecef;
  border-radius: 0 0 8px 8px;
}
.ta-save-bar .ta-save-hint { font-size: 13px; color: #6c757d; }
.ta-save-bar .btn { min-width: 140px; }
.ta-grid { margin-bottom: 0; }
.ta-grid tbody th { width: 70px; background: #f8f9fa; font-weight: 600; }
.ta-grid td {
  position: relative;
  cursor: pointer; user-select: none; background: #fff;
  transition: background 0.12s ease;
}
.ta-grid td:hover { background: #f4f8ff; }
.ta-grid td.blocked { background-color: #fff5f6; }
.ta-grid td .ta-block-x {
  display: none;
  position: absolute; inset: 0;
  align-items: center; justify-content: center;
  font-size: 1.25rem; line-height: 1;
  color: #e5484d; pointer-events: none;
}
.ta-grid td.blocked .ta-block-x { display: flex; }
.ta-grid .ta-cell-period {
  color: #b9c0c7; font-size: 14px; font-weight: 400; pointer-events: none;
}
.ta-grid td.blocked .ta-cell-period { display: none; }

/* ===== subject-assignment/list 고유 ===== */
.sa-grid td, .sa-grid th { text-align: center; vertical-align: middle; }
.sa-grid td { padding-top: 10px; padding-bottom: 10px; }
.sa-grid th { white-space: nowrap; }
.sa-grid select {
  min-width: 110px;
  height: 36px;
  font-size: inherit;
  text-align: center;
  text-align-last: center;
}
.sa-grid .select2-container { min-width: 110px; }
.sa-grid .select2-container .select2-selection--single {
  height: 36px;
  display: flex;
  align-items: center;
}
.sa-grid .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 1.2;
  padding-right: 24px;
  flex: 1;
}
.sa-grid .select2-container .select2-selection--single .select2-selection__arrow { height: 34px; }
.sa-grid th.sa-col-subject, .sa-grid td.sa-col-subject {
  background-color: #eef5ff;
  box-shadow: inset 1px 0 0 #cfe0f7, inset -1px 0 0 #cfe0f7;
}
.field-help { align-items: center; }
.sa-filter { margin-bottom: 18px; }
.sa-filter .login-select-tabs { margin: 0; }
.sa-grade-tabs {
  border-bottom: 1px solid #e6e9ef;
  margin-bottom: 14px;
  flex-wrap: nowrap;
}
.sa-grade-tabs .nav-item { margin-bottom: -1px; }
.sa-grade-tabs .nav-link {
  padding: 10px 22px;
  font-size: 16px; font-weight: 700; color: #98a2b3;
  border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  background: transparent;
  transition: color .12s ease, border-color .12s ease;
}
.sa-grade-tabs .nav-link:hover { color: #29587f; }
.sa-grade-tabs .nav-link.active { color: #29587f; border-bottom-color: #29587f; }
.sa-day-tabs .nav-link { font-size: 13px; padding: 7px 10px; }

/* ===== teacher-instructional-hours/list 고유 ===== */
.hours-grid { border-collapse: separate; border-spacing: 0; }
.hours-grid th, .hours-grid td {
  text-align: center; vertical-align: middle;
  padding: 4px 6px; border: 1px solid #dee2e6; white-space: nowrap;
}
.hours-grid thead th { background: #f8f9fa; position: sticky; top: 0; z-index: 3; }
.hours-grid thead tr:nth-child(2) th { top: 31px; min-width: 52px; }
.hours-grid td.cell-editable { min-width: 52px; }
.hours-grid {
  --col-seq-w: 48px;
  --col-subject-w: 180px;
  --col-teacher-w: 110px;
}
.hours-grid .col-seq,
.hours-grid .col-subject,
.hours-grid .col-teacher {
  position: sticky; background: #fff; z-index: 2;
  text-align: center; vertical-align: middle;
  overflow: hidden; text-overflow: ellipsis;
}
.hours-grid .col-seq {
  left: 0;
  width: var(--col-seq-w);
  min-width: var(--col-seq-w);
  max-width: var(--col-seq-w);
  color: #6c757d;
}
.hours-grid .col-subject {
  left: var(--col-seq-w);
  width: var(--col-subject-w);
  min-width: var(--col-subject-w);
  max-width: var(--col-subject-w);
}
.hours-grid .col-teacher {
  left: calc(var(--col-seq-w) + var(--col-subject-w));
  max-width: 96px;
}
.hours-grid thead .col-seq,
.hours-grid thead .col-subject,
.hours-grid thead .col-teacher { z-index: 4; background: #f8f9fa; }
.hours-grid .grade-sep { border-left: 2px solid #6c757d; }

/* 학년별 배경색 구분 (1학년: 파랑 / 2학년: 초록 / 3학년: 주황) */
.hours-grid tbody td[data-grade="1"] { background-color: #f7faff; }
.hours-grid tbody td[data-grade="2"] { background-color: #f6fcf8; }
.hours-grid tbody td[data-grade="3"] { background-color: #fffbf5; }
.hours-grid thead th[data-grade="1"] { background-color: #eaf2fc; }
.hours-grid thead th[data-grade="2"] { background-color: #ecf7ee; }
.hours-grid thead th[data-grade="3"] { background-color: #fdf1e4; }
.hours-grid tfoot th[data-grade="1"] { background-color: #e6eef8; }
.hours-grid tfoot th[data-grade="2"] { background-color: #e7f2ea; }
.hours-grid tfoot th[data-grade="3"] { background-color: #f9ecdc; }

.hours-grid .cell-empty { color: #ced4da; }
.hours-scroll { min-height: 600px; max-height: 75vh; overflow: auto; }
.hours-grid .cell-editable { cursor: cell; }
.hours-grid .cell-editable:hover { background: #fff7e6; }
.hours-grid .cell-input {
  width: 100%; min-width: 44px; padding: 0 4px;
  border: 1px solid #0d6efd; border-radius: 2px;
  text-align: center; font-size: 14px; box-sizing: border-box;
}
.hours-grid .cell-saving { background: #e7f1ff; }
.hours-grid tbody tr {
  content-visibility: auto;
  contain-intrinsic-size: auto 36px;
}
.hours-grid .col-total {
  position: sticky; right: 0;
  background: #fff; z-index: 2;
  text-align: center; min-width: 60px; font-weight: 600;
}
.hours-grid thead .col-total { z-index: 4; background: #f8f9fa; }
.hours-grid tfoot th {
  position: sticky; bottom: 0;
  background: #e9ecef; font-weight: 600; z-index: 3;
  text-align: center;
}
.hours-grid tfoot th.col-seq,
.hours-grid tfoot th.col-subject,
.hours-grid tfoot th.col-teacher,
.hours-grid tfoot th.col-total { z-index: 5; background: #e9ecef; }
#newHoursModal .select2-container { width: 100% !important; }
#hoursContextMenu {
  position: fixed; display: none; z-index: 9999;
  background: #fff; border: 1px solid #ced4da;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); border-radius: 4px;
  padding: 4px 0; min-width: 160px; font-size: 13px;
}
#hoursContextMenu .menu-header {
  padding: 6px 14px; font-weight: 600;
  border-bottom: 1px solid #e9ecef; color: #495057; white-space: nowrap;
  max-width: 280px; overflow: hidden; text-overflow: ellipsis;
}
#hoursContextMenu .menu-item {
  padding: 6px 14px; cursor: pointer;
}
#hoursContextMenu .menu-item:hover { background: #f8f9fa; }
#hoursContextMenu .menu-item.danger { color: #dc3545; }
#hoursContextMenu .menu-item.danger:hover { background: #fdecea; }
.hours-grid tbody tr.row-context-active { background: #fff7e6; }
.hours-grid tbody tr.row-context-active .col-seq,
.hours-grid tbody tr.row-context-active .col-subject,
.hours-grid tbody tr.row-context-active .col-teacher { background: #fff7e6; }

/* ===== timetable/list 고유 ===== */
.timetable-layout { margin-bottom: 32px; }
.teacher-list-pane .teacher-score-badge { font-weight: 700; font-size: 12px; }
.teacher-list-pane .teacher-score-badge.score-low { color: #d63384; }
.teacher-list-pane .teacher-score-badge.score-mid { color: #fd7e14; }
.teacher-list-pane .teacher-score-badge.score-high { color: #198754; }
.timetable-pane { padding-top: 20px; }
.timetable-grid .period-col {
  width: 70px;
  background: #f8f9fa;
  font-weight: 600;
}
.timetable-grid td.cell-filled {
  background: #f1f8ff;
}
.timetable-grid .cell-subject { font-size: 14px; font-weight: 600; line-height: 1.25; }
.timetable-grid .cell-meta { font-size: 13px; color: #6c757d; line-height: 1.25; }
.timetable-grid .cell-empty { color: #ced4da; }
.config-semester-info {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 13.5px; color: #3f5169; line-height: 1.5;
  padding: 10px 14px; margin-bottom: 12px;
  background: #f1f6fc;
  border: 1px solid #dbe7f5;
  border-left: 3px solid #4b8fe8;
  border-radius: 6px;
}
.config-semester-info > i { color: #2f6fce; font-size: 1.05rem; }
.config-semester-info strong {
  color: #084298; font-weight: 700;
  padding: 1px 8px; background: #e7f1ff; border-radius: 4px;
}
.config-semester-info .cfg-sub { color: #6c757d; }
.selected-teacher-score { font-size: 13px; color: #495057; }
.selected-teacher-score .score-value { font-weight: 700; margin: 0 4px; }
.selected-teacher-score .score-low { color: #d63384; }
.selected-teacher-score .score-mid { color: #fd7e14; }
.selected-teacher-score .score-high { color: #198754; }
.selected-teacher-score .score-detail { color: #6c757d; }
.score-guide {
  font-size: 12px; color: #6c757d; padding: 2px 2px; margin-bottom: 4px;
}
.score-guide strong { color: #495057; }
/* 점수·기피·연강 정보 임시 숨김 (요청에 따라 우선 비표시 — 되돌리려면 이 블록만 제거) */
.score-guide,
.teacher-score-badge,
#selected-teacher-score { display: none !important; }
.tt-generate-bar { margin-bottom: 24px; }
.tt-generate-bar .field-help { margin-bottom: 12px !important; }

/* ===== timetable-config/edit 고유 ===== */
.config-form .form-group { margin-bottom: 1rem; }
.hours-table th, .hours-table td { text-align: center; vertical-align: middle; }
.hours-table input { text-align: center; }
.label-required::after { content: ' *'; color: #dc3545; }

/* ===== class-division/step/2 고유 ===== */
/* Bootstrap .custom-file 을 기존 드랍존 형태로 스킨.
   네이티브 input[type=file]이 클릭·드롭을 모두 처리하므로 별도 JS가 필요 없다. */
.excel-dropzone.custom-file { height: auto; }
.excel-dropzone .custom-file-input {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; margin: 0; cursor: pointer;
}
.excel-dropzone .custom-file-label {
  position: static; height: auto; min-height: 168px; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px dashed #cfd8e3; border-radius: 12px;
  background: #f8fafc;
  padding: 30px 20px; text-align: center;
  color: #3f5169; font-weight: 400; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.excel-dropzone .custom-file-label::after { content: none; }
.excel-dropzone:hover .custom-file-label,
.excel-dropzone .custom-file-input:focus ~ .custom-file-label {
  border-color: #4b8fe8; background: #f1f6fc;
}

/* ── 빈 상태 ── */
.excel-dropzone .dz-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.excel-dropzone .dz-icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin-bottom: 14px;
  border-radius: 50%;
  background: #e7f0fd; color: #4b8fe8;
}
.excel-dropzone .dz-icon { font-size: 1.8rem; line-height: 1; }
.excel-dropzone .dz-text { margin: 0 0 4px; color: #2f3f57; font-size: 0.98rem; }
.excel-dropzone .dz-text strong { color: #2a6fd6; }
.excel-dropzone .dz-hint {
  display: inline-flex; align-items: center; gap: 4px;
  margin: 0 0 16px; color: #98a4b3; font-size: 0.82rem;
}
.excel-dropzone .dz-fakebtn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 6px;
  background: #fff; border: 1px solid #cdd9e8; color: #2a6fd6;
  font-size: 0.86rem; font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.excel-dropzone:hover .dz-fakebtn { background: #eef5fe; border-color: #4b8fe8; }

/* ── 드래그 오버 상태 ── */
.excel-dropzone.is-dragover .custom-file-label {
  border-style: solid; border-color: #4b8fe8; background: #eaf3fe;
}

/* ── 파일 선택 상태 ── */
.excel-dropzone .dz-filename {
  display: none; align-items: center; gap: 12px;
  width: 100%; max-width: 440px;
  padding: 12px 14px; border-radius: 8px;
  background: #fff; border: 1px solid #d7e3ee;
  text-align: left;
}
.excel-dropzone .dz-file-tile {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  color: #1d6f42;
}
.excel-dropzone .dz-file-tile i { font-size: 1.7rem; line-height: 1; }
.excel-dropzone .dz-file-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.excel-dropzone .dz-filename-text {
  font-weight: 600; color: #2f3f57; font-size: 0.92rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.excel-dropzone .dz-file-sub {
  display: inline-flex; align-items: center; gap: 4px;
  color: #98a4b3; font-size: 0.78rem; font-weight: 400;
}
.excel-dropzone .dz-file-check {
  flex: 0 0 auto;
  display: inline-flex; align-items: center;
  color: #1d9f55; font-size: 1.2rem;
}
/* 파일 선택 후: 안내 문구 숨기고 파일 카드 표시, 테두리 실선 */
.excel-dropzone.has-file .custom-file-label {
  border-style: solid; border-color: #cfd8e3; background: #f8fafc;
}
.excel-dropzone.has-file .dz-empty { display: none; }
.excel-dropzone.has-file .dz-filename { display: flex; }

.upload-next-guide {
  display: flex; align-items: center; justify-content: center;
  margin: 12px 0 0; padding: 0; text-align: center;
}
.upload-next-guide #excel-upload-next-btn {
  min-width: 220px; padding-top: 0.7rem; padding-bottom: 0.7rem;
  font-size: 1.05rem; font-weight: 700;
}
.excel-dl-intro {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.9rem; color: #3f5169; margin-bottom: 16px;
}
.excel-dl-intro i { color: #2f6fce; margin-top: 1px; }
.excel-dl-table { margin-bottom: 0; }
.excel-dl-table thead th {
  background: #f1f3f5; color: #495057; font-weight: 700; font-size: 13px;
  text-align: center; vertical-align: middle; border-bottom: 2px solid #dee2e6;
}
.excel-dl-table thead th:first-child { text-align: left; }
.excel-dl-table td { vertical-align: middle; }
.excel-dl-table tbody tr:hover { background: #f8fbff; }
.excel-dl-name { font-weight: 600; color: #212529; }
.excel-dl-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; font-size: 13px; font-weight: 600;
  color: #1d6f42; background: #eaf6ee; border: 1px solid #b7dfc4; border-radius: 6px;
  text-decoration: none; transition: all 0.12s ease;
}
.excel-dl-btn:hover { background: #1d6f42; color: #fff; border-color: #1d6f42; text-decoration: none; }
.survey-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 991px) { .survey-card-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .survey-card-list { grid-template-columns: 1fr; } }
.survey-card {
  position: relative;
  display: block;
  margin: 0; padding: 16px 18px;
  border: 1.5px solid #e3e8ef; border-radius: 12px;
  background: #fff; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.survey-card:hover {
  border-color: #4b8fe8;
  box-shadow: 0 2px 10px rgba(75, 143, 232, .12);
}
.survey-card__radio {
  position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none;
}
.survey-card:focus-within {
  border-color: #29587f; box-shadow: 0 0 0 3px rgba(41, 88, 127, .2);
}
.survey-card:has(.survey-card__radio:checked) {
  border-color: #29587f; background: #f1f6fc;
  box-shadow: 0 2px 12px rgba(41, 88, 127, .15);
}
.survey-card__body {
  display: flex; flex-direction: column; gap: 5px; min-width: 0;
}
.survey-card__name {
  font-weight: 700; color: #1a3d5c; font-size: 0.98rem;
  line-height: 1.35; word-break: break-all;
}
.survey-card__meta {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.85rem; color: #5a6b80;
}
.survey-card__meta strong { color: #2f6fce; font-weight: 700; }
.survey-card__meta-sep { color: #c4ccd6; }

/* ── 분반관리 결과 확인 테이블 ──
   가운데 정렬하되 최소 너비는 상단 스텝바(.container) 너비만큼 확보.
   min-width 값은 bootstrap.css 의 .container 반응형 max-width 에서 -40px 한 값. */
.division-result-table { margin-left: auto; margin-right: auto; }
@media (min-width: 576px) { .division-result-table { min-width: 500px; } }
@media (min-width: 768px) { .division-result-table { min-width: 680px; } }
@media (min-width: 1240px) { .division-result-table { min-width: 1160px; } }
@media (min-width: 1500px) { .division-result-table { min-width: 1385px; } }
