/* community.css */
.community-main { padding: 32px 0 64px; min-height: 60vh; }

.comm-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
  gap: 0;
}
.comm-tab {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-gray);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--transition);
}
.comm-tab:hover { color: var(--text-dark); }
.comm-tab.active { color: var(--text-dark); border-bottom-color: var(--text-dark); font-weight: 700; }

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

/* 게시판 테이블 */
.board-table { width: 100%; border-collapse: collapse; }
.board-table thead { border-top: 2px solid var(--text-dark); }
.board-table th, .board-table td {
  padding: 14px 12px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.board-table th { color: var(--text-gray); font-weight: 500; background: var(--bg-light); }
.board-table td a { color: var(--text-dark); }
.board-table td a:hover { color: var(--primary); }
.notice-title {
  color: var(--text-dark);
  font-size: 14px;
  text-align: left;
}
.notice-title:hover { color: var(--primary); text-decoration: underline; }
.board-table .notice-row td { background: #fafafa; }
.col-num { width: 80px; text-align: center; }
.col-date { width: 120px; text-align: center; }
.board-table td:first-child, .board-table td:last-child { text-align: center; color: var(--text-gray); font-size: 13px; }
.notice-badge {
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: 700;
}

/* 이벤트 */
.event-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.event-card { width: 100%; text-align: left; background: #fff; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); cursor: pointer; transition: box-shadow var(--transition); }
.event-card:hover { box-shadow: var(--shadow); }
.event-img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.event-img img { width: 100%; height: 100%; object-fit: cover; }
.event-status {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}
.event-status.ing { background: var(--primary); color: #fff; }
.event-status.end { background: #aaa; color: #fff; }
.event-info { padding: 16px; }
.event-info h4 { font-size: 15px; margin-bottom: 6px; }
.event-info p { font-size: 12px; color: var(--text-light); }

/* FAQ */
.faq-list { border-top: 2px solid var(--text-dark); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background var(--transition);
}
.faq-q:hover { background: var(--bg-light); }
.faq-q::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--text-gray);
  transition: transform var(--transition);
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 16px 20px 20px; background: var(--bg-light); }
.faq-item.open .faq-a { display: block; }
.faq-a p { font-size: 14px; color: var(--text-gray); line-height: 1.8; }
.community-modal-box h2 { padding-right: 32px; margin-bottom: 18px; font-size: 20px; }
.community-modal-box p { color: var(--text-gray); font-size: 14px; line-height: 1.85; white-space: pre-line; }

@media (max-width: 768px) {
  .event-grid { grid-template-columns: 1fr; }
  .comm-tab { padding: 12px 18px; font-size: 14px; }
}
