/********************************************* header *********************************************/
header .wrapper { padding: 0 50px; margin: 0 auto; position: relative; }
header .nav .nav-icon { display: none; }
header .nav .nav-icon:after, header .nav .nav-icon:before, header .nav .nav-icon div { background-color: #fff; content: ""; display: block; height: 2px; margin: 4px 0; -moz-transition: all 0.2s ease-in-out; -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; }

header .down .nav .nav-icon:after, header .down .nav .nav-icon:before, header .down .nav .nav-icon div { background-color: #1a1a1a; }
header .nav .nav-icon.active:after, header .nav .nav-icon.active:before, header .nav .nav-icon.active div { background-color: #1a1a1a; }
header .nav .nav-icon:before { margin-top: 0; }
header .nav .nav-icon:after { margin-bottom: 0; }
header .nav .nav-icon.active:before { transform: translateY(7px) rotate(135deg); -moz-transform: translateY(7px) rotate(135deg); -webkit-transform: translateY(7px) rotate(135deg); }
header .nav .nav-icon.active:after { transform: translateY(-5px) rotate(-135deg); -moz-transform: translateY(-5px) rotate(-135deg); -webkit-transform: translateY(-5px) rotate(-135deg); }
header .nav .nav-icon.active div { -moz-transform: scale(0); -webkit-transform: scale(0); transform: scale(0); }

.header-area { width: 100%; height: 90px; display: flex; flex-wrap: nowrap; align-items: center;  transition: all 0.3s ease;  linear; position: fixed; top: 0; z-index: 99; }
.header-area .flex-layout { position: relative; display: flex; flex-wrap: wrap; }
.header-area .logo, .header-area .nav, .header-area .header-right { flex-shrink: 0; }
.header-area .nav { flex: 1; display: flex; justify-content: center; }
.header-area .logo img { width: 166px; vertical-align: top; }
.header-area.up { top: 0px; background-color: #000; }

.header-area.on.up { top: 15px; position: absolute; }
.header-area.down { position: fixed; background-color: #fff; }
.header-area.up:before { height: 0; }
.header-area.down .logo a img { opacity: 0; }
.header-area .wrapper { width: 100%; margin: 0 auto; }
.header-area .navbar { height: 100%; }
.header-area .navbar:hover .sub-menu { opacity: 1; visibility: visible; }
/* 클릭 시 호버 효과 무시 */
.header-area.menu-clicked .navbar:hover .sub-menu { opacity: 0 !important; visibility: hidden !important; }
.header-area.active .navbar > li > a { color: #1a1a1a; }
.header-area.active .mailgo a { color: #1a1a1a; border: 1px solid #ddd; }

.navbar .sub-menu li.on {opacity: 1;}
.navbar .sub-menu li.on a  {color:#297fea;text-decoration: underline; opacity: 1 !important;}

/* Lang dropdown styles */
.lang-dropdown { position: relative; display: flex; align-items: center; margin-right: 20px; }

.header-area .lang-dropdown .lang { display: flex; align-items: center; color: #fff; cursor: pointer; }
.header-area .lang-dropdown .lang svg { width: 30px; }
.header-area.on .lang-dropdown .lang { color: #242424; }

.lang-menu { 
  position: absolute; 
  top: 100%; 
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  margin-top: 10px; 
  background: #fff; 
  border: 1px solid #eee; 
  border-radius: 8px; 
  padding: 10px 0; 
  min-width: 75px; 
  opacity: 0; 
  visibility: hidden; 
  transition: all 0.3s ease; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
  z-index: 100; 
}

.lang-dropdown:hover .lang-menu { 
  opacity: 1; 
  visibility: visible; 
  transform: translateX(-50%) translateY(0); 
}
.lang-menu li { list-style: none; }
.lang-menu li a { display: block; padding: 10px 20px; color: #333; text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.2s ease; white-space: nowrap; }
.lang-menu li a:hover { background: #f5f5f5; color: #0460d9; }
.lang-menu li.active a { background: #f5f5f5; color: #0460d9; font-weight: 700; }

/* User dropdown styles */
.user-dropdown { position: relative; display: flex; align-items: center; }

.header-area .user-dropdown .user-icon { display: flex; align-items: center; color: #fff; cursor: pointer; text-decoration: none; }
.header-area .user-dropdown .user-icon svg { width: 30px; }
.header-area.on .user-dropdown .user-icon { color: #242424; }

.user-menu { 
  position: absolute; 
  top: 100%; 
  right: 0;
  transform: translateY(-10px);
  margin-top: 10px; 
  background: #fff; 
  border: 1px solid #eee; 
  border-radius: 8px; 
  padding: 10px 0; 
  min-width: 120px; 
  opacity: 0; 
  visibility: hidden; 
  transition: all 0.3s ease; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
  z-index: 100; 
}

.user-dropdown:hover .user-menu { 
  opacity: 1; 
  visibility: visible; 
  transform: translateY(0); 
}

.user-menu li { list-style: none; }
.user-menu li a { display: block; padding: 10px 20px; color: #333; text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.2s ease; white-space: nowrap; }
.user-menu li a:hover { background: #f5f5f5; color: #0460d9; }

/* 반응형 */
@media (max-width: 1199px) {
  .lang-menu { right: -10px; }
  .user-dropdown { margin-right: 50px; }
  .user-menu { right: 0; }
}

@media (max-width: 768px) {
  .lang-dropdown {margin-right: 15px;}
  .user-dropdown { margin-right: 45px; }
}
/* 메뉴 호버 시 스타일 (.header-area.on) */
.header-area.on { background: #fff; border-bottom: 1px solid #e4e4e4; transition: all 0.4s ease;}
.header-area.on .logo { position: absolute; left: 0; z-index: 100; }
.header-area.on .logo a { background: url(../img/logo.png) no-repeat; background-size: 100%; }
.header-area.on .logo a img { opacity: 0; background: none; }
.header-area.on .navbar > li > a { color: #1a1a1a; }
.header-area.on .navbar > li > a:hover { color: #297fea; }
.header-area.on .mailgo a { color: #1a1a1a; border: 1px solid #ddd; }
.header-area.on .mailgo .login { padding: 0; }
.header-area.on .mailgo .login a { background: #000; padding: 14px 26px; border-radius: 50px; color: #fff; }
.header-area.on .mailgo .t_mall { display: none; }

.header-area.on .map_btn { margin-top: 34px; }
.header-area.on .map_btn span { background-color: #000; }
.header-area.on .map_btn span:before { background-color: #000; top: -9px; }
.header-area.on .map_btn span:after { background-color: #000; top: 9px; }
.header-area.on #map_btn span > li > a { color: #1a1a1a; }
.header-area.on #map_btn span:before, #map_btn span:after > li > a { color: #1a1a1a; }

/* 스크롤 시 스타일 (.header-area.down) */
.header-area.down .mailgo .t_mall { padding: 0; }
.header-area.down .mailgo .login { padding: 0; }
.header-area.down .mailgo .t_mall a { background: rgba(255, 255, 255, 0.2); padding: 14px 26px; border-radius: 50px; }
.header-area.down .mailgo .login a { background: rgba(255, 255, 255, 0.2); padding: 14px 26px; border-radius: 50px; }
.header-area.down .mailgo a { color: #1a1a1a; border: 1px solid #ddd; }
.header-area.down .navbar > li > a { color: #1a1a1a; }
.header-area.down .navbar > li:hover > a { color: #297fea; }
.header-area.down .map_btn span { background-color: #000; }
.header-area.down .map_btn span:before { background-color: #000; top: -9px; }
.header-area.down .map_btn span:after { top: 9px; display: block; content: ""; position: absolute; width: 100%; height: 2px; background: #000; transition: all .2s; }
.header-area.down .header-area .mailgo .t_mall { padding: 0; }

/* 스크롤 시 헤더 스타일 (.scrolled) */
.scrolled .header-area .mailgo .t_mall {background: #000; color: #fff; border-radius: 50px; text-indent: 0;padding: 0;}
.scrolled .header-area .mailgo .login a {background: #000; padding: 14px 26px; border-radius: 50px;color: #fff; display: flex; align-items: center; text-decoration: none;text-transform: uppercase;font-size: 14px; font-weight: 600;}
.scrolled .header-area { background-color: rgb(0 0 0 / 42%); }
/* .scrolled .header-area .navbar > li a { color: #1a1a1a; } */
/* .scrolled .header-area .logo a { background: url(../img/logo.png); background-repeat: no-repeat; background-size: 100%; } */
.scrolled .header-right .mailgo .map_btn span, .scrolled .header-right .mailgo .map_btn span:before, .scrolled .header-right .mailgo .map_btn span:after { background: #000; }
/* .scrolled header .nav .nav-icon:before, .scrolled header .nav .nav-icon div, .scrolled header .nav .nav-icon:after { background-color: #333; } */

.header-area.on,.scrolled .header-area.on {background-color: #fff;}


/* Mailgo 기본 스타일 */
.header-area .mailgo { color: #fff; display: flex; padding-left: 20px; }
.header-area .mailgo.mobile { display: none; }
.header-area .mailgo a { display: flex; flex-wrap: nowrap; align-items: center; text-transform: uppercase; font-size: 14px; font-weight: 600; color: #fff; }
.header-area .mailgo a i { margin-left: 10px; }
.header-area .mailgo .login { background: rgba(255, 255, 255, 0.2); border-radius: 50px; padding: 0; }
.header-area .mailgo .login a { padding: 14px 26px; color: #fff; display: flex; align-items: center; text-decoration: none; text-transform: uppercase; font-size: 14px; font-weight: 600; }
.header-area .mailgo .t_mall { border-radius: 50px; text-indent: 0; padding: 0; background: rgba(255, 255, 255, 0.2); }
.header-area .mailgo .t_mall a { padding: 14px 26px; color: #fff; display: flex; align-items: center; text-decoration: none; text-transform: uppercase; font-size: 14px; font-weight: 600; }

/* Map Button */
.map_btn { z-index: 101; cursor: pointer; padding: 0 50px; font-weight: 600; font-size: 18px; line-height: 1.16; margin-top: 19px; transition: none; }
.map_btn span { display: block; position: relative; width: 25px; height: 2px; margin: auto; background: #fff; transition: all .2s; }
.map_btn span:before { display: block; content: ""; position: absolute; top: -9px; width: 100%; height: 2px; background: #fff; transition: all .2s; }
.map_btn span:after { top: 9px; display: block; content: ""; position: absolute; width: 100%; height: 2px; background: #fff; transition: all .2s; }
.map_btn.active { position: fixed; }
.map_btn.active span { border: none; background: transparent; }
.map_btn.active span:before { top: 0; transform: rotate(45deg); background: #fff; }
.map_btn.active span:after { top: 0; transform: rotate(-45deg); background: #fff; }

/* Sub page styles */

.header-area .logo a { display: block; position: relative; width: 195px; height: 38px; background: url(../img/logo_w.png); background-repeat: no-repeat; background-size: 100%; }
.header-area .mailgo .t_mall { background: #000; color: #fff; border-radius: 50px; text-indent: 0; padding: 0; }
.header-area .mailgo .t_mall a { padding: 14px 26px; color: #fff; display: flex; align-items: center; }
.header-area .mailgo .login { background: #000; color: #fff; border-radius: 50px; padding: 0; }
.header-area .mailgo .login a { padding: 14px 26px; color: #fff; display: flex; align-items: center; }

/* Common styles */
.max-inner { max-width: 1400px; width: 100%; padding: 0 20px; margin: 0 auto; }
.sec-title p.sub-tit { font-size: 18px; color: #0460d9; font-weight: 600; margin-bottom: 20px; }
.max-inner .top-desc { font-size: 24px; font-weight: 700; max-width: 830px; word-break: keep-all; padding: 28px 0; line-height: 1.4; }
.download-button { margin: 50px 0 0; }
.download-button a { display: inline-block; padding: 20px 50px; background: #0460d9; color: #fff; }
.download-button a img { margin-left: 20px; }
.section-wrap { overflow-y: auto; height: 100vh; }


/********************************************* RESPONSIVE *********************************************/

@media (max-width: 1200px) {
    #map_btn { display: none; }   
    .header-area .header-right { padding: 0 10px; }
    .header-area .logo img { width: 140px; }
}

@media (min-width: 1200px) {
    .header-area .navbar > li > a { padding:35px 10px; color: #fff; position: relative; display: block; min-width: 150px; text-align: center;}
    
    /* 호버 시 밑줄 (중앙에서 확장) */
    .header-area .navbar > li > a::before {
      content: "";
      display: block;
      position: absolute;
      left: 50%;
      bottom: 0;
      transform: translateX(-50%);
      width: 0;
      height: 3px;
      background-color: #297fea;
      transition: width 0.3s;
  }
    
    /* 호버 및 활성 상태 */
    .header-area .navbar > li:hover > a::before {
      width: 100%;
    }
    
    .header-area .navbar > li:hover > a::after {
      opacity: 1;
    }

    .header-area .flex-layout { justify-content: space-between; align-items: center; }
    .header-area .nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
    .header-area .nav .children { display: none; }
    .header-area .navbar { height:56px; display: flex; flex-wrap: nowrap; align-items: center; position: absolute; left: 50%; transform: translateX(-50%); }
    .header-area .navbar > li { position: relative; color: #fff; font-weight: 600; font-size: 17px; line-height: 1.16; white-space: nowrap;}
    .header-area .navbar > .login { color: #fff; font-size: 14px; font-weight: 400; }
    .header-area .logo img { width: 136px; }
    .navbar .sub-menu {opacity: 0;height: 360px;visibility: hidden;transition: all ease 0.3s;transform: translateY(-10px);position: absolute;left: 50%;transform: translateX(-50%) translateY(10px);width: auto;padding: 20px 8px 20px 8px;color: #fff;font-weight: 500; text-align: center;letter-spacing: -0.5px; top: 80px; width: 100%; pointer-events: none; }
    .header-area .navbar:hover .sub-menu{pointer-events: auto;}

    .navbar .sub-menu li {white-space: nowrap; }
    .navbar .sub-menu li:hover { opacity: 1; }
    .navbar .sub-menu li:hover > a { color:#297fea}
    .navbar .sub-menu li:last-child { margin-bottom: 0; }
    .navbar .sub-menu li a { color: #666; opacity: 1; line-height: 45px; font-size: 15px;}
    .header-area .navbar .menu > ul { display: flex; flex-wrap: nowrap; align-items: center; }
    .header-area .navbar .menu > ul > li { margin-right: 30px; }
    .nav-bg { width: 100%; height: 360px; position: absolute; top: 90px; left: 0; background-color: #fff; z-index: -1; opacity: 0; visibility: hidden; transition: all 0.3s ease; transform: translateY(-10px); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);pointer-events: none}
    .nav-bg.on { opacity: 1; visibility: visible; transform: translateY(0);}
    .sub .header-area .navbar > li a { color: #333; }
    .navbar .sub-menu {
    /* 기존 스타일 */
    background-color: transparent;
    padding: 20px 0px; /* 패딩도 좌우 30px로 조정 */
  }

  /* 호버 시 서브메뉴에 배경 */
  .navbar > li:hover .sub-menu {
    background-color: #f7f7f7
  }
}

@media (min-width: 1700px) {
  .header-area .navbar > li > a { padding:35px 15px; min-width: 190px; text-align: center;}
  .navbar .sub-menu li a {font-size: 16px;}
  .header-area.on .mailgo .t_mall { padding: 0; display: block; }
  .header-area.on .mailgo .t_mall a { background: #000; padding: 14px 26px; border-radius: 50px; color: #fff; }
  .header-area .navbar > li {font-size: 18px; }
  .navbar .sub-menu { font-size: 16px; }
  .header-area .logo img { width: 166px; } 
  .header-area .mailgo .t_mall { background: rgba(255, 255, 255, 0.2); border-radius: 50px; text-indent: 0; padding: 0; }
  .header-area .mailgo .t_mall a { padding: 14px 26px; display: flex; align-items: center; }
}

@media (min-width: 1750px) {
  .header-area .mailgo .t_mall { padding: 0; margin-right: 20px; }
  .header-area .mailgo .t_mall a { padding: 14px 26px; }
}

@media (max-width: 1400px) {
  header .wrapper {padding: 0 20px;}
  .header-area .logo { margin-top: 10px; }
  .header-area .logo a {background-size: 80%;}
  .scrolled .header-area .logo a {background-size: 80%;}
  .header-area.on .logo a {background-size: 80%;}
}
@media (max-width: 1199px) {
  .header-area { background: transparent; height: 70px; }
  .header-area > .wrapper { height: 70px; }
  .header-area .flex-layout { height: 100%; align-items: center; }

  .header-area .logo a { display: flex; flex-wrap: nowrap; align-items: center; background-size: 80%;}
  .header-area.on .logo {display: none;}
  .header-area .sitemap-bt { display: none; }
  .header-area .mailgo.desktop { display: none; }
  .header-area .mailgo.mobile { display: block; margin: 5%; }
  .header-area .mailgo.mobile ul { display: flex; flex-wrap: nowrap; align-items: center; text-transform: uppercase; }
  .header-area .mailgo.mobile ul li { color: #cccccc; }
  .header-area .mailgo.mobile ul li:last-child { display: flex; flex-wrap: nowrap; align-items: center; }
  .header-area .mailgo a { display: flex; flex-wrap: nowrap; align-items: center; text-transform: uppercase; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, 0.3); padding: 14px 26px; border-radius: 50px; color: #fff; border: 1px solid #ddd; }
  .header-area .navbar { position: fixed; width: 100%; height: 100%; top: 0; right: 0; left:0; opacity: 0; visibility: hidden; padding: 100px 0 100px; overflow-y: scroll; background: #fff; z-index: 99; margin: 0; }
  .header-area .navbar.active { opacity: 1; visibility: visible; overflow-x: hidden; }
  .header-area .navbar > li { display: block; text-align: left; margin: 0; font-weight: 700; color: #111; }
  .header-area .navbar > li:first-child { margin-top: 32px; }
  .header-area .navbar > li:nth-last-child(1), .header-area .navbar > li:nth-last-child(2) { border-bottom: 0; }
  .header-area .navbar > li.current_page_item { color: #297fea; }
  .header-area .navbar > li.active > a { color: #297fea; }
  .header-area .navbar > li.active > a span { position: relative; }
  .header-area .navbar > li.active > a span::after { width: calc(100% + 12px); transition: width 0.3s; }
  .header-area .navbar > li > a { padding: 18px 5%; line-height: normal; display: block; font-size: 24px; position: relative; color: #111; cursor: pointer; }
  .header-area .navbar > li > a span::after { content: ""; background-color: #3e93f2; border-radius: 20px; width: calc(100% + 12px); height: 8px; position: absolute; bottom: -1px; left: -4px; z-index: -1; width: 0; }
  .header-area .navbar > li.sub-dropdown { padding-bottom: 0; }
  .header-area .navbar > li.sub-dropdown > a:before { font-family: xeicon !important; width: 24px; height: 24px; position: absolute; right: 5%; top: 50%; transform: translateY(-50%); background-size: contain; content: "\e941"; transition: all 0.3s; }
  .header-area .navbar > li.active.sub-dropdown > a:before { transform: translateY(-50%) rotate(-180deg); }
  .header-area .navbar > li > .sub-menu { display: none; padding: 30px 5%; position: relative; }
  .header-area .navbar > li > .sub-menu::before { content: ""; background: #f5f5f5; width: 105%; height: 100%; position: absolute; z-index: -1; top: 0; left: -5%; }
  .header-area .navbar > li .sub-menu li { font-size: 18px; line-height: 1.18; color: #474747; font-weight: 400; margin-bottom: 14px; }
  .header-area .navbar > li .sub-menu li a { display: block; }
  .header-area .navbar > li .sub-menu li a:hover { color: #297fea; }
  .header-area .navbar > li .sub-menu li:last-child { margin-bottom: 0; }
  .header-area.down .logo { position: relative; z-index: 100; display: flex; align-items: center; }
  header .nav .nav-icon { display: inline-block; width: 24px; cursor: pointer; position: absolute; top: 50%; right: 0; z-index: 100; transform: translateY(-50%); -webkit-transform: translateY(-50%); }
  header .nav .nav-icon div { width: 24px; position: relative; right: 0; }
  .header-area .navbar > li > a, .header-area .navbar > li.sub-dropdown > a, .header-area .navbar > li.active > a, .header-area .navbar > li.sub-dropdown.active > a { cursor: pointer; }

}

@media (max-width: 768px) {
  .header-area.down { top: 0; }
  .header-area .logo { width: 170px; }
  .header-area.on .logo {display: none;}
  .header-area.on .logo a { background: url(../img/logo.png) no-repeat; background-size: 70%; }
  .header-area.on .logo a::after { background-size: 70%; margin-top: 20px; }
  .header-area .flex-layout { height: 100%; align-items: center; margin-top: 0px; }
  .header-area .navbar > li > a { font-size: 1.25rem; }
  .header-area .nav-icon { display: block; }
  .header-area .header-right { padding: 0 20px; }
  header .nav .navbar { padding: 80px 0; }
}