/* Blog Page Styles */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.blog-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

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

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

.blog-content {
    padding: 30px;
}

.blog-category {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-excerpt {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.blog-date {
    color: #999;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-read-more {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-read-more:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    color: white;
}

/* Blog Filter Buttons */
.blog-filters {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 3rem;
    padding: 0 20px;
}

/* Type Filter Tabs */
.type-filter-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.type-tab {
    padding: 1rem 2rem;
    background: white;
    color: #2d3748;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.type-tab:hover {
    background: #f7fafc;
    border-color: #28b34b;
    color: #28b34b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 179, 75, 0.15);
}

.type-tab.active {
    background: #28b34b;
    color: white;
    border-color: #28b34b;
    box-shadow: 0 4px 15px rgba(40, 179, 75, 0.3);
}

.type-tab.active:hover {
    background: #1f8d3a;
    border-color: #1f8d3a;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(40, 179, 75, 0.4);
}

.type-tab i {
    font-size: 1rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.filter-btn {
    padding: 1rem 2.5rem;
    background: #28b34b;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-transform: capitalize;
    box-shadow: 0 4px 15px rgba(40, 179, 75, 0.3);
}

.filter-btn:hover {
    background: #1f8d3a;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(40, 179, 75, 0.4);
}

.filter-btn.active {
    background: #1f8d3a;
    color: white;
    box-shadow: 0 6px 25px rgba(40, 179, 75, 0.4);
}

.filter-btn.active:hover {
    background: #1f8d3a;
    color: white;
}

.blog-card {
    transition: all 0.3s ease;
}

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

.results-count {
    margin-top: 1rem;
    color: #718096;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .blog-image-wrapper {
        height: 200px;
    }
    
    .filter-buttons {
        gap: 0.75rem;
    }
    
    .filter-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .type-filter-tabs {
        gap: 0.5rem;
    }
    
    .type-tab {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .type-tab i {
        font-size: 0.875rem;
    }
}
