/* --- Blog Redesign (Refined) --- */
/* This file supplements style.css and blog.css to fix layout issues and improve aesthetics */

:root {
    --blog-max-width: 850px;
}

/* Fix title cropping - add padding to the top of the article content */
.article-header-container {
    padding-top: 140px; /* Reduced from 160px for a more balanced look */
    max-width: var(--blog-max-width);
    margin: 0 auto;
    text-align: center;
    padding-inline: 20px;
}

.article-header-container .date {
    display: block;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
}

.article-header-container h1 {
    font-family: var(--font) !important;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.article-header-container .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 2rem;
}

.article-divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto 3rem;
    border-radius: 2px;
}

/* Content Styles - Align with brand.md */
.blog-content {
    max-width: var(--blog-max-width);
    margin: 0 auto;
    padding: 0 30px 60px;
    font-family: var(--font) !important;
}

.blog-content p {
    font-size: 24px; /* Brand.md recommended */
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text);
    text-align: justify;
    font-weight: 400;
}

.blog-content b, 
.blog-content h2, 
.blog-content h3 {
    display: block;
    font-size: 28px; /* Brand.md recommended */
    font-weight: 700;
    color: var(--logo);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-content ul {
    margin-bottom: 1.5rem;
}

.blog-content li {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* CTA Styles - Premium but "Non-Dramatic" integration */
.blog-cta-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow);
}

.blog-cta-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.blog-cta-card p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.blog-cta-btn {
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--main-transition);
}

.cta-accent {
    background: var(--accent);
    color: #fff !important;
}

.cta-logo {
    background: var(--logo);
    color: #fff !important;
}

/* Newsletter - More integrated look */
.blog-newsletter-box {
    background: var(--surface);
    border: 2px solid var(--logo);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-bottom: 60px;
}

/* Dark mode tweaks */
[data-theme="dark"] .blog-newsletter-box {
    background: rgba(var(--logo-rgb), 0.1);
}
