.services-content-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  padding: 20px;
  margin: 0 auto;
}

.service-box {
  padding: 1rem;
  margin-bottom: 1.25rem; /* Tailwind's mb-5 */
  border-radius: 0.5rem; /* Tailwind's rounded-lg */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* Tailwind's shadow-lg */
  position: relative;
  overflow: hidden;
  height: auto; /* Adjust based on content */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #FFF; /* White text for better readability */
}

.service-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay */
  z-index: 0;
}

.service-box > * {
  position: relative;
  z-index: 1;
}

.service-box h3 {
  font-size: 1.25rem; /* Tailwind's text-xl */
  font-weight: bold; /* Tailwind's font-bold */
  color: #ffffff; /* Adjust if needed, considering the dark overlay */
  margin-bottom: 0.5rem; /* Space below the heading */
  background: transparent;
}

.service-box p {
  font-size: 1rem; /* Tailwind's text-base */
  color: #ffffff; /* Adjust if needed, considering the dark overlay */
  line-height: 1.5; /* Tailwind's leading-relaxed */
  background: transparent;
}

.service-box h3, .service-box p {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6); /* Text shadow for better readability */
  position: relative;
  z-index: 1;
}

.service-box:hover {
  filter: brightness(1.3); /* Increase brightness by 30% */
}

  .filters {
    text-align: center;
    margin: 20px 0; /* Adjust the margin as needed for more space */
  }
  
  .filter-btn {
    background-color: rgb(27, 41, 80); /* Dark blue background */
    color: white; /* White text */
    padding: 10px 15px; /* Similar padding to your dropdown button */
    border: none; /* No border */
    cursor: pointer; /* Pointer cursor on hover */
    margin: 5px; /* Space between buttons */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
  }
  
  .filter-btn:hover {
    background-color: #0473f1; /* Lighter blue background on hover */
    color: white; /* Ensure text remains white */
  }

  .filter-btn.active {
    background-color: #0473f1; /* Highlight color for active button */
    color: white;
  }

  #custom-services-section {
    padding: 0 10%; /* 10% padding on each side of the section */
  }
  
  #custom-services-section h2.custom-services-title {
    font-size: 2em;
    margin-bottom: 1em;
    margin-top: 1em;
    color: #333;
  }
  
  .custom-services-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .custom-services-options {
    display: flex;
    justify-content: space-between; /* Evenly space the service options in a row */
    width: 100%; /* Ensure the container takes up the full width */
    margin: 20px 0; /* Space above and below the options container */
  }
  
  .custom-service-option {
    width: 33%;
    height: 200px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    display: flex; /* Use flexbox to center content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    text-align: center; /* Ensure text is centered */
    background-size: cover; /* Cover the entire box without stretching */
    background-position: center; /* Center the background image */
  }

  .custom-service-option span {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent background for text */
    padding: 5px 10px;
    border-radius: 5px;
    color: #fff; /* White text for better readability */
    font-size: 1.2em; /* Slightly larger text */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8); /* Text shadow for enhanced readability */
    max-width: 80%; /* Limit the text width for better readability */
  }
  
  .custom-service-option::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7); /* Increase the darkness of the overlay */
    z-index: 1;
    background-size: cover; /* Cover the entire box without stretching */
    background-position: center; /* Center the background image */
  }
  
  .custom-service-text {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    color: #fff;
  }
  
  .custom-services-cta {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin: 20px auto; /* Even spacing around the CTA button, centered horizontally */
  }
  
  @media (max-width: 768px) {
    .custom-services-options {
      flex-direction: column;
    }
  
    .custom-service-option {
      width: 100%; /* Full width for smaller screens */
      margin-bottom: 10px; /* Space between options when stacked */
    }
  }