/* Hide JobBox demo/placeholder media images */

/* Pages banners */
img[src*="/storage/pages/banner1.png"],
img[src*="/storage/pages/banner2.png"],
img[src*="/storage/pages/banner3.png"],
img[src*="/storage/pages/banner4.png"],
img[src*="/storage/pages/banner5.png"],
img[src*="/storage/pages/banner6.png"],
img[src*="/storage/pages/banner7.png"],
img[src*="/storage/pages/banner8.png"],
img[src*="/storage/pages/banner9.png"] {
    display: none !important;
}

/* Companies demo logos/images numbered 1-50 */
img[src*="/storage/companies/1.png"],
img[src*="/storage/companies/2.png"],
img[src*="/storage/companies/3.png"],
img[src*="/storage/companies/4.png"],
img[src*="/storage/companies/5.png"],
img[src*="/storage/companies/6.png"],
img[src*="/storage/companies/7.png"],
img[src*="/storage/companies/8.png"],
img[src*="/storage/companies/9.png"],
img[src*="/storage/companies/10.png"],
img[src*="/storage/companies/11.png"],
img[src*="/storage/companies/12.png"],
img[src*="/storage/companies/13.png"],
img[src*="/storage/companies/14.png"],
img[src*="/storage/companies/15.png"],
img[src*="/storage/companies/16.png"],
img[src*="/storage/companies/17.png"],
img[src*="/storage/companies/18.png"],
img[src*="/storage/companies/19.png"],
img[src*="/storage/companies/20.png"],
img[src*="/storage/companies/21.png"],
img[src*="/storage/companies/22.png"],
img[src*="/storage/companies/23.png"],
img[src*="/storage/companies/24.png"],
img[src*="/storage/companies/25.png"],
img[src*="/storage/companies/26.png"],
img[src*="/storage/companies/27.png"],
img[src*="/storage/companies/28.png"],
img[src*="/storage/companies/29.png"],
img[src*="/storage/companies/30.png"],
img[src*="/storage/companies/31.png"],
img[src*="/storage/companies/32.png"],
img[src*="/storage/companies/33.png"],
img[src*="/storage/companies/34.png"],
img[src*="/storage/companies/35.png"],
img[src*="/storage/companies/36.png"],
img[src*="/storage/companies/37.png"],
img[src*="/storage/companies/38.png"],
img[src*="/storage/companies/39.png"],
img[src*="/storage/companies/40.png"],
img[src*="/storage/companies/41.png"],
img[src*="/storage/companies/42.png"],
img[src*="/storage/companies/43.png"],
img[src*="/storage/companies/44.png"],
img[src*="/storage/companies/45.png"],
img[src*="/storage/companies/46.png"],
img[src*="/storage/companies/47.png"],
img[src*="/storage/companies/48.png"],
img[src*="/storage/companies/49.png"],
img[src*="/storage/companies/50.png"] {
    display: none !important;
}

