section.faq-container {
  background-color: #f8fafb;
}

div.faq-container__contents {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 100px;

  width: 100%;
}

span.faq-title {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 800;
  font-size: 44px;
  line-height: 60px;

  color: #212121;
}

div.faq-list-container {
  padding: 43px 56px;
  background-color: #eef2f6;

  width: 100%;

  color: #212121;
}

ul.faq-list {
  display: flex;
  flex-direction: column;
  row-gap: 1px;

  background-color: #dfe3e9;
}

li.faq-list-item {
  display: flex;
  flex-direction: column;

  padding: 25px 0;
  background-color: #eef2f6;
  overflow-y: hidden;
}

div.faq-list-item__question-container {
  display: flex;
  justify-content: space-between;
  align-items: center;

  cursor: pointer;
}

span.faq-list-item__question-container__text {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
}

button.faq-list-item__question-container__toggle-button {
  width: 24px;
  height: 24px;
}

img.vertical-toggle-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease-in-out;
}

img.rotated {
  transform: rotate(180deg);
}

p.faq-list-item__answer {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;

  overflow: hidden;

  transition: all 0.3s ease-in-out;
  transform: translateY(10px);
  height: 0;
  opacity: 0;
  margin-top: 0;
}

p.expanded {
  margin-top: 24px;
  height: 100%;
  opacity: 1;
  transform: translateY(0);
}

@media screen and (max-width: 1024px) {
  div.faq-container__contents {
    align-items: flex-start;
    row-gap: 47px;

    padding: 0 20px;
  }

  span.faq-title {
    font-size: 28px;
    line-height: 40px;
  }

  div.faq-list-container {
    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 12px;
    padding: 12px 20px;
  }

  li.faq-list-item {
    padding: 24px 0;
  }

  div.faq-list-item__question-container {
    align-items: flex-start;
    justify-content: space-between;
  }

  span.faq-list-item__question-container__text {
    max-width: 240px;

    font-size: 16px;
    line-height: 24px;
  }

  button.faq-list-item__question-container__toggle-button {
    width: 20px;
    height: 20px;
  }

  img.vertical-toggle-icon {
    width: 20px;
    height: 20px;
  }

  p.faq-list-item__answer {
    font-size: 16px;
  }
}
