.newsGrid {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: transparent;
    color: #fff;
    padding-top: 50px;
}

.newsGrid__inner {
    box-sizing: border-box;
    margin-inline: auto;
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2rem);
}

.newsGrid__empty {
    margin: 0;
    text-align: center;
    font-family: "WixMadeforText", "Raleway", system-ui, sans-serif;
    font-size: 1rem;
    color: #888;
}

.newsGrid__title {
    margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
    text-align: center;
    font-family: "WixMadeforText", "Raleway", system-ui, sans-serif;
    font-size: clamp(1.75rem, 1rem + 2.5vw, 3.25rem);
    font-weight: 400;
    line-height: 1.2;
    color: #A3B199;
}

.newsGrid__tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.newsGrid__tab {
    margin: 0;
    padding: 0.85em 1.65em;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-family: "WixMadeforText", "Raleway", system-ui, sans-serif;
    font-size: clamp(0.65rem, 0.5rem + 0.35vw, 0.8125rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.newsGrid__card[hidden] {
    display: none !important;
}

.newsGrid__tab:hover {
    color: #A3B199;
}

.newsGrid__tab.is-active {
    border-color: #A3B199;
    color: #fff;
}

.newsGrid__tab:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.newsGrid__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: row;
    gap: clamp(1.55rem, 2vw, 2.5rem);
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.newsGrid__card {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    box-sizing: border-box;
    min-width: 0;
}

/*
 * Bento by visible index (repeats every 6): row1 = 2+1+1, row2 = 1+1+2 — only on the 4-col desktop grid.
 * Below 961px, span-2 on a 2-col (or 1-col) track hides or overlaps the “small” sibling; keep wide slots desktop-only.
 */
@media (min-width: 961px) {
    .newsGrid__grid > .newsGrid__card[data-bento-slot="0"],
    .newsGrid__grid > .newsGrid__card[data-bento-slot="5"] {
        grid-column: span 2;
    }
}

/* Interview — only .newsGrid__cta is a link */
.newsGrid__card--interview {
    position: relative;
    min-height: 63vh;
}

.newsGrid__cardMedia {
    position: absolute;
    inset: 0;
}

.newsGrid__cardImg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newsGrid__cardImg--placeholder {
    min-height: 100%;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
}

.newsGrid__cardOverlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.45) 55%,
        transparent 100%
    );
    pointer-events: none;
}

.newsGrid__cardBody {
    box-sizing: border-box;
}

.newsGrid__cardBody--interview {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1rem, 2.5vw, 1.5rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
}

