.af-blog-index {
    min-height: 70vh;
    padding-bottom: 90px;
    color: #f4f7fb;
    background:
        radial-gradient(
            circle at 10% 0,
            rgba(34, 211, 238, 0.1),
            transparent 28rem
        ),
        radial-gradient(
            circle at 90% 5%,
            rgba(139, 92, 246, 0.1),
            transparent 30rem
        ),
        #07111f;
}

.af-blog-index,
.af-blog-index *,
.af-blog-index *::before,
.af-blog-index *::after {
    box-sizing: border-box;
}

.af-blog-container {
    width: min(calc(100% - 40px), 1180px);
    margin-inline: auto;
}

.af-blog-header {
    padding: clamp(70px, 9vw, 125px) 0 55px;
    text-align: center;
}

.af-blog-eyebrow {
    margin: 0 0 16px;
    color: #67e8f9;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.af-blog-header h1 {
    margin: 0;
    color: #f4f7fb;
    font-size: clamp(2.8rem, 8vw, 6rem);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.06em;
}

.af-blog-intro {
    max-width: 680px;
    margin: 22px auto 0;
    color: #a9b5c8;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.af-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.af-blog-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    color: #f4f7fb;
    background: rgba(255, 255, 255, 0.052);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
    transition:
        transform 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease;
}

.af-blog-card:hover {
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(103, 232, 249, 0.3);
    transform: translateY(-4px);
}

.af-blog-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: rgba(103, 232, 249, 0.06);
}

.af-blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.af-blog-card-content {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    padding: 24px;
}

.af-blog-category {
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 5px 10px;
    color: #67e8f9;
    background: rgba(103, 232, 249, 0.08);
    border: 1px solid rgba(103, 232, 249, 0.18);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-decoration: none;
    text-transform: uppercase;
}

.af-blog-card h2 {
    margin: 0 0 13px;
    color: #f4f7fb;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.2;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

.af-blog-card h2 a {
    color: inherit;
    text-decoration: none;
}

.af-blog-card h2 a:hover,
.af-blog-card h2 a:focus-visible {
    color: #67e8f9;
}

.af-blog-excerpt {
    flex: 1;
    margin: 0 0 18px;
    color: #a9b5c8;
    line-height: 1.65;
}

.af-blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    margin-bottom: 18px;
    color: #8190a5;
    font-size: 0.78rem;
}

.af-blog-read {
    align-self: flex-start;
    color: #f4f7fb;
    font-weight: 800;
    text-decoration: none;
}

.af-blog-read span {
    color: #67e8f9;
}

.af-blog-read:hover,
.af-blog-read:focus-visible {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.af-blog-pagination {
    margin-top: 55px;
}

.af-blog-pagination .page-numbers {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.af-blog-pagination a,
.af-blog-pagination span {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    color: #f4f7fb;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    text-decoration: none;
}

.af-blog-pagination .current {
    color: #041019;
    background: linear-gradient(135deg, #67e8f9, #6ee7b7);
    border-color: transparent;
    font-weight: 850;
}

.af-blog-empty {
    padding: 45px;
    text-align: center;
    background: rgba(255, 255, 255, 0.052);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;
}

.af-blog-empty h2 {
    color: #f4f7fb;
}

.af-blog-empty p {
    margin-bottom: 0;
    color: #a9b5c8;
}

@media (max-width: 980px) {
    .af-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .af-blog-index {
        padding-bottom: 65px;
    }

    .af-blog-container {
        width: min(calc(100% - 28px), 1180px);
    }

    .af-blog-header {
        padding: 55px 0 40px;
        text-align: left;
    }

    .af-blog-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
    }

    .af-blog-card-content {
        padding: 21px;
    }

    .af-blog-pagination {
        margin-top: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .af-blog-card {
        transition: none;
    }
}

/*
|--------------------------------------------------------------------------
| Smaller archive/category heading
|--------------------------------------------------------------------------
*/

.af-archive-page .af-blog-header h1 {
    max-width: 760px;
    margin-inline: auto;
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

@media (max-width: 680px) {
    .af-archive-page .af-blog-header h1 {
        max-width: 560px;
        font-size: clamp(1.8rem, 8vw, 2.8rem);
        line-height: 1.15;
    }
}

@media (max-width: 420px) {
    .af-archive-page .af-blog-header h1 {
        font-size: clamp(1.65rem, 7.5vw, 2.3rem);
        letter-spacing: -0.025em;
    }
}

/*
|--------------------------------------------------------------------------
| Extra-compact category/archive header
|--------------------------------------------------------------------------
*/

.af-archive-page .af-blog-header {
    padding-top: 24px;
    padding-bottom: 24px;
}

.af-archive-page .af-blog-eyebrow {
    margin-top: 0;
    margin-bottom: 8px;
}

.af-archive-page .af-blog-header h1 {
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.05;
}

.af-archive-page .af-blog-intro,
.af-archive-page .af-blog-intro p {
    margin-top: 0;
    margin-bottom: 0;
}

@media (max-width: 680px) {
    .af-archive-page .af-blog-header {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .af-archive-page .af-blog-eyebrow {
        margin-bottom: 6px;
    }

    .af-archive-page .af-blog-header h1 {
        margin-bottom: 8px;
    }
}

/*
|--------------------------------------------------------------------------
| Compact Blog header spacing
|--------------------------------------------------------------------------
*/

body.af-blog-page:not(.af-archive-page) .af-blog-header {
    padding-top: 18px;
    padding-bottom: 18px;
}

body.af-blog-page:not(.af-archive-page) .af-blog-eyebrow {
    margin-top: 0;
    margin-bottom: 8px;
}

body.af-blog-page:not(.af-archive-page) .af-blog-header h1 {
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1;
}

body.af-blog-page:not(.af-archive-page) .af-blog-intro,
body.af-blog-page:not(.af-archive-page) .af-blog-intro p {
    margin-top: 0;
    margin-bottom: 0;
}

@media (max-width: 680px) {
    body.af-blog-page:not(.af-archive-page) .af-blog-header {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    body.af-blog-page:not(.af-archive-page) .af-blog-eyebrow {
        margin-bottom: 6px;
    }

    body.af-blog-page:not(.af-archive-page) .af-blog-header h1 {
        margin-bottom: 6px;
    }
}