/* css/blog.css */
/* Minimal, highly readable, modern typography and layout for the SEO blog */

.blog-hero {
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 0 0 32px 32px;
    margin-bottom: 40px;
}

.blog-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.blog-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.blog-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #f1f5f9;
}

.blog-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-desc {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.blog-card-meta {
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

/* ARTICLE LAYOUT */
.article-container {
    max-width: 760px; /* Highly optimized width for reading UX */
    margin: 0 auto;
    padding: 20px;
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 20px;
}

.article-meta {
    color: #64748b;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.article-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8; /* Increased line-height for better readability */
    color: #334155;
}

.article-content h2 {
    font-size: 1.8rem;
    color: #0f172a;
    margin-top: 32px;
    margin-bottom: 20px;
    font-weight: 700;
    padding-left: 15px;
    border-left: 5px solid var(--primary-color, #0ea5e9);
}

.article-content h3 {
    font-size: 1.4rem;
    color: #1e293b;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

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

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

.article-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.cta-box {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    margin: 40px 0;
}

.cta-box p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 20px;
}

.cta-box .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color, #0ea5e9);
    color: white;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.cta-box .btn:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
}

/* Callouts in article */
.callout {
    background: #eff6ff;
    border-left: 4px solid var(--primary-color, #0ea5e9);
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin: 30px 0;
}

.callout p:last-child {
    margin-bottom: 0;
}

/* Blockquote */
.blog-quote {
    font-style: italic;
    font-size: 1.2rem;
    color: #475569;
    padding: 20px 20px 20px 30px;
    border-left: 5px solid #cbd5e1;
    background: #f1f5f9;
    margin: 30px 0;
    border-radius: 0 16px 16px 0;
}

/* TOC */
.blog-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    margin: 40px 0;
}

.blog-toc-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-toc li {
    margin-bottom: 12px;
}

.blog-toc a {
    color: var(--primary-color, #0ea5e9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.blog-toc a:hover {
    text-decoration: underline;
    color: #0284c7;
}

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 10000;
}

.reading-progress-bar {
    height: 100%;
    background: var(--primary-color, #0ea5e9);
    width: 0%;
}

/* FAQ specifics */
.faq-section {
    margin-top: 50px;
    background: #fafafa;
    padding: 30px;
    border-radius: 20px;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-q {
    font-weight: 700;
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 8px;
}

.faq-a {
    color: #475569;
}

/* Sticky Mobile CTA */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 10px 20px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    z-index: 100;
}
.mobile-sticky-cta .btn {
    width: 100%;
    margin: 0;
    justify-content: center;
    border-radius: 999px;
    padding: 14px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .blog-hero h1 { font-size: 2.2rem; }
    .article-title { font-size: 1.8rem; }
    .article-content { font-size: 1.05rem; }
    .article-content h2 { font-size: 1.5rem; }
    
    .mobile-sticky-cta {
        display: flex;
        gap: 12px;
    }
    .article-container {
        padding-bottom: 80px; /* Space for the sticky CTA */
    }
}
