*: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;
}

html {
  /* sticky footer를 위해 height 100% 제약 제거 — 하단 :root + body 블록에서 min-height로 처리 */
}

body {
  font-size: 1rem;
}

table td a {
  color: #000;
}

table.bt tbody td:last-child {
  border-bottom: 1px solid #dee2e6;
}

table.bt tbody td.bt-block .bt-content {
  flex: 1;
}

table.bt tbody td.bt-block::before {
  content: "";
}

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

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

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

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

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



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

.logo-light {
  display: none;
}

.navbar .nav-link {
  color: #000;
}

.navbar.light .logo-light {
  display: inline-block;
}

.navbar.light .logo-dark {
  display: none;
}

.navbar.light .nav-link {
  color: #FFF;
}

body.navbar-transparent {
  padding-top: 0 !important;
}

body.navbar-transparent .navbar {
  background: transparent;
}

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

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

.head-common-menu-class .nav-item .nav-link {
  display: flex;
  gap: 2px;
  color: #333;
  word-break: keep-all;
  text-align: center;
  font-size: 19px;
  font-weight: 600;
  height: 68px;
  padding: 0 20px;
  margin: 0;
  background: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.head-common-menu-class .nav-item .nav-link:hover {
  font-weight: 600;
  box-shadow: 0 -4px 0 #29587f inset;
}

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

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


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

.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;
}

.main-bg {
  background-image: url('../images/background/main-bg.jpg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  height: 600px;
  padding-top: 200px;
  color: #FFF;
  margin-bottom: 25px;
}

.banner .banner-title {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.banner .banner-title > h4 {
  margin-top: 0.6rem;
  font-size: 1.5rem;
}

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

.banner .banner-menu {
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  background-color: rgba(0, 0, 0, .06) !important;
  border-bottom: 1px solid #efefef;
  /* overflow: hidden 제거 — 자식 요소의 focus outline 이 잘리지 않도록 */
  z-index: 1;
}

.banner .banner-menu .banner-item {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 2.2rem;
  color: #FFF;
  height: 48px;
  transition: all .2s;
  text-decoration: none;
}

.banner .banner-menu .banner-item: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(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .15);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  transition: all .2s;
}

.banner .banner-menu .banner-item > i:hover {
  background: rgba(255, 255, 255, .4);
  border-color: rgba(255, 255, 255, .4);
}

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

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

@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: 70px;
  }
}


.banner.top-bg {
  background: url('../images/background/top-bg.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;
  /* 최소 높이만 적용 — 컨텐츠에 따라 자연 확장 */
  height: auto;
  min-height: 280px;
}

.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;
  z-index: 1;
}

.sub-bg {
  background: url('../images/background/sub-bg-1.png');
  background-repeat: no-repeat;
  background-position: top left;
  background-size: cover;
}

.footer {
  margin-top: 50px;
  background-color: #1b1b1b;
  padding: 1rem 0;
}

.footer > .container {
  padding-right: 15px;
  padding-left: 15px;
}

.footer p, .footer a {
  color: #FFF;
  font-size: 0.8rem;
}

.textarea-limit-text {
  text-align: right;
  margin: 0.5rem 0 0 0;
  font-size: 12px;
}

.btn-search {
  width: 50px;
  height: 34px;
  padding: .375rem;
}

.nav-sub .nav-tabs {
  justify-content: center !important;
  border-bottom: 1px solid #e5e5e5;
  background: #fafafa;
}

.nav-sub .nav-tabs .nav-item .nav-link {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  font-size: 1.0rem;
  color: #5e5e5e;
  border-bottom: 3px solid transparent !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}

.nav-sub .nav-tabs .nav-item .nav-link.active {
  color: #29587f;
  border-bottom: 3px solid #29587f !important;
  text-decoration: none;
  font-weight: 700;
}

.nav-sub .nav-tabs .nav-item .nav-link:not(.active):hover {
  border-bottom: 3px solid rgba(0, 0, 0, 0) !important;
}


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

.bg-grey {
  background-color: #f7f8f8;
}

/* 모바일 메뉴: 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: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1039;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  margin: 0;
  cursor: pointer;
}

.fullpage-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  background-color: #FFF;
  box-shadow: #878787 15px 0px 34px;
  z-index: 1040;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;

  transform: translate3d(100%, 0, 0);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s 0.25s;
  will-change: transform;
  backface-visibility: hidden;
}

.fullpage-menu-toggle:checked ~ .fullpage-menu-backdrop {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s 0s;
}

.fullpage-menu-toggle:checked ~ .fullpage-menu {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  transition: transform 0.25s ease, visibility 0s 0s;
}


/* 모바일 메뉴: 헤더 영역 (로고 + 닫기) */
.fullpage-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  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;
}

/* 모바일 메뉴: 본문 리스트 */
.fullpage-menu .fullpage-menu-list {
  flex: 1 1 auto;
  width: 100%;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.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;
}

/* 메뉴 섹션 */
.fullpage-menu-section {
  padding: 8px 0;
  border-top: 1px solid #f1f5f9;
}

.fullpage-menu-section:first-of-type {
  border-top: none;
  padding-top: 4px;
}

.fullpage-menu-section h5 {
  margin: 0 0 4px;
  padding-left: 10px;
  position: relative;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #94a3b8;
  text-transform: uppercase;
}

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

.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: 10px 14px;
  border-radius: 8px;
  color: #1e293b;
  font-size: 14.5px;
  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::after {
  content: "\F285"; /* bi-chevron-right */
  font-family: "bootstrap-icons" !important;
  font-size: 14px;
  color: #cbd5e1;
  flex-shrink: 0;
  transition: transform 0.18s ease, color 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;
}

.fullpage-menu-section ul li a:hover::after,
.fullpage-menu-section ul li a:focus::after {
  color: #004ea2;
  transform: translateX(2px);
}

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

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

.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;
}

.input-group.input-group-styled .input-group-text {
  color: #c9c9c9;
  background-color: transparent;
}

.input-group.input-group-styled > .form-control:not(:first-child), .input-group > .custom-select:not(:first-child) {
  border-left: none;
}

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

