.promise-wrapper {
  min-height: 700px;
  background-image: url(/sites/default/files/2025-11/Student.jpg);
  background-position: center;
  position:relative;
  padding: 1em;
  display: flex;
}

a.promis-link {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
}


.hero-box:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Blue box */
.hero-box {
	  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-origin: center center;
  background-color: #003366;
  color: #ffffff;
  padding: 2rem 1.8rem 2rem 2rem; /* smaller right padding */
  border-radius: 8px;
  max-width: 580px; /* slightly narrower to fit text */
  margin: auto 5%; /* spacing from right edge */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position:relative;
}

/* Heading */
.hero-title {
  font-size: clamp(1.75rem, 3.5vw, 6rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* Link */
main .text-formatted a.promis-link {
    background: unset;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Subtext */
.hero-subtext {
  font-size: 1.3rem;
  line-height: 1.55;
  color: #e6e6e6;
  margin: 0;
  max-width: 100%;
}

@media (max-width: 900px) {
  .promise-wrapper {
    min-height: 420px;
    padding: 0;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: contain;
    display: flex;
    align-items: flex-end; /* keeps it near the bottom */
    justify-content: center; /* centers horizontally */
  }

  .hero-box {
    position: relative; /* no need for absolute */
    bottom: auto;
    margin: 0 auto 1rem; /* centers with small bottom space */
    max-width: 90%;
    padding: 1.2rem 1.5rem;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(1.4rem, 4vw, 2rem);
    line-height: 1.1;
  }

  .hero-subtext {
    font-size: 1rem;
    line-height: 1.35;
    margin-top: 0.6rem;
  }
}

