/* Blog Layout */
.main-container {
    max-width: 1200px;
    padding: 0 1rem;
 }
 
 .blog-filters {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
 }
 
 .blog-post {
    padding: 1.25rem 0;
    border-bottom: 1px solid #dee2e6;
 }
 
 .blog-post-grid {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 1.5rem;
    align-items: start;
 }
 
 /* Post Content */
 .blog-post--single {
    border-bottom: none;
 }
 
 .blog-post-content {
    min-width: 0;
 }
 
 .post-meta {
    color: #6c757d;
    font-size: 0.875rem;
 }
 
 .post-excerpt {
    margin: 0.75rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
 }
 
 /* Tags */
 .blog-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin-right: 0.375rem;
    margin-bottom: 0.375rem;
    background-color: #f8f9fa;
    border-radius: 16px;
    color: #495057;
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.2s;
 }
 
 .blog-tag:hover {
    background-color: #e9ecef;
 }
 
 .blog-tag.active {
    background-color: black;
    color: white;
 }
 
 /* Post Footer */
 .post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
 }
 
 .post-tags {
    flex: 1;
    min-width: 0;
 }
 
 .btn-read-more {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    color: var(--unu-blue);
    text-decoration: underline;
    white-space: nowrap;
 }

 .btn-read-more:hover {
    color: var(--unu-blue);
    text-decoration: underline;
 }
 
 /* Image Styles */
 .blog-post-image {
    width: 250px;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
 }
 
 .blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* Keep this for proper image scaling */
 }
 
 .placeholder-image {
    width: 100%;
    height: 100%;
    background-color: #ededed;  /* Slightly darker for placeholder only */
 }
 
 .post-header {
    margin-bottom: 2rem;
 }
 
 .post-feature-image {
    margin: 2rem 0;
    width: 100%;
    max-height: none;
    overflow: visible;
 }
 
 .post-feature-image img {
    width: 20%;
    height: auto;
    object-fit: contain;
    max-width: 800px;
    display: block;
    margin: 0 auto;
 }
 
 /* Mobile Adjustments */
 @media (max-width: 768px) {
    .blog-post-grid {
        grid-template-columns: 1fr;
    }
    
    /* Reorder the image and excerpt on mobile */
    .blog-post-content {
        order: 1;  /* Excerpt will appear after image */
    }
 
    .blog-post-image {
        width: 100%;
        height: 200px;
        order: 0;  /* Image will appear first */
    }
    
    .post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .btn-read-more {
        align-self: flex-end;
    }
    
    .blog-tag {
        padding: 0.2rem 0.5rem;
    }
 
    .post-feature-image {
        margin: 1rem 0;
    }
    
    .post-feature-image img {
        max-width: 100%;
    }
 }