.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: #004ea2;
}

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

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

.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;
}

.link-box {
  display: block;
  background-color: #004ea2;
  font-weight: bold;
  text-align: center;
  word-break: keep-all;
  color: #FFF !important;
  padding: 0.65rem 1.3rem;
}

.board-subtitle {
  background-color: #004ea2;
  font-weight: bold;
  text-align: center;
  color: #FFF;
  padding: 0.4rem 1rem;
  text-wrap: nowrap;
  border-radius: 8px;
  margin-right: 8px;
  margin-top: 4px;
  margin-bottom: 4px;
  text-wrap: nowrap;
}

.board-subvalue {
  flex: 1 1 auto !important;
  text-align: left;
  font-weight: 500;
}

.link-back {
  display: flex;
  align-items: center;
  color: #212529;
  margin-top: 0.5rem;
}

.link-back i {
  font-size: 1.3rem;
  margin-right: 0.3rem;
  color: #004ea2;
}

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


.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;
  }
}

.input-group .select2-container--default .select2-selection--single {
  border-left: none;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

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

/* === intro 운영현황 학년도 줄 (타이틀 위, 보조 텍스트 링크) === */
.intro-year-hint {
  text-align: center;
  margin: 0 0 0.75rem;
}

.intro-year-hint-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 17px;
  font-weight: 500;
  color: #475569;
  letter-spacing: 0.01em;
}

.intro-year-hint-inner i {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1;
}

.intro-year-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 4rem;
}

.intro-year-text {
  position: relative;
  display: inline-block;
  padding: 0.3rem 0.15rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: #8a94a6;
  text-decoration: none;
  transition: color 0.16s ease;
  line-height: 1.4;
}

.intro-year-text:hover {
  color: #003a80;
  text-decoration: none;
}

.intro-year-text:focus,
.intro-year-text:focus-visible {
  outline: none;
  color: #003a80;
}

.intro-year-text.is-active {
  color: #003a80;
  font-weight: 700;
}

.intro-year-text.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -3px;
  transform: translateX(-50%);
  width: 70%;
  height: 2px;
  background-color: #003a80;
  border-radius: 1px;
}

/* === intro 운영현황 메인 필터 (fType / fSemester) — 학년도 칩과 한 줄에 공존 === */
.intro-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.intro-filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.85rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #4a5468;
  background-color: #ffffff;
  border: 2px solid #e3e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  line-height: 1.3;
  cursor: pointer;
}

.intro-filter-btn:hover {
  color: #003a80;
  border-color: #c7d4e8;
  background-color: #f4f8fd;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 31, 64, 0.06);
}

.intro-filter-btn:focus,
.intro-filter-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 78, 162, 0.2);
}

.intro-filter-btn.is-active {
  color: #ffffff;
  background-color: #004ea2;
  border-color: #004ea2;
  box-shadow: 0 6px 16px rgba(0, 78, 162, 0.32);
}

.intro-filter-btn.is-active:hover {
  background-color: #003a80;
  border-color: #003a80;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 78, 162, 0.4);
}

/* === 큰 vertical padding 유틸 (Bootstrap py-5 = 3rem 보다 더 넉넉) === */
.py-6 {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

.pt-6 {
  padding-top: 4.5rem !important;
}

.pb-6 {
  padding-bottom: 4.5rem !important;
}

/* === 페이지 타이틀 (글로벌, 어떤 페이지든 사용 가능) === */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #003a80;
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin: 0.5rem 0 1.5rem 0;
}
.page-title-nowrap {
  white-space: nowrap;
}

@media (max-width: 576px) {
  .intro-filter-btn {
    font-size: 1rem;
    padding: 0.7rem 1.25rem;
  }
  .page-title {
    font-size: 1.5rem;
  }
}

/* === 운영현황 테이블 모바일 대응 === */
@media (max-width: 768px) {
  .intro-status-table th,
  .intro-status-table td {
    font-size: 0.8125rem;
    padding: 0.5rem 0.4rem;
    line-height: 1.35;
  }
  .intro-status-table .badge {
    font-size: 0.75rem;
    padding: 3px 5px;
  }
}

.main-popup {
  display: none;
  position: fixed;
  top: 60px;
  right: 5px;
  z-index: 999;
  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;
}

div.satisfaction-survey-list .card + .card {
  margin-top: 30px;
}

.gap-1{
  gap: 4px;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.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;
}

.opacity-50 {
  opacity: .5;
}

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

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

.justify-content-between{
  justify-content: space-between;
}

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

#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;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  #page-footer .footer-top,
  #page-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }
  #page-footer .footer-links a {
    margin-left: 0;
    margin-right: 15px;
  }
}

.pb-7 {
  padding-bottom: 120px;
}

/* ============================================
   intro/college: 운영개요 섹션 디자인
   ============================================ */

.intro-section {
  margin: 0 0 4rem;
}
.intro-section:last-child { margin-bottom: 1rem; }

@media (max-width: 991px) {
  .intro-section {
    margin-bottom: 3rem;
  }
}

/* 섹션 헤더: 번호 배지 + 제목 + 액센트 라인 */
.intro-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
}
.intro-section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  background: linear-gradient(135deg, #29587f 0%, #4383b2 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(41, 88, 127, .25);
  flex-shrink: 0;
}
.intro-section-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f3b5a;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.intro-section-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #cfdcec 0%, rgba(207, 220, 236, 0) 100%);
  border-radius: 2px;
}

