.heroSection {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  /* background-color: black; */
  height: 100%;
  align-items: center;
  /* margin-top: 4rem; */
  margin-bottom: 5rem;
}

.heroSectionImg {
  justify-self: end;
}

.heroSectionText {
  justify-self: start;
}

.heroSectionText header {
  color: white;
  font-size: 4pc;
  font-weight: bolder;
}
.heroSectionText p {
  margin-right: 5rem;
  color: rgb(184, 184, 184);
  font-weight: bold;
  padding: 0;
  line-break: auto;
}
#heroH1 {
  position: relative;
  font-size: 1em; /* Adjust the font size as needed */
  color: #333; /* Adjust the text color as needed */
}

#heroH1:before {
  content: "";
  position: absolute;
  bottom: -5px; /* Adjust the distance from the text as needed */
  left: 0;
  width: 0%;
  height: 2px; /* Adjust the thickness of the underline as needed */
  background-color: #ffffff; /* Adjust the color of the underline as needed */
  animation: underline 1.5s infinite;
}

/* @keyframes underline {
  0% {
    width: 0%;
  }
  50% {
    width: 5%;
    left: 0;
  }
  100% {
    width: 0%;
    left: 60%;
  }
} */
@media only screen and (max-width: 1238px) {
  .heroSection {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 0.3fr;
    align-items: center;
    /* margin-top: 4rem; */
    margin-bottom: 5rem;
  }

  .heroSectionImg {
    justify-self: center;
  }
  .heroSectionImg {
    width: 20rem;
  }

  .heroSectionText {
    justify-self: center;
  }
  .heroSectionText p {
    margin: 1rem;
    color: rgb(224, 224, 224);
    font-weight: bold;
    padding: 0;
    line-break: auto;
    text-align: center;
  }
  .heroSectionText header {
    text-align: center;
    color: white;
    font-size: 3pc;
    font-weight: bolder;
  }
  .heroSectionText h1{
    text-align: center;
    margin-bottom:2rem ;
       
  }
}
