.image-text-container {
  display: flex;
  flex-direction: row;
  height: auto;
  align-items: center;
  margin-top: 74px;
  gap: 4vw;
  padding: 40px 20px;
  margin-bottom: 74px;
  justify-content: center;
  flex-wrap: nowrap;
}

.image-text-container img {
  max-width: 650px;
  width: 100%;
  height: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  border: 5px solid var(--secondary-color);
  flex-shrink: 1;
}

.text-container {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-width: 300px;
}

.text-container h1 {
  font-weight: bold;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.text-container p {
  max-width: 400px;
  width: 100%;
  font-family: var(--heading-font);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

@media (max-width: 1024px) {
  .image-text-container {
    gap: 2rem;
    margin-top: 50px;
  }

  .image-text-container img {
    max-width: 450px;
  }

  .text-container {
    flex-shrink: 1;
  }
}

@media (max-width: 768px) {
  .image-text-container {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    padding: 0 30px;
  }

  .image-text-container img {
    max-width: 100%;
    margin-top: 0;
  }

  .text-container {
    min-width: unset;
    align-items: center;
    text-align: center;
  }

  .text-container h1 {
    font-size: 2rem;
    margin-bottom: 4px;
  }

  .text-container p {
    max-width: 100%;
    font-size: 1.1rem;
  }
}
