/* ============================================================
   KUCM Website - New Layout Styles (nonamechurch style)
   ============================================================ */

:root {
  --nn-container: 1400px;
  --nn-border: #eff1f7;
  --nn-text-main: #1e293b;
  --nn-text-muted: #64748b;
  --nn-bg-light: #f8fafc;
  --nn-footer-bg: #222933;
}

/* 1400px 공통 컨테이너 */
.nn-container {
  width: 100%;
  max-width: var(--nn-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* 유틸리티 반응형 클래스 */
.d-none-pc {
  display: none !important;
}

@media (max-width: 991.98px) {
  .d-none-mo {
    display: none !important;
  }
  .d-none-pc {
    display: block !important;
  }
  /* 모바일 화면에서는 상단 LNB 유틸바 숨김 처리 */
  .site-lnb {
    display: none !important;
  }
}

/* ------------------------------------------------------------
   1. 최상단 LNB 바 (Top Bar)
   ------------------------------------------------------------ */
.site-lnb {
  background: #ffffff;
  border-bottom: 1px solid var(--nn-border);
  font-size: 13px;
  color: var(--nn-text-muted);
  line-height: 1;
}

.site-lnb__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
}

.site-lnb__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-lnb__left i {
  color: var(--primary-color);
  margin-right: 4px;
}

.site-lnb__sep {
  color: #cbd5e1;
}

.site-lnb__slogan {
  color: #64748b;
  font-weight: 500;
  font-size: 13px;
}

.site-lnb__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-lnb__lang {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-lnb__lang .lang-link {
  color: #64748b;
  font-weight: 500;
  transition: color 0.2s;
}

.site-lnb__lang .lang-link:hover,
.site-lnb__lang .lang-link.is-active {
  color: var(--primary-color);
  font-weight: 700;
}

.site-lnb__bar {
  color: #e2e8f0;
  font-size: 11px;
}

.site-lnb__auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-lnb__auth .auth-link {
  color: #475569;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}

.site-lnb__auth .auth-link:hover {
  color: var(--primary-color);
}

.site-lnb__auth .auth-link i {
  font-size: 12px;
}

/* ------------------------------------------------------------
   2. PC 메인 헤더 (Logo + Search + SNS)
   ------------------------------------------------------------ */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--nn-border);
  padding: 18px 0;
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

/* 로고 영역 */
.site-header__logo {
  justify-self: start;
}

.site-header__logo .site-logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.site-header__logo .site-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.site-header__logo .site-logo-texts {
  display: flex;
  flex-direction: column;
}

.site-header__logo .site-logo-title {
  font-size: 21px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.site-header__logo .site-logo-sub {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* 검색창 영역 */
.site-header__search {
  width: 480px;
  max-width: 100%;
  margin: 0 auto;
}

.site-header__search .search-form {
  width: 100%;
}

.site-header__search .search-input-group {
  display: flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.site-header__search .search-input-group:focus-within {
  border-color: #1e3a5f;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}

.site-header__search .search-prefix-icon {
  padding-left: 16px;
  color: #b48a4e;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
}

.site-header__search .search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 12px;
  font-size: 14px;
  color: #1e293b;
  background: transparent;
  font-family: inherit;
}

.site-header__search .search-input::placeholder {
  color: #94a3b8;
  font-size: 13.5px;
}

.site-header__search .search-btn {
  border: none;
  background: transparent;
  padding: 0 18px;
  height: 42px;
  cursor: pointer;
  color: #475569;
  font-size: 15px;
  transition: color 0.2s;
}

.site-header__search .search-btn:hover {
  color: #1e3a5f;
}

/* SNS 아이콘 */
.site-header__sns {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__sns .sns-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #475569;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

.site-header__sns .sns-btn:hover {
  transform: translateY(-2px);
}

.site-header__sns .sns-youtube:hover {
  background: #ff0000;
  color: #ffffff;
}

.site-header__sns .sns-facebook:hover {
  background: #1877f2;
  color: #ffffff;
}

.site-header__sns .sns-instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
}

.site-header__sns .sns-kakao:hover {
  background: #fee500;
  color: #3c1e1e;
}

/* ------------------------------------------------------------
   3. 메인 네비게이션 GNB (Sticky 메뉴)
   ------------------------------------------------------------ */
.site-gnb-wrapper {
  position: relative;
  width: 100%;
}

.site-gnb {
  background: #ffffff;
  border-bottom: 1px solid var(--nn-border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  width: 100%;
  transition: box-shadow 0.3s ease;
}

/* 스크롤 시 상단 고정 상태 */
.site-gnb.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.09);
  animation: slideDown 0.25s ease forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.site-gnb__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.site-gnb__menu {
  display: flex;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-gnb__item {
  position: relative;
  flex: 1;
  text-align: center;
}

.site-gnb__link {
  display: block;
  padding: 16px 12px;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.3px;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  border-bottom: 3px solid transparent;
}

/* 메뉴 hover 및 활성(active) 시: 품격있는 개혁주의 네이비 배경 + 골드 포인트 라인 */
.site-gnb__item:hover .site-gnb__link,
.site-gnb__item.is-active .site-gnb__link {
  background: #1e3a5f;
  color: #ffffff;
  border-bottom-color: #d4af37;
}

/* 드롭다운 서브메뉴 */
.site-gnb__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  min-width: 185px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 2px solid #d4af37;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  border-radius: 0 0 8px 8px;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1001;
}

.site-gnb__item:hover .site-gnb__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 우측 끝 메뉴 드롭다운이 화면 밖으로 넘치지 않도록 우측 기준 정렬 */
.site-gnb__item:last-child .site-gnb__dropdown,
.site-gnb__item:nth-last-child(2) .site-gnb__dropdown {
  left: auto;
  right: 0;
}

.site-gnb__sub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.site-gnb__sub-item {
  border-bottom: 1px solid #f8fafc;
}

.site-gnb__sub-item:last-child {
  border-bottom: none;
}

.site-gnb__sub-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  font-size: 14px;
  color: #334155;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, padding-left 0.15s;
  font-weight: 500;
  white-space: nowrap;
  text-align: left;
}

.site-gnb__sub-link:hover {
  background: #f1f5f9;
  color: var(--primary-color);
  font-weight: 700;
  padding-left: 22px;
}

.site-gnb__sub-arrow {
  font-size: 11px;
  color: #94a3b8;
  margin-left: 8px;
  transition: transform 0.2s;
}

.site-gnb__sub-item.has-children:hover .site-gnb__sub-arrow {
  transform: rotate(90deg);
  color: var(--primary-color);
}

.site-gnb__third-list {
  list-style: none;
  margin: 0;
  padding: 4px 12px 8px 24px;
  background: #f8fafc;
  border-top: 1px dashed #e2e8f0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
}

.site-gnb__third-link {
  display: block;
  padding: 5px 8px;
  font-size: 12.5px;
  color: #475569;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.15s, color 0.15s;
  text-align: left;
}

.site-gnb__third-link:hover {
  background: #e2e8f0;
  color: var(--primary-color);
  font-weight: 600;
}

.sidebar-thirdmenu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px 16px 10px 28px;
  background: #f8fafc;
}

.sidebar-thirdmenu__link {
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 4px;
}

.sidebar-thirdmenu__link:hover {
  color: var(--primary-color);
  font-weight: 600;
}

/* 우측 빠른 사용자 아이콘 */
.site-gnb__user-action {
  display: flex;
  align-items: center;
  padding-left: 15px;
}

.site-gnb__user-action .gnb-user-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 15px;
  transition: background-color 0.2s, color 0.2s;
}

.site-gnb__user-action .gnb-user-btn:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* ------------------------------------------------------------
   4. 모바일 전용 헤더
   ------------------------------------------------------------ */
.site-header-mo {
  background: #ffffff;
  border-bottom: 1px solid var(--nn-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.site-header-mo__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
}

.site-header-mo .mo-btn {
  border: none;
  background: transparent;
  font-size: 20px;
  color: #334155;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.site-header-mo .mo-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.site-header-mo .mo-logo-img {
  height: 30px;
  width: auto;
}

.site-header-mo .mo-logo-text {
  font-size: 17px;
  font-weight: 800;
  color: #1e293b;
}

/* 모바일 검색 드롭다운 */
.mo-search-dropdown {
  display: none;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 12px 16px;
}

.mo-search-dropdown.is-open {
  display: block;
}

.mo-search-input-group {
  display: flex;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  overflow: hidden;
}

.mo-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 14px;
}

.mo-search-btn {
  border: none;
  background: var(--primary-color);
  color: #ffffff;
  padding: 0 16px;
  cursor: pointer;
}

/* ------------------------------------------------------------
   5. 모바일 사이드바 (Offcanvas)
   ------------------------------------------------------------ */
.site-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.site-sidebar-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.site-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 86vw;
  height: 100%;
  background: #ffffff;
  z-index: 1050;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.site-sidebar.is-open {
  transform: translateX(0);
}

.site-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.site-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-sidebar__logo {
  height: 28px;
  width: auto;
}

.site-sidebar__name {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
}

.site-sidebar__close {
  border: none;
  background: transparent;
  font-size: 22px;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
}

/* 사용자 인증 & 언어 카드 */
.site-sidebar__user {
  background: #f8fafc;
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.site-sidebar__user .user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: #1e293b;
  margin-bottom: 10px;
}

.site-sidebar__user .auth-actions,
.site-sidebar__user .user-actions {
  display: flex;
  gap: 8px;
}

.site-sidebar__user .sidebar-btn {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.site-sidebar__user .sidebar-btn--primary {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.sidebar-lang-switch {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12.5px;
  color: #94a3b8;
}

.sidebar-lang-switch a {
  color: #64748b;
  text-decoration: none;
}

.sidebar-lang-switch a.active {
  color: var(--primary-color);
  font-weight: 700;
}

/* 아코디언 메뉴 목록 */
.site-sidebar__nav {
  flex: 1;
  overflow-y: auto;
}

.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-menu__item {
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-menu__link {
  flex: 1;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
}

.sidebar-menu__item.is-active > .sidebar-menu__header .sidebar-menu__link {
  color: var(--primary-color);
  font-weight: 700;
}

.sidebar-menu__toggle {
  border: none;
  background: transparent;
  padding: 14px 18px;
  cursor: pointer;
  color: #94a3b8;
  font-size: 13px;
  transition: transform 0.25s ease;
}

.sidebar-menu__item.is-open .sidebar-menu__toggle {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.sidebar-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #f8fafc;
  display: none;
}

.sidebar-menu__item.is-open .sidebar-submenu {
  display: block;
}

.sidebar-submenu__link {
  display: block;
  padding: 10px 18px 10px 30px;
  font-size: 14px;
  color: #475569;
  text-decoration: none;
  border-top: 1px solid #f1f5f9;
}

.sidebar-submenu__link:hover {
  color: var(--primary-color);
  font-weight: 600;
}

/* 서랍 하단 정보 */
.site-sidebar__footer {
  padding: 16px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.sidebar-contact {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 10px;
}

.sidebar-contact p {
  margin: 3px 0;
}

.sidebar-sns {
  display: flex;
  gap: 14px;
  font-size: 18px;
}

.sidebar-sns a {
  color: #64748b;
}

/* ------------------------------------------------------------
   6. 푸터 (Footer - nonamechurch 다크 스타일)
   ------------------------------------------------------------ */
.site-footer {
  background: var(--nn-footer-bg);
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
}

/* 푸터 상단 링크 바 */
.site-footer__links {
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0;
}

.site-footer__link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__link-list a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s;
}

.site-footer__link-list a:hover {
  color: #ffffff;
}

/* 푸터 메인 본문 */
.site-footer__main {
  padding: 40px 0 20px;
}

.site-footer__main-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* 푸터 로고 */
.site-footer__logo-col .site-footer__logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-footer__logo-img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1); /* 흰색 로고 처리 */
  opacity: 0.9;
}

.site-footer__logo-text {
  display: flex;
  flex-direction: column;
}

.site-footer__logo-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.site-footer__logo-sub {
  color: #94a3b8;
  font-size: 10px;
  letter-spacing: 1px;
}

/* 푸터 정보 */
.site-footer__info-col {
  flex: 1;
  min-width: 280px;
}

.site-footer__address {
  font-style: normal;
  color: #94a3b8;
  font-size: 13.5px;
}

.site-footer__address p {
  margin: 4px 0;
}

.site-footer__address .sep {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.2);
}

.site-footer__address strong {
  color: #e2e8f0;
}

/* 푸터 SNS */
.site-footer__sns {
  display: flex;
  gap: 14px;
}

.site-footer__sns .footer-sns-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 17px;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s;
}

.site-footer__sns .footer-sns-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

/* 저작권 표시 */
.site-footer__copyright {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
  font-size: 12.5px;
}

.site-footer__copyright p {
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   푸터 반응형
   ------------------------------------------------------------ */
@media (max-width: 767.98px) {
  .site-footer__main-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .site-footer__logo-col .site-footer__logo-link {
    justify-content: center;
  }
  .site-footer__link-list {
    justify-content: center;
    gap: 16px;
  }
  .site-footer__sns {
    justify-content: center;
  }
}

/* ------------------------------------------------------------
   7. 맨 위로 가기 플로팅 버튼 (Scroll to Top)
   ------------------------------------------------------------ */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-color, #2c3e50);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(44, 62, 80, 0.28);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s, box-shadow 0.2s;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: #1a252f;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(44, 62, 80, 0.4);
}

@media (max-width: 575.98px) {
  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}

/* ------------------------------------------------------------
   8. 서브페이지 2단 레이아웃 (브레드크럼 + 좌측 사이드바 + 우측 본문)
   ------------------------------------------------------------ */
.nn-subpage-wrap {
  background: #ffffff;
  padding: 18px 0 80px;
  min-height: 65vh;
}

/* 브레드크럼 (🏠 > 대메뉴 > 서브메뉴) */
.nn-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 18px;
  padding-left: 4px;
}

