/* ========================================
   1. 헤더 레이아웃 & 기본 설정
======================================== */
.main_gnb {
    width: 100%;
    background-color: var(--bg-white);
    /* border-bottom: 1px solid var(--border-color); */
}

.main_gnb_inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

.header_top {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    background-color: #f6f6f6;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    height: 100px;
    padding: 0 40px;
    transition: opacity 0.3s ease-out, max-height 0.5s ease, padding 0.5s ease;
    box-sizing: border-box;
}

header.pc_ver,
header.mobile_ver {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002;
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub_tab_menu {
    position: -webkit-sticky;
    position: sticky;
    z-index: 1001;
    background-color: #f8f9fa;
    width: 100%;
    transition: top 0.3s ease-out;
    border-bottom: 1px solid #e5e5e5;
}

header.mobile_ver.active {
    box-shadow: none;
}

header.pc_ver.scrolled .header_top {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    padding: 0;
    border-bottom: none;
}

.top_logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.top_logo img {
    display: block;
    max-height: 105px;
    transition: all 0.3s ease;
}

.header_right {
    display: flex;
        align-items: center;
        gap: 5px;
        position: relative;
        z-index: 2;
        flex-direction: column;
        right: 11%;
}

.cta_text {
    font-size: 15px;
    color: #666;
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* 회원가입 버튼 */
.btn_header_join {
    display: inline-block;
    padding: 10px 24px;
    background-color: #0b204d;
    /* 다크 네이비 */
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(11, 32, 77, 0.15);
}

.btn_header_join:hover {
    background-color: #1a3a7a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(11, 32, 77, 0.25);
}

/* ========================================
   2. 유틸 메뉴 (기존 코드)
======================================== */
.util_menu {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
}

.util_menu a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-right: 10px;
    transition: color 0.2s;
}

.util_menu a:hover {
    color: var(--main-color);
    font-weight: 700;
}

/* ========================================
   3. GNB (네비게이션) 스타일
======================================== */
/* 1차 메뉴 */
.dept_menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dept_menu>li {
    position: relative;
    height: 100%;
}

.dept_menu>li>a {
    display: block;
    padding: 15px 15px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.dept_menu>li:nth-child(2)>a {
    width: auto;
    min-width: 300px;
}

.dept_menu>li:hover>a {
    color: var(--main_color);
}

.dept_menu>li.active>a {
    color: var(--main_color);
    font-weight: 700;
}

/* 2차 메뉴 (Sub Menu) */
.dept_menu .depth2 {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 1000;
    list-style: none;
    text-align: center;
    border-radius: 0 0 8px 8px;
}

.dept_menu>li:hover .depth2 {
    display: block;
}

.depth2 li a {
    display: block;
    padding: 12px 15px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.depth2 li a:hover {
    background-color: var(--bg-light-gray);
    color: var(--main_color);
    font-weight: 600;
}

.depth2 li.active a {
    background-color: #f0f6ff;
    color: var(--main_color);
    font-weight: 700;
}


/* ========================================
   4. 모바일 메뉴 스타일
======================================== */
@media (max-width: 768px) {

    

    .cta_text {
     
    }

    .btn_header_join {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* [수정] 헤더 패딩 조정 */
    .header_top {
        padding: 0 20px;
    }
}

@media screen and (min-width: 2560px) {
    .header_right {
        right: 21%;
    }
}