/* 리뉴얼 헤더 스타일 */
.renewal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #fff;
}

/* 헤더 컨테이너 */
.renewal-header .gw_header_container {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.renewal-header .gw_boundary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    position: relative;
}

/* 왼쪽 영역 - 마이페이지 */
.renewal-header .mypage_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    font-size: 18px;
    transition: all 0.3s ease;
}

.renewal-header .mypage_btn:hover {
    background: #e0e0e0;
    color: #000;
}

/* 중앙 로고 */
.renewal-header #logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.renewal-header #logo a {
    display: block;
}

.renewal-header #logo img {
    max-height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

/* 오른쪽 영역 - 검색 & 햄버거 */
.renewal-header .header_right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.renewal-header .search_btn {
    cursor: pointer;
}

.renewal-header .search_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease;
}

.renewal-header .search_icon:hover {
    background: #e0e0e0;
    color: #000;
}

.renewal-header .menu_btn {
    cursor: pointer;
}

.renewal-header .menu_icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    transition: all 0.3s ease;
}

.renewal-header .menu_icon:hover {
    background: #e0e0e0;
}

.renewal-header .menu_icon span {
    display: block;
    width: 20px;
    height: 2px;
    background: #333;
    margin: 2px 0;
    transition: all 0.3s ease;
}

/* 스크롤 시 고정 헤더 */
.renewal-header .gw_header_container.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.renewal-header .gw_header_container.fixed #logo img {
    max-height: 35px;
}

/* 상단 모바일 네비게이션 */
.top-mobile-nav {
    display: none;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-mobile-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 50px;
    max-width: 600px;
    margin: 0 auto;
}

.top-nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    padding: 10px 0;
    height: 100%;
}

.top-nav-item.active {
    color: #5BB6E2;
    font-weight: 700;
    border-bottom: 3px solid #5BB6E2;
}

.top-nav-item:hover {
    color: #5BB6E2;
}

.top-nav-item span {
    line-height: 1;
    display: block;
}

/* 모바일 메뉴 (햄버거) */
.gnb_all_container {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 10000;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.gnb_all_container.open {
    right: 0;
}

.gnb_all_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

.gnb_all_overlay.open {
    display: block;
}

.gnb_all_inner {
    padding: 20px;
}

.gnb_all_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.gnb_all_close_btn {
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    order: 1; /* flex 순서를 뒤로 */
    margin-left: auto; /* 오른쪽으로 밀기 */
}

.gnb_all_close_btn:before,
.gnb_all_close_btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: #333;
}

.gnb_all_close_btn:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.gnb_all_close_btn:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.gnb_all_utill {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gnb_all_utill li {
    list-style: none;
    display: inline-block;
}

.gnb_all_utill li a {
    text-decoration: none;
    color: #666;
    font-size: 13px;
}

.gnb_all_utill li a:hover {
    color: #5BB6E2;
}

.gnb_all {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gnb_all_item {
    position: relative;
    list-style: none;
    border-bottom: 1px solid #f0f0f0;
}

.gnb_all_item > a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
}

.gnb_all_item > a:hover {
    color: #5BB6E2;
}

.gnb_all_item a.m_menu {
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
    display: block;
    text-decoration: none;
    color: #333;
}

.gnb_all_item a.m_menu:hover {
    color: #5BB6E2;
}

.gnb_all_item a.m_menu:last-child {
    border-bottom: none;
}

.lnb_op_btn {
    position: absolute;
    right: 0;
    top: 8px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.lnb_op_btn:before {
    content: '+';
    font-size: 20px;
    color: #999;
}

.lnb_op_btn.active:before {
    content: '-';
}

.lnb_all {
    list-style: none;
    display: none;
    padding-left: 15px;
    margin-bottom: 10px;
}

.lnb_all_item {
    list-style: none;
}

.lnb_all_item a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.lnb_all_item a:hover {
    color: #5BB6E2;
}

/* 검색창 스타일 */
.gw_search {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 10001;
}

.gw_search_inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gw_search_boundary {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    position: relative;
}

.gw_search_close_btn {
    position: absolute;
    top: -40px;
    right: 0;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
}

.gw_search_close_btn:before,
.gw_search_close_btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: #333;
}

.gw_search_close_btn:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.gw_search_close_btn:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

#gw_search_field {
    border: none;
    padding: 0;
}

#gw_search_field form {
    display: flex;
    border-bottom: 2px solid #333;
}

.gw_search_input {
    flex: 1;
    border: none;
    padding: 15px 0;
    font-size: 18px;
    outline: none;
}

.gw_search_submit_btn {
    background: none;
    border: none;
    padding: 0 15px;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

/* 반응형 */
@media screen and (max-width: 768px) {
    body {
        padding-bottom: 80px;
    }
    
    .top-mobile-nav {
        display: block;
    }
    
    .renewal-header .gw_boundary {
        padding: 10px 15px;
    }

    .renewal-header #logo img {
        max-height: 35px;
    }

    .renewal-header .mypage_btn,
    .renewal-header .search_icon,
    .renewal-header .menu_icon {
        width: 36px;
        height: 36px;
    }
}

@media screen and (max-width: 425px) {
    .renewal-header #logo img {
        max-height: 30px;
    }

    .renewal-header .mypage_btn,
    .renewal-header .search_icon,
    .renewal-header .menu_icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .renewal-header .menu_icon span {
        width: 16px;
    }
}