/* FAQ SECTION */
.faq-scope {
  background-color: var(--color-primary);
  position: relative;
  overflow: hidden;
}

/* Override AEM rule: html body [aria-hidden=true]:not(.overlay, path) */
.faq-scope [aria-hidden='true'] {
  display: revert !important;
  visibility: revert !important;
}

.faq-scope .faq-container {
  max-width: 1150px;
  margin: auto;
  position: relative;
  z-index: 1;
}
.faq-scope .grid-bg {
  position: absolute;
  right: -50%;
  top: 0;
  width: 150%;
  height: auto;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: 0;
}

.faq-scope .faq-title {
  color: var(--color-white);
  margin-bottom: 48px;
}

.faq-scope .faq-list {
  display: flex;
  flex-direction: column;
}

.faq-scope .faq-item {
  border-top: 1px solid var(--white-alpha-20);
  padding: 0;
}

.faq-scope .faq-item.open {
  background: var(--color-primary-dark);
  padding: 0 24px;
}

.faq-scope .faq-item:last-child {
  border-bottom: 1px solid var(--white-alpha-20);
}

.faq-scope .faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 24px;
  line-height: 130%;
  font-weight: normal;
  text-align: left;
  cursor: pointer;
}

.faq-scope .faq-icon {
  font-size: 28px;
  font-weight: 300;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
  display: unset !important;
}

.faq-scope .faq-item.open .faq-icon {
  font-size: 0;
}

.faq-scope .faq-item.open .faq-icon::after {
  content: '\2013';
  font-size: 28px;
}

.faq-scope .faq-answer {
  overflow: hidden;
  max-height: 0;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
  padding: 0 0;
}
.faq-scope .faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 0 24px 0;
}

.faq-scope .faq-answer p {
  color: var(--white-alpha-85);
  line-height: 160%;
  padding: 0;
}

.faq-scope .faq-answer a {
  color: var(--color-white);
  text-decoration: underline;
}

.faq-scope .faq-answer a:hover {
  opacity: 0.8;
}

/* COMPACT LAYOUT */
@media (max-width: 480px) {
  .faq-scope .faq-title {
    margin-bottom: 32px;
  }

  .faq-scope .faq-question {
    font-size: 24px;
    padding: 20px 0;
    gap: 16px;
  }

  .faq-scope .faq-icon {
    font-size: 24px;
    width: 28px;
  }

  .faq-scope .faq-answer p {
    font-size: 18px;
    padding: 0;
  }

  .faq-scope .grid-bg {
    object-fit: unset;
    right: -20%;
    top: 0;
    bottom: 0;
    width: 90%;
    height: 30%;
  }
}
