.faq {
  padding-left: var(--inline-padding);
  margin-bottom: 128px;
}

.faq h2 {
  font-family: var(--font-secondary);
  font-size: 48px;
  line-height: 64px;
  max-width: 380px;
  margin-bottom: 32px;
}

.faq h2 img {
  display: none;
}

.faq ul {
  border: 1px solid var(--border-color);
  max-width: 640px;
  min-width: 640px;
}

.faq li {
  padding: 16px 64px;
  position: relative;
  line-height: 24px;
  cursor: pointer;
  transition: background-color ease-in-out var(--transition-duration);
  background-color: white;
}

.faq li:hover {
  background-color: var(--mellow-purple);
}

.faq li:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

.faq li::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 19px;
  background-image: url("./startupX-bulletpoint.svg");
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  left: 24px;
}

.faq li::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 24px;
  background-image: url("./arrow-right.svg");
  background-repeat: no-repeat;
  background-size: 28px 24px;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.faq .active {
  background-color: var(--mellow-purple);
  color: var(--exotic-prurple);
  font-weight: 600;
  cursor: auto;
}

.faq .active:after {
  background-image: url("./arrow-right-active.svg");
}

.faq > div {
  display: flex;
  align-items: center;
}

.faq > div > article:last-child {
  position: relative;
  flex: 1;
  margin-left: 84px;
}

.faq > div > article:last-child img {
  position: absolute;
  top: -268px;
  right: 51px;
  width: 100%;
  max-width: 400px;
  height: auto;
}

.questions-and-answer {
  padding: 64px;
  display: inline-block;
  background-color: rgba(147, 17, 112, 0.03);
  max-width: 600px;
  margin-left: -32px;
  border: 1px solid var(--border-color);
}

.questions-and-answer h3 {
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  margin-bottom: 16px;
  color: var(--exotic-prurple);
}

.questions-and-answer p {
  line-height: 28px;
}

@media (max-width: 1450px) {
  .faq {
    padding-left: 0;
  }
  .faq h2 {
    font-size: 28px;
    line-height: 34px;
    display: flex;
    gap: 32px;
    max-width: unset;
    padding-inline: var(--inline-padding);
    align-items: center;
  }

  .faq h2 img {
    display: inline-block;
    width: 120px;
    height: auto;
  }

  .faq > div {
    flex-direction: column;
  }

  .faq > div > * {
    width: 100%;
    min-width: unset;
    max-width: unset;
  }

  .faq > div > *:last-child {
    display: none;
  }

  .faq li:after {
    transform: rotate(90deg) translateX(-50%);
  }

  .faq li.active:after {
    transform: rotate(-90deg) translateX(50%);
  }

  .questions-and-answer {
    margin-left: 0;
    padding: 32px;
  }
}