/* ===== BLOG / STEAM INSIGHTS SECTION ===== */
.blog {
    background: #F7FAFC;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 48px;
}

/* ── Card base ── */
.blog-post {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(16,42,67,0.07);
    border: 1px solid #E4E4E7;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

/* Animated top accent bar */
.blog-post::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #102A43, #1E5AA8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    z-index: 2;
}

.blog-post:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(16,42,67,0.13);
    border-color: rgba(30,90,168,0.2);
}

.blog-post:hover::before { transform: scaleX(1); }

/* ── Image / header area ── */
.blog-img-wrap {
    height: 185px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.28) 100%);
    pointer-events: none;
}

.blog-img-icon {
    width: 68px;
    height: 68px;
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.45);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    backdrop-filter: blur(6px);
    position: relative;
    z-index: 1;
}

.blog-overlay-tag {
    position: absolute;
    bottom: 14px;
    left: 16px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 50px;
    padding: 4px 13px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    z-index: 1;
}

/* ── Content area ── */
.blog-content {
    padding: 22px 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #102A43;
    margin: 0 0 10px;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.blog-excerpt {
    font-size: 14px;
    color: #71717A;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 18px;
}

/* ── Card footer ── */
.blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #F4F4F5;
    padding-top: 14px;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.blog-meta span {
    font-size: 12px;
    color: #71717A;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-meta span i {
    color: #1E5AA8;
    font-size: 11px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1E5AA8;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    white-space: nowrap;
    transition: gap 0.2s ease, color 0.2s ease;
}

.blog-read-more:hover { gap: 10px; color: #102A43; }

.blog-read-more i {
    font-size: 11px;
    transition: transform 0.2s;
}

.blog-read-more:hover i { transform: translateX(3px); }

/* ── Section footer ── */
.blog-section-footer {
    text-align: center;
    margin-top: 44px;
    padding-top: 40px;
    border-top: 1px solid #E4E4E7;
}

.blog-section-footer p {
    font-size: 14px;
    color: #71717A;
    margin-bottom: 20px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; gap: 20px; }
    .blog-img-wrap { height: 160px; }
}

@media (max-width: 480px) {
    .blog-content { padding: 18px 20px 16px; }
    .blog-footer { flex-direction: column; align-items: flex-start; }
}
