/**
 * 인제대학교 GOU LMS 메인 페이지 커스텀 CSS
 * 브랜드 색상: 메인 #1C3FA6, 포인트 #0B1F4D
 */

/* 0. 기존 요소 숨기기 */
#content #visual {
  display: none !important;
}

/* 1. 폰트 선언 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* 2. 레이아웃 기본 */
body {
  font-family:
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    "Malgun Gothic",
    sans-serif !important;
  overflow-x: hidden;
}

#content {
  padding-top: 0 !important;
  min-width: unset !important;
}

/* 3. 헤더 - 상단 다크블루 가로 바 */
#header.xnmain {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 96px !important;
  min-width: unset !important;
  background: transparent !important;
  z-index: 9999 !important;
  padding: 0 40px !important;
}

#header.xnmain.h_line {
  background: transparent !important;
  box-shadow: none;
}

#header.xnmain .xnmain_header_inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1720px;
  margin: 0 auto;
}

#header.xnmain .xnmain_header_logo {
  margin: 0;
  flex-shrink: 0;
}

#header.xnmain .xnmain_header_logo a {
  display: block;
}

#header.xnmain .xnmain_header_logo img {
  width: auto;
  height: 48px;
}

#header.xnmain .xnmain_header_nav {
  margin: 0;
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 24px;
}

#header.xnmain .xn-header-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#header.xnmain .xn-header-menu > .menu-item {
  position: relative;
}

#header.xnmain .xn-header-menu > .menu-item > a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  transition: color 0.2s ease;
  position: relative;
  padding: 8px 0;
}

#header .xn-header-menu li:hover,
#header .xn-header-menu li:hover a,
#header.xnmain .xn-header-menu > .menu-item:hover,
#header.xnmain .xn-header-menu > .menu-item > a:hover {
  background-color: transparent !important;
  background: none !important;
}

#header.xnmain .xn-header-menu > .menu-item > a:hover {
  color: rgba(255, 255, 255, 0.85);
}

#header.xnmain .xn-header-menu > .menu-item > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.2s ease;
}

#header.xnmain .xn-header-menu > .menu-item > a:hover::after {
  width: 100%;
}

#header.xnmain .xnmain_header-menu-dep2 {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  background-color: #1c3fa6;
  border-radius: 8px;
  list-style: none;
  margin: 0;
  padding: 12px 0;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 180px;
}

#header.xnmain .xnmain_header-menu-dep2 .submenu-item a {
  display: block;
  padding: 10px 24px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

#header.xnmain .xnmain_header-menu-dep2 .submenu-item:hover a {
  color: #fff;
  background-color: transparent !important;
}

#header.xnmain .xnmain_header_right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* 헤더 우측 버튼: 로그인, 매뉴얼 (둥근 파란 버튼, 흰 글자) */
#header.xnmain .xnmain_header_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 22px;
  background-color: #1c3fa6;
  border: none;
  border-radius: 999px;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

#header.xnmain .xnmain_header_btn:hover {
  background-color: #254bb8;
  color: #fff !important;
  transform: translateY(-1px);
}

#header.xnmain .xnmain_header_btn .xninje-gou-lms_login_icon,
#header.xnmain .xnmain_header_btn .xninje-gou-lms_download_icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

#header.xnmain .xnmain_btn_login {
  /* alias */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 22px;
  background-color: #1c3fa6;
  border: none;
  border-radius: 999px;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

#header.xnmain .xnmain_btn_login:hover {
  background-color: #254bb8;
  transform: translateY(-1px);
}

#header.xnmain .xnmain_btn_login .xninje-gou-lms_login_icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* 로그인 시 계정 버튼 (동일 스타일) */
#header.xnmain .xnmain_header_btn_account {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #1c3fa6;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  border: none;
}

#header.xnmain .xn-change_language-container {
  margin: 0;
  position: relative;
}

#header.xnmain .xn-change_language-title {
  display: none;
}

#header.xnmain .xn-change_language-select_box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}

#header.xnmain.h_line .xn-change_language-select_box {
  border-color: #ddd;
  color: #333;
}

/* 계정 메뉴 v2 스타일 (동일 내용 user-menu-custom.css 에서 재사용 가능) */
#header .btn-dropdown-user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #333;
  border-radius: 40px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
}

