.blog-page {
    background:
        linear-gradient(180deg, #ffffff 0%, var(--paper) 38%, #edf3ed 100%);
}

.blog-page .site-nav {
    color: var(--forest-dark);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(18px);
}

.blog-page .site-nav .brand {
    color: var(--forest-dark);
}

.blog-page .site-nav .nav-link {
    color: var(--slate-700);
}

.blog-page .site-nav .nav-link:hover,
.blog-page .site-nav .nav-link.active {
    color: var(--forest);
    background: rgba(20, 83, 45, 0.08);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.blog-hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    color: var(--white);
    background: var(--forest-dark);
}

.blog-hero-media,
.blog-hero-overlay {
    position: absolute;
    inset: 0;
}

.blog-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-hero-overlay {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.42) 46%, rgba(7, 18, 14, 0.9) 100%),
        linear-gradient(120deg, rgba(20, 83, 45, 0.74), rgba(16, 185, 129, 0.12) 52%, rgba(15, 23, 42, 0.42));
}

.blog-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 28px;
    min-height: 720px;
    padding-top: 132px;
    padding-bottom: 72px;
    align-items: end;
}

.blog-hero-copy {
    max-width: 860px;
}

.blog-hero .eyebrow {
    color: var(--gold-soft);
}

.blog-hero h1 {
    margin: 0;
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0;
}

.blog-hero p {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
}

.blog-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.blog-hero-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-weight: 900;
    backdrop-filter: blur(12px);
    transition: transform var(--ease), background var(--ease);
}

.blog-hero-actions a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.blog-hero-card {
    padding: 22px;
    border-radius: var(--radius-card);
    align-self: end;
}

.blog-hero-card span {
    color: var(--gold-soft);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.blog-hero-card h2 {
    margin: 12px 0 10px;
    color: var(--white);
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 1.45rem;
    line-height: 1.18;
}

.blog-hero-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.94rem;
}

.blog-hero-card a {
    display: inline-flex;
    margin-top: 18px;
    color: var(--gold-soft);
    font-weight: 900;
}

.blog-content-section {
    padding: 72px 0 94px;
}

.blog-layout {
    display: grid;
    gap: 34px;
}

.blog-main {
    min-width: 0;
}

.featured-article,
.article-card,
.sidebar-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.featured-article {
    display: grid;
    overflow: hidden;
}

.featured-media,
.article-image {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--slate-100);
}

.featured-media {
    min-height: 320px;
}

.featured-media img,
.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 520ms ease;
}

.featured-article:hover .featured-media img,
.article-card:hover .article-image img {
    transform: scale(1.06);
}

.article-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.9);
    color: var(--forest);
    font-size: 0.8rem;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.featured-body,
.article-body {
    display: grid;
    gap: 14px;
}

.featured-body {
    padding: 24px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--slate-500);
    font-size: 0.82rem;
    font-weight: 800;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    background: rgba(20, 83, 45, 0.07);
}

.featured-body h2,
.article-body h3 {
    margin: 0;
    color: var(--forest-dark);
    font-family: "Manrope", "Inter", sans-serif;
    letter-spacing: 0;
}

.featured-body h2 {
    font-size: 2rem;
    line-height: 1.12;
}

.featured-body p,
.article-body p {
    margin: 0;
    color: var(--slate-500);
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--forest);
    font-weight: 900;
    transition: color var(--ease), transform var(--ease);
}

.article-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.article-link:hover {
    color: var(--emerald);
    transform: translateX(3px);
}

.blog-section-head {
    margin-top: 52px;
    margin-bottom: 26px;
}

.blog-section-head h2 {
    font-size: 2.15rem;
}

.article-grid {
    display: grid;
    gap: 18px;
}

.article-card {
    display: flex;
    min-height: 100%;
    overflow: hidden;
    flex-direction: column;
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.28);
    box-shadow: var(--shadow-card);
}

.article-image {
    aspect-ratio: 16 / 10;
}

.article-body {
    flex: 1;
    padding: 20px;
}

.article-body h3 {
    font-size: 1.24rem;
    line-height: 1.24;
}

.article-body p {
    font-size: 0.94rem;
}

.blog-sidebar {
    display: grid;
    gap: 18px;
    align-self: start;
}

