/* FAQ Styles */
.faq-list {
  margin-top: 2rem;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem;
  cursor: pointer;
  font-weight: 600;
  position: relative;
  outline: none;
  transition: background-color 0.3s ease;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item summary:hover,
.faq-item summary:focus {
  background-color: rgba(255, 255, 255, 0.1);
}

.faq-answer {
  padding: 0 1rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Template Preview Styles */
.template-preview {
  margin: 1.5rem 0;
}

.preview-text {
  padding: 1.5rem;
  margin-top: 0.5rem;
  position: relative;
  text-align: left;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
}

.preview-more {
  text-align: right;
  font-style: italic;
  margin-top: 1rem;
  color: var(--primary-color);
  font-weight: 500;
}

/* Template Item Styles */
.template-item {
  margin-bottom: 2rem;
  padding: 2rem;
}

.template-details h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.template-details p {
  margin-bottom: 1.5rem;
}

.template-features {
  list-style: inside;
  margin-bottom: 1.5rem;
}

.template-features li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
  list-style-type: none;
}

.template-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* FAQ Page Styles */
.faq-hero {
  padding: 6rem 0;
  background: var(--primary-mix);
  text-align: center;
}

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

.faq-hero h1 {
  font-size: 3rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.faq-hero p {
  font-size: 1.25rem;
  color: var(--text-light);
}

/* FAQ Grid Section */
.faq-grid {
  padding: 4rem 0;
  background: white;
}

.faq-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--card-border);
  border-radius: 2rem;
  background: white;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.faq-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.faq-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.faq-card:hover {
  transform: translateY(-5px);
}

.faq-content {
  padding: 1.5rem;
}

.faq-content h3 {
  font-size: 1.25rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.faq-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  padding: 4rem 0;
  background: var(--bg-light);
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.cta-content p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .faq-hero h1,
  .cta-content h2 {
    font-size: 2.5rem;
  }

  .faq-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 480px) {
  .faq-hero,
  .faq-grid,
  .cta-section {
    padding: 3rem 0;
  }

  .faq-hero h1,
  .cta-content h2 {
    font-size: 2rem;
  }

  .faq-filters {
    justify-content: center;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}
