/* Blog listing page enhancements */
        .blog-header {
            background: linear-gradient(135deg, rgba(85, 107, 47, 0.9) 0%, rgba(50, 205, 50, 0.7) 100%),
                url('../images/logo-dimajardin.png');
            background-size: cover, 120px;
            background-position: center, center;
            background-repeat: no-repeat, repeat;
            padding: 6rem 0 4rem;
            text-align: center;
            border-bottom: 4px solid var(--primary-color, #9ACD32);
        }

        .blog-header h1 {
            font-size: 2.8rem;
            font-weight: 800;
            color: white;
            margin-bottom: 0.75rem;
            text-shadow: 0 2px 8px rgba(0,0,0,0.3);
        }

        .blog-header p {
            font-size: 1.2rem;
            color: rgba(255,255,255,0.9);
            max-width: 650px;
            margin: 0 auto;
        }

        .blog-header .blog-count {
            display: inline-block;
            margin-top: 1.5rem;
            background: rgba(255,255,255,0.15);
            backdrop-filter: blur(10px);
            padding: 0.5rem 1.5rem;
            border-radius: 50px;
            color: white;
            font-size: 0.9rem;
            font-weight: 500;
        }

        .blog-listing {
            padding: 3rem 0 5rem;
            background: var(--light-color, #f9f9f9);
        }

        .blog-listing .blog-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
            gap: 1.75rem;
        }

        .blog-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 5px 20px rgba(0,0,0,0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        .blog-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.12);
        }

        .blog-imagen {
            position: relative;
            height: 200px;
            overflow: hidden;
            flex-shrink: 0;
        }

        .blog-imagen .blog-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }

        .blog-card:hover .blog-imagen .blog-image {
            transform: scale(1.05);
        }

        .blog-badge {
            position: absolute;
            top: 1rem;
            right: 1rem;
            padding: 4px 14px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.15);
            z-index: 2;
        }

        .blog-content {
            padding: 1.5rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .blog-meta {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
            flex-wrap: wrap;
        }

        .blog-categoria {
            background: var(--primary-color, #9ACD32);
            color: white;
            padding: 3px 12px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .blog-fecha {
            color: #999;
            font-size: 0.82rem;
        }

        .blog-titulo {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-color, #2B2B2B);
            margin-bottom: 0.5rem;
            line-height: 1.35;
        }

        .blog-resumen {
            font-size: 0.9rem;
            color: #666;
            line-height: 1.6;
            margin-bottom: 1rem;
            flex: 1;
        }

        .blog-stats {
            display: flex;
            gap: 1rem;
            font-size: 0.82rem;
            color: #888;
            margin-bottom: 1rem;
        }

        .blog-card .btn {
            align-self: flex-start;
            font-size: 0.85rem;
            padding: 0.6rem 1.25rem;
        }

        @media (max-width: 768px) {
            .blog-header { padding: 4rem 0 3rem; }
            .blog-header h1 { font-size: 1.8rem; }
            .blog-header p { font-size: 1rem; }
            .blog-listing .blog-grid { grid-template-columns: 1fr; gap: 1.25rem; }
        }

        @media (max-width: 400px) {
            .blog-listing { padding: 2rem 0; }
            .blog-imagen { height: 160px; }
        }
/* Dynamic Badge Styles */
.badge-style-1 { background:#FF6600; color:white; }
.badge-style-2 { background:#FF6600; }
.badge-style-3 { background:#2E7D32; color:white; }
.badge-style-4 { background:#2E7D32; }
.badge-style-5 { background:#CC3300; color:white; }
.badge-style-6 { background:#CC3300; }
.badge-style-7 { background:#1565C0; color:white; }
.badge-style-8 { background:#1565C0; }
.badge-style-9 { background:#556B2F; color:white; }
.badge-style-10 { background:#556B2F; }
.badge-style-11 { background:#FF8F00; color:white; }
.badge-style-12 { background:#FF8F00; }
.badge-style-13 { background:#6B8E23; color:white; }
.badge-style-14 { background:#6B8E23; }
.badge-style-15 { background:#455A64; color:white; }
.badge-style-16 { background:#455A64; }
.badge-style-17 { background:#D32F2F; color:white; }
.badge-style-18 { background:#D32F2F; }
.badge-style-19 { background:#32CD32; color:white; }
.badge-style-20 { background:#32CD32; }
.badge-style-21 { background:#009145; color:white; }
.badge-style-22 { background:#009145; }
.badge-style-23 { background:#E60000; color:white; }
.badge-style-24 { background:#E60000; }
.badge-style-25 { background:#9ACD32; color:white; }
.badge-style-26 { background:#9ACD32; }
.badge-style-27 { background: linear-gradient(135deg, #E65100, #FF8F00); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.badge-style-28 { background:#E65100; color:white; }
.badge-style-29 { background:#E65100; }
.badge-style-30 { background: linear-gradient(135deg, #FFD100, #E60004); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.badge-style-31 { background:#FFD100; color:#E60004; }
.badge-style-32 { background:#FFD100; color:#E60004 ; }
.badge-style-33 { background: linear-gradient(135deg, #0D3B23, #1A6B3C, #2ECC71); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.badge-style-34 { background:#1A6B3C; color:white; }
.badge-style-35 { background:#1A6B3C; }

/* Filter Buttons */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.filter-btn {
    background: white;
    border: 2px solid #E0E0E0;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color, #9ACD32);
    color: var(--primary-color, #9ACD32);
}

.filter-btn.active {
    background: var(--primary-color, #9ACD32);
    border-color: var(--primary-color, #9ACD32);
    color: white;
    box-shadow: 0 4px 10px rgba(154, 205, 50, 0.3);
}

/* Hide article animation */
.blog-card {
    transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.3s ease;
}

.blog-card.hidden-card {
    display: none;
}