/* 정의/설명 박스 */
.intro-box {
  position: relative;
  background: #f3f7fc;
  border-left: 6px solid #004EA2;
}
.intro-box--accent {
  background: linear-gradient(135deg, #f6faff 0%, #eaf2fb 100%);
  border-left: 6px solid #004EA2;
  box-shadow: 0 6px 18px rgba(31, 59, 90, .06) !important;
  padding-left: 3.5rem !important;
}
.intro-box-icon {
  position: absolute;
  top: 26px;
  left: 14px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #004EA2;
  border-radius: 8px;
  font-size: 1.05rem;
  box-shadow: 0 2px 6px rgba(0, 78, 162, .18);
}
.intro-box p {
  color: #2a3f56;
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.75;
}

/* 강조 키워드 — 인라인 하이라이트 */
.intro-keyword {
  display: inline;
  background: linear-gradient(180deg, transparent 55%, #fff3a8 55%);
  color: #1f3b5a;
  font-weight: 700;
  padding: 0 2px;
  border-radius: 2px;
}
.intro-definition { font-size: 1.1875rem; }

/* 특강형: 명사특강 / 주말특강 카드 */
.intro-feature-row { margin-top: 1rem !important; }
.intro-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 1.1rem 1.2rem;
  background: #fff;
  border: 1px solid #e2ebf5;
  border-radius: 10px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.intro-feature-card:hover {
  transform: translateY(-2px);
  border-color: #b9d0e7;
  box-shadow: 0 8px 18px rgba(31, 59, 90, .08);
}
.intro-feature-card-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
}
.intro-feature-card--blue  .intro-feature-card-icon { background: #e7f1fb; color: #1d6fc1; }
.intro-feature-card--teal  .intro-feature-card-icon { background: #e0f4f1; color: #0f8a7a; }
.intro-feature-card-title {
  margin: 0 0 .25rem 0;
  font-weight: 700;
  font-size: 1.1875rem;
  color: #1f3b5a;
}
.intro-feature-card-desc {
  margin: 0;
  font-size: 0.875rem;
  color: #5a6b81;
  line-height: 1.55;
}

/* ============================================
   분류 조직도 (orgchart)
   - CSS-only org chart with branching connectors
   ============================================ */
.orgchart {
  --org-line: #cbd5e1;
  --org-line-strong: #a8b5c4;
  --org-line-w: 1px;
  --org-gap-v: 64px;
  --org-gap-h: 36px;
  --org-dot: 8px;
  padding: 2rem 0 1rem;
  overflow-x: visible;
}

.orgchart ul,
.orgchart .orgchart-level {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ※ specificity 주의: base의 `.orgchart .orgchart-level { margin: 0 }`(0,2,0)
   가 단순 `ul ul`(0,1,2) 보다 강하므로, 같은 0,2,0 이상이 되도록
   `.orgchart-level .orgchart-level` 형태로 작성해야 margin-top 이 적용됨. */
.orgchart .orgchart-level .orgchart-level {
  margin-top: var(--org-gap-v);
  position: relative;
}

/* 부모 노드 → 형제 가로선까지의 상단 세로선 (자식 ul의 정중앙 위쪽 절반) */
.orgchart ul ul::before {
  content: '';
  position: absolute;
  top: calc(-1 * var(--org-gap-v));
  left: 50%;
  width: var(--org-line-w);
  height: calc(var(--org-gap-v) / 2 + var(--org-line-w));
  background: var(--org-line-strong);
  transform: translateX(-50%);
  border-radius: 2px;
}

/* (분기점 dot 제거) */

.orgchart li {
  position: relative;
  padding: 0 var(--org-gap-h);
  text-align: center;
}

/* 차트가 부모 컨테이너 좌우 끝까지 차지하도록 외곽 wrapper 풀폭 + 자식 형제 균등 분배 */
.orgchart > ul.orgchart-level { width: 100%; }
.orgchart > ul > li { width: 100%; padding: 0; }
.orgchart > ul > li > ul { width: 100%; }
.orgchart .orgchart-level .orgchart-level > li { flex: 1 1 0; min-width: 0; }

/* 형제 가로 연결선 (자식 li 상단의 갭 영역, 정확히 절반 위치) */
.orgchart ul ul > li::after {
  content: '';
  position: absolute;
  top: calc(-1 * var(--org-gap-v) / 2);
  left: 0;
  right: 0;
  height: var(--org-line-w);
  background: var(--org-line-strong);
  border-radius: 2px;
}

/* 가로선 → 자식 노드 까지의 하단 세로선 */
.orgchart ul ul > li::before {
  content: '';
  position: absolute;
  top: calc(-1 * var(--org-gap-v) / 2);
  left: 50%;
  width: var(--org-line-w);
  height: calc(var(--org-gap-v) / 2);
  background: var(--org-line-strong);
  transform: translateX(-50%);
  border-radius: 2px;
}

/* 첫째 자식: 가로선 좌측 절반 숨김 */
.orgchart ul ul > li:first-child::after { left: 50%; }
/* 막내: 가로선 우측 절반 숨김 */
.orgchart ul ul > li:last-child::after  { right: 50%; }
/* 외동: 가로선 제거 (상·하 세로선이 이어져 직선이 됨) */
.orgchart ul ul > li:only-child::after  { display: none; }

/* 노드 카드 */
.org-node {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 240px;
  padding: 20px 28px;
  border: 1.5px solid;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(20, 40, 70, .04),
    0 10px 24px rgba(20, 40, 70, .08);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease;
  z-index: 1;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.org-node:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 4px rgba(20, 40, 70, .06),
    0 18px 36px rgba(20, 40, 70, .14);
}

/* 작은 카테고리 태그 (주체/유형) */
.org-node-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--node-tag-bg, currentColor);
  color: var(--node-tag-fg, #fff);
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(20, 40, 70, .08);
}

.org-node-label {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: inherit;
}

.org-node-sub {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.org-node-note {
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

.org-node-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: inherit;
}
.org-node-or {
  font-size: 0.85rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.02em;
}
.org-node--family-a .org-node-badge { background: #f1f5f9; }
.org-node--family-b .org-node-badge { background: #dbeafe; }
.org-node-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================
   계층(level) + 분기(family) 기반 색상/타이포 시스템
   - lv0(루트) > lv1(분기 헤더) > lv2(리프)
   - family-a(학교 주도), family-b(교육청 주도)
   ============================================ */

/* Level 0 — 최상위 루트: 브랜드 네이비 그라데이션 라운드 카드 */
.org-node--lv0 {
  background: linear-gradient(135deg, #1f3b5a 0%, #2c4a6f 100%);
  border: none;
  color: #fff;
  min-width: 300px;
  padding: 22px 56px;
  border-radius: 12px;
  box-shadow:
    0 2px 4px rgba(31, 59, 90, .12),
    0 14px 32px rgba(31, 59, 90, .22);
}
.org-node--lv0 .org-node-label {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Level 1 — 분기 헤더: 서브틀 틴트 배경 + 옅은 보더 원형 */
.org-node--lv1 {
  width: 140px;
  height: 140px;
  min-width: 0;
  padding: 0;
  border: 1px solid;
  border-radius: 50%;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(20, 40, 70, .05);
}
.org-node--lv1 .org-node-label {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  text-align: center;
  line-height: 1.3;
}

/* Level 2 — 리프: 상단 액센트 바 + 솔리드 배경 */
.org-node--lv2 {
  position: relative;
  min-width: 280px;
  min-height: 160px;
  justify-content: center;
  padding: 30px 32px 24px;
  border: 1.5px solid;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(20, 40, 70, .04),
    0 10px 24px rgba(20, 40, 70, .08);
}
.org-node--lv2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}
.org-node--lv2 .org-node-label {
  font-size: 1.3rem;
  font-weight: 800;
  color: inherit;
  letter-spacing: -0.005em;
}
.org-node--lv2 .org-node-sub {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 2px;
  color: inherit;
  opacity: .82;
}
.org-node--lv2 .org-node-note {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: inherit;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* Family A — 학교 주도 (Dark Slate) */
.org-node--family-a.org-node--lv1 {
  color: #1f3b5a;
  border-color: #e2e8f0;
  background: #f8fafc;
}
.org-node--family-a.org-node--lv2 {
  color: #1f3b5a;
  border-color: #e2e8f0;
  background: #fff;
}
.org-node--family-a.org-node--lv2::before {
  background: #1f3b5a;
}

/* Family B — 교육청 주도 (Royal Blue) */
.org-node--family-b.org-node--lv1 {
  color: #1e40af;
  border-color: #bfdbfe;
  background: #eff6ff;
}
.org-node--family-b.org-node--lv2 {
  color: #1e40af;
  border-color: #bfdbfe;
  background: #fff;
}
.org-node--family-b.org-node--lv2::before {
  background: #2563eb;
}

/* ----- orgchart--simple: 공동교육과정 분류 (image 대체) -----
   ※ base .orgchart는 자식 ul에 `margin-top: var(--org-gap-v)` 로
   부모-자식 간 갭을 만들고, connector ::before/::after 는
   `calc(var(--org-gap-v)/2 …)` 로 그 안에 그려진다.
   따라서 갭을 키우려면 --org-gap-v 변수만 바꿔야 한다.
   margin-top 을 직접 override 하거나 padding-top 을 추가하면
   기준점이 어긋나 노드들이 서로 달라붙게 보임. */
.orgchart--simple {
  padding: 1.25rem 4rem 0.5rem;
  --org-gap-v: 80px;
  --org-gap-h: 24px;
}
/* 좌우 전체 폭 활용: ul 들이 부모 폭을 모두 차지 + 자식 2분기 균등 분배 */
.orgchart--simple .orgchart-level {
  width: 100%;
}
.orgchart--simple > ul > li {
  width: 100%;
  padding: 0;
}
.orgchart--simple > ul > li > ul {
  align-items: stretch;
}
.orgchart--simple > ul > li > ul > li {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
}
/* 부모 — 분류 헤더: 가벼운 솔리드 카드 */
.orgchart--simple .org-node--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 22px 56px;
  min-width: 240px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #1f3b5a 0%, #2c4a6f 100%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  box-shadow: 0 4px 12px rgba(31, 59, 90, .15);
}

/* 자식 — 핵심 분류: 라이트 톤 카드 + 상단 액센트 바 (lv2와 동일) */
.orgchart--simple .org-node--card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 140px;
  padding: 22px 20px 18px;
  border: 1.5px solid;
  border-radius: 14px;
  overflow: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
  background: #fff;
  border-color: var(--org-line-strong);
  box-shadow:
    0 1px 2px rgba(20, 40, 70, .04),
    0 8px 20px rgba(20, 40, 70, .08);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease;
}
.orgchart--simple .org-node--card::before {
  display: none;
}
.orgchart--simple .org-node--card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 4px rgba(20, 40, 70, .06),
    0 16px 32px rgba(20, 40, 70, .14);
}

/* 상단 액센트 바 */
.orgchart--simple .org-node-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}
.orgchart--simple .org-node--family-a .org-node-accent { background: #4f46e5; }
.orgchart--simple .org-node--family-b .org-node-accent { background: #1f3b5a; }

/* 콘텐츠 슬롯 — title / sub */
.orgchart--simple .org-node-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-align: center;
}
.orgchart--simple .org-node-sub {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: #64748b;
  text-align: center;
  word-break: keep-all;
}

/* Family A — Indigo (전북온라인학교) */
.orgchart--simple .org-node--card.org-node--family-a {
  color: #312e81;
}

/* Family B — 학교연계 공동교육과정 */
.orgchart--simple .org-node--card.org-node--family-b {
  color: #1f3b5a;
}

/* 모바일 대응 */
@media (max-width: 767.98px) {
  .orgchart--simple .org-node--card {
    height: auto;
    min-height: 130px;
  }
  .orgchart--simple .org-node-title { font-size: 1.1rem; }
}


/* 태블릿 ~ 모바일: 카드 폭/타이포 축소 */
@media (max-width: 767.98px) {
  .orgchart--simple { padding-top: 0.75rem; }
  .orgchart--simple > ul.orgchart-level { width: 100%; }
  .orgchart--simple > ul > li { width: 100%; padding: 0; }
  .orgchart--simple .orgchart-level { width: 100%; }
  .orgchart--simple .org-node--primary {
    min-width: 0;
    width: 280px;
    padding: 18px 36px;
    font-size: 1.25rem;
    border-radius: 12px;
    white-space: nowrap;
  }
}

/* 소형 모바일 (≤480px) */
@media (max-width: 480px) {
  .orgchart--simple .org-node--primary {
    width: 280px;
    padding: 14px 24px;
    font-size: 1.1rem;
  }
}

/* ----- 모바일: 모든 orgchart 가 데스크톱과 동일한 가로 레이아웃 유지 -----
   세로 스택 변환을 제거하고, 폰트/패딩/갭만 줄여서 좁은 화면에 맞춘다.
   매우 좁은 화면(<360px 등)에서는 base의 `overflow-x: auto` 가 가로
   스크롤을 허용하므로 콘텐츠가 깨지지 않는다. */
@media (max-width: 767.98px) {
  .orgchart {
    --org-gap-v: 38px;
    --org-gap-h: 4px;
    padding: 1rem 0 0.5rem;
  }
  /* 형제 사이는 4px 갭, 컨테이너 양 끝(첫·마지막 자식) 여백은 제거 */
  .orgchart li:first-child { padding-left: 0; }
  .orgchart li:last-child  { padding-right: 0; }

  .orgchart .org-node {
    min-width: 0;
    padding: 10px 10px;
    border-radius: 10px;
  }
  .orgchart .org-node-label { font-size: 0.9rem; line-height: 1.3; }
  .orgchart .org-node-sub   { font-size: 0.78rem; }
  .orgchart .org-node-note  { font-size: 0.68rem; }
  .orgchart .intro-tree-leaves { gap: 6px; }

  /* lv0 루트는 살짝 강조 유지 */
  .orgchart .org-node--lv0 {
    min-width: 0;
    padding: 10px 18px;
    border-radius: 999px;
  }
  .orgchart .org-node--lv0 .org-node-label { font-size: 0.95rem; }
  .orgchart .org-node--lv1 { min-width: 0; padding: 8px 14px; border-radius: 999px; }
  .orgchart .org-node--lv1 .org-node-label { font-size: 0.88rem; }
  .orgchart .org-node--lv2 { min-width: 0; padding: 12px 8px 10px; }
  .orgchart .org-node--lv2 .org-node-label { font-size: 0.9rem; }
  .orgchart .org-node--lv2 .org-node-sub { font-size: 0.78rem; }
  .orgchart .org-node--lv2 .org-node-note {
    margin-top: 6px;
    padding: 3px 8px;
    font-size: 0.66rem;
  }
}

@media (max-width: 480px) {
  .orgchart {
    --org-gap-v: 30px;
    --org-gap-h: 3px;
  }
  .orgchart .org-node { padding: 8px 8px; }
  .orgchart .org-node-label { font-size: 0.82rem; }
  .orgchart .org-node-sub   { font-size: 0.7rem; }
  .orgchart .org-node-note  { font-size: 0.6rem; padding: 2px 7px; }
  .orgchart .org-node--lv0 { padding: 8px 16px; }
  .orgchart .org-node--lv0 .org-node-label { font-size: 0.88rem; }
  .orgchart .org-node--lv1 { padding: 6px 12px; }
  .orgchart .org-node--lv1 .org-node-label { font-size: 0.8rem; }
  .orgchart .org-node--lv2 { padding: 10px 6px 8px; }
  .orgchart .org-node--lv2 .org-node-label { font-size: 0.82rem; }
}

/* ----- orgchart--simple: 모바일에서도 동일한 가로 2분기 레이아웃 유지 ----- */
@media (max-width: 767.98px) {
  .orgchart--simple .orgchart-level { flex-direction: row; align-items: flex-start; }
  .orgchart--simple > ul > li > ul > li {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 6px;
  }
  .orgchart--simple .org-node--card {
    width: 100%;
    max-width: 100%;
  }
  .orgchart--simple { --org-gap-h: 6px; }
}

/* ============================================
   수강신청 안내 - 유의사항 & 메뉴얼 (lecture/intro)
   ============================================ */

.guide-notice {
  margin: 0.5rem auto 0;
}

/* Hero header — 가운데 정렬 + 미세 액센트 */
.guide-notice__hero {
  margin-bottom: 24px;
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  text-align: center;
}
.guide-notice__hero-inner {
  min-width: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.guide-notice__hero-inner::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #29587f 0%, #4383b2 100%);
}
.guide-notice__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: #1f3b5a;
}
.guide-notice__subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, .82);
  line-height: 1.55;
}
.guide-notice__counter {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  background: rgba(255, 255, 255, .14);
  border: 1.5px solid rgba(255, 255, 255, .32);
  border-radius: 20px;
  backdrop-filter: blur(6px);
}
.guide-notice__counter-num {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}
.guide-notice__counter-label {
  margin-top: 4px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, .82);
  letter-spacing: 0.04em;
}

/* Notice grid */
.guide-notice__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* 가독성 + 미세한 그래픽 액센트 균형 */
.guide-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: center;
  padding: 8px 22px;
  background: #fff;
  border: 1px solid #e5ebf3;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(20, 40, 70, .03);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.guide-card:hover {
  border-color: #c6d6e7;
  box-shadow: 0 4px 12px rgba(20, 40, 70, .06);
}

