@charset "UTF-8";
/* =========================================================
   Template: page-faq.php (FAQ 아코디언)
   Scope: 페이지 전용 스타일 (JS는 템플릿 내 유지)
   Note: functions.php 템플릿 자동 로더에 의해 로드됨
   ========================================================= */

/* 아코디언 컨테이너 */
.faq-accordion {
  margin: 2em 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* 아코디언 아이템 */
.faq-item {
  margin-bottom: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
}

/* 질문 영역 */
.faq-question {
  padding: 18px 20px;
  background-color: #f8f9fa;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}
.faq-question:hover { background-color: #f0f2f5; }
.faq-question h3 {
  margin: 0;
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
  flex: 1;
}
.toggle-icon {
  font-size: 1.5em;
  font-weight: bold;
  color: #666;
  transition: transform 0.3s;
}
.faq-item.active .toggle-icon { transform: rotate(45deg); }

/* 답변 영역 */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: #fff;
}
.faq-content {
  padding: 20px;
  border-top: 1px solid #eee;
}

/* 포스트 카테고리 뱃지 */
.faq-categories { margin-top: 15px; padding-top: 10px; border-top: 1px dashed #eee; }
.faq-category {
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 5px;
  padding: 3px 10px;
  background-color: #f0f7ff;
  color: #0073aa;
  font-size: 0.8em;
  border-radius: 12px;
}

/* 상단 카테고리 필터 */
.faq-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2em 0;
  padding-bottom: 1em;
  border-bottom: 1px solid #eee;
}
.category-item {
  display: inline-block;
  padding: 8px 16px;
  background-color: #f5f5f5;
  color: #555;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.3s;
}
.category-item:hover,
.category-item.active { background-color: #0073aa; color: #fff; }

/* 빈 상태 */
.no-faq {
  text-align: center;
  padding: 2em;
  color: #666;
  background-color: #f9f9f9;
  border-radius: 5px;
}

/* 모바일 보정 */
@media (max-width: 768px) {
  .faq-question h3 { font-size: 1em; padding-right: 10px; }
  .faq-content { padding: 15px; }
  .category-item { padding: 6px 12px; font-size: 0.9em; }
}
