/* Blog Page Styles */

.blog-hero {
    background: linear-gradient(135deg, #2E7D32 0%, #43A047 100%);
}

.blog-categories {
    padding: 40px 0;
    background: #f8f9fa;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    color: #666;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #2E7D32;
    color: #2E7D32;
}

.filter-btn.active {
    background: #2E7D32;
    color: white;
    border-color: #2E7D32;
}

.featured-section {
    padding: 80px 0;
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.featured-image {
    height: 400px;
    overflow: hidden;
}

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

.featured-article:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-category {
    display: inline-block;
    background: #E8F5E9;
    color: #2E7D32;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.featured-content h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #999;
    font-size: 0.9rem;
}

.article-meta i {
    color: #2E7D32;
    margin-right: 5px;
}

.featured-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

.read-more-btn {
    display: inline-block;
    color: #2E7D32;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: #1B5E20;
}

.articles-section {
    padding: 80px 0;
    background: #f8f9fa;
}

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

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

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

.article-image {
    height: 200px;
    overflow: hidden;
}

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

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

.article-content {
    padding: 25px;
}

.article-content h3 {
    font-size: 1.3rem;
    color: #333;
    margin: 15px 0;
    line-height: 1.4;
}

.article-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: #2E7D32;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #1B5E20;
}

.load-more-container {
    text-align: center;
    margin-top: 50px;
}

.load-more-btn {
    padding: 15px 40px;
    background: #2E7D32;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #1B5E20;
    transform: translateY(-2px);
}

.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2E7D32 0%, #43A047 100%);
}

.newsletter-box {
    background: white;
    border-radius: 12px;
    padding: 50px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.newsletter-content h2 {
    color: #333;
    margin-bottom: 15px;
}

.newsletter-content p {
    color: #666;
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 15px 30px;
    background: #2E7D32;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #1B5E20;
}

.newsletter-note {
    font-size: 0.85rem;
    color: #999;
    margin-top: 15px;
}

.newsletter-image {
    text-align: center;
}

.newsletter-image i {
    font-size: 6rem;
    color: #2E7D32;
}

.popular-topics {
    padding: 80px 0;
}

.topics-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

.topic-tag {
    display: inline-block;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.topic-tag:hover {
    background: #2E7D32;
    color: white;
    border-color: #2E7D32;
    transform: translateY(-2px);
}

/* Hidden articles for filtering */
.blog-card.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-article {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        height: 300px;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-categories {
        position: static;
    }
    
    .category-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 20px;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
    
    .featured-content {
        padding: 25px;
    }
    
    .featured-content h3 {
        font-size: 1.5rem;
    }
    
    .newsletter-box {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    
    .newsletter-image {
        display: none;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .article-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .article-meta span {
        font-size: 0.8rem;
    }
}