/**
 * Hero section layout fix to align image with text
 * Updated to ensure horizontal alignment on desktop
 */
 
.hero-section {
  display: flex;
  align-items: center !important; /* Force vertical centering */
  justify-content: space-between;
  padding: 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text {
  flex: 1;
  min-width: 300px;
  padding-left: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-right: 20px; /* Add margin between text and image */
}

.hero-image {
  flex: 0 0 40%; /* Fixed width proportion - prevents shrinking */
  display: flex;
  align-items: center;
  justify-content: center; /* Center the image in its container */
  padding-right: 1.5rem;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0; /* Remove any margins that might affect alignment */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: add subtle shadow */
}

/* Ensure proper vertical alignment of both elements */
#section03-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 992px) {
  .hero-image {
    flex: 0 0 45%;
  }
}

@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    padding: 2rem 1rem;
  }
  
  .hero-text {
    padding-left: 0;
    text-align: center;
    align-items: center;
    margin-right: 0; /* Remove margin for mobile */
  }
  
  .hero-image {
    margin-top: 2em;
    padding-right: 0;
    justify-content: center;
    flex: 0 0 auto; /* Reset flex properties for mobile */
    width: 90%; /* Control width on mobile */
  }
}
