.posts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
article img {
    max-width: 100%;
    height: auto;
}


.post-card {
    background-color: var(post-card-color);
    border: 1px solid var(--hero-gradient-1);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: calc(33.333% - 20px); /* 3 posts per row with gap */
    box-sizing: border-box;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.post-card:hover {
    transform: scale(1.05); /* Expand the card on hover */
    border-color: var(--hero-gradient-2); /* Change border color on hover */
}

.post-card h2 {
    margin-top: 0;
}

.post-card .post-date {
    color: var(--subtext-color);
    font-size: 0.9em;
}

.post-card .post-excerpt {
    margin-bottom: 0;
}

/* Responsive styles */
@media (max-width: 975px) {
    .post-card {
        width: calc(50% - 20px); /* 2 posts per row on smaller screens */
    }
}

@media (max-width: 650px) {
    .post-card {
        width: 100%; /* 1 post per row on very small screens */
    }
    article h1.page-title {
      font-size: 1.5rem; /* Smaller font size for h1 */
    }
    article h2 {
      font-size: 1.3rem; /* Smaller font size for h2 */
    }
    article h3 {
      font-size: 1.1rem; /* Smaller font size for h3 */
    }
    article h4, article h5, article h6 {
      font-size: 0.9rem; /* Smaller font size for h4, h5, h6 */
    }
  
    /* Adjust paragraph font size */
    article p, article code {
      font-size: 0.8rem;
    }
    .page-container {
      padding: 20px 0;
    }
    article  table, 
    article table th, 
    article table td {
      font-size: 0.7rem;
    }
    article ul, 
    article ol, 
    article li {
      font-size: 0.8rem; /* Smaller font size for lists */
    }
}

/* Post meta (date and reading time) styling */
.post-meta {
    display: flex;
    align-items: center;
    margin: -1.2rem 0 2rem 0;
    font-size: 0.95rem;
    color: var(--subtext-color);
  }
  
  .post-date {
    font-weight: 500;
  }
  
  .post-meta-divider {
    margin: 0 0.6rem;
    color: var(--subtext-color);
  }
  
  .reading-time {
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  .reading-icon {
    display: inline-block;
    vertical-align: -0.125em;
    margin-right: 0.25rem;
    fill: var(--subtext-color);
  }

  .post-header {
    margin-bottom: 2rem;
  }
  
  /* Adjust top level heading margin when post-meta is present */
  .post-meta + h1,
  h1 + .post-meta {
    margin-bottom: 1rem;
  }

  /* Breadcrumbs styling */
.breadcrumbs {
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
  }
  
  .breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
  }
  
  .breadcrumbs li {
    display: inline-block;
  }
  
  .breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin: 0 0.5rem;
    color: var(--soft-text-color);
  }
  
  .breadcrumbs a {
    text-decoration: none;
  }
  
  
  .breadcrumbs li:last-child {
    color: var(--soft-text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100px;
  }