:root {
    --primary-color: #e44d26;
    --secondary-color: #3498db;
    --text-color-dark: #2c3e50;
    --text-color-light: #333;
    --meta-color: #7f8c8d;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --border-color: #e0e0e0;
    --header-offset: 120px;
  }

  .blog-detail {
    background-color: var(--background-color);
    min-height: 100vh;
    padding-bottom: 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  .blog-detail__post {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 30px;
    padding-top: var(--header-offset, 120px);
    position: relative;
    z-index: 1;
  }

  @media (max-width: 900px) {
    .blog-detail__post {
      margin: 0 15px;
      padding: 20px;
    }
  }

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

  .blog-detail__title {
    font-size: 38px;
    color: var(--text-color-dark);
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
  }

  @media (max-width: 768px) {
    .blog-detail__title {
      font-size: 30px;
    }
  }

  @media (max-width: 480px) {
    .blog-detail__title {
      font-size: 26px;
    }
  }

  .blog-detail__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: var(--meta-color);
    margin-bottom: 20px;
  }

  .blog-detail__published-label {
    margin-right: 5px;
  }

  .blog-detail__date {
    margin-right: 15px;
    white-space: nowrap;
  }

  .blog-detail__keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
  }

  @media (max-width: 480px) {
    .blog-detail__meta {
      flex-direction: column;
      align-items: flex-start;
    }
    .blog-detail__date {
      margin-right: 0;
      margin-bottom: 8px;
    }
    .blog-detail__keywords {
      justify-content: flex-start;
    }
  }

  .blog-detail__keyword {
    background-color: #ecf0f1;
    color: #34495e;
    padding: 5px 10px;
    border-radius: 5px;
    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-bottom: 10px;
  }

  .blog-detail__figcaption {
    font-size: 14px;
    color: var(--meta-color);
    text-align: center;
    margin-top: 10px;
  }

  .blog-detail__content {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-color-light);
  }

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

  .blog-detail__content h2 {
    font-size: 28px;
    color: var(--text-color-dark);
    margin-top: 35px;
    margin-bottom: 18px;
    font-weight: bold;
    line-height: 1.3;
  }

  .blog-detail__content h3 {
    font-size: 24px;
    color: var(--text-color-dark);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
  }

  .blog-detail__content h4 {
    font-size: 20px;
    color: var(--text-color-dark);
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: bold;
    line-height: 1.3;
  }

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

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

  .blog-detail__content a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .blog-detail__content a:hover {
    text-decoration: underline;
    color: var(--primary-color);
  }

  .blog-detail__content strong {
    font-weight: bold;
    color: var(--text-color-dark);
  }

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