.gn-header {
  width: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  /* 하단 고정바와 동일한 그라디언트 배경 적용 */
  background: linear-gradient(to bottom, rgba(189, 212, 255, 0.3) 0%, rgba(232, 241, 255, 0.2) 100%) !important;
  /* 둥근 테두리 추가 (아래쪽만) */
  border-radius: 0 0 32px 32px;
  /* 그림자 효과 */
  box-shadow:
    0 6px 25px rgba(0, 0, 0, 0.25),
    0 3px 15px rgba(0, 0, 0, 0.18),
    0 10px 35px rgba(189, 212, 255, 0.4),
    0 1px 3px rgba(0, 0, 0, 0.12);
}

/* ─── 상단 영역 ─── */
.gn-topbar {
  position: relative;
  width : 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-height: 103px;
}
.gn-topbar::before{
  content : "";
  position: absolute;
  width: 60%;
  height: 58px;
  background: radial-gradient(
    ellipse at center,
    rgba(189, 212, 255, 0.7) 0%,
    rgba(189, 212, 255, 0.4) 60%,
    rgba(189, 212, 255, 0) 100%
  );
  filter: blur(70px);
  top : 35%;
  left : 63%;
  transform: translateX(-50%); 
  border-radius: 58px; 

}
.gn-topbar::after{
  content : "";
  position: absolute;
  width: 90%;
  height: 167px;
  background: radial-gradient(
    ellipse at center,
    rgba(189, 212, 255, 0.7) 0%,
    rgba(189, 212, 255, 0.4) 60%,
    rgba(189, 212, 255, 0) 100%
  );
  filter: blur(70px);
  top : -120%;
  left : 50%;
  transform: translateX(-50%);
  border-radius: 58px;
}

.gn-left{
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap : 150px; 
  background-color: transparent;
}
.gn-logo {
  display: flex;
  margin-left: 40px;
  /* width: 300px; */
  flex-shrink: 0;
}

.gn-logo a{
  display: flex;
  /* gap : 5px; */
  text-decoration: none;
  color:#333333;
}


.gn-logo-txt{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.gn-logo-tit{
  font-size: 13px;
  font-weight : 600
}
.gn-logo-subTit{
  font-size : 10px;
  
}

/* 가운데 정렬 텍스트 + 메뉴 */
.gn-center-area {
  display: flex;
  align-items: center;
  margin: 0 30px;
  gap: 40px;
}



/* 메뉴 */
.gn-nav {
  background: transparent;
  box-shadow: none;
  border-bottom: none;
  padding: 0;
  flex: 1;
}

.gn-menu {
  display: flex;
  flex: 1;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: space-between;
  gap : 35px;
}

.gn-item {

  text-align: center;
  height: 36px;
}

.gn-item>a {
  display: block;
  /* 메인메뉴: inter_medium_16 */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  color: #333;
  position: relative;
  transition: all 0.3s ease;
  z-index: 1;
  overflow: hidden;
  width: 122px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gn-item>a:before {
  content: none;
}

.gn-item:hover>a:before {
  left: 100%;
}

.gn-item:hover>a {
  background: none;
  color: inherit;
  transform: none;
  box-shadow: none;
}

.gn-item>a.active {
  overflow: visible;
  color: #1D4074;
  border-radius: 29px;
  outline: 1px solid #1D4074;
  outline-offset: -2px;
}

.gn-item>a.active::after {
  content: "";
  position: absolute;
  top: -5px;
  right: -5px;
  width: 10px;
  height: 10px;
  border: 1px solid #1D4074;
  border-radius: 50%;
  z-index: 2;
}

/* 원본 서브메뉴는 숨김 (모바일용으로만 사용) */
.gn-submenu {
  display: none;
}

/* body에 생성되는 floating 드롭다운 */
.floating-dropdown {
  position: fixed;
  /* 순수 지정 색상만 사용 */
  background: transparent;
  /* backdrop-filter 제거하고 뒤 배경만 블러처리 */
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 58px;
  padding: 16px;
  min-width: 200px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* GPU 가속 */
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;

  box-shadow: 0 4px 10.1px rgba(0, 0, 0, 0.25);

  text-align: center;
}

.floating-dropdown::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  /* 원하는 원 크기로 조정 */
  width: 80%;
  height: 80%;
  background: rgba(170, 204, 255, 0.25);
  /* #AACCFF40과 동일 */
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: blur(20px);
  /* 흐림 20px */
  z-index: -1;
  /* 뒤쪽으로 보내기 */
}

.floating-dropdown li {
  margin: 0;
}

.floating-dropdown a {
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  /* 드롭다운 자식들: inter_regular_16 */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.floating-dropdown .menu-with-subtitle,
.gn-submenu .menu-with-subtitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.floating-dropdown .menu-main-text,
.gn-submenu .menu-main-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #333;
}

.floating-dropdown .menu-sub-text,
.gn-submenu .menu-sub-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #333;
  margin-top: 1px;
}


/* 로그인 영역 */
.gn-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-right: 40px;
}

