/* Blog listing + article. Colours and type follow home.css tokens. */

/* ---------- banner ---------- */
.blog-banner .banner-left h1 { max-width: 980px; }
.blog-banner .banner-left p { max-width: 640px; }

/* ---------- listing cards ---------- */
/* Post cards (reference design): inset rounded picture, orange tag, bold title,
   summary, author row with avatar. Three per row on desktop. */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 380px)); gap: clamp(20px, 2vw, 32px); }
.blog-grid:empty { display: none; }
.blog-card {
    display: flex; flex-direction: column; padding: 12px; background: #fff; border-radius: 20px;
    color: inherit; text-decoration: none;
    box-shadow: 0 0 0 1px rgba(15, 42, 40, 0.04), 0 2px 8px rgba(15, 42, 40, 0.06), 4px 8px 20px rgba(15, 42, 40, 0.12);
    transition: transform .3s ease, box-shadow .3s ease;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 8px 14px 26px rgba(0, 128, 128, 0.2); }
.blog-card-media { overflow: hidden; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--hm-deep); }
.blog-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.blog-card:hover .blog-card-media img { transform: scale(1.06); }
.blog-card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 16px 8px 6px; }
.blog-card-tag {
    display: inline-block; padding: 4px 12px; border-radius: 999px; background: #ff9f43; color: #fff;
    font-size: 12px; font-weight: 700; line-height: 1.4; margin-bottom: 12px;
}
.blog-card-title { font-size: 20px; font-weight: 700; line-height: 1.35; color: #111; margin: 0 0 10px; transition: color .25s ease; }
.blog-card:hover .blog-card-title { color: var(--hm-primary); }
.blog-card-text { flex: 1; font-size: 15px; line-height: 1.6; color: var(--hm-text); margin: 0 0 18px; }
.blog-card-author { display: flex; align-items: center; gap: 12px; }
.blog-card-avatar {
    flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px;
    border-radius: 50%; background: var(--hm-primary); overflow: hidden;
}
.blog-card-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-who { display: flex; flex-direction: column; line-height: 1.3; }
.blog-card-who strong { font-size: 14px; color: #111; }
.blog-card-who time { font-size: 13px; color: var(--hm-muted); }
.blog-card-author { width: 100%; }
/* Read: same look and hover as the site's Talk to Expert button (.custom-btn) */
.blog-card-read {
    margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 9px;
    background-color: #fff; background-image: linear-gradient(#008080, #008080); background-repeat: no-repeat;
    background-position: left center; background-size: 0% 100%;
    color: #111; font-size: 14px; font-weight: 700; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transition: background-size .5s cubic-bezier(0.22, 1, 0.36, 1), color .35s ease, box-shadow .35s ease, transform .35s ease;
}
.blog-card-read i { color: #ff7043; font-size: 16px; transition: transform .3s ease, color .35s ease; }
.blog-card:hover .blog-card-read { background-size: 100% 100%; color: #fff; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22); }
.blog-card:hover .blog-card-read i { color: #fff; transform: translateX(4px); }

/* ---------- article: built from the home page's section patterns ---------- */
.bl-article { --bl-tone: #f1f7f7; }
.bl-sec { padding-top: clamp(48px, 4.6vw, 80px); padding-bottom: clamp(48px, 4.6vw, 80px); }
.bl-sec.hm-split { padding-top: clamp(48px, 4.6vw, 80px); padding-bottom: clamp(48px, 4.6vw, 80px); }
.bl-sec .hm-title { font-size: clamp(26px, 2.4vw, 38px); margin-bottom: 16px; scroll-margin-top: 110px; }
.bl-sec .hm-head { max-width: 760px; }
.bl-sec .bl-head-wide { max-width: 900px; }

/* running text: home page body size, in ink */
.bl-article p, .bl-article li { font-size: 16px; line-height: 1.75; color: var(--hm-ink); }
.bl-article p { margin: 0 0 16px; }
.bl-article strong { color: var(--hm-deep); }
.bl-article a { color: var(--hm-primary-dark); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(0, 128, 128, .35); text-underline-offset: 4px; }
.bl-article a:hover { color: var(--hm-primary); text-decoration-color: var(--hm-primary); }
.bl-article .bl-h3 { font-size: clamp(20px, 1.6vw, 24px); font-weight: 700; color: var(--hm-primary); margin: 0 0 12px; scroll-margin-top: 110px; }
.bl-sec ul, .bl-sec ol { margin: 0 0 18px; }

/* dark bands: same as the home page */
.bl-sec.hm-bg-dark p, .bl-sec.hm-bg-dark li { color: rgba(255, 255, 255, .86); }
.bl-sec.hm-bg-dark strong { color: #fff; }
.bl-sec.hm-bg-dark a { color: #fff; text-decoration-color: rgba(255, 255, 255, .45); }

/* intro */
.bl-intro .meta { font-size: 15px; color: var(--hm-muted); margin-bottom: 18px; }
.bl-intro .bl-byline { font-size: 15px; color: var(--hm-muted); margin: 0 0 16px; }
.bl-intro .short-answer {
    background: var(--hm-teal-soft); border-left: 5px solid var(--hm-primary); border-radius: 0 14px 14px 0;
    padding: 24px 26px; font-size: 18px; line-height: 1.7; margin: 0;
}
.bl-intro .blog-cover { margin: 0; }
.bl-intro .blog-cover img { display: block; width: 100%; height: auto; border-radius: var(--hm-radius); }
.bl-toc { margin-top: clamp(32px, 3vw, 48px); background: var(--bl-tone); border-radius: var(--hm-radius); padding: 22px 26px; }
.bl-toc strong { display: block; font-size: 17px; color: var(--hm-primary); margin-bottom: 12px; }
.bl-toc ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.bl-toc li { margin: 0; }
.bl-toc a {
    display: inline-block; padding: 8px 16px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600;
    color: var(--hm-primary-dark); text-decoration: none; box-shadow: 0 2px 6px rgba(15, 42, 40, .08);
    transition: background .25s ease, color .25s ease, transform .25s ease;
}
.bl-toc a:hover { background: var(--hm-primary); color: #fff; transform: translateY(-2px); }

/* text set in two columns beside a heading */
@media (min-width: 992px) { .bl-cols { columns: 2; column-gap: 40px; } .bl-cols p { break-inside: avoid; } }

/* tick lists (home page feature style) */
.bl-check { list-style: none; padding: 0; display: grid; gap: 10px; }
.bl-check li {
    position: relative; margin: 0; padding: 14px 16px 14px 50px; background: #fff; border-radius: 10px;
    box-shadow: 0 3px 8px rgba(15, 42, 40, .08); font-size: 15px; line-height: 1.6;
}
.bl-check li::before {
    content: "\eb7b"; font-family: "remixicon"; position: absolute; left: 16px; top: 13px;
    width: 24px; height: 24px; border-radius: 50%; background: var(--hm-teal-soft); color: var(--hm-primary);
    display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1;
}
.hm-bg-soft .bl-check li, .bl-roi .bl-check li { background: #fff; }

/* pictures */
.bl-figure { margin: 0; }
.bl-figure img { display: block; width: 100%; height: auto; border-radius: var(--hm-radius); }
.bl-figure figcaption { font-size: 14px; color: var(--hm-muted); margin-top: 10px; }

/* soft panels */
.bl-panel { margin-top: clamp(32px, 3vw, 48px); background: var(--bl-tone); border-radius: var(--hm-radius); padding: clamp(24px, 2.6vw, 40px); }
.hm-bg-soft .bl-panel { background: #fff; box-shadow: 0 3px 10px rgba(15, 42, 40, .07); }
.bl-roi { background: var(--bl-tone); border-radius: var(--hm-radius); padding: clamp(24px, 2.6vw, 40px); height: 100%; }
.hm-bg-soft .bl-roi { background: #fff; box-shadow: 0 3px 10px rgba(15, 42, 40, .07); }
.bl-roi p:last-child { margin-bottom: 0; }
.bl-formula { background: var(--hm-primary); border-radius: 10px; padding: 16px 20px; }
.bl-article .bl-formula, .bl-article .bl-formula strong { color: #fff; font-size: 17px; }
.bl-note { max-width: 980px; margin: 28px 0 0; }

/* architecture diagram */
.bl-arch { margin: 0; border: 1px solid #d9e6e6; border-radius: 12px; padding: 14px; background: #fff; }
.bl-arch svg { width: 100%; height: auto; display: block; }
.bl-arch figcaption { font-size: 14px; color: var(--hm-muted); margin-top: 10px; line-height: 1.55; }

/* tables */
.bl-article .tablewrap { overflow-x: auto; margin: 0 0 18px; border-radius: var(--hm-radius); background: #fff; box-shadow: 0 3px 10px rgba(15, 42, 40, .07); }
.bl-article table { width: 100%; min-width: 600px; border-collapse: collapse; }
.bl-article th, .bl-article td { padding: 14px 18px; text-align: left; vertical-align: top; font-size: 15px; line-height: 1.55; }
.bl-article th { background: var(--hm-primary); color: #fff; font-weight: 700; }
.bl-article td { border-top: 1px solid #e3eeee; color: var(--hm-ink); }
.bl-article td:first-child { font-weight: 700; color: var(--hm-deep); }

/* card grids made from ordered/unordered lists */
.bl-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: bl; }
.bl-cards-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bl-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bl-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bl-cards li {
    position: relative; margin: 0; padding: 26px 22px; border-radius: 14px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
    font-size: 15px; line-height: 1.65; transition: transform .3s ease, background .3s ease;
}
.bl-cards li:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .12); }
ol.bl-cards li { counter-increment: bl; padding-top: 70px; }
ol.bl-cards li::before {
    content: counter(bl); position: absolute; left: 22px; top: 22px; width: 36px; height: 36px; border-radius: 50%;
    background: #55d8e3; color: var(--hm-deep); font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center;
}
.bl-cards strong { display: block; font-size: 17px; margin-bottom: 6px; }
.bl-cards li p { font-size: 15px; line-height: 1.65; margin: 0 0 10px; }
.bl-cards li p:last-child { margin-bottom: 0; }
.bl-cards li p strong { display: inline; font-size: inherit; margin-bottom: 0; color: var(--hm-deep); }
.bl-cards-light li { background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(15, 42, 40, .04), 0 2px 8px rgba(15, 42, 40, .06), 4px 6px 14px rgba(15, 42, 40, .14); }
.bl-cards-light li:hover { background: #fff; transform: translate(-3px, -4px); box-shadow: 8px 10px 16px rgba(0, 128, 128, .25); }
.bl-cards-light strong { color: var(--hm-primary); }
.bl-cards-light h3 { font-size: 19px; font-weight: 700; color: var(--hm-primary); margin: 0 0 10px; line-height: 1.35; }
.bl-card-icon { display: block; font-size: 44px; line-height: 1; color: var(--hm-primary); margin-bottom: 14px; }

/* steps: a vertical rail */
.bl-steps-box { background: var(--bl-tone); border-radius: var(--hm-radius); padding: clamp(24px, 2.6vw, 36px); }
.bl-article .bl-steps-lead { font-weight: 700; color: var(--hm-primary); margin-bottom: 18px; }
.bl-steps { list-style: none; padding: 0; margin: 0; counter-reset: st; position: relative; }
.bl-steps::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: rgba(0, 128, 128, .25); }
.bl-steps li { position: relative; counter-increment: st; margin: 0; padding: 8px 0 22px 58px; }
.bl-steps li:last-child { padding-bottom: 4px; }
.bl-steps li::before {
    content: counter(st); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
    background: var(--hm-primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 5px var(--bl-tone);
}

/* rows (mistakes) and question grid */
.bl-rows { list-style: none; padding: 0; margin: 0; }
.bl-rows li { margin: 0; padding: 18px 0 18px 46px; position: relative; border-bottom: 1px solid #e5eded; }
.bl-rows li:last-child { border-bottom: 0; }
.bl-rows li::before { content: "\eb97"; font-family: "remixicon"; position: absolute; left: 0; top: 16px; font-size: 26px; line-height: 1; color: #e2574c; }
.bl-qs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; counter-reset: q; }
.bl-qs li {
    counter-increment: q; position: relative; margin: 0; padding: 18px 18px 18px 64px; background: #fff; border-radius: 12px;
    box-shadow: 0 3px 10px rgba(15, 42, 40, .07); font-size: 15px; line-height: 1.6; transition: transform .25s ease;
}
.bl-qs li:hover { transform: translateY(-2px); }
.bl-qs li::before {
    content: "Q" counter(q); position: absolute; left: 16px; top: 16px; width: 36px; height: 36px; border-radius: 10px;
    background: var(--hm-teal-soft); color: var(--hm-primary); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center;
}

/* FAQ answers inside the home accordion */
.bl-article .hm-faq-item summary h3 { font-size: inherit; font-weight: inherit; color: inherit; margin: 0; line-height: 1.4; font-family: inherit; }
.bl-article .hm-faq-item > p { padding: 0 22px 18px; margin: 0; font-size: 15px; }

/* calls to action */
.bl-article .cta { border-radius: var(--hm-radius); padding: clamp(26px, 2.8vw, 40px); }
.bl-cta-light { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); margin-top: clamp(28px, 3vw, 44px); }
.bl-article .cta p { margin: 0 0 8px; }
.bl-article .cta p:first-child strong { display: block; font-size: clamp(21px, 1.8vw, 26px); line-height: 1.3; color: #fff; }
.bl-article .cta a.btn {
    display: inline-flex; align-items: center; margin: 16px 12px 0 0; padding: 12px 26px; border-radius: 9px;
    background: #fff; color: var(--hm-primary-dark); font-size: 15px; font-weight: 700; text-decoration: none; border: 2px solid #fff;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}
.bl-article .cta a.btn:hover { background: var(--hm-teal-soft); transform: translateY(-2px); }
.bl-article .cta a.btn.alt { background: transparent; color: #fff; }
.bl-article .cta a.btn.alt:hover { background: #fff; color: var(--hm-primary-dark); }
.bl-article .cta .note { margin-top: 16px; font-size: 14px; }

/* author + sources */
.bl-article .author { background: var(--bl-tone); border-radius: var(--hm-radius); padding: 26px 28px; font-size: 15px; line-height: 1.75; color: var(--hm-ink); height: 100%; }
.bl-article .author strong { font-size: 18px; color: var(--hm-primary); }
.bl-article section[aria-labelledby="sources"] h2 { font-size: clamp(22px, 1.8vw, 28px); font-weight: 700; color: var(--hm-primary); margin: 0 0 14px; }
.bl-article section[aria-labelledby="sources"] li { font-size: 15px; margin-bottom: 10px; }

@media (max-width: 1199.98px) {
    .bl-cards-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bl-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bl-cards-3 { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
    .bl-cards-5, .bl-cards-4, .bl-qs { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .blog-grid { grid-template-columns: 1fr; }
    .bl-sec .hm-title { font-size: 24px; }
    .bl-intro .short-answer { font-size: 16px; padding: 20px; }
}

/* banner title for the article: full width so the long title sets in two lines on desktop */
.blog-banner .banner-left .blog-post-title { max-width: 1240px; }
