/* === Blog Shared Styles === */
/* Inherits base vars & navbar from ../styles.css */

/* ── Blog Listing ── */
.blog-hero {
    padding: 160px 24px 60px;
    text-align: center;
}

.blog-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-800);
    margin-bottom: 16px;
}

.blog-hero p {
    font-size: 17px;
    color: var(--gray-600);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.blog-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 100px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.blog-card {
    background: white;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.blog-card-thumb {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-thumb img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--blue);
    margin-bottom: 10px;
}

.blog-card-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    text-align: left;
}

.blog-card-body p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--gray-200);
    font-size: 12px;
    color: var(--gray-400);
    font-weight: 500;
}

/* ── Blog Post Article ── */
.post-top-cta {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: linear-gradient(135deg, #4a8af5, #6366f1);
    color: white;
    text-align: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    z-index: 98;
}

.post-top-cta a {
    color: white;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-header {
    padding: 160px 24px 48px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.post-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--blue);
    margin-bottom: 16px;
}

.post-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-800);
    margin-bottom: 20px;
}

.post-header .post-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    font-size: 13px;
    color: var(--gray-400);
    font-weight: 500;
}

/* Post hero image */
.post-hero-img {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 24px;
}

.post-hero-img img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--gray-200);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

/* Article body */
.post-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.post-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 48px 0 16px;
    line-height: 1.3;
    text-align: left;
}

.post-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 32px 0 12px;
    line-height: 1.4;
}

.post-body p {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 20px;
}

.post-body ul, .post-body ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.post-body li {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 8px;
}

.post-body strong {
    color: var(--gray-800);
}

.post-body blockquote {
    border-left: 4px solid var(--blue);
    padding: 16px 24px;
    margin: 28px 0;
    background: var(--gray-100);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.post-body blockquote p {
    font-size: 17px;
    font-style: italic;
    color: var(--gray-800);
    margin: 0;
}

/* Automation example boxes */
.automation-box {
    background: var(--gray-100);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px 0;
}

.automation-box .auto-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--blue);
    margin-bottom: 8px;
}

.automation-box p {
    font-size: 14px;
    margin-bottom: 8px;
}

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

/* Bottom CTA */
.post-cta {
    max-width: 720px;
    margin: 0 auto 80px;
    padding: 0 24px;
}

.post-cta-card {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    color: white;
}

.post-cta-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: white;
    margin-bottom: 12px;
    text-align: center;
}

.post-cta-card p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.post-cta-card .btn-cta {
    display: inline-flex;
}

/* Related posts */
.related-posts {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.related-posts h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-400);
    margin-bottom: 24px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .blog-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .post-cta-card { padding: 32px 24px; }
}

@media (max-width: 600px) {
    .post-top-cta { font-size: 12px; padding: 8px 16px; }
}
