/* FAQ Section - Enhanced Design */

/* FAQ Section Container */
/* Section spacing handled by common.css */
.faq-section {
  background: linear-gradient(to bottom, var(--background-color) 0%, #F8FAFB 50%, var(--background-color) 100%);
  position: relative;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--muted-border-color) 50%, transparent);
}

/* Section Headers */
.faq-section header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.faq-section header p {
  color: var(--muted-color);
  font-size: 1.125rem;
  margin: 0;
}

/* FAQ Container */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

/* FAQ Details Styling */
.faq-section details {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.faq-section details:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.1);
}

.faq-section details[open] {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.1);
}

/* FAQ Summary (Question) */
.faq-section summary {
  padding: 1.5rem 2rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color);
  transition: all 0.2s ease;
  position: relative;
}

/* FAQ Question Text */
.faq-question-text {
  flex: 1;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  margin: 0;
  line-height: 1.5;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary:hover {
  color: var(--primary);
}

.faq-section details[open] summary {
  color: var(--primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* FAQ Toggle Icon */
.faq-section summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-section details[open] summary::after {
  transform: rotate(45deg);
}

/* FAQ Answer Content */
.faq-section details p {
  padding: 1.5rem 2rem;
  margin: 0;
  color: var(--muted-color);
  font-size: 1rem;
  line-height: 1.7;
  animation: fadeIn 0.3s ease;
}

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

/* FAQ Categories (if needed) */
.faq-categories {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.faq-category {
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid var(--muted-border-color);
  border-radius: 2rem;
  font-size: 0.875rem;
  color: var(--muted-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-category:hover,
.faq-category.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* FAQ Badge */
.faq-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: var(--primary-light, #DBEAFE);
  color: var(--primary);
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Group Styling */
.faq-group {
  margin-bottom: 2rem;
}

.faq-group-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color);
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--primary);
}

/* Enhanced Hover Effects */
.faq-section details {
  position: relative;
}

.faq-section details::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.3s ease;
  border-radius: 3px 0 0 3px;
}

.faq-section details[open]::before {
  background: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .faq-section {
    padding: 3rem 0;
  }
  
  .faq-section h2 {
    font-size: 2rem;
  }
  
  .faq-section summary {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
  }
  
  .faq-section details p {
    padding: 1.25rem 1.5rem;
  }
  
  .faq-categories {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }
}

/* Smooth Scrolling for FAQ Navigation */
.faq-section details {
  scroll-margin-top: 5rem;
}

/* Visual Separator */
.faq-separator {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--muted-border-color) 50%, transparent);
  margin: 3rem auto;
  width: 50%;
}