body {
    margin: 0;
    font-family: 'Noto Sans KR', sans-serif;
    background: #fff;
    color: #222;
}

header {
    padding: 20px 100px; /* 매우 얇게 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    position: relative;
    z-index: 1000;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 20px;
}



.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #626161;
    text-decoration: none; /* 밑줄 제거 */
    height: 45px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    position: relative;
    display: inline-block; /* 글자 너비 기준 밑줄 */
    padding: 10px 0;
    color: #555;
    text-decoration: none;
}

nav a.active {
    font-weight: bold;
    color: #000;
}

nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 3px; /* ← 글자 아래 간격 조정 */
    width: 100%;
    height: 2px;
    background-color: #000;
}

.menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-btn div {
    width: 20px;  /* 살짝 줄이기 */
    height: 2px;
    background-color: #444;
}

.slide-menu {
    position: fixed;
    top: 0;
    right: -292px;
    width: 250px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    transition: right 0.3s ease;
    z-index: 1002;
}

.slide-menu.open {
    right: 0;
}

.slide-menu a {
    position: relative;
    display: inline-block;
    padding: 10px 0;
    color: #555;
    text-decoration: none;
}

.slide-menu a.active {
    font-weight: bold;
    color: #000;
}

.slide-menu a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    width: 100%;
    max-width: 100%;
    background-color: #000;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 998;
}

.overlay.active {
    display: block;
}


footer {
    padding: 20px 40px;
    margin-top: 60px; /* 슬라이더와 간격 */
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.9em;
    color: #888;
}

@media (max-width: 1033px) {
    header {
        padding: 20px 20px;
    }

    .nav-group {
        margin-left: auto;
        margin-right: 30px;
    }


    nav {
        display: none;
    }

    .menu-btn {
        display: flex;
    }
}



.pagination {
    text-align: center;
    margin: 40px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.pagination a {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s ease;
}

.pagination a:hover {
    background: #f0f0f0;
}

.pagination a.active {
    background: #333;
    color: white;
    border-color: #333;
}




.tabs {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}

.tab-button {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 1rem;
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.tab-button:hover {
    color: #000;
}

.tab-button.active {
    font-weight: bold;
    color: #000;
    border-bottom: 2px solid #000;
}
