/* ==========================================================================
   FAQ SECTION ("Frequently Asked Questions")
   Pozadina #242424 (nastavak iz prethodnih sekcija).
   Accordion - klik na pitanje otvara/zatvara odgovor, + postaje - kad je
   otvoreno.
   ========================================================================== */

.faq {
  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 100px 48px;
  background: #242424;
}

.faq__inner {
  width: 100%;
  max-width: var(--container-width);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq__eyebrow {
  margin: 0;
  color: var(--main-blue);
  text-align: center;
  font-family: var(--font-family);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 21px; /* 150% */
  letter-spacing: 1.68px;
  text-transform: uppercase;
}

.faq__heading {
  margin: 16px 0 0;
  color: #FFF;
  text-align: center;
  font-family: var(--font-family);
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 46px; /* 115% */
  letter-spacing: -0.8px;
}

.faq__list {
  margin-top: 64px;
  width: 100%;
  max-width: 700px;
}

.faq-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  padding: 32px 0;
  border-bottom: 1px solid #5A5A5A;
  cursor: pointer;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-q {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.faq-q__text {
  margin: 0;
  color: #FFF;
  font-family: var(--font-family);
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 30px; /* 150% */
}

.faq-q__toggle {
  flex-shrink: 0;
  color: var(--main-blue);
  font-family: var(--font-family);
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 30px; /* 150% */
  transition: transform 0.3s ease;
}

.faq-a {
  width: 100%;
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1), margin-top 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-a p {
  min-height: 0;
  overflow: hidden;
  margin: 0;
  color: #C4C4C4;
  font-family: var(--font-family);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 150% */
}

.faq-item.is-open .faq-a {
  margin-top: 16px;
  grid-template-rows: 1fr;
}

/* ==========================================================================
   TABLET (768px - 1023px)
   ========================================================================== */
@media (max-width: 1023px) {

  .faq {
    padding: 80px 24px;
  }
}

/* ==========================================================================
   MOBILE (<= 767px)
   ========================================================================== */
@media (max-width: 767px) {

  .faq {
    padding: 80px 24px;
  }

  .faq-q__text {
    font-size: 18px;
    line-height: 26px;
  }
}
