@use '../../utils' as *;

/*----------------------------------------*/
/* FAQ styles
/*----------------------------------------*/
.faq-glows {
  .glow-one {
    position: absolute;
    right: 0;
    top: -80%;
    z-index: -1;
  }
}
.faq-style-one {
  margin-inline-start: rem(35);

  @media #{$xs,$sm,$md,$lg} {
    margin-inline-start: 0;
  }

  .accordion {
    .accordion-button {
      padding: 0;
      font-size: rem(18);
      background: transparent;
      box-shadow: none;
      color: rgba($white, $alpha: 0.7);
      font-weight: 500;
      line-height: 1.5;

      @media #{$xs,$sm,$lg} {
        font-size: rem(18);
      }

      @media #{$xxs} {
        font-size: rem(16);
      }

      &:not(.collapsed) {
        border-radius: 0;
        color: var(--td-white);

        span {
          color: var(--td-primary);
        }

        .accordion-body {
          background: var(--td-white);
        }

        &::after {
          content: "\f068";
        }
      }

      &::after {
        position: absolute;
        inset-inline-end: 16px;
        content: "\2b";
        font-family: var(--td-ff-fontawesome);
        font-size: rem(18);
        font-weight: 400;
        text-align: center;
        top: 50%;
        transform: translateY(-50%);
        background-image: none;
      }

      span {
        margin-inline-end: 8px;
        transition: none;
        background: linear-gradient(95.42deg, rgba(108, 115, 255, 0.16) 0%, rgba(56, 64, 247, 0.16) 100%);
        border-radius: 144px;
        border-style: solid;
        border-color: rgba($white, $alpha: 0.1);
        border-width: 0.5px;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }
    }

    .accordion-body {
      background: transparent;
      border-radius: rem(0);
      padding: 0px 30px 30px 30px;

      @media #{$xxs} {
        padding-inline-start: rem(20);
        padding-inline-end: rem(20);
      }

      .description {
        font-size: rem(14);
        line-height: 1.7;

        strong {
          color: var(--td-heading);
        }
      }

      .accordion-body-list {
        margin-top: rem(14);

        ul {
          li {
            &:not(:last-child) {
              margin-bottom: rem(7);
            }
          }
        }
      }
    }

    .accordion-item {
      box-shadow: none;
      background: var(--td-white);
      @include border-radius(rem(16));
      background: transparent;
      border-color: rgba($white, $alpha: 0.1);

      &:not(:last-of-type) {
        margin-bottom: rem(20);
      }

      &:not(:first-of-type) {
        border-top: var(--bs-accordion-border-width) solid var(--bs-accordion-border-color);
        border-color: rgba($white, $alpha: 0.1);
      }

      &.accordion-active {
        border-color: transparent;
        position: relative;

        &::before {
          position: absolute;
          content: "";
          width: 100%;
          height: 100%;
          top: 0;
          left: 0;
          background: linear-gradient(95.42deg,
              rgba(108, 115, 255, 0.2) 0%,
              rgba(56, 64, 247, 0.2) 100%);
          border-radius: 16px;
        }

        &::after {
          position: absolute;
          content: "";
          inset: 0;
          @include border-radius(16px);
          padding: 1px;
          background: linear-gradient(95.42deg, $primary 0%, $primary-alt 100%);
          -webkit-mask: linear-gradient(var(--td-white) 0 0) content-box, linear-gradient(var(--td-white) 0 0);
          -webkit-mask-composite: xor;
          mask-composite: exclude;
          z-index: -1;
        }
      }

      &:last-of-type {
        &>.accordion-collapse {
          border-bottom-right-radius: 0;
          border-bottom-left-radius: 0;
        }
      }

      &:first-of-type {
        .accordion-button {
          border-top-left-radius: 0;
          border-top-right-radius: 0;
        }
      }
    }

    .accordion-header {
      button {
        padding: rem(16) rem(40) rem(16) rem(16);
      }
    }
  }
}

.faq-contents {
  height: 550px;
  @media #{$xs,$sm,$md} {
    height: inherit;
  }
}

.faq-thumb {
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 45%;

  @media #{$xs,$sm,$md} {
    position: inherit;
    width: 100%;
  }
}