/* Header */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
header {
  /* position: absolute;
  top: 0;
  left: 0; */
  padding: 0 50px;
  background: #fff;
  max-width: 50000px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  height: 60px; 
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e5e5;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
}

/* LOGO */
header .logo {
  min-width: 100px;
  width: 123px;
  height: 37px;
  background-image: url("/static/img/merit_logo.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Dropdown Nav */
header nav {
  float: right;
}

/* UL */
header nav ul {
  margin: 0;
  padding: 0;
  display: flex;
}

/* Nav Items */
header nav ul li {
  list-style: none;
  position: relative;
}

/* Sub-menu */
header nav ul li.sub-menu:before {
  content: "\f0d7";
  font-family: fontAwesome;
  position: absolute;
  line-height: 50px;
  color: #000;
  right: 5px;
  cursor: pointer;
}

header nav ul li.active.sub-menu:before {
  content: "\f0d8";
}

header nav ul li ul {
  position: absolute;
  left: 0;
  background: #fff;
  display: none;
  border-top: 2px solid var(--main-color);
  box-shadow: 0px 4px 15px #0000001a;
  border-radius: 2px;
}

header nav ul li.active ul {
  display: block;
}

header nav ul li ul li {
  display: block;
  min-width: 200px;
  width: max-content;
}

header nav ul li a {
  height: 50px;
  line-height: 50px;
  padding: 0 20px;
  color: #000;
  text-decoration: none;
  display: block;
}

header nav ul li a:hover,
header nav ul li a.active {
  color: var(--main-color);
  background: #fff;
}

/* Toggle Button */
.menu-toggle {
  float: right;
  line-height: 50px;
  cursor: pointer;
  display: none;
  font-weight: 400;
  color: #6B7280;
  font-size: 20px;
}

/* footer */
footer {
  width: 100%;
  background-color: #f3f3f6;
}

.f_wrapper {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.f_wrapper .f_info {
  display: flex;
  flex-direction: row;
  align-content: center;
  align-items: center;
  gap: 30px;
}
.f_wrapper .f_info div{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.f_wrapper .f_info p {
  font-size: 14px;
  font-weight: 400;
  color: #1e1e1e;
}

.f_wrapper .f_info p:nth-child(1) {
  font-size: 16px;
  font-weight: 600;
  color: #1e1e1e;
}

.f_wrapper .copyright span {
  font-size: 11px;
  color: #787778;
  font-weight: 400;
}

@media (max-width: 1300px) {
  header {
    padding: 0 10px 0 0;
  }
}
/* 반응형 */
@media (max-width: 991px) {
  header {
    padding: 0 10px 0 0;
  }

  .menu-toggle {
    display: block;
  }

  header nav {
    position: absolute;
    width: 100%;
    height: calc(100vh - 50px);
    background: #fff;
    top: 59px;
    left: -100%;
    transition: 0.5s;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    z-index: 999;
  }

  header nav.active {
    left: 0;
  }

  header nav ul {
    display: block;
    text-align: left;
  }

  header nav ul li a {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  header nav ul li.active ul {
    position: relative;
    background: #fff;
  }

  header nav ul li ul li {
    width: 100%;
  }
  header nav ul li ul li a{
    border-bottom: none;
  }
  header .logo {
    width: 123px;
    height: 25px;
  }
  .f_wrapper{
    padding: 40px 40px;
  }
  .f_wrapper .f_info{
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .f_wrapper .f_info p{
    font-size: 14px !important;
  }
}