.guide-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #eaf2fb 0%, #d7e6f4 100%);
  color: #29587f;
  font-weight: 800;
  font-size: 0.92rem;
  font-feature-settings: 'tnum';
  letter-spacing: 0.02em;
  border-radius: 50%;
}

.guide-card__text {
  margin: 0;
  padding-top: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #1f2937;
  word-break: keep-all;
  text-align: center;
}
.guide-card__text small {
  display: block;
  margin-top: 0;
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Manual download CTA */
.guide-manual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  margin-bottom: 48px;
  padding: 22px 28px;
  background: linear-gradient(135deg, #f5f9fd 0%, #e9f1f9 100%);
  border: 1px solid #d6e4f1;
  border-radius: 16px;
}
.guide-manual__info {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.guide-manual__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #29587f 0%, #4383b2 100%);
  color: #fff;
  border-radius: 14px;
  font-size: 1.4rem;
  box-shadow: 0 6px 14px rgba(41, 88, 127, .25);
}
.guide-manual__title {
  margin: 0 0 3px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f3b5a;
  letter-spacing: -0.01em;
}
.guide-manual__desc {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7b8e;
  line-height: 1.45;
}
.guide-manual__btn {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.85rem 1.6rem;
  background: linear-gradient(135deg, #29587f 0%, #4383b2 100%);
  border-radius: 12px;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  box-shadow: 0 8px 18px rgba(41, 88, 127, .28);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  overflow: hidden;
}
.guide-manual__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.22) 50%, rgba(255,255,255,0) 70%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.guide-manual__btn:hover,
.guide-manual__btn:focus {
  background: linear-gradient(135deg, #224a6c 0%, #3b76a3 100%);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(41, 88, 127, .35);
  text-decoration: none;
}
.guide-manual__btn:hover::before { transform: translateX(100%); }
.guide-manual__btn .bi-download {
  padding: 4px 7px;
  background: rgba(255, 255, 255, .18);
  border-radius: 8px;
  font-size: 0.95rem;
}

/* Tablet */
@media (max-width: 991px) {
  .guide-notice__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .guide-notice__hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
    border-radius: 16px;
  }
  .guide-notice__title { font-size: 1.3rem; }
  .guide-notice__subtitle { font-size: 0.88rem; }
  .guide-notice__counter {
    flex-direction: row;
    gap: 10px;
    width: auto;
    height: auto;
    padding: 8px 14px;
    border-radius: 999px;
    align-self: flex-end;
  }
  .guide-notice__counter-num { font-size: 1.2rem; }
  .guide-notice__counter-label { margin-top: 0; }

  .guide-card {
    padding: 8px 16px 8px 18px;
    gap: 12px;
    border-radius: 12px;
  }
  .guide-card__num {
    min-width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }
  .guide-card__text { font-size: 0.9rem; padding-top: 0; }

  .guide-manual {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    text-align: left;
  }
  .guide-manual__btn {
    justify-content: center;
    padding: 0.95rem 1rem;
  }
}

/* ============================================
   배너 메뉴 버튼 (banner-item) — 8080 패턴
   ============================================ */
.banner .banner-menu {
  background-color: rgba(0, 0, 0, .06) !important;
  border-bottom: 1px solid #efefef;
}

/* 배너 타이틀 안에 잔여 img(아이콘) 있으면 자동 숨김 — 8080은 아이콘 없음 */
.banner .banner-title > img {
  display: none;
}

/* h4 단독(depth2 클래스 없이) 케이스도 depth2와 동일한 큰 글씨 적용 */
.banner .banner-title > h4 {
  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-menu .banner-item {
  position: relative;
  letter-spacing: -0.005em;
  color: rgba(255, 255, 255, .82);
}

.banner .banner-menu .banner-item h5 {
  font-size: 1.02rem;
  font-weight: 500;
}

.banner .banner-menu .banner-item:hover {
  background-color: rgba(255, 255, 255, .12);
  color: #fff;
}
.banner .banner-menu .banner-item:hover h5 { color: #fff; }

.banner .banner-menu .banner-item.active {
  background-color: #fff;
  color: #29587f;
}
.banner .banner-menu .banner-item.active h5 {
  font-weight: 700;
  color: #29587f;
}
@media (min-width: 992px) {
  .banner .banner-menu .banner-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(90deg, #29587f, #4383b2);
  }
}

/* ==========================================================================
   8080 (hscredit-web) 디자인 패리티 — 헤더/배너/depth2/depth3/스티키 푸터
   ========================================================================== */

: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); }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  :root { --header-nav-h: 76px; }
}
@media (max-width: 767.98px) {
  :root { --header-nav-h: 60px; }
}

