/* content-image-block.css */

.custom-content-image-block {
  display: flex;
  align-items: stretch; /* force columns to match height */
  min-height: 400px; /* or whatever suits your design */
  color: #fff; /* typical text color if background is dark */
  background-size: cover;
  background-position: center;
}

/* handle left vs right image */
.custom-content-image-block.image-position-left {
  flex-direction: row;
}
.custom-content-image-block.image-position-right {
  flex-direction: row-reverse;
}

/* Content column is 60% */
.custom-content-image-block .content-column {
    width: 60%;
    box-sizing: border-box;
    padding: 100px 0px; /* you can adjust the text padding as you like */
    Display: flex;
    justify-content: center;
    align-items: center;
}

/* Image column is 40%, no padding, full height */
.custom-content-image-block .image-column {
  width: 40%;
  box-sizing: border-box;
  padding: 0; /* no padding around image */
  margin: 0; 
  overflow: hidden; /* ensures the image won't overflow */
  position: relative; /* in case you need something overlayed */
}

/* Make the img fill the entire column */
.custom-content-image-block .image-column img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill the entire height without distorting aspect ratio */
}

/* Optional: style the button */
.custom-content-image-block .content-image-button {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 60px;
  background-color: transparent;
  border: 1px solid #fff;
  border-radius: 35px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
   transition: all 0.3s ease;
}

.content-div p {
    font-size: 26px;
    line-height: 40px;
}

.content-div h2 {
    font-size: 32px;
    color: white;
}

.custom-content-image-block .content-div {
    width: 70%;
    max-width: 520px;
}

.custom-content-image-block .content-div h2 {
    margin-bottom: 35px;
    line-height: 70px;
    font-weight: 500;
}

.custom-content-image-block .image-wrapper {
    position: relative;
    height: 100%;;
}

.custom-content-image-block .image-wrapper .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 131, 213, 0.25); /* #0083D540 */
    pointer-events: none; /* Allow clicks to pass through to the image */
}
.height721 {
  height: 721px;
}


@media (max-width: 980px) {
    .custom-content-image-block .image-column {
        width: 100%;
    }
    .custom-content-image-block .content-div {
    width: 100%;
}
.custom-content-image-block .content-column {
    width: 100%;
    padding: 60px 24px !important;
}
.custom-content-image-block.image-position-left, .custom-content-image-block.image-position-right {
    flex-direction: column;
}
.content-div p {
  font-size: 18px;
  line-height: 27px;
}
.custom-content-image-block .content-div h2 {
line-height: 40px;
font-size: 32px;
}
}
 .height721 .content-column {
    padding: 0px;
  }
  .height721 .content-div h2 {
    margin-top: 0px;
  }
@media (max-width: 1366px) {
  .height721 {
  height: auto;
}
  .height721 .content-column {
    padding: 100px 0px;
  }
}
