.header-wrapper {
    width: 100%;
    margin: 0 auto;
}

/* Header 전체를 감싸는 컨테이너 추가 */
.header-outer {
    position: relative;
    width: 100%;
}

/* Top Row */
.top-header {
    width: 100%;
    height: 66px;
    background-color: white;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: relative; /* 상대 위치 설정 */
}

.logo-container {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo-container img {
    width: 140px;
    height: 18px;
    object-fit: contain;
}
/* Main Navigation */
.main-nav-container {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.main-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.main-nav > li > a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 23px 0;
    display: inline-block;
}

.main-nav > li > a:hover,
.main-nav > li > a.active {
    color: #00a0e9;
}

/* Top Right Menu */
.top-right-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: 30px;
}


/* Language Selector */
.language-selector select {
    appearance: none;
    background: transparent url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 0.5rem center/1em;
    border: none;
    padding: 5px 25px 5px 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.language-selector select:focus {
    outline: none;
}

/* Auth Links */
.auth-links a {
    color: #333;
    text-decoration: none;
    padding: 5px 10px;
}

.auth-links a:hover {
    color: #00a0e9;
}


/* Submenu Bar */
.submenu-bar {
    width: 100%;
    background-color: #333;
}
.submenu-outer {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 20px;
}
.submenu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.submenu li a {
    color: #fff;
    text-decoration: none;
    padding: 0 30px;
    height: 40px;
    display: flex;
    align-items: center;
}

.submenu li a:hover,
.submenu li a.active {
    color: #00a0e9;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    border: none;
    background: none;
    padding: 10px;
    margin-left: auto;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* footer는 항상 맨 아래에 위치하도록 설정 */
footer {
    flex-shrink: 0;
}

/* Footer 반응형 스타일 */
.footer-wrapper {
    background-color: #1a1a1a;
    color: white;
    padding: 30px 0 20px;
}

.footer-content {
    max-width: 1200px; /* 적절한 최대 너비로 조정 */
    margin: 0 auto; /* 가운데 정렬 */
    display: flex;
    justify-content: space-between; /* 로고와 info 사이 간격 */
    align-items: center;
    padding: 0 20px;
}

.footer-logo img {
    height: 20px;
}

.footer-info {
    display: flex;
    gap: 20px; /* 항목 간 간격 */
    flex-wrap: wrap; /* 필요시 줄바꿈 */
    align-items: center;
}

.footer-link {
    color: white;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-copyright {
    max-width: 1200px; /* footer-content와 동일하게 */
    margin: 15px auto 0;
    padding: 0 20px;
    font-size: 0.9em;
    color: #666;
    text-align: center; /* 저작권 정보는 중앙 정렬 */
}

@media screen and (max-width: 768px) {

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        padding: 0;
        margin-left: 15px;
        cursor: pointer;
        position: relative;
        z-index: 100;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: #333;
        margin: 2px 0;
        transition: all 0.3s ease;
    }

    /* 활성화된 토글 버튼 스타일 */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(3px, 3px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(3px, -3px);
    }


    .main-nav-container {
        display: none;
        position: absolute;
        top: 60px; /* 헤더 높이에 맞춤 */
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 99;
    }

    .main-nav-container.active {
        display: block;
    }

    .main-nav {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    .main-nav > li {
        width: 100%;
        border-bottom: 1px solid #eee;
        position: relative; /* 추가 */
    }

    .main-nav > li > a {
        padding: 15px 20px;
        width: 100%;
        display: block;
    }

    .submenu-bar {
        position: static;
        display: none;
        margin: 0;
        background-color: #f5f5f5;
        /* 트랜지션 추가 */
        transition: max-height 0.3s ease-in-out;
        max-height: 0;
        overflow: hidden;
    }

    .submenu-bar.active {
        display: block;
        max-height: 1000px; /* 충분히 큰 값 */
    }

    .submenu {
        flex-direction: column;
        padding: 0;
    }

    .submenu li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .submenu li a {
        padding: 12px 40px; /* 들여쓰기 효과를 위해 패딩 조정 */
        color: #333;
        justify-content: flex-start;
        font-size: 14px;
    }

    /* 서브메뉴가 있는 메인 메뉴 항목에 화살표 추가 */
    .main-nav > li.has-submenu > a::after {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        border-right: 2px solid #333;
        border-bottom: 2px solid #333;
        transform: rotate(45deg);
        margin-left: 10px;
        transition: transform 0.3s ease;
    }

    .main-nav > li.has-submenu.active > a::after {
        transform: rotate(-135deg);
    }

    /* 상단 메뉴 조정 */
    /*.top-header {*/
    /*    padding: 10px 20px;*/
    /*    position: relative;*/
    /*}*/
    .top-header {
        justify-content: space-between; /* 요소들 사이에 공간을 균등하게 배분 */
        padding: 0 15px;
        height: 60px; /* 모바일에서 높이 약간 줄임 */
    }

    .logo-container {
        margin-left: 0;
        flex: 1; /* 남은 공간 차지 */
    }

    .top-right-menu {
        margin-right: 0;
        margin-left: 15px;
        display: flex;
        align-items: center;
    }

    /* 언어 선택 메뉴 조정 */
    .language-selector {
        margin-right: 10px;
    }

    .language-selector select {
        padding: 5px 20px 5px 5px;
        font-size: 12px;
    }

    .footer-content {
        flex-direction: column; /* 모바일에서는 세로 배치 */
        gap: 15px;
    }

    .footer-info {
        flex-direction: column; /* 모바일에서는 info 내 항목도 세로 배치 */
        gap: 10px;
        align-items: center; /* 중앙 정렬 */
    }

    .footer-address,
    .footer-business {
        font-size: 12px;
    }


}