/* body — 동적 헤더 높이 + 스티키 푸터 (footer를 viewport 바닥에 고정) */
html {
  height: 100% !important;
}
html, body {
  min-height: 100%;
}
body {
  padding-top: var(--header-h);
  height: 100% !important;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.navbar-transparent {
  padding-top: 0 !important;
}
body > #page-footer {
  margin-top: auto;
}

/* 접근성 — 키보드 포커스 가시성 */
*:focus-visible {
  outline: 3px solid #29587f !important;
  outline-offset: 2px !important;
  border-radius: 2px;
}
/* :focus-visible 미지원 브라우저 폴백 — 마우스 클릭에는 outline 표시하지 않음 */
*:focus:not(:focus-visible) {
  outline: none;
}
/* nav-tabs nav-link 포커스 outline 이 banner-menu(z-index:1) 에 가려지지 않도록 stacking context 부여 */
.nav-sub .nav-tabs .nav-link:focus-visible {
  position: relative;
  z-index: 2;
}

/* 모바일 메뉴 안의 포커스 outline — overflow:hidden 컨테이너에 가려지지 않도록 */
.fullpage-menu .fullpage-menu-section ul li a:focus-visible,
.fullpage-menu .fullpage-menu-accordion > summary:focus-visible,
.fullpage-menu a.fullpage-menu-external:focus-visible,
.fullpage-menu .auth-btn:focus-visible {
  position: relative;
  z-index: 2;
  outline-offset: -2px !important; /* outline 을 요소 안쪽으로 그려 컨테이너 경계를 넘지 않도록 */
}

