/* Recent Posts Section */
.recent-posts {
    padding: 3rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--hugo-dark, #222);
    margin: 0;
}

.view-all {
    color: var(--hugo-secondary, #0594CB);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: var(--hugo-primary, #FF4088);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-card-content {
    padding: 1.5rem;
}

.post-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.post-category {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--hugo-secondary, #0594CB);
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    background: rgba(5, 148, 203, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.post-category:hover {
    background: var(--hugo-secondary, #0594CB);
    color: #fff;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.post-title a {
    color: var(--hugo-dark, #222);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--hugo-primary, #FF4088);
}

.post-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.meta-separator {
    margin: 0 0.5rem;
}

.post-excerpt {
    font-size: 0.9375rem;
    color: #444;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .recent-posts {
        padding: 2rem 1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
}