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

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

/* Header */
header {
  background: linear-gradient(135deg, #2c3e50, #3498db);
  color: white;
  padding: 0 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
  color: white;
  letter-spacing: -0.5px;
}

.logo span {
  color: #7fc8ff;
}

nav {
  display: flex;
  gap: 4px;
}

nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

nav a:hover,
nav a.active {
  background: rgba(255,255,255,0.18);
  color: white;
}

/* Main layout */
.container {
  max-width: 1100px;
  margin: 36px auto;
  padding: 0 20px;
}

/* Hero (index only) */
.hero {
  background: white;
  border-radius: 12px;
  padding: 40px 48px;
  margin-bottom: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-left: 5px solid #3498db;
}

.hero h1 {
  font-size: 26px;
  color: #2c3e50;
  margin-bottom: 8px;
}

.hero p {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
}

/* Board section */
.board-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 28px;
  overflow: hidden;
}

.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid #eef0f3;
  background: #fafbfc;
}

.board-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
}

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

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

.board-more {
  font-size: 13px;
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  padding: 4px 12px;
  border: 1px solid #3498db;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}

.board-more:hover {
  background: #3498db;
  color: white;
}

/* Post list */
.post-list {
  list-style: none;
}

.post-item {
  display: flex;
  align-items: center;
  padding: 14px 28px;
  border-bottom: 1px solid #f0f2f5;
  transition: background 0.15s;
  gap: 12px;
}

.post-item:last-child {
  border-bottom: none;
}

.post-item:hover {
  background: #f8fafc;
}

.post-num {
  min-width: 36px;
  text-align: center;
  font-size: 13px;
  color: #aaa;
}

.post-num.notice-num {
  background: #fff0f0;
  color: #e74c3c;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}

.post-title {
  flex: 1;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}

.post-title:hover {
  color: #3498db;
}

.post-new {
  font-size: 10px;
  background: #3498db;
  color: white;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
  flex-shrink: 0;
}

.post-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: #aaa;
  flex-shrink: 0;
}

/* Page board (notice.html / free.html) */
.page-header {
  background: white;
  border-radius: 12px;
  padding: 28px 36px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-header h2 {
  font-size: 22px;
  color: #2c3e50;
}

.page-header .icon {
  font-size: 26px;
}

.full-board {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
}

.full-board-head {
  display: grid;
  grid-template-columns: 60px 1fr 90px 80px 60px;
  padding: 12px 28px;
  background: #f4f6f9;
  border-bottom: 2px solid #e0e4ea;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-align: center;
}

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

.full-post-item {
  display: grid;
  grid-template-columns: 60px 1fr 90px 80px 60px;
  align-items: center;
  padding: 13px 28px;
  border-bottom: 1px solid #f0f2f5;
  font-size: 14px;
  color: #555;
  text-align: center;
  transition: background 0.15s;
}

.full-post-item:last-child {
  border-bottom: none;
}

.full-post-item:hover {
  background: #f8fafc;
}

.full-post-item .col-title {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.full-post-item .col-title a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}

.full-post-item .col-title a:hover {
  color: #3498db;
}

.notice-row {
  background: #fffbf0;
}

.notice-row:hover {
  background: #fff8e6;
}

.views {
  color: #aaa;
  font-size: 13px;
}

/* Write button */
.board-actions {
  padding: 16px 28px;
  background: #fafbfc;
  border-top: 1px solid #eef0f3;
  display: flex;
  justify-content: flex-end;
}

.btn-write {
  background: #3498db;
  color: white;
  border: none;
  padding: 9px 22px;
  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;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 24px 0;
}

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

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

.pagination span.current {
  background: #3498db;
  color: white;
  border-color: #3498db;
  font-weight: 700;
}

/* Footer */
footer {
  text-align: center;
  padding: 28px 20px;
  color: #aaa;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 680px) {
  .header-inner {
    height: auto;
    padding: 14px 0;
    flex-direction: column;
    gap: 10px;
  }

  header {
    padding: 0 20px;
  }

  .container {
    margin: 20px auto;
  }

  .hero {
    padding: 24px;
  }

  .post-meta {
    display: none;
  }

  .full-board-head {
    grid-template-columns: 50px 1fr 70px;
  }

  .full-board-head .col-author,
  .full-board-head .col-views {
    display: none;
  }

  .full-post-item {
    grid-template-columns: 50px 1fr 70px;
  }

  .full-post-item .col-author,
  .full-post-item .col-views {
    display: none;
  }
}
