.cards-resources {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    grid-gap: 20px
}
.cards-resources .resource-card {
    background-color: #115EBB;
    position: relative;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    background-size: cover;
    background-position: center;

}

.cards-resources .card-icon {
    top: 40px;
    left: 50px;
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.card-cat {
    margin: 40px ;
    display: flex;
    gap: 12px;
    text-transform: capitalize;
    align-items: center;
    line-height: 24px;
}
.cards-resources .eyebrow.white {
    color: #fff;
    line-height: 24px;
}
.cards-resources .card-icon.category-article {
    background-image: url('/wp-content/themes/ontic-v2/images/article.svg');
}
.cards-resources .card-icon.category-report {
    background-image: url('/wp-content/themes/ontic-v2/images/report.svg');
}
.cards-resources .card-icon.category-whitepaper,
.cards-resources .card-icon.category-guide {
    background-image: url('/wp-content/themes/ontic-v2/images/whitepaper-light.svg');
}
.cards-resources .card-icon.category-checklist {
    background-image: url('/wp-content/themes/ontic-v2/images/checklist.svg');
}
.cards-resources .card-icon.category-framework {
    background-image: url('/wp-content/themes/ontic-v2/images/framework.svg');
}
.cards-resources .card-icon.category-webinar {
    background-image: url('/wp-content/themes/ontic-v2/images/video.svg');
}
.cards-resources .card-icon.category-podcast {
    background-image: url('/wp-content/themes/ontic-v2/images/podcast.svg');
}

.cards-resources .resource-card h3 {
    color: var(--white);
    font-size: 30px;
    margin-bottom: 40px;
    line-height: 136%; 
    mix-blend-mode: none;
}
.cards-resources .primary-card h3 {
    font-size: 40px;
    margin-bottom: 70px;
    mix-blend-mode: none;
}
.cards-resources .primary-card {
    background-size: cover;
    background-position: center;
}
.cards-resources .secondary-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cards-resources .secondary1-card {
    background-color: #0A376D; 
}
.cards-resources .card-holder {
    position: absolute;
    bottom: 0;
    padding: 50px 39px 30px;
    text-align: left !important;
    width: 100%;
    color: #fff;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    background: none;
    mix-blend-mode: normal;
    z-index: 1;
    overflow: hidden;
}

.cards-resources .card-holder::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 71%, rgba(0, 0, 0, 0.00) 100%);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.cards-resources .btn {
    background: transparent;
    line-height: 1;
    font-size: 16px;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: 4px;
    border: 1px solid var(--white);
    mix-blend-mode: none;
}
.cards-resources .btn:hover {
    background-color: rgba(112,184,255,0.1);
}
.cards-resources .primary-card .btn {
    background-color: var(--white);
    color: #0A376D !important;
    border: none;
}
.cards-resources .primary-card .btn:hover {
    background-color: #B3D9FF;
}

@media screen and (max-width: 992px) {
    .cards-resources {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 20px;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    .cards-resources .resource-card {
        min-height: 400px;
        min-width: 300px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
    .cards-resources .secondary-cards {
        display: flex;
        flex-direction: row;
        gap: 20px;
        min-width: 0;
    }
    .cards-resources .secondary1-card,
    .cards-resources .secondary2-card {
        min-width: 300px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .cards-resources .card-icon {
        top: 30px;
        left: 30px;
        width: 24px;
        height: 24px;
    }
  
    .cards-resources .resource-card h3 {
        font-size: 24px;
        font-weight: 500;
        margin-bottom: 30px;
        letter-spacing: -0.48px
    }
    .cards-resources .primary-card h3 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .cards-resources .primary-card {
        margin-bottom: 0;
    }

}