/* ============================================================
   BOARD — notice list / detail, search, pagination, FAQ
   ============================================================ */
.board-section { padding: 100px 0; background: var(--bg-secondary); }

.board-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; }
.board-tab {
  padding: 12px 30px; border-radius: 50px; border: 1px solid var(--border);
  background: #fff; color: var(--text-muted); font-weight: 700; font-size: 15px;
  cursor: pointer; transition: all var(--transition); font-family: var(--font-heading);
}
.board-tab.active { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(0,108,238,0.22); }

.board-panel { display: none; }
.board-panel.active { display: block; }

/* Board header row */
.board-head {
  display: flex; align-items: center; gap: 16px; padding: 12px 20px;
  border-top: 2px solid var(--navy); border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  letter-spacing: 0.5px; background: #fff;
}
.board-head .board-cat-col { flex: 0 0 56px; text-align: center; }
.board-head .board-title { flex: 1 1 auto; color: var(--text-muted); }
.board-head .board-meta { display: flex; gap: 16px; flex: 0 0 auto; min-width: 150px; justify-content: flex-end; }

/* Notice rows */
.board-list { background: #fff; border-radius: 0 0 var(--radius-sm) var(--radius-sm); overflow: hidden; }
.board-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  border-bottom: 1px solid var(--border); transition: background var(--transition);
  cursor: pointer; color: inherit; text-decoration: none;
}
.board-item:hover { background: var(--bg-tint); }
.board-no { flex: 0 0 44px; text-align: center; color: var(--text-dim); font-size: 14px; }
.board-cat { padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.board-item .board-cat { min-width: 56px; text-align: center; }
.cat-important { background: rgba(233,30,99,0.10); color: var(--magenta); }
.cat-notice { background: rgba(0,108,238,0.10); color: var(--blue); }
.cat-info { background: rgba(25,77,165,0.10); color: var(--navy); }
.board-title { flex: 1 1 auto; font-size: 15px; color: var(--text); font-weight: 500; transition: color var(--transition); }
.board-item:hover .board-title { color: var(--blue); }
.board-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-dim); white-space: nowrap; flex: 0 0 auto; min-width: 150px; justify-content: flex-end; }
.board-empty { padding: 56px 20px; text-align: center; color: var(--text-dim); font-size: 15px; background: #fff; }

/* Pagination */
.board-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.pag-btn {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; color: var(--text-muted); cursor: pointer; font-size: 14px; transition: all var(--transition);
}
.pag-btn.active, .pag-btn:hover { background: var(--gradient); color: #fff; border-color: transparent; }

/* Search */
.board-search { position: relative; max-width: 360px; margin: 0 0 24px auto; }
.board-search input {
  width: 100%; padding: 12px 44px 12px 18px; border-radius: 50px;
  background: #fff; border: 1px solid var(--border); color: var(--text);
  font-size: 14px; font-family: var(--font-body); outline: none; transition: border-color var(--transition);
}
.board-search input:focus { border-color: var(--blue); }
.board-search input::placeholder { color: var(--text-dim); }
.board-search-icon { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: 14px; pointer-events: none; }

/* Notice detail */
.notice-detail { max-width: 860px; }
.notice-detail-head { padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.notice-detail-head .board-cat { display: inline-block; margin-bottom: 14px; min-width: 56px; text-align: center; }
.notice-detail-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--text-strong); line-height: 1.4; }
.notice-detail-meta { display: flex; gap: 20px; margin-top: 16px; font-size: 13px; color: var(--text-dim); flex-wrap: wrap; }
.notice-body { color: var(--text-muted); font-size: 16px; line-height: 1.9; min-height: 140px; margin-bottom: 40px; }
.notice-body p { margin-bottom: 16px; }
.notice-body strong { color: var(--text-strong); }
.notice-nav { border-top: 1px solid var(--border); margin-bottom: 32px; }
.notice-nav-row { display: flex; align-items: center; gap: 20px; padding: 16px 8px; border-bottom: 1px solid var(--border); }
.notice-nav-label { flex: 0 0 56px; font-size: 13px; font-weight: 700; color: var(--blue); }
.notice-nav-row a { color: var(--text-muted); font-size: 14px; transition: color var(--transition); }
.notice-nav-row a:hover { color: var(--blue); }
.notice-nav-none { color: var(--text-dim); font-size: 14px; }
.notice-detail-actions { display: flex; justify-content: center; }

/* FAQ */
.faq-item { margin-bottom: 8px; }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-strong); font-size: 15px; cursor: pointer; transition: all var(--transition);
  text-align: left; font-family: var(--font-body); font-weight: 500;
}
.faq-q:hover { border-color: rgba(0,108,238,0.3); }
.faq-q-mark { width: 28px; height: 28px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff; flex-shrink: 0; }
.faq-toggle { margin-left: auto; font-size: 20px; color: var(--blue); flex-shrink: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; padding: 0 20px; display: flex; gap: 16px; }
.faq-item.active .faq-a { padding: 16px 20px; }
.faq-item.active .faq-q { border-color: var(--blue); background: var(--bg-tint); }
.faq-a-mark { width: 28px; height: 28px; border-radius: 50%; background: rgba(25,77,165,0.12); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--navy); flex-shrink: 0; margin-top: 2px; }
.faq-a p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
