/* 기본 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 2000;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #000;
  transition: 0.3s;
}

/* 햄버거 → X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* dim */
.dim {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);

  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.dim.active {
  opacity: 1;
  visibility: visible;
}


/* 모바일 */
@media (max-width: 768px) {

  /* 햄버거 보이기 */
  .hamburger {
    position: absolute !important;   /* 👈 핵심 */
  right: 20px !important;          /* 오른쪽 고정 */
  top: 50% !important;
  transform: translateY(-50%) !important;

  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;

  cursor: pointer !important;
  z-index: 9999 !important;        /* 👈 무조건 위로 */
  }

  /* 사이드 메뉴 */
  .nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;

    width: 260px !important;
    height: 100vh !important;

    background: #fff !important;

    display: flex !important;
    flex-direction: column !important;

    padding: 80px 20px 20px !important;

    transform: translateX(-100%) !important;
    transition: transform 0.3s ease !important;

    z-index: 1500 !important;
  }

  .nav.active {
    transform: translateX(0) !important;
  }

  /* 메뉴 */
  .menu-item {
    padding: 15px 0 !important;
    border-bottom: 1px solid #eee !important;
  }

  /* dropdown → 항상 보이게 */
  .dropdown {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    padding-left: 10px !important;
  }

}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}


.main-container {
    max-width: 1200px;
    width: 100% !important;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.header-inner {
    display: flex;
    justify-content: space-between; /* 핵심 */
    align-items: center;
	width: 100%;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.logo img {
	width: 55px;
}


.nav {
  display: flex;
  gap: 70px;
}

.menu-item {
  position: relative;
  display: inline-block;
}

/* dropdown 기본 숨김 */
.dropdown {
  position: absolute;
  top: 100%;
  left: -20%;
  background: #fff;
  min-width: 170px;
  opacity: 0;
  visibility: hidden;
  z-index: 100;
  margin-top: 20px;
}

.menu-item::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px; /* margin만큼 */
}


/* hover 시 열림 */
.menu-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown {
  padding: 15px 0;
}


/* dropdown 아이템 */
.dropdown li a {
  display: block;
  text-align:center;
  padding: 10px 15px;
  white-space: nowrap;
}

/* hover */
.dropdown li a:hover {
  color: #433CC2;
  font-weight: 700;
}
