/* ImageFitHub Blog Layout Dedicated Stylesheet */

.blog-nav {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.blog-nav a {
    text-decoration: none;
    color: #3b82f6;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    transition: background 0.2s ease;
}

.blog-nav a.nav-tag {
    background: #f1f5f9;
    color: #475569;
}

.blog-nav a.nav-tag:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.blog-directory-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

.section-title-bar {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-title-bar h2 {
    font-size: 20px;
    color: #1e293b;
    margin: 0;
}

.section-title-bar p {
    font-size: 13px;
    color: #64748b;
    margin: 4px 0 0 0;
}

/* Beautiful Blog Responsive Cards Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.blog-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

/* Dynamic Content Badges */
.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-badge.compliance { background: #fee2e2; color: #991b1b; }
.card-badge.verification { background: #e0f2fe; color: #0369a1; }
.card-badge.tool { background: #fef3c7; color: #92400e; }
.card-badge.ecommerce { background: #f3e8ff; color: #6b21a8; }
.card-badge.speed { background: #dcfce7; color: #166534; }
.card-badge.workflow { background: #e0e7ff; color: #3730a3; }

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-date {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.card-content h3 {
    font-size: 16px;
    line-height: 1.4;
    margin: 10px 0;
}

.card-content h3 a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-content h3 a:hover {
    color: #3b82f6;
}

.card-content p {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    margin-top: auto;
}

.read-time {
    font-size: 12px;
    color: #94a3b8;
}

.arrow-link {
    font-size: 12px;
    color: #3b82f6;
    font-weight: 600;
}

/* Mobile Friendly Optimization */
@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}