/* ===== BLOG CARD (shared) =====
   Used by blog.html (inline copy) and by the Related Posts widget on
   individual blog-*.html articles (related-posts.js). Keep in sync with the
   inline <style> block in blog.html if either changes. */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.blog-card-image {
    width: 100%;
    height: 220px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.blog-card-body {
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card.no-image .blog-card-body {
    border-top: 4px solid var(--primary);
    padding-top: 24px;
}

.blog-card-tag {
    display: inline-block;
    background: rgba(0, 182, 222, 0.08);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    width: fit-content;
}

.blog-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--secondary);
    transition: color 0.35s ease;
}

.blog-card:hover h3 {
    color: var(--primary);
}

.blog-card p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.7;
}

.blog-card-meta {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.blog-card-meta span + span::before {
    content: "•";
    margin: 0 8px;
}

@media (max-width: 768px) {
    .blog-grid {
        gap: 24px;
    }
}
