/* CSS cho phần Bài viết liên quan */
.related-posts-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee; /* Đường kẻ phân cách */
  }

  .posts-grid {
    display: grid;
    grid-template-columns: repeat(
      auto-fit,
      minmax(280px, 1fr)
    ); /* 3 cột trên màn hình lớn, tự động xuống hàng */
    gap: 25px; /* Khoảng cách giữa các cột */
    justify-content: center; /* Căn giữa các item khi số lượng ít */
    margin-bottom: 40px;
  }

  .post-item {
    background-color: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center; /* Căn giữa nội dung trong mỗi post item */
  }

  .post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }

  .post-item img {
    width: 100%;
    height: 200px; /* Chiều cao cố định cho hình ảnh */
    object-fit: cover; /* Đảm bảo hình ảnh được crop để lấp đầy không gian */
    display: block;
  }

  .post-item h3 {
    font-size: 1.2em;
    margin: 15px 15px 10px;
    line-height: 1.3;
  }

  .post-item h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .post-item h3 a:hover {
    color: var(--highlight-color);
    text-decoration: underline;
  }

  .post-item p {
    font-size: 0.95em;
    color: var(--secondary-color);
    padding: 0 15px 15px;
    margin-bottom: 0;
  }

  /* Responsive cho lưới bài viết */
  @media (max-width: 768px) {
    .posts-grid {
      grid-template-columns: 1fr; /* Chuyển thành 1 cột trên màn hình nhỏ */
    }
  }