/* Container for the image and all overlaid text */
.alexander-combined-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
  border: 10px solid white;
  box-sizing: border-box;
  overflow: hidden;
}

/* The base image (Image 2) */
.base-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Text overlay styles */
.overlay-text {
  position: absolute;
  color: black;
  font-family: Arial, sans-serif;
  line-height: 1.3;
  text-align: left;
}

.overlay-heading {
  top: 2%;
  left: 28%;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: bold;
  color: #4caf50;
  white-space: nowrap;
}

.overlay-paragraph {
  top: 15%;
  left: 50%;
  width: 45%;
  font-size: clamp(0.7rem, 1.8vw, 1rem);
  text-align: left;
}

/* New container for quote block to control placement */
.quote-block {
  position: absolute;
  bottom: 8%;
  right: 5%;
  width: 35%;
  text-align: right;
}

.overlay-quote-text {
  position: relative;
  bottom: auto;
  right: auto;
  width: 100%;
  font-size: clamp(0.7rem, 1.6vw, 0.9rem);
  font-style: italic;
  text-align: right;
  margin-bottom: 5px; /* Spacing between quote and author */
}

.overlay-quote-author {
  position: relative;
  bottom: auto;
  right: auto;
  width: 100%;
  font-size: clamp(0.6rem, 1.4vw, 0.8rem);
  font-weight: bold;
  text-align: right;
}

.rotated-text-green {
  font-size: clamp(0.9rem, 2.2vw, 1.25rem);
  font-weight: light;
  position: absolute;
  bottom: 25%; /* Adjusted position to be above the quote */
  right: 15%; /* Adjusted position to be on the right */
  left: auto; /* Remove left positioning */
  transform: rotate(-30deg);
  transform-origin: 0 0;
  color: #4caf50;
  white-space: nowrap;
}

.rotated-text-red {
  font-size: clamp(0.9rem, 2.2vw, 1.25rem);
  font-weight: light;
  position: absolute;
  bottom: 15%; /* Adjusted position to be above the quote */
  right: 5%; /* Adjusted position to be on the right */
  left: auto; /* Remove left positioning */
  transform: rotate(-30deg);
  transform-origin: 0 0;
  color: #f44336;
  white-space: nowrap;
}

/* Mobile-specific adjustments */
@media (max-width: 767px) {
  .alexander-combined-container {
    border: none;
  }
  .overlay-heading,
  .overlay-paragraph {
    position: relative;
    top: auto;
    left: auto;
    margin: 10px 5%;
    width: auto;
    text-align: left;
  }
  .overlay-heading {
    font-size: 1.5rem;
  }
  .overlay-paragraph {
    font-size: 0.9rem;
  }
  .quote-block {
    position: relative;
    bottom: auto;
    right: auto;
    width: auto;
    margin: 20px 5%;
    text-align: left;
  }
  .overlay-quote-text,
  .overlay-quote-author {
    position: static;
    margin: 0;
    text-align: left;
    width: auto;
  }
  .overlay-quote-text {
    font-size: 0.8rem;
  }
  .overlay-quote-author {
    font-size: 0.7rem;
  }
  .rotated-text-green,
  .rotated-text-red {
    display: none;
  }
}
