/**
 * blog-card.css — shared blog card styles for runcyclingapparel.com
 * Used by: blog.html, category/*.html, author/*.html, tag/*.html
 *
 * Overrides hardcoded #FFAA47 / #0F2E44 inline styles emitted by build_site.py
 * (the script is shipped from the skill template and uses runfishapparel colors).
 */

.blog-grid-row,
.row.g-4 .blog-card {
    /* container layout handled by Bootstrap or page-level CSS */
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #eef1ee;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.blog-card-img-wrap {
    display: block;
    overflow: hidden;
    background: #f1f3f1;
}
.blog-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #e9ecef;
    transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-img { transform: scale(1.04); }

.blog-card-body {
    padding: 22px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Override the hardcoded #FFAA47 inline color from build_site.py render_card */
.blog-card-category,
.blog-card-category a,
.blog-card-category a[style] {
    color: #5BA862 !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    margin-bottom: 8px !important;
    display: inline-block;
}
.blog-card-category a[style]:hover {
    color: #7BC67E !important;
}

.blog-card-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 6px 0 10px;
    line-height: 1.4;
}
.blog-card-title a {
    color: inherit;
    text-decoration: none;
}
.blog-card-title a:hover {
    color: #2A4A30;
}

.blog-card-excerpt {
    font-size: 0.92rem;
    color: #6b6b6b;
    line-height: 1.65;
    margin-bottom: 14px;
    flex: 1;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.blog-card-tag {
    font-size: 0.7rem;
    color: #2A4A30;
    background: #F0FAF1;
    padding: 3px 10px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s;
}
.blog-card-tag:hover {
    background: #7BC67E;
    color: #fff;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.81rem;
    color: #999;
    margin-top: auto;
    flex-wrap: wrap;
}
.blog-card-meta i { margin-right: 4px; color: #7BC67E; }
.blog-card-meta a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}
.blog-card-meta a:hover { color: #2A4A30; }

.blog-card-read-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1A1A1A;
    text-decoration: none;
    transition: color 0.2s;
}
.blog-card-read-more:hover { color: #5BA862; }

@media (max-width: 575px) {
    .blog-card-img { height: 180px; }
    .blog-card-body { padding: 18px 20px 20px; }
}
