@charset "utf-8";
/* NEXON Lv1 Gothic OTF 폰트 */
@font-face {
  font-family: 'NEXON Lv1 Gothic OTF';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/NEXON Lv1 Gothic OTF.woff')
    format('woff');
  font-weight: normal;
  font-style: normal;
}
/* 윤초록우산어린이 만세 폰트 */
@font-face {
  font-family: 'Yoon Childfundkorea';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408@1.0/YoonChildfundkoreaManSeh.woff2')
    format('woff2');
  font-weight: normal;
  font-style: normal;
}
/* FAQ 페이지 스타일 */
main[name='list'] {
  height: auto;
}
main[name='list'] .inner.faq_container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px 0;
}
/* FAQ 제목 */
main[name='list'] .faq_container h2 {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 40px;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  line-height: 150%; /* 24px */
  letter-spacing: 3.84px;
  padding: 16px;
  border-bottom: 3px solid #b1fafd;
}
/* 검색 영역 */
.faq_search_wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 30px;
}
.faq_search_wrap .search_form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.faq_search_wrap select[name='category'] {
  height: 40px;
  padding: 0 36px 0 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  background: #fff
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23666" d="M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z"/></svg>')
    no-repeat right 12px center;
  background-size: 10px;
  appearance: none;
  cursor: pointer;
  min-width: 100px;
}
.faq_search_wrap select[name='category']:focus {
  outline: none;
  border-color: #3b5998;
}
.faq_search_wrap input[type='text'] {
  height: 40px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  width: 220px;
  outline: none;
}
.faq_search_wrap input[type='text']::placeholder {
  color: #aaa;
  font-size: 13px;
}
.faq_search_wrap input[type='text']:focus {
  border-color: #3b5998;
}
.faq_search_wrap button[name='search'] {
  height: 40px;
  padding: 0 20px;
  background: #34596D;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.faq_search_wrap button[name='search']:hover {
  background: #2d4373;
}
/* FAQ 리스트 */
.faq_list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  min-height: 680px; /* Keeps pagination stable when list size changes */
}
.faq_item {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  margin-bottom: 10px;
  background: #fff;
  transition: box-shadow 0.2s;
}
.faq_item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.faq_item.faq_empty {
  text-align: center;
  color: #999;
}
.faq_question {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  position: relative;
}
.faq_icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  color: var(--Text_Alternative, #999);
  text-align: center;
  font-family: 'Yoon Childfundkorea';
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%; /* 56px */
}
.faq_text {
  flex: 1;
  color: #000;
  text-align: left;
  font-family: 'NEXON Lv1 Gothic OTF';
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}
.faq_toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  transition: transform 0.3s ease;
}
.faq_toggle::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 5px 0 5px;
  border-color: #999 transparent transparent transparent;
  transition: transform 0.3s ease;
}
.faq_item.active {
  background: #f3f6fa;
}
.faq_item.active .faq_toggle {
  transform: rotate(180deg);
}
.faq_answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  display: flex;
  align-items: flex-start;
  padding: 0 20px 0 20px;
}
.faq_item.active .faq_answer {
  max-height: 1000px;
  padding-bottom: 20px;
}
.faq_answer_icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  color: #34596d;
  text-align: center;
  font-family: 'Yoon Childfundkorea';
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}
.faq_answer_inner {
  flex: 1;
  color: #000;
  font-family: 'NEXON Lv1 Gothic OTF';
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  white-space: pre-wrap;
}
/* 페이지네이션 */
.page_indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 40px 0 0 0;
  padding: 0;
  list-style: none;
}
.page_indicator li {
  display: inline-block;
}
.page_indicator a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.page_indicator a:hover {
  background: #f5f5f5;
  color: #333;
}
.page_indicator a.select_page {
  color: #333;
  font-weight: 600;
}
.page_indicator a.fas {
  font-size: 14px;
  color: #999;
}
.page_indicator a.fas:hover {
  color: #333;
  background: transparent;
}
/* 반응형 */
@media all and (max-width: 767px) {
  main[name='list'] .inner.faq_container {
    padding: 30px 16px 60px;
  }
  main[name='list'] .faq_container h2 {
    color: #000;
    text-align: center;
    font-family: 'NEXON Lv1 Gothic OTF';
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%; /* 24px */
    letter-spacing: 3.84px;
  }
  .faq_search_wrap {
    justify-content: center;
  }
  .faq_search_wrap .search_form {
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-end;
  }

  .faq_search_wrap select[name='category'] {
    min-width: 80px;
    height: 38px;
    font-size: 13px;
  }

  .faq_search_wrap input[type='text'] {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 38px;
    font-size: 13px;
  }

  .faq_search_wrap button[name='search'] {
    height: 38px;
    padding: 0 16px;
    font-size: 13px;
  }

  .faq_question {
    padding: 14px 16px;
  }

  .faq_icon {
    width: 24px;
    height: 24px;
    font-size: 16px;
    margin-right: 12px;
  }

  .faq_text {
    font-size: 14px;
  }

  .faq_answer_inner {
    padding: 0 16px 16px 52px;
    font-size: 13px;
  }

  .page_indicator a {
    min-width: 28px;
    height: 28px;
    font-size: 13px;
  }
}
@media all and (max-width: 540px) {
  .faq_search_wrap .search_form {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
  }
  .faq_search_wrap select[name='category'] {
    width: auto;
  }
  .faq_search_wrap input[type='text'] {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 38px;
    font-size: 13px;
  }
}