/* Bootstrap 기본 컨테이너 브레이크포인트/너비 사용 — 별도 override 없음
   기본값: 576→540 / 768→720 / 992→960 / 1200→1140 */

/* ===== 헤더 navbar ===== */
.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);
}

.head-common-menu-class .nav-item {
  position: relative;
}
.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 .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);
}

/* ===== 상단 인증 바 (top-auth-bar) ===== */
.top-auth-bar {
  gap: 6px;
  flex-wrap: nowrap !important;
  overflow: visible;
}
.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;
  background-color: transparent;
  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;
}

/* ===== 역할 메뉴 드롭다운 (top-auth-profile) — 8080 메가 메뉴 패턴 ===== */
.top-auth-profile .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: color .15s ease;
}
/* 활성 시 텍스트 컬러 변경 효과 제거 — 기본 흰색 유지 */
.top-auth-profile.show .dropdown-toggle,
.top-auth-profile .dropdown-toggle[aria-expanded="true"] { color: #fff; }
.top-auth-profile.show .dropdown-toggle > i,
.top-auth-profile .dropdown-toggle[aria-expanded="true"] > i { color: inherit; }

.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;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  font-stretch: 98%;
  letter-spacing: -0.025em;
}
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:has(.top-auth-profile .dropdown-menu.show),
body:has(#fullpage-menu-toggle:checked),
body.menu-open { overflow: hidden; }

/* 프로필 바 (드롭다운 상단 영역) */
.role-menu-profile {
  width: 100%;
  background: #f8fafc;
  color: #1f2a37;
  border-bottom: 1px solid #e2e8f0;
}
.role-menu-profile-inner {
  /* width / max-width / margin / padding 은 .container 클래스가 담당 */
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.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: .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 { border-color: #fca5a5; color: #dc2626; }
.role-menu-profile-btn--logout:hover,
.role-menu-profile-btn--logout:focus {
  background: #dc2626; border-color: #dc2626; color: #fff;
}

@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; }
}

/* 카테고리 그리드 (관리자 메가 메뉴) */
.role-menu-grid {
  /* width / max-width / margin / padding-left/right 는 .container 클래스가 담당 */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start !important;
  gap: 28px;
  padding-top: 28px;
  padding-bottom: 24px;
}
/* 그리드 셀이 자기 자신을 stretch/center 하지 않도록 — 헤더가 항상 위에 붙도록 */
.role-menu-grid > .role-menu-section { align-self: start; }

.role-menu-section {
  padding: 0;
  border: none;
  min-width: 0;
}
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: ''; }

