/* Learn hub (/learn/, /learn/history/) */
body.page-learn {
  padding-top: 60px;
}
@media (min-width: 992px) {
  body.page-learn {
    padding-top: 56px;
  }
}

.learn-page {
  padding: 1.25rem 0 2.5rem;
}

.learn-mixed-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  padding: 0.95rem 1.1rem;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}
.learn-mixed-strip-main {
  min-width: 0;
}
.learn-mixed-strip-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.learn-mixed-strip-meta {
  font-size: 0.78rem;
  color: var(--muted);
}
.learn-diff-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.learn-diff-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.12s, box-shadow 0.12s;
}
.learn-diff-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}
.learn-diff-chip--easy {
  background: rgba(34, 197, 94, 0.12);
  border-color: #22c55e;
  color: #16a34a;
}
.learn-diff-chip--medium {
  background: rgba(245, 158, 11, 0.12);
  border-color: #f59e0b;
  color: #b45309;
}
.learn-diff-chip--hard {
  background: rgba(239, 68, 68, 0.12);
  border-color: #ef4444;
  color: #dc2626;
}
[data-theme="dark"] .learn-diff-chip--easy { color: #4ade80; }
[data-theme="dark"] .learn-diff-chip--medium { color: #fbbf24; }
[data-theme="dark"] .learn-diff-chip--hard { color: #f87171; }

.learn-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}
.learn-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
}

.learn-subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.learn-subject-grid .home-subject-path-card {
  min-width: 0;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.learn-subject-desc {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 48rem;
  margin: 0 0 1.25rem;
}
