.fancy-row {
  --fancy-row-text-max-width@lg: 50%;
  display: flex;
  flex-flow: column;
  justify-content: center;
  height: 50vh; /* Adjust height to half the container */
  width: 100%;
  position: relative;
  overflow: hidden; /* Prevents the image from overflowing */
}

/* Full-Width Banner Image */
.fancy-row__media-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* Prevents image overflow outside the container */
}

.fancy-row__img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image always fills the container */
}

/* Banner Content (Text and CTA) */
.fancy-row__text {
  position: absolute;
  bottom: 30px; /* Position the content towards the bottom */
  left: 30px;
  color: #fff;
  z-index: 2;
  max-width: 80%;
  padding: 20px;
}

.fancy-row__title {
  font-size: 32px;
  margin-bottom: 20px;
}

.fancy-row__paragraph p {
  font-size: 16px;
  margin-bottom: 20px;
}

/* CTA Buttons */
.work-with-us-btn {
  background-color: #c4fc3f;
  color: #0E151F;
  padding: 10px 20px;
  border-radius: 5px;
  margin-right: 10px;
  text-decoration: none;
}

.work-with-us-btn:hover {
  background-color: #a4e020; /* Hover effect */
}

/* Responsive Design */
@media (max-width: 767px) {
  .fancy-row {
    height: 40vh; /* Further reduce height on mobile */
  }

  .fancy-row__text {
    text-align: center;
    bottom: unset;
    left: 50%;
    transform: translateX(-50%);
  }

  .fancy-row__title {
    font-size: 24px;
  }

  .fancy-row__paragraph p {
    font-size: 14px;
  }

  .work-with-us-btn {
    width: 100%;
  }
}