/* Blog-specific styles */
.blog-hero {
    padding: 100px 0 60px;
    text-align: center;
}

.blog-content {
    padding: 60px 0;
    background: #f8fafc;
}

.blog-grid {
    display: grid;
    gap: 40px;
    margin-bottom: 80px;
}

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

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

.blog-post.featured .post-image {
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-post.featured .post-content {
    padding: 40px;
}

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

.blog-post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blog-post .post-content {
    padding: 30px;
}

.post-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post.featured .post-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
    line-height: 1.3;
}

.blog-post.featured .post-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.post-excerpt {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #718096;
}

.post-author {
    font-weight: 600;
}

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

.read-more:hover {
    color: #764ba2;
}

/* Newsletter Signup */
.newsletter-signup {
    background: white;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.newsletter-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
}

.newsletter-content p {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 32px;
}

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

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #667eea;
}

.newsletter-form button {
    padding: 16px 24px;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-posts {
        grid-template-columns: 1fr;
    }
    
    .blog-post.featured .post-content {
        padding: 30px 20px;
    }
    
    .blog-post.featured .post-title {
        font-size: 1.5rem;
    }
    
    .newsletter-signup {
        padding: 40px 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        align-self: center;
        width: fit-content;
    }
}

/* Active nav link for blog page */
.nav-link.active {
    color: #667eea;
    font-weight: 600;
}

/* Individual Blog Post Styles */
.blog-post-content {
    padding: 80px 0;
    background: #f8fafc;
}

.blog-post-full {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.post-header {
    padding: 60px 60px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.post-header .post-category {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-header .post-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.post-header .post-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 1rem;
    opacity: 0.9;
}

.blog-post-full .post-content {
    padding: 60px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #2d3748;
}

.blog-post-full .post-content h1,
.blog-post-full .post-content h2,
.blog-post-full .post-content h3 {
    color: #1a202c;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.blog-post-full .post-content h1 {
    font-size: 2.2rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 16px;
}

.blog-post-full .post-content h2 {
    font-size: 1.8rem;
    color: #667eea;
}

.blog-post-full .post-content h3 {
    font-size: 1.4rem;
    color: #4a5568;
}

.blog-post-full .post-content p {
    margin-bottom: 24px;
}

.blog-post-full .post-content ul,
.blog-post-full .post-content ol {
    margin-bottom: 24px;
    padding-left: 30px;
}

.blog-post-full .post-content li {
    margin-bottom: 8px;
}

.blog-post-full .post-content strong {
    font-weight: 700;
    color: #1a202c;
}

.blog-post-full .post-content em {
    font-style: italic;
    color: #4a5568;
}

.blog-post-full .post-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid #667eea;
    transition: all 0.3s ease;
}

.blog-post-full .post-content a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

.blog-post-full .post-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #4a5568;
}

.post-footer {
    padding: 40px 60px 60px;
    border-top: 1px solid #e2e8f0;
}

.back-to-blog {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.back-to-blog:hover {
    color: #764ba2;
}

.post-not-found {
    text-align: center;
    padding: 100px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.post-not-found h1 {
    font-size: 2.5rem;
    color: #1a202c;
    margin-bottom: 20px;
}

.post-not-found p {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 40px;
}

/* Responsive Design for Blog Posts */
@media (max-width: 768px) {
    .post-header {
        padding: 40px 30px 30px;
    }
    
    .post-header .post-title {
        font-size: 2rem;
    }
    
    .post-header .post-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .blog-post-full .post-content {
        padding: 40px 30px;
        font-size: 1rem;
    }
    
    .blog-post-full .post-content h1 {
        font-size: 1.8rem;
    }
    
    .blog-post-full .post-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-post-full .post-content h3 {
        font-size: 1.2rem;
    }
    
    .post-footer {
        padding: 30px;
    }
}
