* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Malgun Gothic', sans-serif;
  background: #f0f2f5;
  color: #333;
  min-height: 100vh;
}

/* Header */
header {
  background: #2c3e50;
  color: white;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

header .logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  color: white;
}

header .logo span {
  color: #3498db;
}

nav a {
  color: #ccc;
  text-decoration: none;
  margin-left: 24px;
  font-size: 14px;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: white;
}

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

/* Page title */
.page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.page-title h1 {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
}

.page-title .badge {
  background: #3498db;
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

.page-title .badge.notice {
  background: #e74c3c;
}

/* Board card */
.board-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* Board table */
.board-table {
  width: 100%;
  border-collapse: collapse;
}

.board-table thead tr {
  background: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
}

.board-table thead th {
  padding: 12px 16px;
  font-size: 13px;
  color: #6c757d;
  font-weight: 600;
  text-align: left;
}

.board-table thead th.center {
  text-align: center;
}

.board-table tbody tr {
  border-bottom: 1px solid #f0f2f5;
  transition: background 0.15s;
}

.board-table tbody tr:last-child {
  border-bottom: none;
}

.board-table tbody tr:hover {
  background: #f8f9fa;
}

.board-table tbody td {
  padding: 14px 16px;
  font-size: 14px;
}

.board-table tbody td.center {
  text-align: center;
}

.board-table .num {
  width: 60px;
  color: #aaa;
  font-size: 13px;
}

.board-table .title-cell a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s;
}

.board-table .title-cell a:hover {
  color: #3498db;
}

.board-table .title-cell .reply-count {
  color: #3498db;
  font-size: 12px;
  margin-left: 4px;
  font-weight: 600;
}

.board-table .author {
  width: 100px;
  color: #666;
  font-size: 13px;
}

.board-table .date {
  width: 90px;
  color: #999;
  font-size: 12px;
}

.board-table .views {
  width: 70px;
  color: #999;
  font-size: 12px;
}

/* Notice badge in table */
.tag-notice {
  display: inline-block;
  background: #e74c3c;
  color: white;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 6px;
  font-weight: 700;
  vertical-align: middle;
}

/* Board footer */
.board-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid #f0f2f5;
}

.pagination {
  display: flex;
  gap: 4px;
}

.pagination a {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  color: #555;
  border: 1px solid #ddd;
  background: white;
  transition: all 0.15s;
}

.pagination a:hover,
.pagination a.active {
  background: #3498db;
  color: white;
  border-color: #3498db;
}

.write-btn {
  background: #3498db;
  color: white;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.write-btn:hover {
  background: #2980b9;
}

/* Search bar */
.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.search-bar select,
.search-bar input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
}

.search-bar select {
  width: 110px;
  background: white;
}

.search-bar input {
  flex: 1;
}

.search-bar button {
  padding: 8px 16px;
  background: #2c3e50;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.search-bar button:hover {
  background: #3d5166;
}

/* Main page hero */
.hero {
  background: linear-gradient(135deg, #2c3e50, #3498db);
  color: white;
  padding: 60px 40px;
  text-align: center;
}

.hero h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero p {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.hero-btn {
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
}

.hero-btn.primary {
  background: white;
  color: #2c3e50;
}

.hero-btn.primary:hover {
  background: #f0f0f0;
}

.hero-btn.secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

.hero-btn.secondary:hover {
  background: rgba(255,255,255,0.25);
}

/* Main page board preview */
.boards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px auto;
  max-width: 900px;
  padding: 0 20px;
}

.board-preview {
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  overflow: hidden;
}

.board-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f2f5;
}

.board-preview-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #2c3e50;
}

.board-preview-header a {
  font-size: 12px;
  color: #3498db;
  text-decoration: none;
}

.board-preview-header a:hover {
  text-decoration: underline;
}

.preview-list {
  list-style: none;
}

.preview-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 20px;
  border-bottom: 1px solid #f8f9fa;
  font-size: 13px;
}

.preview-list li:last-child {
  border-bottom: none;
}

.preview-list li a {
  color: #444;
  text-decoration: none;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 10px;
}

.preview-list li a:hover {
  color: #3498db;
}

.preview-list li .preview-date {
  color: #bbb;
  font-size: 11px;
  white-space: nowrap;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  color: #999;
  font-size: 13px;
  margin-top: 20px;
}