.sidebar-card {
    padding: 20px;
}

.sidebar-card h2 {
    margin: 0 0 14px;
    color: var(--forest-dark);
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 1.12rem;
    line-height: 1.24;
}

.search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 10px;
}

.search-form input {
    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: var(--radius-card);
    background: var(--white);
    color: var(--slate);
}

.search-form input:focus {
    border-color: rgba(16, 185, 129, 0.62);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
    outline: none;
}

.search-form button {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: var(--radius-card);
    background: var(--forest);
    color: var(--white);
    transition: transform var(--ease), background var(--ease);
}

.search-form button:hover {
    transform: translateY(-2px);
    background: var(--emerald);
}

.search-form svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.category-pills a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 11px;
    border-radius: var(--radius-pill);
    background: rgba(20, 83, 45, 0.07);
    color: var(--forest);
    font-size: 0.9rem;
    font-weight: 900;
    transition: background var(--ease), color var(--ease), transform var(--ease);
}

.category-pills a:hover {
    transform: translateY(-2px);
    background: var(--forest);
    color: var(--white);
}

.category-pills span {
    color: var(--gold);
}

.popular-list {
    display: grid;
    gap: 12px;
}

.popular-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: var(--radius-card);
    background: rgba(15, 23, 42, 0.04);
    transition: background var(--ease), transform var(--ease);
}

.popular-item:hover {
    transform: translateY(-2px);
    background: rgba(16, 185, 129, 0.1);
}

.popular-item img {
    width: 76px;
    height: 72px;
    border-radius: var(--radius-card);
    object-fit: cover;
}

.popular-item strong,
.popular-item small {
    display: block;
}

.popular-item strong {
    color: var(--forest-dark);
    font-size: 0.93rem;
    line-height: 1.28;
}

.popular-item small {
    margin-top: 5px;
    color: var(--slate-500);
    font-size: 0.82rem;
}

.sidebar-cta {
    background:
        linear-gradient(150deg, rgba(16, 185, 129, 0.18), rgba(255, 255, 255, 0.06)),
        var(--forest);
    color: var(--white);
    box-shadow: var(--shadow-green);
}

.sidebar-cta span {
    display: inline-flex;
    color: var(--gold-soft);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.sidebar-cta h2 {
    margin-top: 10px;
    color: var(--white);
    font-size: 1.42rem;
}

.sidebar-cta p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.76);
}

.sidebar-cta .btn {
    width: 100%;
    background: var(--white);
    color: var(--forest);
    box-shadow: none;
}

.sidebar-cta .btn:hover {
    color: var(--white);
    background: var(--emerald);
}

@media (min-width: 700px) {
    .blog-hero h1 {
        font-size: 4rem;
    }

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

    .featured-article {
        grid-template-columns: 1fr 1fr;
    }

    .featured-media {
        min-height: 100%;
    }

    .featured-body {
        padding: 32px;
    }
}

@media (min-width: 1024px) {
    .blog-page .site-nav {
        top: 12px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: var(--radius-pill);
    }

    .blog-hero {
        min-height: 760px;
    }

    .blog-hero-inner {
        grid-template-columns: minmax(0, 1fr) 390px;
        min-height: 760px;
    }

    .blog-hero h1 {
        font-size: 4.7rem;
    }

    .blog-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
        align-items: start;
    }

    .blog-sidebar {
        position: sticky;
        top: 112px;
    }
}

@media (min-width: 1220px) {
    .blog-layout {
        grid-template-columns: minmax(0, 790px) 360px;
        justify-content: space-between;
    }
}

@media (max-width: 430px) {
    .blog-hero {
        min-height: 760px;
    }

    .blog-hero-inner {
        min-height: 760px;
        padding-top: 112px;
        padding-bottom: 46px;
    }

    .blog-hero h1 {
        font-size: 2.42rem;
    }

    .blog-hero-card {
        padding: 18px;
    }

    .featured-body h2,
    .blog-section-head h2 {
        font-size: 1.72rem;
    }

    .article-body h3 {
        font-size: 1.14rem;
    }

    .popular-item {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .popular-item img {
        width: 68px;
        height: 68px;
    }
}
