.blog-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

a.blog-card:hover {
  border-color: #c4b5fd;
  box-shadow: 0 8px 32px rgba(124, 106, 239, 0.12);
  transform: translateY(-2px);
}

.blog-card-cover {
  height: 9rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 45%, #f8fafc 100%);
}

.blog-card-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6d5ce7;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
}

.blog-card-icon {
  font-size: 1.75rem;
  color: rgba(124, 106, 239, 0.55);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
}

.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.45;
}

a.blog-card:hover .blog-card-title {
  color: #6d5ce7;
}

.blog-card-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #9ca3af;
}

.blog-card-read {
  color: #7c6aef;
  font-weight: 600;
}

a.blog-card:hover .blog-card-read {
  text-decoration: underline;
}

.blog-card-soon {
  opacity: 0.82;
  border-style: dashed;
  background: #f9fafb;
  box-shadow: none;
}

.blog-card-soon .blog-card-cover {
  background: linear-gradient(135deg, #f3f4f6 0%, #f9fafb 100%);
}

.blog-card-soon .blog-card-tag {
  color: #9ca3af;
}

.blog-card-soon .blog-card-icon {
  color: #d1d5db;
}

.blog-card-soon .blog-card-title,
.blog-card-soon .blog-card-desc {
  color: #9ca3af;
}

.blog-card-soon .blog-card-meta {
  color: #d1d5db;
  border-top-color: #e5e7eb;
}

.blog-cta-bar {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.blog-cta-bar p {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.blog-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: #7c6aef;
  padding: 0.5rem 1rem;
  border-radius: 0.625rem;
  text-decoration: none;
  transition: background 0.15s;
}

.blog-cta-btn:hover {
  background: #6d5ce7;
}

.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fff;
  border-radius: 1.25rem;
  border: 1px dashed #e5e7eb;
  color: #9ca3af;
  font-size: 0.875rem;
}

.blog-article-hero {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .blog-article-hero {
    padding: 2rem 2rem;
  }
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s;
}

.blog-back-link:hover {
  color: #7c6aef;
}

.blog-article-meta-row {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.blog-article-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6d5ce7;
  background: #f5f3ff;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
}

.blog-article-read {
  font-size: 0.75rem;
  color: #9ca3af;
}

.blog-article-title {
  margin-top: 0.75rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.blog-article-intro {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.7;
}

.blog-article-dates {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.blog-article-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .blog-article-layout {
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }
}

.blog-toc {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid #e5e7eb;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

@media (min-width: 1024px) {
  .blog-toc {
    position: sticky;
    top: 5.5rem;
  }
}

.blog-toc-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-toc ol {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.blog-toc li + li {
  margin-top: 0.35rem;
}

.blog-toc a {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s;
}

.blog-toc a:hover {
  color: #7c6aef;
}

.blog-prose-panel {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
  .blog-prose-panel {
    padding: 2rem;
  }
}

.blog-article-faq h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1rem;
}

.blog-next-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .blog-next-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-next-card {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1rem;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.blog-next-card:hover {
  border-color: #c4b5fd;
  box-shadow: 0 4px 20px rgba(124, 106, 239, 0.08);
}

.blog-next-card .label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #7c6aef;
}

.blog-next-card .title {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
}
