/* =========================================================
   PAGE
========================================================= */
.insights-page {
    background: #fff;
    overflow: hidden;
}

.insights-container {
    width: 100%;
}


/* =========================================================
   DESKTOP FILTER BAR
========================================================= */
.filter-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    width: 100%;
    padding: 8px 14px 8px 18px;
    height: 60px;
    background: #f5f5f5;
    color: #313131;
    border-radius: 32px;
}

.filter-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3px;
}

.filter-icon {
    display: none;
    width: 18px;
    height: 18px;
}

.filter-item {
    border: 0;
    padding: 6px 14px;
    border-radius: 50px;

    color: var(--black);
    font-size: 9px;
    line-height: 1;
    font-weight: 600;

    cursor: pointer;
    transition: .2s ease;
}

.filter-item:hover,
.filter-item.active {
    transform: translateY(-1px);
    filter: brightness(.96);
}

.filter-item.article {
    background: #E2E5E4
}

.filter-item.blog {
    background: #E2E5E4
}

.filter-item.case {
    background: #B8C2B7
}

.filter-item.podcast {
    background: #D1C9C2
}

.filter-item.interview {
    background: #D5D6BC
}

.filter-item.whitepaper {
    background: #DAD5E0
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.filter-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 35px;
    padding: 2px 15px;

    border: 0;
    border-radius: 25px;

    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
}

.filter-action.subscribe {
    background: #1d1d1d
}

.filter-action.other {
    background: var(--green)
}

.filter-action span {
    font-size: 13px;
    line-height: 1;
}

/* =========================================================
   MOBILE FILTER BUTTON + PANEL
========================================================= */
.mobile-filter-trigger {
    display: none;
}

.mobile-filter-backdrop {
    display: none;
}

.mobile-filter-panel {
    display: none;
}

/* =========================================================
   MASONRY
========================================================= */
.masonry {
    padding-top: 30px;
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 10px;
}

.masonry-card {
    width: 100%;
    display: inline-block;
    vertical-align: top;
    margin: 0 0 30px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

.masonry-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 4px 4px 0 0;
}

/* Keep every image the same visual size.
   Masonry comes from the content below each image. */
.img-tall,
.img-portrait,
.img-square,
.img-landscape {
    aspect-ratio: auto;
}

/* =========================================================
   CARD CONTENT
========================================================= */
.card-copy {
    padding-top: 26px;
}

.card-tag {
    display: inline-flex;
    align-items: center;

    min-height: 14px;
    padding: 4px 10px;

    border-radius: 20px;
    background-color: #E2E5E4;
    color: #111;
    font-size: 6px;
    line-height: 1;
    font-weight: 800;
}

.tag-podcast {
    background: #e5e2db
}

.tag-blog {
    background: #d7e0e4
}

.tag-case {
    background: #cbd7cd
}

.tag-interview {
    background: #e2e1c8
}

.tag-whitepaper {
    background: #e1dce6
}

.card-title {
    margin: 15px 0 10px;
    color: var(--black);
    font-size: 22px;
    line-height: 1.02;
    font-weight: 700;
}

.card-description {
    margin: 0;
    color: var(--black);
    font-size: 16px;
    line-height: 1.48;
}

.card-date {
    margin-top: 15px;
    color: #333;
    font-size: 16px;
}

/* Large editorial text card */
.editorial-card {
    padding: 0 0 5px;
}

.editorial-card .card-title {
    margin: 0;
    font-family: "Gambarino", serif;
    font-size: 40px;
    line-height: 1.02;
    letter-spacing: -1px;
    font-weight: 400;
}

.editorial-card .card-date {
    margin-top: 5px;
}

/* =========================================================
   LOAD MORE / WHITE AREA
========================================================= */
.load-more-wrap {
    position: relative;
    /* min-height: 100px; */
    margin-top: 0;
    background: #fff;

    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 0 88px 0;
}

.load-more-wrap:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -275px;
    height: 275px;

    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            #fff);
}

