/* Blog Categories */
.blog-categories {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid #eee;
}

.categories-wrapper {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e1e5e9;
    background: white;
    color: #666;
    border-radius: 25px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: #2c5530;
    color: white;
    border-color: #2c5530;
    transform: translateY(-2px);
}

/* Featured Article */
.featured-article {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5e8 100%);
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.featured-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.featured-content:hover .featured-img {
    transform: scale(1.02);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.featured-text {
    padding-left: 2rem;
}

.featured-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.featured-category {
    background: #2c5530;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 500;
}

.featured-date {
    color: #666;
}

.featured-title {
    color: #2c5530;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.featured-excerpt {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.featured-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    color: #2c5530;
    font-weight: 600;
    font-size: 0.95rem;
}

.author-title {
    color: #666;
    font-size: 0.85rem;
}

/* Blog Grid Section */
.blog-grid-section {
    padding: 6rem 0;
    background: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 85, 48, 0.1);
}

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

.blog-image {
    position: relative;
    overflow: hidden;
}

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

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

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-title {
    color: #2c5530;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

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

.blog-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.blog-author .author-name {
    color: #2c5530;
    font-weight: 500;
    font-size: 0.9rem;
}

.blog-link {
    color: #2c5530;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.blog-link:hover {
    color: #4a7c59;
    transform: translateX(5px);
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin-top: 4rem;
}

.load-more-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.newsletter-title {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.newsletter-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.7;
}

.newsletter-form-wrapper {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin-left: auto;
}

.newsletter-input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.newsletter-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-btn {
    background: white;
    color: #2c5530;
    border: none;
    padding: 1rem 1.5rem;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .categories-wrapper {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .category-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .featured-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .featured-text {
        padding-left: 0;
        order: 2;
    }

    .featured-image {
        order: 1;
    }

    .featured-title {
        font-size: 1.6rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .newsletter-form-wrapper {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .featured-img {
        height: 250px;
    }

    .featured-title {
        font-size: 1.4rem;
    }

    .blog-content {
        padding: 1.5rem;
    }

    .newsletter-form-wrapper {
        flex-direction: column;
        max-width: 100%;
    }

    .newsletter-btn {
        padding: 1rem;
    }
}

/* Blog filtering animation */
.blog-card {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

.blog-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Loading state */
.load-more-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.load-more-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #2c5530;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}