/* FAQ Section Styles */
.faq-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
}

.faq-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.4;
  pointer-events: none;
}

.faq-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.faq-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}

.faq-badge i {
  font-size: 1.1rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.faq-category {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(59,130,246,0.1);
}

.category-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(59,130,246,0.1);
}

.category-title i {
  font-size: 1.2rem;
  color: var(--secondary-color);
}

.faq-item {
  margin-bottom: 1rem;
}

.faq-card {
  background: rgba(248,250,252,0.5);
  border-radius: 12px;
  border: 1px solid rgba(59,130,246,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-card:hover {
  box-shadow: 0 8px 25px rgba(59,130,246,0.15);
  transform: translateY(-2px);
}

.faq-card[open] {
  box-shadow: 0 10px 30px rgba(59,130,246,0.2);
  border-color: var(--primary-color);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-color);
  font-size: 1.05rem;
  line-height: 1.4;
  transition: all 0.3s ease;
  list-style: none;
}

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

.faq-question:hover {
  color: var(--primary-color);
  background: rgba(59,130,246,0.05);
}

.faq-chevron {
  font-size: 0.9rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-card[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--gray-600);
  line-height: 1.6;
  font-size: 1rem;
  animation: fadeInDown 0.3s ease;
}

.faq-answer p {
  margin-bottom: 1rem;
}

.faq-stats {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(59,130,246,0.1);
}

.stat-item {
  text-align: center;
  flex: 1;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(59,130,246,0.05), rgba(147,197,253,0.05));
  border-radius: 8px;
  border: 1px solid rgba(59,130,246,0.1);
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-600);
  font-weight: 500;
}

.faq-cta {
  margin-top: 4rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,250,252,0.9));
  padding: 3rem 2rem;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(59,130,246,0.1);
}

.faq-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59,130,246,0.05) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

.faq-cta .cta-content {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
}

.faq-cta .cta-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.faq-cta .cta-content p {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 500px;
  margin: 0 auto;
}

.faq-cta .cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.faq-cta .cta-buttons .btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border: 2px solid transparent;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}

.faq-cta .cta-buttons .btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59,130,246,0.5);
}

.faq-cta .cta-buttons .btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(59,130,246,0.2);
}

.faq-cta .cta-buttons .btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59,130,246,0.4);
}

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

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 992px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .faq-section {
    padding: 3rem 0;
  }
  
  .faq-header .section-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .faq-category {
    padding: 1.5rem;
  }
  
  .faq-question {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }
  
  .faq-answer {
    padding: 0 1.25rem 1.25rem 1.25rem;
  }
  
  .faq-stats {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .faq-cta {
    padding: 2rem 1.5rem;
  }
  
  .faq-cta .cta-content h3 {
    font-size: 1.6rem;
  }
  
  .faq-header .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .category-title {
    font-size: 1.2rem;
  }
  
  .faq-question {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .faq-chevron {
    margin-left: 0;
    align-self: flex-end;
  }
  
  .faq-cta .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .faq-cta .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* RTL Support */
[dir="rtl"] .faq-question {
  text-align: right;
}

[dir="rtl"] .faq-chevron {
  margin-left: 0;
  margin-right: 1rem;
}

[dir="rtl"] .category-title {
  flex-direction: row-reverse;
}

[dir="rtl"] .faq-badge {
  flex-direction: row-reverse;
}
