@charset "utf-8";

/* Mobile menu overlay (공용) */
.mobile-menu-wrap {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.56);
    overflow: hidden; /* off-canvas 패널로 인한 가로 공백 방지 */
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.mobile-menu-wrap.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-wrap .mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: min(420px, 90vw);
    height: 100%;
    background: #111;
    color: #fff;
    transform: translateX(100%);
    transition: transform .2s ease;
    will-change: transform;
}

.mobile-menu-wrap.is-open .mobile-menu {
    transform: translateX(0);
}

.mobile-top-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 86px;
    padding: 0 20px;
}

.mobile-logo { line-height: 0; }
.mobile-logo img { display: block; height: 28px; width: auto; }

.ham-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.ham-btn p {
    position: relative;
    width: 18px;
    height: 14px;
    margin: 0 auto;
}

.ham-btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.ham-btn span:nth-child(1) { top: 0; }
.ham-btn span:nth-child(2) { top: 6px; opacity: 1; }
.ham-btn span:nth-child(3) { top: 12px; }

#mobile-gnb-wrap {
    padding: 18px 20px 28px;
    height: calc(100vh - 86px);
    overflow: auto;
}

#mobile-gnb-wrap .gnb > ul > li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#mobile-gnb-wrap .gnb > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--fs-20);
    font-weight: 700;
    color: #fff;
    padding: 10px 0;
}

#mobile-gnb-wrap .menu-img-wrap { display: none; }

#mobile-gnb-wrap .menu-two-depth {
    display: none;
    padding: 8px 0 2px;
}

#mobile-gnb-wrap .is-open > .menu-two-depth-wrap > .menu-two-depth {
    display: block;
}

#mobile-gnb-wrap .menu-two-depth a {
    display: block;
    padding: 10px 10px;
    margin: 4px 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    font-size: var(--fs-16);
    font-weight: 600;
}

@media (min-width: 1025px) {
    .mobile-menu-wrap { display: none; }
}

/* Desktop GNB (공용) */
#gnb-wrap {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    height: 120px;
    display: flex;
    align-items: center;
    z-index: 31;
}

#gnb-wrap .gnb { display: flex; align-items: center; }
#gnb-wrap .gnb a { color: rgba(255,255,255,.92); }
#gnb-wrap .gnb > ul { display: flex; gap: 56px; align-items: center; }
#gnb-wrap .gnb > ul > li { position: relative; }

#gnb-wrap .menu-two-depth-wrap {
    display: none;
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    margin-top: 18px;
    width: 420px;
    padding: 18px 18px 16px;
    border-radius: 14px;
    background: rgba(23, 28, 34, 0.92);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    z-index: 50;
}

#gnb-wrap .menu-two-depth-wrap::before {
    content: "";
    position: absolute;
    left: 0;
    top: -18px;
    width: 100%;
    height: 18px;
}

#gnb-wrap .gnb > ul > li:hover .menu-two-depth-wrap,
#gnb-wrap .gnb > ul > li:focus-within .menu-two-depth-wrap {
    display: block;
}

#gnb-wrap .menu-img-wrap {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    margin-bottom: 12px;
}

#gnb-wrap .menu-img {
    /* width: 64px;
    height: 48px;
    border-radius: 10px; */
    background: rgba(255,255,255,.08);
}

#gnb-wrap .menu-text-wrap .tit { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.2; }
#gnb-wrap .menu-text-wrap .txt { margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.72); line-height: 1.3; min-height: 1.3em; }
#gnb-wrap .menu-two-depth { display: grid; grid-template-columns: 1fr; gap: 8px; }
#gnb-wrap .menu-two-depth a { display: block; padding: 10px 10px; border-radius: 10px; color: rgba(255,255,255,.88); font-size: 14px; line-height: 1.2; }
#gnb-wrap .menu-two-depth a:hover,
#gnb-wrap .menu-two-depth a:focus { background: rgba(255,255,255,.10); color: #fff; }
#gnb-wrap .dp_more { display: none; }

/* Mobile: hide desktop gnb */
@media (max-width: 1024px) {
    #gnb-wrap { display: none; }
}

