/* FYOOL FAQs page */

.fy-faq-page {
  background: #fff;
}

.fy-faq-page-inner {
  /* 1280 + 40px padding = the same 1200px content column as the other pages. */
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

.fy-faq-page-header {
  margin-bottom: 48px;
}

.fy-faq-page-header .fy-blog-breadcrumb {
  margin-bottom: 20px;
}

/* Whole categories laid out across two columns (each category stays intact in
   a single column). Collapses to one column on mobile. */
.fy-faq-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 48px;
  align-items: start;
}

.fy-faq-page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--text);
}

.fy-faq-page-empty {
  font-size: 16px;
  color: var(--muted);
}

.fy-faq-section + .fy-faq-section {
  margin-top: 56px;
}

.fy-faq-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text);
  margin: 0 0 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.fy-faq-list {
  display: flex;
  flex-direction: column;
}

.fy-faq-item {
  border-bottom: 1px solid var(--border);
}

.fy-faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  gap: 16px;
  cursor: pointer;
  transition: color 0.2s;
}

.fy-faq-q:hover {
  color: var(--blue);
}

.fy-faq-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.fy-faq-icon span {
  display: none;
}

/* Plus/minus drawn as two bars so the "open" state is a minus, not an ×. */
.fy-faq-icon::before,
.fy-faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 1px;
  background: var(--muted);
  transition: transform 0.25s, background 0.25s;
}

.fy-faq-icon::before {
  width: 10px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.fy-faq-icon::after {
  width: 2px;
  height: 10px;
  transform: translate(-50%, -50%);
}

.fy-faq-item.open .fy-faq-icon {
  background: var(--blue);
  border-color: var(--blue);
}

.fy-faq-item.open .fy-faq-icon::before,
.fy-faq-item.open .fy-faq-icon::after {
  background: #fff;
}

.fy-faq-item.open .fy-faq-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.fy-faq-a {
  display: none;
  padding: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.fy-faq-a p {
  margin: 0 0 12px;
}

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

.fy-faq-item.open .fy-faq-a {
  display: block;
}

@media (max-width: 768px) {
  .fy-faq-page-inner {
    padding: 32px 24px 64px;
  }

  .fy-faq-page-title {
    font-size: 36px;
  }

  .fy-faq-section-title {
    font-size: 24px;
  }

  .fy-faq-q {
    font-size: 14px;
  }

  .fy-faq-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .fy-faq-page-inner {
    padding: 28px 20px 56px;
  }
}