.nn-breadcrumb__home,
.nn-breadcrumb__item {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
}

.nn-breadcrumb__home:hover,
.nn-breadcrumb__item:hover {
  color: #4c96c7;
}

.nn-breadcrumb__item.is-current {
  color: #64748b;
  font-weight: 500;
}

.nn-breadcrumb__sep {
  font-size: 10px;
  color: #cbd5e1;
}

/* 좌측 사이드바 + 우측 본문 2단 그리드 */
.nn-subpage-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* 좌측 LNB 사이드바 */
.nn-sub-sidebar {
  width: 100%;
}

.nn-sub-sidebar__header {
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
  color: #ffffff;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
  border-radius: 8px 8px 0 0;
  border-bottom: 3px solid #d4af37;
}

.nn-sub-sidebar__header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.nn-sub-sidebar__list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  background: #ffffff;
}

.nn-sub-sidebar__item {
  border-bottom: 1px solid #eef2f6;
}

.nn-sub-sidebar__item:last-child {
  border-bottom: none;
}

.nn-sub-sidebar__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.nn-sub-sidebar__link:hover {
  background: #f1f5f9;
  color: #1e3a5f;
}

.nn-sub-sidebar__item.is-active > .nn-sub-sidebar__link {
  background: #1e3a5f;
  color: #ffffff;
  font-weight: 700;
}

