/* 공통 상단·하위·푸터 메뉴 */
.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    width: 1.2em;
    height: 1.2em;
    object-fit: contain;
    border-radius: 4px;
}

.footer-logo {
    margin-bottom: 15px;
    text-align: center;
}

.footer-logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
}

.footer-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

#navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    transform: translateY(0);
    transition: transform .25s ease;
}

#navbar.navbar-hidden {
    transform: translateY(-110%) !important;
}

.nav-utility-label {
    display: none;
}

.edu-mobile,
.edu-mobile-title {
    display: none;
}

.edu-dropdown {
    position: relative;
}

.edu-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    padding: 0;
    margin: 0;
    list-style: none;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .15);
    z-index: 999;
}

.edu-submenu li a {
    display: block;
    padding: 5px 15px 5px 0;
    color: #333;
    white-space: nowrap;
}

.edu-submenu li a:hover {
    background: lightgrey;
}

.edu-dropdown:hover .edu-submenu,
.footer-menu .edu-dropdown.open .edu-submenu {
    display: block;
}

@media screen and (max-width: 1024px) {
    .nav-container.menu-has-more::after {
        content: "아래 메뉴 더보기  ↓";
        position: absolute;
        top: calc(100dvh - 52px);
        left: 50%;
        right: auto;
        bottom: auto;
        z-index: 10001;
        width: 100vw;
        transform: translateX(-50%);
        display: flex;
        align-items: flex-end;
        justify-content: center;
        height: 52px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
        background: linear-gradient(to bottom, rgba(41, 79, 90, 0), rgba(41, 79, 90, .96) 62%);
        color: #fff;
        font-size: .86rem;
        font-weight: 600;
        letter-spacing: .02em;
        pointer-events: none;
        box-sizing: border-box;
    }

    .menu-icon {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        right: 8px;
        gap: 2px;
        font-size: 1.05rem;
    }

    .menu-icon.active {
        display: none !important;
    }

    .menu-icon > .nav-utility-link,
    .menu-icon > .nav-utility-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 28px;
        width: 28px;
        min-width: 28px;
        height: 32px;
        min-height: 32px;
        padding: 0;
        margin: 0;
        line-height: 1;
        box-sizing: border-box;
    }

    .nav-menu {
        max-height: calc(100dvh - 60px);
        padding-bottom: calc(28px + env(safe-area-inset-bottom));
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        box-sizing: border-box;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .nav-menu > li {
        width: 100%;
        margin: 2px 0 !important;
        padding: 0 20px !important;
        box-sizing: border-box;
    }

    .nav-menu > li > a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 40px;
        line-height: 1.35;
        box-sizing: border-box;
    }

    .nav-menu > .nav-utility-item {
        display: list-item !important;
    }

    .nav-menu > .nav-utility-item > .nav-utility-link {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        min-height: 40px;
        gap: 10px;
    }

    .nav-menu > .nav-utility-item .nav-utility-icon {
        flex: 0 0 22px;
        width: 22px;
        margin: 0;
        text-align: center;
    }

    .nav-menu > .nav-utility-item .nav-utility-label {
        display: inline;
    }

    .nav-menu > .nav-utility-item:last-child {
        margin-bottom: 16px !important;
    }

    .edu-dropdown {
        display: none;
    }

    .footer-menu .edu-dropdown {
        display: list-item;
    }

    .edu-mobile-title,
    .edu-mobile {
        display: list-item;
    }

    .edu-mobile {
        padding-left: 100px;
    }

    .edu-mobile a {
        display: block;
        text-align: left;
    }

    .edu-mobile a::before {
        content: "└ ";
        color: #ccc;
    }
}
