/* Block: Insights */

.block-insights .block-header {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.block-insights .insights-wrapper:not(:last-child) {
    margin-top: 5rem;
}

.block-insights .block-header .cta-buttons {
    margin-left: auto;
}

.block-insights .clock-header .text-content {
    max-width: 39rem;
}

.block-insights .text-content > * {
    margin-block: 0 2.5rem;
}

.block-insights .text-content > :where(h1, h2) {
    margin-bottom: 3.125rem;
}

.block-insights .text-content > :last-child {
    margin-bottom: 0 !important;
}

.block-insights .insights-wrapper {
    --cols: 4;
    display: grid;
    grid-template-columns: repeat(var(--cols), 1fr);
    gap: 1.875rem;
}

.block-insights .insights-wrapper .post {
    display: flex;
    flex-direction: column;
    /* background-color: rgb(from var(--c-tertiary) r g b / .1); */
    background-color: #F3F4F7;
    padding: 1.5rem;
    border-radius: 4px;
    overflow: hidden;
}

.block-insights .insights-wrapper .post.highlight {
    grid-column: span 2;
    color: white;
    position: relative;
    isolation: isolate;
    /* background-image:
        linear-gradient(279.8deg, rgba(10, 30, 89, 0) 0%, rgba(10, 30, 89, 0.5) 100%),
        linear-gradient(279.8deg, rgba(10, 30, 89, 0) 0%, rgba(10, 30, 89, 0.5) 100%),
        linear-gradient(279.8deg, rgba(10, 30, 89, 0) 0%, rgba(10, 30, 89, 0.5) 100%),
        var(--image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-blend-mode: multiply; */
    padding: 2.25rem;
}

.block-insights .insights-wrapper .post--image {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.block-insights .insights-wrapper .post:not(.highlight) .post--image {
    max-width: calc(100% + 3rem);
    width: calc(100% + 3rem);
    height: auto;
    aspect-ratio: 1.78;
    margin: -1.5rem -1.5rem 0 -1.5rem;
}

.block-insights .insights-wrapper .post.highlight .post--image {
    position: absolute;
    z-index: -1;
    margin: -2.25rem;
    width: 100%;
    height: 100%;
}

.block-insights .insights-wrapper .post.highlight .post--image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(279.8deg, rgba(10, 30, 89, 0) 0%, rgba(10, 30, 89, 0.5) 100%),
        linear-gradient(279.8deg, rgba(10, 30, 89, 0) 0%, rgba(10, 30, 89, 0.5) 100%),
        linear-gradient(279.8deg, rgba(10, 30, 89, 0) 0%, rgba(10, 30, 89, 0.5) 100%);
    background-blend-mode: multiply;
    z-index: 1;
}

.block-insights .insights-wrapper .post--image::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgb(from var(--c-text-dark) r g b / 0.5);
    background-blend-mode: multiply;
    z-index: 2;
    opacity: 0;
    transition: opacity 300ms ease-out;
}


.block-insights .insights-wrapper .post--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease-out;
}

.block-insights .insights-wrapper .post--image svg {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 100%;
    max-width: 0.6rem;
    height: 100%;
    max-height: 0.6rem;
    color: #F8F7F2;
    z-index: 3;
    opacity: 0;
    transition: opacity 300ms ease-out;
}

.block-insights .insights-wrapper .post:is(:hover, :focus-within) .post--image img {
    transform: scale(1.15);
}

.block-insights .insights-wrapper .post:is(:hover, :focus-within) .post--image::after,
.block-insights .insights-wrapper .post:is(:hover, :focus-within) .post--image svg  {
    opacity: 1;
}

.block-insights .insights-wrapper .post--title {
    text-decoration: none;
    color: currentColor;
}

.block-insights .insights-wrapper .post:not(.highlight) .post--title {
    font-size: var(--font-21-12);
    margin-block: 1.5rem 4.375rem;
}

.block-insights .insights-wrapper .post.highlight .post--title {
    margin-block: 0 1.875rem;
    max-width: 23rem;
}

@supports (-webkit-line-clamp: 3) {
    .block-insights .insights-wrapper .post--title {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;  
        overflow: hidden;
        text-box: unset;
    }
}

@supports not (-webkit-line-clamp: 3) {
    .block-insights .insights-wrapper .post--title > *,
    .block-insights .insights-wrapper .post--title {
        overflow: hidden;
        max-height: 3lh;
        text-box: unset;
    }
}

.block-insights .insights-wrapper .post.highlight .post--excerpt {
    font-size: var(--font-13-11);
    line-height: 1.3;
    max-width: 23rem;
}

.block-insights .insights-wrapper .post--meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.625rem;
    font-size: var(--font-12-9);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-top: auto;
}

.block-insights .insights-wrapper .post--category {
    color: var(--color);
}

.block-insights .insights-wrapper .post--date {
    opacity: .5;
    font-weight: 500;
}

.block-insights .insights-wrapper .post.highlight .post--date {
    opacity: 1;
}

.block-insights .cta-buttons {
    gap: 0.625rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
}

.block-insights .cta-buttons--mobile {
    display: none;
}

.block-insights .insights-wrapper + .cta-buttons {
    margin-top: 5rem;
}

@media screen and (width <= 1200px) {
    .block-insights .insights-wrapper {
        --cols: 3;
        gap: 1.25rem;
    }
    .block-insights .insights-wrapper .post:not(.highlight) .post--title {
        margin-bottom: 2.5rem;
    }
}

@media screen and (width <= 620px) {
    .block-insights .insights-wrapper:not(:last-child) {
        margin-top: 2.5rem;
    }
    .block-insights .text-content > * {
        margin-block: 0 1.5rem;
    }
    .block-insights .text-content > :where(h1, h2) {
        margin-bottom: 1.875rem;
    }
    .block-insights .cta-buttons--desktop {
        display: none;
    }
    .block-insights .cta-buttons--mobile {
        display: flex;
    }
    .block-insights .insights-wrapper + .cta-buttons {
        margin-top: 2.5rem;
    }
    .block-insights .insights-wrapper {
        --cols: 2;
        gap: 0.75rem;
    }
    .block-insights .insights-wrapper .post.highlight {
        aspect-ratio: 1.12;
    }
    .block-insights .insights-wrapper .post {
        padding: 0.9375rem;
    }
    .block-insights .insights-wrapper .post--image {
        max-width: calc(100% + 1.875rem);
        width: calc(100% + 1.875rem);
        margin: -0.9375rem -0.9375rem 0 -0.9375rem; 
    }
    .block-insights .insights-wrapper .post.highlight {
        /* clip-path: polygon(100% 0, 100% 88%, 93.5% 100%, 0 100%, 0 0); */
        padding: 1.875rem;
    }
    .block-insights .insights-wrapper .post--title {
        margin-block: 0.9375rem 2.5rem;
    }
}