@charset "utf-8";

/* ============================================
   Header
============================================ */
.header {
    padding-top: 0px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 110px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: 0.2s linear;
    /*
    position:relative;
    display: flex;
    justify-content: space-between;
    gap:1rem;

    width: 100%;
    height: 110px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: 0.2s linear;
     */
}
.header .logo {
    position: absolute;
    top: 0;
    left: 80px;
    z-index: 1;
    font-size: 0;
    width: 160px;
    height: 110px;
    background: #222;
    mask: url("/images/unicon/logo.svg") no-repeat 0 50% / contain;
    -webkit-mask: url("/images/unicon/logo.svg") no-repeat 0 50% / contain;
    /*
    margin-left:80px;
    z-index: 1;
    font-size: 0;
    width: 160px;
    height: 110px;
    background: #222;
    mask: url("/images/unicon/logo.svg") no-repeat 0 50%;
    -webkit-mask: url("/images/unicon/logo.svg") no-repeat 0 50%;
    mask-size: 160px 110px;
    -webkit-mask-size: 160px 110px;
     */
}
.header .logo h1 {
    font-size: 0;
    opacity: 0;
    width: 0;
    height: 0;
}

/* 언어 선택 */
.header .langs {
    position: absolute !important;
    top: 5px !important;
    right: 10px !important;
    display: flex !important;
}
.header .langs a {
    position: relative;
    z-index: 201;
    color: rgba(34, 34, 34, 0.7);
    line-height: normal !important;
    padding: 4px 8px !important;
}
.header .langs a:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 1px;
    height: 8px;
    background: #ddd;
    margin-top: -4px;
}
.header .langs a:first-child:before {
    display: none;
}
.header .langs a.on {
    color: #222;
    font-weight: 700;
}
/* fixed */
.header.fixed .langs a {
    color: #666;
}
.header.fixed .langs a.on {
    color: #222;
}

/* 로그인/로그아웃 영역 */
.header .user-actions {
    position: absolute;
    top: 5px;
    right: 120px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 101;
}
.header .user-actions .user-name {
    color: rgba(34, 34, 34, 0.7);
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}
.header .user-actions .user-name:hover {
    color: rgba(34, 34, 34, 1);
    text-decoration: underline;
}
.header .user-actions .btn-login,
.header .user-actions .btn-logout {
    padding: 4px 10px;
    background-color: #0053b2;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 400;
    transition: all 0.2s linear;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.header .user-actions .btn-login:hover {
    background-color: #003d85;
}
.header .user-actions .btn-logout {
    background-color: #666;
}
.header .user-actions .btn-logout:hover {
    background-color: #444;
}
/* fixed 상태 */
.header.fixed .user-actions .user-name {
    color: #666;
}

.header .gnb {
    display: flex;
    flex:1;
    justify-content: center;
}
.header .gnb .menu {
    position: relative;
}
.header .gnb .menu > a {
    display: block;
    font-size: 18px;
    color: #222;
    font-weight: 500;
    line-height: 110px;
    padding: 0 45px;
}
.header .gnb .menu span {
    position: relative;
    display: block;

    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.header .gnb .menu span:after {
    content: "";
    position: absolute;
    top: calc(50% + 20px);
    left: 50%;
    width: 0;
    height: 1px;
    background: #222;
    transition: 0.2s linear;
}
.header .gnb .menu.on > a {
    font-weight: 700;
}
.header .gnb .menu.on > a span:after {
    left: 0;
    width: 100%;
}
/* 하위 메뉴 - 통합 배경 내에서 표시 */
.header .gnb .menu .snb {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    min-width: 200px;
    display: none;
    z-index: 1001;
    border: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* 하위 메뉴 링크 */
.header .gnb .menu .snb a {
    display: block;
    padding: 12px 20px;
    color: #333 !important;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    margin: 0 15px;
    text-align: center;
    position: relative;
    z-index: 1001;
    transform: translateY(10px);
}
/* 순차적 애니메이션 */
.header .gnb:hover .menu .snb a:nth-child(1) {
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}
.header .gnb:hover .menu .snb a:nth-child(2) {
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}
.header .gnb:hover .menu .snb a:nth-child(3) {
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}
.header .gnb:hover .menu .snb a:nth-child(4) {
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}
/*
.header .gnb:hover .menu .snb a:nth-child(5) {
  animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}
*/

.header .gnb .menu .snb a {
    position: relative;
    overflow: hidden;
}

.header .gnb .menu .snb a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #000, #222);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-50%);
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(0, 83, 178, 0.3);
}

.header .gnb .menu .snb a:hover {
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #0053b2 !important;
}

.header .gnb .menu .snb a:hover::before {
    width: 100%;
    box-shadow: 0 0 12px rgba(0, 83, 178, 0.5);
}
.header .gnb .menu .snb a.on {
    font-weight: 600;
    color: #0053b2 !important;
}

.header .gnb .menu .snb a.on::before {
    width: 100%;
    box-shadow: 0 0 12px rgba(0, 83, 178, 0.5);
}
/* 통합 메뉴 배경 */
.header .gnb {
    position: relative;
    transition: all 0.3s ease;
    padding-left: 240px;
}
.header .gnb::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 16px 16px;
    height: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.header .gnb:hover::before {
    /*height: 200px;*/
    height: var(--gnb-height, 200px);
    opacity: 1;
    visibility: visible;
}
.header .gnb:hover .menu {
    transform: translateY(-2px);
}

.header .gnb:hover .menu .snb {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    background: transparent;
    box-shadow: none;
    border: none;
    z-index: 1000;
}
.header .gnb .menu {
    transition: all 0.3s ease;
}

/* 키프레임 애니메이션 */
@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
.header .langs {
    position: absolute;
    top: 0;
    right: 30px;
    display: flex;
    /*
    margin-right:30px;
    display: flex;
    */
}

.header.fixed {
    background: #fff;
    box-shadow: rgba(0, 0, 0, 0.05) 0 0 30px;
}
.header.fixed .logo,
.header.main .logo {
    background: #222;
}
.header.fixed .gnb .menu > a,
.header.main .gnb .menu > a {
    color: #222;
}
.header.fixed .langs a,
.header.main .langs a {
    color: #666;
}
.header.fixed .langs a:before,
.header.main .langs a:before {
    background: #ddd;
}
.header.fixed .langs a.on,
.header.main .langs a.on {
    color: #222;
}
.header.fixed .gnb .menu span:after,
.header.main .gnb .menu span:after {
    background: #222;
}
