/* Listing images */
.blog-page .sb-cover {
    display: block;
    position: relative;
    overflow: hidden;
    padding: 0;
    text-decoration: none;
}

.blog-page .blog-card-image.sb-cover {
    height: auto;
    aspect-ratio: 16 / 10;
}

.blog-page .sb-cover > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-page .blog-featured-image.sb-cover > img {
    position: absolute;
    inset: 0;
}

.blog-page .blog-card-image.sb-cover::before {
    display: none;
}

.blog-page .sb-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 230px;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(254, 189, 0, .12),
        rgba(82, 174, 168, .16)
    );
}

.blog-page .blog-card-image .sb-placeholder {
    position: static;
    border-radius: 0;
    padding: 0;
}

.blog-page .sb-placeholder i {
    position: static;
    font-size: 48px;
}

/* Cards */
.blog-page .blog-card {
    min-width: 0;
    overflow: hidden;
}

.blog-page .blog-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-page .blog-card-content .blog-post-footer {
    margin-top: auto;
    padding-top: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.blog-page a.sb-title {
    color: inherit;
    font: inherit;
    text-decoration: none;
}

.blog-page a.sb-title:hover {
    text-decoration: underline;
}

/* Pagination */
.blog-page .sb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.blog-page .sb-pagination a,
.blog-details-page .sb-back {
    color: inherit;
    text-underline-offset: 4px;
}

/* Article */
.blog-details-page .blog-article {
    min-width: 0;
}

.blog-details-page .sb-back {
    display: inline-block;
    margin-bottom: 24px;
}

.blog-details-page .sb-article-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    margin-bottom: 32px;
}

.blog-details-page .sb-rich-content {
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.blog-details-page .sb-rich-content h2,
.blog-details-page .sb-rich-content h3,
.blog-details-page .sb-rich-content h4 {
    scroll-margin-top: 120px;
}

.blog-details-page .sb-rich-content a {
    color: inherit;
    text-decoration: underline;
}

.blog-details-page .sb-rich-content ul {
    list-style: disc;
}

.blog-details-page .sb-rich-content ol {
    list-style: decimal;
}

.blog-details-page .sb-rich-content ul,
.blog-details-page .sb-rich-content ol {
    padding-left: 24px;
}

.blog-details-page .sb-rich-content li {
    display: list-item;
}

.blog-details-page .sb-rich-content blockquote {
    border-left: 3px solid #febd00;
    padding: 12px 24px;
    margin: 24px 0;
}

.blog-details-page .sb-rich-content figure,
.blog-details-page .sb-rich-content pre {
    max-width: 100%;
    overflow-x: auto;
    margin: 24px 0;
}

.blog-details-page .sb-rich-content table {
    width: 100%;
    border-collapse: collapse;
}

.blog-details-page .sb-rich-content td,
.blog-details-page .sb-rich-content th {
    padding: 12px;
    border: 1px solid #748096;
}

/* Related articles */
.blog-details-page .sb-related-cover {
    display: block;
    margin-bottom: 20px;
}

.blog-details-page .sb-related-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}

@media (max-width: 700px) {
    .blog-page .blog-featured-image.sb-cover {
        min-height: 220px;
    }
}