{% set posts = blog_recent_posts('default', 5) %}

<style>
  .featured-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
  }

  .featured-post {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    color: white;
    height: 320px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  }

  .featured-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
    padding: 1.5rem;
  }

  .featured-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #00c48c;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 12px;
    color: white;
  }

  .post-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }

  .post-meta {
    font-size: 0.875rem;
    opacity: 0.85;
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }

  .author-image {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
  }

  @media (max-width: 768px) {
    .featured-blog-grid {
      padding: 1rem 0;
    }
    .featured-post {
      height: 280px;
    }
  }