
/* 공통 헤더 스타일 */
.header, .main-header, .sub-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    background-color: #fff !important;
    border-bottom: 1px solid #ddd;
    width: 100%;
    height: 100px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    font-family: 'NanumSquareNeo', sans-serif;
    min-width: 1280px; /* 최소 너비 설정 */
}

body {
    margin: 0;
    padding: 0;
    min-width: 1280px; /* 최소 너비 설정 */
}

/* 메인 페이지일 때만 padding-top 적용 */
body.main-page {
    padding-top: 100px;
}

/* 헤더 표시 제어 */
.main-header {
    display: flex;
    background-color: #fff;
}

.sub-header {
    display: none;
    background-color: #fff;
}

/* 서브 페이지에서의 헤더 표시 제어 */
body:not(.main-page) .main-header {
    display: none;
}

body:not(.main-page) .sub-header {
    display: flex;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 로고 스타일 */
.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: -0.5px;
    font-family: 'NanumSquareNeoExtraBold', sans-serif;
}

.logo img {
    height: 30px;
    margin-right: 10px;
    vertical-align: middle;
}

.logo label {
    color: #333;
    font-family: 'NanumSquareNeoExtraBold', sans-serif;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.login-link, .gnb-menu a {
    color: #333;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: 'NanumSquareNeo', sans-serif;
}

.login-link:hover {
    color: #0054a6;
    text-decoration: underline;
}

.gnb-menu a:hover {
    color: #0054a6;
    background-color: transparent;
}

.login-link:hover, .gnb-menu a:hover {
    font-family: 'NanumSquareNeoExtraBold', sans-serif;
    color: #0054a6;
}

/* GNB 메뉴 스타일 */
.gnb-menu {
    margin-left: auto;
}

.gnb-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.gnb-menu li {
    display: inline-block;
}

/* 프린트 스타일 */
@media print {
    .header {
        position: static;
        border-bottom: 1px solid #000;
    }

    .login-link, .gnb-menu {
        display: none;
    }
}

/* 헤더 placeholder */
#header-placeholder {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: #fff;
    z-index: 1000;
    border-bottom: 1px solid #ddd;
    min-width: 1280px;
}

/* 본문 여백 */
body {
    padding-top: 100px;
}