/* 2025-03-07 head.php 인라인 스타일 분리 */

/* GNB 고정 시 본문 겹침 방지 */
body {
  padding-top: 64px;
}

body.menu-none {
  padding-top: 0 !important;
}

/* ── 1023px 이하 (모바일/태블릿) ── */
@media (max-width: 1023px) {
  #gnb {
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
  }
  body {
    padding-top: 50px !important;
  }
  #mega-menu {
    display: none !important;
  }
  #nav-bar-main {
    height: 50px !important;
  }
  #nav-bar-main h1 img {
    font-size: 16px !important;
    width: 170px !important;
  }
}

/* ── Mega Menu ── */
#mega-menu {
  position: absolute;
  top: 64px;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  border-top: 1px solid #f3f4f6;
  padding: 20px 0;
  z-index: 99;
}

#mega-menu .mega-menu-inner {
  display: flex;
  gap: 32px;
  padding-left: var(--mega-offset, 0px);
}

#mega-menu .mega-col {
  min-width: 120px;
  display: flex;
  flex-direction: column;
}

#mega-menu .mega-col-title {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

#mega-menu .mega-section-label {
  font-size: 12px;
  font-weight: 600;
  color: #c9cdd4;
  margin-bottom: 4px;
  margin-top: 2px;
}

#mega-menu .mega-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 0;
  font-size: 13.5px;
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

#mega-menu .mega-link:hover {
  color: #b20088;
}

#mega-menu .mega-col-membership {
  min-width: 200px;
  max-width: 210px;
}
