
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    color: #333;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-container > div {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2E7D32;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
}

nav a {
    color: #444;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #2E7D32;
}

.login-btn, .signup-btn {
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.login-btn {
    color: #2E7D32;
    background: transparent;
    border: 2px solid #2E7D32;
}
.login-btn:hover {
    background: #2E7D32;
    color: white;
}
.signup-btn {
    color: white;
    background: #2E7D32;
    border: 2px solid #2E7D32;
}
.signup-btn:hover {
    background: #388E3C;
    border-color: #388E3C;
}

.header-container > div:last-child {
    gap: 1rem;
}

footer {
    background: #212121;
    color: #aaa;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}


.board-main {
    padding: 3rem 2rem;
    flex-grow: 1;
}

.board-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.board-title {
    margin-bottom: 2rem;
    text-align: center;
}

.board-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2E7D32;
    margin-bottom: 0.5rem;
}

.board-title p {
    font-size: 1rem;
    color: #666;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.board-table th, .board-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.board-table thead {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
}

.col-num { width: 10%; }
.col-title { width: 50%; }
.col-author { width: 15%; }
.col-date { width: 25%; }

.board-table tbody td.title {
    text-align: left;
}

.board-table tbody td.title a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s ease;
}

.board-table tbody td.title a:hover {
    color: #2E7D32;
    text-decoration: underline;
}

.board-table tbody tr:hover {
    background-color: #f8f9fa;
}

.board-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
}

.pagination a {
    color: #555;
    padding: 0.5rem 0.8rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.pagination a:hover {
    background-color: #eee;
}

.pagination a.active {
    background-color: #2E7D32;
    color: white;
}

.write-btn {
    padding: 0.7rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background-color: #2E7D32;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-left: auto;
}

.write-btn:hover {
    background-color: #388E3C;
}