.services__main__section {
  padding: 5rem 0;
  background-color: #505393;
  color: #fff;
}

.services__main__section h2 {
  text-align: center;
  font-size: 2rem;
}

.services__main__section > p {
  text-align: center;
  margin-bottom: 3rem;
}

.services__main__container {
  padding: 1rem;
  background-color: #505393;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  justify-content: space-evenly;
}

.line__boring__main__container-img__description__container {
  margin: 3rem 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.line__boring__main__container-img__description__container__img {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 300px;
  height: 350px;
}

.line__boring__main__container-img__description__container__img > img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.line__boring__main__container-img__description__container__p {
  margin: 1rem;
  text-align: center;
  min-width: 300px;
}

.line__boring__main__container-img__description__container__p > p {
  line-height: 2rem;
  font-size: large;
}

.line__boring__main__container-img__description__container__p > a {
  display: inline-block;
  margin-top: 3rem;
  padding: 1rem 2rem;
  border: solid white 2px;
  color: white;
  background-color: #2e3842;;
  text-decoration: none;
  transition: .3s ease-in-out;
}

.line__boring__main__container-img__description__container__p > a:hover{
    background-color: black;
    border-radius: 50px;
} 

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #fff;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  width: 100%;
  height: 620px;
  text-align: center;
  font-family: arial;
}

.card img {
  width: 100%;
  height: 250px;
}

.card h3 {
  color: #000;
  margin-top: 1rem;
  font-size: 1.5rem;
}

.card span {
  color: #505393;
  font-weight: 800;
}

.card p {
  padding: 1rem;
  margin-bottom: 1rem;
  line-height: 1.3rem;
  color: #000;
}

.card a {
  display: flex;
  justify-content: center;
  border: none;
  text-decoration: none;
  outline: 0;
  padding: 12px;
  color: white;
  background-color: #000;
  text-align: center;
  cursor: pointer;
  width: 100%;
  font-size: 18px;
}

.card a:hover {
  opacity: 0.7;
}

.img__heavy__machinery {
  width: 100%;
  height: 250px;
  background-image: url("/imgs/welding-heavy-machinery-yellow-truck-light.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 70%;
}

.img__fence {
  width: 100%;
  height: 250px;
  background-image: url("/imgs/man-welding-fance-frame.jpeg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 0%;
}

.stick__mig__tig__welding__img {
  width: 100%;
  height: 250px;
  background-image: url("/imgs/man_working_welding_iron.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 90%;
}

.img__welding__pipe {
  width: 100%;
  height: 250px;
  background-image: url("/imgs/welding-pipe.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 20%;
}

.img__custom__welding {
  width: 100%;
  height: 250px;
  background-image: url("/imgs/hero-fabrication.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

@media (width < 987px) {
  .services__main__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width < 765px) {
  .services__main__container {
    grid-template-columns: repeat(1, 1fr);
  }
}
