/* Shared blog cards (home "From The Blog" and /blog listing). */
.hx-blog .hx-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.hx-blog .hx-post h3 {
    color: #1b1530;
    font-weight: 700;
    transition: color .2s ease;
}

.hx-blog .hx-post:hover h3 {
    color: #7c3aed;
}

.hx-blog .hx-post p {
    color: #5d5a6e;
}
.hx-blog .hx-blog-grid {
    gap: 28px;
}

.hx-blog .hx-post {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, .1);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px -18px rgba(30, 20, 60, .25);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.hx-blog .hx-post:hover {
    transform: translateY(-8px);
    border-color: rgba(226, 73, 159, .35);
    box-shadow: 0 26px 50px -22px rgba(124, 58, 237, .45);
}

.hx-blog .hx-post-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0;
    background: #f3f0fb;
}

.hx-blog .hx-post-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(20, 10, 40, .45));
    opacity: .6;
    transition: opacity .35s ease;
}

.hx-blog .hx-post:hover .hx-post-media::after {
    opacity: .2;
}

.hx-blog .hx-post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform .6s ease;
}

.hx-blog .hx-post:hover .hx-post-media img {
    transform: scale(1.07);
}

.hx-blog .hx-post-date {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 1;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(6px);
    color: #7c3aed;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}

.hx-blog .hx-post-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 22px 24px 24px;
}

.hx-blog .hx-post h3 {
    display: -webkit-box;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-size: 19px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hx-blog .hx-post p {
    display: -webkit-box;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-size: 14.5px;
    line-height: 1.6;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.hx-blog .hx-post .hx-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding: 6px 0 0;
    color: #e2499f;
    font-weight: 700;
}

.hx-blog .hx-post .hx-link svg {
    transition: transform .3s ease;
}

.hx-blog .hx-post:hover .hx-link svg {
    transform: translateX(5px);
}

/* Blog listing page */
.hx-blog-page {
    padding: 150px 0 90px;
    background: linear-gradient(180deg, #f7f4ff 0%, #fff 420px);
}

.hx-blog-page .hx-wrap {
    width: min(1200px, 100% - 40px);
    margin: 0 auto;
}

.hx-blog-page .hx-blog-head {
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: center;
}

.hx-blog-page .hx-blog-kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(124, 58, 237, .1);
    color: #7c3aed;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hx-blog-page .hx-blog-head h1 {
    margin: 0 0 12px;
    color: #1b1530;
    font-size: 36px;
    font-weight: 700;
}

.hx-blog-page .hx-blog-head p {
    margin: 0;
    color: #5d5a6e;
    font-size: 16px;
}

.hx-blog-page .hx-post-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.hx-blog-page .hx-post-featured .hx-post-media {
    height: 100%;
    min-height: 320px;
}

.hx-blog-page .hx-post-featured .hx-post-body {
    justify-content: center;
    padding: 40px;
}

.hx-blog-page .hx-post-featured h3 {
    font-size: 28px;
}

.hx-blog-page .hx-post-featured p {
    -webkit-line-clamp: 4;
}

.hx-blog .hx-link svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 991px) {
    .hx-blog .hx-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hx-blog-page .hx-post-featured {
        grid-template-columns: 1fr;
    }

    .hx-blog-page .hx-post-featured .hx-post-media {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .hx-blog .hx-blog-grid {
        grid-template-columns: 1fr;
    }

    .hx-blog-page {
        padding-top: 120px;
    }

    .hx-blog-page .hx-blog-head h1 {
        font-size: 28px;
    }

    .hx-blog-page .hx-post-featured .hx-post-body {
        padding: 24px;
    }

    .hx-blog-page .hx-post-featured h3 {
        font-size: 21px;
    }
}

/* Single blog post */
.hx-article {
    max-width: 860px;
    margin: 0 auto;
}

.hx-article-head {
    margin-bottom: 32px;
    text-align: center;
}

.hx-article-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 22px;
    color: #7c3aed;
    font-size: 14px;
    font-weight: 600;
    transition: gap .25s ease;
}

.hx-article-back:hover {
    gap: 10px;
    color: #e2499f;
}

.hx-article-back svg {
    width: 16px;
    height: 16px;
}

.hx-article-head h1 {
    margin: 0 0 18px;
    color: #1b1530;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.hx-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #5d5a6e;
    font-size: 14px;
}

.hx-article-meta .hx-post-date {
    position: static;
    background: rgba(124, 58, 237, .1);
}

.hx-article-hero {
    margin: 0 0 44px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 30px 60px -30px rgba(124, 58, 237, .45);
}

.hx-article-hero img {
    display: block;
    width: 100%;
    height: auto;
}

.hx-article-body {
    max-width: 720px;
    margin: 0 auto;
    color: #3b3850;
    font-size: 17px;
    line-height: 1.8;
}

.hx-article-body p {
    margin: 0 0 1.3em;
}

.hx-article-body h2,
.hx-article-body h3,
.hx-article-body h4 {
    margin: 1.8em 0 .6em;
    color: #1b1530;
    font-weight: 700;
    line-height: 1.3;
}

.hx-article-body h2 {
    font-size: 26px;
}

.hx-article-body h3 {
    font-size: 21px;
}

.hx-article-body a {
    color: #7c3aed;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hx-article-body a:hover {
    color: #e2499f;
}

.hx-article-body ul,
.hx-article-body ol {
    margin: 0 0 1.3em;
    padding-left: 1.4em;
}

.hx-article-body li {
    margin-bottom: .45em;
}

.hx-article-body li::marker {
    color: #e2499f;
}

.hx-article-body img,
.hx-article-body iframe,
.hx-article-body video {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 28px auto;
    border-radius: 16px;
}

.hx-article-body iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.hx-article-body blockquote {
    margin: 28px 0;
    padding: 18px 24px;
    border-left: 4px solid #e2499f;
    border-radius: 0 14px 14px 0;
    background: #f7f4ff;
    color: #1b1530;
    font-style: italic;
}

.hx-related {
    margin-top: 80px;
    padding-top: 56px;
    border-top: 1px solid rgba(124, 58, 237, .12);
}

.hx-related-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.hx-related-head h2 {
    margin: 0;
    color: #1b1530;
    font-size: 28px;
    font-weight: 700;
}

.hx-related-head .hx-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e2499f;
    font-weight: 700;
}

@media (max-width: 640px) {
    .hx-article-head h1 {
        font-size: 28px;
    }

    .hx-article-body {
        font-size: 16px;
    }

    .hx-article-hero {
        margin-bottom: 30px;
        border-radius: 16px;
    }

    .hx-related {
        margin-top: 56px;
        padding-top: 40px;
    }

    .hx-related-head h2 {
        font-size: 22px;
    }
}
