@charset "utf-8";

/* ========================================
   헤더 - 메인 구조
======================================== */
.header {
    position: relative;
    width: 100%;
    height: 112px;
    background-color: #fff;
    border-bottom: 1px solid #E9E9E9;
}

.header-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 100px;
}

.header-box {
    display: flex;
    align-items: center;
    gap: 70px;
    height: 100%;
    flex: 0 0 calc(100% - 70px);
    justify-content: space-between;
}

.header-dropdown-bg {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 360px;
    background-color: #fff;
    box-shadow: 0 14px 36px rgba(0,0,0,.06);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 100;   
}

/* ========================================
   헤더 - 로고
======================================== */
.header-logo {
    display: block;
    width: 242px;
}

.header-logo .lnk {
    display: block;
    width: 100%;
}

.header-logo .lnk img {
    width: 100%;
}

/* ========================================
   GNB - 데스크톱 네비게이션
======================================== */
.gnb {
    position: static;
    display: flex;
    align-items: center;
    height: 100%;
}

.gnb-list {
    display: flex;
    align-items: center;
    height: 100%;
}

.gnb-list {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-inner.menu-open .header-dropdown-bg {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gnb-list > li {
    position: relative;
    min-width: 151px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gnb-lnk {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    height: 100%;
    font-size: 20px;
    font-weight: 600;
    color: #111;
    position: relative;
    transition: color 0.3s ease;
}

/* 1뎁스 호버/액티브 시 하단 보더 */
.gnb-list > li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #10488C;
    transition: width 0.3s ease;
}

.gnb-list > li:hover::after,
.gnb-list > li.active::after {
    width: calc(100% - 64px);
}

.gnb-list > li:hover .gnb-lnk,
.gnb-list > li.active .gnb-lnk {
    color: #10488C;
}

/* ========================================
   GNB - 2단계 메뉴 (전체 너비 드롭다운)
======================================== */
/* 전체 드롭다운 배경 */

.gnb-2depth {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 151px;
    width: 100%;
    padding-top: 30px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    text-align: center;
}

.gnb:hover .gnb-2depth,
.gnb-list:hover .gnb-2depth,
.header-inner.menu-open .gnb-2depth {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gnb-2depth-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gnb-2depth-list > li {
    text-align: center;
}

.gnb-2depth-list > li > a {
    color: #333;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -1.44px;
    transition: color 0.3s ease;
}

.gnb-2depth-list > li:hover > a {
    color: #10488C;
}

/* 3뎁스 메뉴 */
.gnb-3depth-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding: 0 10px;
}

.gnb-3depth-list > li {
    font-size: 15px;
    text-align: center;
}

.gnb-3depth-list > li > a {
    color: #333;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -1.28px;
    word-break: keep-all;
}

.gnb-3depth-list > li:hover > a {
    color: #10488C;
}

/* ========================================
   햄버거 버튼 (모바일)
======================================== */
.header-gnb-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
}
.header-gnb-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ========================================
   전체 GNB - 모바일 & PC 전체 메뉴
======================================== */
.all-gnb-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
    overflow-y: auto;
}

.all-gnb-wrap > .container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 100%;
    background-color: #FFFFFF;
    padding: 0;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.all-gnb-wrap.active,
.all-gnb-wrap.show {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s ease;
}

.all-gnb-wrap.active > .container,
.all-gnb-wrap.show > .container {
    transform: translateX(0);
}

.all-gnb-header {
    display: none;
}

.all-gnb {
    display: block;
}

.all-gnb-close {
    position: absolute;
    top: 40px;
    right: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    border-radius: 25px;
    background: #F8F9FA;
    transition: opacity 0.2s ease;
    border: none;
}

.all-gnb-header .all-gnb-close {
    display: none;
}

.all-gnb-close:hover {
    opacity: 0.7;
}

.all-gnb-list {
    display: flex;
}

.all-gnb-list > li {
    display: flex;
    flex-direction: column;
    width: calc(100% / 5);
    border-right: 1px solid #E9E9E9;
}
.all-gnb-list > li:first-child {
    border-left: 1px solid #E9E9E9;
}

.all-gnb-lnk {
    display: block;
    padding: 20px 0 24px 0;
    text-align: center;
    color: #111;
    font-size: 20px;
    font-weight: 700;
}

/* 전체 GNB - 2단계 */
.all-gnb-2depth {
    display: block;
}

.all-gnb-2depth-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.all-gnb-2depth-lnk {
    display: block;
    padding: 0 10px;
    transition: all 0.2s ease;
    color: #333;
    font-size: 18px;
    font-weight: 400;
}

.all-gnb-2depth-list > li:hover .all-gnb-2depth-lnk,
.header.active .all-gnb-2depth-list > li:hover .all-gnb-2depth-lnk {
    text-decoration: underline;
}

/* 전체 GNB - 3단계 */
.all-gnb-3depth-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.all-gnb-3depth-list > li:first-child {
    margin-top: 12px;
}

