/* =============================================
   FAQ PAGE — css/qa.css
   2-Column Layout for Q&A section
   ============================================= */

/* ── FAQ SECTION ─────────────────────────── */
.faq-section {
  background: var(--color-white);
}

/* 2-Column Grid Layout for FAQ */
.faq-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: start;
}

/* Section Headings spanning full width */
.faq-category-title {
  grid-column: 1 / -1;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-dark);
  margin: 30px 0 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
}

.faq-category-title:first-child {
  margin-top: 0;
}

/* ── SINGLE FAQ ITEM ─────────────────────── */
.faq-item {
  border: 1px solid #e8e8e8;
  border-radius: var(--radius-sm, 6px);
  overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.25s;
  background: var(--color-white);
  height: fit-content;
}

.faq-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 18px rgba(165,198,21,0.13);
}

.faq-item.open {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(165,198,21,0.18);
}

/* Question button */
.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-dark);
  text-align: left;
  line-height: 1.45;
  transition: color 0.25s, background 0.25s;
}

.faq-q:hover { 
  color: var(--color-primary); 
}

.faq-item.open .faq-q {
  color: var(--color-primary);
  background: #f5fce8;
}

/* Plus/minus icon */
.faq-q-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-light);
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 11px;
  transition: transform 0.3s, background 0.25s, border-color 0.25s;
}

.faq-item.open .faq-q-icon {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: rotate(45deg);
}

/* Answer panel */
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease, padding 0.28s ease;
  padding: 0 22px;
}

.faq-item.open .faq-a {
  max-height: 1000px;
  padding: 0 22px 20px;
}

.faq-a p,
.faq-a ul,
.faq-a ol {
  font-size: 14.5px;
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: 10px;
}

.faq-a ul, .faq-a ol { 
  padding-left: 20px; 
}
.faq-a li { 
  margin-bottom: 5px; 
}
.faq-a strong { 
  color: var(--color-dark); 
}
.faq-a a { 
  color: var(--color-primary); 
  font-weight: 600; 
  text-decoration: none; 
}
.faq-a a:hover { 
  text-decoration: underline; 
}

/* ── CTA STRIP ───────────────────────────── */
.faq-cta-strip {
  background: var(--color-dark-bg);
  padding: 60px 0;
}

.faq-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.faq-cta-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm, 6px);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}

.btn-ghost-white:hover {
  background: #fff;
  color: var(--color-dark);
  border-color: #fff;
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 992px) {
  .faq-wrapper {
    grid-template-columns: 1fr; /* Switch to 1 column on smaller screens */
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .faq-q { font-size: 13.5px; padding: 15px 16px; }
  .faq-a { padding: 0 16px; }
  .faq-item.open .faq-a { padding: 0 16px 18px; }
  .faq-cta-inner { flex-direction: column; text-align: center; }
  .faq-cta-btns { flex-direction: column; width: 100%; }
  .faq-cta-btns .btn,
  .faq-cta-btns .btn-ghost-white { justify-content: center; }
}