#header .btn-dropdown-user-menu .xn-header-member-btn-text {
  max-width: 100px;
  vertical-align: top;
}

#header .xn-header-member-btn-group {
  position: relative;
}

#header .xn-v2-user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  left: auto;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  min-width: 240px;
  max-width: 300px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 1000;
  padding: 0;
  overflow: hidden;
  display: block;
}

#header .xn-header-member-btn-group.show .xn-v2-user-dropdown,
#header .xn-header-member-btn-group.active .xn-v2-user-dropdown,
#header .xn-v2-user-dropdown.show {
  opacity: 1;
  visibility: visible;
  display: block !important;
}

#header .xn-v2-user-info {
  padding: 1rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

#header .xn-v2-user-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.5rem;
}

#header .xn-v2-user-id {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
}

#header .xn-v2-user-login-info {
  padding-top: 0.75rem;
  border-top: 1px solid #e9ecef;
  margin-top: 0.75rem;
}

#header .xn-v2-user-login-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

#header .xn-v2-dropdown-group {
  padding: 0.25rem 0;
}

#header .xn-v2-dropdown-group:not(:last-child) {
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 0.125rem;
}

#header .xn-v2-dropdown-group-title {
  padding: 0.125rem 0.75rem;
  padding-left: 1rem;
  font-size: 12px;
  font-weight: bold;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#header .xn-v2-dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  margin: 0 0.375rem;
  text-decoration: none;
  color: #212529;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: calc(100% - 0.75rem);
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 8px;
}

#header .xn-v2-dropdown-item-icon {
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

#header .xn-v2-icon-admin-page {
  background-image: url("/customs/main/xn-v2-icon-admin-page.svg");
}

#header .xn-v2-icon-course-dashboard {
  background-image: url("/customs/main/xn-v2-icon-course-dashboard.svg");
}

#header .xn-v2-icon-mypage {
  background-image: url("/customs/main/xn-v2-icon-mypage.svg");
}

#header .xn-v2-icon-go-to-lms {
  background-image: url("/customs/main/xn-v2-icon-go-to-lms.svg");
}

#header .xn-v2-icon-mypage-dashboard {
  background-image: url("/customs/main/xn-v2-icon-mypage-dashboard.svg");
}

#header .xn-v2-icon-myinformation {
  background-image: url("/customs/main/xn-v2-icon-myinformation.svg");
}

#header .xn-v2-icon-re-authentication {
  background-image: url("/customs/main/xn-v2-dropdown-item-icon.svg");
}

#header .xn-v2-icon-edit-password {
  background-image: url("/customs/main/xn-v2-icon-edit-password.svg");
}

#header .xn-v2-icon-mac-address {
  background-image: url("/customs/main/xn-v2-dropdown-item-icon.svg");
}

#header .xn-v2-icon-language {
  background-image: url("/customs/main/xn-v2-icon-canvas-language-settings.svg");
}

#header .xn-v2-icon-logout {
  background-image: url("/customs/main/xn-v2-icon-logout.svg");
}

#header .xn-v2-dropdown-item:hover:not(.xn-v2-logout-item) {
  background-color: #f8f9fa;
}

#header
  .xn-v2-dropdown-item:hover:not(.xn-v2-logout-item)
  .xn-v2-dropdown-item-text {
  color: #1c3fa6;
}

#header .xn-v2-logout-group {
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

#header .xn-v2-logout-item {
  padding: 0;
  margin: 0 0.375rem;
  margin-bottom: 0;
}

#header .xn-v2-logout-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5rem 0.75rem;
  border: none;
  background: none;
  color: #212529;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  font-family: inherit;
  margin: 0;
  border-radius: 8px;
}

#header .xn-v2-logout-item:hover .xn-v2-logout-button,
#header .xn-v2-logout-button:hover {
  background-color: #fff5f5;
  color: #dc3545;
}

