.faq-section {
  .faq-heading {
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    text-align: center;
  }

  .faq-item {
    background-color: $accent-colorw;
    border: 1px $accent-color2 solid;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: border-color 0.3s;

    &:hover {
      border-color: #0e0e0e;
    }

    .faq-title {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px;
      cursor: pointer;
      font-weight: normal;
      font-size: 1.1rem;
      color: $accent-colord;
      transition: background-color 0.3s;
    }

    .faq-content {
      padding: 0 15px;
      color: $accent-colord;
      font-size: 0.9rem;
      line-height: 1.5;
      max-height: 0; /* Initially collapsed */
      opacity: 0;
      transition: max-height 0.5s ease, opacity 0.5s ease;
      overflow: hidden;

      &.show {
        max-height: 200px; /* Adjust based on content height */
        opacity: 1;
      }
    }

    &.open {
      border-color: $accent-color;
    }
  }

  .icon {
    font-size: 1.2rem;
    color: $accent-colord;
  }
  .fromright {
    display: grid;
    gap: 10px;
    background-color: $accent-colorw;
    padding: 2rem;
    border-radius: 10px;
  }
}
