/* ================================= */
/* ALIGN SEARCH PAGE WITH BREADCRUMB */
/* ================================= */

/* Align breadcrumb with search results column */
.path-search .breadcrumb {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.block-system-main-block .vector-search-page {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 10px;
  padding-bottom: 80px;
}

.block-system-main-block .vector-search-page__form,
.block-system-main-block .vector-search-page__results {
  max-width: 820px;
    margin-left: auto;
  margin-right: auto;
}


/* ================================= */
/* SEARCH BAR */
/* ================================= */

.vector-search-page__form .views-exposed-form {
  position: relative;
  margin-bottom: 40;
}


.vector-search-page__form input[type="text"],
.vector-search-page__form input[type="search"] {
  width: 100%;
  height: 54px;
  padding: 0 55px 0 20px;
  border-radius: 6px;
  border: 1px solid #dcdcdc;
  font-size: 16px;
  box-sizing: border-box;
}



/* ================================= */
/* RESULTS */
/* ================================= */

.vector-search-page__results .views-row {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e6e6e6;
}

.vector-search-page__results .views-field-title a {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.vector-search-page__results .views-field-title a:hover {
  text-decoration: underline;
}

.vector-search-page__results .views-field-search-api-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin-top: 8px;
}

/* ================================= */
/* CLEAN SEARCH ICON INSIDE INPUT   */
/* ================================= */

/* 1️⃣ Remove theme pseudo icon completely */
.vector-search-page__form .form--inline.clearfix::after {
  content: none !important;
}

/* 2️⃣ Make input wrapper positioning anchor */
.vector-search-page__form .js-form-item {
  position: relative;
}

/* 3️⃣ Give input room for icon */
.vector-search-page__form input[type="text"] {
  width: 100%;
  padding: 16px 50px 16px 18px;
  box-sizing: border-box;
}

/* 4️⃣ Create new magnifier icon */
.vector-search-page__form .js-form-item::after {
  content: "\f002";
  font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #003366;
  pointer-events: none;
}

/* Add space between result title and excerpt */
.vector-search-page__results .views-field-title {
  margin-bottom: 5px;
}

.vector-search-page__results .search-result-summary {
  font-size: 14px !important;
  line-height: 1.8 !important;
  color: #555 !important;
}

/* Force search input full width */
#edit-search-api-fulltext {
  width: 100% !important;
}


@media (max-width: 943px){

  .path-search .region-content,
  .path-search .view-content,
  .path-search .views-row {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
    /* Center the exposed search form */
  .path-search .views-exposed-form {
    display: flex;
    justify-content: center;
  }

  /* Make input nicely centered and responsive */
  .path-search #edit-search-api-fulltext {
    width: 100%;
    max-width: 320px;
  }
  
}


  body.is-ultimenu-expanded .uis-logo-blue {
    display: none !important;
  }


/* ===================================================== */
/* MOBILE ONLY (PHONES) — HEADER + MENU FIX             */
/* ===================================================== */

@media (max-width: 499px) {

  /* Remove spacing from highlighted region */
  #highlighted {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  /* Remove spacing from region wrapper */
  #highlighted .region-highlighted {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  /* Position the mobile logo correctly */
  #block-mobilelogo-2 {
    position: absolute !important;
    top: -3px !important;
    left: -4px !important;
    z-index: 1000 !important;
  }

  /* Ensure logo image scales properly */
  #block-mobilelogo-2 img {
    height: auto !important;
    max-height: 48px !important;
    width: auto !important;
    display: block !important;
  }

  /* When menu is open — disable sticky behavior (phones only) */
  body.is-ultimenu-expanded #header {
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
  }

  /* Hide desktop logo when menu open (phones only) */
  body.is-ultimenu-expanded .logo2-blue,
  body.is-ultimenu-expanded .uis-logo-blue {
    display: none !important;
  }

  /* Hide mobile logo when menu open */
  body.is-ultimenu-expanded #block-mobilelogo-2 {
    display: none !important;
  }

}

/* ===================================== */
/* PORTRAIT TABLET — FORCE MENU WHITE   */
/* ===================================== */

@media (min-width: 600px) and (max-width: 943px) and (orientation: portrait) {

  ul#ultimenu-main {
    margin-top: 0 !important;
  }

  /* Force actual offcanvas menu panel to be white */
  .is-ultimenu-expanded .is-ultimenu-offcanvas,
  .is-ultimenu-expanded .ultimenu {
    background-color: #ffffff !important;
  }

  /* Keep backdrop behind */
  .is-ultimenu-expanded .is-ultimenu-canvas-backdrop {
    z-index: 1 !important;
  }

  /* Ensure menu sits above backdrop */
  .is-ultimenu-expanded .is-ultimenu-offcanvas {
    position: relative !important;
    z-index: 2 !important;
  }

  /* Keep header above backdrop */
  .is-ultimenu-expanded #header {
    position: relative !important;
    z-index: 10000 !important;
  }
}


/* FORCE SEARCH FORM TO FULL WIDTH */
.vector-search-page__form {
  width: 100% !important;
  float: none !important;
  display: block !important;
  clear: both !important;
}

/* FORCE RESULTS TO START BELOW */
.vector-search-page__results {
  width: 100% !important;
  float: none !important;
  display: block !important;
  clear: both !important;
}

