:root {
    /* --bg-color: ##FEFDF7; */
    --navy-primary: #0A2563;
    --text-muted: #8E8E8E;
    --border-color: #A6B4C9;
    --table-header-bg: #EAEAEA;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', sans-serif;
}

body {
    /* background-color: var(--bg-color); */
    background-color: #FEFDF7;
    color: #333;
}

/* 네비게이션 바 (기존과 동일) */
.navbar {
    /* background-color: #fff; */
    border-bottom: 1px solid #EAEAEA;
    padding: 15px 0;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* .logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    color: var(--navy-primary);
}

.logo-icon {
    margin-right: 5px;
    font-size: 24px;
} */

.nav-links a {
    text-decoration: none;
    color: #555;
    margin: 0 80px;
    font-weight: 500;
    font-size: 16px;
    padding-bottom: 8px;
}

.nav-links a.active {
    color: var(--navy-primary);
    border-bottom: 3px solid var(--navy-primary);
    padding-bottom: 28px;
    font-weight: bold;
}

/* .nav-icons span {
    font-size: 20px;
    margin-left: 15px;
    cursor: pointer;
} */

.nav-icons{
    display: flex;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    align-items: center;
}


.main-layout {
    max-width: 1200px;
    margin: 50px 200px;
    display: flex;
    gap: 150px;
    padding: 0 20px;
}

/* 왼쪽 사이드바 */
.sidebar {
    width: 180px;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 18px;
    color: var(--navy-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    gap: 10px;
}

.sidebar-title .arrow-down {
    font-size: 12px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 15px;
}

.sidebar-menu a {
    text-decoration: none;
    color: #555;
    font-size: 15px;
    display: block;
    padding: 6px 10px;
    transition: color 0.2s ease;
}

.sidebar-menu li.active a,
.sidebar-menu a:hover {
    color: var(--navy-primary);
    /* font-weight: bold; */
}

/* 액티브 메뉴 */
.sidebar-menu li.active a {
    background-color: var(--navy-primary);
    color: white !important;
    padding: 8px 10px;
    border-radius: 6px;
}

/* 오른쪽 게시판 본문 영역 */
.board-content {
    flex: 1;
}

.board-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.board-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* 검색 & 작성하기 섹션 */
.search-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.search-form {
    flex: 1;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input-wrapper input {
    width: 100%;
    height: 42px;
    padding: 0 45px 0 20px;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background-color: #fff;
}

.btn-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.btn-write {
    background-color: var(--navy-primary);
    color: white;
    text-decoration: none;
    height: 42px;
    line-height: 42px;
    padding: 0 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}


.filter-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    padding-left: 5px;
}

.tab-btn1{
    background: none;
    border: none;
    color: #000;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin-bottom: -13px;
}

.tab-btn {
    color: #000;
    background: none;
    border: none;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 500;
}


.tab-btn.active {
    color: #000;
    font-weight: bold;
    /* border-bottom: 2px solid #000; */
    padding-bottom: 10px;
    margin-bottom: -13px;
}

.tab-btn span {
    font-size: 10px;
}

/* 게시판 테이블 스타일 */
.board-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #FEFDF7;
    margin-bottom: 30px;
}

.board-table tr{
    height: 30px;
    /* padding: 7px 5px; */
}

.board-table td{
    padding: 19px 10px;
}

.board-table th, 
.board-table td {
    /* padding: 12px 10px; */
    font-size: 14px;
    border-bottom: 1px solid #EAEAEA;
    vertical-align: middle;
}

.board-table th {
    background-color: var(--table-header-bg);
    color: #333;
    font-weight: bold;
    padding: 9px 5px;

}

.board-table td a {
    text-decoration: none;
    color: #333;
}

.board-table td a:hover {
    text-decoration: underline;
}

/* 특정 열 특성 정렬 스타일 */
.txt-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-danger { color: #D9383A; font-weight: 500; }


/* 하단 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.page-num, .page-arrow, .page-arrow1 {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    color: #555;
}

.page-arrow1{
    transform: scaleX(-1);
}

.page-num.active {
    background-color: var(--navy-primary);
    color: white;
    font-weight: bold;
}

.page-num:hover:not(.active), .page-arrow:hover {
    background-color: #EAEAEA;
}