/* Section FAQ — Safecheck RDC */

.faq-section {
  padding: 4.5rem 0;
  background: #f6f8f2;
}

.faq-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.faq-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.faq-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid rgba(153, 194, 33, 0.35);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item:has(.faq-button:not(.collapsed)) {
  border-color: var(--green-primary);
  box-shadow: 0 4px 16px rgba(153, 194, 33, 0.12);
}

.faq-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  background: var(--white);
  border: none;
  box-shadow: none;
}

.faq-button:not(.collapsed) {
  color: var(--green-dark);
  background: rgba(153, 194, 33, 0.08);
}

.faq-button::after {
  flex-shrink: 0;
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.75rem;
  color: var(--green-primary);
  transition: transform 0.25s ease;
}

.faq-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

.faq-button:focus {
  box-shadow: none;
  outline: 2px solid var(--green-primary);
  outline-offset: -2px;
}

.faq-button:focus:not(:focus-visible) {
  outline: none;
}

.faq-body {
  padding: 0 1.25rem 1.15rem;
}

.faq-body p {
  margin: 0;
  text-align: left;
}

.faq-body a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
}

.faq-body a:hover {
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .faq-header {
    margin-bottom: 1.75rem;
  }

  .faq-button {
    font-size: 0.92rem;
    line-height: 1.45;
    padding: 1rem 2.75rem 1rem 1rem;
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .faq-section {
    padding: 3rem 0;
  }

  .faq-button {
    font-size: 0.85rem;
    padding: 0.95rem 2.5rem 0.95rem 0.85rem;
  }

  .faq-body {
    font-size: 14px;
    line-height: 24px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .faq-section {
    padding: 3.5rem 0;
  }

  .faq-header {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .faq-accordion {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
}
