/* FAQ Section Styling */
.faq-section,
.category-faqs-section {
  margin: 40px 0;
  padding: 30px 0;
  border-top: 1px solid #e0e0e0;
}

.faqs-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #333;
}

.faq-item {
  border-bottom: 1px solid #eee;
  margin-bottom: 0;
  transition: all 0.3s ease;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  transition: all 0.3s ease;
  user-select: none;
}

.faq-question:hover {
  color: #007bff;
}

.faq-question h3,
.faq-question h5 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  flex: 1;
  padding-right: 15px;
  color: #333;
  transition: color 0.3s ease;
}

.faq-question:hover h3,
.faq-question:hover h5 {
  color: #007bff;
}

.faq-toggle {
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.faq-toggle i {
  font-size: 14px;
  color: #666;
  transition: transform 0.3s ease;
}

.faq-item:hover .faq-toggle {
  background: #007bff;
}

.faq-item:hover .faq-toggle i {
  color: #fff;
}

.faq-item.active .faq-toggle {
  background: #007bff;
}

.faq-item.active .faq-toggle i {
  transform: rotate(45deg);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding-bottom: 20px;
}

.answer-content {
  padding-right: 40px;
  color: #666;
  line-height: 1.6;
}

.answer-content p {
  margin-bottom: 10px;
}

.answer-content ul,
.answer-content ol {
  margin: 10px 0;
  padding-left: 25px;
}

.answer-content li {
  margin-bottom: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .faq-section,
  .category-faqs-section {
    margin: 20px 0;
    padding: 20px 0;
  }
  
  .faqs-title {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .faq-question h3,
  .faq-question h5 {
    font-size: 15px;
  }
  
  .answer-content {
    padding-right: 0;
    font-size: 14px;
  }
}

/* Category FAQ specific styling */
.category-faqs-section {
  background: #fafafa;
  padding: 30px 20px;
  border-radius: 8px;
  margin-top: 30px;
}

/* Product page FAQ styling (in accordion section) */
.accordion-section .faq-section {
  border-top: none;
  padding: 0;
  margin: 0;
}
