/* =========================================
   HERO WITH SEARCH BLOCK STYLES
   ========================================= */

/* 1. Main Wrapper */
.hero-wrapper {
  position: relative;
  width: 100%;
  min-height: 564px; /* Adjust this to make the hero taller/shorter */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 2. Background Image Container */
.hero-wrapper__background {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Make the Drupal image output behave like a background */
.hero-wrapper__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Darken the image slightly so white text is easy to read */
}

/* 3. Content Overlay (Text & Search) */
.hero-wrapper__content {
  position: relative;
  z-index: 1; /* Puts content on top of the absolute positioned image */
  text-align: center;
  color: #ffffff; /* White text */
  padding: 2rem;
  max-width: 800px;
  width: 100%;
}

/* Headline Styling */
.hero-wrapper__text .hero-title {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

/* 4. Search Box Layout (Pill Design) */
.hero-wrapper__search-box {
  margin-top: 4rem;
  width: 100%;
  max-width: 800px; /* Controls the maximum width of the search bar */
  margin-left: auto;
  margin-right: auto;
}

/* Make the form itself the white "pill" */
.hero-wrapper__search-box form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-radius: 50px; /* Creates the pill shape */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Adds a soft drop shadow to make it pop */
  margin: 0;
}

/* Style the text input */
.hero-wrapper__search-box input[type="search"],
.hero-wrapper__search-box input[type="text"] {
  flex-grow: 1; /* Tells the input to take up all available space */
  padding: 8px 50px 8px 24px; 
  border: none; /* Removes the square border */
  background: transparent;
  font-size: 1.1rem;
  color: #333;
  box-shadow: none;
}

/* Prevent square browser outlines when clicking the input */
.hero-wrapper__search-box input[type="search"]:focus,
.hero-wrapper__search-box input[type="text"]:focus {
  outline: none;
  box-shadow: none;
}

/* Style the submit button */
.hero-wrapper__search-box input[type="submit"] {
  padding: 8px 35px;
  background-color: #42B1FF; /* Your brand color */
  color: #ffffff;
  border: none;
  border-radius: 0 50px 50px 0; /* Matches the pill shape of the outer container */
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Button hover effects */
.hero-wrapper__search-box input[type="submit"]:hover {
  background-color: #042969;
}

/* Change the placeholder text color for the search input */
#edit-keys::placeholder {
  color: #828294; /* Replace with your desired hex color code */
  opacity: 1; /* Crucial for Firefox, which lowers placeholder opacity by default */
}

/* Optional: If you want to support older browsers, include these vendor prefixes */
#edit-keys::-webkit-input-placeholder { color: #828294; opacity: 1; }
#edit-keys::-moz-placeholder { color: #828294; opacity: 1; }
#edit-keys:-ms-input-placeholder { color: #828294; opacity: 1; }

.mt-4{
    margin-top: 0px !important;
}




