.blog {
  padding: 4rem 0;
  min-height: calc(100vh - 200px);
  background: #f8fafc;
}
.blog__header {
  text-align: center;
  margin-bottom: 4rem;
}
.blog__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}
.blog__subtitle {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}
.blog__grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .blog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .blog__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.blog__empty {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
}
.blog__empty h3 {
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.blog__empty p {
  color: #64748b;
}

.blog-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #0ea5e9;
}
.blog-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.blog-card__image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.blog-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card__image--placeholder i {
  font-size: 2.5rem;
  color: #38bdf8;
}
.blog-card__content {
  padding: 1.5rem;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0.75rem;
}
.blog-card__date {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.blog-card__date i {
  font-size: 0.75rem;
}
.blog-card__author {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.blog-card__author i {
  font-size: 0.75rem;
}
.blog-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.blog-card__title a {
  color: inherit;
  text-decoration: none;
}
.blog-card__title a:hover {
  color: #0ea5e9;
}
.blog-card__excerpt {
  color: #64748b;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.blog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.blog-card__tag {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}
.blog-card__tag:hover {
  background: #0ea5e9;
  color: #fff;
}
.blog-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #0ea5e9;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  margin-top: 1rem;
}
.blog-card__read-more i {
  transition: transform 0.15s ease;
}
.blog-card__read-more:hover i {
  transform: translateX(4px);
}

.blog-post {
  padding: 4rem 0;
  background: #fff;
}
.blog-post__header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #e2e8f0;
}
.blog-post__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.9375rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}
.blog-post__title {
  font-size: 2.75rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.blog-post__excerpt {
  font-size: 1.25rem;
  color: #64748b;
  line-height: 1.6;
}
.blog-post__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.blog-post__image {
  max-width: 900px;
  margin: 0 auto 3rem;
  border-radius: 1rem;
  overflow: hidden;
}
.blog-post__image img {
  width: 100%;
  height: auto;
}
.blog-post__content {
  max-width: 720px;
  margin: 0 auto;
  color: #334155;
  font-size: 1.125rem;
  line-height: 1.8;
}
.blog-post__content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin: 3rem 0 1.25rem;
}
.blog-post__content h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: #0f172a;
  margin: 2.5rem 0 1rem;
}
.blog-post__content p {
  margin-bottom: 1.5rem;
}
.blog-post__content a {
  color: #0ea5e9;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-post__content a:hover {
  color: #0284c7;
}
.blog-post__content ul, .blog-post__content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.blog-post__content ul li, .blog-post__content ol li {
  margin-bottom: 0.75rem;
}
.blog-post__content code {
  background: #f1f5f9;
  color: #e11d48;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: "JetBrains Mono", "Fira Code", monospace;
}
.blog-post__content pre {
  background: #1e293b;
  border-radius: 0.75rem;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}
.blog-post__content pre code {
  background: none;
  color: #e2e8f0;
  padding: 0;
  font-size: 0.9375rem;
}
.blog-post__content blockquote {
  border-left: 4px solid #0ea5e9;
  background: #f0f9ff;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
}
.blog-post__content blockquote p:last-child {
  margin-bottom: 0;
}
.blog-post__content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem 0;
}
.blog-post__footer {
  max-width: 720px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}
.blog-post__share {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.blog-post__share span {
  font-weight: 500;
  color: #0f172a;
}
.blog-post__share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: #f1f5f9;
  border-radius: 50%;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s ease;
}
.blog-post__share a:hover {
  background: #0ea5e9;
  color: #fff;
}
.blog-post__nav {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}
.blog-post__nav-prev, .blog-post__nav-next {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 45%;
}
.blog-post__nav-prev span, .blog-post__nav-next span {
  font-size: 0.875rem;
  color: #64748b;
}
.blog-post__nav-prev a, .blog-post__nav-next a {
  font-weight: 500;
  color: #0ea5e9;
  text-decoration: none;
}
.blog-post__nav-prev a:hover, .blog-post__nav-next a:hover {
  text-decoration: underline;
}
.blog-post__nav-next {
  text-align: right;
  margin-left: auto;
}
