/* Homepage: latest blog posts */

.nv-home-blog-section {
    padding: 112px 0;
    background: #f5f7f6;
    border-top: 1px solid #e8ede9;
    border-bottom: 1px solid #e8ede9;
}

.nv-home-blog-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 42px;
}

.nv-home-blog-heading > div {
    max-width: 790px;
}

.nv-home-blog-heading h2 {
    margin-top: 12px;
    font-size: clamp(2.3rem, 4.5vw, 4.2rem);
    line-height: .99;
    letter-spacing: -.055em;
    color: #151918;
}

.nv-home-blog-heading h2 span {
    color: var(--primary);
}

.nv-home-blog-heading p {
    max-width: 620px;
    margin-top: 20px;
    color: #68716c;
    line-height: 1.75;
}

.nv-home-blog-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid #dce4df;
    border-radius: 999px;
    background: #fff;
    color: #202622;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 750;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.nv-home-blog-all span {
    color: var(--primary);
    font-size: 1rem;
}

.nv-home-blog-all:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 200, 83, .45);
    box-shadow: 0 12px 28px rgba(20, 35, 27, .07);
}

.nv-home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.nv-home-blog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 350px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid #e0e7e2;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(18, 31, 23, .025);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.nv-home-blog-card::after {
    content: "";
    position: absolute;
    right: -76px;
    bottom: -82px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(0, 200, 83, .13);
    border-radius: 50%;
    pointer-events: none;
    transition: transform .35s ease, border-color .35s ease;
}

.nv-home-blog-card:hover {
    transform: translateY(-7px);
    border-color: rgba(0, 200, 83, .33);
    box-shadow: 0 24px 55px rgba(18, 31, 23, .09);
}

.nv-home-blog-card:hover::after {
    transform: translate(-10px, -8px);
    border-color: rgba(0, 200, 83, .32);
}

.nv-home-blog-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 26px;
}

.nv-home-blog-card-top time {
    color: #7c8780;
    font-size: .66rem;
    font-weight: 750;
    letter-spacing: .08em;
    white-space: nowrap;
}

.nv-home-blog-card-top > span {
    max-width: 65%;
    overflow: hidden;
    padding: 6px 9px;
    border: 1px solid rgba(0, 200, 83, .17);
    border-radius: 999px;
    background: rgba(0, 200, 83, .055);
    color: #087c3b;
    font-size: .62rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nv-home-blog-number {
    position: absolute;
    top: 66px;
    right: 26px;
    color: #f0f4f1;
    font-size: 4.3rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.08em;
    pointer-events: none;
}

.nv-home-blog-card h3 {
    position: relative;
    z-index: 1;
    margin: 48px 0 15px;
    max-width: 410px;
    font-size: clamp(1.35rem, 1.8vw, 1.75rem);
    line-height: 1.12;
    letter-spacing: -.04em;
}

.nv-home-blog-card h3 a {
    color: #171c19;
    text-decoration: none;
    text-wrap: pretty;
}

.nv-home-blog-card h3 a:hover {
    color: #07843d;
}

.nv-home-blog-card > p {
    position: relative;
    z-index: 1;
    margin: 0 0 28px;
    color: #69736d;
    font-size: .9rem;
    line-height: 1.75;
}

.nv-home-blog-read {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #edf1ee;
    color: #202622;
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
}

.nv-home-blog-read span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e0e7e2;
    border-radius: 50%;
    color: #07843d;
    transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}

.nv-home-blog-read:hover span {
    transform: translateX(3px);
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

@media (max-width: 980px) {
    .nv-home-blog-section {
        padding: 88px 0;
    }

    .nv-home-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nv-home-blog-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .nv-home-blog-section {
        padding: 76px 0;
    }

    .nv-home-blog-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
        margin-bottom: 28px;
    }

    .nv-home-blog-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .nv-home-blog-card,
    .nv-home-blog-card:last-child:nth-child(odd) {
        grid-column: auto;
        min-height: 315px;
        padding: 24px;
    }

    .nv-home-blog-card h3 {
        font-size: 1.5rem;
    }

    .nv-home-blog-number {
        right: 23px;
        font-size: 3.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nv-home-blog-card,
    .nv-home-blog-card::after,
    .nv-home-blog-all,
    .nv-home-blog-read span {
        transition: none;
    }

    .nv-home-blog-card:hover,
    .nv-home-blog-all:hover,
    .nv-home-blog-read:hover span {
        transform: none;
    }
}
