html,
body {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: #edf5f1;
}

.blog-main {
    flex-grow: 1;
    color: #14382c;
}

.blog-shell {
    width: min(1720px, 100% - 48px);
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .post-hero-text {
        padding: 40px min(5vw, 48px);
    }
}

@media (max-width: 768px) {
    .blog-shell {
        width: min(1720px, 100% - 20px);
    }

    .post-hero {
        grid-template-columns: 1fr;
    }

    .post-hero-media {
        min-height: 220px;
    }

    .post-title {
        font-size: 32px;
    }
}

/* ===== Blog post article ===== */

.post-article {
    display: block;
}

.post-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: stretch;
    background: linear-gradient(135deg, #0f3f2b 0%, #1f6f4e 60%, #2f8f63 100%);
    min-height: 340px;
}

.post-hero-text {
    padding: 56px min(6vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.post-tag {
    align-self: flex-start;
    background: #ffffff;
    color: #0f3f2b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
}

.post-title {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(28px, 3.6vw, 48px);
    line-height: 1.15;
    font-weight: 800;
    color: #f4fff9;
    letter-spacing: -0.01em;
}

.post-excerpt {
    margin: 0;
    font-size: clamp(16px, 1.4vw, 20px);
    font-style: italic;
    color: rgba(244, 255, 249, 0.92);
    line-height: 1.5;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    color: rgba(244, 255, 249, 0.85);
    font-size: 15px;
}

.post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-meta-dot {
    color: rgba(244, 255, 249, 0.5);
}

.post-hero-media {
    position: relative;
    overflow: hidden;
}

.post-hero-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.post-body {
    margin: 0 auto;
    padding: 40px 0 64px;
    max-width: 880px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-body > p {
    margin: 0;
    font-size: clamp(16px, 1.15vw, 19px);
    line-height: 1.7;
    color: #1f5c45;
    text-align: justify;
}

.post-body h2 {
    margin: 12px 0 0;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 800;
    color: #0f3f2b;
    line-height: 1.25;
}

.post-numbered-list,
.post-bullet-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.post-numbered-list {
    counter-reset: post-step;
}

.post-numbered-list li {
    position: relative;
    padding-left: 40px;
    font-size: clamp(16px, 1.15vw, 19px);
    line-height: 1.7;
    color: #1f5c45;
}

.post-numbered-list li::before {
    counter-increment: post-step;
    content: counter(post-step);
    position: absolute;
    left: 0;
    top: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1f6f4e;
    color: #f4fff9;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-bullet-list li {
    position: relative;
    padding-left: 24px;
    font-size: clamp(16px, 1.15vw, 19px);
    line-height: 1.7;
    color: #1f5c45;
}

.post-bullet-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1f6f4e;
}

.post-numbered-list strong,
.post-bullet-list strong {
    color: #0f3f2b;
}

.post-figure {
    margin: 12px 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid rgba(86, 156, 121, 0.3);
    border-radius: 16px;
}

.post-figure svg,
.post-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.post-figure figcaption {
    margin-top: 14px;
    font-size: 14px;
    font-style: italic;
    text-align: center;
    color: #5a7168;
}

.post-stat {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 16px;
    background: rgba(31, 111, 78, 0.1);
    border-left: 4px solid #1f6f4e;
    border-radius: 8px;
    padding: 18px 20px;
}

.post-stat-number {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    color: #0f3f2b;
}

.post-stat-caption {
    font-size: 15px;
    line-height: 1.5;
    color: #1f5c45;
    max-width: 46ch;
}

.post-callout {
    margin: 8px 0;
    padding: 20px 24px;
    background: rgba(31, 111, 78, 0.1);
    border-left: 4px solid #1f6f4e;
    border-radius: 8px;
    font-weight: 700;
    font-size: clamp(17px, 1.3vw, 21px);
    line-height: 1.6;
    color: #124833;
    text-align: left;
}

.post-references {
    margin: 0;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #4d6359;
}

.post-references a {
    color: #1f6f4e;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-references a:hover {
    color: #0f3f2b;
}
