#services-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#services-section ul {
  list-style-type: disc;
  margin-left: 15px;
}

.services-header-section{
  position: relative;
}

.services-page-primary-image {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
  object-position: top;
  filter: brightness(70%);
}

.services-page-secondary-image {
  width: 40%;
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
}

.service-container {
  padding: 1% 5%;
  display: flex;
  gap: 3%;
  margin: 25px 0px;
}

.service-description {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 3%;
}

.services-header-text {
  position: absolute;
  top: 30%;
  left: 5%;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  font-size: 5vw;         
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 30px;
  text-align: left;
  font-family: 'Raleway', sans-serif;
}

.services-referral {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1% 5%;
  margin-top: 5%;
}

@media (max-width: 768px) {
  .service-container {
    flex-direction: column;
  }
  .services-page-secondary-image {
    width: 100%;
  }
  .services-header-text {
    top: 40%;
    font-size: 15px;  
  }
}