.related-container {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between related-post sections */
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .related-post {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px; /* Space between items */
    width: 100%;
  }
  
  /* Media query for screens wider than 1110px */
  @media (min-width: 1110px) {
    .related-post {
      grid-template-columns: repeat(4, minmax(250px, 1fr)); /* Show 4 columns on large screens */
    }
  }
  
  .related-post-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #f9f9f9; /* Light background for items */
    border: 1px solid #ddd; /* Subtle border for items */
    border-radius: 8px; /* Rounded corners */
    overflow: hidden; /* Clip content to fit the container */
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .related-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .related-post-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* Ensures square images */
    overflow: hidden; /* Prevents image overflow */
  }
  
  .related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures full image is visible */
    display: block;
  }
  
  .related-post-title {
    font-size: 1rem;
    font-weight: bold;
    color: #0c0c0c;
    padding: 5px;
  }

  