.venta-blog {
    color: #767676;
}

.blog-banner {
    padding: 20px 15px 60px;
    color: #fff;
    text-align: center;
    background: #0169ad url('catalog-banner.webp') center calc(50% - 20px) / cover;
}

.blog-banner h1,
.blog-banner-title {
    margin: 0 0 10px;
    color: inherit;
    font-size: 68px;
    font-weight: 600;
    line-height: 1.2;
}

.blog-banner nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 8px;
}

.blog-banner nav a,
.blog-banner nav span {
    color: rgb(255 255 255 / 80%);
}

.blog-container {
    width: min(1192px, calc(100% - 30px));
    margin-inline: auto;
    padding-block: 40px;
}

.blog-archive {
    display: grid;
    grid-template-columns: minmax(0, 3.22fr) minmax(0, 1fr);
    gap: 30px;
}

.blog-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
}

.blog-card {
    min-width: 0;
    background: #fff;
    text-align: center;
    box-shadow: 0 0 4px rgb(0 0 0 / 12%);
    transition: box-shadow 0.5s cubic-bezier(0, 0, 0.44, 1.18);
}

.blog-card:hover,
.blog-card:focus-within {
    box-shadow: 0 0 9px rgb(0 0 0 / 20%);
}

.blog-card-image {
    position: relative;
    display: block;
    overflow: hidden;
}

.blog-card-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s cubic-bezier(0, 0, 0.44, 1.18);
}

.blog-card-image:hover img {
    transform: scale(1.05);
}

.blog-card-image time {
    position: absolute;
    inset: 15px auto auto 15px;
    display: grid;
    gap: 5px;
    min-width: 53px;
    padding: 7px;
    background: #fff;
    color: #333;
    font-size: 22px;
    line-height: 1;
}

.blog-card-image small {
    font-size: 12px;
    font-weight: 600;
}

.blog-card-body {
    padding: 25px;
    overflow-wrap: anywhere;
}

.blog-card h2 {
    margin: 0 0 10px;
    color: #333;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
}

.blog-card h2 a,
.blog-widget a {
    color: inherit;
}

.blog-card h2 a:hover,
.blog-widget a:hover {
    color: #0169ad;
}

.blog-card-body p {
    margin: 0 0 10px;
}

.blog-read-more,
.blog-pagination a {
    color: #0169ad;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.blog-pagination a {
    padding: 10px 18px;
    border: 2px solid #e9e9e9;
}

.blog-filter-title {
    margin-top: 0;
}

.blog-widget + .blog-widget {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9e9e9;
}

.blog-widget h2 {
    margin: 0 0 20px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
}

.blog-widget ul,
.blog-article-categories,
.blog-article-tags {
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-widget li + li {
    margin-top: 12px;
}

.blog-widget [aria-current='page'] {
    color: #0169ad;
    font-weight: 600;
}

.blog-widget-products li {
    display: flow-root;
}

.blog-widget-products img {
    float: left;
    margin-right: 12px;
    object-fit: contain;
}

.blog-widget-products span {
    display: block;
    color: #0169ad;
    font-weight: 600;
}

.blog-mobile-sidebar {
    display: none;
}

.blog-article > header {
    text-align: center;
}

.blog-article h1 {
    margin: 15px 0 16px;
    color: #333;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.4;
}

.blog-article-categories,
.blog-article-tags,
.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.blog-article-categories a {
    display: inline-block;
    padding: 2px 9px;
    background: #0169ad;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-article-meta {
    margin: 0 0 15px;
}

.blog-featured-image {
    display: block;
    max-width: min(100%, 992px);
    height: auto;
    margin: 0 auto 30px;
}

.blog-article-body {
    overflow-wrap: anywhere;
}

.blog-article-body p {
    margin-bottom: 20px;
}

.blog-article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
}

.blog-article-body iframe {
    display: block;
    width: min(100%, 800px);
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0 auto 20px;
    border: 0;
}

.blog-article-tags {
    justify-content: start;
    margin-top: 30px;
}

.blog-article-tags li {
    padding: 2px 8px;
    border: 1px solid #e9e9e9;
}

@media (max-width: 1024px) {
    .blog-banner {
        padding-block: 15px;
        background-position: center;
    }

    .blog-banner h1,
    .blog-banner-title {
        font-size: 36px;
    }

    .blog-archive {
        display: block;
    }

    .blog-desktop-sidebar {
        display: none;
    }

    .blog-mobile-sidebar {
        position: fixed;
        z-index: 3;
        inset: 45% auto auto 0;
        display: block;
        background: #fff;
        color: #333;
        box-shadow: 0 1px 5px rgb(0 0 0 / 15%);
    }

    .blog-mobile-sidebar summary {
        display: grid;
        width: 50px;
        height: 50px;
        place-items: center;
        cursor: pointer;
    }

    .blog-mobile-sidebar summary::before {
        width: 18px;
        height: 1px;
        background: currentColor;
        box-shadow:
            0 -6px currentColor,
            0 6px currentColor;
        content: '';
    }

    .blog-mobile-sidebar[open] {
        inset-block-start: 15%;
    }

    .blog-sidebar-panel {
        width: min(300px, calc(100vw - 40px));
        max-height: 65vh;
        padding: 0 20px 20px;
        overflow: auto;
    }
}

@media (max-width: 767px) {
    .blog-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .blog-article h1 {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-card-image img {
        transition: none;
    }
}
