.services-container {
  background: url(../assets/hero/group.png) no-repeat center/cover;
  position: relative;
  padding: 20px 0;
  margin: 100px 0;
  font-family: "Poppins", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.clipped-div {
  width: 580px;
  height: 110vh;
  background: linear-gradient(to left, #260039 30%, #b25ed9 100%);
  clip-path: polygon(0 0, 52% 0, 100% 100%, 43% 100%);
  position: absolute;
  left: 48%;
  z-index: -1;
}

.service-content {
  display: flex;
  flex-direction: row-reverse;
  width: 100%;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 26px;
  margin-bottom: 80px;
  padding: 40px;
  background: linear-gradient(126.14deg,
      rgba(255, 255, 255),
      rgba(228, 185, 248));
  width: 100%;
  position: relative;
  left: 22px;
  top: 40px;
  margin-bottom: 2rem;
  z-index: 2;
}

.justify-content-center .col-md-6 {
  padding-left: 0 12px !important;
} 

.service-item {
  display: flex;
  flex-direction: column;
  padding: 10px 6rem;
}

.service-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
}

.service-title {
  color: #3e1253;
  font-size: 17px;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.services-title {
  font-size: 26px;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.services-header {
  display: flex;
  padding-left: 60px; 
  padding-right: 12px;
  flex-direction: column;
  position: relative;
  text-align: right;
  color: #fff;
}

.services-header h2 {
  font-size: 26px;
  line-height: 26px;
  font-weight: bold;
  margin-bottom: 1rem;
}

.services-header p {
  font-size: 20px;
  line-height: 40px;
  letter-spacing: 3px;
  color: #fff;
}

.services-heading {
  display: flex;
  padding-left: 45px; 
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.services-heading a{
  color: #ffff;
  transition: color 0.2s;
}

.services-heading a:hover {
  color: #8b49aa;
}

@media (max-width: 1280px) {
  .clipped-div {
    display: none;
  }
}

@media (max-width: 992px) {
  .services-container {
    background: url(../assets/hero/group.png) center / cover;
    margin: 10px auto;
    padding: 10px;
    font-family: "Poppins", sans-serif;
    height: auto;
  }

  .services-header {
    position: relative;
    text-align: center;
    padding: 0 12px;
    width: 100%;
    top: 20px;
    margin: 2rem 0;
    color: #fff;
  }

  .services-heading {
    flex-direction: column;
    gap: .5rem;
    text-align: right;
    align-items: flex-end;
  }

  .services-header h2 {
    font-size: 2rem;
  }

  .services-title {
    text-align: right;
  }

  .services-header p {
    font-size: 19px;
    text-align: right;
    line-height: 27px;
  }

  .service-content {
    width: 100%;
    margin: 0 auto;
  }

  .service-title {
    font-size: 15px;
  }

  .services-grid {
    width: 100%;
    padding: 10px 10px;
    left: 0;
    height: auto;
    grid-template-columns: 1fr 1fr;
    top: 50px;
  }
}

@media (max-width: 768px) {
  .row.justify-content-center {
    flex-direction: column-reverse !important;
    /* Forces the service grid to appear above the header */
  }

  .services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
  }

  .col-md-6 .services-grid {
    padding: 12px !important;
    margin: 0 auto !important;
    top: -20px;
  }

  .services-header {
    width: 100%;
    top: 0%;
    right: 0%;
  }

  .services-grid .service-item {
    flex: 0 0 50%;
    max-width: 50%;
    width: 50%;
    box-sizing: border-box;
  }

  .service-content {
    flex-direction: column;
  }

  .services-header {
    text-align: center;
  }

  .services-header h2 {
    font-size: 2rem;
  }
}

@media screen and (max-width: 576px) {

  .services-header {
    margin-top: 3rem;
    padding: 0;
  }

  .services-header h2 {
    font-size: 1.8rem;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
    margin-top: 2rem;
  }

  .service-item:nth-child(even) {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
  }

  .service-item:nth-child(even) .service-icon {
    margin-right: 0;
    margin-left: auto;
  }

  .service-item:nth-child(even) .service-title {
    text-align: right;
    width: 100%;
  }

  /* Left column items (odd numbered) */
  .service-item:nth-child(odd) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .service-item:nth-child(odd) .service-icon {
    margin-left: 0;
    margin-right: auto;
  }

  .service-item:nth-child(odd) .service-title {
    text-align: left;
    width: 100%;
  }
}

@media screen and (max-width: 375px) {
  .services-container {
    padding: 10px;
  }

  .services-header h2 {
    font-size: 1.5rem;
  }

  .services-header p {
    font-size: 19px;
    line-height: 27px;
  }

  .service-icon {
    width: 35px;
    height: 35px;
  }
}