/* Blog Specific Styles */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #1a1f38 0%, #2a3a5c 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/network-bg.svg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
}

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Categories */
.blog-categories {
    padding: 60px 0;
    background: #f8fafc;
}

.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-btn {
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.category-btn:hover,
.category-btn.active {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

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

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

.blog-post {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.blog-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-post.featured {
    grid-column: span 2;
    display: flex;
    align-items: stretch;
}

.blog-post.featured .post-image {
    flex: 1;
    min-height: 300px;
}

.blog-post.featured .post-content {
    flex: 1;
    padding: 2rem;
}

.post-image {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-placeholder {
    color: rgba(255, 255, 255, 0.9);
    font-size: 3rem;
}

.post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #4f46e5;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.post-meta::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 50%;
}

.blog-post h2,
.blog-post h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-post.featured h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.blog-post h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.blog-post p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.post-author {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

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

.read-more:hover {
    color: #3730a3;
}

.load-more-container {
    text-align: center;
}

.load-more-btn {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
}

/* Newsletter Signup */
.newsletter-signup {
    background: linear-gradient(135deg, #1a1f38 0%, #2a3a5c 100%);
    padding: 80px 0;
    text-align: center;
}

.newsletter-content h2 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50px;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

.newsletter-form button {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.5rem;
    }
    
    .blog-hero p {
        font-size: 1.1rem;
    }
    
    .category-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .category-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-post.featured {
        grid-column: span 1;
        flex-direction: column;
    }
    
    .blog-post.featured .post-content {
        padding: 1.5rem;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .newsletter-form input {
        min-width: auto;
    }
    
    .newsletter-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 100px 0 60px;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-categories {
        padding: 40px 0;
    }
    
    .blog-posts {
        padding: 60px 0;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .post-content {
        padding: 1rem;
    }
    
    .newsletter-signup {
        padding: 60px 0;
    }
}

/* Blog Post Categories Color Coding */
.blog-post[data-category="sustainability"] .post-image {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.blog-post[data-category="technology"] .post-image {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.blog-post[data-category="industry"] .post-image {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.blog-post[data-category="success"] .post-image {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

/* Filter Animation */
.blog-post {
    transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

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