/* Blog Detail Page Styles */

/* Loading State */
.blog-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: #666;
}

.blog-loading .loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Error State */
.blog-error {
  text-align: center;
  padding: 60px 20px;
  max-width: 500px;
  margin: 0 auto;
}

.blog-error h2 {
  color: #333;
  margin-bottom: 16px;
}

.blog-error p {
  color: #666;
  margin-bottom: 24px;
}

.btn-back {
  display: inline-block;
  padding: 12px 24px;
  background: #7c3aed;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-back:hover {
  background: #6d28d9;
  color: white;
}

/* Blog Subtitle */
.blog-subtitle {
  font-size: 1.25rem;
  color: #666;
  margin-top: 16px;
  font-weight: 400;
  line-height: 1.6;
}

/* Tags Container */
.blog-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-tags-container .tag {
  background: #f3f4f6;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
}

/* Blog Content Styles */
#blog-content {
  max-width: 720px;
  margin: 0 auto;
}

#blog-content p {
  margin-bottom: 1.5em;
  line-height: 1.8;
  font-size: 1.0625rem;
  color: #333;
}

#blog-content h2 {
  margin-top: 2em;
  margin-bottom: 1em;
  font-size: 1.5rem;
  font-weight: 600;
}

#blog-content h3 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  font-size: 1.25rem;
  font-weight: 600;
}

#blog-content ul,
#blog-content ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

#blog-content li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

#blog-content blockquote {
  border-left: 4px solid #7c3aed;
  padding-left: 1.5em;
  margin: 1.5em 0;
  color: #555;
  font-style: italic;
}

/* In-post Image */
.blog-inpost-figure {
  margin: 2em 0;
  text-align: center;
}

.blog-inpost-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Featured Image */
.blog-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
}

/* Related Articles */
.related-articles-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 0 20px;
}

.related-articles-2 .blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.related-articles-2 .blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.related-articles-2 .image-18 {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.related-articles-2 .image-18-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.related-articles-2 .div-block-416 {
  padding: 16px;
}

.related-articles-2 .blog-summary-header {
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
}

.related-articles-2 .post-summary {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.5;
}

.related-articles-2 .flex-block-34 {
  padding: 12px 16px;
  border-top: 1px solid #f3f4f6;
  justify-content: space-between;
}

.related-articles-2 .author-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
}

.related-articles-2 .post-date {
  font-size: 0.8125rem;
  color: #999;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-subtitle {
    font-size: 1.125rem;
  }

  #blog-content p {
    font-size: 1rem;
  }

  .related-articles-2 {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .blog-image img {
    max-height: 300px;
  }
}

@media (max-width: 479px) {
  #blog-content {
    padding: 0 16px;
  }

  .blog-image img {
    max-height: 200px;
    border-radius: 8px;
  }

  .blog-inpost-image {
    border-radius: 8px;
  }

  .related-articles-2 .image-18 {
    height: 150px;
  }
}
