/* Homepage article cards */
.airjournal-home .air-post-list {
    gap: 20px;
}

.airjournal-home .home-post-card {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 220px;
    min-height: 220px !important;
    max-height: 220px !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 38%) minmax(0, 62%);
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: #313844;
    box-shadow: 0 14px 34px rgba(24, 32, 48, .13);
    color: #f6f7fa;
    transition: transform .24s cubic-bezier(.16, 1, .3, 1), box-shadow .24s ease;
}

.airjournal-home .home-post-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.airjournal-home .home-post-card-image-right::before {
    background: linear-gradient(90deg,
        rgba(26, 32, 43, .86) 0%,
        rgba(31, 38, 50, .76) 48%,
        rgba(34, 41, 52, .4) 68%,
        rgba(34, 41, 52, 0) 100%);
}

.airjournal-home .home-post-card-image-left::before {
    background: linear-gradient(90deg,
        rgba(34, 41, 52, 0) 0%,
        rgba(34, 41, 52, .4) 32%,
        rgba(31, 38, 50, .76) 52%,
        rgba(26, 32, 43, .86) 100%);
}

.airjournal-home .home-post-atmosphere {
    position: absolute;
    inset: -34px;
    z-index: 0;
    display: block;
    overflow: hidden;
    opacity: .86;
    pointer-events: none;
}

.airjournal-home .home-post-atmosphere[hidden] {
    display: none !important;
}

.airjournal-home .home-post-atmosphere img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: blur(26px) saturate(.95) brightness(.78);
    transform: scale(1.12);
}

@media (min-width: 769px) {
    .airjournal-home .home-post-card-image-left {
        grid-template-columns: minmax(0, 38%) minmax(0, 62%);
    }

    .airjournal-home .home-post-card-image-left .home-post-thumbnail {
        grid-column: 1;
        grid-row: 1;
        width: 108%;
        clip-path: polygon(0 0, 100% 0, 91% 100%, 0 100%);
    }

    .airjournal-home .home-post-card-image-left .home-post-content {
        grid-column: 2;
        grid-row: 1;
        padding: 28px 34px 22px 28px;
    }

    .airjournal-home .home-post-card-image-right {
        grid-template-columns: minmax(0, 62%) minmax(0, 38%);
    }

    .airjournal-home .home-post-card-image-right .home-post-thumbnail {
        grid-column: 2;
        grid-row: 1;
        width: 108%;
        margin-left: -8%;
        clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
    }

    .airjournal-home .home-post-card-image-right .home-post-thumbnail::after {
        background: linear-gradient(90deg, rgba(47, 52, 62, .62), rgba(25, 31, 41, .08) 34%, rgba(16, 22, 32, .08));
    }

    .airjournal-home .home-post-card-image-right .home-post-content {
        grid-column: 1;
        grid-row: 1;
        padding: 28px 28px 22px 34px;
    }
}

.airjournal-home .home-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 46px rgba(24, 32, 48, .18);
}

.airjournal-home .home-post-card:focus-visible {
    outline: 3px solid rgba(73, 104, 242, .55);
    outline-offset: 4px;
}

.airjournal-home .home-post-thumbnail {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
}

.airjournal-home .home-post-thumbnail[hidden] {
    display: none !important;
}

.airjournal-home .home-post-thumbnail::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 22, 32, .08), rgba(25, 31, 41, .08) 66%, rgba(47, 52, 62, .62));
    pointer-events: none;
}

.airjournal-home .home-post-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(.88) contrast(.96);
    transform: scale(1.01);
    transition: transform .45s cubic-bezier(.16, 1, .3, 1), filter .3s ease;
}

.airjournal-home .home-post-card:hover .home-post-thumbnail img {
    filter: saturate(.98) contrast(1);
    transform: scale(1.035);
}

