header {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
    z-index: 200;
    overflow: visible;
}
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 50px 0;
}
.header .logo {
    cursor: pointer;
    width: 196px;
    height: 48px;
    display: block;
}
.header .menu-wrapper {
    transition: border-radius 0.2s ease;
    display: flex;
    align-items: center;
    height: 48px;
    border-radius: 50px;
    overflow: visible;
    position: relative;
    z-index: 201;
}
.header .menu-wrapper.active {
    border-radius: 50px 50px 0 50px;
}
.header .header-menu {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 16px;
    color: #717D84;
    padding-right: 28px;
}
.header .header-menu::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 32px;
    background: #717D84;
}
.header .header-menu > li {
    position: relative;
    padding: 0 6px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    white-space: nowrap;
}
.header .header-menu > li > .menu-btn,
.header .header-menu > li > .menu-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}
.header .header-menu > li > .menu-dropdown {
    width: 100%;
    height: 100%;
}
.header .menu-dropdown {
    position: relative;
    width: 100%;
    height: 100%;
    list-style: none;
}
.header .menu-dropdown summary {
    list-style: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.header .menu-dropdown summary::-webkit-details-marker {
    display: none;
}
.header .menu-sub {
    transition: height 0.2s ease;
    height: 0;
    position: absolute;
    top: 48px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    min-width: 240px;
    max-width: 86vw;
    display: flex;
    flex-direction: column;
    border-radius: 0 0 22px 22px;
    overflow: hidden;
    z-index: 700;
    padding: 0;
    margin: 0;
}
.header .menu-dropdown[open] .menu-sub {
    height: 110px;
}
.header .header-menu > li > .menu-link span,
.header .header-menu > li > .menu-btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.header .menu-sub li {
    transition: background 0.2s ease;
    margin: 0;
    padding: 0;
}
.header .menu-sub .menu-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 15px 12px;
    font-weight: 500;
    white-space: nowrap;
    color: inherit;
    background: transparent;
    border: 0;
    text-decoration: none;
    cursor: pointer;
}
.header .menu-sub .menu-link:hover {
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    .header .menu-dropdown:hover .menu-sub {
        height: 110px;
    }
}
.header .menu-dropdown:focus-within .menu-sub {
    height: 110px;
}

