/* ============================================= */
/* 1. HEADER & SPACING FIX (Stop Overlapping)    */
/* ============================================= */

/* Add space at the top of main content */
.search-results #main,
body.search #main {
    padding-top: 180px !important;
}

/* Ensure the header stays above everything else */
#header {
    z-index: 9999 !important;
}

/* Keep header transparent */
body.search #header,
body.search .header-box,
body.search .header_inverse {
    background: transparent !important;
}

/* ============================================= */
/* 2. HIDE CATEGORIES & COMMENTS (Total Reset)   */
/* ============================================= */

/* STEP A: Hide ALL meta items in the search results first */
.search-results .post_meta li,
.search-results .post-meta li,
.search-results .stm-post-details ul li,
.search-results .stm-search-result .post-meta .item {
    display: none !important;
}

/* STEP B: Specifically re-show only the 1st (Date) and 2nd (Author) items */
.search-results .post_meta li:nth-child(1),
.search-results .post_meta li:nth-child(2),
.search-results .post-meta li:nth-child(1),
.search-results .post-meta li:nth-child(2),
.search-results .stm-post-details ul li:nth-child(1),
.search-results .stm-post-details ul li:nth-child(2) {
    display: inline-block !important;
}

/* STEP C: Force hide any element with 'cat' or 'comment' in the class name inside search */
.search-results [class*="cat"],
.search-results [class*="comment"],
.search-results .item-cat,
.search-results .item-comments {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}

/* STEP D: Remove all vertical separators and pipes (|) */
.search-results .post_meta li:after,
.search-results .post_meta li:before,
.search-results .post-meta li span:after {
    display: none !important;
    content: none !important;
}

/* =========================================
   Simplified WP Consent Table Realignment
========================================= */

/* Force all tables inside the cookie banner to use full layout width */
*::part(wp-consent-table) {
    width: 100% !important;
    table-layout: auto !important;
}

/* Align text to the left and add clean column padding */
*::part(wp-consent-th), 
*::part(wp-consent-td) {
    text-align: left !important;
    padding: 10px !important;
    white-space: normal !important;
}