/* =========================================
   SEO Sections (How it Works, Benefits, FAQ)
   ========================================= */

:root {
  --primary-color: var(--primary-500);
  --text-primary: var(--slate-900);
  --text-secondary: var(--slate-600);
  --bg-card: white;
  --bg-secondary: var(--slate-50);
  --border-color: var(--slate-200);
}

/* --- Common Section Styles --- */
.seo-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.seo-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.seo-section-desc {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 4rem auto;
  font-size: 1.125rem;
  line-height: 1.6;
}

/* --- How It Works Section --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

/* Connecting Line */
.steps-grid::before {
  content: "";
  position: absolute;
  top: 50px;
  left: 15%;
  right: 15%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--primary-200, #bae6fd) 50%,
    transparent 100%
  );
  z-index: 0;
  border-radius: 10px;
}

.step-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.step-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--primary-300, #7dd3fc);
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  background: linear-gradient(
    135deg,
    white 0%,
    var(--primary-50, #f0f9ff) 100%
  );
  color: var(--primary-600, #0284c7);
  border: 1px solid var(--primary-100, #e0f2fe);
  border-radius: 50%;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.1);
  transition: all 0.4s ease;
  position: relative;
}

.step-card:hover .step-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(
    135deg,
    var(--primary-500, #0ea5e9) 0%,
    var(--primary-600, #0284c7) 100%
  );
  color: white;
  border-color: transparent;
  box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
}

.step-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2px;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--slate-900, #0f172a);
  letter-spacing: -0.01em;
}

.step-text {
  color: var(--slate-500, #64748b);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Benefits Section --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.benefit-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 1rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  background: var(--bg-card);
  border-color: var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.benefit-icon {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  border-radius: 0.75rem;
}

.benefit-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  text-align: left;
}

.benefit-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- FAQ Section --- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--primary-color);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.faq-toggle {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  opacity: 0.6;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
  opacity: 1;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  max-height: 300px; /* Approximate max height */
}

/* --- Responsive Helpers --- */
@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid::before {
    display: none;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .seo-section {
    padding: 60px 0;
  }

  .seo-section h2 {
    font-size: 2rem;
  }
}
