.header {
    position: relative;
    width: 100%;
    height: 96px;
    z-index: 1000;
}

.header-inner {
    width: calc(100% - 100px);
    max-width: 1610px;
    height: 100%;
    margin: 0 auto;

    display: flex;
    align-items: center;
}

.header-inner {
    width: calc(100% - 120px);
    max-width: 1500px;
    height: 100%;
    margin: 0 auto;

    display: flex;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo img {
    display: block;
    width: 230px;
    height: auto;
}

.header-gnb {
    margin-left: 60px;
}

.header-gnb > ul {
    display: flex;
    align-items: center;
    gap: 60px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-gnb a {
    display: block;
    color: #111111;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.header-gnb > ul > li:not(.header-language-item) > a:hover {
    color: #00399e;
}

/* 언어 선택 영역 */
.header-language-item {
    margin-left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-language {
    display: flex;
    align-items: center;
    padding: 7px 12px;
    background: #f0f0f0;
    border-radius: 18px;
}

/* 관리자 배지 */
.header-gnb a.header-admin-badge,
.header-mobile-utils a.header-admin-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    background: var(--main-color, #0085CF);
    color: #ffffff;
    font-size: 15px;
    font-weight: 650;
    border-radius: 18px;
    white-space: nowrap;
}

.header-language a {
    color: #888888;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}

.header-language a.active {
    color: #111111;
    font-weight: 650;
}

/* KR과 EN 사이 구분선 */
.header-language span {
    display: block;
    border: 1px solid #CECECE;
    /*width: 1px;*/
    height: 11px;
    margin: 0 8px;
}

.header-mobile-utils {
    display: none;
    align-items: center;
    gap: 10px;
    margin-left: 18px;
}

.header-mobile-language {
    display: flex;
    align-items: center;
    padding: 7px 12px;
    background: #f0f0f0;
    border-radius: 18px;
}

.header-mobile-language a {
    color: #888888;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}

.header-mobile-language a.active {
    color: #111111;
    font-weight: 650;
}

.header-mobile-language span {
    display: block;
    height: 11px;
    margin: 0 8px;
    border-left: 1px solid #CECECE;
}

.header-util {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.header-menu-button {
    width: 50px;
    height: 50px;
    padding: 0;
    transform: translateX(-24px);

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    /*border: 0;*/
    cursor: pointer;
}

.header-menu-button img {
    /*display: block;*/
    width: 30px;
    height: 20px;
    /*object-fit: contain;*/
}

.header-category-backdrop {
    position: fixed;
    inset: 96px 0 0;
    display: none;
    background: rgba(17, 24, 39, .22);
    z-index: 1000;
}

.header.is-category-open .header-category-backdrop {
    display: block;
}

.header-category-bar[hidden] {
    display: none;
}

.header-category-bar {
    position: absolute;
    top: 96px;
    left: 0;
    width: 100%;
    padding: 34px 0 38px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #dfe5ee;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .12);
    z-index: 1001;
}

.header-category-inner {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px;
    width: calc(100% - 120px);
    max-width: 1500px;
    margin: 0 auto;
}

.header-category-column {
    display: flex;
    flex-direction: column;
    gap: 13px;
    min-width: 0;
    padding-right: 24px;
    border-right: 1px solid #edf0f4;
}

.header-category-column:last-child {
    border-right: 0;
    padding-right: 0;
}

.header-category-column a {
    color: #4b5563;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    word-break: keep-all;
}

.header-category-column a:hover {
    color: #005fae;
}

.header-category-column .header-category-title {
    margin-bottom: 3px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
}

.header.is-category-open .header-menu-button {
    border-radius: 999px;
    background: #f0f7fc;
}


@media screen and (max-width: 1100px) {
    .header-inner {
        width: calc(100% - 40px);
    }

    .header-gnb {
        display: none;
    }

    .header-mobile-utils {
        display: flex;
    }

    .header-util {
        margin-left: auto;
    }

    .header-category-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: calc(100% - 40px);
        gap: 24px 18px;
    }

    .header-category-column {
        padding-right: 18px;
    }

    .header-category-column:nth-child(2n) {
        border-right: 0;
        padding-right: 0;
    }

    .header-category-column--single {
        grid-column: 1 / -1;
        border-top: 1px solid #edf0f4;
        padding-top: 20px;
    }
}

@media screen and (max-width: 600px) {
    .header {
        height: 68px;
    }

    .header-logo img {
        width: 125px;
    }

    .header-mobile-utils {
        margin-left: 12px;
        gap: 6px;
    }

    .header-mobile-language {
        padding: 6px 10px;
        border-radius: 16px;
    }

    .header-mobile-language a {
        font-size: 12px;
    }

    .header-mobile-language span {
        height: 10px;
        margin: 0 6px;
    }

    .header-mobile-utils a.header-admin-badge {
        padding: 6px 10px;
        font-size: 12px;
        border-radius: 16px;
    }

    .header-menu-button {
        width: 42px;
        height: 42px;
        transform: none;
    }

    .header-menu-button img {
        width: 27px;
        height: auto;
    }

    .header-category-backdrop {
        inset: 68px 0 0;
    }

    .header-category-bar {
        top: 68px;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
        padding: 24px 0 28px;
    }

    .header-category-inner {
        grid-template-columns: 1fr;
        width: calc(100% - 36px);
        gap: 0;
    }

    .header-category-column,
    .header-category-column:nth-child(2n) {
        border-right: 0;
        border-bottom: 1px solid #edf0f4;
        gap: 0;
        padding: 0;
    }

    .header-category-column:last-child {
        border-bottom: 0;
    }

    .header-category-column a {
        font-size: 14px;
    }

    .header-category-column .header-category-title {
        position: relative;
        margin-bottom: 0;
        padding: 18px 28px 18px 0;
        font-size: 17px;
    }

    .header-category-column .header-category-title::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 2px;
        width: 8px;
        height: 8px;
        border-right: 2px solid #94a3b8;
        border-bottom: 2px solid #94a3b8;
        transform: translateY(-65%) rotate(45deg);
        transition: transform .2s ease;
    }

    .header-category-column--single .header-category-title::after {
        display: none;
    }

    .header-category-column.is-open .header-category-title::after {
        transform: translateY(-35%) rotate(225deg);
    }

    .header-category-column a:not(.header-category-title) {
        display: none;
        padding: 0 0 14px 12px;
        color: #64748b;
        font-size: 14px;
        font-weight: 600;
    }

    .header-category-column.is-open a:not(.header-category-title) {
        display: block;
    }

    .header-category-column.is-open a:last-child {
        padding-bottom: 18px;
    }
}
