#faq-hero-section {
  height: 40rem;
}

#faq-hero-container {
  display: flex;
  justify-content: space-between;
}

#faq-hero-container h1 {
  width: 16ch;
}

#faq-hero_switch-btn {
  display: flex;
  align-items: end;
}

/* Hide by default */

/* Show active set */
.faq-navigation.active,
.faq-content.active {
  display: flex;
}

.faq-switch-btn {
  padding: 1rem 2rem;
  font-weight: 500;
  font-size: 1.5rem;
  cursor: pointer;
  border: 1px solid var(--blue);
  background-color: var(--light);
  color: #555;
  transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
}

.faq-switch-btn.active {
  background-color: var(--blue);
  color: var(--light);
}

#personal-faq-btn {
  border-top-left-radius: 2rem;
  border-bottom-left-radius: 2rem;
}

#vendor-faq-btn {
  border-top-right-radius: 2rem;
  border-bottom-right-radius: 2rem;
}

#about-hero-section h1 {
  max-width: 30ch;
  width: 100%;
}

/* FAQ */

#sticky-nav-wrap {
  /* height: 100px; */
}
#faq-section .container {
  display: flex;
  gap: 8rem;
}

#faq-navigation-main-container {
  width: 34rem;
}

#faq-navigation-container {
  width: 34rem;
  flex: 0 0 34rem;
}

.faq-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#faq-content-main-container {
  /* min-height: 1000px; */
  /* background-color: red; */
}

.faq-navigation,
.faq-content {
  display: none;
  opacity: 0;
}

.faq-navigation {
  flex-direction: column;
  margin-bottom: 3rem;
  /* gap: 1.4rem; */
}

.faq-navigation li {
  padding: 1.4rem 2rem;
  font-weight: 600;
  color: var(--darkblue);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 0.6rem;
  position: relative;
  overflow: hidden;
}

.faq-navigation li::before {
  content: "";
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 93, 205, 1) 0%,
    rgba(24, 245, 255, 1) 100%
  );
  opacity: 0;
  background-repeat: no-repeat;
  transition: opacity 0.4s ease-in-out;
  position: absolute;
  inset: 0;
  z-index: -1;
}

.faq-navigation li:not(.active):hover {
  background-color: var(--light);
}

.faq-navigation li.active {
  color: white;
}

.faq-navigation li.active::before {
  opacity: 1;
}

.faq-group {
  margin-bottom: 4rem;
  opacity: 1;
}

h3.faq-group_category {
  /* margin-bottom: 1rem; */
  font-size: 1.6rem;
  color: #aaaeb2;
}

.faq-group-item {
  padding: 1rem 0rem;
  position: relative;
  transition: background-color 0.3s ease-in-out;
}

.faq-group-item::after {
  content: "";
  width: 100%;
  height: 1px;
  background-size: 100%;
  background: linear-gradient(
    45deg,
    rgba(0, 93, 205, 1) 20%,
    rgba(24, 245, 255, 1) 50%
  );
  background-clip: border-box;
  display: block;
  position: absolute;
  bottom: 0;
  opacity: 0.1;
}

.faq-question-container {
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.faq-group-item:hover {
  /* background-color: var(--light); */
}

.faq-toggle-btn svg {
  fill: var(--blue);
  transition: transform 0.5s ease-in-out, fill 0.5s ease-in-out;
  width: 1.8rem;
  height: auto;
}

.faq-question-container.active .faq-toggle-btn svg {
  transform: rotate(135deg);
  fill: var(--teal);
}

.faq-question {
  font-weight: 600;
  font-size: 1.5rem;
}

.faq-answer {
  overflow: hidden;
  height: 0;
  opacity: 0;
}
.faq-answer-inner {
  padding: 1.4rem 0; /* bottom padding only shows when open */
  padding-right: 4rem;
}

.faq-answer-inner ul {
  list-style: disc;
  margin: 2rem;
}

.faq-answer-inner ul li {
  margin-bottom: 1rem;
}

.faq-question-container {
  cursor: pointer;
}
/* END FAQ */

@media all and (max-width: 1000px) {
  #faq-hero-container {
    flex-direction: column;
    gap: 6rem;
  }

  #faq-section .container {
    flex-direction: column;
    gap: 4rem;
  }

  #faq-navigation-container {
    width: 100%;
    flex: auto;
  }

  ul.faq-navigation {
    flex-wrap: wrap;
    flex-direction: row;
    row-gap: 1rem;
    align-items: start;
  }
}

@media all and (max-width: 700px) {
  #faq-navigation-container {
    overflow: auto;
  }

  ul.faq-navigation {
    overflow: auto;
    flex-wrap: nowrap;
    width: 500%;
  }

  #faq-hero-section {
    padding-bottom: 0rem;
  }
}