.newsGrid__kicker {
    margin: 0;
    font-family: "WixMadeforText", "Raleway", system-ui, sans-serif;
    font-size: clamp(0.625rem, 0.55rem + 0.2vw, 0.75rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #A3B199;
    opacity: 0.95;
}

.newsGrid__cardTitle {
    margin: 0;
    font-family: "WixMadeforText", "Raleway", system-ui, sans-serif;
    font-size: clamp(1.125rem, 0.85rem + 0.8vw, 1.5rem);
    font-weight: 300;
    line-height: 1.25;
    color: #fff;
}

.newsGrid__cardTitle--interview {
    font-size: clamp(1.25rem, 0.9rem + 1vw, 1.75rem);
    font-weight: 300;
}

.newsGrid__cta {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.75em 1.5em;
    border-radius: 999px;
    background-color: #a3b199;
    color: #121212;
    font-family: "WixMadeforText", "Raleway", system-ui, sans-serif;
    font-size: clamp(0.8125rem, 0.7rem + 0.25vw, 0.9375rem);
    font-weight: 500;
    text-decoration: none;
    line-height: 1.3;
    transition: opacity 0.2s ease;
}

.newsGrid__cta:hover {
    background: #79896D;
    box-shadow: 0 5px 6px 0 rgba(0, 0, 0, 0.42) inset, 3px 3px 10px 0 rgba(255, 255, 255, 0.20);
}

.newsGrid__cta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* Testimonial — sage panel, full-card link */
.newsGrid__card--testimonials {
    min-height: 63vh;
    background-color: #a3b199;
}

.newsGrid__cardLink {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    height: 100%;
    min-height: inherit;
    padding: clamp(0.875rem, 0.65rem + 2.25vw, 2rem);
    box-sizing: border-box;
    text-decoration: none;
    color: #121212;
}

/* Quote + icon: fill remaining space and center as a block (vertical + horizontal). */
.newsGrid__cardLinkMain {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(0.4rem, 0.25rem + 1.75vw, 1.125rem);
    min-height: 0;
    width: 100%;
}

.newsGrid__quoteSvgWrap {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.newsGrid__quoteSvg {
    display: block;
    width: auto;
    height: auto;
    max-width: clamp(2.5rem, 1.75rem + 3.25vw, 5.4375rem);
    flex-shrink: 0;
}

.newsGrid__quote {
    margin: 0;
    width: 100%;
    max-width: 100%;
    text-align: center;
    font-family: "WixMadeforText", "Raleway", system-ui, sans-serif;
    /* Fluid type: matches ~1920 (~1.375rem max); readable floor on phones */
    font-size: clamp(0.875rem, 0.78rem + 0.5vw, 1.375rem);
    font-weight: 400;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

/* Badge + optional subtext: pinned to main-axis end, cross-axis end. */
.newsGrid__cardLinkFoot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(0.3rem, 0.2rem + 1vw, 0.5rem);
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
}

.newsGrid__badge {
    margin: 0;
    font-family: "WixMadeforText", "Raleway", system-ui, sans-serif;
    font-size: clamp(0.625rem, 0.52rem + 0.25vw, 0.8125rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #ffffff;
    opacity: 0.85;
}

.newsGrid__testimonialSubtext {
    margin: 0;
    max-width: 100%;
    text-align: start;
    font-family: "WixMadeforText", "Raleway", system-ui, sans-serif;
    font-size: clamp(0.8125rem, 0.72rem + 0.35vw, 1.0625rem);
    font-weight: 400;
    line-height: 1.45;
    color: #121212;
    overflow-wrap: anywhere;
}

/* News — image card; CTA only links */
.newsGrid__card--news {
    min-height: 63vh;
}

.newsGrid__cardShell {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.newsGrid__cardBg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.newsGrid__cardBg--placeholder {
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
}

.newsGrid__cardOverlay--news {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        to top,
        rgba(18, 18, 18, 0.92) 0%,
        rgba(18, 18, 18, 0.35) 50%,
        rgba(18, 18, 18, 0.1) 100%
    );
    pointer-events: none;
}

.newsGrid__cardBody--news {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    padding: clamp(1.1rem, 2.5vw, 1.5rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    text-align: left;
}

.newsGrid__cardBody--news .newsGrid__kicker {
    color: #a3b199;
}

.newsGrid__excerpt {
    margin: 0;
    font-family: "WixMadeforText", "Raleway", system-ui, sans-serif;
    font-size: clamp(0.8125rem, 0.72rem + 0.2vw, 0.9375rem);
    font-weight: 400;
    line-height: 1.45;
    color: #a3b199;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsGrid__cta--news {
    margin-top: 0.35rem;
}

@media (max-width: 1299px) {
    .newsGrid__inner {
        max-width: min(98vw, 1280px);
        padding-inline: clamp(1rem, 3vw, 1.75rem);
    }
}

@media (max-width: 960px) {
    .newsGrid__grid {
        grid-template-columns: 1fr 1fr;
    }

    .newsGrid__grid > .newsGrid__card {
        grid-column: span 1;
    }

    .newsGrid__grid > .newsGrid__card.newsGrid__card--interview {
        grid-column: span 2;
    }
}

/* Viewports 650px and below: single column, tighter rhythm, card height tuned for stacking. */
@media (max-width: 650px) {
    .newsGrid {
        width: 100%;
        max-width: 100%;
    }

    .newsGrid__inner {
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
        box-sizing: border-box;
        padding-block: clamp(1.75rem, 5vw, 2.5rem);
        padding-inline: clamp(0.75rem, 4vw, 1.25rem);
    }

    .newsGrid__title {
        margin-bottom: clamp(1rem, 4vw, 1.5rem);
    }

    .newsGrid__tabs {
        margin-bottom: clamp(1.25rem, 4vw, 1.75rem);
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.35rem 0.4rem;
        overflow-x: visible;
        margin-inline: 0;
        padding-inline: 0;
        padding-bottom: 0;
    }

    .newsGrid__tab {
        flex: 0 1 auto;
        min-width: 0;
        padding: 0.4em 0.65em;
        font-size: clamp(0.7rem, 2.6vw, 0.6875rem);
        letter-spacing: 0.06em;
    }

    .newsGrid__grid {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        justify-items: stretch;
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
        box-sizing: border-box;
        gap: clamp(0.75rem, 3vw, 1.125rem);
    }

    .newsGrid__grid > .newsGrid__card {
        grid-column: 1 / -1;
        justify-self: stretch;
        max-width: 100%;
        min-width: 0;
        width: 100%;
        height: auto;
        overflow: hidden;
        box-sizing: border-box;
    }

    /* Beat the max-width:960px interview span-2 rule (higher specificity there). */
    .newsGrid__grid > .newsGrid__card.newsGrid__card--interview {
        grid-column: 1 / -1;
    }

    /*
     * Interview + news: cardMedia / cardShell were position:absolute with a fixed min-height on the card,
     * so long titles or excerpts were clipped. Use in-flow flex so the block grows; image still fills
     * the media area via absolute children.
     */
    .newsGrid__card--interview .newsGrid__cardMedia,
    .newsGrid__card--news .newsGrid__cardShell {
        position: relative;
        inset: auto;
        width: 100%;
        min-height: clamp(220px, 52vw, 320px);
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        overflow: hidden;
        border-radius: inherit;
    }

    .newsGrid__card--interview,
    .newsGrid__card--news,
    .newsGrid__card--testimonials {
        min-height: 0;
        height: auto;
    }

    .newsGrid__card--interview .newsGrid__cardBody--interview,
    .newsGrid__card--news .newsGrid__cardBody--news {
        position: relative;
        inset: auto;
        flex: 0 0 auto;
        margin-top: 0;
        padding: clamp(1rem, 4vw, 1.35rem) clamp(0.9rem, 4vw, 1.25rem);
        z-index: 1;
    }

    .newsGrid__card--interview .newsGrid__cardBody--interview {
        background: linear-gradient(
            180deg,
            transparent 0%,
            rgba(0, 0, 0, 0.55) 32%,
            rgba(0, 0, 0, 0.92) 100%
        );
    }

    .newsGrid__card--news .newsGrid__cardBody--news {
        background: linear-gradient(
            180deg,
            transparent 0%,
            rgba(18, 18, 18, 0.55) 35%,
            rgba(18, 18, 18, 0.98) 100%
        );
    }

    .newsGrid__card--testimonials .newsGrid__cardLink {
        height: auto;
        min-height: clamp(200px, 38vh, 280px);
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .newsGrid__card--testimonials .newsGrid__quote {
        flex: 0 1 auto;
        overflow: visible;
        min-height: 0;
    }

    .newsGrid__cardLink {
        padding: clamp(1rem, 4vw, 1.5rem);
    }

    .newsGrid__excerpt {
        display: block;
        -webkit-box-orient: unset;
        overflow: visible;
    }
}
