/*공통*/
@import url('https://cdn.jsdelivr.net/gh/fonts-archive/Pretendard/Pretendard.css');

/* 스타일가이드 */
:root { --main-color:#00367A; --grey-1:#f9f9f9; --grey-2:#f2f2f2; --grey-3:#d6dae1; --grey-4:#bdc4d1; --grey-5:#2c2f3b; --black:#000; --bg-color:#fff; --line-color:#d6dae1; }

/* 기본 스타일 커스터마이징 */
* { word-break: keep-all !important; }
body { font-size: 16px; font-weight: 400; font-family: 'Pretendard', sans-serif; color: var(--black); background: var(--bg-color); }
a { color: var(--main-color); text-decoration: none; }
a:hover { color: var(--grey-5); }
h1, h2, h3, h4, h5, h6 { color: var(--main-color); font-weight: 600; font-family: 'Pretendard', sans-serif;}
input, button {font-family: 'Pretendard', sans-serif;}
#wrapper { min-width: unset; } 
.pc-only { display:block; }
.mobile-only { display: none; }  
@media screen and (max-width: 1200px) {
.mobile-only { display: block; } 
.pc-only { display: none; } 
}

/* 레이아웃 크기 지정 커스터마이징 */
#hd, #wrapper, #ft { min-width: unset; }


/* 상단 레이아웃 커스터마이징 */
#hd { background: transparent; position: absolute; top: 0; width: 100%; z-index: 999; transition: background 0.3s ease; }
#hd_wrapper { display: flex; height: 95px; justify-content: space-between; align-items: center; position: relative; width: 100%; max-width: 1324px; margin: 0 auto; padding: 0 40px; }
#hd_wrapper:after { display: none; }
#hd #hd_wrapper #logo { padding: 0; display: flex; align-items: center; margin-right: 0; z-index: 1; }
#hd #hd_wrapper #logo img { width: 250px; transition: opacity 0.3s ease; margin-bottom: 10px; }
#hd:hover #hd_wrapper #logo img[src*="logo.svg"]:not([src*="logo-eng"]) { content: url('../img/logo-navy.svg'); }
#hd:hover #hd_wrapper #logo img[src*="logo-eng.svg"] { content: url('../img/logo-eng-navy.svg'); }
.hd_login { padding: 20px; margin-left: 10px; }

/* 메인메뉴 커스터마이징 */
#gnb { position: absolute; left: 50%; top: 0; transform: translateX(-50%); height: 95px; display: flex; align-items: center; justify-content: center; background: transparent; }
#gnb > h2 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
#gnb .gnb_wrap:hover, #gnb .gnb_wrap:focus, #gnb .gnb_wrap:active { z-index: 3; }
#gnb #gnb_1dul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; border: 0; }
#gnb .gnb_1dli {position: relative;float: none;}
#gnb .gnb_1dli:hover > a{color: var(--main-color);}
.gnb_1dli .bg { display: none; }
.gnb_1da {display: block;font-weight: 400;padding: 0 !important;color: #fff;text-decoration: none;font-size: 18px;line-height: 95px;transition: all 0.3s ease;text-align: center;min-width: 160px;}
#hd:hover .gnb_1da { color: var(--black); }
.gnb_1da:hover { color: var(--main-color); font-weight: bold; }

/* 2차 메뉴 드롭다운 */
.gnb_2dul { display: none; position: absolute; top: 92px; z-index: 1000; }
.gnb_2dul .gnb_2dul_box { background: white; border-radius: 0 0 20px 20px; padding: 8px 0; box-shadow: none; list-style: none; margin: 0; border: 1px solid rgba(0, 0, 0, 0.05); border-top: 1px solid var(--grey-2); overflow: hidden; min-width: 160px; }
.gnb_2dli { margin: 0; padding: 0; }
.gnb_2da { display: block; line-height: 1.5; background: #fff; color: var(--grey-5); text-decoration: none; padding: 10px 20px; font-size: 15px; font-weight: 400; text-align: center; }
.gnb_2da:hover { color: var(--main-color); background: #fff; font-weight: 500; }
a.gnb_2da:hover { color: var(--main-color); font-weight: bold; background: none;}
.gnb_1dli:hover .gnb_2dul { display: block; }
.gnb_1dli_over .gnb_2dul { display: block; }

.gnb_wrap .gnb_empty { padding: 10px 0; width: 100%; text-align: center; line-height: 2.7em; color: #080808; }
.gnb_wrap .gnb_empty a { color: #2AAAAF; text-decoration: underline; }
.gnb_wrap .gnb_al_ul .gnb_empty, .gnb_wrap .gnb_al_ul .gnb_empty a { color: #555; }
#gnb .gnb_menu_btn { background: url(../../../img/icon_allmenu.png) no-repeat right center; width: 110px; height: 100px; padding: 0; }
#gnb .gnb_close_btn { background: #fff; color: #b6b9bb; width: 50px; height: 50px; border: 0; vertical-align: top; font-size: 18px; position: absolute; top: 0; right: 0; }
#gnb .gnb_mnal { float: right; padding: 0; }
#gnb_all { display: none !important; position: absolute; border: 1px solid #c5d6da; width: 100%; background: #fff; z-index: 1000; -webkit-box-shadow: 0 2px 5px rgba(0,0,0,0.2); -moz-box-shadow: 0 2px 5px rgba(0,0,0,0.2); box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
#gnb_all h2 { font-size: 1.3em; padding: 15px 20px; border-bottom: 1px solid #e7eeef; }
#gnb_all .gnb_al_ul:after { display: block; visibility: hidden; clear: both; content: ""; }
#gnb_all .gnb_al_ul > li:nth-child(5n+1) { border-left: 0; }
#gnb_all .gnb_al_li { float: left; width: 20%; min-height: 150px; padding: 20px; border-left: 1px solid #e7eeef; }
#gnb_all .gnb_al_li .gnb_al_a { font-size: 1.2em; display: block; position: relative; margin-bottom: 10px; font-weight: bold; color: #2AAAAF; }
#gnb_all .gnb_al_li li { line-height: 2em; }
#gnb_all .gnb_al_li li a { color: #555; }
#gnb_all_bg { display: none; background: rgba(0,0,0,0.1); width: 100%; height: 100%; position: fixed; left: 0; top: 0; z-index: 999; }
#hd #hd_wrapper nav#gnb .gnb_wrap { width: auto; position: unset; display: flex; align-items: center; }
#hd #hd_wrapper nav#gnb .gnb_wrap #gnb_1dul { border: 0; }
#hd #hd_wrapper nav#gnb .gnb_wrap #gnb_1dul .gnb_1dli.gnb_al_li_plus .gnb_1da { font-size: 18px; font-weight: 400; color: #fff; text-align: center; white-space: nowrap; transition: all 0.3s ease; padding-right: 0; }
#hd:hover #hd_wrapper nav#gnb .gnb_wrap #gnb_1dul .gnb_1dli.gnb_al_li_plus .gnb_1da { color: var(--black); }
#hd #hd_wrapper nav#gnb .gnb_wrap #gnb_1dul .gnb_1dli.gnb_al_li_plus .gnb_1da:hover { color: var(--main-color); font-weight: bold; }
#hd #hd_wrapper nav#gnb .gnb_wrap #gnb_1dul .gnb_1dli.gnb_al_li_plus .bg { display: none; }
#hd #hd_wrapper nav#gnb .gnb_wrap #gnb_1dul .gnb_1dli.gnb_al_li_plus { line-height: 100px; }

/* 중간 레이아웃 커스터마이징 */
#container {position: relative;zoom: 1;width: 100%;float: none;padding: 0;margin: 0;}
#container_wr{width: 100%;}
#container:after { clear: both; content: ""; }

/* 하단 레이아웃 커스터마이징 */
#ft { background: #041120; font-size: 14px; padding: 60px 40px 40px; position: relative; }
#ft_wr {max-width: 1324px;width: 100%;margin: 0 auto;display: flex;align-items: flex-start;gap: 100px;padding-bottom: 40px;border-bottom: 1px solid var(--grey-2);}
.ft_logo img { width: 204px; height: 70px; }
.ft_info { display: flex; gap: 200px; }
.ft_info .ft_col p {font-size: 16px;color: rgba(255, 255, 255, 0.7);line-height: 1.8;}
.ft_bottom { max-width: 1324px; margin: 30px auto 0; text-align: center; font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
.ft_bottom span { padding: 0 5px; color: rgba(255, 255, 255, 0.3); }
.ft_links { display: flex; gap: 0 5px; align-items: center; }
.ft_links a { color: rgba(255, 255, 255, 0.7); font-size: 16px; text-decoration: none; transition: color 0.2s; }
.ft_links a:hover { color: #fff; }
.ft_copy { font-size: 14px; color: rgba(255, 255, 255, 0.5); }
#top_btn { display: none; position: absolute; z-index: 999; bottom: 80px; right: 80px; width: 60px; height: 60px; font-size: 16px; font-weight: bold; background: var(--main-color); border: 0; border-radius: 50%; color: #fff; cursor: pointer; transition: all 0.3s ease; }
#top_btn:hover { background: #002556; transform: translateY(-5px); }

/* 캡챠 커스터마이징 */
#captcha #captcha_key { margin: 0 0 0 3px; padding: 0 5px; width: 127px; height: 40px; border: 1px solid #ccc; background: #fff; font-size: 1.333em; font-weight: bold; text-align: center; border-radius: 3px; vertical-align: top; }

/* 버튼 커스터마이징 */
.btn_submit { border: 0; background: #2AAAAF; color: #fff; cursor: pointer; border-radius: 3px; }
.btn_submit:hover { background: #2375eb; }

/* 새창 스타일 커스터마이징 */
.new_win .win_ul .selected { background: #2AAAAF; border-color: #2AAAAF; position: relative; z-index: 5; }
.new_win .win_ul .selected a { color: #fff; font-weight: bold; }
.new_win .win_total { float: right; display: inline-block; line-height: 30px; font-weight: normal; font-size: 0.75em; color: #2AAAAF; background: #f6f6f6; padding: 0 10px; border-radius: 5px; }

/* 페이징 커스터마이징 */
.pg_current { display: inline-block; background: #2AAAAF; border: 1px solid #2AAAAF; color: #fff; font-weight: bold; height: 30px; line-height: 30px; padding: 0 10px; min-width: 30px; border-radius: 3px; }

/* 필수입력 커스터마이징 */
.required, textarea.required { }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 10px; position: relative; z-index: 2; }
.lang-button { background: var(--bg-color); color: var(--main-color); border: none; padding: 8px 16px; border-radius: 20px; font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.3s ease; }
#hd:hover .lang-button { background: var(--main-color); color: var(--bg-color); }
.call-button { display: flex; align-items: center; gap: 8px; color: var(--bg-color); text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
#hd:hover .call-button { color: var(--main-color); }
.call-button .icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; position: relative; }
.call-button .icon img { transition: opacity 0.3s ease; }
#hd:hover .call-button .icon img[src*="call-circle.svg"] { content: url('../img/call-circle-navy.svg'); }

/* 모바일 반응형 스타일 */
@media screen and (max-width: 1200px) {
  #hd { min-width: unset; z-index: 1000; }
  #hd #hd_wrapper { width: 100%; height: 60px; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
  #hd #hd_wrapper #logo img { width: 160px; height: auto; margin-bottom: 5px; }
  .header-actions.mobile-only { display: flex; align-items: center; gap: 12px; }
  .header-actions.mobile-only .lang-button { background: var(--bg-color); color: var(--main-color); border: none; padding: 3px 16px; border-radius: 20px; font-weight: 600; font-size: 14px; cursor: pointer; }
  .btn-mobile-menu { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 0; display: flex; align-items: center; }
  .btn-mobile-menu .hamburger { display: inline-block; position: relative; width: 24px; height: 16px; }
  .btn-mobile-menu .hamburger span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 1px; }
  .btn-mobile-menu .hamburger span:nth-child(1) { top: 0; }
  .btn-mobile-menu .hamburger span:nth-child(2) { top: 7px; }
  .btn-mobile-menu .hamburger span:nth-child(3) { bottom: 0; }
  #mobile_menu {position: fixed;top: 0;right: -100%;width: 75%;max-width: 320px;height: 100vh;background: var(--grey-1);z-index: 1002;transition: right 0.3s ease;overflow-y: auto;box-shadow: -2px 0 10px rgba(0,0,0,0.1);display: flex;flex-direction: column;}
  #mobile_menu.open {right: 0;}
  #mobile_menu_bg { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0, 0, 0, 0.5); z-index: 1001; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
  #mobile_menu_bg.open { opacity: 1; visibility: visible; }
  .mobile-menu-top {padding: 16px 20px;display: flex;justify-content: space-between;align-items: center;height: 60px;flex-shrink: 0;}
  .mobile-call-button {display: flex;align-items: center;gap: 8px;text-decoration: none;font-size: 16px;font-weight: 600;}
  .mobile-call-button img { width: 24px; height: 24px; }
  .btn-mobile-close {background: none;border: none;cursor: pointer;padding: 0;display: flex;align-items: center;}
  .btn-mobile-close i {font-size: 24px;font-weight: 100;}
  .btn-mobile-close img {width: 16px;height: 15px;}
  .mobile-menu-list { list-style: none; padding: 100px 20px 0; margin: 0; flex: 1; overflow-y: auto; }
  .mobile-menu-item { border-bottom: 0; padding: 8px 0 16px; }
  .mobile-menu-btn {width: 100%;background: #fff;border: none;padding: 14px 16px;text-align: left;font-family: inherit;font-size: 16px;font-weight: 800;color: #000;cursor: pointer;display: flex;justify-content: space-between;align-items: center;transition: background 0.2s, box-shadow 0.2s;border-radius: 999px;box-shadow: 0 0 0 1px #EEF0F4 inset;}
  .mobile-menu-btn.active {box-shadow: 0 0 0 1px #EEF0F4 inset;color: var(--main-color);}
  .mobile-menu-btn:hover { background: #F9FAFB; }
  .mobile-menu-btn .arrow { font-size: 20px; font-weight: 400; line-height: 1; }
  .mobile-menu-link {display: block;width: 100%;padding: 14px 16px;text-align: left;font-size: 16px;font-weight: 800;color: #000;text-decoration: none;background: #fff;cursor: pointer;transition: background 0.2s;border-radius: 999px;box-shadow: 0 0 0 1px #EEF0F4 inset;}
  .mobile-menu-link:hover {background: #F9FAFB;color: var(--main-color);}
  .mobile-submenu {display: none;list-style: none;padding: 6px 0 0 60px;margin: 10px 0 0;background: transparent;position: relative;}
  .mobile-submenu::before {content: "";position: absolute;left: 41px;top: 20px;width: 2px;height: 68px;background: #E5E7EB;}
  .mobile-submenu li { border: 0; padding: 8px 0; }
  .mobile-submenu li:first-child { border-top: none; }
  .mobile-submenu li a {display: block;padding: 4px 0 4px 20px;font-size: 16px;color: var(--grey-5);text-decoration: none;transition: background 0.2s;position: relative;}
  .mobile-submenu li a::before { content: "·"; position: absolute; left: 0; color: var(--grey-5); font-size: 22px; line-height: 1; top: 50%; transform: translateY(-50%); }
  .mobile-submenu li a:hover { background: #F3F4F6; }
}

/* PC/모바일 헤더 전환 */
@media (min-width: 1201px) {
  #hd .mobile-only { display: none !important; }
  #hd .pc-only { display: flex !important; }
  #hd:hover { background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
}

@media (max-width: 1200px) { 
  #hd .pc-only { display: none !important; } 
  #hd .mobile-only { display: flex !important; } 
}

/* 모바일에서 헤더 hover 효과 비활성화 */
@media (max-width: 1200px) {
  #hd:hover { background: transparent; box-shadow: none; }
  #hd:hover #hd_wrapper #logo img[src*="logo.svg"]:not([src*="logo-eng"]) { content: url('../img/logo.svg'); }
  #hd:hover #hd_wrapper #logo img[src*="logo-eng.svg"] { content: url('../img/logo-eng.svg'); }
  #hd:hover .gnb_1da { color: #fff; }
  #hd:hover #hd_wrapper nav#gnb .gnb_wrap #gnb_1dul .gnb_1dli.gnb_al_li_plus .gnb_1da { color: #fff; }
  #hd:hover .lang-button { background: var(--bg-color); color: var(--main-color); }
  #hd:hover .call-button { color: var(--bg-color); }
  #hd:hover .call-button .icon img[src*="call-circle.svg"] { content: url('../img/call-circle.svg'); }
}

@media (max-width: 1024px) {
  #ft {padding: 80px 20px;}
  #ft_wr {flex-direction: column;gap: 0;padding-bottom: 30px;padding-top: 0;}
    .ft_info {flex-direction: column;gap: 0;text-align: left;}
  .ft_info .ft_col p {font-size: 14px;line-height: 2;}
  .ft_bottom {flex-direction: column;text-align: left;gap: 15px;align-items: flex-start;margin-top: 30px;}
  .ft_links {gap: 0;align-items: flex-start;}
  .ft_links a {font-size: 14px;}
  .ft_copy { font-size: 14px; }
  #top_btn { bottom: 80px; right: 20px; width: 50px; height: 50px; font-size: 14px; }
}

@media (max-width: 768px) { }

/* 서브페이지 공통 */
.header_img {height: 681px;background-size: cover;color: #fff;margin-bottom: 180px;display: flex;align-items: center;}
.header_img { background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%), url(./img/head.png) no-repeat center center / cover; }
.header_inner { max-width: 1324px; padding: 0 40px; text-align: left; width: 100%; margin: 0 auto; }
.header_img h2 { font-size: 64px; font-weight: bold; margin: 0; line-height: 1.2; color: #fff; }
.header_img span {font-size: 24px;font-weight: 400;display: block;opacity: 0.9;margin-top: 14px;}
.sub_container { max-width: 1324px; padding: 0 30px; margin: 0 auto 150px; }
.sub-top-text { font-size: 52px; font-weight: bold; text-align: center; margin-bottom: 80px; }
.sub-top-text .text-main-color { color: var(--main-color); }
.sub-top-img { width: 100%; border-radius: 20px; }

/* 서브페이지 반응형 */
@media (max-width: 1024px) {
  .header_img {height: 400px;margin-bottom: 80px;}
  .header_inner {padding: 20px 20px 0;}
  .header_img h2 { font-size: 32px; }
  .header_img span { font-size: 14px; }
  .sub_container{padding: 0 20px;}
  .sub-top-img { object-fit: cover; aspect-ratio: 1/1; }
  .sub-top-text{ text-align: left; font-size: 28px; margin-bottom: 40px;}
}

/* header_img Ken Burns 효과 */
.header_img { overflow: hidden; position: relative; }
.header_img::before { content: ""; position: absolute; inset: 0; background: inherit; background-size: cover; background-position: center; animation: kenburns-header 4s ease-in-out both; z-index: 0; }
.header_inner { position: relative; z-index: 1; }

@keyframes kenburns-header {
  0% { transform: scale(1) translateY(0); transform-origin: center; }
  100% { transform: scale(1.1) translateY(-10px); transform-origin: top; }
}

/* modal2 개인정보 취급방침 */
.modal-wrap2 { display: none; justify-content: center; align-items: center; position: fixed; width: 100%; height: 100%; top: 0; left: 0; background: rgba(0, 0, 0, 0.7); z-index: 9999; }
.modal-privacy { background: #fff; width: 600px; height: 80%; border-radius: 12px; padding: 72px; text-align: center; position: relative; overflow: hidden; }
.modal-privacy .section-title { width: 100%; font-size: 32px; font-weight: bold; text-align: left; border-bottom: 1px solid #BDC4D1; padding-bottom: 40px; text-align: center; }
.modal-privacy .modal-text { max-height: 60%; overflow-y: auto; font-size: 16px; margin: 50px auto; text-align: left; color: #575B6B; border-bottom: 1px solid #BDC4D1; }
.modal-privacy .modal-text::-webkit-scrollbar { padding-left: 20px; width: 2px; background-color: #F2F2F2; }
.modal-privacy .btn-confirm { display: block; width: 100%; padding: 10px; margin: 0 auto; border-radius: 4px; background: var(--main-color); color: #fff; font-weight: bold; font-size: 20px; text-align: center; border: 0; cursor: pointer; }
@media (max-width: 1000px) {
.modal-privacy { width: 95%; padding: 32px; height: unset; margin: 0 auto; }
.modal-privacy .section-title { font-size: 16px; padding-bottom: 20px; margin-top: 10px; }
.modal-privacy .modal-text { max-height: 300px; overflow-y: auto; font-size: 14px; margin: 30px auto; }
.modal-privacy .btn-confirm { font-size: 16px; }
}

/* modal3 이용약관 */
.modal-wrap3 { display: none; justify-content: center; align-items: center; position: fixed; width: 100%; height: 100%; top: 0; left: 0; background: rgba(0, 0, 0, 0.7); z-index: 9999; }
.modal-provision { background: #fff; width: 600px; height: 80%; border-radius: 12px; padding: 72px; text-align: center; position: relative; overflow: hidden; }
.modal-provision .section-title { width: 100%; font-size: 32px; font-weight: bold; text-align: left; border-bottom: 1px solid #BDC4D1; padding-bottom: 40px; text-align: center; }
.modal-provision .modal-text { max-height: 60%; overflow-y: auto; font-size: 16px; margin: 50px auto; text-align: left; color: #575B6B; border-bottom: 1px solid #BDC4D1; }
.modal-provision .modal-text::-webkit-scrollbar { padding-left: 20px; width: 2px; background-color: #F2F2F2; }
.modal-provision .btn-confirm { display: block; width: 100%; padding: 10px; margin: 0 auto; border-radius: 4px; background: var(--main-color); color: #fff; font-weight: bold; font-size: 20px; text-align: center; border: 0; cursor: pointer; }
@media (max-width: 1000px) {
.modal-provision { width: 95%; padding: 32px; height: unset; margin: 0 auto; }
.modal-provision .section-title { font-size: 16px; padding-bottom: 20px; margin-top: 10px; }
.modal-provision .modal-text { max-height: 300px; overflow-y: auto; font-size: 14px; margin: 30px auto; }
.modal-provision .btn-confirm { font-size: 16px; }
}

/* modal image viewer */
.modal-wrap-image { display: none; justify-content: center; align-items: center; position: fixed; width: 100%; height: 100%; top: 0; left: 0; background: rgba(0, 0, 0, 0.7); z-index: 9999; }
.modal-wrap-image .modal-image-container { width: 900px; height: auto; max-height: 90%; padding: 32px; background: #fff; border-radius: 12px; overflow: hidden; }
.modal-wrap-image .modal-text { max-height: calc(90vh - 180px); display: flex; align-items: center; justify-content: center; border-bottom: 0; margin: 0; margin-bottom:20px;}
.modal-wrap-image .modal-image { display: block; max-width: 100%; max-height: 80vh; width: auto; height: auto; }
.modal-wrap-image .btn-confirm { display: block; width: 100%; padding: 10px; margin: 0 auto; border-radius: 4px; background: var(--main-color); color: #fff; font-weight: bold; font-size: 20px; text-align: center; border: 0; cursor: pointer; }
@media (max-width: 1000px) {
.modal-wrap-image .modal-image-container { width: 95%; padding: 20px; }
.modal-wrap-image .modal-text { max-height: calc(95vh - 140px); }
.modal-wrap-image .btn-confirm { font-size: 16px; }
}