.blog-page {
    background: #f6fcff;
    color: #163247;
}

.blog-header,
.blog-article-header {
    background: #006aa7;
    color: #fff;
}

.blog-header-inner {
    max-width: 900px;
    padding-top: 88px;
    padding-bottom: 82px;
}

.blog-header h1,
.blog-article-header h1 {
    margin: 24px 0 18px;
    color: #fff;
    font-family: "DM Sans", sans-serif;
    font-size: clamp(2.35rem, 5vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.blog-header p,
.blog-article-header p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
    line-height: 1.75;
}

.blog-index-section {
    padding-top: 58px;
}

.blog-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 34px;
    padding-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.blog-filters a {
    flex: 0 0 auto;
    padding: 10px 15px;
    border: 1px solid #c9dce8;
    border-radius: 6px;
    color: #244b63;
    background: #fff;
    font-weight: 700;
    text-decoration: none;
}

.blog-filters a:hover,
.blog-filters a.active {
    border-color: #006aa7;
    color: #fff;
    background: #006aa7;
}

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

.blog-card {
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #d8e6ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(8, 75, 128, 0.08);
}

.blog-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eaf5fb;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-card:hover .blog-card-media img {
    transform: scale(1.035);
}

.blog-card-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #006aa7;
    font-family: "DM Sans", sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
}

.blog-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.blog-card-meta,
.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: #60798a;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-card-meta span {
    color: #006aa7;
}

.blog-card h2 {
    margin: 16px 0 12px;
    font-family: "DM Sans", sans-serif;
    font-size: 1.35rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.blog-card h2 a,
.blog-read-link {
    color: #12374f;
    text-decoration: none;
}

.blog-card p {
    margin: 0 0 20px;
    color: #567185;
    line-height: 1.65;
}

.blog-read-link {
    margin-top: auto;
    color: #006aa7;
    font-weight: 800;
}

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 44px;
}

.blog-pagination a {
    padding: 10px 16px;
    border: 1px solid #c9dce8;
    border-radius: 6px;
    color: #006aa7;
    background: #fff;
    font-weight: 700;
    text-decoration: none;
}

.blog-empty {
    padding: 70px 24px;
    border: 1px dashed #b8d2e1;
    text-align: center;
    background: #fff;
}

.blog-empty span {
    color: #006aa7;
    font-weight: 800;
    text-transform: uppercase;
}

.blog-article-header-inner {
    max-width: 940px;
    padding-top: 72px;
    padding-bottom: 74px;
}

.blog-back-link {
    display: inline-block;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    text-decoration: none;
}

.blog-article-meta {
    margin-top: 26px;
    color: rgba(255, 255, 255, 0.72);
}

.blog-article-cover-wrap {
    max-width: 1120px;
    margin-top: 48px;
}

.blog-article-cover {
    display: block;
    width: 100%;
    max-height: 620px;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(8, 75, 128, 0.13);
}

.blog-article-layout {
    max-width: 900px;
    padding-top: 56px;
    padding-bottom: 82px;
}

.blog-article-content {
    color: #263f50;
    font-size: 1.05rem;
    line-height: 1.85;
}

.blog-article-content h1,
.blog-article-content h2,
.blog-article-content h3 {
    margin: 1.7em 0 0.65em;
    color: #12374f;
    font-family: "DM Sans", sans-serif;
    letter-spacing: 0;
}

.blog-article-content h2 {
    font-size: 1.8rem;
}

.blog-article-content h3 {
    font-size: 1.35rem;
}

.blog-article-content a {
    color: #006aa7;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
}

.blog-article-content table {
    width: 100%;
    border-collapse: collapse;
}

.blog-article-content th,
.blog-article-content td {
    padding: 12px;
    border: 1px solid #cddde6;
    text-align: left;
}

.blog-tags {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #d8e6ee;
}

.blog-tags > span {
    display: block;
    margin-bottom: 12px;
    color: #60798a;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.blog-tags div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-tags div span {
    padding: 8px 12px;
    border: 1px solid #c9dce8;
    border-radius: 999px;
    color: #315a73;
    background: #fff;
    font-size: 0.85rem;
}

.blog-article-footer {
    margin-top: 44px;
}

@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .blog-header-inner,
    .blog-article-header-inner {
        padding-top: 58px;
        padding-bottom: 56px;
    }

    .blog-header h1,
    .blog-article-header h1 {
        font-size: 2.25rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-pagination {
        justify-content: space-between;
        gap: 8px;
    }

    .blog-pagination span {
        font-size: 0.86rem;
    }

    .blog-article-cover-wrap {
        margin-top: 28px;
    }

    .blog-article-cover {
        aspect-ratio: 4 / 3;
    }
}
