/* @import url('https://fonts.googleapis.com/css?family=Hind:300,400&display=swap'); */

:root {
  --bg: #fff;
  --text: #4d5974;
  --gray: #4d5974;
  --lightgray: #e5e5e5;
  --blue: #03b5d2;
}


* {
  box-sizing: border-box;
  &::before, &::after {
    box-sizing: border-box;
  }
}

.faq_container {
  margin: 0 auto;
  padding: 4rem;
  width: 80%;
}

.faq_accordion {
  .faq_accordion-item {
    border-bottom: 1px solid var(--lightgray);
    button[aria-expanded='true'] {
      border-bottom: 1px solid rgba(0,0,0,.05);
    }
  }
  button {
    position: relative;
    display: block;
    text-align: left;
    width: 100%;
    padding: 1em 0;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 400;
    border: none;
    background: none;
    outline: none;
    &:hover, &:focus {
      cursor: pointer;
      color: var(--black);
      &::after {
        cursor: pointer;
        color: var(--black);
        border: 1px solid var(--black);
      }
    }
    .accordion-title {
      padding: 1em 1.5em 1em 0;
      float:left;
    }
    .icon {
      display: inline-flex;
      position: absolute;
      top: 35px;
      right: 0;
      width: 22px;
      height: 22px;
      border-radius: 22px;
      transition-duration: .3s;
      transition-property: all;
      transition-timing-function: cubic-bezier(.4,0,.2,1);
      &::before {
        display: block;
        position: absolute;
        content: '';
        top: 9px;
        left: 5px;
        width: 10px;
        height: 2px;
        background: currentColor;
      }
      &::after {
        display: block;
        position: absolute;
        content: '';
        top: 5px;
        left: 9px;
        width: 2px;
        height: 10px;
        background: currentColor;
      }
    }
  }
  button[aria-expanded='true'] {
    color: var(--black);
  }
  button[aria-expanded='true'] > .icon {
       rotate: 45deg;
      }
  
 button[aria-expanded='true'] + .accordion-content {
      opacity: 1;
      max-height: 9em;
      transition: all 200ms linear;
      will-change: opacity, max-height;
    }
  }
  .accordion-content {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 200ms linear, max-height 200ms linear;
    will-change: opacity, max-height;
    p {
      font-size: 1rem;
      font-weight: 300;
      margin: 2em 0;
    }
  }
}