@charset "utf-8";

/* FAQ 커스텀 스타일 */

/* 섹션 제목 */
#faq_con h2 {
  position: static;
  font-size: 1.5em;
  font-weight: 700;
  color: #222;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #D7E1EA;
  overflow: visible;
  line-height: 1.4;
}

/* FAQ 리스트 */
#faq_wrap ol {
  margin: 20px 0 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

/* FAQ 아이템 */
#faq_wrap li {
  border: 1px solid #EEF0F3;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  position: relative;
  transition: all 0.2s ease;
  overflow: hidden;
}

#faq_wrap li:hover {
  border-color: #D7E1EA;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#faq_wrap li:first-child {
  border-top: 1px solid #EEF0F3;
}

/* 질문 영역 */
#faq_wrap li h3 {
  min-height: 60px;
  line-height: 1.6;
  padding: 16px 16px 16px 56px;
  position: relative;
  margin: 0;
  font-size: 1.05em;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  user-select: none;
}

#faq_wrap li h3 a {
  color: #333;
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
}

#faq_wrap li h3:hover a {
  color: #0080EA;
}

#faq_wrap li h3.faq_li_open {
  background: #f9f9fc;
  border-bottom: 1px solid #EEF0F3;
}

#faq_wrap li h3.faq_li_open a {
  color: #0080EA;
  font-weight: 700;
}

/* Q 뱃지 */
#faq_wrap li h3 .tit_bg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 16px;
  left: 16px;
  text-align: center;
  color: #fff;
  background: #0080EA;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  line-height: 32px;
  font-size: 1.1em;
  font-weight: 700;
  flex-shrink: 0;
}

/* 펼침/닫힘 버튼 */
#faq_wrap li h3 .tit_btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 32px;
  height: 32px;
  background: transparent;
  color: #0080EA;
  font-size: 1.2em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
  padding: 0;
}

#faq_wrap li h3 .tit_btn:hover {
  color: #0066cc;
}

#faq_wrap li h3.faq_li_open .tit_btn {
  transform: translateY(-50%) rotate(180deg);
}

/* 답변 영역 */
#faq_con .con_inner {
  display: none;
  padding: 20px 56px 20px 56px;
  background: #fafbfc;
  border-top: 1px solid #EEF0F3;
  position: relative;
  font-size: 0.95em;
  line-height: 1.8;
  color: #444;
}

#faq_con .con_inner::before {
  content: 'A';
  position: absolute;
  left: 16px;
  top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #999;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  line-height: 32px;
  font-size: 1.1em;
  font-weight: 700;
  text-align: center;
}

/* 답변 닫기 버튼 */
#faq_con .con_inner .closer_btn {
  position: absolute;
  right: 16px;
  top: 20px;
  border: none;
  width: 32px;
  height: 32px;
  background: transparent;
  color: #0080EA;
  font-size: 1.2em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.2s ease;
}

#faq_con .con_inner .closer_btn:hover {
  color: #0066cc;
}

/* 카테고리 탭 */
#bo_cate {
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid #D7E1EA;
}

#bo_cate h2 {
  position: absolute;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

#bo_cate ul {
  zoom: 1;
}

#bo_cate ul:after {
  display: block;
  visibility: hidden;
  clear: both;
  content: "";
}

#bo_cate li {
  display: inline-block;
  padding: 4px;
}

#bo_cate a {
  display: block;
  line-height: 32px;
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid #D7E1EA;
  color: #666;
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 500;
  transition: all 0.2s ease;
}

#bo_cate a:focus,
#bo_cate a:hover,
#bo_cate a:active {
  text-decoration: none;
  background: #0080EA;
  color: #fff;
  border-color: #0080EA;
}

#bo_cate #bo_cate_on {
  z-index: 2;
  background: #0080EA;
  color: #fff;
  font-weight: 700;
  border: 1px solid #0080EA;
  box-shadow: 0 2px 8px rgba(0, 128, 234, 0.3);
}

/* 검색 폼 */
#faq_sch {
  background: #f9f9fc;
  padding: 24px;
  text-align: center;
  margin: 0 0 28px;
  border: 1px solid #EEF0F3;
  border-radius: 8px;
}

#faq_sch .sch_tit {
  position: absolute;
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
  text-indent: -9999em;
  overflow: hidden;
}

#faq_sch .frm_input {
  border: 1px solid #D7E1EA;
  width: 280px;
  height: 44px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 0.95em;
  font-family: 'Pretendard Variable', 'Malgun Gothic', dotum, sans-serif;
  transition: all 0.2s ease;
}

#faq_sch .frm_input:focus {
  outline: none;
  border-color: #0080EA;
  box-shadow: 0 0 0 3px rgba(0, 128, 234, 0.1);
}

#faq_sch .btn_submit {
  padding: 0 16px;
  height: 44px;
  width: auto;
  min-width: 80px;
  font-size: 0.95em;
  font-weight: 600;
  color: #fff;
  background: #0080EA;
  border: 1px solid #0080EA;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Pretendard Variable', 'Malgun Gothic', dotum, sans-serif;
  vertical-align: middle;
}

#faq_sch .btn_submit:hover {
  background: #0066cc;
  border-color: #0066cc;
}

/* 상/하단 HTML */
#faq_hhtml,
#faq_thtml {
  margin: 20px 0;
  padding: 20px;
  background: #fff;
  border: 1px solid #EEF0F3;
  border-radius: 8px;
}

#faq_hhtml {
  margin-bottom: 24px;
}

#faq_thtml {
  margin-top: 24px;
}

/* 빈 상태 메시지 */
.empty_list {
  padding: 40px 20px;
  text-align: center;
  color: #999;
  background: #f9f9fc;
  border: 1px dashed #D7E1EA;
  border-radius: 8px;
  font-size: 0.95em;
}

/* 페이징 */
.paging {
  margin-top: 32px;
  text-align: center;
}

/* 모바일 반응형 */
@media (max-width: 600px) {
  #faq_sch {
    padding: 16px;
  }

  #faq_sch .frm_input {
    width: calc(100% - 86px);
    height: 40px;
  }

  #faq_sch .btn_submit {
    width: 80px;
    height: 40px;
    font-size: 0.9em;
  }

  #faq_wrap li h3 {
    padding: 14px 14px 14px 50px;
    min-height: 50px;
    font-size: 1em;
  }

  #faq_wrap li h3 .tit_bg {
    width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 1em;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
  }

  #faq_wrap li h3 .tit_btn {
    width: 28px;
    height: 28px;
    right: 12px;
    font-size: 1em;
  }

  #faq_con .con_inner {
    padding: 16px 16px 16px 50px;
  }

  #faq_con .con_inner::before {
    width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 1em;
    left: 12px;
    top: 16px;
  }

  #faq_con .con_inner .closer_btn {
    width: 28px;
    height: 28px;
    right: 12px;
    font-size: 1em;
  }

  #bo_cate li {
    padding: 2px;
  }

  #bo_cate a {
    padding: 4px 12px;
    line-height: 28px;
    font-size: 0.9em;
  }
}
