/* ============================================================
   FAQ 포털 페이지
============================================================ */
.faq-page {
  width: 100%;
  padding: 30px 0 50px;
  box-sizing: border-box;
}

.faq-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* ============================================================
   FAQ 포털 카드
============================================================ */
.faq-portal-card {
  width: 100%;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(15, 23, 42, .04);
}

.faq-portal-header {
  min-height: 56px;
  padding: 14px 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fafbfc;
  border-bottom: 1px solid #e4e7ec;
}

.faq-portal-header strong {
  color: #344054;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.faq-portal-header span {
  color: #98a2b3;
  font-size: 12px;
  line-height: 1.5;
}

/* ============================================================
   카테고리
============================================================ */
.faq-category-box {
  width: 100%;
  margin: 0;
  padding: 14px 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  background: #fff;
  border-bottom: 1px solid #eef0f3;
}

.faq-cat-btn {
  min-height: 32px;
  padding: 5px 11px;
  box-sizing: border-box;
  color: #667085;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.faq-cat-btn:hover:not(.active) {
  color: #2684ff;
  background: #f8faff;
  border-color: #b2ccff;
}

.faq-cat-btn.active {
  color: #fff;
  background: #2684ff;
  border-color: #2684ff;
}

/* ============================================================
   FAQ 목록
============================================================ */
.faq-list {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: block;
}

.faq-item {
  width: 100%;
  margin: 0;
  padding: 0 20px;
  box-sizing: border-box;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #eef0f3;
  border-radius: 0;
  cursor: pointer;
  transition: background .18s ease;
}

.faq-item:hover {
  background: #f8fafc;
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-question {
  width: 100%;
  min-height: 54px;
  padding: 14px 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.faq-arrow {
  flex: 0 0 auto;
  margin-left: auto;
  color: #98a2b3;
  font-size: 16px;
  line-height: 1;
  transition: transform .18s ease, color .18s ease;
}

.faq-answer {
  display: none;
  margin: 0;
  padding: 0 0 16px;
  color: #667085;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.faq-item.open {
  background: #fbfcfe;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-arrow {
  color: #2684ff;
  transform: rotate(90deg);
}

/* ============================================================
   카테고리 태그
============================================================ */
.faq-tag {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: 7px;
  padding: 3px 7px;
  box-sizing: border-box;
  color: #175cd3;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  background: #eff8ff;
  border: 1px solid #d1e9ff;
  border-radius: 5px;
}

/* ============================================================
   더보기
============================================================ */
.faq-more-box {
  width: 100%;
  margin: 0;
  padding: 16px 20px;
  box-sizing: border-box;
  text-align: center;
  background: #fafbfc;
  border-top: 1px solid #eef0f3;
}

#faqMoreBtn {
  min-width: 94px;
  min-height: 36px;
  padding: 0 14px;
  box-sizing: border-box;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  background: #2684ff;
  border: 1px solid #2684ff;
  border-radius: 7px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}

#faqMoreBtn:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

#faqMoreBtn:disabled {
  opacity: .55;
  cursor: default;
}

/* ============================================================
   하단 안내
============================================================ */
.faq-guide {
  margin-top: 14px;
  padding: 12px 14px;
  box-sizing: border-box;
  color: #667085;
  font-size: 11px;
  line-height: 1.6;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
}

/* ============================================================
   페이지 하단 CTA
============================================================ */
.faq-page-footer {
  width: 100%;
  margin-top: 18px;
  padding-top: 18px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #e4e7ec;
}

.faq-footer-home {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

.faq-footer-home:hover {
  color: #2684ff;
  text-decoration: none;
}

.faq-footer-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.faq-footer-action span {
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.faq-calc-cta {
  min-height: 40px;
  padding: 0 16px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  background: #2684ff;
  border: 1px solid #2684ff;
  border-radius: 8px;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.faq-calc-cta:hover {
  color: #fff;
  background: #1d4ed8;
  border-color: #1d4ed8;
  text-decoration: none;
  transform: translateY(-1px);
}

/* faq-ch.css 맨 아래에 추가 */
.faq-item {
  scroll-margin-top: 110px;
}

.faq-question {
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-family: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.faq-question-text {
  flex: 1;
  min-width: 0;
}

.faq-item.faq-target-highlight {
  background: #eff8ff;
  box-shadow: inset 3px 0 0 #2684ff;
  transition: background .25s ease, box-shadow .25s ease;
}

/* ============================================================
   태블릿
============================================================ */
@media (max-width: 768px) {
  .faq-page {
    padding: 24px 0 42px;
  }

  .faq-container {
    padding: 0 14px;
  }

  .faq-portal-header {
    padding: 14px 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .faq-category-box {
    padding: 13px 18px;
  }

  .faq-item {
    padding: 0 18px;
  }

  .faq-page-footer {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 14px;
  }

  .faq-footer-action {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
  }

  .faq-calc-cta {
    width: 100%;
    min-height: 44px;
  }

  .faq-footer-home {
    align-self: flex-end;
  }
}

/* ============================================================
   모바일
============================================================ */
@media (max-width: 480px) {
  .faq-page {
    padding: 20px 0 36px;
  }

  .faq-container {
    padding: 0;
  }

  .faq-portal-card {
    border-radius: 10px;
  }

  .faq-portal-header {
    padding: 12px 16px;
  }

  .faq-portal-header strong {
    font-size: 13px;
  }

  .faq-portal-header span {
    font-size: 11px;
  }

  .faq-category-box {
    padding: 12px 16px;
    gap: 6px;
  }

  .faq-cat-btn {
    min-height: 30px;
    padding: 4px 9px;
    font-size: 10px;
  }

  .faq-item {
    padding: 0 16px;
  }

  .faq-question {
    min-height: 50px;
    padding: 13px 0;
    font-size: 12px;
  }

  .faq-answer {
    padding-bottom: 14px;
    font-size: 11px;
    line-height: 1.7;
  }

  .faq-tag {
    margin-right: 5px;
    padding: 2px 5px;
    font-size: 9px;
  }

  .faq-more-box {
    padding: 14px 16px;
  }

  #faqMoreBtn {
    min-width: 88px;
    min-height: 34px;
    font-size: 11px;
  }

  .faq-guide {
    font-size: 10px;
  }

  .faq-page-footer {
    margin-top: 16px;
    padding-top: 16px;
  }

  .faq-footer-action span,
  .faq-footer-home {
    font-size: 11px;
  }

  .faq-calc-cta {
    min-height: 44px;
    font-size: 13px;
  }
}