.gn-login a {
  /* login|join: inter_regular_13 */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: 13px;
  background: none !important;
  border: none !important;
  color: #000 !important;
  padding: 0;
  text-decoration: none;
}

.gn-login a:first-child {
  background: #ffffff;
  color: #333;
}

.gn-login a:first-child:hover {
  background: #f8f8f8;
  border-color: #333;
}

.gn-login a:last-child {
  background: #333;
  color: #ffffff;
  border-color: #333;
}

.gn-login a:last-child:hover {
  background: #000;
  transform: translateY(-1px);
}

/* 햄버거 메뉴 */
.gn-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  margin-left: 16px;
  z-index: 1001;
  transition: all 0.3s ease;
}

.gn-toggle.active {
  color: #333;
  transform: rotate(90deg);
}

/* 브라우저 호환성을 위한 @supports 규칙 */
@supports not (backdrop-filter: blur(30px)) {
  .floating-dropdown {
    /* 순수 지정 색상만 사용 */
    background: linear-gradient(to bottom, rgba(170, 204, 255, 0.25) 0%, rgba(255, 255, 255, 0.4) 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
  }

  .gn-submenu {
    background: linear-gradient(to bottom, rgba(170, 204, 255, 0.3) 0%, rgba(255, 255, 255, 0.45) 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
}

@media (min-width: 2560px) {
  .gn-topbar {
    padding: 40px 40px;
  }
}

/* 반응형 */
@media (max-width: 768px) {
  .gn-header {
    /* 모바일에서는 둥근 테두리를 줄여서 자연스럽게 */
    border-radius: 0 0 15px 15px;
    /* 모바일에서도 동일한 그라디언트 배경 */
    background: linear-gradient(to bottom, rgba(189, 212, 255, 0.3) 0%, rgba(232, 241, 255, 0.2) 100%) !important;
    box-shadow:
      0 4px 20px rgba(0, 0, 0, 0.22),
      0 2px 12px rgba(0, 0, 0, 0.15),
      0 8px 30px rgba(189, 212, 255, 0.35),
      0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .gn-topbar {
    flex-direction: column;
    align-items: center;
    padding: 15px 15px;
    position: relative;
  }

  /* 모바일에서 햄버거 버튼을 오른쪽 상단에 절대 위치 */
  .gn-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    margin: 0;
  }

  /* 모바일에서 로고를 가운데 정렬 */
  .gn-logo {
    width: auto;
    text-align: center;
    margin-bottom: 10px;
    order: 1;
  }

  .gn-logo img {
    height: 45px;
  }

  /* 방문하기 텍스트를 로고 아래 가운데 배치 */
  .gn-center-area {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    gap: 0;
    order: 2;
  }

  .gn-visit-text {
    text-align: center;
    margin: 0;
  }

  .gn-visit-text a {
    font-size: 14px;
  }

  /* 구분선은 모바일에서 숨김, 네비게이션은 햄버거 메뉴용으로 유지 */
  .gn-divider {
    display: none;
  }

  /* 모바일에서 nav는 보이되, 내부 메뉴만 토글 처리 */
  .gn-nav {
    display: block;
    position: relative;
    flex: none;
    width: 100%;
  }

  /* 로그인 버튼도 모바일에서 숨김 */
  .gn-login {
    display: none;
  }

  /* right 영역은 햄버거 메뉴만을 위한 공간 확보 */
  .gn-right {
    order: 3;
    height: 0;
    overflow: visible;
  }

  /* 모바일 메뉴 스타일 */
  .gn-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    /* 모바일 메뉴도 동일한 그라디언트 배경 */
    background: linear-gradient(to bottom, rgba(189, 212, 255, 0.35) 0%, rgba(232, 241, 255, 0.25) 100%) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid rgba(224, 224, 224, 0.5);
    z-index: 999;
    /* 모바일 메뉴에도 둥근 하단 테두리 적용 */
    border-radius: 0 0 15px 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    padding: 0;
    margin-top: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .gn-menu.active {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
  }

  .gn-item {
    flex: none;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .gn-item:last-child {
    border-bottom: none;
  }

  .gn-item>a {
    width: 100%;
    padding: 16px 20px;
    text-align: left;
    border-bottom: none;
    font-size: 16px;
  }

  /* 모바일에서는 서브메뉴를 다르게 처리 */
  .gn-submenu {
    display: block;
    /* 모바일에서만 표시 */
    position: static;
    transform: none;
    -webkit-transform: none;
    /* 순수 지정 색상만 사용 */
    background: linear-gradient(to bottom, rgba(170, 204, 255, 0.3) 0%, rgba(255, 255, 255, 0.45) 100%);
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
  }

  .gn-item.open .gn-submenu {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .gn-submenu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .gn-submenu li:last-child {
    border-bottom: none;
  }

  .gn-submenu a {
    padding: 14px 40px;
    /* 모바일 드롭다운 자식들도 inter_regular_16 */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    font-size: 15px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    color: #555;
    border-bottom: none;
  }

  .gn-submenu .menu-main-text {
    font-size: 15px;
  }

  .gn-submenu .menu-sub-text {
    font-size: 12px;
  }
}