body.blog-home-page {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    --blog-home-card-radius: 12px;
}

.blog-home-main {
    position: relative;
    overflow: clip;
    background:
        radial-gradient(48rem 48rem at 14% 3%, rgba(71, 85, 105, 0.1), transparent 58%),
        radial-gradient(36rem 36rem at 86% 12%, rgba(9, 184, 80, 0.06), transparent 54%),
        linear-gradient(180deg, #f8f9fb 0%, #f4f6f8 48%, #eef1f4 100%);
}

html[data-bs-theme="dark"] .blog-home-main {
    background:
        radial-gradient(56rem 56rem at 16% 2%, rgba(163, 176, 196, 0.12), transparent 56%),
        radial-gradient(44rem 44rem at 88% 12%, rgba(48, 118, 255, 0.08), transparent 52%),
        linear-gradient(180deg, #090c11 0%, #0d1218 50%, #0b0e13 100%);
}

.blog-home-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(17, 19, 21, 0.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 19, 21, 0.032) 1px, transparent 1px);
    background-size: 120px 120px;
    mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 72%);
    opacity: 0.08;
    pointer-events: none;
}

html[data-bs-theme="dark"] .blog-home-main::before {
    background-image:
        linear-gradient(rgba(var(--bs-white-rgb), 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--bs-white-rgb), 0.03) 1px, transparent 1px);
    mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 70%);
    opacity: 0.18;
}

.blog-home-main > section {
    position: relative;
    z-index: 1;
}

.blog-home-main > section + section {
    border-top: 1px solid rgba(17, 19, 21, 0.12);
}

html[data-bs-theme="dark"] .blog-home-main > section + section {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.blog-home-hero {
    display: flex;
    align-items: center;
    min-height: clamp(28rem, 72vh, 36rem);
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.blog-home-hero .container {
    position: relative;
    z-index: 2;
}

.blog-home-hero .display-4 {
    max-width: 12ch;
    margin-inline: auto;
    color: var(--bs-heading-color);
    letter-spacing: -0.05em;
    text-wrap: balance;
}

html[data-bs-theme="dark"] .blog-home-hero .display-4 {
    color: var(--bs-white);
}

.blog-home-lead {
    max-width: 46rem;
    margin-inline: auto;
    color: rgba(51, 65, 85, 0.76);
    font-size: clamp(1.1rem, 1.7vw, 1.35rem);
    line-height: 1.55;
    text-wrap: balance;
}

html[data-bs-theme="dark"] .blog-home-lead {
    color: rgba(var(--bs-white-rgb), 0.68);
}

.blog-home-content {
    padding-top: clamp(2.75rem, 5vw, 4rem) !important;
    padding-bottom: clamp(4rem, 7vw, 6rem);
}

.blog-home-layout {
    --bs-gutter-x: 2.75rem;
    --bs-gutter-y: 2.75rem;
    justify-content: center;
    align-items: flex-start;
}

.blog-home-feed-column {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

#blog-post-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
    align-items: start;
}

#blog-post-list > article {
    margin-bottom: 0 !important;
    padding: 1rem !important;
    border: 1px solid rgba(17, 19, 21, 0.08) !important;
    border-radius: var(--blog-home-card-radius) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 251, 0.95)),
        rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

html[data-bs-theme="dark"] #blog-post-list > article {
    border-color: rgba(var(--bs-white-rgb), 0.08) !important;
    background:
        linear-gradient(135deg, rgba(26, 31, 39, 0.94), rgba(14, 18, 23, 0.96)),
        rgba(16, 18, 22, 0.94);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
}

#blog-post-list > article:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--bs-primary-rgb), 0.28) !important;
    box-shadow: 0 30px 64px rgba(15, 23, 42, 0.12);
}

html[data-bs-theme="dark"] #blog-post-list > article:hover {
    box-shadow: 0 32px 76px rgba(0, 0, 0, 0.34);
}

#blog-post-list > article > .row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    align-items: stretch;
    height: 100%;
}

#blog-post-list > article .col-md-4,
#blog-post-list > article .col-md-8 {
    display: block;
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

#blog-post-list > article img.card-img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--blog-home-card-radius);
    border: 1px solid rgba(17, 19, 21, 0.08);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

html[data-bs-theme="dark"] #blog-post-list > article img.card-img {
    border-color: rgba(var(--bs-white-rgb), 0.08);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