#header .xn-v2-language-help-icon {
  cursor: pointer;
  margin-left: 0.5rem;
  opacity: 0.6;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* 4. 슬라이드 = 배경 (전체 뷰포트, main #content에 겹침) */
.xnmain_slide_bg {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  overflow: hidden;
}

.xnmain_slide_bg .widget.xnmain_main_slider {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.xnmain_slide_bg .xnmain_main_slider .xn-widget-container,
.xnmain_main_slider .xn-widget-container {
  padding: 0 !important;
  background: transparent !important;
  margin: 0 !important;
}

.xnmain_main_slider .xn-widget-slider-container {
  width: 100% !important;
  height: 100vh !important;
  overflow: hidden !important;
}

.xnmain_main_slider .carousel-item,
.xnmain_main_slider .carousel-item img {
  width: 100% !important;
  height: 100vh !important;
  object-fit: cover !important;
  object-position: center center;
}

/* 슬라이드 인디케이터·이전/다음 버튼: 오버레이 위에 올려 클릭 가능 */
.xnmain_slide_bg .carousel-control-prev,
.xnmain_slide_bg .carousel-control-next,
.xnmain_main_slider .carousel-control-prev,
.xnmain_main_slider .carousel-control-next {
  z-index: 5;
  pointer-events: auto;
  width: 10%;
}

.xnmain_slide_bg .carousel-indicators,
.xnmain_main_slider .carousel-indicators {
  z-index: 15;
  pointer-events: auto;
}

/* 슬라이드 인디케이터: 슬라이드 하단, 캡션과 동일 왼쪽 정렬 */
.xnmain_slide_bg .carousel-indicators,
.xnmain_main_slider .carousel-indicators {
  bottom: 25% !important;
  top: auto !important;
  left: 200px !important;
  right: auto !important;
  margin: 0;
  justify-content: flex-start;
}

.xnmain_slide_bg .carousel-indicators li,
.xnmain_main_slider .carousel-indicators li {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #fff;
  margin: 0 4px;
}

.xnmain_slide_bg .carousel-indicators li.active,
.xnmain_main_slider .carousel-indicators li.active {
  background-color: #3767f2;
}

/* 슬라이드 캡션: 세로 가운데 정렬, 왼쪽에서 200px */
.xnmain_main_slider .xnws-caption.carousel-caption,
.xnmain_slide_bg .xnws-caption.carousel-caption {
  top: 50% !important;
  left: 200px !important;
  right: auto !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  text-align: left;
  padding: 0;
  margin: 0;
  max-width: none;
}

.xnmain_main_slider .xnws-caption .slide-wrap,
.xnmain_slide_bg .xnws-caption .slide-wrap {
  margin: 0;
  text-align: left;
}

.xnmain_main_slider .xnws-caption .slide-wrap h1,
.xnmain_slide_bg .xnws-caption .slide-wrap h1 {
  color: #fff;
  font-family: "Jalnan 2 TTF", sans-serif;
  font-size: 56px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0 0 0.5rem 0;
  text-align: left;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.xnmain_main_slider .xnws-caption .slide-wrap h1 span.blue,
.xnmain_slide_bg .xnws-caption .slide-wrap h1 span.blue {
  color: #3767f2;
}

.xnmain_main_slider .xnws-caption .slide-wrap p,
.xnmain_slide_bg .xnws-caption .slide-wrap p {
  color: #fff;
  font-family: Pretendard, sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin: 0 0 0.75rem 0;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 5. 콘텐츠 오버레이 (슬라이드 위에 떠있음, 헤더/푸터와 겹침) */
.xnmain_content_overlay {
  position: relative;
  z-index: 1;
  max-height: 100vh;
  padding: 104px 100px 140px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}
.xnmain_content_overlay > * {
  pointer-events: auto;
}

.xnmain_btn_section {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  width: 400px;
  max-width: 100%;
  margin-bottom: 24px;
}

/* 로그인/LMS 바로가기 · 매뉴얼 버튼 동일 넓이(간격 제외 전체의 절반) */
.xnmain_btn_section > a {
  flex: 1 1 0;
  min-width: 0;
}

.xnmain_btn_login_main,
.xnmain_btn_manual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 80px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.xnmain_btn_login_main {
  background-color: #1c3fa6;
  color: #fff !important;
}

.xnmain_btn_login_main:hover {
  background-color: #0b1f4d;
  color: #fff !important;
}

/* 버튼 내 텍스트 → 앞, 아이콘 → 뒤 순서 */
.xnmain_btn_section > a span {
  order: -1;
}
.xnmain_btn_section > a img {
  order: 0;
}

.xnmain_btn_login_main .xninje-gou-lms_login_icon,
.xnmain_btn_manual .xninje-gou-lms_download_icon,
.xnmain_btn_section > a .xninje-gou-lms_login_icon,
.xnmain_btn_section > a .xninje-gou-lms_download_icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.xnmain_btn_manual {
  background-color: #0b1f4d !important;
  color: #fff !important;
  border: none;
}

.xnmain_btn_manual:hover {
  background-color: #1c3fa6 !important;
  color: #fff !important;
}

/* 로그인 시 오버레이: 통합 로그인 블록 */
.xnmain_login_block {
  width: 400px;
  max-width: 100%;
  margin-bottom: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.xnmain_login_block_title_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(11, 31, 77, 0.12);
}

.xnmain_login_block_title {
  font-size: 18px;
  font-weight: 700;
  color: #0b1f4d;
}

.xnmain_btn_logout {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff !important;
  background: #6c757d;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.xnmain_btn_logout:hover {
  background: #5a6268;
  color: #fff !important;
}

.xnmain_login_links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.xnmain_login_block .xn-main-link-wrap a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #1c3fa6;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.xnmain_login_block .xn-main-link-wrap a:hover {
  background: #0b1f4d;
  color: #fff !important;
}

.xnmain_login_block .xn-main-link-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.xnmain_login_info_wrap {
  padding-top: 16px;
  border-top: 1px solid rgba(11, 31, 77, 0.12);
  font-size: 13px;
  color: #333;
}

.xnmain_login_info_name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
  color: #0b1f4d;
}

.xnmain_login_info_row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.xnmain_login_info_label {
  opacity: 0.8;
}

.xnmain_login_info_value {
  font-weight: 500;
}

/* 보드 위젯: 흰 배경, 타이틀 왼쪽 정렬 */
.xnmain_panel {
  width: 400px;
  max-width: 100%;
  background: #fff !important;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1) !important;
  padding: 0;
  overflow: visible;
}

.xnmain_panel.no_line {
  border-bottom: none;
}

.xnmain_panel_manual {
  margin-top: 10px;
}

.xnmain_widget_notice .xn-widget-container,
.xnmain_widget_menual .xn-widget-container {
  padding: 40px !important;
  background: #fff !important;
  border-radius: 8px;
  min-height: 300px;
}

.xn-widget-container.board_v2 {
  padding: 36px !important;
  min-height: 280px;
}

.xn-widget-container.board_v2 .xnbw-title-wrap {
  border-bottom: none;
}

.xn-widget-container.board_v2 .xnbw-board-post-list {
  padding: 0;
}

.xn-widget-container.board_v2 .xnbw-item-container {
  height: unset;
  padding-top: 6px;
  padding-bottom: 6px;
}

.xnmain_widget_notice .xnbw-title-wrap,
.xnmain_widget_menual .xnbw-title-wrap,
.xnmain_panel .xnbw-top-container .xnbw-title-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  text-align: left !important;
  width: 100% !important;
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

/* 게시판 위젯 탭 제거 */
.xnmain_widget_notice .xnbw-category-tab-wrap,
.xnmain_widget_menual .xnbw-category-tab-wrap {
  display: none !important;
}

.xn-widget-container.board_v2 .xnbw-more-tab span {
  display: none !important;
}

.xn-widget-container.board_v2 .xnbw-more-tab-plus-icon {
  width: 30px;
  height: 30px;
  background-image: url("/customs/main/xninje-gou-lms_more_icon.svg");
}

/* board_v2: 카테고리 wrap 마진 제거 (선택자 구체화로 우선순위 상승) */
.xn-widget-container.board_v2 .xnbw-top-container .xnbw-category-wrap,
body .xn-widget-container.board_v2 .xnbw-category-wrap {
  margin: 0 !important;
}

.xnmain_widget_notice .xnbw-category-wrap,
.xnmain_widget_menual .xnbw-category-wrap {
  margin: 0 !important;
}

/* board_v2: 분류 라벨 - 선택자 구체화로 height, border-radius 적용 */
.xn-widget-container.board_v2
  .xnbw-items-container
  .xnbw-item-container
  .xnbw-post-list-category,
.xn-widget-container.board_v2 .xnbw-item-container .xnbw-post-list-category,
body .xn-widget-container.board_v2 .xnbw-post-list-category {
  border: none !important;
  padding: 0 !important;
  height: auto !important;
  border-radius: 0 !important;
}

/* 게시판 위젯 분류(카테고리) 라벨 - 기존 스타일 제거 후 적용 */
.xnmain_widget_notice .xnbw-post-list-category,
.xnmain_widget_menual .xnbw-post-list-category,
.xn-widget-container.board_v2 .xnbw-post-list-category {
  color: #1c3fa6;
  font-family: Pretendard, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  background: none;
  padding: 0;
  margin: 0;
}

.xnmain_widget_notice .xnbw-title,
.xnmain_widget_menual .xnbw-title,
.xnmain_panel .xnbw-top-container .xnbw-title-wrap .xnbw-title,
.xn-widget-container.board_v2 .xnbw-title {
  font-size: 32px;
  font-weight: 700;
  color: #222;
  text-align: left !important;
  text-shadow: none;
  width: 100%;
  max-width: 100%;
}

.xnmain_widget_notice .xnbw-item-container,
.xnmain_widget_menual .xnbw-item-container,
.xnmain_widget_notice .xnbw-post-list-item,
.xnmain_widget_menual .xnbw-post-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  margin-bottom: 0;
  border-bottom: 1px solid #eee;
  transition: opacity 0.2s ease;
}

.xnmain_widget_notice .xnbw-item-container:last-child,
.xnmain_widget_menual .xnbw-item-container:last-child,
.xnmain_widget_notice .xnbw-post-list-item:last-child,
.xnmain_widget_menual .xnbw-post-list-item:last-child {
  border-bottom: none;
}

.xnmain_widget_notice .xnbw-item-container:hover,
.xnmain_widget_menual .xnbw-item-container:hover,
.xnmain_widget_notice .xnbw-post-list-item:hover,
.xnmain_widget_menual .xnbw-post-list-item:hover {
  opacity: 0.9;
}

.xnmain_widget_notice .xnbw-post-list-title,
.xnmain_widget_menual .xnbw-post-list-title,
.xnmain_widget_notice .xnbw-board-post-list .xnbw-post-list-title,
.xnmain_widget_menual .xnbw-board-post-list .xnbw-post-list-title,
.xn-widget-container.board_v2 .xnbw-post-list-title {
  flex: 1;
  font-size: 18px;
  font-weight: 500;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  text-shadow: none;
}

.xnmain_widget_notice .xnbw-post-list-created,
.xnmain_widget_menual .xnbw-post-list-created,
.xnmain_widget_notice .xnbw-board-post-list .xnbw-post-list-created,
.xnmain_widget_menual .xnbw-board-post-list .xnbw-post-list-created,
.xn-widget-container.board_v2 .xnbw-post-list-created {
  font-size: 15px;
  color: #777777;
}

/* 6. 푸터 - main #content에 겹침 (fixed bottom) */
.xnmain_footer_wrap {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
}

/* 7. 푸터 - position absolute, bottom 0 / 다크블루, 좌 연락처/저작권 | 우 링크 3개 */
#footer.xnmain_footer {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  z-index: 1;
  background-color: transparent !important;
  padding: 36px 40px 32px !important;
  min-width: unset !important;
  border-top: none;
  text-align: left;
}

