/* KnOW faqs page style 231122 */
/* These are additions to the KnOW page style for the KnOW faqs page */

.hero .button-container {
  width: auto;
  display: flex;
  justify-content: space-between;
}

.get-in-touch p:first-child {
  font-weight: 700;
  color: black;
  font-family: var(--bold-fonts);
}

.get-in-touch p:first-child {
  font-size: 1.75rem;
  line-height: 1.4;
}

.hero {
  flex-direction: column;
  justify-content: flex-start;
  color: black;
  background-color: white;
  background-image: url("/know/web/assets/hero-background.png");
  background-size: cover;
  /* move graphic beneath text */
  padding-bottom: 35vw;
  background-position: right
}

.hero h1, 
.uses h2,
.use-cases h2,
.get-know h2,
.get-access p:first-child,
.get-in-touch p:first-child {
  margin-top: 1em;
  margin-left: var(--margin);
  margin-right: var(--margin);
  line-height: 1.4;
  text-align: center;
}

.hero p {
  max-width: 40ch;
  margin-left: var(--margin);
  margin-right: var(--margin);
}

.faqs-title .sodablock,
.faqs .sodablock {
  margin-top: 1rem;
  padding: 0 var(--margin);
}

.faqs-title h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.4;
}

.get-in-touch p:first-child {
  margin-top: var(--margin);
}

.get-in-touch p:last-child {
  margin-bottom: var(--margin);
  text-align: center;
}

.faqs .sodablock {
  border-color: var(--midgrey);
  border-style: solid;
  border-width: 1px 0 0 0;
}

.faqs .sodablock:last-child {
  padding-bottom: 1rem;
  border-width: 1px 0 1px 0;
}

.faqs h3 {
  position: relative;
  margin-bottom: 0;
  padding-right: 1.75rem;
  font-family: var(--med-fonts);
  font-size: 1.25rem;
  cursor: pointer;
}

.faqs h3:after {
  position: absolute;
  display: block;
  top: calc(50% - 0.75rem);
  right: 0;
  height: 1.5rem;
  width: 1.5rem;
  content: '';
  background-image: url('/know/web/assets/icons/plus.svg');
}

.faqs p {
  height: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.faqs h3.expanded {
  margin-bottom: 1rem;
}

.faqs h3.expanded:after {
  background-image: url('/know/web/assets/icons/minus.svg');
}

.faqs h3.expanded + p {
  height: fit-content;
}

@media (min-width: 768px) {
  .navbar {
    height: 6.25rem;
  }

  .hero {
    aspect-ratio: 3989 / 2799;
    padding-bottom: revert;
    background-size: contain;
  }

  .hero p, 
    margin-right: auto;
    margin-left: auto;
  }

  .faqs,
  .faqs-title {
    margin: 1.25rem 0;
  }

  .faqs-title h2 {
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .hero h1, 
  .get-in-touch p:first-child {
    max-width: calc(var(--page-width) * 0.5);
    margin-right: auto;
    margin-left: auto;
    font-size: 3.5rem;
  }

  .hero p, 
    font-size: 1.5rem;
    line-height: 1.5;
  }

  .get-in-touch p:first-child {
    font-size: 2rem;
    line-height: 1.4;
  }

  .faqs .sodablock {
    margin-left: calc(var(--margin) * 2);
    margin-right: calc(var(--margin) * 2);
  }

  .faqs h3 {
    margin-left: var(--margin);
    margin-right: var(--margin);
    font-size: 1.5rem;
  }

  .faqs h3:after {
    top: 0;
  }

  .faqs p {
    margin-left: var(--margin);
    margin-right: calc(var(--margin) + 1.75rem);
  }
}
