.page-content {
    padding: 30px 0;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    position: fixed;
    top: 0;
    z-index: 9999;
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 24px;
    font-weight: 600;
}

.logo i {
    font-size: 2rem;
    color: #ef4444;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.badge {
    background: #f1f5f9;
    color: #64748b;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link.active,
.nav-link:hover {
    color: #ef4444;
    background: #fef2f2;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-right .nav-link i {
    font-size: 22px;
}


  /* 투명 브리지 영역 */
.hover-bridge {
    position: absolute;
    top: 100%;
    left: 0;
    height: 20px; /* 띄울 만큼 높이 설정 */
    width: 100%;
}

.dropdown {
    display: block; /* 항상 차지하되, 숨김 처리 */
    opacity: 0;
    visibility: hidden;
    left: 50%; /* 중앙 기준 */
    transform: translate(-50%, -10px); /* x축 중앙 정렬 + 위에서 살짝 위 */
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    top: 180%;
    background: white;
    border-radius: 0.5rem;
    z-index: 1000;
    min-width: 200px;
    pointer-events: none; /* hover 안 되게 */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    color: #64748b;
    font-weight: 500;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto; /* hover 가능 */
}

.dropdown a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown a:hover {
    color: #ef4444;
    background: #fef2f2;
}
  
.nav-item .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-item:hover .arrow {
    transform: rotate(180deg); /* 위로 회전 */
}

.nav-link .arrow {
    margin-left: 6px; /* 원하는 만큼 숫자 조절 */
}

@media screen and (max-width: 768px) {
    .header-content {
        padding: 0.5rem 0;
    }


    .nav {
        display: none;
    }

    .hide {
        transform: translateY(-100%);
    }

    .nav-top-container {
        margin: 0 auto;
        padding: 0 1rem;
        position: relative;
    }

    .mobile-menu.show {
        display: flex;
        right: 0;
        opacity: 1;
        visibility: visible;
    }

    .nav-right {
        padding: 8px 12px;
        justify-content: end;
        background: #f1f5f9;
    }

    #language_form_mobile {
        display: flex;
        align-items: center;
    }

      /* 햄버거 버튼 */
      .hamburger {
        display: flex;
        justify-content: end;
        align-items: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
        font-size: 24px;
    }
      .hamburger div {
        background: white;
        height: 3px;
        border-radius: 2px;
      }
    
      /* 모바일 메뉴 숨기기 */
      .mobile-menu {
        opacity: 0;
        visibility: hidden;
        position: absolute;
        right: -100%;
        top: 100%;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 0;
        margin: 0;
        list-style: none;
        transition: right 0.3s ease, opacity 0.3s ease;
        z-index: 9999;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        padding-bottom: 20px;
      }
    
      /* 메뉴 아이템 */
      .mobile-menu li {
        padding: 0 1.5rem;
      }
      .mobile-menu li a {
        text-decoration: none;
        display: block;
        padding: 1rem 1rem;
        border-bottom: 1px solid #cfcfcf;
        border-radius: 0;
      }
    
      /* 서브 메뉴 */
      .submenu {
        display: none;
        background: white;
        list-style: none;
        padding-left: 1rem;
      }
      .submenu li a {
        padding: 10px 1rem;
        font-size: 0.9rem;
      }
    
      /* 서브메뉴 토글 아이콘 */
      .has-submenu > a::after {
        float: right;
        font-size: 0.7rem;
        margin-left: 0.5rem;
      }
    
      /* 열릴 때 */
      .submenu-open > .submenu {
        display: block;
      }
}

@media screen and (min-width: 769px) {
    .nav-top-container {
        max-width: var(--container-size);
        margin: 0 auto;
        padding: 0 1rem;
    }
    .nav-container {
        display: none;
    }
    .mobile-menu.show {
      display: flex;
    }
}