
#main-content article.dps-layout-b2b-resource,
#main-content article.dps-layout-b2b-carousel {
    box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.1);
    /* box-shadow: 0px 5px 7px 0px rgba(0,0,0,0.1); */
    background-color: #fff;
    border-radius: 10px 10px 10px;
    height: 100%;
}

#main-content article.dps-layout-b2b-resource img.wp-post-image,
#main-content article.dps-layout-b2b-carousel img.wp-post-image {
    width: 100% !important;
    height: auto;
    min-height: 180px;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

#main-content article.dps-layout-b2b-resource .category-wrapper ul,
#main-content article.dps-layout-b2b-carousel .category-wrapper ul {
    list-style: none;
    padding: 0 !important;
    margin-bottom: 10px;
}

#main-content article.dps-layout-b2b-resource .category-wrapper ul li,
#main-content article.dps-layout-b2b-carousel .category-wrapper ul li {
    font-family: var(--common-font-label) !important;
    text-transform: uppercase;
    letter-spacing: 16%;
    font-size: .8125rem;
    border: 1px solid #000;
    display: inline;
    margin: 0;
    padding: 5px 8px;
    border-radius: 25px;
    font-weight: bold;
    margin-right: 10px;
}

#main-content article.dps-layout-b2b-resource .category-wrapper ul li a,
#main-content article.dps-layout-b2b-carousel .category-wrapper ul li a {
    border: none !important;
    text-decoration: none !important;
}

#main-content article.dps-layout-b2b-resource h3,
#main-content article.dps-layout-b2b-carousel h3 {
    line-height: 1.2rem;
}

#main-content article.dps-layout-b2b-resource h3.entry-title,
#main-content article.dps-layout-b2b-carousel h3.entry-title,
#main-content article.dps-layout-b2b-resource h3.entry-title a,
#main-content article.dps-layout-b2b-carousel h3.entry-title a {
    font-size: 1.25rem;
    border: none !important;
    font-family: var(--common-font-sans);
    font-weight: 500;
    line-height: 1.2rem;
}

#main-content article.dps-layout-b2b-resource h3.entry-title a:hover,
#main-content article.dps-layout-b2b-carousel h3.entry-title a:hover {
    text-decoration: none !important;
}


article.dps-layout-b2b-resource .post-meta-wrapper,
article.dps-layout-b2b-carousel .post-meta-wrapper {
    padding: 20px 30px;
    height: 200px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#main-content article.dps-layout-b2b-resource .date-wrapper {
    font-family: var(--common-font-label);
    padding: 10px 0;
    text-transform: uppercase;
    color: #606060;
}

@media (max-width: 600px) {

    #main-content article.dps-layout-b2b-resource .category-wrapper ul li,
    #main-content article.dps-layout-b2b-carousel .category-wrapper ul li {
        margin-bottom: 5px;
    }

    #main-content article.dps-layout-b2b-resource h3.entry-title a,
    #main-content article.dps-layout-b2b-carousel h3.entry-title a {
        font-size: 1.125rem;
    }

    #main-content article.dps-layout-b2b-resource,
    #main-content article.dps-layout-b2b-carousel {
        min-height: 370px;
    }

    #main-content article.dps-layout-b2b-resource img.wp-post-image {
        min-height: 0px;
    }

    #main-content article.dps-layout-b2b-resource,
    #main-content article.dps-layout-b2b-carousel {
        height: 370px;
    }

}


#main-content .display-posts-wrapper .b2b-resource-image-placeholder {
    width: 100%;
    height: 200px;
    background-color: var(--noom-off-white);
    border-radius: 6px;
    position: relative;
  }
  #main-content .display-posts-listing.grid.video-grid.offset-0 .b2b-resource-image-placeholder {
    width: 50vw;
    height: 400px;
  }

  
#main-content .display-posts-wrapper .b2b-resource-image-placeholder::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Apply the SVG as a mask at 75% size */
    -webkit-mask-image: url("/wp-content/themes/Divi-child/images/noom-logo.svg");
    mask-image: url("/wp-content/themes/Divi-child/images/noom-logo.svg");
    -webkit-mask-size: 50%;
    mask-size: 50%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center 100px ;
    mask-position: center 100px ;

    /* Make the logo appear in black */
    background-color: black;
}

#main-content .display-posts-wrapper .b2b-resource-image-placeholder::after {
    -webkit-mask-image: url("/wp-content/themes/Divi-child/images/noom-logo-health.svg");
    mask-image: url("/wp-content/themes/Divi-child/images/noom-logo-health.svg");
}