.airjournal-home .home-post-content {
    position: relative;
    z-index: 3;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    padding: 28px 34px 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.airjournal-home .home-post-card-no-thumbnail {
    grid-template-columns: minmax(0, 1fr);
    background:
        radial-gradient(circle at 76% 0%, rgba(255, 255, 255, .1), transparent 44%),
        linear-gradient(128deg, #252c38 0%, #3a404b 54%, #60646c 100%);
}

.airjournal-home .home-post-card-no-thumbnail::before {
    background: linear-gradient(128deg,
        rgba(23, 29, 39, .2),
        rgba(31, 38, 49, .08));
}

.airjournal-home .home-post-card-no-thumbnail .home-post-content {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-left: 42px;
    padding-right: 42px;
}

.airjournal-home .home-post-title,
.airjournal-home .home-post-title a {
    max-width: 100% !important;
    display: block !important;
    overflow: hidden !important;
    color: #f7f8fb !important;
    font-size: 21px;
    font-weight: 720;
    line-height: 1.35;
    letter-spacing: .02em;
    text-align: left;
    text-decoration: none;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.airjournal-home .home-post-title {
    margin: 0 0 12px;
}

.airjournal-home .home-post-summary {
    margin: 0 !important;
    display: -webkit-box !important;
    overflow: hidden !important;
    color: rgba(239, 242, 247, .72) !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.78 !important;
    letter-spacing: .01em;
    text-align: left;
    text-overflow: ellipsis !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    max-height: calc(1.78em * 3) !important;
}

.airjournal-home .home-post-meta {
    min-width: 0;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    overflow: hidden;
    color: rgba(242, 244, 248, .78);
    font-size: 12px;
    font-weight: 620;
    line-height: 1;
    white-space: nowrap;
}

.airjournal-home .home-post-meta-item {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.airjournal-home .home-post-meta-item i {
    color: rgba(242, 244, 248, .7);
    font-size: 12px;
}

.airjournal-home .home-post-category {
    overflow: hidden;
}

.airjournal-home .home-post-category > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.airjournal-home .home-post-meta-divider {
    width: 1px;
    height: 13px;
    flex: 0 0 1px;
    background: rgba(255, 255, 255, .28);
}

html[data-blog-theme="dark"] .airjournal-home .home-post-card {
    border-color: rgba(148, 163, 184, .24) !important;
    background: #222c39 !important;
    box-shadow: 0 14px 34px rgba(5, 9, 14, .2) !important;
}

html[data-blog-theme="dark"] .airjournal-home .home-post-card-image-right::before {
    background: linear-gradient(90deg,
        rgba(17, 24, 34, .91) 0%,
        rgba(23, 31, 42, .84) 48%,
        rgba(25, 34, 45, .48) 68%,
        rgba(25, 34, 45, 0) 100%);
}

html[data-blog-theme="dark"] .airjournal-home .home-post-card-image-left::before {
    background: linear-gradient(90deg,
        rgba(25, 34, 45, 0) 0%,
        rgba(25, 34, 45, .48) 32%,
        rgba(23, 31, 42, .84) 52%,
        rgba(17, 24, 34, .91) 100%);
}

html[data-blog-theme="dark"] .airjournal-home .home-post-atmosphere {
    opacity: .78;
}

html[data-blog-theme="dark"] .airjournal-home .home-post-atmosphere img {
    filter: blur(26px) saturate(.86) brightness(.66);
}

html[data-blog-theme="dark"] .airjournal-home .home-post-card:hover {
    border-color: rgba(148, 163, 184, .38) !important;
    background: #273240 !important;
    box-shadow: 0 20px 46px rgba(5, 9, 14, .28) !important;
}

html[data-blog-theme="dark"] .airjournal-home .home-post-card-no-thumbnail {
    background:
        radial-gradient(circle at 76% 0%, rgba(148, 163, 184, .1), transparent 42%),
        linear-gradient(128deg, #17202d 0%, #242e3b 54%, #3f4753 100%) !important;
}

@media (max-width: 768px) {
    .airjournal-home .air-shell {
        width: calc(100% - 32px) !important;
    }

    .airjournal-home .air-post-list {
        gap: 12px;
    }

    .airjournal-home .home-post-card {
        height: 198px;
        min-height: 198px !important;
        max-height: 198px !important;
        grid-template-columns: minmax(0, 1fr);
        border-color: rgba(255, 255, 255, .12);
        border-radius: 14px !important;
        background: #353b45 !important;
        box-shadow: 0 10px 24px rgba(24, 32, 48, .14);
    }

    .airjournal-home .home-post-card::before,
    html[data-blog-theme="dark"] .airjournal-home .home-post-card::before {
        z-index: 1;
        background:
            linear-gradient(180deg, rgba(18, 23, 31, .5), rgba(18, 23, 31, .72)),
            rgba(18, 23, 31, .12);
    }

    .airjournal-home .home-post-atmosphere {
        display: none;
    }

    .airjournal-home .home-post-thumbnail {
        position: absolute;
        inset: -16px;
        z-index: 0;
        width: auto;
        height: auto;
        display: block;
        pointer-events: none;
    }

    .airjournal-home .home-post-thumbnail::after {
        display: none;
    }

    .airjournal-home .home-post-thumbnail img,
    .airjournal-home .home-post-card:hover .home-post-thumbnail img {
        width: 100%;
        height: 100%;
        filter: blur(14px) saturate(.78) contrast(.94);
        transform: scale(1.1);
    }

    .airjournal-home .home-post-card-no-thumbnail {
        background: #454b55 !important;
    }

    .airjournal-home .home-post-content,
    .airjournal-home .home-post-card-no-thumbnail .home-post-content {
        grid-column: 1;
        grid-row: 1;
        padding: 29px 26px 20px;
        z-index: 2;
    }

    .airjournal-home .home-post-title,
    .airjournal-home .home-post-title a {
        font-size: 17px;
        font-weight: 650;
        line-height: 1.4;
        letter-spacing: .02em;
        text-align: left;
    }

    .airjournal-home .home-post-title {
        margin-bottom: 12px;
    }

    .airjournal-home .home-post-summary {
        font-size: 13.5px;
        font-weight: 450;
        line-height: 1.75 !important;
        text-align: left;
        -webkit-line-clamp: 3 !important;
        max-height: calc(1.75em * 3) !important;
    }

    .airjournal-home .home-post-meta {
        justify-content: center;
        gap: 8px;
        font-size: 11px;
        font-weight: 550;
    }

    .airjournal-home .home-post-meta-item {
        gap: 4px;
    }

    html[data-blog-theme="dark"] .airjournal-home .home-post-card {
        border-color: rgba(148, 163, 184, .18) !important;
        border-radius: 14px !important;
        background: #242b35 !important;
        box-shadow: 0 10px 24px rgba(5, 9, 14, .22) !important;
    }

    html[data-blog-theme="dark"] .airjournal-home .home-post-thumbnail::after {
        display: none;
    }

    html[data-blog-theme="dark"] .airjournal-home .home-post-card-no-thumbnail {
        background: #303946 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .airjournal-home .home-post-card,
    .airjournal-home .home-post-thumbnail img {
        transition: none !important;
    }
}
