.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 0;
}

.topic-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition:
    border-color 0.2s,
    transform 0.15s;
  display: block;
}

.topic-card:hover {
  border-color: #667eea;
  transform: translateY(-2px);
}

.topic-card h3 {
  margin-top: 0;
  color: #6366f1;
  font-size: 1.25rem;
}

.topic-card p {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.tag-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  margin-top: 0.25rem;
}

.tag-frontend {
  background: #dbeafe;
  color: #1d4ed8;
}
.tag-backend {
  background: #d1fae5;
  color: #065f46;
}
.tag-concepts {
  background: #ede9fe;
  color: #5b21b6;
}

.hero {
  text-align: center;
  padding: 2rem 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  color: #111827;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: #6b7280;
}

.home-nav-extras {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.glossary-link {
  background: #eef2ff;
  color: #4338ca;
  border: 2px solid #c7d2fe;
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.glossary-link:hover {
  background: #c7d2fe;
}

.bigpicture-banner {
  max-width: 700px;
  margin: 3rem auto 1rem;
  text-align: center;
  padding: 2rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border: 2px solid #c7d2fe;
}

.bigpicture-banner h2 {
  margin: 0 0 0.5rem;
  color: #111827;
  font-size: 1.4rem;
}

.bigpicture-banner p {
  margin: 0 0 1.25rem;
  color: #6b7280;
}

.bigpicture-banner a {
  display: inline-block;
  background: #6366f1;
  color: white;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: 24px;
  transition: background 0.2s, transform 0.15s;
}

.bigpicture-banner a:hover {
  background: #4338ca;
  transform: translateY(-2px);
}