.load-more {
    position: relative;
    z-index: 2;

    border: 0;
    background: transparent;
    color: var(--green);

    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

/* .load-more.hidden {
    display: none;
} */

/* =========================================================
   TABLET
========================================================= */
@media(max-width:991.98px) {

    .insights-title {
        padding-bottom: 42px;
    }

    .filter-desktop {
        border-radius: 26px;
        padding: 12px;
    }

    .filter-left {
        gap: 7px;
    }

    .filter-actions {
        gap: 6px;
    }

    .filter-action {
        padding: 6px 16px;
        font-size: 12px;
        letter-spacing: 2px;
    }

    .masonry {
        columns: 2;
        column-gap: 18px;
    }

    .masonry-image {
        height: 300px;
    }

    .masonry-card {
        margin-bottom: 34px;
    }

    .card-title {
        font-size: 18px;
    }

    .editorial-card .card-title {
        font-size: 34px;
    }
}

.ishight-mb-show {
    display: none;
}

/* =========================================================
   MOBILE
========================================================= */
@media(max-width:767.98px) {
    .ishight-mb-show {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        padding-bottom: 30px;
    }

    .insights-title {
        padding-bottom: 30px;
        font-size: 46px;
        letter-spacing: -2px;
    }

    /* Hide desktop filter */
    .filter-desktop {
        display: none;
    }

    /* Mobile trigger */
    .mobile-filter-trigger {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;

        min-height: 52px;
        padding: 0 18px;

        border: 0;
        border-radius: 10px;

        background: #f5f5f5;
        color: #313131;

        font-size: 14px;
        font-weight: 700;
        letter-spacing: 3.3px;
        cursor: pointer;
    }

    .mobile-filter-trigger .left {
        display: flex;
        align-items: center;
        gap: 11px;
    }

    .mobile-filter-trigger svg {
        width: 18px;
        height: 18px;
    }

    .mobile-filter-trigger .chevron {
        font-size: 18px;
        letter-spacing: 0;
        transform: rotate(90deg);
    }

    /* Mobile filter opens inline with a smooth slide-down */
    .mobile-filter-backdrop {
        display: none !important;
    }

    .mobile-filter-panel {
        display: block;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        margin-top: 0;
        padding: 0 17px;
        border-radius: 12px;
        background: #f4f4f4;
        color: #111;
        opacity: 0;
        transform: translateY(-8px);
        transition:
            max-height .45s cubic-bezier(.22, .61, .36, 1),
            opacity .3s ease,
            transform .45s cubic-bezier(.22, .61, .36, 1),
            margin-top .45s ease,
            padding .45s ease;
    }

    .mobile-filter-panel.show {
        max-height: 430px;
        margin-top: 10px;
        padding: 14px 17px 17px;
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-filter-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 12px;
        border-bottom: 1px solid #dedede;
    }

    .mobile-filter-title {
        display: flex;
        align-items: center;
        gap: 12px;

        font-size: 13px;
        font-weight: 800;
        letter-spacing: 5px;
    }

    .mobile-filter-title svg {
        width: 19px;
        height: 19px;
    }

    .filter-close {
        width: 25px;
        height: 25px;

        border: 0;
        border-radius: 50%;

        background: #fff;
        color: #555;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 16px;
        cursor: pointer;
    }

    .mobile-filter-links {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding-top: 17px;
    }

    .mobile-filter-link {
        width: 100%;
        min-height: 19px;

        border: 0;
        border-radius: 20px;

        color: #111;
        font-size: 8px;
        font-weight: 500;

        cursor: pointer;
        transition: .2s ease;
    }

    .mobile-filter-link.article {
        background: #dfe2e3
    }

    .mobile-filter-link.blog {
        background: #cbd5df
    }

    .mobile-filter-link.case {
        background: #c4cec5
    }

    .mobile-filter-link.podcast {
        background: #d7d0ca
    }

    .mobile-filter-link.interview {
        background: #dfe0c5
    }

    .mobile-filter-link.whitepaper {
        background: #ded9e5
    }

    .mobile-filter-link.active {
        position: relative;
    }

    /* .mobile-filter-link.active:after {
        content: "×";

        position: absolute;
        right: 4px;
        top: 50%;
        transform: translateY(-50%);

        width: 14px;
        height: 14px;

        border-radius: 50%;
        background: #fff;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 11px;
        line-height: 1;
        color: #777;
    } */

    .clear-filter {
        margin-top: 13px;
        width: 100%;
        height: 31px;

        border: 0;
        background: transparent;

        color: #111;
        font-size: 8px;
        font-weight: 500;

        cursor: pointer;
    }

    /* 2-column mobile masonry */
    .masonry {
        columns: 2;
        column-gap: 14px;
        padding-top: 18px;
    }

    .masonry-image {
        height: 220px;
    }

    .masonry-card {
        margin-bottom: 30px;
    }

    .card-copy {
        padding-top: 17px;
    }

    .card-tag {
        font-size: 5px;
        padding: 4px 8px;
    }

    .card-title {
        margin-top: 8px;
        font-size: 18px;
        line-height: 1.2;
    }

    .card-description {
        font-size: 16px;
    }



    .editorial-card .card-title {
        font-size: 20px;
    }

    /* Mobile: first 4 cards only */
    .masonry-card.mobile-hidden {
        display: none;
    }

    .load-more-wrap {
        min-height: 0px;
        padding: 0;
    }

    .load-more-wrap:before {
        top: -50px;
        height: 50px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */
@media(max-width:380px) {



    .masonry {
        columns: 2;
        column-gap: 10px;
    }

    .masonry-card {
        margin-bottom: 25px;
    }

    .masonry-image {
        height: 185px;
    }

    .card-title {
        font-size: 18px;
    }


}