/* Advanced CSS to hide unwanted text elements */

/* Method 1: Hide by text content (using attribute selectors) */
.geodir-page h1[data-content*="Insurance"],
.geodir-page h1[data-content*="Financial"],
.geodir-page h1[data-content*="Restaurant"] {
    display: none !important;
}

/* Method 2: Hide by specific text patterns */
.geodir-page h1:first-of-type,
.geodir-page .entry-title:first-of-type {
    /* This will hide the first heading on category pages */
    display: none !important;
}

/* Method 3: Hide by color (pink/magenta text) */
.geodir-page h1[style*="color: #ff0000"],
.geodir-page h1[style*="color: #ff00ff"],
.geodir-page h1[style*="color: #e91e63"],
.geodir-page h1[style*="color: #f06292"],
.geodir-page h1[style*="color: #ec407a"],
.geodir-page h1[style*="color: #ad1457"],
.geodir-page h1[style*="color: #c2185b"] {
    display: none !important;
}

/* Method 4: Hide specific text anywhere on the page */
body:contains("Restaurant post type") {
    display: none !important;
}

/* Method 5: Hide by class or ID that might contain these texts */
.geodir-page-title,
.geodir-category-title,
.geodir-archive-title {
    display: none !important;
}

/* Method 6: Hide the first paragraph or div that contains the text */
.geodir-page p:first-of-type:contains("Restaurant post type"),
.geodir-page div:first-of-type:contains("Restaurant post type") {
    display: none !important;
}

/* Method 7: Hide any element with specific text */
*:contains("Restaurant post type"),
*:contains("All Insurance & Financial Services") {
    display: none !important;
}

/* Method 8: Hide by position (first heading on category pages) */
body.taxonomy-gd_placecategory .geodir-page h1:first-child,
body.taxonomy-gd_placecategory .geodir-page .entry-title:first-child {
    display: none !important;
}
