html {
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
}

#faq_wrap {
  width: 90%;
  max-width: 900px;
  min-height: 70vh;
  margin: 0 auto;
  padding: 60px 0 90px;
  color: #333333;
}

#faq_header {
  margin-bottom: 36px;
  text-align: center;
}

#faq_icon {
  margin-bottom: 12px;
  color: #00aeef;
  font-size: 48px;
  line-height: 1;
}

#faq_header h1 {
  margin: 0;
  color: #222222;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
}

#faq_header p {
  margin: 13px 0 0;
  color: #777777;
  font-size: 15px;
  line-height: 1.7;
}

#faq_category_nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 58px;
}

#faq_category_nav a {
  display: inline-block;
  padding: 8px 15px;
  color: #555555;
  background-color: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 18px;
  font-size: 13px;
  text-decoration: none;
  transition:
    color 0.2s,
    border-color 0.2s,
    background-color 0.2s;
}

#faq_category_nav a:hover,
#faq_category_nav a:focus {
  color: #ffffff;
  background-color: #00aeef;
  border-color: #00aeef;
  text-decoration: none;
}

.faq_section {
  margin-bottom: 64px;
  scroll-margin-top: 100px;
}

.faq_section h2 {
  margin: 0 0 4px;
  padding-bottom: 13px;
  color: #222222;
  border-bottom: 2px solid #00aeef;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
}

.faq_section h2 i {
  margin-right: 6px;
  color: #00aeef;
}

/*
 * FAQ 항목에는 하단 선만 사용합니다.
 * 각 카테고리의 첫 번째 항목에도 상단 선이 생기지 않습니다.
 */
.faq_item {
  padding: 25px 24px;
  border-top: 0;
  border-bottom: 1px solid #e8e8e8;
}

/*
 * 질문과 답변이 같은 Grid 구조를 사용하기 때문에
 * Q./A.와 본문의 시작 위치가 정확하게 맞습니다.
 */
.faq_question,
.faq_answer {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
}

.faq_question {
  margin-bottom: 12px;
}

.faq_label {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  text-align: left;
}

.faq_question .faq_label {
  color: #00aeef;
}

.faq_answer .faq_label {
  color: #999999;
}

.faq_question h3 {
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #222222;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.faq_content {
  min-width: 0;
  color: #555555;
  font-size: 14px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.faq_content p {
  margin: 0;
  padding: 0;
  line-height: inherit;
}

/*
 * 실제 문단이 나뉘는 경우에만 작은 간격을 적용합니다.
 * 기존 <br><br>처럼 과도한 간격이 생기지 않습니다.
 */
.faq_content p + p {
  margin-top: 4px;
}

.faq_content strong {
  color: #333333;
  font-weight: 700;
}

.faq_content ul {
  margin: 9px 0 0;
  padding-left: 20px;
}

.faq_content ul + p {
  margin-top: 9px;
}

.faq_content li {
  margin: 0 0 4px;
  padding: 0;
  color: #555555;
  line-height: 1.7;
}

.faq_content li:last-child {
  margin-bottom: 0;
}

.faq_contact {
  margin-top: 14px;
  padding: 14px 17px;
  background-color: #f7fbfd;
  border: 1px solid #dceff6;
  border-radius: 4px;
}

.faq_contact i {
  margin-right: 7px;
  color: #00aeef;
}

.faq_contact a {
  color: #008fc5;
  font-weight: 600;
  text-decoration: none;
}

.faq_contact a:hover,
.faq_contact a:focus {
  text-decoration: underline;
}

#faq_bottom {
  padding: 34px 20px;
  background-color: #f7f7f7;
  border-radius: 5px;
  text-align: center;
}

#faq_bottom p {
  margin: 0 0 18px;
  color: #333333;
  font-size: 16px;
  font-weight: 600;
}

#faq_bottom .btn {
  min-width: 135px;
  margin: 3px;
}

@media (max-width: 767px) {
  #faq_wrap {
    width: 100%;
    padding: 50px 16px 65px;
  }

  #faq_icon {
    font-size: 42px;
  }

  #faq_header {
    margin-bottom: 28px;
  }

  #faq_header h1 {
    font-size: 26px;
  }

  #faq_header p {
    font-size: 13px;
  }

  #faq_category_nav {
    justify-content: flex-start;
    margin-bottom: 45px;
  }

  #faq_category_nav a {
    padding: 7px 12px;
    font-size: 12px;
  }

  .faq_section {
    margin-bottom: 50px;
    scroll-margin-top: 85px;
  }

  .faq_section h2 {
    font-size: 18px;
  }

  .faq_item {
    padding: 22px 4px;
  }

  .faq_question,
  .faq_answer {
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 6px;
  }

  .faq_question {
    margin-bottom: 10px;
  }

  .faq_label {
    font-size: 14px;
    line-height: 1.7;
  }

  .faq_question h3 {
    font-size: 14px;
    line-height: 1.7;
  }

  .faq_content {
    font-size: 13px;
    line-height: 1.7;
  }

  .faq_content p + p {
    margin-top: 7px;
  }

  .faq_content ul {
    margin-top: 8px;
    padding-left: 18px;
  }

  .faq_contact {
    padding: 13px 14px;
    word-break: break-all;
  }

  #faq_bottom {
    padding: 28px 14px;
  }

  #faq_bottom p {
    font-size: 14px;
  }

  #faq_bottom .btn {
    display: block;
    width: 100%;
    margin: 8px 0 0;
  }
}

@media (min-width: 768px) and (max-width: 1080px) {
  #faq_wrap {
    width: 84%;
  }
}
