@font-face {
    font-family: withgenie;
    src: url("../font/NotoSans-Medium.woff") format("woff");
}



html {
    scroll-behavior: smooth;
}

body {
    font-family: withgenie;
}



.header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    height: 120px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* 스크롤 시 투명한 배경 */
.header.scrolled {
    background-color: rgb(255 255 255 / 25%);
    backdrop-filter: blur(20px);
}

.headerContainer {
    width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.headerContainer > nav > ul {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    list-style: none;
    width: 600px;
    padding: 0;
}

.navItem {
    position: relative;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #12212c;
    cursor: pointer;
}

.navItem > a {
    text-decoration: none;
    color: inherit;
}

.navItem > a:hover {
    color: #006fff;
    transition: 0.3s ease;
}

/* 라벨 hover 시 색상 변경 - active 클래스 추가 */
.navItem:hover .navItemLabel,
.navItem.active .navItemLabel {
    color: #006fff;
    transition: 0.3s ease;
}

/* 화살표 */
.downArrow {
    display: inline-block;
    width: 11px;
    height: 11px;
    background: url("../images/header/headerDownArrowBlack.svg");
    background-size: contain;
}

.navItem:hover .downArrow,
.navItem.active .downArrow {
    background: url("../images/header/headerDownArrowBlue.svg");
    background-size: contain;
    transition: 0.3s ease;
}

/* 서브 메뉴 공통 (2단계) */
.subMenu1,
.subMenu2,
.subMenu3,
.subMenu4 {
    position: absolute;
    top: 80px;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none;
    background-color: #E5EFFF;
    border-radius: 5px;
    width: 320px;

    /* 숨김 상태 */
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 개별 위치 */
.subMenu1 {
    left: -50px;
}

.subMenu2 {
    left: -260px;
}

.subMenu3 {
    left: -120px;
}

.subMenu4 {
    left: -220px;
}

/* 보여줄 때 - active 클래스 사용 */
.navItem.active .subMenu1,
.navItem.active .subMenu2,
.navItem.active .subMenu3,
.navItem.active .subMenu4 {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* 서브 메뉴 아이템 (2단계) */
.subMenuItem {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.5px;
    border: 2px solid #006FFF4F;
    border-radius: 3px;
    cursor: pointer;
}

.rightArrow {
    display: inline-block;
    width: 15px;
    height: 15px;
    background: url("../images/header/headerSubtitleRightArrowBlack.svg") no-repeat center center;
    background-size: contain;
}

/* 서브메뉴 hover 효과 */
.subMenuItem:hover {
    background-color: #0F95E221;
    color: #006fff;
    transition: 0.3s ease;
}

.subMenuItem:hover .rightArrow {
    background: url("../images/header/headerSubtitleRightArrowBlue.svg") no-repeat center center;
    background-size: contain;
    transition: 0.3s ease;
}


/* 3단계 서브-서브 메뉴 */
.subSubMenu {
    position: absolute;
    top: -22px;
    left: 340px; /* 2단계 메뉴 오른쪽에 표시 */
    /*margin-left: 10px;*/
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    background-color: #E5EFFF;
    border-radius: 5px;
    width: 280px;
    z-index: 1001;

    /* 숨김 상태 */
    opacity: 0;
    transform: translateX(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 3단계 메뉴 보여줄 때 */
.subMenuItem.subActive .subSubMenu {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* 3단계 메뉴 아이템 */
.subSubMenuItem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.3px;
    border: 2px solid #006FFF4F;
    border-radius: 3px;
    cursor: pointer;
    background-color: #E5EFFF;
    color: #12212c;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.subSubMenuItem:hover {
    background-color: #E8F2FF;
    color: #006fff;
}

/* 3단계 화살표 - 더 구체적인 선택자로 우선순위 높임 */
.subSubMenu .subSubMenuItem .rightArrow {
    width: 12px !important;
    height: 12px !important;
    background: url("../images/header/headerSubtitleRightArrowBlack.svg") no-repeat center center !important;
    background-size: contain !important;
    transition: background 0.3s ease;
}

/* 3단계 메뉴 아이템 개별 호버 시에만 파란색 화살표 */
.subSubMenu .subSubMenuItem:hover .rightArrow {
    background: url("../images/header/headerSubtitleRightArrowBlue.svg") no-repeat center center !important;
    background-size: contain !important;
}

/* Footer는 기존과 동일 */
.footer {
    width: 100%;
    height: 100%;
    background-color: #12212c;
}

.informationContainer {
    width: 1140px;
    height: 100%;
    margin: auto;
    padding: 50px 0 40px 0;
    box-sizing: border-box;
}

.logoYoutube {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

.hrefYoutube {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: linear-gradient(to bottom, #0f95e2, #3137cc);
    border-radius: 5px;
}

.hrefYoutube:hover {
    background: linear-gradient(to bottom, #3137cc, #0f95e2);
}

.namePrivacyContactContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
}

.namePrivacyContainer {
    width: 476px;
    height: 38px;
    padding: 0 0 0 10px;
    margin: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.namePrivacyContainer > li {
    display: flex;
    align-items: center;
}

.namePrivacyContainer > li > a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #f1f8ff;
    gap: 8px;
    font-size: 15px;
    cursor: pointer;
}

.namePrivacyContainer > li > a > img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.hrefContact {
    padding: 10px 20px;
    border-radius: 5px;
    background: linear-gradient(to bottom, #0f95e2, #3137cc);
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
    vertical-align: middle;
}


.hrefContact:hover {
    background: linear-gradient(to bottom, #3137cc, #0f95e2);
}

.footerDivider {
    width: 100%;
    height: 1px;
    background-color: #313e48;
    margin: 17px 0;
}

.companyInformation > ul {
    padding-left: 10px;
    padding-bottom: 30px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
}

.emailContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
}

.companyNumContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
}

.phoneNumContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
}

.pageAddressContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
}

.email {
    color: #f1f8ff;
    font-size: 15px;
}

.companyNum {
    color: #f1f8ff;
    font-size: 15px;
}

.phoneNum {
    color: #f1f8ff;
    font-size: 15px;
}

.padeAddress {
    color: #f1f8ff;
    font-size: 15px;
}

.addressContainer {
    display: flex;
    align-items: center;
    gap: 13px;
}

.address {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.address > p {
    margin: 0;
}

.koreaAddress {
    color: #f1f8ff;
    font-size: 15px;
    letter-spacing: 0.32px;
}

.englishAddress {
    font-size: 15px;
    color: #49555E;
    font-weight: 700;
    letter-spacing: 0.32px;
}

.phrase {
    height: 35px;
    background-color: #0A151D;
    color: #DAE7F36E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

#logoutBtn{
    font-size: 18px;
    font-weight: bold;
    letter-spacing: -0.5px;
    color: #12212c;
    border: 1px solid #006fff;
    border-radius: 40px;
    text-align: center;
    background: none;
    transition: color 0.3s ease ;
    cursor: pointer;
    padding: 5px 10px;
}
#logoutBtn:hover{
    color: #006fff;
}


/*위로 올라가기 버튼*/
.commonGoToTopBtnWrapper{
    position: fixed;
    bottom: 20px;
    right: 20px;

    opacity: 0;
    transition: opacity 0.5s ease;
}

.commonGoToTopBtn{
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.commonGoToTopBtnWrapper.scrolledTop{
    opacity: 1;
}

@media (max-width: 1150px) {
    /* 헤더 */
    .headerContainer {
        width: 90%;
        padding: 0 20px;
    }

    .headerContainer > nav > ul {
        width: 500px;
    }

    .navItem {
        font-size: 16px;
    }

    /* 서브메뉴 위치 조정 */
    .subMenu1,
    .subMenu2,
    .subMenu3,
    .subMenu4 {
        width: 280px;
        padding: 15px 20px;
    }
    .subMenu2{
        left: -220px;
    }

    .subMenu4{
        left: -180px;
    }

    .subMenuItem {
        font-size: 15px;
        padding: 8px 15px;
    }

    .subSubMenu {
        width: 240px;
        left: 300px;
    }

    .subSubMenuItem {
        font-size: 15px;
        padding: 8px 15px;
    }

    /* 푸터 */
    .informationContainer {
        width: 100%;
        padding: 40px 20px;
        box-sizing: border-box;
    }

    .logoYoutube img {
        width: 180px;
        height: auto;
    }

    .namePrivacyContainer {
        width: 400px;
    }

    .companyInformation > ul {
        flex-wrap: wrap;
        gap: 15px;
    }

    .addressContainer {
        flex-direction: column;
        align-items: flex-start;
    }

    .koreaAddress,
    .englishAddress {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    /* 헤더 */
    .header {
        height: 80px;
    }

    .headerContainer {
        width: 100%;
        padding: 0 15px;
        justify-content: center;
        gap: 100px;
    }

    .headerContainer .logo {
        width: 140px;
        height: auto;
    }

    /* 네비게이션 - 보이도록 유지하되 작게 조정 */
    .headerContainer > nav > ul {
        width: auto;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .navItem {
        font-size: 14px;
    }

    .downArrow {
        width: 9px;
        height: 9px;
    }

    /* 서브메뉴 크기 조정 */
    .subMenu1,
    .subMenu2,
    .subMenu3,
    .subMenu4 {
        width: 200px;
        padding: 12px 15px;
        top: 80px;
    }

    .subMenu2{
        left: -200px;
    }
    .subMenu3{
        left: -100px
    }

    .subMenu4{
        left:-160px
    }

    .subMenuItem {
        font-size: 14px;
        padding: 8px 12px;
    }

    .subSubMenu {
        width: 160px;
        left: 210px;
        padding: 12px 15px;
    }

    .subSubMenuItem {
        font-size: 14px;
        padding: 8px 12px;
    }

    .rightArrow {
        width: 12px;
        height: 12px;
    }

    #logoutBtn {
        font-size: 14px;
        padding: 5px 12px;
    }

    .headerContainer{
        gap: 6px
    }


    /* 푸터 */
    .footer {
        width: 100%;
        height: auto;
    }

    .informationContainer {
        width: 100%;
        padding: 30px 15px;
        height: auto;
        box-sizing: border-box;
    }

    .logoYoutube {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .logoYoutube img {
        width: 160px;
        padding: 0 !important;
    }

    .namePrivacyContactContainer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .namePrivacyContainer {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        gap: 10px;
        padding: 0;
    }

    .hrefContact {
        width: 120px;
        padding: 10px 20px;
        text-align: center;
    }

    .companyInformation > ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-left: 0;
    }

    .addressContainer {
        padding-left: 0;
    }

    .addressContainer img {
        padding: 0 !important;
    }

    .address {
        gap: 10px;
    }

    .koreaAddress,
    .englishAddress {
        font-size: 13px;
        display: block;
    }

    .phrase {
        font-size: 12px;
        padding: 0 10px;
        text-align: center;
    }

    .commonGoToTopBtn {
        width: 45px;
        height: 45px;
    }

    .commonGoToTopBtnWrapper {
        bottom: 15px;
        right: 15px;
    }
}


@media (max-width: 480px) {
    /* 헤더 */
    .header {
        height: 70px;
    }

    .headerContainer {
        padding: 0 10px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .headerContainer .logo {
        width: 120px;
        height: auto;
    }

    /* 네비게이션 - 2줄로 배치 */
    .headerContainer > nav {
        width: 100%;
        order: 3;
    }

    .headerContainer > nav > ul {
        margin: 0;
        width: 100%;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 5px;
    }

    .navItem {
        font-size: 12px;
    }

    .downArrow {
        width: 8px;
        height: 8px;
    }

    /* 서브메뉴 - 화면에 맞게 조정 */
    .subMenu1,
    .subMenu2,
    .subMenu3,
    .subMenu4 {
        max-width:200px;
        left: 50%;
        transform: translateX(-50%);
        padding: 10px;
        top: 30px;
    }
    .subMenu1{
        left: 100px;
    }

    .subMenu2{
        left: 10px;
    }

    .subMenu4{
        left:-50px
    }

    .navItem.active .subMenu1,
    .navItem.active .subMenu2,
    .navItem.active .subMenu3,
    .navItem.active .subMenu4 {
        transform: translateX(-50%) translateY(0);
    }

    .subMenuItem {
        font-size: 8px;
        padding: 8px 10px;
    }

    /* 3단계 메뉴 - 아래로 표시 */
    .subSubMenu {
        position: absolute;
        width: 100px;
        left: 200px;
        top: -22px;
        margin-top: 10px;
        padding: 10px;
    }

    .subSubMenuItem {
        font-size: 8px;
        padding: 8px 10px;
    }

    .rightArrow {
        width: 10px;
        height: 10px;
    }

    #logoutBtn {
        font-size: 12px;
        padding: 4px 10px;
    }

    /* 푸터 */
    .footer {
        width: 100%;
        height: auto;
    }

    .informationContainer {
        width: 100%;
        padding: 20px 10px;
        box-sizing: border-box;
    }

    .logoYoutube img {
        width: 140px;
    }

    .hrefYoutube {
        width: 35px;
        height: 35px;
    }

    .namePrivacyContainer > li > a {
        font-size: 13px;
    }

    .hrefContact {
        width: 120px;
        padding: 10px 20px;
        text-align: center;
    }

    .hrefContact > span {
        font-size: 16px;
    }

    .email,
    .companyNum,
    .phoneNum,
    .padeAddress {
        font-size: 13px;
    }

    .koreaAddress {
        font-size: 12px;
        line-height: 1.5;
    }

    .englishAddress {
        font-size: 11px;
        line-height: 1.4;
    }

    .phrase {
        font-size: 10px;
        height: 30px;
        line-height: 1.3;
    }

    .commonGoToTopBtn {
        width: 40px;
        height: 40px;
    }

    .commonGoToTopBtnWrapper {
        bottom: 10px;
        right: 10px;
    }
}
