/* The editorial treatment belongs only to the two blog indexes. */
body.blog-index {
    background: #171a21;
    color: #e9eaf3;
}

/* Carry the Home hero's full-bleed, left-aligned composition into the Blog. */
.blog-index .hero-section {
    height: 400px !important;
    min-height: 400px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    background-position: center 43% !important;
    background-size: cover !important;
    isolation: isolate;
}

.blog-index .hero-section::after {
    background-image: url('../img/blog-hero-lumnix.webp') !important;
    background-size: cover !important;
    background-position: center 43% !important;
    filter: brightness(1.1) saturate(1.04);
    animation: blogHeroZoom 25s ease-in-out infinite !important;
    pointer-events: none;
}

.blog-index .hero-section .container {
    width: min(1180px, calc(100% - 40px));
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 !important;
    text-align: left;
}

@keyframes blogHeroZoom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.blog-index .hero-section h1 {
    max-width: 22ch;
    margin: 0 0 18px !important;
    padding: 0 !important;
    font-size: clamp(2.2rem, 3.5vw, 3.25rem) !important;
    font-weight: 800 !important;
    letter-spacing: -.045em !important;
    line-height: .98;
    text-align: left !important;
    text-wrap: balance;
    background: linear-gradient(90deg, #8b5cf6 0%, #06b6d4 30%, #a78bfa 60%, #14b8a6 100%) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #a78bfa !important;
    text-shadow: none;
}

.blog-index .hero-section p {
    max-width: 70ch;
    margin: 0 !important;
    color: #f6f4ff !important;
    font-size: 1rem !important;
    line-height: 1.5;
    text-align: left;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .95);
    animation: none !important;
}

.blog-index .main-layout-container {
    padding-top: clamp(24px, 4vw, 52px);
    padding-bottom: 24px;
}

.blog-index .main-content-column {
    width: 100%;
    max-width: 1160px;
    min-width: 0;
}

.blog-index #featuredPost {
    display: grid !important;
    text-decoration: none !important;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    min-height: 350px !important;
    margin: 0 auto 38px !important;
    color: #fff;
    background: #10182b !important;
    border: 1px solid rgba(191, 196, 255, .19) !important;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
}

.blog-index #featuredPost::before,
.blog-index #featuredPost::after,
.blog-index #postsGrid .post-card::before,
.blog-index #postsGrid .post-card::after {
    content: none !important;
}

.blog-index .featured-visual {
    display: block;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
}

.blog-index #featuredPost .post-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
    object-position: 48% center;
}

.blog-index #featuredPost .post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(26px, 4vw, 56px);
    background: radial-gradient(circle at 100% 0, rgba(97, 82, 170, .14), transparent 60%);
}

.blog-index #featuredPost .post-category {
    color: #a5dfe4;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    margin-bottom: 18px;
}

.blog-index #featuredPost .post-title {
    color: #fff;
    font-size: clamp(25px, 2.8vw, 39px);
    line-height: 1.15;
    letter-spacing: -.035em;
    margin-bottom: 18px;
}

.blog-index #featuredPost .post-excerpt {
    color: #cdd3e6;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.blog-index .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    color: #abb8d2;
    font-size: 13px;
}

.blog-index #featuredPost:hover,
.blog-index #featuredPost:focus-visible {
    border-color: rgba(178, 215, 236, .46) !important;
    box-shadow: 0 32px 86px rgba(0, 0, 0, .38);
}

.blog-index .filter-container {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px !important;
    max-width: none !important;
    margin-bottom: 20px !important;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(181, 195, 231, .18);
}

.blog-index .filter-btn {
    flex: 0 1 auto;
    min-height: 46px;
    padding: 10px 19px !important;
    border: 1px solid rgba(188, 202, 238, .24) !important;
    border-radius: 12px !important;
    background: rgba(17, 27, 49, .68) !important;
    box-shadow: none !important;
    color: #d4dbea !important;
    font-size: 13px !important;
    font-weight: 600;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.blog-index .filter-container .filter-btn:hover {
    background: rgba(75, 87, 138, .3) !important;
    border-color: rgba(194, 212, 245, .5) !important;
    transform: none !important;
}

.blog-index .filter-container .filter-btn.active {
    color: #07101e !important;
    background: #d8eaf0 !important;
    border-color: #d8eaf0 !important;
}

.blog-index #postsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    padding: 18px 0 16px;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
}

.blog-index #postsGrid .post-card {
    display: block !important;
    min-width: 0;
    min-height: 0;
    border: 1px solid rgba(184, 201, 234, .15);
    border-radius: 18px;
    background: #111b30;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .18);
    color: #fff;
    overflow: hidden;
    transform: none !important;
    opacity: 1 !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.blog-index #postsGrid .post-card:hover,
