/* Blog Page Styles */

/* Blog Header */
.blog-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.blog-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.back-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    -webkit-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--text);
}

.blog-nav-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

/* Blog Hero */
.blog-hero {
    background: var(--light-grey);
    padding: 80px 0;
}

.blog-hero-content {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 2fr 64px 1fr;
    grid-template-columns: 2fr 1fr;
    gap: 64px;
    gap: var(--spacing-2xl);
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.blog-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.2;
}

.blog-hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 24px;
}

.blog-hero-image {
    text-align: center;
}

.blog-hero-image .hero-img {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(108, 174, 219, 0.2);
}

/* Blog Article */
.blog-article {
    background: var(--white);
    padding: 80px 0;
}

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

.blog-intro {
    font-size: 20px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.blog-content h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    margin: 48px 0 24px 0;
    line-height: 1.3;
}

.blog-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin: 32px 0 16px 0;
    line-height: 1.4;
}

.blog-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 24px 0 12px 0;
}

.blog-content p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 24px;
}

.blog-content ul,
.blog-content ol {
    margin: 24px 0;
    padding-left: 24px;
}

.blog-content li {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 8px;
}

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

/* Info Boxes */
.info-box {
    background: var(--accent);
    border-left: 4px solid var(--primary);
    padding: 24px;
    margin: 32px 0;
    border-radius: 8px;
}

.info-box h4 {
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.info-box p {
    color: var(--text);
    margin: 0;
    font-size: 16px;
}

/* Key Takeaway */
.key-takeaway {
    background: var(--primary);
    color: var(--white);
    padding: 32px;
    border-radius: 12px;
    margin: 48px 0;
    text-align: center;
}

.key-takeaway h3 {
    color: var(--white);
    font-size: 20px;
    margin: 0 0 16px 0;
}

.key-takeaway p {
    color: var(--white);
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
}

/* Author Info */
.author-info {
    background: var(--light-grey);
    padding: 32px;
    border-radius: 12px;
    margin: 64px 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 24px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.author-image {
    flex-shrink: 0;
}

.author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
}

.author-details h4 {
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.author-details p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0 0 4px 0;
    line-height: 1.5;
}

/* Related Articles */
.related-articles {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.related-articles h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 32px;
    text-align: center;
}

.related-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 32px 1fr;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.related-card {
    display: block;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.related-card:hover {
    -webkit-transform: translateY(-4px);
    -ms-transform: translateY(-4px);
    transform: translateY(-4px);
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-content {
    padding: 20px;
}

.related-content h4 {
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.related-content p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .blog-hero {
        padding: 60px 0;
    }
    
    .blog-hero-content {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .blog-hero-subtitle {
        font-size: 18px;
    }
    
    .blog-hero-image .hero-img {
        max-width: 350px;
        height: 250px;
    }
    
    .blog-article {
        padding: 60px 0;
    }
    
    .blog-content {
        padding: 0 24px;
    }
    
    .blog-content h2 {
        font-size: 24px;
    }
    
    .blog-content h3 {
        font-size: 20px;
    }
    
    .blog-content p,
    .blog-content li {
        font-size: 16px;
    }
    
    .author-info {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .related-grid {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .blog-nav {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .blog-hero-title {
        font-size: 1.8rem;
    }
    
    .blog-hero-subtitle {
        font-size: 16px;
    }
    
    .blog-hero-image .hero-img {
        max-width: 300px;
        height: 200px;
    }
    
    .blog-content {
        padding: 0 16px;
    }
    
    .info-box,
    .key-takeaway,
    .author-info {
        padding: 20px;
    }
    
    .related-content {
        padding: 16px;
    }
}