.header .gnb-learn {
    /* Keep the top-level label compact; submenu controls its own width. */
    min-width: 0;
}
.header .header-menu > li:first-child {
    text-align: center;
    min-width: 160px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    border-radius: 50px;
    padding: 0 32px;
    background: linear-gradient(90.06deg, #A179F5 46.35%, #2EB9C8 99.94%);
}
.header .header-icon {
    position: relative;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    overflow: visible;
    z-index: 210;
}
.header .header-icon > li {
    cursor: pointer;
    width: 24px;
    height: 24px;
}
.header .header-icon > li.globe-menu-wrapper {
    width: auto;
    height: auto;
}
.header .header-icon li.globe {
    display: flex;
    align-items: center;
    justify-content: center;
}
.header .header-icon .globe-btn {
    display: block;
    width: 24px;
    height: 24px;
    border: 0;
    padding: 0;
    background-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    background: url("/static/icon/globe.svg") top center / cover no-repeat;
    cursor: pointer;
    position: relative;
    z-index: 211;
    touch-action: manipulation;
}
.header .header-icon > li.globe span {
    display: block;
    width: 24px;
    height: 24px;
    background: url("/static/icon/globe.svg") top center / cover no-repeat;
}
.header .header-icon li.globe-menu-wrapper {
    transition:
      max-height 0.25s ease,
      opacity 0.2s ease,
      visibility 0.2s ease;
    width: auto;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    top: 36px;
    right: 0;
    width: 100%;
    z-index: 500;
    border-radius: 0 0 22px 22px;
    overflow: hidden;
}
.header .header-icon li.globe-menu-wrapper.active{
    max-height: 70vh;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow-y: auto;
}
.header .header-icon li.globe:focus-within ~ li.globe-menu-wrapper {
    max-height: 70vh;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow-y: auto;
}
.header .header-icon li.ham {
    display: none;
    --ham-color: #717D84;
    background:
      linear-gradient(var(--ham-color), var(--ham-color)) center 5px / 18px 2px no-repeat,
      linear-gradient(var(--ham-color), var(--ham-color)) center 11px / 18px 2px no-repeat,
      linear-gradient(var(--ham-color), var(--ham-color)) center 17px / 18px 2px no-repeat;
}
.header .header-icon li.mode {
    background: url("/static/icon/light.svg") top center / cover no-repeat;
}
/* theme button icon */
.dark-mode .header .header-icon li.mode {
    background: url("/static/icon/dark.svg") top center / cover no-repeat;
}
.dark-mode .header .header-icon li.ham {
    --ham-color: #CDD5D9;
}
.globe-menu ul {
    margin: 0;
    padding: 8px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.globe-menu li {
    transition: all 0.2s ease;
    width: 100%;
    display: block;
    padding: 0;
}
.globe-menu li a {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    justify-content: flex-start;
    padding: 6px 20px;
    text-decoration: none;
    min-height: 38px;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}
.globe-menu li i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    overflow: hidden;
}
.globe-menu li em {
    display: block;
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 1;
    font-style: normal;
    background-position: center;
    background-size: cover;
}
.globe-menu li span {
    flex: 1;
    width: calc(100% - 37px);
    display: block;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.globe-menu li a:focus {
    outline: none;
    background: transparent;
}
.globe-menu li a:active {
    background: transparent;
}
.globe-menu li a:focus-visible {
    outline: none;
}
.globe-menu-wrapper-m {
    transition: opacity 0.3s ease;
    height: 0;
    opacity: 0;
    position: fixed;
    inset: 0;
    z-index: 450;
    width: 100vw;
    background: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}
.globe-menu-wrapper-m.active {
    height: 100dvh;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.globe-menu-wrapper-m ul {
    position: absolute;
    top: 96px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 86vw;
    min-width: 260px;
    display: inline-flex;
    flex-direction: column;
    padding: 16px 0;
    border-radius: 22px;
    gap: 0;
    max-height: calc(100dvh - 160px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.globe-menu-wrapper-m ul li {
    cursor: pointer;
    padding: 0 20px;
}

/* light mode */
.light-mode header .logo {
    background: url("/static/logo/logo-hd.svg") top center / cover no-repeat;
}
.light-mode .header .menu-wrapper {
    background: #F1F1F1;
}
.light-mode .header .menu-sub {
    background: #F1F1F1;
}
.light-mode .header .menu-sub li:hover {
    background: rgba(0, 0, 0, 0.08);
}
.light-mode .header .menu-sub li:hover .menu-link {
    color: #2B343A;
}
.light-mode .header .header-icon li.globe-menu-wrapper {
    background: #F1F1F1;
}
.light-mode .globe-menu li i {
    background: #fff;
}
.light-mode .globe-menu li span {
    color: #717D84;
}
.light-mode .globe-menu li a:focus-visible {
    outline: 1px solid rgba(0, 0, 0, 0.15);
    background: transparent;
}
.light-mode .globe-menu li a:focus-visible span {
    color: #2B343A;
}
.light-mode .globe-menu-wrapper-m ul {
    background: #F1F1F1;
}

/* dark mode */
.dark-mode header .logo {
    background: url("/static/logo/logo-hd-dark.svg") top center / cover no-repeat;
}
.dark-mode .header .menu-wrapper {
    background: rgba(0, 0, 0, 0.3);
    mix-blend-mode: multiply;
}
.dark-mode .header .menu-sub {
    background: rgba(0, 0, 0, 0.3);
    mix-blend-mode: multiply;
}
.dark-mode .header .menu-sub li:hover {
    background: rgba(0, 0, 0, 0.4);
    mix-blend-mode: multiply;
}
.dark-mode .header .menu-sub li:hover .menu-link {
    color: rgba(255, 255, 255, 1);
}
.dark-mode .header .header-icon li.globe-menu-wrapper {
    background: rgba(0, 0, 0, 0.3);
}
.dark-mode .globe-menu li i {
    background: #111111;
}
.dark-mode .globe-menu li span {
    color: #CDD5D9;
}
.dark-mode .globe-menu li a:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
}
.dark-mode .globe-menu li a:focus-visible span {
    color: #fff;
}
.dark-mode .globe-menu-wrapper-m ul {
    background: #000;
}

@media (hover: hover) and (pointer: fine) {
    .light-mode .header .header-icon li.globe-menu-wrapper li:hover span {
        color: #2B343A;
    }
    .light-mode .header .header-icon li.globe-menu-wrapper li:hover {
        background: rgba(0, 0, 0, 0.08);
    }
    .dark-mode .header .header-icon li.globe-menu-wrapper li:hover span {
        color: #fff;
    }
    .dark-mode .header .header-icon li.globe-menu-wrapper li:hover {
        background: rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 1100px) {
    .header {
        padding: 40px 0;
    }
    .header .header-menu {
        gap: 18px;
        font-size: 14px;
        padding-right: 22px;
    }
    .header .header-menu > li:first-child {
        min-width: 140px;
        padding: 0 22px;
        font-size: 14px;
    }
    .header .header-icon {
        padding: 0 28px;
        gap: 28px;
    }
}

@media (max-width: 860px) {
    .header .header-menu {
        gap: 12px;
        font-size: 13px;
        padding-right: 18px;
    }
    .header .header-menu > li:first-child {
        min-width: 120px;
        padding: 0 18px;
        font-size: 13px;
    }
    .header .header-icon {
        padding: 0 22px;
        gap: 22px;
    }
}
.mobile-menu-wrapper {
    transition: width 0.3s ease;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 560;
    width: 0;
    height: 100vh;
    overflow: hidden;
}
.mobile-menu-wrapper.active {
    width: 100vw;
}
.mobile-menu-container {
    width: 100vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}
.mobile-menu-wrapper .close-btn {
    cursor: pointer;
    appearance: none;
    box-sizing: content-box;
    border: 0;
    background: transparent;
    line-height: 0;
    padding: 14px;
    width: 36px;
    height: 36px;
    margin: 14px 14px 0 auto;
}
.mobile-menu-wrapper .close-btn img {
    width: 36px;
    height: 36px;
}
.mobile-menu-wrapper ul {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.mobile-menu-wrapper ul li {
    width: 100%;
    text-transform: uppercase;
}
.mobile-menu-wrapper ul li .menu-btn,
.mobile-menu-wrapper ul li .menu-link {
    width: 100%;
    height: 68px;
    display: flex;
    font-size: 22px;
    letter-spacing: -0.02em;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}


@media (max-width: 860px) {
    .header {
        padding: 20px 10px;
    }
    .header .logo {
        width: 105px;
        height: 25px;
    }
    .header .menu-wrapper {
        background: none !important;
    }
    .header .header-menu {
        display: none;
    }
    .header .header-menu::after {
        content: none;
    }
    .header .header-icon {
        padding: 0;
        gap: 20px;
    }
    .header .header-icon li.ham {
        display: block;
    }
    .header .header-icon li.globe-menu-wrapper {
        display: none !important;
    }
    .header .menu-sub {
        position: static;
        transform: none;
        box-shadow: none;
        background: transparent;
        border: 0;
        display: none;
        overflow: hidden;
        border-radius: 0;
        padding: 0;
        margin-top: 0;
    }
    .header .menu-dropdown[open] .menu-sub {
        display: block;
    }
    .header .menu-sub .menu-link {
        padding: 0;
        justify-content: center;
        height: 52px;
        color: inherit;
    }
    .header .menu-dropdown summary {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
    }
    .mobile-menu-wrapper ul li .menu-sub {
        margin-top: 8px;
    }
    .mobile-menu-wrapper .m-gnb-learn {
        padding: 0;
    }
    .globe-menu-wrapper-m ul li {
        height: 48px;
    }
    .globe-menu-wrapper-m ul li em {
        font-size: 18px;
    }
    .globe-menu-wrapper-m ul li span {
        font-size: 17px;
    }
}
.mobile-menu-wrapper details.menu-dropdown {
    width: 100%;
}
.mobile-menu-wrapper details.menu-dropdown summary::-webkit-details-marker {
    display: none;
}
.mobile-menu-wrapper details.menu-dropdown summary {
    position: relative;
}
.mobile-menu-wrapper details.menu-dropdown summary::after {
    content: "";
    position: absolute;
    right: 39px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    width: 25px;
    height: 25px;
    background: url("/static/icon/arrow.svg") center center / cover no-repeat;
}
.mobile-menu-wrapper details.menu-dropdown[open] summary::after {
    transform: translateY(-50%) rotate(0deg);
}
.mobile-menu-wrapper details.menu-dropdown[open] summary {
    font-weight: 600;
}
.mobile-menu-wrapper details.menu-dropdown .menu-sub {
    transition: height 0.3s ease;
    height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
}
.mobile-menu-wrapper details.menu-dropdown[open] .menu-sub {
    height: 136px;
}
