/* ============================================================
   1. HIDE ASTRA DEFAULTS
   ============================================================ */
.search-results .ast-archive-description,
.search-results .ast-archive-title,
.search-results .ast-breadcrumbs,
.search-results .breadcrumb,
.search-results .page-title,
.search-results h1.page-title,
.search-results h1.entry-title,
.search-results .entry-meta,
.search-results .posted-on,
.search-results .byline,
.search-results .author-name,
.search-results .entry-header .entry-meta {
    display: none !important;
}
.search-results .entry-header {
    margin-bottom: .5rem !important;
}

/* ============================================================
   2. CUSTOM SEARCH TITLE
   ============================================================ */
.search-results .giim-search-title {
    display: block !important;
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 28px !important;
    color: #0d0d0d;
    letter-spacing: -0.3px;
}

/* ============================================================
   3. EXECUTIVE CARD LAYOUT
   ============================================================ */
.search-results article {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 22px 26px;
    margin-bottom: 26px !important;
    transition: box-shadow .25s ease, transform .25s ease;
}
.search-results article:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
    transform: translateY(-2px);
}

/* ============================================================
   4. EXECUTIVE TITLE STYLING — CENTERED + TWO LINES
   ============================================================ */
.search-results .entry-title {
    text-align: center !important;
    margin-bottom: 10px !important;
}
.search-results .entry-title a {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 2.8em !important;
    line-height: 1.4 !important;
    color: #0d0d0d !important;
    font-weight: 600 !important;
    font-size: 22px !important;
    text-decoration: none !important;
    letter-spacing: -0.2px;
    transition: all .25s ease !important;
}
.search-results .entry-title a:hover {
    color: #000 !important;
    transform: scale(1.02);
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

/* Remove Astra/Elementor decorative lines */
.search-results .entry-title::before,
.search-results .entry-title::after,
.search-results .entry-header::before,
.search-results .entry-header::after {
    content: none !important;
}

/* ============================================================
   5. EXECUTIVE EXCERPT STYLING
   ============================================================ */
.search-results .entry-summary {
    margin: 8px 0 4px !important;
    color: #444 !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
    max-width: 900px;
}

/* ============================================================
   6. PREMIUM KEYWORD HIGHLIGHTING
   ============================================================ */
.search-results mark {
    background: #fff3b0 !important;
    padding: 0 2px !important;
    border-radius: 2px !important;
}

/* ============================================================
   7. NO RESULTS — EXECUTIVE LOOK
   ============================================================ */
.search-no-results .ast-archive-description,
.search-no-results .ast-archive-title,
.search-no-results .ast-breadcrumbs,
.search-no-results .breadcrumb,
.search-no-results .page-title,
.search-no-results h1.page-title,
.search-no-results h1.entry-title,
.search-no-results #ajaxsearchlite1,
.search-no-results .asl_w_container,
.search-no-results .probox,
.search-no-results .proinput,
.search-no-results .proloading {
    display: none !important;
}
.search-no-results .entry-content p:first-of-type {
    font-size: 30px !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin-bottom: 16px !important;
    color: #111 !important;
    letter-spacing: -0.3px;
}
.search-no-results .entry-content p:nth-of-type(2) {
    font-size: 16px !important;
    color: #444 !important;
    text-align: center !important;
    line-height: 1.55 !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}
.search-no-results .entry-content a {
    display: block;
    text-align: center;
    margin: 26px auto 0;
    padding: 14px 20px;
    background: #f8f8f8;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    font-weight: 600;
    color: #111 !important;
    transition: all .25s ease;
}
.search-no-results .entry-content a:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

/* ============================================================
   8. SEARCH RESULTS GRID — UPDATED
   ============================================================ */
body.search-results .ast-row {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-gap: 30px !important;
    width: 100% !important;
}
body.search-results [class*="ast-col"] {
    float: none !important;
    width: 100% !important;
    display: block !important;
}

/* ============================================================
   9. GOLD LINES — HEADER + FOOTER
   ============================================================ */
header.site-header,
.elementor-location-header,
header.ast-header,
header.ast-primary-header-bar {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: 2px solid #eaaf04 !important;
}
.elementor-sticky--active.elementor-sticky--effects {
    border-bottom: 2px solid #eaaf04 !important;
}
footer.site-footer,
.elementor-location-footer,
.site-footer,
.ast-footer {
    background: transparent !important;
    box-shadow: none !important;
    border-top: 2px solid #eaaf04 !important;
}

/* ============================================================
   10. COPYRIGHT LINE — REMOVE EXTRA SPACE
   ============================================================ */
.elementor-location-footer p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

/* ============================================================
   11. GIIM REFINE SEARCH BAR — FINAL
   ============================================================ */
.giim-refine-search {
    max-width: 100%;
    padding: 26px 0 30px;
    text-align: center;
}
.giim-refine-search-title {
    font-weight: 600;
    font-size: 28px;
    color: #222;
    margin-bottom: 18px;
    line-height: 1.3;
}
.giim-refine-search input[type="search"] {
    padding: 12px 14px;
    width: 100%;
    max-width: 380px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background: #fff;
    color: #222;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.giim-refine-search input[type="search"]:focus {
    border-color: #c9a857;
    box-shadow: 0 0 0 2px rgba(201,168,87,0.25);
    outline: none;
}

/* ============================================================
   12. SEARCH RESULT CARD LAYOUT — UPDATED
   ============================================================ */
body.search-results article {
    background: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    padding: 22px !important;
    border-radius: 6px !important;
    display: block !important;
    width: 100% !important;
    float: none !important;
}
body.search-results article .entry-header,
body.search-results article .entry-content,
body.search-results article .entry-summary,
body.search-results article .post-content,
body.search-results article .inside-article {
    float: none !important;
    width: 100% !important;
    display: block !important;
}

/* ============================================================
   13. FIX LEGACY ASTRA HEADER SEARCH HEIGHT
   ============================================================ */
.ast-search-menu,
.ast-search-menu .search-form,
.ast-search-menu input.search-field,
.ast-search-menu .search-submit {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    line-height: 32px !important;
    padding: 0 !important;
}

/* ============================================================
   HIDE BLOG POSTS FROM SEARCH RESULTS (VISUAL EXCLUSION)
   ============================================================ */
.search-results article.category-blog,
.search-results article.category-blogs,
.search-results article.category-news,
.search-results article.post-type-post {
    display: none !important;
}