
@import '../../styles.scss';

.wrapper {
  overflow: hidden;
  background-color: $light;
  border-radius: 0.5rem;
}

.alternate {
  background-color: $white;
}

.heading {
  display: flex;
  justify-content: space-between;
  padding: 2rem;
  cursor: pointer;

  h3, h3 + span {
    color: $primary-color;
    margin: auto 0;
  }
}

.icon {
  color: $secondary-color;
  margin: auto 0;
  font-size: 3rem;
}

h3 {
  width: 80%;
  margin: 0;
}

span {
  font-size: 2rem;
}

.fa-chevron-up {

  &.up {
    transition: all 0.5s ease;
  }

  &.down {
    transform: rotate(-180deg);
    transition: all 0.5s ease;
  }
}

.collapse {
  max-height: 130rem;
  transition: max-height 0.5s ease-in;
  overflow: hidden;
}

.collapsed {
  max-height: 0rem;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.collapse-container {
  padding-left: 3rem;
  border-left: 2px solid $secondary-color;
  margin-left: 3.4rem;
  padding: 0.5rem 8%;
  margin-bottom: 2rem;
}
