/* Blog-Specific Styles */

.blog-hero {
    padding: 140px 0 60px;
    background: linear-gradient(180deg, #F8F9FA 0%, #FFFFFF 100%);
    text-align: center;
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.category-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

/* Featured Post */
.featured-post {
    padding: 40px 0 80px;
    background: white;
}

.featured-label {
    display: inline-block;
    padding: 6px 12px;
    background: var(--accent-color);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.featured-article {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 60px;
    box-shadow: var(--shadow-lg);
}

.featured-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin: 16px 0 20px;
    color: var(--text-primary);
}

.featured-excerpt {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.featured-image {
    position: relative;
}

.featured-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* Blog Posts Grid */
.blog-posts {
    padding: 60px 0 100px;
    background: white;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
}

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

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

.post-content {
    padding: 24px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.post-category {
    padding: 4px 10px;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.post-date,
.post-time {
    font-size: 13px;
    color: var(--text-light);
}

.post-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.post-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.read-time {
    font-size: 13px;
    color: var(--text-light);
}

.read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

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

/* Load More */
.load-more-section {
    text-align: center;
    margin-top: 60px;
}

/* Newsletter CTA */
.newsletter-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: white;
}

.newsletter-content h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
}

.newsletter-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 16px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

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

.newsletter-form .btn-primary {
    background: white;
    color: var(--primary-color);
    white-space: nowrap;
}

.newsletter-form .btn-primary:hover {
    background: var(--bg-secondary);
}

.newsletter-note {
    font-size: 14px;
    opacity: 0.8;
}

/* Active Nav Link */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-article {
        grid-template-columns: 1fr;
        padding: 40px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 100px 0 40px;
    }
    
    .blog-hero .hero-title {
        font-size: 36px;
    }
    
    .category-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .featured-article {
        padding: 32px 24px;
    }
    
    .featured-title {
        font-size: 28px;
    }
    
    .featured-excerpt {
        font-size: 16px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .featured-article {
        padding: 24px 20px;
    }
    
    .featured-title {
        font-size: 24px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .newsletter-content h2 {
        font-size: 32px;
    }
}