/* ==========================================================================
   Canonical Knowledge Center & Learning Hub Stylesheet v3.0
   ========================================================================== */

.knowledge-section-wrapper {
  padding: 4.5rem 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

/* Featured Guide Banner */
.featured-guide-banner {
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--bg-primary) 100%);
  border: 2px solid var(--primary-500);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.featured-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.featured-guide-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.featured-guide-summary {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 820px;
  margin-bottom: 1.5rem;
}

/* Formula Library Grid */
.formula-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.formula-card-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.formula-equation-box {
  background: var(--gray-900);
  color: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 1rem 0;
  border-left: 4px solid var(--accent-teal-500);
}

/* Common Mistakes Section */
.mistakes-container {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 3.5rem;
}

.mistake-item-card {
  background: #ffffff;
  border: 1px solid #feb2b2;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

/* Learning Paths Stepper */
.learning-paths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.learning-path-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.learning-step-item {
  padding: 0.6rem 0.85rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Glossary Cloud */
.glossary-cloud-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.glossary-items-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.glossary-pill-item {
  padding: 0.75rem 1.25rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.glossary-pill-item:hover {
  border-color: var(--primary-500);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .knowledge-section-wrapper {
    padding: 3rem 0;
  }
  .featured-guide-banner {
    padding: 1.5rem;
  }
  .featured-guide-title {
    font-size: 1.4rem;
  }
}