#footer.xnmain_footer .xnmain_footer_inner {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 24px;
  max-width: 1720px;
  margin: 0 auto;
  text-align: left;
}

#footer.xnmain_footer .xnmain_footer_left {
  flex: 1;
  text-align: left;
}

#footer.xnmain_footer .xnmain_footer_info {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 8px;
  text-align: left;
}

#footer.xnmain_footer .xnmain_footer_copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-align: left;
}

#footer.xnmain_footer .xnmain_footer_right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-shrink: 0;
  text-align: left;
}

#footer.xnmain_footer .xnmain_footer_link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

/* 개인정보취급방침: 연보라/라벤더 */
#footer.xnmain_footer .xnmain_footer_link_external:first-of-type {
  color: #a8b4f0 !important;
}

#footer.xnmain_footer .xnmain_footer_link_external:first-of-type:hover {
  opacity: 0.9;
  color: #b8c4f8 !important;
}

/* 이메일무단수집거부, 패밀리사이트: 흰색 */
#footer.xnmain_footer .xnmain_footer_link_external:not(:first-of-type),
#footer.xnmain_footer .xnmain_footer_fs_btn {
  color: #fff !important;
}

#footer.xnmain_footer .xnmain_footer_link_external:not(:first-of-type):hover,
#footer.xnmain_footer .xnmain_footer_fs_btn:hover {
  opacity: 0.9;
  color: #fff !important;
}

