/* =========================================
   FAQ SECTION
========================================= */

.faq-section {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.faq-container {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 4rem;
  align-items: start;
}

.faq-header-content {
  position: sticky;
  top: 100px;
}

.faq-header-content .section-title {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

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

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--duration-base) var(--ease-smooth),
              background var(--duration-base) var(--ease-smooth);
}

.faq-item:hover {
  border-color: var(--primary-40);
  background: rgba(13, 19, 34, 0.95);
}

.faq-item.is-open {
  border-color: var(--color-blue-primary);
  background: var(--gradient-card);
  box-shadow: var(--shadow-glow-sm);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: var(--text-body-lg);
  font-family: var(--font-primary);
  font-weight: 600;
  transition: color var(--duration-base) var(--ease-smooth);
}

.faq-item.is-open .faq-question {
  color: var(--color-blue-light);
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-blue-primary);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              color var(--duration-base) var(--ease-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  color: var(--text-primary);
}

.faq-answer-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item.is-open .faq-answer-wrapper {
  grid-template-rows: 1fr;
}

.faq-answer {
  overflow: hidden;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: var(--text-body);
  line-height: 1.6;
}

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

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

.faq-answer-inner ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  list-style-type: none; /* We will use custom bullets */
}

.faq-answer-inner ul li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
}

.faq-answer-inner ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-blue-primary);
}

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

@media (max-width: 1024px) {
  .faq-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .faq-header-content {
    position: relative;
    top: 0;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
  }
  .faq-header-content .section-label {
    justify-content: center;
  }
  .faq-header-content .faq-actions {
    justify-content: center;
  }
}
