/*-- -------------------------- -->
<---       Services             -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #services_first,
  #services_second,
  #services_third {
    /* remove the font family so the Stitch inherits the fonts from your global stylesheet */
    
    padding: var(--sectionPadding);
  }
  #services_first .cs-container,
  #services_second .cs-container,
  #services_third .cs-container {
    width: 100%;
    /* changes to 1280px at desktop */
    max-width: 34.375rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
  }
  #services_first .cs-content,
  #services_second .cs-content,
  #services_third .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: left;
    width: 100%;
    max-width: 32.625rem;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: flex-start;
  }

  #services_first .cs-text,
  #services_second .cs-text,
  #services_third .cs-text {
    /* 16px - 20px */
    margin-bottom: 1rem;
  }
  #services_first .cs-text:last-of-type,
  #services_second .cs-text:last-of-type,
  #services_third .cs-text:last-of-type {
    margin-bottom: 2rem;
  }
  #services_first .cs-ul,
  #services_second .cs-ul,
  #services_third .cs-ul {
    width: 100%;
    margin: 0 0 2rem 0;
    padding-left: 1.25rem;
    /* prevents padding from affecting width and height */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  #services_first .cs-li,
  #services_second .cs-li,
  #services_third .cs-li {
    font-size: var(--bodyFontSize);
    line-height: 1.5em;
    list-style: none;
    text-align: left;
    width: 100%;
    max-width: 25rem;
    margin: 0;
    color: var(--bodyTextColor);
    position: relative;
  }
  #services_first .cs-li:before,
  #services_second .cs-li:before,
  #services_third .cs-li:before {
    /* bullet */
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: 1;
    position: absolute;
    display: block;
    top: 0.625rem;
    left: -0.9375rem;
  }

  #services_first .cs-image-group,
  #services_second .cs-image-group,
  #services_third .cs-image-group {
    font-size: min(2.08vw, 0.791em);
    width: 42.875em;
    height: 42em;
    position: relative;
  }
  @keyframes floatAnimation {
    0% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-2em);
    }
    100% {
      transform: translateY(0);
    }
  }
  @keyframes floatAnimation2 {
    0% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-1em);
    }
    100% {
      transform: translateY(0);
    }
  }
  #services_first .cs-image-group:before,
  #services_second .cs-image-group:before,
  #services_third .cs-image-group:before {
    /* blue circle */
    content: "";
    width: 7.5em;
    height: 7.5em;
    border-radius: 50%;
    background: var(--secondary);
    opacity: 1;
    position: absolute;
    display: block;
    bottom: 6.25em;
    left: 0em;
    z-index: 10;
    animation-name: floatAnimation;
    animation-duration: 6s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
  }
  #services_first .cs-picture,
  #services_second .cs-picture,
  #services_third .cs-picture {
    border-radius: 50%;
    border: clamp(6px, 1.2vw, 12px) solid #ffffff;
    /* clips the img tag corners */
    overflow: hidden;
    position: absolute;
    display: block;
  }
  #services_first .cs-picture img,
  #services_second .cs-picture img,
  #services_third .cs-picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  #services_first .cs-picture1,
  #services_second .cs-picture1,
  #services_third .cs-picture1 {
    width: 42em;
    height: 42em;
    top: -0.75em;
    left: -0.75em;
  }
  #services_first .cs-picture2,
  #services_second .cs-picture2,
  #services_third .cs-picture2 {
    width: 12.5em;
    height: 12.5em;
    top: -0.75em;
    left: -0.75em;
    animation-name: floatAnimation2;
    animation-duration: 20s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
  }
  #services_first .cs-picture3,
  #services_second .cs-picture3,
  #services_third .cs-picture3 {
    width: 18.75em;
    height: 18.75em;
    bottom: -0.75em;
    right: -0.75em;
    animation-name: floatAnimation;
    animation-duration: 13s;
    animation-delay: 1s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
  }
}
/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #services_first .cs-container,
  #services_second .cs-container,
  #services_third .cs-container {
    max-width: 80rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  #services_first .cs-image-group,
  #services_second .cs-image-group,
  #services_third .cs-image-group {
    /* reset the scale */
    font-size: min(1.2vw, 1em);
    /* prevent flexbox from squishing it */
    flex: none;
  }
  #services_first .cs-content,
  #services_second .cs-content,
  #services_third .cs-content {
    width: 50%;
  }
}

/*-- -------------------------- -->
<---   Side By Side Reverse     -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #services_second {
    background-color: #f7f7f7;
  }
  #services_second .cs-image-group:before {
    background-color: var(--primaryLight);
    left: auto;
    right: 0;
  }
  #services_second .cs-picture {
    left: auto;
    right: -0.75em;
  }
  #services_second .cs-picture2 {
    left: auto;
    right: -0.75em;
  }
  #services_second .cs-picture3 {
    right: auto;
    left: -0.75em;
  }
}
/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #services_second .cs-image-group {
    /* sends it to the right */
    order: 2;
  }
}
