// main: ../main.scss
/*--------------------------------------------------------------
# Faq 2 Section
--------------------------------------------------------------*/
.faq-2 {
  .faq-container {
    .faq-item {
      background-color: var(--surface-color);
      position: relative;
      padding: 20px;
      margin-bottom: 15px;
      border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
      border-radius: 5px;
      overflow: hidden;

      &:last-child {
        margin-bottom: 0;
      }

      h3 {
        font-weight: 600;
        font-size: 16px;
        line-height: 24px;
        margin: 0 30px 0 0;
        transition: 0.3s;
        cursor: pointer;
        display: flex;
        align-items: center;

        .num {
          color: var(--accent-color);
          padding-right: 5px;
        }

        &:hover {
          color: var(--accent-color);
        }
      }

      .faq-content {
        display: grid;
        grid-template-rows: 0fr;
        transition: 0.3s ease-in-out;
        visibility: hidden;
        opacity: 0;

        p {
          margin-bottom: 0;
          overflow: hidden;
        }
      }

      .faq-toggle {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 16px;
        line-height: 0;
        transition: 0.3s;
        cursor: pointer;

        &:hover {
          color: var(--accent-color);
        }
      }
    }

    .faq-active {
      h3 {
        color: var(--accent-color);
      }

      .faq-content {
        grid-template-rows: 1fr;
        visibility: visible;
        opacity: 1;
        padding-top: 10px;
      }

      .faq-toggle {
        transform: rotate(90deg);
        color: var(--accent-color);
      }
    }
  }
}