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

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

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

.blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

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

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.blog-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-tag.sponsored {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.blog-date {
    color: var(--gray-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--darker-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

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

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.read-more:hover {
    gap: 12px;
}

.blog-stats {
    display: flex;
    gap: 15px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all-container {
    text-align: center;
    margin-top: 20px;
}

/* Blog Detail Page */
.article-header {
    max-width: 800px;
    margin: 100px auto 40px;
    padding: 0 20px;
    text-align: center;
}

.article-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--darker-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.article-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--dark-color);
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--darker-color);
}

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

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

.article-content img,
.article-content .chart {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

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

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--gray-color);
}

.article-content code {
    background-color: var(--light-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

.article-content pre {
    background-color: var(--darker-color);
    color: white;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
}

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

/* Responsive Blog */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-card {
        margin: 0 10px;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 10px;
    }
}
