.post-card {
    position: relative;
    background: var(--wp--preset--color--base);
    color: var(--wp--preset--color--contrast);
    padding: var(--wp--preset--spacing--20);
    border-radius: var(--wp--preset--border-radius--md);
    box-shadow: var(--wp--preset--shadow--subtle);

    .wp-block-query.is-style-playful & {
        color: inherit;
        .is-style-section-base & {
            background: color-mix( in srgb, var(--wp--preset--color--primary) 20%, var(--wp--preset--color--base) );
        }
        .is-style-section-primary-alt & {
            background: color-mix( in srgb, color-mix(in srgb, var(--wp--preset--color--primary) 80%, white) 80%, var(--wp--preset--color--base) );
        }
        .is-style-section-primary & {
            background: color-mix( in srgb, var(--wp--preset--color--primary) 80%, var(--wp--preset--color--base) );
        }
        .is-style-section-secondary & {
            background: color-mix( in srgb, var(--wp--preset--color--secondary) 80%, var(--wp--preset--color--base) );
        }
        .is-style-section-accent & {
            background: color-mix( in srgb, var(--wp--preset--color--accent) 80%, var(--wp--preset--color--base) );
        }
    }
    
}

/* Post Card Inner */
.post-card__inner {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--20);
    height: 100%;
}

@media screen and (min-width: 768px) {
    .wp-block-post-template.is-layout-flow .post-card__inner {
        flex-direction: row;
    }
}

/* Post Card Image */
.post-card__image {
    background-color: var(--wp--preset--color--base-variant);
    display: flex;
    overflow: hidden;
    
    &,
    img {
        aspect-ratio: 16/9;
        border-radius: var(--wp--preset--border-radius--md);
        width: 100%;
        height: auto;
    }

    img {
        object-fit: cover;
        transition: transform 0.3s ease;
    }
}

@media screen and (min-width: 768px) {
    .wp-block-post-template.is-layout-flow .post-card__image {
        width: 25%;
    }
}

/* Post Card Content */
.post-card__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--wp--preset--spacing--20);
    padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
    flex: 1;
    .type-job > & {
        align-items: flex-end;
    }
}

/* Post Card Inner Content */
.post-card__inner-content {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--20);
    height: 100%;

    .post-card__inner.career_path &,
    .search-results & {
        gap: calc(var(--wp--preset--spacing--20) / 2);
    }

    &:has(> :first-child:last-child) {
        justify-content: center;
    }
}

/* Post Card Title */
.post-card .post-card__title {
    font-size: var(--wp--preset--font-size--body-lg);
    font-weight: 700;
    margin: 0;
    color: var(--wp--preset--color--secondary);

    .wp-block-query.is-style-playful & {
        color: inherit;
    }
}

/* Post Card Eyebrow */
.post-card__eyebrow {
    font-size: var(--wp--preset--font-size--small);
    font-weight: 700;
    color: var(--wp--preset--color--secondary);

    .wp-block-query.is-style-playful & {
        color: inherit;
    }
}

/* Post Card Excerpt / Description */
.post-card__excerpt {
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
    font-size: var(--wp--preset--font-size--body-sm);
}

/* Post Card Attribute */
.post-card .post-card__attribute {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    & > .post-card__attribute-icon {
        color: var(--wp--preset--color--secondary);
        display: flex;
        svg {
            width: 20px;
            height: 20px;
        }
    }
}

/* Post Card Read More */
.post-card .post-card__read-more {
    display: flex;
    align-items: flex-end;
    height: 100%;
    gap: var(--wp--preset--spacing--20);
    & > .post-card__read-more-icon {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        padding: 0;
        background-color: var(--wp--preset--color--accent);
        color: var(--wp--preset--color--secondary);
        font-size: 24px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.3s ease, background-color 0.3s ease;
        .wp-block-query.is-style-playful .wp-block-post & {
            width: 30px;
            height: 30px;
            font-size: 18px;
        }
        .wp-block-query.is-style-playful .wp-block-post:not(:hover) & {
            background-color: var(--wp--preset--color--base);
            color: var(--wp--preset--color--secondary);
        }
        .wp-block-query.is-style-slider-disabled .wp-block-post-template:has(.wp-block-post.type-sector) & {
            @media screen and (max-width: 781px) {
                width: 32px;
                height: 32px;
                font-size: 16px;
            }
        }
    }
}

/* Hover Styles */
.post-card:hover .post-card__read-more-icon {
    background: var(--wp--preset--color--accent-variant);
    color: var(--wp--preset--color--base);
}
.post-card:hover .post-card__image img {
    transform: scale(1.05);
}

/* Section Styles */
.is-style-section-base-variant .post-card__read-more::before {
    background: var(--wp--preset--color--base);
}

/* Stretched link */
.post-card__stretched-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}