/* === FAQ Page Styles === */

.faq-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.faq-section {
  margin-bottom: 2.5rem;
}

.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-item[open] {
  border-color: var(--primary-light);
  box-shadow: 0 2px 12px rgba(46, 125, 50, 0.08);
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
  -webkit-user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '\2212'; /* minus sign */
}

.faq-item summary:hover {
  color: var(--primary-dark);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
}

.faq-answer p,
.faq-answer li {
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-answer p {
  margin-bottom: 0.75rem;
}

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

.faq-answer ul,
.faq-answer ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.faq-answer ul {
  list-style: disc;
}

.faq-answer ol {
  list-style: decimal;
}

.faq-answer li {
  margin-bottom: 0.35rem;
}

.faq-still-stuck {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.04), rgba(46, 125, 50, 0.08));
  border-radius: 12px;
  text-align: center;
}

.faq-still-stuck h2 {
  border-bottom: none;
  margin-top: 0;
  color: var(--primary-dark);
}

.faq-still-stuck p {
  margin-bottom: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Comparison table */
.faq-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.75rem 0;
}

.faq-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 700px;
}

.faq-compare th,
.faq-compare td {
  padding: 0.55rem 0.7rem;
  border: 1px solid #e0e0e0;
  text-align: left;
  vertical-align: top;
}

.faq-compare th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.faq-compare th:first-child {
  background: #f5f5f5;
  color: var(--text);
}

.faq-compare th a {
  color: #fff;
  text-decoration: underline;
}

.faq-compare td:first-child {
  font-weight: 600;
  white-space: nowrap;
  background: #fafafa;
}

.faq-compare tbody tr:hover {
  background: rgba(46, 125, 50, 0.03);
}

/* Responsive */
@media (max-width: 600px) {
  .faq-item summary {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 1rem 1rem;
  }

  .faq-still-stuck {
    padding: 1.5rem;
  }

  .faq-compare {
    font-size: 0.82rem;
  }

  .faq-compare th,
  .faq-compare td {
    padding: 0.45rem 0.55rem;
  }
}
