/* =========================================================
   FAQ PAGE
   ========================================================= */


/* =========================================================
   FAQ — MAIN SECTION
   Figma:
   Width: 1440px
   Padding top: 80px
   Gap: 26px
   ========================================================= */

.faq-section {
  width: 100%;
  box-sizing: border-box;

  padding-top: 80px;

  display: flex;
  flex-direction: column;
  gap: 26px;
}


/* =========================================================
   FAQ — MAIN CONTENT CONTAINER
   Figma:
   Width: 1300px
   Max content width: 1200px
   ========================================================= */

.faq-container {
  width: 1300px;
  max-width: calc(100% - 140px);

  margin: 0 auto;

  padding-right: 30px;
  padding-left: 30px;

  box-sizing: border-box;
}


/* =========================================================
   FAQ — INTRO
   Figma:
   Width: 1200px
   Max width: 1200px
   Height: Hug 20px
   Flow: Vertical
   Gap: 4px
   ========================================================= */

.faq-group {
  width: 100%;
  max-width: 1200px;

  margin: 0 auto;

  display: flex;
  flex-direction: column;
  gap: 4px;

  box-sizing: border-box;
}


/* =========================================================
   FAQ — EYEBROW
   Figma:
   Typography: Desktop
   Flow: Horizontal
   Width: Fill 1200px
   Height: Hug 20px
   Gap: 8px
   ========================================================= */

.faq-group-heading {
  width: 100%;
  height: 20px;

  display: flex;
  align-items: center;
  

  gap: 8px;

  margin: 0;
  padding: 0;

  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;

  color: #DB219D;

  box-sizing: border-box;
}


/* =========================================================
   FAQ — EYEBROW ICON
   ========================================================= */

.faq-group-icon {
  width: 15px;
  height: 18.692869186401367px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  opacity: 1;
}

