/* ============================= */
/* BLOG PAGE */
/* ============================= */

.blog-page {
    background: #fff;
}

/* Context bar */
.blog-context {
    padding: 16px 0 8px;
}

.blog-context p {
    font-size: 0.85rem;
    color: #888;
}

.blog-context a {
    color: var(--brand-purple);
    text-decoration: none;
}

.blog-context a:hover {
    text-decoration: underline;
}

/* Article layout */
.blog-article {
    padding: 40px 0;
}

/* Title */
.blog-header h1 {
    font-family: var(--font-serif);
    font-size: 2.8rem;   /* match homepage scale */
    line-height: 1.2;
    margin-bottom: 32px;
    letter-spacing: -0.015em;
    color: var(--charcoal);
}

/* ============================= */
/* CONTENT */
/* ============================= */

.blog-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    max-width: 860px; 
}

/* Paragraphs */
.blog-content p {
    margin-bottom: 1.1rem;
    max-width: 720px;
}

.blog-content .blog-section:first-of-type p:first-of-type {
    font-size: 1.12rem;
    line-height: 1.65;
    color: var(--charcoal);
    font-weight: 525;
}

.blog-content > p:last-of-type {
    margin-top: 2rem;
    font-weight: 500;
}

/* Section headings (FIXED) */
.blog-content h2 {
    font-family: var(--font-sans);
    font-size: 1.45rem;
    font-weight: 700;        /* bold */
    font-style: normal;      /* remove italics */
    margin-top: 2.4rem;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
    color: var(--charcoal);
}

/* Sub-headings */
.blog-content h3 {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

/* Emphasis */
.blog-content em {
    color: #444;
    font-style: italic;
}

.blog-content strong {
    color: var(--charcoal);
    font-weight: 600;
}

/* Tight spacing after headings */
.blog-content h2 + p {
    margin-top: 0.3rem;
}

.blog-content h2 {
    border-left: 5px solid var(--brand-purple);
    padding-left: 10px;
}

/* ============================= */
/* STAGGERED SECTIONS */
/* ============================= */

.blog-section {
    max-width: 860px;
    margin: 40px auto 0;
    transition: transform 0.2s ease;
}

/* Stagger effect (desktop only) */
@media (min-width: 900px) {

    .blog-content .blog-section:nth-child(even) {
        transform: translateX(0px);
        
        
    }

    .blog-content .blog-section:nth-child(odd) {
        transform: translateX(0);
    }

}

.blog-section {
    margin: 48px auto 0;
}

.blog-section:nth-child(1) { margin-top: 36px; }
.blog-section:nth-child(2) { margin-top: 40px; }
.blog-section:nth-child(3) { margin-top: 44px; }
.blog-section:nth-child(4) { margin-top: 48px; }

/* ============================= */
/* CONTINUATION */
/* ============================= */

.blog-continue {
    padding: 50px 0;
    margin-top: 60px;
}

.blog-continue h3 {
    font-size: 1.3rem;
    color: var(--charcoal);    
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

/* Related links */
.blog-related {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.related-link {
    display: block;
    padding: 14px 16px;
    border-left: 3px solid var(--brand-purple);
    background: #faf9ff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-link:hover {
    background: #f4f2ff;
    transform: translateX(4px);
}

.related-link h4 {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--charcoal);
}

/* Library link */
.blog-library-link {
    margin-top: 10px;
}

.blog-library-link a {
    font-size: 0.95rem;
    color: var(--brand-purple);
    text-decoration: none;
}

.blog-library-link a:hover {
    text-decoration: underline;
}

/* ============================= */
/* MOBILE */
/* ============================= */

@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 1.7rem;
    }

    .blog-content {
        font-size: 1rem;
    }

    .blog-content p {
        max-width: 100%;
    }

    .blog-section {
        transform: none !important;
    }
}
