.gn-header {
  width: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  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;
  pointer-events: none;
}

.gn-left {
  /* width: 100%; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(1px, 5vw, 150px);
  background-color: transparent;
}

.gn-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 40px;
  flex-shrink: 0;
}

.main-logo {
  width: 40px;
}

.logo-name {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Pretendard", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 28px;
  line-height: 33px;
  color: #000000;
}

.gn-logo a {
  display: flex;
  text-decoration: none;
  color: #333333;
}

.gn-logo-txt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin: 0 3px;
}

.gn-logo-tit {
  font-size: 13px;
  font-weight: 600;
    padding:0;
    margin:0;
}

.gn-logo-subTit {
  font-size: 10px;
    padding:0;
    margin:0;
}

/* 가운데 정렬 텍스트 + 메뉴 */
.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: clamp(20px, 1vw, 35px);
}

.gn-item {
  text-align: center;
  height: 36px;
}

.gn-item > a {
  display: block;
  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;
  overflow: hidden;
  /* max-width: 122px; */
  padding: clamp(5px, 1vw, 10px) clamp(10px, 1vw, 30px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  word-break: keep-all;
}

.gn-item > a:before {
  content: 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%;
}

/* 원본 서브메뉴는 숨김 (모바일용으로만 사용) */
.gn-submenu {
  display: none;
}

/* body에 생성되는 floating 드롭다운 */
.floating-dropdown {
  position: fixed;
  background: transparent;
  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);
  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);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: blur(20px);
  z-index: -1;
}

.floating-dropdown li {
  margin: 0;
}

.floating-dropdown a {
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  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;
  z-index: 11;
}

.gn-login a {
  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);
}

.sidebar-logo {
  display: none;
}

.sidebar-exit {
  display: none;
}

.gn-mobile-logo {
  display: none;
}

.language-selector,
.language-selector * {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #000;
}

.language-selector.dropdown {
  position: relative;
  display: inline-block;
}

.language-selector .lang-toggle {
  background: transparent;
  border: none;
  border-bottom: 1px solid #000;
  padding: 6px 5px;
  cursor: pointer;
  font-size: 13px;
}

.lang-toggle .lang-toggle-divider {
  font-size: 10px;
}

.lang-toggle .lang-toggle-arrow {
}

.language-selector .lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 140px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 6px;
  z-index: 1000;
}

.language-selector .lang-menu li {
  list-style: none;
}

.language-selector .lang-menu a {
  display: block;
  padding: 8px 10px;
  color: #111827;
  text-decoration: none;
  border-radius: 6px;
}

.language-selector .lang-menu a:hover {
  background: #f3f4f6;
}

.language-selector .lang-menu a.active {
  font-weight: 600;
}

.language-selector .check {
  margin-left: 8px;
}

.link-disabled {
  pointer-events: none;
  cursor: default;
}

