
.content-area {
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.left-text-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.left-image-container,
.left-text-container {
  flex: 1 1 50%;
  /* padding: 0 30px; */
}

.left-image-container img {
  width: 100%;
  height: auto;
  max-width: 600px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}


.left-text-container p {
  margin-top: 15px;
  padding: 30px;;
}

.contact-button {
  margin-top: 20px;
  background: black;
  color: var(--background-color);
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
}

/* Alternating layout for .alt sections */
.content-container.alt .row {
  flex-direction: row-reverse;
}


/******* NEW CSS *********/

.left-text-section {
  display: flex;
  flex-direction: row;
  align-items: stretch; /* Ensure both text and image containers stretch to full height */
  justify-content: space-between;
  background-color: #f9f9f9;
  color: #333;
  height: 70vh; /* Ensure the section has a defined height */
  overflow: hidden;
}

/* Ensure text container has a fixed width */
.left-text-section .text-container {
  flex: 1; /* Allow text to take space but not more than needed */
  max-width: 600px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left-text-section .text-container p {
  line-height: 2rem;
  padding: 60px;
}

.left-text-section .text-container h2,
h3 {
  padding-left: 60px;
}

.left-text-section .text-container .separator2 {
  margin-left: 60px;
}

/* .left-text-section .text-container h3 {
  padding-left: 60px;
} */

/* Image container should always take the full height and width */
.image-container {
  flex: 1; /* Allow it to take available space */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 100%; /* Ensure it fills the section height */
}

/* Image always fills its container */
.image-container img {
  width: 100%; /* Ensures it fully stretches */
  height: 100%; /* Ensures it fully covers */
  object-fit: cover; /* Ensures the image fills the container without distortion */
}


/******* NEW CSS *********/

.left-text-section {
  display: flex;
  flex-direction: row;
  align-items: stretch; /* Ensure both text and image containers stretch to full height */
  justify-content: space-between;
  background-color: #f9f9f9;
  color: #333;
  height: 70vh; /* Ensure the section has a defined height on desktop */
  overflow: hidden;
}

/* Ensure text container has a fixed width */
.left-text-section .text-container {
  flex: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left-text-section .text-container p {
  line-height: 2rem;
  padding: 60px;
}

/* 🔧 Small fix: scope both h2 and h3 correctly */
.left-text-section .text-container h2,
.left-text-section .text-container h3 {
  padding-left: 60px;
}

.left-text-section .text-container .separator2 {
  margin-left: 60px;
}

/* Image container should always take the full height and width */
.image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 100%;
}

/* Image always fills its container */
.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 📱 MOBILE LAYOUT: stack text + image */
@media (max-width: 768px) {
  .left-text-section {
    flex-direction: column;       /* Stack vertically */
    height: auto;                 /* Let content define height */
  }

  .left-text-section .text-container {
    max-width: 100%;
    padding: 20px;                /* Softer padding on mobile */
  }

  .left-text-section .text-container p {
    padding: 0;                   /* Remove big side padding */
  }

  .left-text-section .text-container h2,
  .left-text-section .text-container h3,
  .left-text-section .text-container .separator2 {
    padding-left: 0;
    margin-left: 0;               /* Align nicely on small screens */
  }

  .image-container {
    width: 100%;
    height: auto;                 /* Don’t force height on mobile */
  }

  .image-container img {
    height: auto;
    max-height: 400px;            /* Optional: prevent super tall images */
  }
}
