body {
  margin: 0;
  background-color: #fff;
}

.faq-search-section {
  text-align: center;
  padding: 150px 20px 40px;
}

.faq-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 32px;
  color: #222;
  font-family: 'Noto Sans KR', sans-serif;
}

.faq-search-box {
  width: 800px;
  height: 72px;
  padding: 9px 32px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 200px;
  border: 2px solid var(--Sub-Color-Sub-Color-01, #444c57);
  background: var(--Gray-White, #fff);
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.faq-search-input:focus {
  outline: none;
}

.faq-search-box:has(.faq-search-input:focus) {
  border-color: #4a90e2;
}

.faq-search-input {
  flex: 1;
  border: none;
  font-size: 18px;
  font-family: 'Noto Sans KR', sans-serif;
  outline: none;
  background: transparent;
}

.faq-search-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 16px;
}

.faq-search-button img {
  width: 35px;
  height: 35px;
}


.faq-container {
  display: flex;
  width: 1200px;
  margin: 0 auto;
  padding: 100px 0 200px 0;
  gap: 30px;
}

.faq-categories {
  list-style: none;
  width: 170px;
  padding: 0;
  margin: 0;
}

.category {
  font-size: 20px;
  font-family: 'Noto Sans KR', sans-serif;
  margin-bottom: 45px;
  cursor: pointer;
  position: relative;
  color: #222;
  font-weight: 600;
}

.category.active {
  color: #2385ff;
}

.arrow {
  position: absolute;
  right: 10px;
  top: 2px;
  visibility: hidden;
}

.arrow-icon {
  width: 26px;
  height: 26px;
}

.faq-questions {
  width: 932px;
  padding-left: 50px;
}

.faq-item {
  width: 932px;
  border-top: 1px solid #ccc;
  padding: 30px 20px 20px 20px;
  margin-top: 0;
  border-bottom: none;
}

.faq-item:hover p {
  color: inherit;
}

.toggle {
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.question {
  display: flex;
  justify-content: space-between;
  align-items: center; 
  font-size: 20px;
  color: #222;
  font-weight: 500;
  font-family: 'Noto Sans KR', sans-serif;
}

.toggle svg {
  cursor: pointer;
}

.icon-plus {
  width: 34px;
  height: 34px;
}

.icon-minus {
  width: 34px;
  height: 34px;
}

.icon-plus path {
  stroke: #222;
  stroke-width: 2;
}

.icon-minus path {
  stroke: #222;
  stroke-width: 2;
}

.answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
  margin-top: 10px;
}


.answer p {
  margin: 5px 0;
}







/* 반응형 스타일 */
@media (max-width: 768px) {

  .faq-search-section {
    text-align: center;
    padding: 90px 20px 0px 20px;
  }

  .faq-container {
    flex-direction: column;
    width: 100%;
    padding: 50px 20px;
    gap: 0px;
  }

  .faq-categories {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
  }

  .faq-categories::-webkit-scrollbar {
    display: none;
  }

  .category {
    flex-shrink: 0;
    margin-right: 10px;
    padding: 10px 16px;
    border: 1px solid #ccc;
    border-radius: 30px;
    font-size: 15px;
    white-space: nowrap;
    background-color: #fff;
    transition: background 0.3s ease;
  }

  .category.active {
    background-color: #2385ff;
    color: #fff;
    border-color: #2385ff;
  }

  .arrow {
    display: none; 
  }

  .faq-questions {
    width: 100%;
    padding: 0;
  }

  .faq-item {
    width: 100%;
    padding: 20px 10px;
    background-color: #fff;
    border-radius: 0;
  }

  .question {
    font-size: 18px;
    flex-wrap: wrap;
  }

  .faq-search-box {
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 10px 20px;
    box-sizing: border-box;
  }

  .faq-search-input {
    font-size: 16px;
  }

  .faq-search-button img {
    width: 28px;
    height: 28px;
  }

  .icon-plus {
    width: 24px;
    height: 24px;
  }

  .icon-minus {
    width: 24px;
    height: 24px;
  }
}
