/* Blog Index Page Styles */
.blog-header {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 3rem;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.blog-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.blog-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0 1rem;
}

.category-filter {
    padding: 0.5rem 1.5rem;
    border: 2px solid #007bff;
    border-radius: 25px;
    color: #007bff;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.category-filter:hover,
.category-filter.active {
    background: #007bff;
    color: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    background-color: #f8f9fa;
    background-size: cover;
    background-position: center;
}

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

.blog-card-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.blog-card-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e9ecef;
    border-radius: 15px;
    color: #495057;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.blog-card h2 {
    margin: 0.5rem 0;
    font-size: 1.5rem;
    line-height: 1.3;
}

.blog-card h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card h2 a:hover {
    color: #007bff;
}

.blog-card p {
    color: #666;
    margin: 1rem 0;
    flex-grow: 1;
}

.blog-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}

.read-more:hover {
    color: #0056b3;
}

.read-more::after {
    content: "→";
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.read-more:hover::after {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .blog-header {
        padding: 2rem 1rem;
    }

    .blog-header h1 {
        font-size: 2rem;
    }
}
