/* bootstrap collapse*/
//unstyled
[data-toggle="collapse"] {
  display: inline-block;
  position: relative;
  padding-right: 20px;
  margin-bottom: 20px;
  font-size: 14px;
  &:after {
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -7px;

    font-size: 10px;
    font-family: "Font Awesome 5 Free", sans-serif;
    content: "\f078";
  }
  &.collapsed {
    &:after {
      content: "\f054";
    }
  }
}

//cards as tabs
[role="tablist"] {
  .card {
    border-radius: 0;
    border: none;
    background: none;
    margin-bottom: 20px;
  }
  .card-header {
    padding: 0;
    background: none;
    border: none;
    &:hover{
      background-color: $colorMain;
    }
    a {
      font-size: 16px;
      text-transform: unset;
      font-weight: 400;
      line-height: 1;
      display: block;
      padding: 22px 50px 22px 40px;
      margin: 0;
      background-color: $colorMain;
      border: none;
      color: $lightColor;
      word-wrap: break-word;
      i{
        margin-right: 20px;
        color: $lightColor;
      }
      &:before,
      &:after {
        text-align: center;
        font-family: inherit;
        font-weight: 100;
        content: '';
        width: 66px;
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        color: $lightColor;
        background-color: transparent;
        transition: opacity 0.3s ease-in-out;
      }
      &:after {
        height: 30px;
        line-height: 30px;
        margin-top: -15px;
        font-size: 12px;
        vertical-align: top;
        top: 50%;
        bottom: auto;
        content: '\f139';
        font-family: "Font Awesome 5 Free", sans-serif;
        background: none;
        font-weight: bold;
        color: $lightColor;
      }
      &:not(.btn):hover {

        color: $lightColor;
        &:before,
        &:after {
         color:$lightColor;
        }
        i{
          color:$lightColor;
        }
      }
      &.collapsed {
        background-color: transparent;
        box-shadow: $boxShadow;
        color: $fontColor;
        i{
          color:$colorMain;
        }
        &:after {
          content: '\f13a';
          font-family: "Font Awesome 5 Free", sans-serif;
          margin-top: -15px;
          font-size: 13px;
          color: $fontColor;
        }
        &:hover{
          color: $lightColor;
          background-color: $colorMain;
          i{
            color:$lightColor;
          }
          &:after{
            color: $lightColor;
          }
        }
      }
    }
  }

  [role="tab"] {
    a{
      display: block;
    }
  }
  .card{
    .card-body{
      box-shadow: $boxShadow;
    }
  }
  .card-body {
    padding: 30px 40px 27px 40px;
    background-color: transparent;
  }
  .media img {
    max-width: 80px;
  }
}
#accordion02{
  .card-body{
    margin-bottom: 0px;
  }
}
.ds.ms{
  [role="tablist"] .card-header a.collapsed{
    background-color: $darkgreyColor;
  }
}