.blog-page {
    width: 100%;
}

.blog-hero-section,
.blog-filters-section,
.blog-list-section,
.blog-post-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.blog-hero-section {
    padding: 56px 0;
    border-bottom: 1px solid #e2e2ec;
    background: #fff;
}

.blog-hero-container,
.blog-filters-container,
.blog-list-container,
.blog-post-container {
    width: 100%;
    max-width: var(--content-max-width);
    box-sizing: border-box;
}

.blog-post-hero-meta {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.blog-post-hero-meta + h1 {
    margin-top: 12px;
}

.blog-hero-label {
    margin: 0;
    font-family: var(--second-family);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #252691;
}

.blog-hero-container h1 {
    margin: 12px 0 0;
    font-family: var(--second-family);
    font-size: 48px;
    font-weight: 700;
    line-height: 60px;
    color: #151525;
    overflow-wrap: anywhere;
}

.blog-hero-lead {
    margin: 4px 0 0;
    max-width: 672px;
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 400;
    line-height: 29.25px;
    color: #717188;
    overflow-wrap: anywhere;
}

.blog-filters-section {
    padding: 12px 0;
    background: #f6f6fa;
    border-bottom: 1px solid #e2e2ec;
}

.blog-filters-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-filter {
    padding: 6px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #717188;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.blog-filter:hover {
    background: rgba(37, 38, 145, 0.08);
    border-color: rgba(37, 38, 145, 0.18);
    color: #252691;
}

.blog-filter.is-active {
    background: #252691;
    border-color: #252691;
    color: #fff;
}

.blog-list-section {
    padding: 48px 0;
    background: #fff;
}

.blog-post-section {
    padding: 48px 0;
    background: #f6f6fa;
}

.blog-post-card {
    background: #fff;
    border: 1px solid #e2e2ec;
    border-radius: 16px;
    overflow: hidden;
}

.blog-post-cover {
    width: 100%;
    max-height: min(52vh, 420px);
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #e2e2ec;
}

.blog-post-body {
    padding: 32px;
    font-family: var(--font-family);
    color: #717188;
    min-width: 0;
}

.blog-post-body p {
    margin: 0 0 12px;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: #717188;
}

.blog-post-body p:last-child {
    margin-bottom: 0;
}

.blog-post-body p strong {
    color: #151525;
    font-weight: 600;
}

.blog-post-body h1,
.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4,
.blog-post-body h5,
.blog-post-body h6 {
    margin: 20px 0 12px;
    font-family: var(--second-family);
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    color: #151525;
    overflow-wrap: anywhere;
}

.blog-post-body h3,
.blog-post-body h4,
.blog-post-body h5,
.blog-post-body h6 {
    font-size: 16px;
    line-height: 22px;
}

.blog-post-body ul,
.blog-post-body ol {
    margin: 0 0 12px;
    padding-left: 18px;
    font-size: 14px;
    line-height: 22px;
}

.blog-post-body * {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.blog-post-body li {
    margin: 6px 0;
}

.blog-post-body a {
    color: #252691;
    font-weight: 600;
}

.blog-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.blog-post-footer {
    padding: 24px 32px 32px;
    border-top: 1px solid #e2e2ec;
}

.blog-post-footer .blog-read-more {
    margin-top: 0;
}

.blog-featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.blog-featured img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.blog-featured-content {
    padding: 8px 0;
}

.blog-featured-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-family: var(--font-family);
    font-size: 12px;
    line-height: 16px;
    color: #717188;
}

.blog-featured-meta img,
.blog-featured-date svg {
    width: 14px;
    height: 14px;
    display: block;
    opacity: 0.9;
}

.blog-featured-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #717188;
}

.blog-badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(37, 38, 145, 0.08);
    color: #252691;
    font-weight: 600;
}

.blog-featured h2 {
    margin: 12px 0;
    font-family: var(--second-family);
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
    color: #151525;
    overflow-wrap: anywhere;
}

.blog-featured p {
    margin: 0;
    max-width: 760px;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    color: #717188;
    overflow-wrap: anywhere;

   
}

.blog-read-more {
    margin-top: 16px;
    display: inline-flex;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #252691;
}

.blog-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.blog-card {
    border: 1px solid #e2e2ec;
    border-radius: 16px;
    overflow: hidden;
    background: #f6f6fa;
    display: block;
    text-decoration: none;
    min-width: 0;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.blog-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid #e2e2ec;
    display: block;
}

.blog-card-content {
    padding: 20px;
    min-width: 0;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--font-family);
    font-size: 12px;
    line-height: 16px;
}

.blog-card-meta span:first-child {
    color: #252691;
    font-weight: 600;
}

.blog-card-meta span:last-child {
    color: #717188;
    font-weight: 400;
}

.blog-card h3 {
    margin: 8px 0;
    font-family: var(--second-family);
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #151525;
    overflow-wrap: anywhere;
}

.blog-card p {
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #717188;
    overflow-wrap: anywhere;
}

.blog-card:hover {
    background: #ececfa;
    border-color: #d8daf2;
}

.blog-featured.is-hidden,
.blog-card.is-hidden {
    display: none;
}

.blog-featured,
.blog-grid {
    transition:
        opacity 0.26s ease,
        transform 0.26s ease;
}

.blog-featured.is-filter-fading,
.blog-grid.is-filter-fading {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

@media (max-width: 1200px) {
    .blog-hero-section,
    .blog-list-section,
    .blog-post-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }
}

@media (max-width: 1000px) {
    .blog-hero-container,
    .blog-filters-container,
    .blog-list-container,
    .blog-post-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .blog-hero-container h1 {
        font-size: 42px;
        line-height: 1.12;
    }

    .blog-hero-lead {
        font-size: 16px;
        line-height: 1.55;
    }

    .blog-post-cover {
        max-height: min(46vh, 360px);
    }

    .blog-post-body {
        padding: 28px;
    }

    .blog-post-footer {
        padding: 20px 28px 28px;
    }
}

@media (max-width: 700px) {
    .blog-hero-container,
    .blog-filters-container,
    .blog-list-container,
    .blog-post-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

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

    .blog-post-body,
    .blog-post-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .blog-post-footer {
        padding-bottom: 24px;
    }

    .blog-post-hero-meta {
        gap: 6px;
    }

    .blog-post-cover {
        max-height: min(42vh, 300px);
    }

    .blog-hero-container h1 {
        font-size: 34px;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .blog-hero-container,
    .blog-filters-container,
    .blog-list-container,
    .blog-post-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .blog-post-body,
    .blog-post-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .blog-hero-container h1 {
        font-size: 30px;
    }

    .blog-post-cover {
        max-height: 240px;
    }

    .blog-post-body h2 {
        font-size: 17px;
        line-height: 1.35;
    }

    .blog-post-body h3 {
        font-size: 15px;
        line-height: 1.35;
    }

    .blog-post-body p,
    .blog-post-body ul,
    .blog-post-body ol {
        font-size: 13px;
        line-height: 1.55;
    }
}