#blog-post-list > article .card-body {
    width: 100%;
    padding: 1.05rem 0.25rem 0.2rem !important;
    gap: 0.72rem;
}

#blog-post-list > article .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(17, 19, 21, 0.9) !important;
    color: #ffffff !important;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    margin-bottom: 0 !important;
}

#blog-post-list > article .card-title,
#blog-post-list > article .heading-color {
    color: var(--bs-heading-color) !important;
}

html[data-bs-theme="dark"] #blog-post-list > article .card-title,
html[data-bs-theme="dark"] #blog-post-list > article .heading-color {
    color: var(--bs-white) !important;
}

#blog-post-list > article .card-title {
    max-width: none;
    margin-bottom: 0 !important;
    font-size: clamp(1.22rem, 1.55vw, 1.66rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.06;
    text-wrap: pretty;
}

#blog-post-list > article .d-sm-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-top: auto;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(17, 19, 21, 0.08);
    flex-wrap: wrap;
}

html[data-bs-theme="dark"] #blog-post-list > article .d-sm-flex {
    border-top-color: rgba(var(--bs-white-rgb), 0.06);
}

#blog-post-list > article .d-sm-flex p {
    margin: 0 !important;
    color: rgba(51, 65, 85, 0.78);
    font-size: 0.94rem;
    font-weight: 600;
}

html[data-bs-theme="dark"] #blog-post-list > article .d-sm-flex p {
    color: rgba(var(--bs-white-rgb), 0.74);
}

#blog-post-list > article .icon-link {
    color: var(--bs-primary) !important;
    font-size: 0.95rem;
    font-weight: 600;
    gap: 0.55rem;
}

#blog-post-list > article .icon-link i {
    transition: transform 0.18s ease;
}

#blog-post-list > article:hover .icon-link i {
    transform: translateX(3px);
}

.blog-post-empty-state {
    grid-column: 1 / -1;
    border-radius: var(--blog-home-card-radius) !important;
    border-color: rgba(17, 19, 21, 0.08) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 251, 0.95));
    color: var(--bs-heading-color);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.08);
}

html[data-bs-theme="dark"] .blog-post-empty-state {
    border-color: rgba(var(--bs-white-rgb), 0.08) !important;
    background: linear-gradient(135deg, rgba(26, 31, 39, 0.94), rgba(14, 18, 23, 0.96));
    color: var(--bs-white);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}

.blog-post-empty-state p {
    color: rgba(51, 65, 85, 0.72) !important;
}

html[data-bs-theme="dark"] .blog-post-empty-state p {
    color: rgba(var(--bs-white-rgb), 0.62) !important;
}

@media (max-width: 1199.98px) {
    .blog-home-layout {
        --bs-gutter-x: 2rem;
    }

    #blog-post-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #blog-post-list > article .card-title {
        font-size: clamp(1.3rem, 2.05vw, 1.72rem);
    }
}

@media (max-width: 991.98px) {
    .blog-home-hero {
        min-height: auto;
        padding-bottom: clamp(2rem, 5vw, 3rem);
    }

    .blog-home-layout {
        --bs-gutter-y: 2rem;
    }

    #blog-post-list {
        gap: 1.5rem;
    }

    #blog-post-list > article .col-md-4,
    #blog-post-list > article .col-md-8 {
        display: block;
    }

    #blog-post-list > article img.card-img {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    #blog-post-list > article .card-body {
        padding: 1.1rem 0.15rem 0 !important;
        gap: 0.75rem;
    }

    #blog-post-list > article .card-title {
        max-width: none;
        font-size: clamp(1.4rem, 3.05vw, 1.8rem);
        line-height: 1.08;
    }
}

@media (max-width: 575.98px) {
    #blog-post-list {
        grid-template-columns: 1fr;
    }

    .blog-home-lead {
        font-size: 1rem;
    }

    #blog-post-list > article {
        padding: 1rem !important;
        border-radius: var(--blog-home-card-radius) !important;
    }

    #blog-post-list > article > .row {
        --bs-gutter-y: 1.15rem;
    }

    #blog-post-list > article .card-title {
        font-size: 1.32rem;
        line-height: 1.09;
    }

    #blog-post-list > article .d-sm-flex p,
    #blog-post-list > article .icon-link {
        font-size: 0.96rem;
    }
}
