@charset "utf-8";

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 40px;
  height: 150px;
  background-color: white;
  border-bottom: 1px solid #eee;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #003366;
  padding-left: 50px;
  padding-right: 123px;
}

nav {
  display: flex;
  position: relative;
}

nav > a {
  color: #333;
  font-weight: 500;
  font-size: 23px;
  width: 200px;
  text-align: center;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  display: block;
  width: 1px;
  height: 24px;
  background: #9e9e9e;
  top: 50%;
  transform: translateY(-50%);
}

nav a:nth-child(1)::after {
  display: none;
}

nav a.on span {
  border-bottom: 4px solid #0f7ed1;
  color: #0f7ed1;
}

nav a:hover span {
  border-bottom: 4px solid #0f7ed1;
  color: #0f7ed1;
}

/* 드롭다운 전체 박스 */
.sub-menu {
  position: absolute;
  top: 150px;
  left: 0;
  width: 100%;
  height: 333px;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  border-top: 1px solid #eee;
  z-index: 100;
  display: none;
}

.nav-item:hover .mega-menu {
  display: flex;
}

.sub-nav {
  width: 100%;
  position: absolute;
  top: 120px;
  left: 0;
  z-index: 101;
  font-size: 15px;
  color: #8c8c8c;
  line-height: 37px;
  text-align: left;
  display: none;
}

.sub-nav.on {
  display: flex;
  flex-wrap: wrap;
  gap: 70px;
}

.sub-nav li{
    cursor: pointer;
}

.sub-nav li:hover {
  color: #0f7ed1;
}

.sub-nav li.on {
  color: #0f7ed1;
}

.sub-nav li img {
  margin-top: 16px;
  margin-left: 10px;
  display: none;
}

/* .sub-nav li:hover img {
  display: inline-block;
} */

.sub-nav li.on img {
  display: inline-block;
}

.sub-left {
  width: 500px;
  height: 100%;
  background: url(../img/bg2.png) no-repeat;
}

.tab {
  padding-right: 60px;
  padding-left: 20px;
}

.tab-box {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #fff;
  top: 0;
  left: 0;
  z-index: 999;
}

.sitemap {
  display: flex;
  background: white;
  padding: 0 30px;
  padding-top: 30px;
  height: calc(100% - 112px);
}

.sitemap .title {
  font-size: 45px;
  padding-top: 15px;
  margin-right: 35px;
}

.category {
  flex: 1;
  width: 280px;
  border: 1px solid #dad7d8;
  border-bottom: unset;
  border-right: unset;
}

.category.exp {
  border-right: 1px solid #dad7d8;
}

.category h3 {
  font-size: 26px;
  color: #555;
  padding-bottom: 5px;
  height: 50px;
  font-size: 26px;
  line-height: 50px;
  border-bottom: 1px solid #dad7d8;
  padding-left: 12px;
  background: url(../img/bg3.png) no-repeat;
  color: #fff;
  background-size: cover;
}

.category:hover h3 {
  background: url(../img/bg3-on.png) no-repeat;
  background-size: cover;
}

.category ul {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: 12px;
  overflow-y: auto;
  height: 718px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.category h4 {
  font-size: 16px;
  color: #070707;
  padding-top: 10px;
  line-height: 24px;
}

.category h4:nth-of-type(1) {
  padding-top: 0;
}

.category li a {
  text-decoration: none;
  color: #7d7d7d;
  font-size: 14px;
  line-height: 22px;
  padding-left: 12px;
  display: inline-block;
  padding-right: 15px;
}

.category li a:hover {
  color: #1580d0;
  background: url(../img/ic-circle.png) right center no-repeat;
}

.category.exp h3 {
  position: relative;
}

.category-close {
  position: absolute;
  right: 10px;
  top: 10px;
}

.banner {
  background: url(../img/bg1.png) center no-repeat;
  height: 448px;
  overflow: hidden;
  background-size: cover;
  position: relative;
}

.banner .banner-box{
    position: absolute;
    color: #fff;
    font-family: 'KoPubWorld Batang', serif;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.banner .banner-box p{
    line-height: 20px;
}


.banner .banner-box img{
    margin-bottom: 10px;
}

.banner .banner-box .or{
    color: #ee8d53;
}

.search-bar {
  display: flex;
  justify-content: center;
  margin: 54px 20px 58px;
  gap: 14px;
}

.search-bar input {
  width: 705px;
  height: 60px;
  padding: 23px 37px;
  border: 3px solid;
  border-radius: 30px;
  font-size: 14px;
  color: #8c8c8c;
  outline: none;
  border: 3px solid transparent;
  background-clip: padding-box;
  background-color: white;
  outline: none;
  background-image: linear-gradient(white, white),
    linear-gradient(to right, #0f7ed1, #cbd877);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.search-bar button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

.menu-grid {
  display: flex;
  justify-content: center;
  gap: 47px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

.menu-item {
  width: 153px;
  height: 153px;
  text-align: center;
  padding: 33px 10px;
  border-radius: 9px;
  background-color: #f7f7f7;
  box-shadow: 5px 5px 10px rgba(92, 89, 87, 0.2);
  cursor: pointer;
}

.menu-item:hover {
  background: linear-gradient(135deg, #7fc9f0, #007bff);
}

.menu-item:hover img {
  filter: brightness(0) invert(1);
}

.menu-item:hover span {
  color: #fff;
}

.menu-item img {
  margin-bottom: 20px;
}

.menu-item span {
  display: block;
  font-size: 15px;
  color: #282828;
  font-weight: bold;
}

.footer-top {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 7px;
  border-top: 2px solid #e6e6e6;
  background-color: #f8f8f8;
}

.footer-top a {
  color: #4c4c4c;
  text-decoration: none;
  font-weight: bold;
  font-size: 12px;
}

.footer-top a.bl {
  color: #0f7ed1;
}

.footer-top span {
  color: #e6e6e6;
  padding: 14px;
}

.footer-top select {
  padding: 6px 15px;
  font-size: 12px;
  margin-left: 95px;
  border: 1px solid #cccccc;
  width: 230px;
  background: #fff url(../img/select-ic.png) right + 15px center no-repeat;
}

.footer-top button {
  padding: 6px 12px;
  background-color: #e6e6e6;
  border: 1px solid #ccc;
  cursor: pointer;
  font-size: 12px;
  border-left: unset;
}

.footer-bottom {
  background-color: #4c4c4c;
  color: #fff;
  text-align: center;
  font-size: 12px;
  padding: 10px;
  line-height: 1.8;
}

.footer-bottom span {
  display: inline-block;
  margin-right: 20px;
}
