/* -----------------------
    히어로 섹션
------------------------ */
.hero {
  display: none;
}


/* -----------------------
    검색 영역
------------------------ */
.faq-search-wrap {
  padding: 16px 0 0;
}

.faq-search-bar {
  display: flex;
  align-items: stretch;
  width: 60%;
  min-width: 260px;
  justify-self: flex-end;
  border: 1px solid #d9d9d9;
  border-radius: 0;
}

.faq-select {
  position: relative;
  width: 105px;
  border-right: 1px solid #d9d9d9;
  background: #fff;
  flex-shrink: 0;
}

.faq-select-toggle {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: none;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}

.faq-select-label {
  color: #111;
  font-size: 12px;
}

.faq-select-icon {
  width: 8px;
  height: 8px;
  border: 1px solid #999;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  margin-left: 8px;
}

.faq-select.open .faq-select-icon {
  transform: rotate(-135deg);
}

.faq-select-menu {
  position: absolute;
  top: 100%;
  left: -1px;
  width: calc(100% + 2px);
  background: #fff;
  border: 1px solid #d9d9d9;
  border-top: none;
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  z-index: 100;
}

.faq-select.open .faq-select-menu {
  display: block;
}

.faq-select-item {
  padding: 12px 16px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.faq-select-item:hover {
  background: #f5f5f5;
}

.faq-search-input-wrap {
  position: relative;
  flex: 1;
}

.faq-search-input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 16px;
  border: none;
  font-size: 14px;
  outline: none;
}

.faq-search-input::placeholder {
  color: #999;
  font-size: 12px;
}

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

.faq-search-button svg {
  width: 100%;
  height: 100%;
  display: block;
}



/* -----------------------
    게시판
------------------------ */
.faq-list {
  margin-top: 24px;
  border: 1px solid #e5e5e5;
}

.faq-item {
  border-bottom: 1px solid #e5e5e5;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question-row {
  display: flex;
  align-items: center;
  padding: 24px 16px;
  cursor: pointer;
}

.faq-row-main,
.faq-answer-row {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 12px;
}

.faq-icon {
  flex-shrink: 0;
  font-weight: 700;
}

.faq-icon.answer {
  color: #AFACAC;
}

.faq-toggle-icon {
  margin-left: 12px;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(-135deg);
}

.faq-question-text {
  font-size: 14px;
  color: #222;
}

.faq-answer-row {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
  background: #fafafa;
}

.faq-item.open .faq-answer-row {
  max-height: 300px; 
  display: flex;
  align-items: center;
  padding: 16px;
}

.faq-answer-inner {
  padding: 16px 0px;
  font-size: 14px;
  color: #333;
}

.pagination-wrap {
  padding: 24px 16px 40px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: #AFACAC;
}

.pagination button {
  background: transparent;
  border: none;
  color: #AFACAC;
  cursor: pointer;
  font-size: 15px;
}

.pagination button.icon {
  font-size: 24px;
}

.pagination button:disabled {
  opacity: 0.35;
  cursor: default;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-number {
  min-width: 28px;
  height: 28px;
  border-radius: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}

/* 현재 페이지 */
.pagination-number.is-active {                                                                                                                                                                                                                                                                         
  color: #000000;
  font-weight: 600;
}


/* -----------------------
    데스크톱 레이아웃
    (768px 이상)
------------------------ */
@media (min-width: 769px) {
  /* 히어로 이미지 */
  .hero {
    display: block;
    position: relative;
    background-color: #fff;
    margin: 0 auto;
    height: 300px;
  }
  .hero img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* 검색 */
  .faq-search-wrap {
    padding: 32px 0 0;
  }

  .faq-search-bar {
    min-width: 480px;
    max-width: 680px;
  }

  .faq-select {
    position: relative;
    width: 150px;
    border-right: 1px solid #d9d9d9;
    background: #fff;
    flex-shrink: 0;
  }

  .faq-select-toggle {
    height: 56px;
  }

  .faq-select-label {
    font-size: 14px;
  }

  .faq-select-icon {
    width: 10px;
    height: 10px;
  }

  .faq-select.open .faq-select-menu {
    display: block;
  }

  .faq-select-item {
    font-size: 14px;
  }

  .faq-search-input {
    height: 56px;
  }

  .faq-search-input::placeholder {
    font-size: 14px;
  }

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

  /* 게시판 */
  .faq-question-row {
    padding: 24px 24px;
  }

  .faq-row-main,
  .faq-answer-row {
    gap: 20px;
  }

  .faq-question-text {
    font-size: 16px;
  }

  .faq-answer-inner {
    font-size: 16px;
  }

  .faq-item.open .faq-answer-row {
    padding: 16px 24px;
  }

}