/* 외부 링크 아이콘 - 개인정보취급방침(스카이블루), 이메일무단수집거부(흰색) */
#footer.xnmain_footer .xnmain_footer_link_external::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 4px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  vertical-align: 0.1em;
}

#footer.xnmain_footer .xnmain_footer_link_external:first-of-type::after {
  background-image: url("/customs/main/xninje-gou-lms_open_icon-skyblue.svg");
}

#footer.xnmain_footer .xnmain_footer_link_external:not(:first-of-type)::after {
  background-image: url("/customs/main/xninje-gou-lms_open_icon.svg");
}

/* 패밀리사이트는 아이콘 없음 */
#footer.xnmain_footer .xnmain_footer_fs_btn::after {
  display: none;
}

/* 패밀리사이트 위로 열리는 드롭다운 */
#footer.xnmain_footer .xnmain_footer_dropup {
  position: relative;
  z-index: 100;
  display: inline-block;
}

#footer.xnmain_footer .xnmain_footer_fs_btn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
  white-space: nowrap;
}

#footer.xnmain_footer .xnmain_footer_dropdown.dropdown-menu {
  position: absolute !important;
  display: none;
  bottom: 100% !important;
  top: auto !important;
  left: auto !important;
  right: 0 !important;
  margin-bottom: 6px;
  margin-top: 0;
  background: rgba(11, 31, 77, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 0;
  min-width: 140px;
  max-width: 220px;
  width: max-content;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
  z-index: 101;
  flex-direction: column;
  transform: none !important;
}

