
.hero {
  position: relative;
  width: 100%;
}

.heroimagebg {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  padding-top: 70px;
  padding-bottom: 60px; /* border thickness */
  background: linear-gradient(180deg, black, rgb(79, 79, 79), rgb(79, 79, 79), rgb(89, 89, 89), white);
}

.heroimage {
  display: block;
  width: 100%;
  height: auto;
}

.overlay {
  position: absolute;
  top: 50px;
  padding: 70px 0px
}


.overlayimg {
  max-width: 70%;
  min-width: 10%;
  height: auto;
  background-color: rgba(239, 239, 239, 0.3);
}

.descriptor {
  padding: 20px ;
  font-style: italic;
  text-align: right;
}
  

.firstimg {
  width: 100%;
  height: auto;
  min-width: none;
  max-width: 700px;
  display: block;
  margin: 0 auto;
}


.section1 {
  padding: 10px 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin-bottom: 50px;
  margin-top: 20px;
}

.section2sub {
  padding: 10px 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: center;
  justify-items: center;
}

.servicecard {
  padding: 30px;
  width: 100%;
  max-width: 400px;
  height: 100%;
  box-sizing: border-box;
  background-color: white;       /* White card */
  border: none;                  /* No border */
  border-radius: 10px;            /* Optional: rounded corners */
  box-shadow: 8px 8px 4px rgba(234, 65, 44, 0.3); /* Soft shadow */
}

.cardtitle {
  font-weight: 600;
  text-align: center;
  text-decoration: underline;
  margin-bottom: 10px;
  background-color: #ea412c;
  color: white;
  padding: 10px;
}

@media (max-width: 800px) {
  .overlayimg {
    max-width: 90%;
    min-width: 20%;
    height: auto;
    background-color: rgba(239, 239, 239, 0.3);
    }
    
  .overlay {
    position: absolute;
    top: 5px;
    padding: 70px 0px
    }
  
  .descriptor {
    font-size: 13px;
  }
}