/* header(헤더) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9000;
    width: 100%;
    max-width: 1920px;
    height: 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border-bottom: 5px solid #00FFD4;
}

.header .home {
    display: block;
    flex-shrink: 0;
    /* 로고가 줄어들지 않도록 */
}

.header .logo {
    width: 300px;
    height: 80px;
    background-image: url(../img/logo.png);
    background-size: contain;
    background-repeat: no-repeat;
    text-indent: -9999px;
}

.header .topMenu ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 60px;
    flex-wrap: nowrap;
    /* 메뉴가 줄바꿈되지 않도록 */
    gap: 20px;
    /* 메뉴 아이템 간격 */
}

.header .topMenu ul li {
    width: 140px;
    padding: 0 10px;
    font-size: 18px;
    font-weight: 400;
    flex-shrink: 0;
    /* 메뉴 아이템이 줄어들지 않도록 */
}

.header .topMenu ul li a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
    /* 텍스트 줄바꿈 방지 */
}

.header .topMenu ul li a:hover {
    transition: 0.3s;
    font-weight: 600;
}

.header .topMenu ul li .login {
    border-radius: 50px;
    background-color: #00FFD4;
    min-width: 80px;
    /* 최소 너비 보장 */
}

.header .topMenu ul li .login:hover {
    background-color: #24EDCB;
    transition: 0.3s;
}

/* 반응형 디자인 */

/* 대형 데스크톱 (1440px 이상) */
@media (min-width: 1440px) {
    .header {
        padding: 0 40px;
    }



    .header .topMenu ul {
        padding: 0 80px;
        gap: 30px;
    }
}

/* 일반 데스크톱 & 맥북 (1024px - 1439px) */
@media (max-width: 1439px) and (min-width: 1024px) {
    .header {
        padding: 0 20px;
        height: 100px;
        /* 높이 약간 줄임 */
    }



    .header .logo {
        width: 250px;
        /* 로고 크기 줄임 */
        height: 65px;
    }

    .header .topMenu ul {
        padding: 0 30px;
        gap: 15px;
    }

    .header .topMenu ul li {
        width: 100px;
        /* 메뉴 아이템 너비 줄임 */
        font-size: 16px;
    }

    .header .topMenu ul li a {
        height: 36px;
    }
}

/* 맥북 13인치 및 소형 노트북 (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .header {
        padding: 0 15px;
        height: 90px;
    }



    .header .logo {
        width: 200px;
        height: 50px;
    }

    .header .topMenu ul {
        padding: 0 20px;
        gap: 10px;
    }

    .header .topMenu ul li {
        width: 80px;
        padding: 0 5px;
        font-size: 14px;
    }

    .header .topMenu ul li a {
        height: 32px;
    }

    .header .topMenu ul li .login {
        min-width: 60px;
        font-size: 13px;
    }
}

/* 태블릿 (481px - 767px) */
@media (max-width: 767px) and (min-width: 481px) {
    .header {
        padding: 0 10px;
        height: 80px;
    }


    .header .logo {
        width: 150px;
        height: 40px;
    }

    .header .topMenu ul {
        padding: 0 10px;
        gap: 8px;
    }

    .header .topMenu ul li {
        width: 70px;
        padding: 0 3px;
        font-size: 12px;
    }

    .header .topMenu ul li a {
        height: 28px;
    }

    .header .topMenu ul li .login {
        min-width: 50px;
        font-size: 11px;
    }
}

/* 모바일 (480px 이하) */
@media (max-width: 480px) {
    .header {
        padding: 0 10px;
        height: 70px;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }



    .header .logo {
        width: 120px;
        height: 30px;
    }

    .header .topMenu ul {
        padding: 0;
        gap: 5px;
        justify-content: center;
    }

    .header .topMenu ul li {
        width: 60px;
        padding: 0 2px;
        font-size: 10px;
    }

    .header .topMenu ul li a {
        height: 24px;
    }

    .header .topMenu ul li .login {
        min-width: 40px;
        font-size: 9px;
        padding: 0 8px;
    }
}

/* 초소형 모바일 (320px 이하) */
@media (max-width: 320px) {
    .header {
        height: 60px;
        padding: 0 5px;
    }

    .header .logo {
        width: 100px;
        height: 25px;
    }

    .header .topMenu ul li {
        width: 50px;
        font-size: 9px;
    }

    .header .topMenu ul li a {
        height: 20px;
    }

    .header .topMenu ul li .login {
        min-width: 35px;
        font-size: 8px;
    }
}

/* 맥북 특별 처리 */
@media (max-width: 1440px) and (min-width: 1280px) {
    .header {
        padding: 0 30px;
    }



    .header .logo {
        width: 280px;
        height: 75px;
    }

    .header .topMenu ul {
        padding: 0 40px;
        gap: 20px;
    }

    .header .topMenu ul li {
        width: 110px;
        font-size: 17px;
    }
}

/* 세로 방향 (모바일 세로) */
@media (orientation: portrait) and (max-width: 768px) {
    .header {
        height: 70px;
    }

    .header .topMenu ul {
        flex-wrap: wrap;
        height: auto;
    }
}

/* 가로 방향 (모바일 가로) */
@media (orientation: landscape) and (max-height: 500px) {
    .header {
        height: 60px;
    }

    .header .logo {
        height: 35px;
    }

    .header .topMenu ul li a {
        height: 25px;
    }
}