/* FAQ section */

.faq-block {
  position: relative;
  isolation: isolate;
  padding: 48px 24px;
}

.faq-block::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background-color: #F5F4F0;
  /* background: var(--color-white-secondary); */
  z-index: -1;
}

.faq-block::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 100%;
  opacity: 0.3;
  background: repeating-linear-gradient( to bottom, var(--color-forest-green) 0 12px, transparent 12px 24px );
}

.faq-block__header {
  margin-bottom: 62px;
}

.faq-block__title {
  font-weight: 600;
  font-size: 40px;
  line-height: 130%;
  letter-spacing: 0%;

  span {
    text-decoration: underline;
    text-decoration-thickness: 4px;
    text-underline-offset: 8px;
    text-decoration-color: var(--color-forest-green);
  }
  

  color: var(--color-black);
  margin-bottom: 0;

  p:last-of-type {
    margin-bottom: 0;
  }
}

/* FAQ grid */
.faq-block__content > .field__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 40px;
  align-items: start;
}

.faq-block__content > .field__items > .field__item {
  min-width: 0;
}

/* FAQ item */

.faq-item {
  background: var(--color-white-main);
  border-radius: 4px;
  
  margin: 0;
  border: none;
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 30px 20px 20px;

  cursor: pointer;
  list-style: none;

  font-weight: 600;
  font-size: 20px;
  line-height: 140%;
  letter-spacing: 0%;
  color: var(--color-black);
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::marker {
  content: "";
}

.faq-item__arrow {
  flex: 0 0 9px;
  width: 9px;
  height: 18px;

  background-color: var(--color-neutral-500);

  mask: url('../../images/icons/faq-arrow.svg') center / contain no-repeat;
  -webkit-mask: url('../../images/icons/faq-arrow.svg') center / contain no-repeat;

  transition: transform 0.2s ease, background-color 0.2s ease;
}

.faq-item__question:hover .faq-item__arrow {
  background-color: #1C173B;
}

.faq-item[open] .faq-item__arrow {
  background-color: #1C173B;
  transform: rotate(-90deg);
}

/* Answer */

.faq-item__answer {
  margin-top: -10px;
  padding: 0 32px 20px 20px;

  font-weight: 500;
  font-size: 14px;
  line-height: 140%;
  letter-spacing: 0%;

  color: var(--color-neutral-500);
}

.faq-item__answer p:last-child {
  margin-bottom: 0;
}

.faq-block__button {
  margin-top: 46px;
}



/* Responsive */

@media (max-width: 991.98px) {
  .faq-block__content > .field__items {
    gap: 16px 24px;
  }

  .faq-item__question {
    font-size: 18px;
  }
}

@media (max-width: 767.98px) {
  .faq-block {
    padding-block: 40px;
    padding-inline: 1rem;
  }

  .faq-block__header {
    margin-bottom: 32px;
  }

  .faq-block__title {
    font-size: 32px;
  }

  .faq-block__content > .field__items {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .faq-item__question {
    font-size: 16px;
  }

  .faq-item__answer {
    font-size: 14px;
    padding-right: 0;
  }
}



/* ORGANISATIONS PAGE */
.faq-block_org::after {
  background: repeating-linear-gradient( to bottom, var(--color-indigo) 0 12px, transparent 12px 24px );
}

.faq-block__title_org span {
  text-decoration-color: var(--color-information);
}

/* INDIVIDUALS PAGE */
.faq-block_indi::after {
  background: repeating-linear-gradient( to bottom, var(--color-brick) 0 12px, transparent 12px 24px );
}

.faq-block__title_indi span {
  text-decoration-color: var(--color-brick);
}

/* COACHES PAGE */
.faq-block_coaches::after {
  background: repeating-linear-gradient( to bottom, var(--color-amber) 0 12px, transparent 12px 24px );
}

.faq-block__title_coaches span {
  text-decoration-color: var(--color-amber);
}

/* TRUST PAGE */
.faq-block_trust::after {
  background: repeating-linear-gradient( to bottom, var(--color-violet) 0 12px, transparent 12px 24px );
}

.faq-block__title_trust span {
  text-decoration-color: var(--color-indigo);
}