#footer.xnmain_footer .xnmain_footer_dropdown.dropdown-menu.show {
  display: flex !important;
  flex-direction: column !important;
  transform: none !important;
}

#footer.xnmain_footer .xnmain_footer_dropdown .dropdown-item,
#footer.xnmain_footer .xnmain_footer_dropdown a {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 14px;
  padding: 8px 16px;
  text-decoration: none;
  display: block;
  transition: background 0.2s ease;
  white-space: nowrap;
}

#footer.xnmain_footer .xnmain_footer_dropdown .dropdown-item:hover,
#footer.xnmain_footer .xnmain_footer_dropdown a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

#footer .footer_link,
#footer.xnmain_footer .xnmain_footer_dropdown .footer_link {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  width: 100%;
}

#footer.xnmain_footer .xnmain_footer_dropdown .footer_link li {
  display: block;
}

#footer.xnmain_footer .xnmain_footer_dropdown .footer_link li a {
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 8px 16px;
  display: block;
  white-space: nowrap;
}

/* 8. 반응형 */
@media (max-width: 1440px) {
  #header.xnmain .xnmain_header_inner {
    padding: 0 24px;
  }

  #header.xnmain .xn-header-menu {
    gap: 28px;
  }

  #header.xnmain .xn-header-menu > .menu-item > a {
    font-size: 16px;
  }

  .xnmain_content_overlay {
    padding: 96px 24px;
  }

  .xnmain_btn_section,
  .xnmain_panel,
  .xnmain_login_block {
    width: 360px;
  }
}