@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; }
  .role-menu-section-chevron { display: none; }
}

.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;
  }
  /* 시스템 환경(--admin) 카테고리는 금색 마커로 차별화 — 8080 동일 */
  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-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: 17px;
  font-weight: 500;
  color: #334155;
  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;
}
.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;
}
.role-menu-section-list .dropdown-item:hover > i,
.role-menu-section-list .dropdown-item:focus > i { color: #29587f; }

@media (max-width: 1199.98px) {
  .role-menu-grid { grid-template-columns: 1fr !important; padding: 0; gap: 0; }
  /* 학생 메뉴 등 항상 펼쳐진 정적 섹션 — 8080 모바일 동일 */
  .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: 14px;
    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; }
  .top-auth-profile details.role-menu-section {
    display: block;
    width: 100%;
    padding: 0 15px;
    border-bottom: 1px solid #f1f5f9;
    overflow: hidden;
  }
  .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;
  }
  .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;
  }
  .top-auth-profile .role-menu-section-chevron { display: inline-block; }
  .top-auth-profile details.role-menu-section[open] > summary .role-menu-section-chevron {
    transform: rotate(180deg); color: #004ea2;
  }
  .top-auth-profile .role-menu-section-list .dropdown-item {
    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;
  }
}
@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; }
}

/* ===== 배너 depth1/depth2 (배너 타이틀) — 8080 패턴 ===== */
.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 .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-item이 1개뿐이면 depth2 네비게이션 의미 없음 — banner-menu 전체 숨김 */
.banner .banner-menu:has(.banner-item:only-child),
.banner .banner-menu:not(:has(.banner-item)) {
  display: none !important;
}

/* 모바일 배너 메뉴(depth2) — active만 노출, 펼치면 overlay 드롭다운 */
@media (max-width: 991.98px) {
  .banner .banner-menu {
    position: relative;
    overflow: visible;  /* 펼침 시 absolute 자식이 아래로 잘리지 않도록 */
    z-index: 30;        /* nav-sub / main-content 위로 */
  }
  .banner .banner-menu.is-open { z-index: 40; }
  .banner .banner-menu .banner-item.active {
    cursor: pointer;
    padding-right: 2.5rem;
    padding-left: 2.5rem;
  }
  .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;
    background: transparent !important;
  }
  .banner .banner-menu.is-open .banner-item.active::after {
    transform: translateY(-30%) rotate(-135deg);
  }
  .banner .banner-menu .banner-item:not(.active) { display: none; }
  /* 8080은 마지막 자리에 share/print 액션 컨테이너(.d-none.d-lg-flex)를 두므로 모바일에선 어차피 숨김
     → lecture는 액션 컨테이너 미사용이므로 active 외 전부 숨김으로 일관 */
  .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;
  }
  .banner .banner-menu.is-open .banner-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));
  }
}
@keyframes bannerMenuDropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== depth3 (nav-sub) — 데스크톱 underline 탭바 + 모바일 동적 그리드 ===== */
@media (max-width: 991.98px) {
  .nav-sub .nav-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);   /* 기본: 3개 이상은 3열 */
    gap: 0;
    padding: 0;
    background: #fafafa;
    border-top: 1px solid #e5e5e5;
    min-height: 48px;
  }
  /* 항목이 1개일 때 — 1열 */
  .nav-sub .nav-tabs:has(.nav-item:only-child) {
    grid-template-columns: 1fr;
  }
  /* 항목이 정확히 2개일 때 — 2열 */
  .nav-sub .nav-tabs:has(.nav-item:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-sub:empty { display: block; height: 48px; background: #fafafa; border-bottom: 1px solid #e5e5e5; }
  .nav-sub .nav-tabs .nav-item {
    width: 100%;
    background: transparent;
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
  }
  /* 3열 기본 — 매 3번째 항목의 우측 보더 제거 */
  .nav-sub .nav-tabs .nav-item:nth-child(3n) { border-right: none; }
  /* 2열일 때 — 매 2번째 항목의 우측 보더 제거 (그리고 3n 룰을 무효화) */
  .nav-sub .nav-tabs:has(.nav-item:nth-child(2):last-child) .nav-item:nth-child(3n) {
    border-right: 1px solid #e5e5e5;
  }
  .nav-sub .nav-tabs:has(.nav-item:nth-child(2):last-child) .nav-item:nth-child(2n) {
    border-right: none;
  }
  /* 1열일 때 — 우측 보더 제거 */
  .nav-sub .nav-tabs:has(.nav-item:only-child) .nav-item {
    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;
  }
  .nav-sub .nav-tabs .nav-item .nav-link:not(.active):hover {
    border: none !important;
  }
}

/* nav-sub placeholder — 빈 div일 때만 50px 높이 (배경/보더는 .nav-tabs가 채울 때만 표시) */
.nav-sub:empty {
  display: block;
  min-height: 50px;
  height: 50px;
}
@media (max-width: 991.98px) {
  .nav-sub:empty { min-height: 48px; height: 48px; }
}

/* breadcrumb — 컨테이너 최상단 좌측에 고정 */
nav[aria-label="breadcrumb"] { text-align: left; }
nav[aria-label="breadcrumb"] .breadcrumb {
  justify-content: flex-start;
  text-align: left;
}
.breadcrumb {
  margin-bottom: 2px;
  font-size: 16px;
  letter-spacing: -0.025em;
  background: transparent;
  padding-left: 0;
}
.breadcrumb .breadcrumb-item a,
.breadcrumb .breadcrumb-item,
.breadcrumb .breadcrumb-item.active {
  color: #505050;
  font-size: 16px;
  letter-spacing: -0.025em;
}
@media (max-width: 991.98px) {
  nav[aria-label="breadcrumb"] { display: none; }
}

/* 메인 컨텐츠 영역 — 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;
  }
}

/* 검색 필터 폼 — 8080 인라인 폼 */
.form-filter {
  align-items: flex-end;
  gap: 4px 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.form-filter .form-group {
  margin-bottom: 0;
}
.form-filter label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #6b7280;
}
.form-filter .form-control {
  height: 36px;
  min-width: 140px;
}
.form-filter button[type="submit"] {
  width: 50px;
  height: 36px;
  padding: .375rem;
}

/* 테이블 — table-condensed (게시판 기본) */
.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;
}

