/* File: text-image-v2.css */

/* Overall section styling */
.text-image-v2 {
    /* Optional: adjust section padding and background color */
    padding: 60px 20px;
    background-color: #fff;
  }
  
  /* The .container class may already exist in your theme with its own max-width.
     If not, here’s an example: */
  .text-image-v2__inner.container {
    max-width: 1263px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem; /* space between text and image columns */
  }
  
  /* Left column: text content with gold border */
  .text-image-v2__content {
    flex: 1 1 50%;
    position: relative;
    max-width: 475px;
  }
  
  /* Subheading (“Meet AMJ – Your Professional Movers”) */
  .text-image-v2__subheading {
    color: #0072BC;
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px; /* 112.5% */
    margin-bottom: 10px;
  }
  
  /* Main heading (“A Better Moving Experience Starts Here”) */
  .text-image-v2__heading {
    color: #000;
    font-family: Poppins;
    font-size: 42px;
    margin-bottom: 30px;
    font-style: normal;
    font-weight: 500;
    line-height: 54.6px; /* 130% */
  }
  
  /* Body text */
  .text-image-v2__body {
    color: #000;
    font-family: Poppins;
    font-size: 16px;
    line-height: 24px; /* 150% */
  }

  .text-image-v2__body strong {
    font-weight: 600;
  }

  .text-image-v2__button a {
    display: flex;
    padding: 10px 30px 11px 30px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-radius: 24px;
    border: 2px solid #CD1613;
    color: #CD1613;
    text-align: center;
    font-family: Poppins;
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 16.5px; /* 110% */
    width: fit-content;
  }
  
  /* Right column: image with a colored rectangle behind it */
  .text-image-v2__image {
    flex: 1 1 40%;
    position: relative;
    max-width: 50%;
    /* text-align: right; if you prefer right-aligned images without the pseudo-element approach */
  }

  
  /* Actual image styling */
  .text-image-v2__image img {
    position: relative;
    z-index: 1;       /* ensure the image sits on top of the colored rectangle */
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0rem 0 0 0rem; /* offset so the image overlaps the blue rectangle */
  }
  
  /* -----------------------------------
     OPTIONAL: Responsive adjustments
     ----------------------------------- */
  /* Example: Stack columns on mobile */
  @media screen and (max-width: 768px) {
    .text-image-v2__inner.container {
      flex-direction: column;
      align-items: flex-start;
    }
    .text-image-v2__image {
      width: 100%;
      margin-top: 2rem; /* spacing above or below text */
    }
    .text-image-v2__image::before {
      width: 100%;
      max-width: 590px; /* if you want to limit the rectangle’s width */
      height: auto;
      /* Adjust or remove these if you want a different mobile layout */
    }
    .text-image-v2__image img {
      margin-left: 0;
      margin-top: 0;
    }

    .text-image-v2__image {
      max-width: 500px;
    }

    .text-image-v2__content {
      max-width: 100%;;
    }

    .text-image-v2__heading {
      font-size: 30px;
      line-height: 38px;
    }

  }