.services-overview {
    display: flex;
    justify-content: center;
}

.services-overview__inner {
    max-width: 43.6rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.services-overview__title {
    color: var(--color-dark-shade);
}

.services-overview__service-label-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.services-overview__service-label {
    background-color: #F3F3F3;
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
    color: var(--color-dark-shade);
    border: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.services-overview__service-label.is-active,
.services-overview__service-label:hover,
.services-overview__service-label:focus-visible {
    background-color: var(--color-dark-shade);
    color: #F3F3F3;
}

.services-overview__service-label:focus-visible {
    outline: 2px solid var(--color-dark-shade);
    outline-offset: 2px;
}

.services-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-bottom: 6.25rem;
}

.services-wrapper {
    margin-top: 6.25rem;
}

.service {
    width: calc(33.333% - 4px);
    background-color: #F3F3F3;
    padding: 40px 32px;
    ul {
        list-style: disc;
        padding-left: 1rem;
        color: var(--color-dark-shade);
    }
}

.service:first-of-type {
    border-radius: 24px 0 0 0;
}

.service:nth-child(3) {
    border-radius: 0 24px 0 0;
}

.service:last-of-type {
    max-width: 600px;
    flex: 1;
}

.services-wrapper--filtered .service:not([hidden]) {
    width: 100%;
    max-width: 37.5rem;
    border-radius: 24px;
}

.service[hidden] {
    display: none;
}

.service__title {
    margin-bottom: 2rem;
}

.service__description-wrapper {
    margin-bottom: 2rem;
}

.service__person-boxes-wrapper {
    display: flex;
    gap: 0.25rem;
    flex-direction: column;
}

.service__person-box {
    display: flex;
    background-color: #E2E1E0;
    padding: 8px 16px 8px 8px;
    gap: 12px;
    border-radius: 34px;
    width: fit-content;
    align-items: center;
}

.service__person-heading {
    margin-bottom: 0.75rem;
    font-style: italic;
}

.service__person-icon-wrapper {
    display: flex;
    padding: 0.625rem;
    border-radius: 1.125rem;

    img {
        width: 0.8125rem;
        height: 0.8125rem;
    }
}

@media (max-width: 1240px) {
  .service {
    width: calc(50% - 2px);
  }  

  .service:nth-child(2) {
    border-radius: 0 24px 0 0;
   }

  .service:nth-child(3) {
    border-radius: 0;
   }
}

@media (max-width: 806px) {
  .service {
    width: 100%;
    max-width: none !important;
  }  

  .service:first-of-type {
    border-radius: 24px 24px 0 0;
  }

  .service:last-of-type {
    border-radius:  0 0 24px 24px;
  }

  .service:nth-child(2) {
    border-radius: 0;
   }
}