/* News demo images numbered 1-50 */
img[src*="/storage/news/1.jpg"],
img[src*="/storage/news/2.jpg"],
img[src*="/storage/news/3.jpg"],
img[src*="/storage/news/4.jpg"],
img[src*="/storage/news/5.jpg"],
img[src*="/storage/news/6.jpg"],
img[src*="/storage/news/7.jpg"],
img[src*="/storage/news/8.jpg"],
img[src*="/storage/news/9.jpg"],
img[src*="/storage/news/10.jpg"],
img[src*="/storage/news/11.jpg"],
img[src*="/storage/news/12.jpg"],
img[src*="/storage/news/13.jpg"],
img[src*="/storage/news/14.jpg"],
img[src*="/storage/news/15.jpg"],
img[src*="/storage/news/16.jpg"],
img[src*="/storage/news/17.jpg"],
img[src*="/storage/news/18.jpg"],
img[src*="/storage/news/19.jpg"],
img[src*="/storage/news/20.jpg"],
img[src*="/storage/news/21.jpg"],
img[src*="/storage/news/22.jpg"],
img[src*="/storage/news/23.jpg"],
img[src*="/storage/news/24.jpg"],
img[src*="/storage/news/25.jpg"],
img[src*="/storage/news/26.jpg"],
img[src*="/storage/news/27.jpg"],
img[src*="/storage/news/28.jpg"],
img[src*="/storage/news/29.jpg"],
img[src*="/storage/news/30.jpg"],
img[src*="/storage/news/31.jpg"],
img[src*="/storage/news/32.jpg"],
img[src*="/storage/news/33.jpg"],
img[src*="/storage/news/34.jpg"],
img[src*="/storage/news/35.jpg"],
img[src*="/storage/news/36.jpg"],
img[src*="/storage/news/37.jpg"],
img[src*="/storage/news/38.jpg"],
img[src*="/storage/news/39.jpg"],
img[src*="/storage/news/40.jpg"],
img[src*="/storage/news/41.jpg"],
img[src*="/storage/news/42.jpg"],
img[src*="/storage/news/43.jpg"],
img[src*="/storage/news/44.jpg"],
img[src*="/storage/news/45.jpg"],
img[src*="/storage/news/46.jpg"],
img[src*="/storage/news/47.jpg"],
img[src*="/storage/news/48.jpg"],
img[src*="/storage/news/49.jpg"],
img[src*="/storage/news/50.jpg"],
img[src*="/storage/news/1.png"],
img[src*="/storage/news/2.png"],
img[src*="/storage/news/3.png"],
img[src*="/storage/news/4.png"],
img[src*="/storage/news/5.png"],
img[src*="/storage/news/6.png"],
img[src*="/storage/news/7.png"],
img[src*="/storage/news/8.png"],
img[src*="/storage/news/9.png"],
img[src*="/storage/news/10.png"] {
    display: none !important;
}

/* General demo images */
img[src*="/storage/general/cover-image.png"],
img[src*="/storage/general/newsletter-image-left.png"],
img[src*="/general/newsletter-image-left.png"],
img[src*="/storage/general/placeholder"],
img[src*="/storage/general/default"],
img[src*="/storage/general/no-image"] {
    display: none !important;
}

/* Hide same images when used as background images */
[style*="/storage/pages/banner1.png"],
[style*="/storage/pages/banner2.png"],
[style*="/storage/pages/banner3.png"],
[style*="/storage/pages/banner4.png"],
[style*="/storage/pages/banner5.png"],
[style*="/storage/companies/1.png"],
[style*="/storage/companies/2.png"],
[style*="/storage/companies/3.png"],
[style*="/storage/companies/4.png"],
[style*="/storage/companies/5.png"],
[style*="/storage/companies/6.png"],
[style*="/storage/companies/7.png"],
[style*="/storage/companies/8.png"],
[style*="/storage/companies/9.png"],
[style*="/storage/news/1.jpg"],
[style*="/storage/news/2.jpg"],
[style*="/storage/general/cover-image.png"],
[style*="/storage/general/newsletter-image-left.png"],
[style*="/general/newsletter-image-left.png"] {
    background-image: none !important;
}

/* Hide common placeholder-like images */
img[src*="placeholder"],
img[src*="placehold"],
img[src*="default-image"],
img[src*="no-image"],
img[src*="dummy"],
img[src*="fakeimg"] {
    display: none !important;
}

/* Hide empty image boxes after image is removed */
.job-card-logo:empty,
.job-item-logo:empty,
.company-logo:empty,
.employer-logo:empty,
.category-icon:empty,
.banner-image:empty,
.hero-image:empty,
.advertisement-image:empty,
.apply-banner-image:empty {
    display: none !important;
}

/* Hide parent wrapper when it directly contains known placeholder images */
div:has(> img[src*="/storage/pages/banner1.png"]),
div:has(> img[src*="/storage/pages/banner2.png"]),
div:has(> img[src*="/storage/companies/5.png"]),
div:has(> img[src*="/storage/companies/7.png"]),
div:has(> img[src*="/storage/news/2.jpg"]),
div:has(> img[src*="/storage/general/cover-image.png"]),
div:has(> img[src*="/storage/general/newsletter-image-left.png"]),
div:has(> img[src*="/general/newsletter-image-left.png"]),
div:has(> img[src*="placeholder"]),
div:has(> img[src*="placehold"]) {
    display: none !important;
}