/* Blog-specific styles */

.blog-intro {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
}

.blog-intro p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

.blog-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin-top: 50px;
}

.blog-cta h2 {
    color: white;
    margin-bottom: 15px;
}

.blog-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.blog-cta .cta-button {
    background: white;
    color: var(--primary-color);
    padding: 14px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.blog-cta .cta-button:hover {
    background: var(--background-color);
    transform: translateY(-2px);
}

.footer-nav {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
    align-items: center;
}

.footer-nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.nav-separator {
    color: var(--text-secondary);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.blog-icon {
    font-size: 4rem;
    opacity: 0.9;
}

.blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-content h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content h2 a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.read-more:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* Individual Blog Post Styles */
.blog-post {
    max-width: 900px;
    margin: 0 auto;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.post-header h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 20px;
}

.post-content {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.post-content .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 35px;
    font-weight: 400;
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
}

.post-content h2 {
    color: var(--text-primary);
    font-size: 1.9rem;
    margin-top: 45px;
    margin-bottom: 20px;
    font-weight: 600;
}

.post-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 600;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.post-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.post-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-content a:hover {
    color: var(--primary-dark);
}

.post-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.back-link:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* Responsive Design for Blog */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    .post-content .lead {
        font-size: 1.1rem;
    }

    .post-content h2 {
        font-size: 1.6rem;
        margin-top: 35px;
    }

    .post-content h3 {
        font-size: 1.3rem;
        margin-top: 25px;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-nav {
        flex-direction: column;
        gap: 10px;
    }

    .main-nav a {
        text-align: center;
    }

    .post-header h1 {
        font-size: 1.7rem;
    }

    .blog-content h2 {
        font-size: 1.2rem;
    }
}
