/* Blog Article Styles - SEO Optimized Layout */

.blog-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.article-header {
    margin-bottom: 30px;
}

.back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.blog-article h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.article-meta {
    color: #6c757d;
    font-size: 0.95rem;
}

.reading-time {
    margin-left: 5px;
}

/* Hero Image */
.blog-hero-image,
.hero-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Author Box - E-E-A-T */
.author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
}

.author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-name {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin: 3px 0;
}

.author-role {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.author-bio {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 8px;
    line-height: 1.5;
}

/* Key Takeaways Box */
.key-takeaways {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.key-takeaways h2 {
    font-size: 1.2rem;
    color: #2e7d32;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.key-takeaways h2::before {
    content: "✓";
    font-weight: bold;
}

.key-takeaways ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-takeaways li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.6;
    color: #1b5e20;
}

.key-takeaways li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2e7d32;
    font-weight: bold;
}

/* Table of Contents */
.toc {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
}

.toc h2 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.toc ol {
    counter-reset: toc-counter;
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    counter-increment: toc-counter;
    margin-bottom: 8px;
}

.toc li a {
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.toc li a::before {
    content: counter(toc-counter) ".";
    margin-right: 10px;
    color: var(--primary-color);
    font-weight: 600;
    min-width: 25px;
}

.toc li a:hover {
    background: #e9ecef;
    color: var(--primary-color);
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.article-content h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-top: 35px;
    margin-bottom: 15px;
}

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

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

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

.article-content strong {
    color: var(--secondary-color);
}

/* Introduction */
.introduction {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #495057;
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
    margin-bottom: 40px;
}

/* FAQ Section */
.faq-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-top: 50px;
    margin-bottom: 40px;
}

.faq-section h2 {
    border-bottom: none;
    margin-top: 0;
}

.faq-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.faq-question::before {
    content: "Q";
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.faq-answer {
    color: #495057;
    line-height: 1.7;
    padding-left: 34px;
    margin: 0;
}

/* Conclusion & CTA */
.conclusion {
    margin-top: 50px;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    padding: 35px;
    border-radius: 12px;
    margin-top: 30px;
    text-align: center;
}

.cta-box h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.95;
}

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

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-article h1 {
        font-size: 1.8rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

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

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

    .cta-box {
        padding: 25px;
    }
}
