/* ─────────────────────────────────────────────────────────────────────────
   Blog styles — loaded only by /blog pages on top of the shared
   landing/style.css. Reuses its :root tokens (--lavender, --mint, --blush,
   --cream, --text-dark, --serif, --sans) and the .service-card glass look.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Hero & collection pages ─────────────────────────────────────────────── */

.blog-hero {
    padding: 9rem 2rem 3.5rem;
    text-align: center;
}

.blog-hero .section-label {
    margin-bottom: 1rem;
}

.blog-hero .section-title {
    margin-bottom: 1rem;
}

.blog-hero .section-subtitle {
    margin: 0 auto 2rem;
}

/* Tag cloud on the blog index */
.blog-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
}

.blog-section {
    padding: 1rem 2rem 4rem;
}

.blog-back-link {
    text-align: center;
    margin-top: 2.5rem;
}

.blog-back-link a {
    color: var(--lavender-deep);
    font-family: var(--sans);
    font-weight: 600;
    text-decoration: none;
}

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

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */

.blog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.blog-breadcrumb a {
    color: var(--text-medium);
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    color: var(--lavender-deep);
}

.blog-breadcrumb-sep {
    color: var(--text-light);
}

.blog-breadcrumb [aria-current="page"] {
    color: var(--text-medium);
}

/* Center on collection pages; left-align above articles */
.blog-article .blog-breadcrumb {
    justify-content: flex-start;
    margin-bottom: 1.25rem;
}

/* ── Tag pills ───────────────────────────────────────────────────────────── */

.tag-pill {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: var(--lavender-light);
    color: var(--lavender-deep);
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.tag-pill:hover {
    background: var(--lavender);
    color: var(--white);
}

/* ── Post grid & cards ───────────────────────────────────────────────────── */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.blog-card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-decoration: none;
    box-shadow: var(--shadow-soft, 0 10px 30px rgba(61, 46, 90, 0.08));
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lavender), var(--lavender-deep));
    transition: height 0.3s ease;
}

.blog-card:nth-child(2)::before { background: linear-gradient(90deg, var(--mint), var(--mint-deep)); }
.blog-card:nth-child(3)::before { background: linear-gradient(90deg, var(--blush), var(--blush-deep)); }
.blog-card:nth-child(4)::before { background: linear-gradient(90deg, var(--sage), #8FB57A); }
.blog-card:nth-child(5)::before { background: linear-gradient(90deg, var(--lavender), var(--blush)); }
.blog-card:nth-child(6)::before { background: linear-gradient(90deg, var(--mint), var(--lavender)); }

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium, 0 20px 40px rgba(61, 46, 90, 0.14));
}

.blog-card:hover::before {
    height: 5px;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}

.blog-card .tag-pill {
    font-size: 0.72rem;
    padding: 0.25rem 0.7rem;
}

.blog-card-title {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    margin: 0 0 0.75rem;
    transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--lavender-deep);
}

.blog-card-excerpt {
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.65;
    margin: 0 0 1.4rem;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--sans);
    font-size: 0.82rem;
    color: var(--text-light);
}

.blog-card-dot {
    color: var(--lavender);
}

/* ── Article page ─────────────────────────────────────────────────────────── */

.blog-article {
    padding: 9rem 2rem 2rem;
}

.article-container {
    max-width: 720px;
    margin: 0 auto;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
}

.article-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
    margin: 0 0 1rem;
}

.author-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--sans);
    font-size: 0.9rem;
    color: var(--text-medium);
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(195, 177, 225, 0.35);
    margin-bottom: 0;
}

/* ── Article prose ────────────────────────────────────────────────────────── */

.article-prose {
    font-family: var(--sans);
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 1.8;
    padding-top: 2.5rem;
    padding-bottom: 2rem;
}

.article-prose p {
    margin: 0 0 1.5rem;
}

.article-prose h2 {
    font-family: var(--serif);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    margin: 3rem 0 1rem;
}

.article-prose h3 {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--lavender-deep);
    line-height: 1.3;
    margin: 2.25rem 0 0.75rem;
}

.article-prose ul,
.article-prose ol {
    margin: 0 0 1.5rem;
    padding-left: 1.5rem;
}

.article-prose li {
    margin-bottom: 0.6rem;
}

.article-prose li::marker {
    color: var(--lavender-deep);
}

.article-prose a {
    color: var(--lavender-deep);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(195, 177, 225, 0.5);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.article-prose a:hover {
    text-decoration-color: var(--lavender-deep);
}

.article-prose blockquote {
    position: relative;
    margin: 2.25rem 0;
    padding: 1.25rem 1.75rem;
    background: var(--lavender-light);
    border-radius: 16px;
    border-left: 4px solid var(--lavender);
    font-family: var(--serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
}

.article-prose blockquote p {
    margin: 0;
}

.article-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft, 0 10px 30px rgba(61, 46, 90, 0.08));
}

.article-prose th {
    font-family: var(--sans);
    font-weight: 600;
    text-align: left;
    padding: 0.85rem 1rem;
    background: var(--lavender-light);
    color: var(--lavender-deep);
}

.article-prose td {
    padding: 0.85rem 1rem;
    border-top: 1px solid rgba(195, 177, 225, 0.25);
    color: var(--text-medium);
}

.article-prose strong {
    color: var(--text-dark);
    font-weight: 700;
}

.article-prose em {
    color: var(--text-dark);
}

.article-prose hr {
    border: none;
    height: 1px;
    background: rgba(195, 177, 225, 0.35);
    margin: 3rem 0;
}

/* ── CTA blocks ───────────────────────────────────────────────────────────── */

.blog-cta-section {
    padding: 2rem 2rem 4.5rem;
}

.blog-cta {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, rgba(232, 223, 245, 0.85), rgba(212, 241, 228, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-soft, 0 10px 30px rgba(61, 46, 90, 0.08));
}

.blog-cta h2 {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.75rem;
}

.blog-cta p {
    font-family: var(--sans);
    color: var(--text-medium);
    line-height: 1.7;
    margin: 0 0 1.75rem;
}

.blog-cta .btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 999px;
    font-family: var(--sans);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-cta .btn-primary {
    background: linear-gradient(135deg, var(--lavender-deep), var(--lavender));
    color: var(--white);
    box-shadow: 0 8px 24px rgba(155, 142, 196, 0.4);
}

.blog-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(155, 142, 196, 0.5);
}

/* ── Related posts ────────────────────────────────────────────────────────── */

.related-posts {
    padding: 1rem 2rem 4.5rem;
}

.related-heading {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin: 0 0 2rem;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .blog-hero {
        padding: 7.5rem 1.5rem 2.5rem;
    }

    .blog-article {
        padding: 7.5rem 1.5rem 1.5rem;
    }

    .blog-section,
    .blog-cta-section,
    .related-posts {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card {
        padding: 2rem 1.75rem;
    }

    .article-prose table {
        display: block;
        overflow-x: auto;
    }
}
.author-bio { margin-top: 2.5rem; padding: 1.25rem 1.5rem; border-radius: 12px; background: rgba(155, 142, 196, 0.1); font-size: 0.95rem; }
.author-bio p { margin: 0 0 0.35rem; }