/* 좌측 사이드바 내 3뎁스 하위 목록 (다음세대 등) */
.nn-sub-sidebar__sublist {
  list-style: none;
  margin: 0;
  padding: 6px 12px 10px 20px;
  background: #f8fafc;
  border-top: 1px solid #eef2f6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 6px;
}

.nn-sub-sidebar__sublink {
  display: block;
  padding: 6px 8px;
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.15s, color 0.15s;
}

.nn-sub-sidebar__sublink:hover {
  background: #e2e8f0;
  color: #1e3a5f;
}

.nn-sub-sidebar__subitem.is-active .nn-sub-sidebar__sublink {
  background: #1e3a5f;
  color: #ffffff;
  font-weight: 700;
}

/* 우측 본문 영역 */
.nn-sub-main {
  min-width: 0;
  width: 100%;
}

.nn-sub-main__header {
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 32px;
  position: relative;
}

.nn-sub-main__title {
  display: inline-block;
  margin: 0;
  padding: 8px 4px 12px;
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  position: relative;
}

.nn-sub-main__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2.5px;
  background: linear-gradient(90deg, #1e3a5f 0%, #b48a4e 100%);
}

/* 서브페이지 본문 내부 기존 중복 헤더/서브탭 정리 */
.nn-sub-main__body > .page-header,
.nn-sub-main__body .page-header {
  display: none !important;
}

