:root {
    --blog-green: #0d746f;
    --blog-green-dark: #075d59;
    --blog-red: #ed4f58;
    --blog-text: #373737;
    --blog-muted: #727272;
    --blog-soft: #f5f8f7;
    --blog-border: #e8eeed;
    --blog-container: 1180px;
}

.blog-page,
.article-page {
    background: #ffffff;
    color: var(--blog-text);
}

.blog-page *,
.article-page * {
    box-sizing: border-box;
}

.blog-page img,
.article-page img {
    display: block;
    max-width: 100%;
}

.blog-container {
    width: min(calc(100% - 40px), var(--blog-container));
    margin-inline: auto;
}

/* Hero matching the second reference image */
.blog-hero {
    position: relative;
    padding: 48px 0 112px;
    overflow: hidden;
    background: #ffffff;
}

.blog-hero__inner {
    position: relative;
    min-height: 360px;
}

.blog-hero__image {
    width: calc(100% - 60px);
    height: 355px;
    margin-left: 60px;
    overflow: hidden;
    border-radius: 18px;
    background: #ececec;
}

.blog-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-hero__label {
    position: absolute;
    left: 0;
    bottom: -58px;
    z-index: 2;

    width: min(520px, 48%);
    min-height: 165px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 28px 36px;
    overflow: hidden;

    /*border: 1px solid rgba(255, 255, 255, 0.45);*/
    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.32) 0%,
            rgba(255, 255, 255, 0.14) 45%,
            rgba(255, 255, 255, 0.08) 100%
        );

    /*box-shadow:*/
    /*    0 24px 55px rgba(48, 24, 13, 0.22),*/
    /*    inset 0 1px 0 rgba(255, 255, 255, 0.65),*/
    /*    inset 0 -1px 0 rgba(255, 255, 255, 0.12);*/

    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.blog-hero__label::after {
    content: '';
    position: absolute;
    left: -90px;
    right: -30px;
    bottom: -52px;
    height: 92px;
    z-index: -1;
    background: rgba(255, 255, 255, 0.92);
    filter: blur(24px);
    pointer-events: none;
}

.blog-hero__label h1 {
    margin: 0;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(35px, 4vw, 40px);
    font-style: normal;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -1px;
}

/* Featured blog */
.featured-blog {
    padding: 52px 0 72px;
    border-top: 1px solid #f5f5f5;
    border-bottom: 1px solid #f2f2f2;
}

.featured-blog__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr);
    align-items: center;
    gap: clamp(30px, 5vw, 72px);
}

.featured-blog__image {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: var(--blog-soft);
    /*aspect-ratio: 1.55 / 1;*/
}

.featured-blog__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.featured-blog__image:hover img {
    transform: scale(1.025);
}

.featured-blog__content h2 {
    margin: 0 0 18px;
    color: var(--blog-green-dark);
    font-size: clamp(25px, 35px, 35px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.035em;
}

.featured-blog__content h2 a,
.blog-card h2 a {
    color: inherit;
    text-decoration: none;
}

.featured-blog__content p {
    margin: 0 0 20px;
    color: var(--blog-muted);
    font-size: 16px;
    line-height: 1.7;
}

.blog-read-more,
.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--blog-red);
    font-weight: 600;
    text-underline-offset: 5px;
}

/* Blog grid */
.blog-list {
    padding: 72px 0 94px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 58px 18px;
}

.blog-card__image {
    display: block;
    overflow: hidden;
    border-radius: 15px;
    background: var(--blog-soft);
    aspect-ratio: 16 / 9;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.025);
}

.blog-card__body {
    padding-top: 15px;
}

.blog-card h2 {
    margin: 0;
    color: var(--blog-green-dark);
    font-size: clamp(18px, 20px, 20px) !important;
    font-weight: 500;
    line-height: 1.2;
}

.blog-pagination {
    margin-top: 62px;
    padding-top: 26px;
    border-top: 1px solid var(--blog-border);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.blog-pagination a {
    color: var(--blog-green-dark);
    font-weight: 700;
    text-decoration: none;
}

.blog-pagination span {
    color: var(--blog-muted);
}

.blog-message {
    padding: 22px;
    border: 1px solid var(--blog-border);
    border-radius: 12px;
    background: var(--blog-soft);
    text-align: center;
}

/* Article detail */
.article-page {
    padding: 54px 0 96px;
}

.article {
    width: min(100%, 920px);
    margin-inline: auto;
}

.article--message {
    min-height: 360px;
}

.back-link {
    margin-bottom: 40px;
    text-decoration: none;
}

.article__header {
    margin-bottom: 32px;
}

.article__eyebrow {
    margin: 0 0 12px;
    color: var(--blog-red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.article__header h1 {
    margin: 0 0 17px;
    color: var(--blog-green-dark);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.article__header time {
    color: var(--blog-muted);
    font-size: 14px;
}

.article__image {
    margin: 0 0 42px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--blog-soft);
}

.article__image img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
}

.article__content {
    color: #454545;
    font-size: 17px;
    line-height: 1.82;
}

.article__content > *:first-child {
    margin-top: 0;
}

.article__content h2,
.article__content h3,
.article__content h4 {
    color: var(--blog-green-dark);
    line-height: 1.2;
}

.article__content h2 {
    margin: 44px 0 16px;
    font-size: 34px;
}

.article__content h3 {
    margin: 34px 0 14px;
    font-size: 27px;
}

.article__content p,
.article__content ul,
.article__content ol,
.article__content figure,
.article__content blockquote {
    margin-top: 0;
    margin-bottom: 23px;
}

.article__content img {
    height: auto;
    border-radius: 12px;
}

.article__content a {
    color: var(--blog-red);
}

.article__content blockquote {
    padding: 22px 26px;
    border-left: 4px solid var(--blog-red);
    background: var(--blog-soft);
}

@media (max-width: 991px) {
    .blog-hero {
        padding: 40px 0 96px;
    }

    .blog-hero__inner {
        min-height: 310px;
    }

    .blog-hero__image {
        width: calc(100% - 35px);
        height: 290px;
        margin-left: 35px;
    }

    .blog-hero__label {
        bottom: -48px;
        width: min(430px, 55%);
        min-height: 135px;
    }

    .featured-blog__grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 46px 18px;
    }
}

@media (max-width: 640px) {
    .blog-container {
        width: min(calc(100% - 28px), var(--blog-container));
    }

    .blog-hero {
        padding: 22px 0 74px;
    }

    .blog-hero__inner {
        min-height: 230px;
    }

    .blog-hero__image {
        width: 100%;
        height: 220px;
        margin-left: 0;
        border-radius: 14px;
    }
.article__image img {
    width: 100%;
    max-height: 200px !important;
    object-fit: cover;
}
    .blog-hero__image img {
        object-position: 65% center;
    }

    .blog-hero__label {
        left: 0;
        bottom: -38px;
        width: min(78%, 320px);
        min-height: 96px;
        padding: 18px 24px;
        border-radius: 0 18px 18px 0;
    }

    .blog-hero__label h1 {
        font-size: 30px;
    }

    .featured-blog {
        padding: 42px 0 56px;
    }

    .featured-blog__content h2 {
        font-size: 34px;
        line-height: 1.04;
    }

    .blog-list {
        padding: 48px 0 70px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .blog-pagination {
        flex-wrap: wrap;
        gap: 14px 20px;
    }

    .article-page {
        padding: 34px 0 72px;
    }

    .article__header h1 {
        font-size: 42px;
    }

    .article__content {
        font-size: 16px;
    }
}
