/* ========================================================
   Header (GNB) — common.css에서 분리
   ======================================================== */

/* GNB 영역 */
header {
  width: 100%;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.95);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  overflow: hidden;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
}

header:before {
  -webkit-transition: all 1s;
  transition: all 1s;
  content: '';
  width: 100%;
  height: 70px;
  position: absolute;
  top: 0;
  left: 0;
  border-bottom: 1px solid #e4e4e4;
}

header h1 a {
  content: '';
  width: 125px;
  height: 27px;
  background-image: url("../images/logo.png");
  background-repeat: no-repeat;
  background-size: 125px 27px;
  text-indent: 9999px;
  overflow: hidden;
  display: inline-block;
  position: absolute;
  top: 21px;
  left: 40px;
}

header .gnb {
  width: calc(190px *4);
  margin: 0 auto;
}

header .gnb li {
  width: 190px;
  height: 70px;
  display: inline-block;
  position: relative;
  float: left;
  z-index: 30;
}

header .gnb li>a {
  width: 190px;
  height: 70px;
  display: block;
  text-align: center;
  line-height: 70px;
  font-family: var(--font-family-base);
  font-size: 16px;
  font-weight: 700;
}

header .gnb li>a:after {
  content: '';
  height: 2px;
  width: 0px;
  background-color: #316ab2;
  position: absolute;
  bottom: 20px;
  left: 50%;
  margin-left: 0px;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

header .gnb li:hover>a,
header .gnb li.on>a {
  color: #316ab2;
}

header .gnb li:hover>a:after,
header .gnb li.on>a:after {
  width: 16px;
  margin-left: -8px;
}

header .gnb li:hover .sub_gnb {
  background: #fff;
}

header .gnb li:hover .sub_gnb a:hover {
  color: #333;
}

header .gnb li .sub_gnb {
  width: 190px;
  height: 250px;
  position: absolute;
  top: 70px;
  z-index: 20;
  padding: 10px 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  border-top: 1px solid #e4e4e4;
}

header .gnb li .sub_gnb a {
  display: block;
  text-align: center;
  height: 32px;
  line-height: 32px;
  color: #909090;
  font-family: var(--font-family-base);
  font-size: 15px;
  font-weight: 400;
}

header .gnb li .sub_gnb a.pid_mu {
  height: 58px;
  line-height: 22px;
  padding-top: 11px;
}

header .gnb li .sub_gnb a.pid_mu span {
  display: block;
}

header .gnb li .sub_gnb a:hover {
  color: #000;
}

header .mo_gnb {
  display: none;
}

header .header-actions {
  position: absolute;
  top: 25px;
  right: 40px;
  display: flex;
  align-items: center;
}

header .header-actions .link_cloudo {
  display: none;
  height: 20px;
  line-height: 20px;
  font-size: 14px;
  color: #676767;
  font-family: var(--font-family-base);
  vertical-align: middle;
}

header .header-actions .link_cloudo:before {
  content: '';
  width: 69px;
  height: 20px;
  background-image: url("../images/cloudo-logo.png");
  background-repeat: no-repeat;
  background-size: 69px 20px;
  text-indent: 9999px;
  overflow: hidden;
  display: inline-block;
  margin-right: 20px;
}

header .header-actions .link_eng {
  height: 20px;
  line-height: 20px;
  font-size: 14px;
  color: #676767;
  font-family: var(--font-family-base);
  vertical-align: middle;
  display: flex;
  align-items: center;
}

header .header-actions .link_eng:before {
  content: '';
  width: 20px;
  height: 20px;
  background-image: url("../images/icon_eng.png");
  background-repeat: no-repeat;
  background-size: 20px 20px;
  text-indent: 9999px;
  overflow: hidden;
  display: inline-block;
  margin-right: 5px;
}

header .header-actions .sitemap {
  content: '';
  width: 20px;
  height: 20px;
  background-image: url("../images/icon_menu.png");
  background-repeat: no-repeat;
  background-size: 20px 20px;
  text-indent: 9999px;
  overflow: hidden;
  display: inline-block;
  margin-left: 20px;
  cursor: pointer;
}

header.on,
header.hover {
  height: 320px;
}

header.on:before,
header.hover:before {
  background: #fff;
}

/* 태블릿 */
@media only screen and (max-width: 1200px) {
  header .gnb {
    display: none;
  }

  header:before {
    display: none;
  }

  header.on {
    height: 100%;
  }

  header .mo_gnb {
    display: block;
    position: fixed;
    width: 100%;
    height: 0;
    top: 60px;
    overflow: hidden;
  }

  header .mo_gnb ul li {
    opacity: 0;
    filter: Alpha(opacity=0);
    -webkit-transform: translateY(-20px);
    transform: translateY(-20px);
    -webkit-transition: all 0s 0s;
    transition: all 0s 0s;
  }

  header.on .mo_gnb {
    height: calc(100% - 60px);
  }

  header.on .mo_gnb ul {
    width: 100%;
    padding-top: 50px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  header.on .mo_gnb ul li {
    width: 100%;
    text-align: center;
    opacity: 1.0;
    filter: Alpha(opacity=100);
    -webkit-transform: translateY(0px);
    transform: translateY(0px);
    -webkit-transition: transform 0.8s, opacity 0.8s;
    -webkit-transition: opacity 0.8s, -webkit-transform 0.8s;
    transition: opacity 0.8s, -webkit-transform 0.8s;
    transition: transform 0.8s, opacity 0.8s;
    transition: transform 0.8s, opacity 0.8s, -webkit-transform 0.8s;
  }

  header.on .mo_gnb ul li:nth-child(1) {
    -webkit-transition-delay: 0.3s;
    transition-delay: 0.3s;
  }

  header.on .mo_gnb ul li:nth-child(2) {
    -webkit-transition-delay: 0.4s;
    transition-delay: 0.4s;
  }

  header.on .mo_gnb ul li:nth-child(3) {
    -webkit-transition-delay: 0.5s;
    transition-delay: 0.5s;
  }

  header.on .mo_gnb ul li:nth-child(4) {
    -webkit-transition-delay: 0.6s;
    transition-delay: 0.6s;
  }

  header.on .mo_gnb ul li p {
    font-size: 18px;
    font-weight: 700;
    height: 60px;
    line-height: 60px;
  }

  header.on .mo_gnb ul li p.on+.sub_gnb {
    padding: 20px 0;
  }

  header.on .mo_gnb ul li .sub_gnb {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background: #316ab2;
    height: 0;
    padding: 0;
    overflow: hidden;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
  }

  header.on .mo_gnb ul li .sub_gnb a {
    display: block;
    height: 40px;
    line-height: 40px;
    color: #fff;
  }

  header.on .mo_gnb ul li:nth-child(1) .on+.sub_gnb {
    height: 200px;
  }

  header.on .mo_gnb ul li:nth-child(2) .on+.sub_gnb {
    height: 200px;
  }

  header.on .mo_gnb ul li:nth-child(3) .on+.sub_gnb {
    height: 120px;
  }

  header.on .mo_gnb ul li:nth-child(4) .on+.sub_gnb {
    height: 160px;
  }
}

/* 모바일 */
@media (max-width: 768px) {
  header {
    height: 60px;
  }

  header h1 a {
    width: 78px;
    height: 17px;
    background-size: 78px 17px;
    background-image: url("../images/mo_logo.png");
    left: 20px;
  }

  header .header-actions {
    right: 20px;
    top: 20px;
  }

  header .header-actions a:before {
    background-image: url("../images/mo_icon_eng.png");
    background-size: 20px 20px;
  }
}

/* ========================================================
   Header — Dark (Navy)
   ======================================================== */

.header-dark {
  background: rgba(10, 16, 28, 0.85);
}

.header-dark:before {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-dark h1 a {
  height: 34px;
  top: 18px;
  background-image: url("../images/logo_w.png");
  background-size: 125px 34px;
}

.header-dark .gnb li>a {
  color: #fff;
}

.header-dark .gnb li>a:after {
  background-color: #69c6dd;
}

.header-dark .gnb li:hover>a,
.header-dark .gnb li.on>a {
  color: #69c6dd;
}

.header-dark .gnb li:hover .sub_gnb {
  background: #000;
}

.header-dark .gnb li .sub_gnb a:hover {
  color: #fff !important;
}

.header-dark .header-actions .link_eng {
  color: #fff;
}

.header-dark .header-actions .sitemap {
  filter: invert(1) brightness(2);
}

.header-dark.on,
.header-dark.hover {
  background: rgba(10, 16, 28, 1);
}

.header-dark.on:before,
.header-dark.hover:before {
  background: #000;
}

.header-dark .gnb li .sub_gnb {
  border-top: none !important;
}

@media only screen and (max-width: 1200px) {
  .header-dark.on .mo_gnb ul li p {
    color: #fff;
  }
}

@media (max-width: 768px) {
  .header-dark h1 a {
    width: 86px;
    height: 24px;
    background-size: 86px 24px;
    background-image: url("../images/logo_w.png");
    left: 20px;
  }
}