* {
  box-sizing: border-box;
}

:root {
  --color-brand: #ffeba7;
  --color-dark: #202330;
  --color-medium: #f6f6f6;
  --color-light: #fff;
}

body {
  background-color: var(--color-dark);
  min-height: 100vh;
  margin-top: 40px;
  padding: 20px;
  font-family: sans-serif;
}

.c-faqs {
  /**width: min(600px, 90%);**/
	padding-right: 10%;
}
.c-faqs__header {
  background: var(--color-brand);
  padding: 10px;
  color: #fff;
  text-align: center;
}
.c-faqs__title {
  font-size: 28px;
  color: var(--color-dark);
}
.c-faqs__items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.c-faqs__item {
  width: 100%;
}

.c-faqs__item[open] .c-faqs__item-question::after {
  transform: rotate(180deg);
}
.c-faqs__item[open] .c-faqs__item-question ~ * {
  animation: openQuestion 0.5s ease-in-out;
}
.c-faqs__item-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
}
.c-faqs__item-question::after {
  content: "";
  display: block;
  width: 18px;
  height: 10px;
  background: url("https://uploads.sitepoint.com/wp-content/uploads/2023/10/1697699669arrow.svg") no-repeat;
  transition: 0.2s;
}
.c-faqs__item-answer {
  line-height: inherit;
}

@keyframes openQuestion {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}