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

body {
  font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
  background: #f0f2f5;
  color: #333;
  min-height: 100vh;
}

/* ── Header ── */
header {
  background: #2c3e50;
  padding: 0 0 0 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 18px 20px 0;
}

.site-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.site-title span {
  color: #3498db;
}

nav {
  margin-top: 14px;
  display: flex;
  gap: 4px;
}

nav a {
  display: inline-block;
  padding: 9px 20px;
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px 6px 0 0;
  transition: background 0.2s, color 0.2s;
}

nav a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

nav a.active {
  background: #f0f2f5;
  color: #2c3e50;
  font-weight: 700;
}

/* ── Layout ── */
main {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

/* ── Page Title ── */
.page-title {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-title .icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.icon-notice { background: #e8f4fd; }
.icon-free   { background: #eafaf1; }

/* ── Board Table ── */
.board-wrap {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  overflow: hidden;
  margin-bottom: 20px;
}

.board-header {
  display: grid;
  grid-template-columns: 70px 1fr 100px 90px;
  padding: 11px 20px;
  background: #f7f8fa;
  border-bottom: 1px solid #e8eaed;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  text-align: center;
}

.board-header .col-title { text-align: left; }

.board-row {
  display: grid;
  grid-template-columns: 70px 1fr 100px 90px;
  padding: 13px 20px;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
  text-align: center;
  font-size: 14px;
  transition: background 0.15s;
  cursor: pointer;
}

.board-row:last-child { border-bottom: none; }
.board-row:hover { background: #f9fafb; }

.board-row .col-title {
  text-align: left;
  font-weight: 500;
  color: #222;
  display: flex;
  align-items: center;
  gap: 8px;
}

.board-row .col-title a {
  color: inherit;
  text-decoration: none;
}

.board-row .col-title a:hover { color: #3498db; }

.badge-notice {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.badge-new {
  display: inline-block;
  background: #3498db;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
}

.col-num  { color: #aaa; font-size: 13px; }
.col-date { color: #aaa; font-size: 13px; }
.col-author { color: #666; font-size: 13px; }

/* ── Home dual-section ── */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 700px) {
  .home-grid { grid-template-columns: 1fr; }

  .board-header,
  .board-row {
    grid-template-columns: 55px 1fr 80px;
  }

  .board-header .col-author,
  .board-row .col-author {
    display: none;
  }
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title a.more {
  font-size: 12px;
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

.section-title a.more:hover { text-decoration: underline; }

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 20px;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  text-decoration: none;
  font-size: 13px;
  color: #555;
  background: #fff;
  transition: all 0.15s;
}

.pagination a:hover { border-color: #3498db; color: #3498db; }
.pagination a.active { background: #3498db; border-color: #3498db; color: #fff; font-weight: 700; }

/* ── Write button ── */
.board-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.btn-write {
  padding: 8px 20px;
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

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

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