/* ===================== FAQ (faq) =====================
   Figma : [faq]FAQ(1341:3481) / [M] [AS_FAQ](1341:3745)
*/
.faq {
  padding: 68px 0 80px;
  color: #1d1d1d;
}

.faq * {
  box-sizing: border-box;
}

.faq a {
  color: inherit;
  text-decoration: none;
}

/* ---------- 타이틀 + 검색 ---------- */
.faqHead {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 38px;
}

.faqTitle {
  margin: 0;
  color: #181818;
  font-weight: 700;
  font-size: 44px;
  line-height: 44px;
}

.faqDesc {
  margin: 14px 0 0;
  color: #6b6b6b;
  font-size: 14px;
  line-height: 18.2px;
}

.faqSearch {
  position: relative;
  width: 440px;
  max-width: 100%;
  margin: 26px 0 0;
}

.faqSearch input {
  width: 100%;
  height: 45px;
  padding: 0 52px 0 20px;
  border: 1px solid #bbb;
  border-radius: 90px;
  background-color: #fff;
  box-shadow: 0 3px 2px rgba(0, 0, 0, 0.08); /* Figma searchBar drop shadow */
  color: #1d1d1d;
  font-family: inherit;
  font-size: 16px;
  text-align: center;
  outline: none;
}

.faqSearch input::placeholder {
  color: #6b6b6b;
}

.faqSearch input:focus {
  border-color: #0c56df;
}

.faqSearch button {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  transform: translateY(-50%);
  cursor: pointer;
}

/* 돋보기 아이콘 */
.faqSearch button::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border: 2px solid #4e4e4e;
  border-radius: 50%;
}

.faqSearch button::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 16px;
  width: 7px;
  height: 2px;
  border-radius: 1px;
  background-color: #4e4e4e;
  transform: rotate(45deg);
}

/* ---------- 구분 탭 ---------- */
.faqTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  /* padding: 0 20px; */
  width: 906px;
  max-width: 100%;
  margin: 0 auto;
}

.faqTab {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 26px;
  border-radius: 90px;
  background-color: #f5f5f5;
  color: #343434 !important;
  font-size: 16px;
  white-space: nowrap;
}

.faqTab:hover {
  background-color: #e9f0ff;
}

.faqTab.is-active {
  background-color: #0c56df;
  color: #fff !important;
  font-weight: 600;
}

/* ---------- 목록 ---------- */
.faqInner {
  width: 906px;
  max-width: 100%;
  margin: 0 auto;
  padding-top: 40px;
}

.faqList {
  border-top: 2px solid #333842;
}

.faqItem {
  border-bottom: 1px solid #dfe2e7;
}

.faqQ {
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
  padding: 14px 0;
  border: 0;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.faqQTxt {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.faqCate {
  color: #808080;
  font-weight: 500;
  font-size: 13px;
  line-height: 13px;
}

.faqQTitle {
  color: #1d1d1d;
  font-weight: 500;
  font-size: 14px;
  line-height: 26px;
  word-break: break-all;
}

.faqArrow {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
}

.faqArrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: -7px 0 0 -5px;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  transform: rotate(45deg);
  transition: transform 0.2s, margin 0.2s;
}

.faqItem.is-open .faqArrow::before {
  margin-top: -2px;
  transform: rotate(-135deg);
}

.faqA {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 16px;
  background-color: #f8f8f8;
}

.faqA[hidden] {
  display: none;
}

.faqAContent {
  color: #1d1d1d;
  font-size: 14px;
  line-height: 22px;
  word-break: break-all;
}

.faqAContent p {
  margin: 0;
}

.faqAContent img {
  max-width: 100%;
  height: auto;
}

.faqFile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
}

.faqFileName {
  min-width: 0;
  overflow: hidden;
  color: #5d7de8;
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.faqFileBtn {
  flex-shrink: 0;
  padding: 4px;
  background-color: #f3f6fc;
  color: #5d7de8;
  font-weight: 500;
  font-size: 13px;
  line-height: 17px;
}

.faqEmpty {
  margin: 0;
  padding: 40px 0;
  border-bottom: 1px solid #dfe2e7;
  color: #7d879b;
  font-size: 14px;
  text-align: center;
}

/* ---------- 페이징 (Common_l::get_paging) ---------- */
.faqPaging {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 28px;
}

.faqPaging a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #343434;
  font-size: 16px;
  line-height: 16px;
}

.faqPaging .number {
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 30px;
}

.faqPaging .number.current {
  background-color: #2d2d2d;
  color: #fff;
  font-weight: 500;
}

.faqPaging .previous,
.faqPaging .next {
  color: #6b6b6b;
  font-weight: 500;
  font-size: 14px;
}

/* ===================== 모바일 ===================== */
@media (max-width: 768px) {
  .faq {
    padding: 40px 0 40px;
  }

  .faqHead {
    padding-bottom: 24px;
  }

  .faqTitle {
    color: #000;
    font-size: 24px;
    line-height: 26.4px;
  }

  .faqDesc {
    margin-top: 8px;
    color: #333842;
    font-size: 13px;
    line-height: 19.5px;
  }

  .faqSearch {
    width: 100%;
    margin-top: 16px;
  }

  .faqSearch input {
    font-size: 14px;
  }

  /* 탭 : 가로 스크롤 */
  .faqTabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 20px;
  }

  .faqTabs::-webkit-scrollbar {
    display: none;
  }

  .faqTab {
    flex-shrink: 0;
    height: 32px;
    padding: 0 12px;
    color: #525252 !important;
    font-weight: 500;
    font-size: 14px;
  }

  .faqInner {
    padding: 40px 20px 0;
  }

  .faqList {
    border-top-width: 1px;
  }

  .faqQ {
    gap: 0;
  }

  .faqQTxt {
    gap: 6px;
  }

  .faqCate {
    font-size: 14px;
    line-height: 14px;
  }

  .faqQTitle {
    font-size: 15px;
  }

  .faqA {
    padding: 20px 16px;
  }

  .faqAContent {
    font-size: 15px;
    line-height: 27px;
  }

  .faqEmpty {
    padding: 34px 0;
    border-bottom: 0;
    font-size: 12px;
  }

  .faqPaging {
    gap: 16px;
    margin-top: 22px;
  }

  .faqPaging a,
  .faqPaging .previous,
  .faqPaging .next {
    font-size: 12px;
    line-height: 12px;
  }

  .faqPaging .number {
    min-width: 22px;
    height: 22px;
    background-color: #f9f9fa;
  }
}
