* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Noto Sans KR", -apple-system, "Malgun Gothic", sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Header */
header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 60px;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 22px; }
.brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
nav.main-nav { display: flex; gap: 36px; font-weight: 600; }
nav.main-nav a:hover, nav.main-nav a.active { color: #4caf50; }
.header-links { display: flex; gap: 20px; font-size: 14px; color: #888; }

/* Hero */
.hero {
  position: relative;
  height: 380px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 0;
}
.hero-text { position: relative; z-index: 1; }
.hero-text h1 { font-size: 28px; margin-bottom: 12px; }
.hero-text p { font-size: 18px; }

/* Tabs */
.tabs { display: flex; }
.tabs a {
  flex: 1;
  text-align: center;
  padding: 18px 0;
  background: #6b5d54;
  color: #fff;
  font-weight: 600;
}
.tabs a.active { background: #f5a623; }

/* Section */
section.content { max-width: 1200px; margin: 0 auto; padding: 60px 20px; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 24px; margin-bottom: 10px; }
.section-title .bar { width: 40px; height: 3px; background: #4caf50; margin: 14px auto; }

/* Card grid */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid .card { position: relative; border-radius: 6px; overflow: hidden; height: 260px; }
.card-grid .card img { width: 100%; height: 100%; object-fit: cover; }
.card-grid .card .label {
  position: absolute; top: 16px; left: 16px;
  background: rgba(0,0,0,0.55); color: #fff;
  padding: 8px 14px; font-weight: 700; border-radius: 4px;
}

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { position: relative; }
.gallery img { width: 100%; height: 160px; object-fit: cover; border-radius: 4px; }
.gallery figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 13px; padding: 6px 8px; opacity: 0;
  transition: opacity .2s;
}
.gallery figure:hover figcaption { opacity: 1; }

/* Activity board (with content) */
.activity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.activity-card { border: 1px solid #eee; border-radius: 6px; overflow: hidden; }
.activity-card img { width: 100%; height: 180px; object-fit: cover; }
.activity-card .body { padding: 12px; }
.activity-card .body h4 { font-size: 15px; margin-bottom: 6px; }
.activity-card .body p { font-size: 13px; color: #777; }

/* Board table */
table.board { width: 100%; border-collapse: collapse; }
table.board th, table.board td {
  padding: 14px 10px; text-align: center; border-bottom: 1px solid #eee;
}
table.board th { border-bottom: 2px solid #333; color: #555; }
table.board td.title { text-align: left; }
table.board td.title a:hover { color: #4caf50; }

/* Forms */
.board-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 20px 0; }
.board-toolbar input[type=text] { padding: 8px 12px; border: 1px solid #ccc; border-radius: 4px; width: 220px; }
.btn { display: inline-block; padding: 10px 22px; background: #6b5d54; color: #fff; border-radius: 4px; border: none; cursor: pointer; font-weight: 600; }
.btn.primary { background: #4caf50; }
.btn.small { padding: 6px 14px; font-size: 13px; }
.btn.danger { background: #d9534f; }

.form-box { max-width: 700px; margin: 0 auto; }
.form-box .row { margin-bottom: 16px; }
.form-box label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.form-box input, .form-box textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px;
}
.form-box textarea { min-height: 160px; resize: vertical; }
.form-row-2 { display: flex; gap: 12px; }
.form-row-2 > div { flex: 1; }

.answer-box { background: #f7f9f4; border-left: 4px solid #4caf50; padding: 16px; margin-top: 18px; border-radius: 4px; }
.answer-box .label { font-weight: 700; color: #4caf50; margin-bottom: 6px; }

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.pagination a, .pagination span { padding: 6px 12px; border-radius: 4px; }
.pagination a.active { background: #4caf50; color: #fff; }

/* Footer */
footer.site-footer { background: #4a4a4a; color: #eee; padding: 50px 60px; }
footer.site-footer .footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
footer.site-footer h3 { font-size: 20px; margin-bottom: 6px; }
footer.site-footer .foot-nav { display: flex; gap: 24px; font-size: 14px; }
footer.site-footer .contact { margin-top: 20px; font-size: 14px; color: #ccc; }
footer.site-footer .legal { margin-top: 30px; display: flex; justify-content: flex-end; gap: 20px; font-size: 13px; color: #aaa; }

.empty-state { text-align: center; padding: 60px 0; color: #999; }

@media (max-width: 900px) {
  header.site-header { padding: 14px 20px; }
  nav.main-nav { display: none; }
  .card-grid, .gallery, .activity-grid { grid-template-columns: repeat(2, 1fr); }
  section.content { padding: 40px 16px; }
}
