/* Blog Styles */

.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

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

.blog-hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
    color: #ffffff;
}

.blog-hero-content p {
    font-size: 1.4rem;
    opacity: 1;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.featured-article {
    padding: 80px 0;
    background: #f8f9fa;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.featured-image {
    position: relative;
}

.article-image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.featured-badge {
    background: #10b981;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 20px 0;
    line-height: 1.3;
}

.featured-text h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-text h2 a:hover {
    color: #667eea;
}

.featured-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

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

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-meta .author {
    font-weight: 600;
    color: #333;
}

.blog-grid {
    padding: 80px 0;
    background: white;
}

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

.blog-post {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

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

.post-image .article-image-placeholder {
    height: 100%;
    font-size: 2.5rem;
}

.post-content {
    padding: 25px;
}

.post-category {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    display: inline-block;
}

.post-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h3 a:hover {
    color: #667eea;
}

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

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-meta .author {
    font-weight: 600;
    color: #333;
}

.newsletter-signup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 60px;
}

.newsletter-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.newsletter-content p {
    font-size: 1.1rem;
    opacity: 1;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto 15px;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

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

.newsletter-form .btn {
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    background: white;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.newsletter-disclaimer {
    font-size: 0.9rem;
    opacity: 1;
    margin: 0;
    color: #ffffff;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.blog-categories {
    text-align: center;
}

.blog-categories h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

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

.category-tag {
    background: #f8f9fa;
    color: #333;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-tag:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

/* Blog Article Styles */
.blog-article {
    padding: 120px 0 80px;
    background: #f8f9fa;
}

.article-header {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 60px;
}

.article-category {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    display: inline-block;
}

.article-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.2;
}

.article-meta-large {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    font-size: 1rem;
    color: #666;
}

.article-meta-large span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 40px 0 20px 0;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 15px 0;
    color: #333;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 10px;
}

.article-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
    font-size: 1.2rem;
}

.article-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e11d48;
}

.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e9ecef;
}

.article-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.article-nav-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.article-nav-link.prev {
    flex-direction: row-reverse;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero-content h1 {
        font-size: 3rem;
        font-weight: 800;
        text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
        color: #ffffff;
    }
    
    .blog-hero-content p {
        font-size: 1.2rem;
        opacity: 1;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
        font-weight: 500;
        color: #ffffff;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .featured-text h2 {
        font-size: 1.8rem;
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
        max-width: 300px;
    }
    
    .category-tags {
        flex-direction: column;
        align-items: center;
    }
    
    .article-header h1 {
        font-size: 2.2rem;
    }
    
    .article-content {
        padding: 30px 20px;
        margin: 0 20px;
    }
    
    .article-meta-large {
        flex-direction: column;
        gap: 15px;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 120px 0 80px;
    }
    
    .blog-hero-content h1 {
        font-size: 2.5rem;
        font-weight: 800;
        text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
        color: #ffffff;
    }
    
    .blog-hero-content p {
        font-size: 1.1rem;
        opacity: 1;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
        font-weight: 500;
        color: #ffffff;
    }
    
    .featured-article,
    .blog-grid {
        padding: 60px 0;
    }
    
    .newsletter-signup {
        padding: 30px 20px;
    }
    
    .article-content {
        padding: 20px 15px;
        margin: 0 10px;
    }
}
