/* Base styles for the section */
.faq-section {
  padding: 4rem 1.5rem;
  background-color: #18181b; /* Zinc 900 */
  color: #f4f4f5; /* Zinc 100 */
  font-family: system-ui, -apple-system, sans-serif;
}

.faq-container {
  max-width: 56rem; /* max-w-4xl */
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-header h2 {
  font-size: 1.875rem; /* text-3xl */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .faq-header h2 {
    font-size: 2.25rem; /* md:text-4xl */
  }
}

.faq-header p {
  color: #a1a1aa; /* Zinc 400 */
  font-size: 1.125rem;
}

/* FAQ Item Styles */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid #3f3f46; /* Zinc 700 */
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #27272a; /* Zinc 800 */
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  background-color: transparent;
  border: none;
  color: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: #3f3f46; /* Zinc 700 */
}

.faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

/* Smooth Accordion Animation using CSS Grid */
.faq-answer-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-in-out;
}

.faq-answer {
  overflow: hidden;
}

.faq-answer p {
  padding: 1.25rem;
  background-color: rgba(39, 39, 42, 0.5); /* Zinc 800 with opacity */
  color: #d4d4d8; /* Zinc 300 */
  line-height: 1.625;
  border-top: 1px solid #3f3f46; /* Zinc 700 */
  margin: 0;
}

/* Active State Styles */
.faq-item.active .faq-answer-wrapper {
  grid-template-rows: 1fr;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}