@media (max-width: 1280px) {
  #header.xnmain {
    height: 72px !important;
    padding: 0 24px !important;
  }

  /* 슬라이드를 문서 흐름으로 두고, 오버레이는 슬라이드 하단에 배치 */
  .xnmain_slide_bg {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 70vh !important;
    min-height: 300px;
    z-index: 0 !important;
  }

  .xnmain_slide_bg .widget.xnmain_main_slider {
    height: 100% !important;
  }

  .xnmain_slide_bg .carousel-inner,
  .xnmain_slide_bg .carousel-item,
  .xnmain_slide_bg .carousel-item img {
    height: 100% !important;
  }

  .xnmain_main_slider .xn-widget-slider-container {
    height: 100% !important;
  }

  .xnmain_slide_bg .carousel-indicators,
  .xnmain_main_slider .carousel-indicators {
    bottom: 32px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    justify-content: center;
  }

  /* 슬라이드 캡션: 슬라이드 기준 가로·세로 가운데 */
  .xnmain_main_slider .xnws-caption.carousel-caption,
  .xnmain_slide_bg .xnws-caption.carousel-caption {
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    text-align: center;
  }

  .xnmain_slide_bg .xnws-caption .slide-wrap {
    text-align: center;
  }

  .xnmain_content_overlay {
    position: relative;
    max-height: none;
    padding: 24px;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
  }

  /* 푸터도 문서 흐름으로 슬라이드·오버레이 아래에 배치 */
  .xnmain_footer_wrap {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
  }

  #footer.xnmain_footer {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    background-color: #0b1f4d !important;
  }

  #header.xnmain .xnmain_header_logo img {
    height: 48px;
    width: auto;
  }

  #header.xnmain .xn-header-menu {
    gap: 24px;
  }

  #header.xnmain .xn-header-menu > .menu-item > a {
    font-size: 15px;
  }

  .xnmain_btn_section {
    flex-direction: column;
    align-items: stretch;
    width: 200px;
    min-width: 200px;
  }

  .xnmain_btn_section > a {
    flex: none;
  }

  /* 게시판 위젯(패널)은 가로로 꽉 차게 */
  .xnmain_panel,
  .xnmain_login_block {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 1208px) {
  .xnmain_btn_section {
    height: 160px;
    width: 200px;
  }

  .xnmain_btn_section > a,
  .xnmain_btn_login_main,
  .xnmain_btn_manual {
    width: 200px !important;
    height: 50% !important;
    min-height: 0;
  }
}

@media (max-width: 1024px) {
  #header.xnmain {
    height: 72px !important;
    padding: 0 20px !important;
    background: transparent !important;
    box-shadow: none;
  }

  #header.xnmain .xnmain_header_nav {
    display: none;
  }

  .xnmain_content_overlay {
    padding: 72px 20px 120px;
    align-items: center;
  }

  .xnmain_btn_section,
  .xnmain_panel,
  .xnmain_login_block {
    width: 100%;
    max-width: 480px;
  }

  #footer.xnmain_footer .xnmain_footer_inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .xnmain_main_slider .xnws-caption.carousel-caption,
  .xnmain_slide_bg .xnws-caption.carousel-caption {
    left: 24px !important;
  }

  .xnmain_main_slider .xnws-caption .slide-wrap h1,
  .xnmain_slide_bg .xnws-caption .slide-wrap h1 {
    font-size: 1.75rem;
  }

  .xnmain_widget_notice .xnbw-title,
  .xnmain_widget_menual .xnbw-title {
    font-size: 18px;
  }

  #footer.xnmain_footer {
    padding: 28px 24px !important;
  }

  #footer.xnmain_footer .xnmain_footer_inner {
    padding: 0;
  }

  #footer.xnmain_footer .xnmain_footer_copy {
    font-size: 12px;
  }

  #footer.xnmain_footer .xnmain_footer_right {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .xnmain_main_slider .xnws-caption.carousel-caption,
  .xnmain_slide_bg .xnws-caption.carousel-caption {
    left: 16px !important;
  }

  .xnmain_main_slider .xnws-caption .slide-wrap h1,
  .xnmain_slide_bg .xnws-caption .slide-wrap h1 {
    font-size: 1.5rem;
  }

  #header.xnmain {
    padding: 0 16px !important;
  }

  #header.xnmain .xnmain_header_logo img {
    height: 48px;
    width: auto;
  }

  .xnmain_content_overlay {
    padding: 72px 16px 100px;
  }

  .xnmain_btn_section {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 20px;
  }

  .xnmain_widget_notice .xnbw-post-list-item,
  .xnmain_widget_menual .xnbw-post-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
