/* header.css */
header {
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    padding: 0 7%;
}

.header-container {
    width: 100%;
    max-width: 1600px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 48px;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-download-button {
    padding: 13px 24px;
    height: 48px;
    background-color: #143CD2;
    color: #ffffff;
    border-radius: 24px;
    text-decoration: none;
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.header-download-button:hover {
    background-color: #1030A8;
}

.language-dropdown {
    position: relative;
    padding: 12px 20px;
    border-radius: 24px;
}

.language-dropdown:hover {
    background-color: #F5F6F7;
}

.header-language-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-language-button img {
    height: 24px;
}

.header-language-button span {
    font-size: 18px;
    color: #333;
}

.dropdown-content {
    display: none;
    width: 240px;
    position: absolute;
    top: 56px;
    right: 0;
    box-shadow: 0px 4px 16px 0px rgba(38, 45, 57, 0.16);
    border-radius: 20px;
    z-index: 1;
    overflow: hidden;
    background-color: #fff;
    padding: 8px;
}

.dropdown-content.active {
    display: block;
}

.dropdown-content a {
    display: flex;
    gap: 12px;
    height: 48px;
    padding: 17px 20px;
    color: #262D39;
    text-decoration: none;
    text-align: left;
    justify-content: space-between;
    align-items: center;
}

.dropdown-content a.active {
    color: #173EC8;
}

.dropdown-content a.active::after {
    content: url('../images/ic_24_check_on.svg');
    height: 24px;
}

.dropdown-content a:hover {
    background-color: #F5F6F7;
    border-radius: 8px;
}

.dropdown-content .close-dropdown-button {
    display: none;
    border-radius: 28px;
    border: 1px solid #262D3929;
    padding: 16px;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    background-color: unset;
    cursor: pointer;
}

.dropdown-content .close-dropdown-button:hover {
    background-color: #F5F6F7;
}

.dropdown-fixed-background.fixed {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000099;
    z-index: 10;
}

/* 미디어 쿼리 */
@media (max-width: 1079px) {
    header {
        padding: 0 20px;
    }

    .header-download-button {
        display: none;
    }

    .header-container {
        justify-content: space-between;
    }

    .logo img {
        height: 32px;
    }

    .header-buttons {
        gap: 0;
    }

    .language-dropdown {
        margin-left: auto; /* 언어 설정 버튼 오른쪽 끝으로 이동 */
        padding: 12px 0;
        border-radius: 8px;
    }

    .header-language-button {
        gap: 6px;
    }

    .header-language-button span {
        font-size: 16px;
    }

    .language-dropdown:hover {
        background-color: initial;
    }

    /*!* 고정된 하단 다운로드 버튼 *!*/
    /*.fixed-download-button {*/
    /*    display: flex;*/
    /*    justify-content: center;*/
    /*    width: 100%;*/
    /*    position: fixed;*/
    /*    bottom: 0;*/
    /*    background-color: #fff;*/
    /*    padding: 20px;*/
    /*    z-index: 1000;*/
    /*}*/

    /*.fixed-download-button .download-button {*/
    /*    display: flex;*/
    /*    height: 48px;*/
    /*    padding: 10px 24px;*/
    /*    justify-content: center;*/
    /*    align-items: center;*/
    /*    gap: 10px;*/
    /*    align-self: stretch;*/
    /*    background-color: #143CD2;*/
    /*    color: #fff;*/
    /*    border-radius: 24px;*/
    /*    text-decoration: none;*/
    /*    font-size: 16px;*/
    /*}*/

    .spacer {
        display: block;
        height: 80px; /* 고정된 하단 다운로드 버튼 공간 확보 */
    }

    .dropdown-content.active {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 352px;
        padding: 24px 20px;
        display: flex;
        flex-direction: column;
        gap: 24px;
        border-radius: 16px 16px 0px 0px;
        z-index: 999;
    }

    .dropdown-content.active .close-dropdown-button {
        display: block;
    }

    .dropdown-fixed-background.fixed {
        display: block;
    }
}