.custom-image-block {
  position: relative;
  max-height: 500px;
  overflow: hidden;
}

.block-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.text-container {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
  color: white;
}

.block-headline {
  font-size: 64px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin: 0;
  width: 100%;
}

.block-description {
  font-size: 20px;
  margin: 5px 0 0 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  padding-left: 68px;
  padding-right: 68px;
}

@media screen and (max-width: 800px) {
  @media screen and (max-width: 800px) {
    .custom-image-block {
      background-position: center center !important;
      background-size: cover !important;
    }
  }

  .block-image {
    height: 300px;
    object-fit: cover;
  }

  .text-container {
    bottom: 10px !important;
    padding: 10px !important;
    left: 50%;
    transform: translateX(-50%);
  }

  .block-headline {
    font-size: 24px;
  }

  .block-description {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 18px;
  }
}

.link-button {
  display: inline-block;
  min-width: 300px;
  width: auto;
  padding: 10px 20px;
  background-color: #ED7723;  /* Resting state background color */
  color: #ffffff;             /* Text color */
  text-decoration: none;      /* Remove underline from text */
  text-align: center;         /* Center the text */
  border: none;               /* Remove any borders */
  border-radius: 0;           /* Remove rounded corners */
  font-size: 16px;            /* Set font size */
  cursor: pointer;            /* Show pointer cursor on hover */
  transition: background-color 0.3s ease; /* Smooth transition */
}

/* Hover effect */
.link-button:hover {
  background-color: #FDAC73;  /* Hover state background color */
  color: #ffffff;             /* Ensure text remains white on hover */
  text-decoration: none;      /* Ensure underline does not appear on hover */
}

/* Adjust font size for smaller screens */
@media screen and (max-width: 800px) {
  .link-button {
    font-size: 12px;
  }
}

.link-button:active {
  background-color: #E3671B; /* Slightly darker shade for active state */
}

.link-button:focus {
  outline: 2px solid #FDAC73; /* Outline to indicate focus */
  outline-offset: 2px;
}