.faq-group-icon span {
  width: 15px;
  height: 18.692869186401367px;

  display: block;

  background-image: url("assets/talent.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}


/* =========================================================
   FAQ — QUESTIONS SECTION
   Figma:
   Width: 1200px
   Max width: 1200px
   Gap: 21px
   ========================================================= */

.faq-list {
  width: 100%;
  max-width: 1200px;

  margin: 0 auto;

  display: flex;
  flex-direction: column;

  gap: 21px;

  box-sizing: border-box;
}


/* =========================================================
   FAQ — QUESTION ITEM
   Figma:
   Width: 1200px
   Min width: 380px
   Max width: 1200px
   Height: Hug 116px when open
   Gap: 12px
   Bottom padding: 10px
   Bottom border: 1px
   ========================================================= */

.faq-item {
  width: 100%;
  min-width: 380px;
  max-width: 1200px;

  display: flex;
  flex-direction: column;

  gap: 12px;

  margin: 0;
  padding: 0 0 10px 0;

  border: 0;
  border-bottom: 1px solid #C9C5B9;

  box-sizing: border-box;
}

/* Space between Talent and Company FAQ groups */
.faq-item:nth-child(4) {
  margin-bottom: 70px;
}


/* =========================================================
   FAQ — QUESTION ROW
   Figma:
   Width: 1180px
   Height: 34px
   Justify content: Space between
   ========================================================= */

.faq-question {
  width: calc(100% - 20px);
  height: 34px;

  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border: 0;
  background: transparent;

  color: #1A1A18;

  cursor: pointer;
  text-align: left;

  box-sizing: border-box;
}


/* =========================================================
   FAQ — QUESTION TEXT
   Figma:
   Width: 1180px
   Height: 34px
   Font: Frank Ruhl Libre
   Weight: 500
   Size: Desktop H2
   Line height: Desktop H2
   Color: #1A1A18
   ========================================================= */

.faq-question > span:first-child {
  height: 34px;

  flex: 1 1 auto;

  margin: 0;
  padding: 0;

  font-family: "Frank Ruhl Libre", serif;
  font-size: 28px;
  line-height: 34px;
  font-weight: 500;
  letter-spacing: 0;

  color: #1A1A18;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  box-sizing: border-box;
}


/* =========================================================
   FAQ — ARROW
   Figma:
   Width: 20px
   Height: 10px
   Gap: 10px
   Border: 3px
   Color: #6B6B66
   ========================================================= */

.faq-toggle {
  width: 20px;
  height: 10px;

  flex: 0 0 20px;

  position: relative;

  display: block;

  margin: 0;
  padding: 0;

  font-size: 0;
  line-height: 0;

  box-sizing: border-box;
}


/* Chevron */

.faq-toggle::before {
  content: "";

  position: absolute;

  width: 10px;
  height: 10px;

  left: 5px;
  top: 0;

  border-left: 3px solid #6B6B66;
  border-top: 3px solid #6B6B66;

  transform: rotate(45deg);

  box-sizing: border-box;
}


/* =========================================================
   FAQ — ANSWER
   Figma:
   Width: 1180px
   Height: 60px
   Font: DM Sans
   Weight: 400
   Size: 20px
   Line height: 30px
   Color: #1A1A18
   ========================================================= */

.faq-answer {
  width: calc(100% - 20px);
  height: 60px;

  margin: 0;
  padding: 0;

  box-sizing: border-box;
}

.faq-answer p {
  width: 100%;
  height: 60px;

  margin: 0;
  padding: 0;

  font-family: "DM Sans", sans-serif;
  font-size: 20px;
  line-height: 30px;
  font-weight: 400;
  letter-spacing: 0;

  color: #1A1A18;

  box-sizing: border-box;
}


/* =========================================================
   FAQ — CLOSED STATE
   ========================================================= */

.faq-item.is-closed {
  gap: 0;
}

.faq-item.is-closed .faq-answer {
  display: none;
}


/* =========================================================
   FAQ — ARROW CLOSED STATE
   ========================================================= */

.faq-item.is-closed .faq-toggle::before {
  transform: rotate(225deg);
}


/* =========================================================
   FAQ — RESPONSIVE
   ========================================================= */

@media (max-width: 1399px) {

  .faq-container {
    max-width: calc(100% - 80px);
  }

}


@media (max-width: 767px) {

  .faq-section {
    padding-top: 40px;
    gap: 20px;
  }

  .faq-container {
    width: 100%;
    max-width: 100%;

    padding-right: 20px;
    padding-left: 20px;
  }

  .faq-group,
  .faq-list {
    width: 100%;
    max-width: 100%;
  }

  .faq-group {
  gap: 25px;
}

  .faq-item {
    min-width: 0;
    width: 100%;
  }

  .faq-question {
    width: 100%;
  }

  .faq-question > span:first-child {
    font-size: 22px;
    line-height: 28px;
    height: auto;

    white-space: normal;
  }

  .faq-answer {
    width: 100%;
    height: auto;
  }

  .faq-answer p {
    width: 100%;
    height: auto;

    font-size: 16px;
    line-height: 24px;
  }

}
/* =========================
   FINAL CTA
========================= */

.final-cta {
    width: 100%;
    height: 174px;
    padding: 30px 0;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 24px;

    background: #E8EFF7;
    text-align: center;
}

.final-cta h1 {
    width: 398px;
    height: 46px;
    margin: 0;

    font-family: "Frank Ruhl Libre", serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 46px;
    letter-spacing: 0;

    color: #1B3F6E;
    text-align: center;

    white-space: nowrap;
}

.final-cta .button {
    width: 119px;
    height: 44px;
    min-width: 119px;
    flex-shrink: 0;

    padding: 0 24px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border: 2px solid #1B3F6E;
    border-radius: 28px;

    background: #1B3F6E;
    color: #FFFFFF;

    text-align: center;
    text-decoration: none;
}

.final-cta .button span {
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
    color: #FFFFFF;
    text-align: center;
    white-space: nowrap;
}