@import url('https://fonts.googleapis.com/css2?family=Muli&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: Muli, sans-serif;
  background-color: #f0f0f0;
}

h1 {
  margin: 50px 0 30px;
  text-align: center;
}

.faq-container {
  max-width: 600px;
  margin: 0 auto;
}

.faq {
  position: relative;
  margin: 20px 0;
  padding: 30px;
  background-color: transparent;
  border: 1px solid #9fa4a8;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.3s ease;
  &.active {
    background-color: #fff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.1);
    &::before,
    &::after {
      content: '\f075';
      position: absolute;
      top: 20px;
      left: 20px;
      z-index: 0;
      font-family: 'Font Awesome 5 Free';
      font-size: 7rem;
      color: #2ecc71;
      opacity: 0.1;
    }
    &::before {
      top: -10px;
      left: -30px;
      color: #3498db;
      transform: rotateY(180deg);
    }
  }
}

.faq-title {
  margin: 0 30px 0 0;
}

.faq-text {
  display: none;
  margin: 30px 0 0;
  .active & {
    display: block;
  }
}

.faq-toggle {
  position: absolute;
  top: 27px;
  right: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 16px;
  background-color: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  &:focus {
    outline: 0;
  }
  .fa-times {
    display: none;
  }
  .active & {
    background-color: #9fa4a8;
    .fa-times {
      display: block;
      color: #fff;
    }
    .fa-chevron-down {
      display: none;
    }
  }
}
