.nav_menu {
  font-family: 'paperlogy-regular';
  font-size: clamp(17px, 1.2vw, 25px)
}

.header-wrapper {
  position: fixed;
  width: 100%;
  height: fit-content;
  top: 0;
  left: 0;
  z-index: 20342342;
}

.dropdown a {
  font-family: 'suit-regular';
  font-size: clamp(15px, 0.9vw, 20px);
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgb(195, 63, 63);
  padding: 10px 40px;
  z-index: 20232;
}

.navbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  /* 네비게이션 바로 아래에서 시작 */
  height: 200px;
  /* 펼쳐질 높이(원하는 값으로 조절) */
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);

  transform-origin: top;
  transform: scaleY(0);
  /* 접힌 상태 */
  opacity: 0;
  transition: transform .35s ease, opacity .3s ease;
  z-index: 5;
  /* dropdown보다 낮게 (배경이 뒤) */
  pointer-events: auto;
  /* 배경이 마우스 가로막지 않게 */
}

/* ▼ 네비에 hover하면 배경판이 스르륵 내려옴 */
.navbar:hover::after,
.navbar:focus-within::after {
  transform: scaleY(1);
  opacity: 1;
}

.mobile-nav {
  display: none;
}

.mobile_menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100vh;
  background: linear-gradient(180deg, #152b3e, #0a0f2a);
  transition: right 0.4s ease;
  padding: 80px 24px;
  flex-direction: column;
  z-index: 999;
}

.mobile_menu.active {
  display: flex !important;
  right: 0;
}

/* 로고 */
.nav_logo img {
  width: clamp(200px, 3vw, 230px);
  padding: 10px 0;
}

/* 메뉴 */
.nav_menu {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 0;
  margin: 0;
  transition: gap .35s ease;

}

.nav_menu li {
  position: relative;
}

.nav_menu a {
  text-decoration: none;
  font-weight: 600;
  color: #ffffff;
  transition: color 0.3s ease;
  padding: 12px 6px;
  display: inline-block;
}

.nav_menu a:hover {
  color: #83cff8;
}

/* 밑줄 효과 */
.nav_menu>li>a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 0;
  height: 2px;
  background-color: #8f6e80;
  transition: width 0.3s ease;
}

/* hover 시 활성화 */
.nav_menu>li>a:hover::after {
  width: 100%;
}

/* ================================
   드롭다운 (세련된 모션 버전)
================================ */
.nav_menu .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  list-style: none;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  padding: 0;
  transition:
    max-height 0.8s ease,
    padding 0.6s ease;
  z-index: 20;
}

/* 
.desktop-nav {
  background-color: rgb(195, 63, 63);
  transition:
    max-height 0.8s ease,
    padding 0.6s ease;
} */

/* ❗ 수정된 부분 — 전체 메뉴 hover 시 전부 표시 */
.navbar:hover .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  max-height: 200px;
  padding: 12px 20px;
}

.navbar:hover .nav_menu {
  gap: 60px;
}

/* 세부 메뉴 항목 */
.dropdown li {
  white-space: nowrap;
}

.dropdown li a {
  display: block;
  color: #04124c;
  font-weight: 500;
  padding: 10px 18px;
  margin-top: 20px;
  border-radius: 8px;
  transition: all 0.25s ease;
}

/* hover 시 색상 */
.dropdown li a:hover {
  background-color: rgba(27, 78, 240, 0.08);
  color: #1b4ef0;
}


/* ================================
   유틸 메뉴
================================ */
.nav_util_menu select {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-weight: 600;
  background-color: #fff;
  transition: 0.3s ease;
}

.nav_util_menu select:hover {
  border-color: #8f6e80;
}

/* ================================
   햄버거 버튼
================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  color: black;
  border-radius: 2px;
  transition: 0.3s;
}

/* .hamburger.active::before {
  content: "✕"; 
  font-size: 22px;
  color: white;
  display: block;
  text-align: center;
} */
.arrow {
  display: none;

}

.main-nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 768px) {


  .header-wrapper {
    display: none;
  }

  .mobile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 22px;
    background: linear-gradient(135deg, rgb(195, 63, 63) 0%, rgb(106, 21, 21) 100%);
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  }


  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 20px;
    cursor: pointer;
    position: absolute;
    top: 16px;
    right: 22px;
    z-index: 1100;
    /* 메뉴보다 위 */
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
  }

  .hamburger span {

    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .mobile_menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: rgba(20, 33, 50, 0.96);
    backdrop-filter: blur(10px);
    transition: all 0.45s ease;
    padding: 90px 26px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 1001;
    box-shadow: -10px 0 25px rgba(0, 0, 0, 0.4);
  }

  .mobile_menu.active {
    right: 0;
  }

  .mobile_menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.487);
    padding: 12px 0;


  }

  .mobile_menu a {
    color: #fff;
    font-weight: 600;
    font-size: clamp(20px, 2vw, 20px);
    text-decoration: none;
  }

  .mobile_menu .arrow {
    color: #83cff8;
    font-size: 22px;
    cursor: pointer;
    margin-left: 10px;
  }

  .dropdown {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.08);
    margin: 10px 0 6px;
    padding: 10px 18px;
    animation: fadeDown 0.3s ease;
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.05);
  }

  .dropdown.show {
    display: flex;
  }

  .dropdown li a {
    font-size: clamp(20px, 2vw, 30px);
    color: #dce5ff;
    padding: 8px 0;
    transition: color 0.2s ease;
  }

  .mobile-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .mobile-hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
  }
}