/* 브라우저 호환성을 위한 @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) {
  .language-selector .lang-toggle {
    border: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 5px;
  }

  .lang-toggle .lang-toggle-text {
    line-height: 1;
  }

  .lang-toggle .lang-toggle-divider {
    display: none;
  }

  .lang-toggle .lang-toggle-arrow {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
  }

  .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 {
    padding: 0px 30px;
    max-height: none;
  }

  .gn-left {
    gap: 0;
    flex: 1;
  }

  .gn-logo {
    display: none;
  }

  .gn-mobile-logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;

    flex-shrink: 0;
    width: 100%;
    min-height: 49px;

    z-index: 10;
  }

  .gn-mobile-logo .main-logo {
    width: 17px;
  }

  .logo-name {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Pretendard";
    font-style: normal;
    font-weight: 700;
    font-size: clamp(14px, 1vw, 16px);
    line-height: 19px;

    color: #000000;
  }

  .gn-mobile-logo a {
    height: 100%;
    display: flex;
    text-decoration: none;
    color: #333333;
  }

  .gn-logo-txt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin: 0 3px;
  }

  .gn-logo-tit {
    font-family: "Pretendard", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 8px;
    line-height: 10px;

    color: #000000;
  }

  .gn-logo-subTit {
    font-family: "Pretendard", sans-serif;
    font-style: normal;
    font-weight: 100;
    font-size: 8px;
    line-height: 10px;
    /* 상자 높이와 동일 */

    color: #000000;
  }

  .gn-mobile-logo img {
    width: 100%;
    /* height: 100%; */
  }

  .gn-center-area {
    display: block;
    /* none에서 block으로 변경 */
    margin: 0;
    gap: 0;
  }

  .gn-toggle {
    display: block;
    position: static;
    margin: 0;
  }

  .gn-right {
    margin-right: 0;
  }

  .gn-login {
    display: none;
  }

  .sidebar-logo {
    display: block;
    width: 40px;
    height: 39px;
    margin-left: 30px;
  }

  .sidebar-exit {
    display: block;
    position: absolute;
    top: 40px;
    right: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    transition: all 0.2s ease;
  }

  .sidebar-exit::before {
    content: "✕";
  }

  .sidebar-exit:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(1.1);
  }

  #nav-backdrop {
    position: fixed;
    top: 0;
    left: auto;
    bottom: 0;
    right: 0px;
    width: 210px;
    height: 92vh;
    z-index: 990;
    /* 헤더보다 훨씬 높게 설정 */
    pointer-events: none;
    border-radius: 58px 0 0 58px;
    background: rgba(255, 255, 255, 0.4) !important;
    -webkit-backdrop-filter: blur(50px);
    backdrop-filter: blur(50px);
    opacity: 0;
    transition: right 0.3s ease, opacity 0.3s ease;
  }

  body.sidebar-open #nav-backdrop {
    right: 0;
    opacity: 1;
  }

  /* 모바일 네비게이션을 사이드바로 변환 */
  .gn-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 210px;
    height: 100vh;
    background: transparent;
    isolation: isolate;
    border-radius: 58px 0 0 58px;
    overflow: hidden;
    z-index: 999;
    /* !important로 강제 적용 */
    transition: right 0.3s ease;
    padding: 40px 0 0 0;
  }

  .gn-nav.active {
    right: 0;
  }

  .gn-nav.active::before {
    left: 0;
    opacity: 1;
    pointer-events: auto;
  }

  /* 사이드바 상단 로고 영역 */
  .gn-nav::after {
    content: "";
    flex-shrink: 0;
    height: 80px;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .gn-menu {
    flex: 1;
    overflow-y: auto;
    max-height: 50vh;
    display: flex !important;
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
    background: transparent;
    justify-content: flex-start !important;
    gap: 0 !important;

    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .gn-menu::-webkit-scrollbar {
    display: none;
  }

  .gn-menu.active {
    display: flex !important;
  }

  .gn-item {
    flex: none;
    height: auto;
    text-align: left;
  }

  .gn-item > a {
    width: 100%;
    height: auto;
    padding: 18px 25px;
    color: white;
    font-size: 20px;
    font-weight: 500;
    display: flex;
    justify-content: unset;
    align-items: center;
    border-radius: 0;
    outline: none;
    position: relative;
    white-space: nowrap;
  }

  .gn-item > a * {
    display: inline;
  }

  .gn-item > a strong {
    display: inline;
    font-weight: inherit;
  }

  .gn-item > a::after {
    content: "";
    width: 8px;
    height: 5px;
    background: url("/home_assets/img/sidebar-dropdown-arrow.png") no-repeat
      center;
    background-size: contain;
    opacity: 0.7;
    transition: transform 0.3s ease;
    margin-left: auto;
  }

  .gn-item.open > a::after {
    transform: rotate(180deg);
  }

  .gn-item.open > a::after {
    transform: rotate(180deg);
  }

  .gn-item > a.active {
    color: #ffffff;
    background: transparent;
    outline: none;
  }

  .gn-item > a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
  }

  .gn-item > a.active::after {
    content: "";
    width: 8px;
    height: 5px;
    background: url("/home_assets/img/sidebar-dropdown-arrow.png") no-repeat
      center;
    background-size: contain;
    opacity: 0.7;
    border: none;
    border-radius: 0;
    top: 35px;
    right: 25px;
  }

  /* 서브메뉴를 사이드바 스타일로 */
  .gn-submenu {
    display: block !important;
    position: static;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .gn-item.open .gn-submenu {
    max-height: 500px;
  }

  .gn-submenu a {
    font-family: "Inter";
    display: block;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 400;
    text-shadow: none;
    border-radius: 0;
    transition: all 0.2s ease;
    text-decoration: none;
  }

  .gn-submenu .menu-with-subtitle {
    align-items: flex-start;
  }

  .gn-submenu .menu-main-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
  }

  .gn-submenu .menu-sub-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
  }

  .mobile-login {
    flex-shrink: 0;
    padding: 20px 25px;
    background: transparent;
    position: absolute;
    bottom: 23vh;
  }

  .mobile-login a {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
      sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    width: 100%;
    margin-top: 15px;
  }

  .mobile-login a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .login-divider {
    display: none;
  }
}
