/* ============================================================
   GIIM SEARCH RESULTS — CLEANED AND CONSOLIDATED
   ============================================================ */

/* 1. Hide Astra defaults */
.search-results .ast-archive-description,
.search-results .ast-breadcrumbs,
.search-results .breadcrumb,
.search-results .entry-meta,
.search-results .posted-on,
.search-results .byline,
.search-results .author-name,
.search-results .entry-header .entry-meta {
  display: none !important;
}

/* 2. Page titles and GIIM search title */
.search-results .page-title,
.search-results h1.page-title,
.search-results h1.entry-title,
.giim-search-title {
  display: block;
  text-align: center;
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 28px;
  color: #0d0d0d;
  letter-spacing: -0.3px;
}

/* 3. Executive card layout */
.search-results article {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 22px 26px;
  margin-bottom: 26px;
  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 */
.search-results .entry-title {
  text-align: center;
  margin-bottom: 10px;
}
.search-results .entry-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  line-height: 1.4;
  color: #0d0d0d;
  font-weight: 600;
  font-size: 22px;
  text-decoration: none;
  letter-spacing: -0.2px;
  transition: all .25s ease;
}
.search-results .entry-title a:hover {
  color: #000;
  transform: scale(1.02);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 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;
}

/* 5. Executive excerpt styling */
.search-results .entry-summary {
  margin: 8px 0 4px;
  color: #444;
  font-size: 15px;
  line-height: 1.55;
  max-width: 900px;
}

/* 6. Keyword highlighting */
.search-results mark {
  background: #fff3b0;
  padding: 0 2px;
  border-radius: 2px;
}

/* 7. No results layout */
.search-no-results .entry-content p:first-of-type {
  font-size: 30px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  color: #111;
  letter-spacing: -0.3px;
}
.search-no-results .entry-content p:nth-of-type(2) {
  font-size: 16px;
  color: #444;
  text-align: center;
  line-height: 1.55;
  max-width: 600px;
  margin: 0 auto;
}
.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;
  transition: all .25s ease;
}
.search-no-results .entry-content a:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

/* 8. Search results grid */
@supports (display: grid) {
  body.search-results .ast-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
    width: 100%;
  }
}
body.search-results [class*="ast-col"] {
  float: none;
  width: 100%;
  display: block;
}

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

/* 10. Copyright line */
.elementor-location-footer p {
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

/* 11. GIIM refine search bar */
.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. 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;
  min-height: 32px;
  max-height: 32px;
  line-height: 32px;
  padding: 0;
}
/* 13. Page layout stabilization */
.page-content,
.entry-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
}