/* portal.css - 헤더 부분 수정 */

@font-face {
  font-family: 'SUIT';
  font-weight: 300;
  src: url('../../common/fonts/suit/SUIT-Light.woff2') format('woff2');
}

@font-face {
  font-family: 'SUIT';
  font-weight: 400;
  src: url('../../common/fonts/suit/SUIT-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'SUIT';
  font-weight: 500;
  src: url('../../common/fonts/suit/SUIT-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'SUIT';
  font-weight: 600;
  src: url('../../common/fonts/suit/SUIT-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'SUIT';
  font-weight: 700;
  src: url('../../common/fonts/suit/SUIT-Bold.woff2') format('woff2');
}

@font-face {
  font-family: 'SUIT';
  font-weight: 800;
  src: url('../../common/fonts/suit/SUIT-ExtraBold.woff2') format('woff2');
}

@font-face {
  font-family: 'SUIT';
  font-weight: 900;
  src: url('../../common/fonts/suit/SUIT-Heavy.woff2') format('woff2');
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: "SUIT", "notosans", "Roboto", "Apple Gothic", "맑은고딕",
  "Malgun Gothic", Helvetica, Arial, sans-serif;
}

input, select, button {
  vertical-align: middle;
  font-family: "SUIT", "notosans", "Roboto", "Apple Gothic", "맑은고딕",
  "Malgun Gothic", Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
}

button {
  margin: 0;
  padding: 0;
  font-family: "SUIT", "notosans", "Roboto", "Apple Gothic", "맑은고딕",
  "Malgun Gothic", Helvetica, Arial, sans-serif;
}

/* 페이지 세로 골격: 배경 스와이퍼와 분리해 body 가 헤더~푸터를 직접 배치한다 */
body {
  display: flex;
  flex-direction: column;
}

/* 콘텐츠 뒤에 깔리는 배경 전용 레이어.
   swiper 기본 CSS(.swiper { z-index: 1 })보다 우선하도록 이중 클래스로 지정한다 */
.bg-swiper.swiper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.bg-swiper > .swiper-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.bg-swiper .swiper-slide {
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* fade 효과의 비활성 슬라이드가 위에 겹쳐 클릭을 가로채는 것을 막는다 */
.swiper-fade .swiper-slide {
  pointer-events: auto;
}

.bg-swiper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.87) 100%),
  linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.22) 100%);
  pointer-events: none;
  z-index: 1;
}

/* 배경 슬라이드(z-index 0)와 그 위 딤 레이어(z-index 1) 위로 콘텐츠를 올린다 */
.main-section {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: auto;
  position: relative;
  z-index: 2;
}

/* 페이지네이션 */
.bg-swiper-pagination {
  display: flex;
  justify-content: center;
  padding: 30px 0;
  gap: 8px;
}

/* 배경 슬라이드 좌우 이동 버튼 (시안의 히어로 좌우 화살표) */
.bg-nav-btn {
  position: absolute;
  top: 45%;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s;
}

.bg-nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.bg-nav-prev {
  left: 60px;
}

.bg-nav-next {
  right: 60px;
}

.bg-nav-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.bg-nav-prev::after {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.bg-nav-next::after {
  transform: translate(-70%, -50%) rotate(45deg);
}

.bg-swiper-pagination .swiper-pagination-bullet {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
  margin: 0;
  transition: all 0.3s;
}

.bg-swiper-pagination .swiper-pagination-bullet-active {
  background: #fff;
  width: 60px;
}

.main-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* 헤더 스타일은 portal-chrome.css 로 이동 (하위 페이지와 공유) */

/* ========================================
   타이틀 섹션
   ======================================== */
.title-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 30px;
  text-align: center;
}