.nn-sub-main__body > .section,
.nn-sub-main__body .section {
  padding-top: 10px !important;
  padding-bottom: 40px !important;
}

.nn-sub-main__body .container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (min-width: 992px) {
  .nn-sub-main__body .about-subnav,
  .nn-sub-main__body .education-subnav,
  .nn-sub-main__body .vision-subnav,
  .nn-sub-main__body .vision-subnav-wrap,
  .nn-sub-main__body .community-subnav,
  .nn-sub-main__body .gca-subnav,
  .nn-sub-main__body .tabs-container {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .nn-subpage-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .nn-sub-sidebar {
    display: none;
  }
  .nn-sub-main__body .tabs-container {
    width: 100% !important;
    margin-bottom: 30px !important;
  }
  .nn-sub-main__body .tabs-container > div {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 1fr !important;
    gap: 10px !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    overflow-x: visible !important;
    white-space: normal !important;
    width: 100% !important;
  }
  .nn-sub-main__body .tabs-container .tab-btn {
    width: 100% !important;
    min-height: 46px !important;
    height: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 10px 12px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #ffffff !important;
    color: #4a5568 !important;
    text-align: center !important;
    transition: none !important;
    box-shadow: none !important;
  }
  .nn-sub-main__body .tabs-container .tab-btn i {
    font-size: 13px !important;
    margin-right: 0 !important;
    opacity: 0.85;
  }
  .nn-sub-main__body .tabs-container .tab-btn:hover {
    color: var(--primary-color, #2c3e50) !important;
    border-color: #cbd5e1 !important;
    background-color: #f8fafc !important;
  }
  .nn-sub-main__body .tabs-container .tab-btn.active,
  .nn-sub-main__body .tabs-container .tab-btn.active:hover,
  .nn-sub-main__body .tabs-container .tab-btn.active:focus,
  .nn-sub-main__body .tabs-container .tab-btn.active:active {
    background-color: #344256 !important;
    color: #ffffff !important;
    border: 1px solid #344256 !important;
    box-shadow: inset 0 -3px 0 #d9534f !important;
    font-weight: 600 !important;
  }
}


