/* //////////////////////////////////////////////////////////////////////////

   FAQ Section - AI4Less Theme

   ////////////////////////////////////////////////////////////////////////// */

.faq-section {
   margin: 0 auto 8vh auto;
   max-width: var(--wide-width);
   padding: 0 20px;
   box-sizing: border-box;
}

.faq-header {
   text-align: center;
   margin-bottom: 4vh;
}

.faq-title {
   font-size: var(--font-size-xl);
   font-weight: var(--font-weight-bold);
   color: var(--color-font-one);
   margin: 0;
}

.faq-content {
   max-width: 800px;
   margin: 0 auto;
}

.faq-item {
   margin-bottom: 1.5rem;
   border: 1px solid var(--color-border);
   border-radius: var(--radius);
   overflow: hidden;
   background: var(--color-body);
}

.faq-question {
   padding: 1.5rem;
   cursor: pointer;
   display: flex;
   justify-content: space-between;
   align-items: center;
   gap: 1rem;
   transition: background-color 0.3s ease;
   border-bottom: 1px solid transparent;
}

.faq-question:hover {
   background-color: var(--color-two);
}

.faq-question h3 {
   margin: 0;
   font-size: var(--font-size-m);
   font-weight: var(--font-weight-bold);
   color: var(--color-font-one);
   font-family: var(--font-family-two);
   flex: 1;
   min-width: 0;
   word-break: break-word;
}

.faq-toggle {
   font-size: 1.5rem;
   font-weight: 300;
   color: var(--color-one);
   transition: all 0.3s ease;
   user-select: none;
   flex-shrink: 0;
   line-height: 1;
   width: 32px;
   height: 32px;
   display: flex;
   align-items: center;
   justify-content: center;
   background: rgba(139, 92, 246, 0.1);
   border-radius: 50%;
   border: 1px solid rgba(139, 92, 246, 0.2);
}

.faq-question:hover .faq-toggle {
   background: rgba(139, 92, 246, 0.15);
   border-color: rgba(139, 92, 246, 0.3);
}

.faq-item.open .faq-toggle {
   background: rgba(139, 92, 246, 1);
   color: white;
   border-color: rgba(139, 92, 246, 1);
}

.faq-item.open .faq-question {
   border-bottom-color: var(--color-border);
}

.faq-answer {
   padding: 1.5rem;
   animation: fadeIn 0.3s ease-in-out;
   background: var(--color-body);
}

.faq-answer p {
   margin: 0;
   font-size: var(--font-size-s);
   line-height: 1.6;
   color: var(--color-font-one);
   font-family: var(--font-family-two);
   opacity: 0.8;
   word-break: break-word;
}

@keyframes fadeIn {
   from {
      opacity: 0;
      transform: translateY(-10px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

/* Mobile */
@media (max-width: 768px) {
   .faq-question {
      padding: 1rem;
   }

   .faq-question h3 {
      font-size: var(--font-size-s);
   }

   .faq-answer {
      padding: 1rem;
   }
}