/* Blog-specific styles */

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 150px 0 80px;
    text-align: center;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.blog-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Articles Grid */
.blog-articles {
    padding: 80px 0;
    background-color: #f7fafc;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-meta {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-category {
    background-color: #3182ce;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-date {
    color: #718096;
}

.article-card h2 {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.article-card h2 a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card h2 a:hover {
    color: #3182ce;
}

.article-card p {
    padding: 0 1.5rem;
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-footer {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.read-time {
    color: #a0aec0;
}

.read-more {
    color: #3182ce;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2c5aa0;
}

/* Individual Article Page */
.article {
    padding: 100px 0;
    background-color: white;
}

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

.article-header .article-meta {
    justify-content: center;
    gap: 1rem;
    padding: 0;
    margin-bottom: 1.5rem;
}

.article-header h1 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-subtitle {
    font-size: 1.2rem;
    color: #718096;
    font-style: italic;
    margin: 0;
}

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

.article-content h2 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.4rem;
    color: #2d3748;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h4 {
    font-size: 1.2rem;
    color: #2d3748;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #4a5568;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: #4a5568;
    line-height: 1.6;
}

.article-content li strong {
    color: #2d3748;
}

.article-content blockquote {
    border-left: 4px solid #3182ce;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #718096;
    background-color: #f7fafc;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.article-footer {
    max-width: 800px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.article-tags {
    margin-bottom: 2rem;
}

.tag {
    display: inline-block;
    background-color: #e2e8f0;
    color: #4a5568;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.article-share span {
    font-weight: 500;
    color: #2d3748;
}

.share-link {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.share-link:hover {
    color: #2c5aa0;
}

/* Related Articles */
.related-articles {
    max-width: 800px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.related-articles h3 {
    margin-bottom: 2rem;
    color: #2d3748;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.related-card:hover {
    background-color: #edf2f7;
}

.related-card h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.related-card p {
    color: #718096;
    margin: 0;
    font-size: 0.9rem;
}

/* Read Time Indicator */
.read-time {
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Responsive Design for Blog */
@media (max-width: 768px) {
    .blog-header {
        padding: 120px 0 60px;
    }

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

    .blog-articles {
        padding: 60px 0;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article {
        padding: 80px 0;
    }

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

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.3rem;
    }

    .article-content p {
        font-size: 1rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .article-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-footer {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .blog-header h1 {
        font-size: 1.8rem;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }

    .article-content {
        padding: 0 1rem;
    }

    .article-content ul,
    .article-content ol {
        padding-left: 1.5rem;
    }

    .article-content blockquote {
        padding: 1rem;
        margin: 1.5rem 0;
    }
}

/* Print Styles for Articles */
@media print {
    .header,
    .footer,
    .newsletter,
    .related-articles,
    .article-share,
    .breadcrumb {
        display: none;
    }

    .article {
        padding: 0;
    }

    .article-content {
        max-width: none;
    }

    .article-header {
        margin-bottom: 2rem;
    }

    .article-content h2 {
        page-break-after: avoid;
    }

    .article-content p {
        color: #000;
    }
}