/* 게시판 액션 영역(작성/삭제 버튼 그룹) */
.data-list .text-right .btn + .btn,
.data-list .text-right .btn + a.btn {
  margin-left: 4px;
}

/* ===== 푸터 — 8080 컬러/레이아웃 ===== */
#page-footer {
  background-color: #f1f4f9 !important;
  color: #475569 !important;
  padding: 60px 0 40px;
  border-top: 1px solid rgba(51, 65, 85, 0.1);
  margin-top: 0; /* footer 외 .footer 잔재 margin-top 무시 */
}

#page-footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
#page-footer .footer-brand img { height: 40px; opacity: 1; filter: none; }
#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;
}
@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; }
}

/* ===========================================================================
   8080 모바일 메뉴 — 헤더 아래 슬라이드 다운(clip-path inset) 패턴 오버라이드
   기존 우측 사이드드로어 스타일을 무효화하고 8080 패턴으로 교체
   =========================================================================== */

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;
  height: auto;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1029;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s 0.25s;
  margin: 0;
  cursor: pointer;
}

.fullpage-menu {
  position: fixed;
  top: calc(var(--header-h) - 1px);
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  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;
  transform: none;
  clip-path: inset(0 0 100% 0);
  -webkit-clip-path: inset(0 0 100% 0);
  transition: clip-path 0.25s ease, -webkit-clip-path 0.25s ease, visibility 0s 0.25s;
}

.fullpage-menu-toggle:checked ~ .fullpage-menu-backdrop {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s 0s;
}

.fullpage-menu-toggle:checked ~ .fullpage-menu {
  clip-path: inset(0 0 0 0);
  -webkit-clip-path: inset(0 0 0 0);
  visibility: visible;
  transform: none;
  transition: clip-path 0.25s ease, -webkit-clip-path 0.25s ease, visibility 0s 0s;
}

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

/* 본문 리스트 — Bootstrap 반응형 너비 */
.fullpage-menu .fullpage-menu-list {
  flex: 1 1 auto;
  width: 100%;
  align-self: center;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
@media (min-width: 576px) { .fullpage-menu .fullpage-menu-list { max-width: 540px; } }
@media (min-width: 768px) { .fullpage-menu .fullpage-menu-list { max-width: 720px; } }

.fullpage-menu-auth {
  padding: 10px 15px 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;
}

/* 메뉴 섹션 — 좌우 15px 패딩 + 하단 보더 */
.fullpage-menu .fullpage-menu-section {
  padding: 0 15px;
  border-bottom: 1px solid #f1f5f9;
  background: transparent;
}

/* 섹션 헤더(트리거) 공통 — accordion summary / external anchor / 일반 h5 */
.fullpage-menu .fullpage-menu-accordion > summary,
.fullpage-menu a.fullpage-menu-external,
.fullpage-menu 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 .fullpage-menu-section h5 {
  margin: 0;
  padding-left: 14px;
  position: relative;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #64748b;
  text-transform: uppercase;
}
.fullpage-menu .fullpage-menu-section h5::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: #004ea2;
  border-radius: 2px;
}

/* 외부 링크 섹션 */
.fullpage-menu a.fullpage-menu-external {
  text-decoration: none;
  color: inherit;
}
.fullpage-menu a.fullpage-menu-external:hover,
.fullpage-menu a.fullpage-menu-external:focus {
  text-decoration: none;
  color: inherit;
}
.fullpage-menu a.fullpage-menu-external:hover h5,
.fullpage-menu a.fullpage-menu-external:focus h5 { color: #004ea2; }
.fullpage-menu a.fullpage-menu-external > h5 { margin: 0; }
.fullpage-menu a.fullpage-menu-external:hover .fullpage-menu-chevron,
.fullpage-menu a.fullpage-menu-external:focus .fullpage-menu-chevron { color: #004ea2; }

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

.fullpage-menu .fullpage-menu-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.fullpage-menu .fullpage-menu-section ul li { margin: 0; }
.fullpage-menu .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 .fullpage-menu-section ul li a::after { content: none; }
.fullpage-menu .fullpage-menu-section ul li a:hover,
.fullpage-menu .fullpage-menu-section ul li a:focus {
  background: #eef4fb;
  color: #004ea2;
  text-decoration: none;
  padding-left: 18px;
}

@media (max-width: 768px) {
  .fullpage-menu { width: 100%; max-width: none; }
}
