/* ===== FAQ / Knowledge Hub ===== */
/* `.landing-page section` (a type+class selector) otherwise beats a lone
   class selector here and clamps this to 750px — match its specificity,
   same fix australia.css already applies to the other widened sections. */
.landing-page .landing-faq {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  background: #f7f9f8;
}

.landing-faq-inner {
  max-width: 1132px;
  margin: 0 auto;
  width: 100%;
}

/* ----- Tabs ----- */
.faq-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  border-bottom: 1px solid #e8ece9;
  margin: 40px 0 32px;
}

.faq-tab {
  position: relative;
  background: none;
  border: 1.25px solid transparent;
  cursor: pointer;
  font-family: Inter-Regular, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #71807a;
  padding: 9px 20px;
  margin-bottom: 14px;
  border-radius: 7.52px;
  transition: color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.faq-tab:hover {
  color: #1a1a1a;
}

.faq-tab.active {
  color: #000;
  font-weight: 600;
  border-color: #3cac62;
  background: #fff;
}

/* Short accent bar under the active tab, sitting between its border-box
   and the full-width divider line below the tab row. */
.faq-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  border-radius: 2px;
  background: #3cac62;
}

/* ----- Panels ----- */
.faq-panel {
  display: none;
  text-align: left;
}

.faq-panel.active {
  display: block;
  animation: faqFadeIn 0.3s ease;
}

@keyframes faqFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Accordion items ----- */
.faq-item {
  background: none;
  border: 1px solid #eef1ef;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq-item:hover {
  border-color: #dfe8e3;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.faq-item.open {
  border-color: #d7ecdf;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 20px 24px;
  font-family: Inter-Regular, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #1a1a1a;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Rotating the <img> itself is silently a no-op in some browsers for
     SVG-as-img replaced elements — rotate this wrapping span instead. */
  transition: transform 0.3s ease;
}

.faq-icon img {
  width: 100%;
  height: 100%;
}

/* The icon is a plain "+"; rotating it 45deg turns it into an "x". */
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 24px 22px;
}

.faq-answer-inner p {
  font-family: Inter-Regular, sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: #555555;
  margin: 0;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .faq-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 24px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .faq-tabs::-webkit-scrollbar {
    display: none;
  }

  .faq-tab {
    font-size: 14px;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 15px;
  }

  .faq-answer-inner {
    padding: 0 18px 18px;
  }
}

@media (max-width: 640px) {
  .faq-tabs {
    gap: 20px;
    margin: 24px 0 24px;
  }

  .faq-question span:first-child {
    font-size: 14.5px;
  }

  .faq-icon {
    width: 24px;
    height: 24px;
  }
}
