/* =============================================================================
 * Content module — public styles (blog listing, article, custom pages, blocks)
 * Palette borrowed from the site: teal #0e7c66, deep green #0b2e28.
 * Scoped under .content-scope / block classes so it can't leak into other pages.
 * ========================================================================== */

:root {
    --c-teal: #0e7c66;
    --c-teal-dark: #0b5a4a;
    --c-ink: #12312b;
    --c-muted: #5b6b66;
    --c-line: #e4ebe8;
    --c-soft: #f4f8f6;
}

/* ---- Listing hero ---------------------------------------------------------- */
.blog-hero { background: linear-gradient(135deg, #0b2e28 0%, #0e7c66 100%); color: #fff; padding: 56px 0 44px; }
.blog-hero .eyebrow { color: #bfe6da; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; font-weight: 700; }
.blog-hero h1 { color: #fff; margin: 8px 0 10px; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.blog-hero p { color: #d6ece5; max-width: 640px; margin: 0; }

/* ---- Tag filter bar -------------------------------------------------------- */
.tag-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; }
.tag-bar a {
    display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .85rem;
    text-decoration: none; color: var(--c-teal-dark); background: var(--c-soft);
    border: 1px solid var(--c-line); transition: all .15s ease;
}
.tag-bar a:hover { background: #e7f2ee; }
.tag-bar a.on { background: var(--c-teal); color: #fff; border-color: var(--c-teal); }

/* ---- Post grid ------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; margin: 26px 0; }
.post-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line);
    border-radius: 14px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(11, 46, 40, .12); }
.post-card .thumb { aspect-ratio: 16 / 9; background: var(--c-soft) center/cover no-repeat; display: block; }
.post-card .thumb.placeholder { background: linear-gradient(135deg, #0e7c66, #0b2e28); }
.post-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card .meta { font-size: .78rem; color: var(--c-muted); margin-bottom: 8px; }
.post-card h2, .post-card h3 { font-size: 1.15rem; line-height: 1.35; margin: 0 0 8px; color: var(--c-ink); }
.post-card h2 a, .post-card h3 a { color: inherit; text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--c-teal); }
.post-card p.excerpt { color: var(--c-muted); font-size: .92rem; margin: 0 0 16px; flex: 1; }
.post-card .read-more { color: var(--c-teal); font-weight: 600; font-size: .9rem; text-decoration: none; margin-top: auto; }
.post-card .read-more:hover { text-decoration: underline; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.card-tags span { font-size: .72rem; color: var(--c-teal-dark); background: var(--c-soft); border-radius: 6px; padding: 2px 8px; }

.blog-empty { text-align: center; color: var(--c-muted); padding: 60px 0; }

/* ---- Pagination ------------------------------------------------------------ */
.pager { display: flex; justify-content: center; gap: 10px; margin: 30px 0 10px; }
.pager a, .pager span {
    padding: 8px 16px; border-radius: 8px; border: 1px solid var(--c-line);
    text-decoration: none; color: var(--c-teal-dark); font-size: .9rem;
}
.pager a:hover { background: var(--c-soft); }
.pager .disabled { color: #b7c4bf; }

/* ---- Article / page shell -------------------------------------------------- */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 34px 20px 10px; }
.breadcrumb { font-size: .82rem; color: var(--c-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--c-teal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.article-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.2; color: var(--c-ink); margin: 6px 0 12px; }
.article-meta { font-size: .85rem; color: var(--c-muted); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 8px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.article-tags a { font-size: .8rem; color: var(--c-teal-dark); background: var(--c-soft); border: 1px solid var(--c-line); border-radius: 999px; padding: 4px 12px; text-decoration: none; }
.article-tags a:hover { background: #e7f2ee; }
.article-cover { width: 100%; border-radius: 14px; margin: 22px 0 4px; aspect-ratio: 16/9; object-fit: cover; }

/* ---- Blocks ---------------------------------------------------------------- */
.article-body { font-size: 1.06rem; line-height: 1.75; color: #263733; }
.article-body .cb { margin: 22px 0; }
.article-body .cb-rich p { margin: 0 0 16px; }
.article-body .cb-rich ul, .article-body .cb-rich ol { margin: 0 0 16px 1.3em; }
.article-body .cb-rich li { margin: 6px 0; }
.article-body .cb-rich a { color: var(--c-teal); }
.article-body .cb-heading { color: var(--c-ink); line-height: 1.3; margin: 34px 0 12px; }
.article-body h2.cb-heading { font-size: 1.5rem; }
.article-body h3.cb-heading { font-size: 1.22rem; }
.article-body .cb-image img { width: 100%; border-radius: 12px; display: block; }
.article-body .cb-image figcaption { font-size: .84rem; color: var(--c-muted); text-align: center; margin-top: 8px; }

/* Responsive 16:9 YouTube */
.article-body .cb-video .video-frame { position: relative; width: 100%; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; }
.article-body .cb-video .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-body .cb-video .video-cap { font-size: .84rem; color: var(--c-muted); text-align: center; margin-top: 8px; }

/* Call to action band */
.article-body .cb-cta {
    background: linear-gradient(135deg, #0b2e28, #0e7c66); color: #fff;
    border-radius: 16px; padding: 28px 30px; text-align: center; margin: 30px 0;
}
.article-body .cb-cta h3 { color: #fff; margin: 0 0 8px; font-size: 1.35rem; }
.article-body .cb-cta p { color: #d6ece5; margin: 0 auto 18px; max-width: 520px; }
.article-body .cb-cta .cta-btn {
    display: inline-block; background: #fff; color: var(--c-teal-dark); font-weight: 700;
    padding: 12px 28px; border-radius: 999px; text-decoration: none; transition: transform .15s ease;
}
.article-body .cb-cta .cta-btn:hover { transform: translateY(-2px); }

/* Pull quote */
.article-body .cb-quote {
    border-left: 4px solid var(--c-teal); background: var(--c-soft);
    margin: 26px 0; padding: 18px 24px; border-radius: 0 12px 12px 0;
}
.article-body .cb-quote p { font-size: 1.15rem; font-style: italic; color: var(--c-ink); margin: 0; }
.article-body .cb-quote cite { display: block; margin-top: 10px; font-style: normal; font-size: .88rem; color: var(--c-muted); }

/* ---- End-of-article CTA + related ----------------------------------------- */
.article-foot-cta {
    background: var(--c-soft); border: 1px solid var(--c-line); border-radius: 16px;
    padding: 26px 28px; text-align: center; margin: 36px 0 10px;
}
.article-foot-cta h3 { margin: 0 0 8px; color: var(--c-ink); }
.article-foot-cta p { color: var(--c-muted); margin: 0 0 16px; }
.article-foot-cta .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.article-foot-cta .btns a { padding: 11px 24px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.article-foot-cta .btns .primary { background: var(--c-teal); color: #fff; }
.article-foot-cta .btns .ghost { border: 1px solid var(--c-teal); color: var(--c-teal-dark); }

.related { max-width: 1080px; margin: 10px auto 0; padding: 30px 20px; }
.related h2 { text-align: center; color: var(--c-ink); margin-bottom: 22px; }

@media (max-width: 640px) {
    .article-wrap { padding-top: 24px; }
    .article-body { font-size: 1.02rem; }
}
