/* Custom hero background */
.post-template-header {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.tl-dr,
.post-quote {
    border-radius: 1rem;
    background-color: #F2F0EE;
    padding: 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    margin-bottom: 1.5rem;
}

.tl-dr span,
.post-fact span,
.related-article span {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}

.post-quote {
    padding-left: 82px;
    background-size: 56px;
    background-position: 16px 16px;
    color: #1A100B;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.75rem;
}

.post-quote span {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    font-weight: 400;
}

.post-fact {
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.related-article {
    display: block;
    padding: 1rem 1rem 1rem 1.5rem;
    border-radius: 1rem;
    border: 4px solid #E2DFDD;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5rem;
    text-decoration: none;
    position: relative;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

.related-article span {
    margin-bottom: 0.25rem;
}

.related-article .realated-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    height: 1.5rem;
    width: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #E2DFDD;
    border-radius: 50%;
}

.related-article p {
    max-width: 480px;
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    margin-bottom: 0;
}

.post-cta,
.docs-cta {
    background: #0E0D08;
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    color: #fff;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.plugins-cta {
    background: url("https://cdn.median.co/images/blog/plugins-hero-pattern.jpg") no-repeat;
    background-size: cover;
}

.post-cta h4,
.docs-cta h4,
.instant-preview-cta h4 {
    color: #FFF;
    font-family: DM Sans;
    font-size: 1.75rem;
    line-height: 2.25rem;
    margin-bottom: 0.25rem;
    margin-top: 0;
    font-weight: 400;
}

.post-cta .button {
    max-width: 173px;
}

.plugins-cta .post-cta-img-mask {
    margin-bottom: -1.5rem;
}

.docs-cta {
    gap: 1rem;
    background: #0E0D08 url("https://cdn.median.co/images/blog/docs-icon-blue.svg") no-repeat;
    background-size: cover;
    align-items: center;
}

.docs-cta h4 {
    margin-bottom: 0;
    color: #F2F0EE;
}

.docs-cta p {
    margin-bottom: 0.5rem;
}

.docs-cta .button {
    max-width: 235px;
}

.newsletter-cta {
    padding: 1.5rem;
    border-radius: 16px;
    background: radial-gradient(
        1303.03% 107.74% at 13.22% 73.56%,
        #181817 0%,
        #181817 0%,
        #26261B 100%
    );
    color: #F2F0EE;
    margin-bottom: 1.5rem;
}

.newsletter-cta h4 {
    color: #F2F0EE;
    font-family: DM Sans;
    font-size: 3rem;
    line-height: 3.5rem;
    margin: 0 0 1rem;
    font-weight: 400;
}

.newsletter-cta .fingerprint {
    bottom: -12px;
}

.newsletter-cta p {
    margin-bottom: 1.5rem;
}

.newsletter-cta .subscription form {
    display: flex;
    gap: 1.5rem;
}

.instant-preview-cta {
    padding: 1.5rem;
    background-color: #0E0D08;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    color: #F2F0EE;
}

.instant-preview-cta .overline {
    display: block;
    color: #F2F0EE;
}

.instant-preview-cta h4 {
    color: #F2F0EE;
    margin-bottom: 1rem;
}

.instant-preview-cta .instant-preview-btn {
    background-image: url("https://cdn.median.co/images/blog/arrow-right.svg");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
}

.cases-cta,
.general-cta {
    gap: 39px;
}

.cases-cta .post-cta-img-mask,
.general-cta .post-cta-img-mask {
    max-width: 227px;
}

.cases-cta .button {
    max-width: 215px;
}

@media (hover: hover) and (pointer: fine) {
    .blog-rich-text .button.btn-gold:hover {
        color: #0e0d08;
    }

    .related-article:hover {
        background-color: #F2F0EE;
    }

    .docs-cta a:hover {
        border-color: #1174d3;
    }

    .instant-preview-cta .instant-preview-btn:hover {
        background-position: calc(100% - 8px) center;
    }
}

@media screen and (max-width: 991px) {
    .post-template-header {
        background: none;
    }
}

@media screen and (max-width: 767px) {
    .newsletter-cta .subscribe-btn {
        max-width: 145px;
    }
}

@media screen and (max-width: 478px) {
    .post-quote {
        padding: 72px 16px 16px;
    }

    .related-article p {
        max-width: 240px;
    }

    .post-cta,
    .docs-cta {
        flex-direction: column;
    }

    .post-cta .button,
    .docs-cta .button {
        max-width: 100%;
    }

    .newsletter-cta h4 {
        font-size: 2.5rem;
        line-height: 3rem;
    }

    .newsletter-cta .subscription form {
        gap: 0;
        flex-direction: column;
    }

    .newsletter-cta .subscribe-btn {
        max-width: 100%;
    }
}

  