.blog-index #postsGrid .post-card:focus-visible {
    border-color: rgba(178, 215, 236, .46);
    box-shadow: 0 23px 56px rgba(0, 0, 0, .32);
}

/* The same restrained scroll reveal used by the Home, with content visible without JS. */
.blog-index.has-scroll-reveal #featuredPost,
.blog-index.has-scroll-reveal #postsGrid .post-card {
    opacity: 0 !important;
    transform: translateY(22px) !important;
    transition: opacity .7s ease, transform .7s ease, border-color .2s ease, box-shadow .2s ease !important;
}

.blog-index.has-scroll-reveal #featuredPost.is-visible,
.blog-index.has-scroll-reveal #postsGrid .post-card.is-visible {
    opacity: 1 !important;
    transform: none !important;
}

.blog-index #postsGrid .post-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1.9 / 1;
    object-fit: cover;
    object-position: center center;
    transition: transform .35s ease;
}

.blog-index #postsGrid .post-card:nth-child(3) .post-image { object-position: 44% center; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .blog-index #postsGrid .post-card:hover .post-image,
    .blog-index #featuredPost:hover .post-image { transform: scale(1.025); }
}

.blog-index #postsGrid .post-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 214px;
    padding: clamp(20px, 3vw, 30px);
}

.blog-index #postsGrid .post-category {
    color: #a5dfe4;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
    margin-bottom: 12px;
}

.blog-index #postsGrid .post-title {
    color: #f8f8ff;
    font-size: clamp(19px, 2vw, 25px);
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -.025em;
    margin-bottom: 12px;
}

.blog-index #postsGrid .post-excerpt {
    color: #b9c4d9;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-index #postsGrid .post-date {
    margin-top: auto !important;
    color: #a8b4cb !important;
    font-size: 12px !important;
}

.blog-index .pagination {
    flex-wrap: wrap;
    gap: 8px;
}

.blog-index .pagination button {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid rgba(188, 202, 238, .25);
    border-radius: 11px;
    background: rgba(17, 27, 49, .7);
    color: #e0e6f3;
    box-shadow: none;
}

.blog-index .pagination button:hover:not(:disabled) {
    border-color: rgba(194, 212, 245, .55);
    background: rgba(75, 87, 138, .3);
}

.blog-index .pagination button.active-page {
    background: #d8eaf0;
    border-color: #d8eaf0;
    color: #07101e;
}

.blog-index .blog-main a:focus-visible,
.blog-index .blog-main button:focus-visible {
    outline: 3px solid #a5dfe4 !important;
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .blog-index .hero-section {
        height: 350px !important;
        min-height: 350px !important;
        padding: 0 !important;
        width: 100% !important;
        left: auto !important;
        right: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        background-position: 52% center !important;
    }
    .blog-index .hero-section::after { background-position: 52% center !important; }
    .blog-index .hero-section .container {
        align-self: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: min(100% - 32px, 1180px);
        padding-inline: 0 !important;
    }
    .blog-index .hero-section h1 { max-width: 22ch; margin-bottom: 12px !important; font-size: clamp(1.9rem, 7vw, 2.7rem) !important; }
    .blog-index .hero-section p { font-size: .9rem !important; line-height: 1.5; }
    html:root body.blog-index .ad-mobile-banner { width: min(100%, 320px) !important; max-width: 100% !important; }
    .blog-index .main-layout-container { padding: 20px 0 0; }
    .blog-index .main-content-column { padding: 0 16px !important; }
    .blog-index #featuredPost {
        grid-template-columns: 1fr;
        min-height: 0 !important;
        margin-bottom: 30px !important;
    }
    .blog-index .featured-visual { min-height: 0; }
    .blog-index #featuredPost .post-image {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 1.75 / 1;
        object-fit: cover;
        object-position: center 48%;
    }
    .blog-index #featuredPost .post-content { padding: 24px; }
    .blog-index .filter-container {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }
    .blog-index .filter-btn { width: 100% !important; padding: 10px 8px !important; }
    .blog-index #postsGrid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding-top: 12px;
    }
    .blog-index #postsGrid .post-card { max-width: 100%; }
    .blog-index #postsGrid .post-image { aspect-ratio: 1.7 / 1; }
    .blog-index #postsGrid .post-content { min-height: 0; padding: 22px; }
}

@media (max-width: 430px) {
    .blog-index #featuredPost .post-title { font-size: 23px; }
    .blog-index #featuredPost .post-content { padding: 21px; }
    .blog-index #postsGrid .post-content { padding: 20px; }
    .blog-index #postsGrid .post-title { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .blog-index .hero-section::after { animation: none !important; }
    .blog-index .blog-main *,
    .blog-index .blog-main *::before,
    .blog-index .blog-main *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

.blog-index-middle-ad {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}
