/* /static/css/faq_public.css */

/* ===== 공통 컨테이너 ===== */
.faq-container {
  max-width: 1000px;
  margin: 18px auto 22px;
  padding: 0 16px;
  font-family: 'Pretendard', sans-serif;
}

/* ===== 리스트 영역 ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 12px 0;
}
.faq-item:last-child { border-bottom: none; }

.faq-item h3 { font-size: 18px; margin: 0; }
.faq-item h3 a { color: #0077cc; text-decoration: none; }
.faq-item h3 a:hover { text-decoration: underline; }

/* 리스트 메타 */
.faq-meta {
  font-size: 13px;
  color: #888;
  margin-top: 4px;
}

/* ===== 상세 페이지 ===== */
.faq-detail-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  font-family: 'Pretendard', sans-serif;
}
.faq-title { font-size: 26px; font-weight: 600; margin-bottom: 8px; color: #222; }
/* 상세 메타는 범위를 한정해서 리스트에 영향 X */
.faq-detail-container .faq-meta {
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
  padding-bottom: 0;
}
.faq-content {
  font-size: 15px;
  line-height: 1.8;
  padding: 20px 0;
  color: #333;
  border-bottom: 1px solid #ddd;
}

/* 첨부파일 */
.faq-attachments { margin-top: 30px; }
.faq-attachments h3 { font-size: 17px; margin-bottom: 10px; color: #222; }
.faq-file-list { list-style: none; padding: 0; margin: 0; }
.faq-file-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid #eee;
}
.file-info { flex: 1; display: flex; align-items: center; }
.file-name { color: #0077cc; text-decoration: none; font-weight: 500; }
.file-name:hover { text-decoration: underline; }
.file-size { font-size: 13px; color: #888; margin-left: 8px; }
.download-btn { font-size: 13px; color: #0077cc; text-decoration: underline; white-space: nowrap; }

/* 비어있을 때 */
.no-faqs { font-size: 15px; color: #555; text-align: center; margin-top: 40px; }

/* 뒤로가기 */
.faq-back { margin-top: 30px; }
.faq-back a {
  text-decoration: none; color: #333; background: #eee;
  padding: 8px 12px; border-radius: 4px; font-size: 14px;
}
.faq-back a:hover { background: #ddd; }

/* ===== 고객 문의 카드형 CTA ===== */
.support-card {
  max-width: 1000px;
  margin: 18px auto 22px;   /* FAQ와 동일 여백 */
  padding: 0 16px;          /* FAQ와 동일 좌우 패딩 */
}
.support-card-body {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 22px 16px;       /* 좌우 16px로 통일 → 텍스트 시작선 맞춤 */
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 60%);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.support-title {
  font-size: 22px; font-weight: 800; color: #0f172a;
  margin: 0 0 6px 0; letter-spacing: -0.2px;
}
.support-desc { color: #374151; margin: 0 0 10px 0; line-height: 1.55; }
.support-points { margin: 6px 0 0 0; padding-left: 18px; color: #4b5563; }
.support-points li { margin: 4px 0; }

/* (우측 영역에 버튼 배치할 때 쓰는 기존 클래스 — 유지) */
.support-action {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
}

/* 기본 버튼 톤 */
.btn-support-lg {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 18px; border-radius: 999px;
  background: #2563eb; color: #fff; font-weight: 700; font-size: 14px;
  text-decoration: none; box-shadow: 0 1px 1px rgba(0,0,0,.04);
  transition: background .15s ease, box-shadow .15s ease, transform .06s ease;
}
.btn-support-lg:hover { background: #1d4ed8; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.btn-support-lg:active { transform: translateY(1px); }
.btn-support-lg:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.25); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid #d1d5db; color: #111827; background: #fff;
  font-weight: 600; font-size: 13px;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-ghost:hover { border-color: #9ca3af; background: #fafafa; }

/* 반응형 */
@media (max-width: 960px) {
  .support-card-body { grid-template-columns: 1fr; gap: 16px; }
  .support-action { justify-content: flex-start; }
}

/* ===== 리스트 섹션 헤더 ===== */
.faq-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 12px 0 10px; padding: 8px 0;
  border-bottom: 1px solid #1d1e1e;
}
.faq-heading { font-size: 22px; font-weight: 700; margin: 0; color: #111827; }

/* 공지 배지 */
.faq-badge {
  display: inline-block; margin-left: 6px; padding: 2px 6px;
  font-size: 12px; font-weight: 700; color: #1f2937;
  background: #fde68a; border-radius: 4px; vertical-align: middle;
}

/* 카카오 상담 아이콘 배치 효과(선택) */
.btn-chat img { transition: transform 0.2s ease; }
.btn-chat:hover img { transform: scale(1.05); }

/* ====== 추가: 문의하기와 톡상담을 문구 아래 '가로 한 줄'로 강제 ====== */
/* HTML의 .support-text 내부에 <div class="support-actions-row">...</div> 이 들어갑니다. */
.support-actions-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: nowrap !important;     /* 줄바꿈 방지 */
}

/* 자식들이 자기 크기만 차지 (float/block로 전체폭 차지 방지) */
.support-actions-row > * {
  flex: 0 0 auto !important;
  float: none !important;
  margin: 0;
}

/* 카카오 채널 위젯이 내부에 block/clear를 주입해도 인라인 플렉스로 고정 */
#kakao-talk-channel-chat-button,
#kakao-talk-channel-chat-button > *,
#kakao-talk-channel-chat-button a,
#kakao-talk-channel-chat-button button {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  clear: none !important;
  float: none !important;
  margin: 0 !important;
}

/* 문의하기 버튼 줄바꿈/줄높이 통일 */
.support-actions-row .btn-support-lg {
  display: inline-flex !important;
  align-items: center;
  height: 40px;
  line-height: 40px;
  padding: 0 16px;
  white-space: nowrap;
}