.all-gnb-3depth-lnk {
    display: block;
    padding-left: 20px;
    color: #707070;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.all-gnb-3depth-list > li:hover .all-gnb-3depth-lnk,
.header.active .all-gnb-3depth-list > li:hover .all-gnb-3depth-lnk {
    text-decoration: underline;
}

/* ========================================
   util menu - 로그인, 마이페이지 메뉴
======================================== */
.util-menu {
    display: flex;
    gap: 20px;
}
.util-menu a {
}


/* ========================================
   반응형 - 태블릿 & 모바일
======================================== */
@media all and (max-width: 1750px) {
    .header-box {
        gap: 20px;
    }
    .gnb-dropdown-inner {
        padding: 40px 60px;
        gap: 40px;
    }

    .gnb-2depth {
        min-width: 110px;
    }
    
    .gnb-lnk {
        padding: 0;
    }
}

@media all and (max-width: 1580px) {
    .gnb-lnk {
        font-size: 18px;
    }
    
    .gnb-2depth-list > li > a {
        font-size: 14px;
    }
    .header-inner {
        padding: 0 20px;
    }
    .header-logo {
        width: 178px;
    }
    .header-box {
        gap: 20px;
    }
    .gnb-2depth {
        min-width: 92px;
    }
    
    .gnb-dropdown-inner {
        padding: 40px 40px;
        gap: 24px;
    }
    
    .gnb-3depth-list > li > a {
        font-size: 14px;
    }
}
@media all and (max-width: 1440px) {
    .gnb-dropdown-inner {
        padding: 40px 60px;
        gap: 30px;
    }
}
@media all and (max-width: 1350px) {
    .gnb-list > li {
        min-width: 100px;
    }

}

@media all and (max-width: 1024px) {
    /* 헤더 */
    .header {
        height: 60px;
    }
    
    .header-inner {
        padding: 0 20px;
    }
    
    .header-box {
        height: 60px;
    }
    
    .header-logo {
        width: 178px;
    }
    
    /* 햄버거 버튼 표시 */
    .header-gnb-btn {
        display: flex;
        width: 30px;
        height: 30px;
    }
    
    /* 전체 메뉴 모바일 */
    .all-gnb-wrap {
        display: flex;
        justify-content: flex-end;
        background: rgba(0, 0, 0, 0.60);
    }
    .all-gnb-wrap > .container {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        width: calc(100% - 60px);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .all-gnb-wrap.active > .container,
    .all-gnb-wrap.show > .container {
        transform: translateX(0);
    }
    
    .all-gnb-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 80px;
        padding: 0 20px;
        background: #fff;
    }
    
    .all-gnb-logo {
        width: 178px;
    }
    
    .all-gnb-logo .lnk {
        display: block;
        width: 100%;
    }
    
    .all-gnb-logo img {
        width: 100%;
    }
    
    .all-gnb-close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 30px;
        height: 30px;
        background: transparent;
        border-radius: 0;
    }
    
    .all-gnb-close svg {
        width: 100%;
        height: 100%;
    }
    
    /* 전체 메뉴 리스트 */
    .all-gnb {
        width: 100%;
        height: calc(100% - 80px);
        padding: 0 20px;
        overflow-y: auto;
    }
    .all-gnb-list {
        flex-direction: column;
        gap: 26px;
        width: 100%;
    }
    
    .all-gnb-list > li {
        width: 100%;
        border-right: none;
        border-left: none;
    }
    
    .all-gnb-list > li:first-child {
        border-left: none;
    }
    
    .all-gnb-lnk {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding: 0 0 10px 8px;
        color: #000;
        font-family: Pretendard;
        font-size: 22px;
        font-style: normal;
        font-weight: 600;
        line-height: normal;
    }

    .all-gnb-list > li.active .all-gnb-lnk {
        color: #10488C;
    }
    
    .all-gnb-list > li.active .all-gnb-lnk::after {
        transform: rotate(45deg);
        color: #10488C;
    }
    
    /* 2뎁스 아코디언 */
    .all-gnb-2depth {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 10px;
        background-color: #F8F9FA;
    }
    
    .all-gnb-list > li.active .all-gnb-2depth {
        max-height: 2000px;
    }
    
    .all-gnb-2depth-list {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
        width: 100%;
    }
    
    .all-gnb-2depth-lnk {
        display: block;
        width: 100%;
        padding: 0;
        font-size: 16px;
        font-weight: 400;
        text-align: left;
        transition: background-color 0.2s ease, color 0.2s ease;
    }
    
    .all-gnb-2depth-list > li:hover .all-gnb-2depth-lnk {
        background-color: rgba(16, 72, 140, 0.05);
        color: #10488C;
        text-decoration: none;
    }
    
    /* 3뎁스 */
    .all-gnb-3depth-list {
        flex-direction: column;
        gap: 12px;
    }
    
    .all-gnb-3depth-lnk {
        display: block;
        padding-left: 10px;
        font-size: 14px;
        color: #666;
        text-align: left;
        transition: background-color 0.2s ease, color 0.2s ease;
        border-left: 3px solid transparent;
    }
    
    .all-gnb-3depth-list > li:hover .all-gnb-3depth-lnk {
        background-color: #F8F9FA;
        border-left-color: #10488C;
        color: #10488C;
        text-decoration: none;
    }
    
    /* 모바일에서는 기본 GNB 숨김 */
    .gnb {
        display: none;
    }
}