/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, #2a3d15 100%);
    color: var(--white);
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 70px;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Category Filters */
.category-filters {
    padding: 20px 0 40px;
    text-align: center;
}

.category-btn {
    background: white;
    border: 2px solid #e9ecef;
    padding: 8px 20px;
    border-radius: 25px;
    margin: 5px;
    transition: all 0.3s;
    cursor: pointer;
    color: #333;
    font-weight: 500;
}

.category-btn.active,
.category-btn:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

/* Blog Posts Grid */
.blog-posts {
    padding: 80px 0;
    background: #f8f9fa;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
}

.blog-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.blog-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Background gradients for different categories */
.shopify-bg {
    background: linear-gradient(135deg, var(--primary-blue), #1a5f7a);
}

.odoo-bg {
    background: linear-gradient(135deg, var(--primary-green), #20c997);
}

.game-bg {
    background: linear-gradient(135deg, var(--primary-red), #ffa726);
}

.marketing-bg {
    background: linear-gradient(135deg, #9c27b0, #673ab7);
}

.story-bg {
    background: linear-gradient(135deg, #795548, #8d6e63);
}

.ecommerce-bg {
    background: linear-gradient(135deg, #2196f3, #03a9f4);
}

.automation-bg {
    background: linear-gradient(135deg, var(--primary-orange), #ffb74d);
}

.seo-bg {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    color: var(--primary-green);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-content h3 a:hover {
    color: var(--primary-orange);
}

.post-meta {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-meta i {
    color: var(--primary-green);
}

.blog-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.read-more:hover {
    color: var(--primary-orange);
    gap: 12px;
}

/* Newsletter Section */
.newsletter {
    background: var(--light-gray);
    padding: 60px 0;
}

.newsletter .form-control {
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 12px 15px;
}

.newsletter .btn-primary {
    border-radius: 0 8px 8px 0;
    padding: 12px 25px;
}

/* Blog Template Styles */
.blog-template {
    max-width: 800px;
    margin: 100px auto 60px;
    padding: 0 20px;
}

.blog-template-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-template-header h1 {
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-meta {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 2rem;
}

.blog-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-content h2 {
    color: var(--primary-green);
    margin: 2rem 0 1rem;
}

.blog-content h3 {
    color: var(--primary-orange);
    margin: 1.5rem 0 1rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
    color: #444;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.affiliate-section {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-orange);
    margin: 2rem 0;
}

.affiliate-link {
    display: inline-block;
    background: var(--primary-orange);
    color: var(--white);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
    margin-top: 1rem;
}

.affiliate-link:hover {
    background: #d97a23;
}

.back-to-blog {
    display: inline-block;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    margin-top: 3rem;
    transition: color 0.3s ease;
}

.back-to-blog:hover {
    color: var(--primary-orange);
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-card {
        margin-bottom: 25px;
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 100px 0 40px;
        margin-top: 60px;
    }
    
    .blog-header h1 {
        font-size: 2.2rem;
    }
    
    .blog-posts {
        padding: 60px 0;
    }
    
    .blog-template {
        margin: 80px auto 40px;
    }
    
    .blog-template-header h1 {
        font-size: 2rem;
    }
    
    .blog-card:hover {
        transform: translateY(-5px);
    }
    
    .category-filters {
        padding: 15px 0 30px;
    }
    
    .category-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .blog-header h1 {
        font-size: 1.8rem;
    }
    
    .blog-header p {
        font-size: 1rem;
    }
    
    .blog-template-header h1 {
        font-size: 1.8rem;
    }
    
    .blog-content {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-content {
        padding: 20px;
    }
}