:root {
  /* Colors */
  --white: hsl(0, 0%, 100%);
  --light-pink: hsl(275, 100%, 97%);
  --grayish-purple: hsl(292, 16%, 49%);
  --dark-purple: hsl(292, 42%, 14%);

  /* Variables */
  --plus-and-minus-sign-size: 25px;
}

@font-face {
  font-family: "Work Sans";
  src: url("assets/fonts/WorkSans-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
}

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  background: var(--light-pink);
  font-family: "Work Sans", sans-serif;
  background-image: url(assets/images/background-pattern-desktop.svg);
  background-repeat: no-repeat;
  background-size: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

p {
  font-size: 16px;
}

.faq {
  width: 35%;
  max-width: 600px;
  background: var(--white);
  padding: 2.3rem;
  border-radius: 1rem;
  box-shadow: 2px 12px 20px 1px rgba(0, 0, 0, 0.1);
}

.faq .title {
  font-size: 40px;
  font-weight: 700;
  color: var(--dark-purple);
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 1.5rem;
}

.faq .title::before {
  content: "";
  min-width: 30px;
  min-height: 30px;
  background-image: url(assets/images/icon-star.svg);
  background-size: cover;
}

.faq ul li {
  list-style: none;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq ul li:first-child {
  padding-top: 0;
}

.faq ul li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.faq ul li .header {
  font-weight: 600;
  color: var(--dark-purple);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq ul li .header:active {
  color: #b326f3;
}

.faq ul li .header::after {
  content: "";
  min-width: var(--plus-and-minus-sign-size);
  min-height: var(--plus-and-minus-sign-size);
  background-image: url(assets/images/icon-plus.svg);
  background-size: cover;
}

.faq ul li .header.active::after {
  content: "";
  min-width: var(--plus-and-minus-sign-size);
  min-height: var(--plus-and-minus-sign-size);
  background-image: url(assets/images/icon-minus.svg);
  background-size: cover;
}

.faq ul li .body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.faq ul li .body .content {
  color: var(--grayish-purple);
  padding: 1.3rem 0;
}

@media (max-width: 1024px) {
  .faq {
    width: 50%;
  }
}

@media (max-width: 900px) {
  .faq {
    width: 55%;
  }
}

@media (max-width: 768px) {
  .faq {
    width: 80%;
    max-width: 500px;
    min-width: 280px;
  }

  body {
    background-image: url(assets/images/background-pattern-mobile.svg);
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .faq .title {
    font-size: 30px;
  }
}
