/* ==========================================================================
   1. 기본 초기화 및 테마 컬러 설정 (공통 변수)
   ========================================================================== */
: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;
}

/* ==========================================================================
   2. 상단 네비게이션 바 (모든 페이지 공통)
   ========================================================================== */
.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;
} */

.logo{
    align-items: center;
}




.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);
    font-weight: bold;
    padding-bottom: 28px;
}

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

.icon-user{
    fill: #D9D9D9;
}



/* ==========================================================================
   3. 메인 레이아웃 및 구조 (리스트 & 빈 화면 페이지용)
   ========================================================================== */
.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;
}

/* ==========================================================================
   4. 검색창 및 상단 필터 탭
   ========================================================================== */
.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 var(--border-color);
    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-btn {
    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: 2px;
}

/* ==========================================================================
   5. 게시판 테이블 및 페이지네이션
   ========================================================================== */
.board-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    /* border-top: 2px solid #333; */
    margin-bottom: 30px;
}

.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;
}

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

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

/* .notice-row { background-color: #F9F9F9; } */
.txt-center { text-align: center; }
.font-bold { font-weight: bold; }
.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 {
    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-num.active {
    background-color: var(--navy-primary);
    color: white;
    font-weight: bold;
}

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

/* ==========================================================================
   6. 빈 게시판 (Empty State) 독자 디자인
   ========================================================================== */
.empty-container {
    width: 100%;
    margin-top: 20px;
}

.empty-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 320px;
    border: 1.5px dashed var(--navy-primary);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.empty-box:hover {
    background-color: rgba(10, 37, 99, 0.02);
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.empty-title {
    font-size: 16px;
    font-weight: bold;
    color: #111;
    margin-bottom: 10px;
}

.empty-sub {
    font-size: 13px;
    color: #B5B5B5;
    font-weight: 500;
}


/* 7. 시험후기 작성 페이지 */

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.back-button-container {
    margin-bottom: 20px;
}

.btn-back {
    background-color: var(--navy-primary);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 14px;
    cursor:pointer;
}