/* Header */
.header {
    background-color: var(--bg-white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid #e8e8e8;
}

/* Top Utility Bar */
.header-top {
    background-color: var(--bg-white);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.header-top-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    align-items: center;
}

.header-top-link {
    font-size: 15px;
    color: #555555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-top-link:hover {
    color: var(--text-primary);
}

.header-top-link-dropdown {
    cursor: pointer;
}

/* Main Header - Logo Section */
.header-main {
    padding: 40px 0 20px 0;
    /* 로고 상단 40px 추가 여백 */
}

.header-main-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: center;
}

/* Logo - Centered */
.header-logo {
    text-align: center;
}

.header-logo a {
    display: inline-block;
    text-decoration: none;
}

.logo-image {
    height: 50px;
    width: auto;
    display: block;
}

/* Navigation Wrapper - Below Logo */
.header-nav-wrapper {
    padding: 12px 0 20px 0;
}

.header-nav-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Navigation - Centered */
.header-nav {
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu>li {
    position: relative;
}

.nav-menu-link {
    font-size: var(--font-size-14);
    /* 14px */
    color: var(--text-nav);
    /* #3A3A3A */
    font-weight: var(--font-weight-medium);
    /* 500 */
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-menu-link:hover {
    color: var(--color-brand);
}

/* Dropdown Menu */
.nav-menu-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.nav-menu-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.dropdown-link:hover {
    background-color: var(--bg-light);
    color: var(--color-brand);
}

/* Header Icons - Right Side */
.header-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    position: fixed;
    right: var(--spacing-md);
    top: 65px;
    z-index: 101;
}

.header-icon {
    width: 22px;
    height: 22px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.header-icon:hover {
    color: var(--color-brand);
}

.header-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

/* ============================================
   Mobile Responsive Design
   ============================================ */

/* 1919px ~ 1440px */
@media (max-width: 1919px) and (min-width: 1440px) {

    .header-main-inner,
    .header-nav-inner {
        max-width: 1200px;
        padding: 0 40px;
    }

    .nav-menu {
        gap: 30px;
    }

    .nav-menu-link {
        font-size: 14px;
    }

    .header-icons {
        top: 65px;
        right: 40px;
    }
}

/* 1439px ~ 1024px */
@media (max-width: 1439px) and (min-width: 1024px) {

    .header-main-inner,
    .header-nav-inner {
        max-width: 1000px;
        padding: 0 30px;
    }

    .header-main {
        padding: 35px 0 18px 0;
    }

    .header-nav-wrapper {
        padding: 10px 0 18px 0;
    }

    .nav-menu {
        gap: 25px;
    }

    .nav-menu-link {
        font-size: 13px;
    }

    .logo-image {
        height: 45px;
    }

    .header-icons {
        top: 57px;
        right: 30px;
    }
}

/* 1023px ~ 768px */
@media (max-width: 1023px) and (min-width: 768px) {
    .header-top {
        display: none;
    }

    .header-main-inner,
    .header-nav-inner {
        max-width: 100%;
        padding: 0 25px;
    }

    .header-main {
        padding: 30px 0 15px 0;
    }

    .header-nav-wrapper {
        padding: 10px 0 15px 0;
    }

    .logo-image {
        height: 40px;
    }

    .nav-menu {
        gap: 20px;
    }

    .nav-menu-link {
        font-size: 13px;
    }

    .header-icons {
        top: 50px;
        right: 25px;
    }

    .dropdown-menu {
        min-width: 140px;
    }

    .dropdown-link {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* 767px ~ 425px */
@media (max-width: 767px) and (min-width: 425px) {
    .header-top {
        display: none;
    }

    .header-main-inner,
    .header-nav-inner {
        max-width: 100%;
        padding: 0 20px;
    }

    .header-main {
        padding: 20px 0 12px 0;
    }

    .header-nav-wrapper {
        padding: 8px 0 12px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .header-nav-inner {
        justify-content: flex-start;
    }

    .logo-image {
        height: 35px;
    }

    .nav-menu {
        gap: 18px;
        padding-right: 50px;
    }

    .nav-menu-link {
        font-size: 12px;
    }

    .header-icons {
        top: 37px;
        right: 20px;
        gap: 10px;
    }

    .header-icon {
        width: 20px;
        height: 20px;
    }

    .dropdown-menu {
        min-width: 130px;
        margin-top: 10px;
    }

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

/* 424px ~ 0px */
@media (max-width: 424px) {
    .header-top {
        display: none;
    }

    .header-main-inner,
    .header-nav-inner {
        max-width: 100%;
        padding: 0 15px;
    }

    .header-main {
        padding: 15px 0 10px 0;
    }

    .header-nav-wrapper {
        padding: 6px 0 10px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .header-nav-inner {
        justify-content: flex-start;
    }

    .logo-image {
        height: 30px;
    }

    .nav-menu {
        gap: 15px;
        padding-right: 40px;
    }

    .nav-menu-link {
        font-size: 11px;
    }

    .header-icons {
        top: 30px;
        right: 15px;
        gap: 8px;
    }

    .header-icon {
        width: 18px;
        height: 18px;
    }

    .dropdown-menu {
        min-width: 120px;
        margin-top: 8px;
        padding: 8px 0;
    }

    .dropdown-link {
        padding: 6px 12px;
        font-size: 11px;
    }
}