.blog-detail {
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px);
  padding-bottom: 40px;
  background-color: #f9f9f9;
  min-height: 100vh;
}

.blog-detail__post {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .blog-detail__post {
    padding: 15px;
  }
}

.blog-detail__header {
  margin-bottom: 25px;
  text-align: center;
}

.blog-detail__title {
  font-size: 32px;
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .blog-detail__title {
    font-size: 26px;
    margin-bottom: 10px;
  }
}

.blog-detail__meta {
  font-size: 14px;
  color: #7f8c8d;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.blog-detail__date {
  white-space: nowrap;
}

.blog-detail__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.blog-detail__keywords-label {
  font-weight: bold;
  color: #555;
}

.blog-detail__keyword {
  background-color: #e0e0e0;
  color: #555;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
}

.blog-detail__figure {
  margin: 0 0 30px 0;
  text-align: center;
}

.blog-detail__cover {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .blog-detail__cover {
    max-height: 250px;
    border-radius: 6px;
  }
}

.blog-detail__figcaption {
  font-size: 13px;
  color: #999;
  margin-top: 10px;
  text-align: center;
}

.blog-detail__content {
  font-size: 17px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .blog-detail__content {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
  }
}

.blog-detail__content h2 {
  font-size: 28px;
  color: #2c3e50;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.3;
}

.blog-detail__content h3 {
  font-size: 22px;
  color: #2c3e50;
  margin-top: 25px;
  margin-bottom: 12px;
  font-weight: bold;
  line-height: 1.4;
}

.blog-detail__content p {
  margin-bottom: 20px;
}

.blog-detail__content ul,
.blog-detail__content ol {
  margin-bottom: 20px;
  padding-left: 25px;
}

.blog-detail__content li {
  margin-bottom: 8px;
}

.blog-detail__content a {
  color: #007bff;
  text-decoration: none;
}

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

.blog-detail__content strong {
  font-weight: bold;
}

.blog-detail__content em {
  font-style: italic;
}

@media (max-width: 768px) {
  .blog-detail__content h2 {
    font-size: 24px;
    margin-top: 25px;
    margin-bottom: 12px;
  }
  .blog-detail__content h3 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  .blog-detail__content p {
    margin-bottom: 15px;
  }
}

.blog-detail__related-posts {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.blog-detail__related-posts-title {
  font-size: 24px;
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
}

@media (max-width: 768px) {
  .blog-detail__related-posts-title {
    font-size: 20px;
    margin-bottom: 15px;
  }
}

.blog-detail__related-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.blog-detail__related-post-item {
  background-color: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-detail__related-post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-detail__related-post-link {
  display: block;
  padding: 15px;
  color: #2c3e50;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

.blog-detail__related-post-link:hover {
  color: #007bff;
}