.main-title {
  text-align: center;
  font-size: 46px;
  font-style: normal;
  font-weight: 700;
  color: #fff;
  /* 시안 행간: 두 줄 110px ≈ 1.2 */
  line-height: 1.2;
  margin: 0 0 30px 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.title-k {
  color: #ffd700;
}

.title-m {
  color: #4ade80;
}

.title-r,
.title-g,
.title-i,
.title-s {
  color: #60a5fa;
}

.main-description {
  color: #FFF;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.571px;
  margin: 0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* 높이는 카드 내용(약 197px)에 맞춘다. 고정 높이를 주면 낮은 화면에서 스크롤이 생긴다 */
.service-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  max-width: 1064px;
  width: 100%;
  margin: 0 auto;
  gap: 26px;
}

.notice-card {
  width: 322px;
  height: 165px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  padding: 16px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.notice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notice-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.notice-more {
  font-size: 24px;
  color: #fff !important;
  text-decoration: none;
  transition: color 0.3s;
  line-height: 1;
}

.notice-more:hover {
  color: #ddd !important;
}

.notice-more:visited,
.notice-more:link,
.notice-more:active {
  color: #fff !important;
}

.notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.notice-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.notice-link {
  flex: 1;
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  margin-bottom: 2px;
  overflow: hidden;
}

.notice-link:link,
.notice-link:visited,
.notice-link:active {
  color: #fff !important;
}

.notice-link:hover {
  color: #fff !important;
}

.notice-link:hover .notice-text {
  text-decoration: underline;
}

.notice-badge {
  display: inline-block;
  padding: 0 6px;
  margin-right: 3px;
  background: #ff4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
  flex-shrink: 0;
}

.notice-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s;
  color: #fff !important;
}

.notice-empty {
  padding: 20px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

a.service-card-link:hover {
  text-decoration: none;
}

.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card {
  width: 440px;
  height: 161px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.4);
  padding: 18px 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: row;
  gap: 15px;
}

.service-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  flex: 1;
}

.service-info .service-title,
.service-info .service-description {
  margin: 0;
  color: #fff;
}

.service-info .service-title {
  font-size: 24px;
  font-weight: 600;
}

.service-info .service-description {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.058px;
}

.service-info .shortcut {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.service-info .shortcut .btn-shortcut {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 38px;
  border: 0;
  border-radius: 18px;
  background: #666;
  color: #fff;
}

.service-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.application-info {
  width: 156px;
  height: 197px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.application-info > a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  gap: 18px;
}

.application-info .application-title {
  text-underline: none;
  font-size: 24px;
  font-weight: 600;
  color: #FFFFFF !important;
}

.banner-section {
  height: 42px;
  background: #f0f0f0;
  border-top: 1px solid #ddd;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.banner-container {
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.banner-swiper {
  height: 100%;
}

.banner-swiper .swiper-wrapper {
  align-items: center;
}

.banner-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 36px;
  background: #fff;
}

.banner-swiper .swiper-slide a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.banner-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s;
}

.banner-btn:hover {
  opacity: 0.7;
}

.banner-btn-prev {
  left: 10px;
}

.banner-btn-next {
  right: 10px;
}

.banner-btn::after {
  font-size: 18px;
  color: #333;
  font-weight: 700;
}

/* 푸터 스타일은 portal-chrome.css 로 이동 (하위 페이지와 공유) */

/* 숨김이 기본값이며, 일주일 숨김 쿠키를 확인한 스크립트가 display:flex로 노출한다 */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-container {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 0;
}

.popup-close img {
  width: 100%;
  height: 100%;
}

.popup-header {
  padding: 30px 25px 20px;
  border-bottom: 2px solid #333;
}

.popup-category {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.popup-title {
  font-size: 22px;
  font-weight: 700;
  color: #000;
  margin: 10px 0 0 0;
  line-height: 1.4;
  word-break: keep-all;
}

.popup-body {
  flex: 1;
  padding: 25px;
  overflow-y: auto;
}

.popup-banner {
  width: 100%;
  height: auto;
  display: block;
}

.popup-content {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.popup-files {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
}

.popup-file-link {
  display: block;
  padding: 10px 15px;
  margin-bottom: 8px;
  background: #f8f8f8;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
}

.popup-file-link:hover {
  background: #e8e8e8;
  border-color: #ccc;
}

.popup-footer {
  padding: 18px 25px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.popup-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #666;
}

.popup-checkbox input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
}

.popup-btn-close {
  padding: 10px 24px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s;
}

.popup-btn-close:hover {
  background: #555;
}
