/* ==========================================================
   FAQs
   ========================================================== */

.faqs-section {
  background: #ffffff;
  padding: clamp(28px, 6vw, 64px) 0;
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.faqs-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.faqs-header {
  text-align: center;
  margin-bottom: clamp(18px, 4vw, 32px);
}

.faqs-title {
  font-weight: 900;
  color: #111827;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.1;
  margin: 0;
}

.faqs-sub {
  color: #4b5563;
  font-weight: 700;
  margin: 6px 0 0;
  font-size: clamp(14px, 2.6vw, 18px);
}

.faqs-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(18px, 3.6vw, 36px);
  align-items: start;
}

.faqs-left {
  color: #111827;
}

.faqs-tiles {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 14px;
  align-items: center;
}

.tile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-width: 52px;
  height: 52px;
  min-height: 52px;
  border-radius: 50%;
  border: 3px solid transparent;
  background: #f3f0ff;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  filter: grayscale(100%) opacity(0.5);
  flex-shrink: 0;
  flex-grow: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.tile-avatar svg {
  display: block;
  width: 46px;
  height: 46px;
}

.tile-avatar.active {
  width: 64px;
  min-width: 64px;
  height: 64px;
  min-height: 64px;
  border: 3px solid #6a4fe8;
  filter: none;
  box-shadow: 0 4px 14px rgba(106, 79, 232, 0.3);
}

.tile-avatar.active svg {
  width: 58px;
  height: 58px;
}

.tile-avatar:hover:not(.active) {
  filter: grayscale(50%) opacity(0.7);
}

/* Testimonial carousel slides */
.testimonial-carousel {
  position: relative;
  min-height: 120px;
}

.testimonial-slide {
  display: none !important;
  animation: fadeSlide 0.4s ease;
}

.testimonial-slide.active {
  display: block !important;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faqs-quote {
  font-size: 15px;
  line-height: 1.7;
  color: #1f2937;
  margin: 8px 0 10px;
  max-width: 38ch;
}

.faqs-author {
  color: #6a4fe8;
  font-weight: 800;
  margin: 0 0 10px;
}

.faqs-stars {
  display: flex;
  gap: 6px;
  color: #f2a173;
  margin-top: 8px;
}

.faqs-stars svg {
  width: 22px;
  height: 22px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #f5f4f6;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.faq-q .q-text {
  flex: 1;
  font-weight: 800;
  color: #6a4fe8;
  font-size: 20px;
}

.faq-q .q-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6a4fe8;
  box-shadow: inset 0 0 0 2px rgba(106, 79, 232, 0.35);
  background: #ffffff;
}

.faq-q .q-icon svg {
  width: 16px;
  height: 16px;
  transition: transform 0.18s ease;
}

.faq-item[aria-expanded="true"] .q-icon svg {
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 18px 16px 18px;
  color: #374151;
  display: none;
}

.faq-item[aria-expanded="true"] .faq-a {
  display: block;
}

.faq-a p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  .faqs-grid {
    grid-template-columns: 1fr;
  }

  .faqs-quote {
    max-width: 60ch;
  }
}
