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

/* FAQ Hero */
.faq-hero {
  padding: 16px 0 60px;
  text-align: center;
}

.faq-hero h1 {
  font-size: 42px;
  font-weight: 600;
  line-height: 52px;
  color: var(--main);
  margin-bottom: 8px;
}

.faq-hero > .container > p {
  font-size: 16px;
  line-height: 24px;
  color: var(--grey-9);
  max-width: 340px;
  margin: 0 auto 20px;
}

/* FAQ Search */
.faq-search {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.faq-search-input {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 58px;
  padding: 0 16px;
  border: 1px solid var(--grey-2);
  border-radius: 24px;
  background: var(--white);
}

.faq-search-input svg {
  flex-shrink: 0;
}

.faq-search-input input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 22px;
  color: var(--main);
  background: transparent;
}

.faq-search-input input::placeholder {
  color: var(--grey-5);
}

.faq-search-btn {
  width: 100%;
  height: 50px;
  padding: 0 24px;
  background: var(--main);
  color: var(--white);
  border: none;
  border-radius: 32px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

/* FAQ Categories */
.faq-categories {
  padding: 0 0 120px;
}

.faq-categories .container {
  display: grid;
  gap: 64px;
}

.faq-category {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-category-info h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  color: var(--main);
  margin-bottom: 8px;
}

.faq-category-info p {
  font-size: 16px;
  line-height: 24px;
  color: var(--grey-9);
}

/* FAQ List */
.faq-list {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--grey-4);
  gap: 0;
}

.faq-item.active .faq-answer{
  margin-top: 0;
}

.faq-item {
  border-bottom: 1px solid var(--grey-4);
  padding-bottom: 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Poppins', sans-serif;
}

.faq-question span:first-child {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: var(--main);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

/* FAQ Answer — smooth open/close */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.faq-answer p {
  font-size: 15px;
  line-height: 24px;
  color: var(--grey-9);
  padding-bottom: 20px;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  opacity: 1;
}

/* ===== FAQ PAGE DESKTOP ===== */
@media (min-width: 1024px) {
  .faq-hero {
    padding: 24px 0 60px;
  }

  .faq-hero h1 {
    font-size: 48px;
    line-height: 58px;
  }

  .faq-hero > .container > p {
    font-size: 18px;
    line-height: 28px;
    max-width: 500px;
  }

  .faq-search {
    flex-direction: row;
    align-items: center;
    max-width: 520px;
  }

  .faq-search-input {
    height: 58px;
    width: 400px;
    flex: 1;
    padding: 0 20px;
  }

  .faq-search-input input {
    font-size: 16px;
    line-height: 24px;
  }

  .faq-search-btn {
    width: auto;
    height: 58px;
    padding: 0 32px;
  }

  .faq-categories {
    padding: 24px 0 168px;
  }

  .faq-category {
    flex-direction: row;
    gap: 60px;
  }

  .faq-category-info {
    max-width: 600px;
    width: 100%;
  }

  .faq-category-info h2 {
    font-size: 36px;
    line-height: 48px;
  }

  .faq-category-info p {
    font-size: 18px;
    line-height: 28px;
  }

  .faq-list {
    flex: 1;
    min-width: 0;
  }

  .faq-question span:first-child {
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
  }
} 