.blog-page {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    padding-bottom: 1.8rem;
}

.blog-hero,
.blog-posts,
.blog-taxonomies {
    padding-left: 7rem;
    padding-right: 7rem;
}

.blog-hero {
    padding-top: 1.2rem;
}

.blog-hero__title {
    font-size: clamp(1.9rem, 4.4vw, 3rem);
    line-height: 1.08;
    font-weight: 800;
    color: #101f35;
}

.blog-hero__count {
    margin-top: 0.45rem;
    font-size: 1rem;
    line-height: 1.35;
    color: #415773;
    font-weight: 700;
}

.blog-hero__lead {
    margin-top: 0.55rem;
    max-width: 64ch;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #4e6077;
}

.blog-posts__title {
    font-size: 1.25rem;
    line-height: 1.2;
    margin-bottom: 0;
    color: #ffffff;
}

.blog-posts__head {
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    color: #ffffff;
    background-color: #0076b1;
    background-image: linear-gradient(to bottom, #29b7ff 0%, #0076b1 100%);
    border-radius: 4px;
    padding: 0.62rem 0.72rem;
    box-shadow: 0 1px 3px rgba(10, 69, 122, 0.08);
}

.blog-posts__sort-form {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.blog-posts__sort-label {
    font-size: 0.84rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.92);
}

.blog-posts__sort-select {
    min-height: 34px;
    border: 1px solid rgba(20, 51, 86, 0.25);
    border-radius: 4px;
    background: #ffffff;
    color: #143356;
    font-size: 0.84rem;
    line-height: 1;
    padding: 0.4rem 0.6rem;
}

.blog-posts__sort-select option {
    color: #143356;
    background: #ffffff;
}

.blog-grid {
    column-count: 3;
    column-gap: 1rem;
}

.blog-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 1rem;
    background: #ffffff;
    border: 1px solid rgba(13, 31, 56, 0.12);
    border-radius: 6px;
    overflow: hidden;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.blog-card__image-wrap {
    display: block;
    margin: 0.8rem;
    border: 1px solid rgba(13, 31, 56, 0.18);
    border-radius: 5px;
    overflow: hidden;
    min-height: 190px;
    background: #f4f7fb;
}

.blog-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__image-placeholder {
    display: block;
    width: 100%;
    min-height: 190px;
    background: linear-gradient(135deg, #d9e5f4 0%, #f3f8ff 100%);
}

.blog-card__content {
    padding: 0 0.8rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-card__title {
    font-size: 1.02rem;
    line-height: 1.35;
    font-weight: 700;
}

.blog-card__title a {
    color: #102947;
    text-decoration: none;
}

.blog-card__title a:hover,
.blog-card__title a:focus-visible {
    color: #0a5da8;
}

.blog-card__date {
    font-size: 0.82rem;
    color: #4d6077;
}

.blog-card__excerpt {
    font-size: 0.93rem;
    color: #3f5269;
    line-height: 1.55;
    margin-bottom: 0.35rem;
}

.blog-card__actions {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.65rem;
}

.blog-card__button {
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0.64rem 0.88rem;
    border-radius: 4px;
    color: #ffffff;
    background-color: #0076b1;
    background-image: linear-gradient(to bottom, #29b7ff 0%, #0076b1 100%);
    border: 0;
    font-weight: 700;
}

.blog-pagination {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.blog-pagination__summary {
    color: #4b617c;
    font-size: 0.9rem;
}

.blog-pagination__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.36rem;
}

.blog-pagination__nav .page-numbers {
    text-decoration: none;
    color: #143356;
    border: 1px solid rgba(20, 51, 86, 0.25);
    border-radius: 4px;
    padding: 0.44rem 0.62rem;
    font-size: 0.86rem;
    line-height: 1;
    background: #ffffff;
}

.blog-pagination__nav .page-numbers.current {
    color: #ffffff;
    background: #0f6ea4;
    border-color: #0f6ea4;
}

.blog-taxonomies {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.blog-taxonomies__block {
    border: 1px solid rgba(15, 36, 62, 0.12);
    border-radius: 6px;
    padding: 0.95rem;
    background: #ffffff;
}

.blog-taxonomies__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.blog-taxonomies__title {
    font-size: 1.05rem;
    line-height: 1.2;
    color: #102947;
}

.blog-taxonomies__more {
    text-decoration: none;
    color: #0b5c9f;
    font-size: 0.87rem;
    font-weight: 700;
}

.blog-taxonomies__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-taxonomies__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: auto;
    text-decoration: none;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    padding: 0.42rem 0.64rem;
    background-color: #0076b1;
    background-image: linear-gradient(to bottom, #29b7ff 0%, #0076b1 100%);
    box-shadow: 0 1px 2px rgba(10, 69, 122, 0.08);
    font-size: 0.86rem;
    line-height: 1;
}

.blog-taxonomies__chip strong {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.79rem;
}

.blog-posts__empty,
.blog-taxonomies__empty {
    color: #4b617c;
    font-size: 0.95rem;
}

.blog-posts__empty-state {
    padding: 0.2rem 0 0.1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    max-width: 700px;
}

.blog-posts__empty-title {
    color: #1f3552;
    font-size: clamp(1.04rem, 2vw, 1.24rem);
    line-height: 1.3;
    margin: 0;
    font-weight: 700;
}

.blog-posts__empty-state .blog-posts__empty {
    margin: 0;
    max-width: 62ch;
    color: #506782;
    font-size: 0.93rem;
    line-height: 1.55;
}

.blog-posts__empty-button {
    margin-top: 0.3rem;
    text-decoration: none;
    font-size: 0.86rem;
    line-height: 1;
    padding: 0.62rem 0.84rem;
    border-radius: 4px;
    font-weight: 700;
}

.blog-posts__empty-button--forum {
    color: #ffffff;
    background-color: #0076b1;
    background-image: linear-gradient(to bottom, #29b7ff 0%, #0076b1 100%);
}


@media (max-width: 1280px) {

    .blog-hero,
    .blog-posts,
    .blog-taxonomies {
        padding-left: 4rem;
        padding-right: 4rem;
    }

    .blog-grid {
        column-count: 2;
    }
}

@media (max-width: 760px) {
    .blog-page {
        gap: 1rem;
        padding-bottom: 1rem;
    }

    .blog-hero,
    .blog-posts,
    .blog-taxonomies {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .blog-grid {
        column-count: 1;
    }

    .blog-taxonomies__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-posts__head {
        flex-direction: column;
        align-items: flex-start;
    }

}

.single-blog-page {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding-bottom: 1.8rem;
}

.single-blog,
.single-blog-related {
    padding-left: 7rem;
    padding-right: 7rem;
}

.single-blog {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.single-blog__hero {
    padding-top: 1.1rem;
}

.single-blog__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.1;
    color: #101f35;
    font-weight: 800;
}

.single-blog__lead {
    margin-top: 0.75rem;
    max-width: 68ch;
    font-size: 1.06rem;
    line-height: 1.55;
    color: #425976;
    font-weight: 600;
}

.single-blog__date {
    margin-top: 0.8rem;
    display: inline-block;
    font-size: 0.88rem;
    color: #566980;
}

.single-blog__image-wrap {
    border: 1px solid rgba(16, 40, 69, 0.15);
    border-radius: 8px;
    overflow: hidden;
    background: #ecf3fb;
}

.single-blog__image {
    width: 100%;
    height: auto;
    display: block;
}

.single-blog__content {
    color: #27384d;
    font-size: 1.01rem;
    line-height: 1.72;
}

.single-blog__content>*+* {
    margin-top: 0.95rem;
}

.single-blog__content h2,
.single-blog__content h3,
.single-blog__content h4 {
    color: #102947;
    line-height: 1.25;
}

.single-blog__content a {
    color: #0b5c9f;
}

.single-blog__content ul,
.single-blog__content ol {
    padding-left: 1.2rem;
}

.single-blog__tags {
    margin-top: 0.4rem;
    border-top: 1px solid rgba(16, 50, 87, 0.12);
    padding-top: 1rem;
}

.single-blog__section-title {
    font-size: 1.02rem;
    line-height: 1.2;
    color: #102947;
    margin-bottom: 0.7rem;
}

.single-blog-related {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.single-blog-related__title {
    font-size: 1.35rem;
    line-height: 1.2;
    color: #102947;
}

.single-blog-related__track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0.2rem;
    padding-bottom: 0.35rem;
}

.single-blog-related-card {
    flex: 0 0 calc(((100% - 2rem) / 3) - 0.75rem);
    min-width: 360px;
    border: 1px solid rgba(15, 29, 47, 0.13);
    border-radius: 6px;
    background: #ffffff;
    overflow: hidden;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.single-blog-related-card__image-wrap {
    display: block;
    margin: 0.75rem;
    border: 1px solid rgba(15, 29, 47, 0.16);
    border-radius: 4px;
    overflow: hidden;
    height: 300px;
    background: #eaf2fc;
}

.single-blog-related-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-blog-related-card__image-placeholder {
    display: block;
    width: 100%;
    height: 300px;
    background: linear-gradient(140deg, #dbe8f8 0%, #f2f8ff 100%);
}

.single-blog-related-card__content {
    padding: 0 0.75rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}

.single-blog-related-card__title {
    font-size: 1.03rem;
    line-height: 1.32;
}

.single-blog-related-card__title a {
    color: #102947;
    text-decoration: none;
    font-weight: 700;
}

.single-blog-related-card__title a:hover,
.single-blog-related-card__title a:focus-visible {
    color: #0a5da8;
}

.single-blog-related-card__excerpt {
    color: #40556d;
    font-size: 0.93rem;
    line-height: 1.55;
}

.single-blog-related-card__actions {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.6rem;
}

.single-blog-related-card__button {
    color: #ffffff;
    background-color: #0076b1;
    background-image: linear-gradient(to bottom, #29b7ff 0%, #0076b1 100%);
    text-decoration: none;
    padding: 0.58rem 0.78rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.86rem;
    line-height: 1;
}

.single-blog-related-card__date {
    color: #4b6079;
    font-size: 0.82rem;
}

@media (max-width: 1280px) {

    .single-blog,
    .single-blog-related {
        padding-left: 4rem;
        padding-right: 4rem;
    }

    .single-blog-related-card {
        flex: 0 0 calc(((100% - 1rem) / 2) - 0.65rem);
    }
}

@media (max-width: 760px) {
    .single-blog-page {
        padding-bottom: 1rem;
    }

    .single-blog,
    .single-blog-related {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .single-blog__title {
        font-size: 1.75rem;
    }

    .single-blog__lead {
        font-size: 0.98rem;
    }

    .single-blog-related__title {
        font-size: 1.18rem;
    }

    .single-blog-related-card {
        flex: 0 0 90%;
        min-width: 90%;
    }

    .single-blog-related-card__image-wrap,
    .single-blog-related-card__image-placeholder {
        height: 240px;
    }
}