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

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #services_cards {
    padding: var(--sectionPadding);
    background-color: var(--secondary);
    position: relative;
    z-index: 1;
    overflow: hidden;
  }
  #services_cards .cs-container {
    width: 100%;
    /* changes to 1280px at tablet */
    max-width: 34.375rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
  }
  #services_cards .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: center;
  }

  #services_cards .cs-title {
    margin: 0;
    max-width: 20ch;
    font-size: clamp(2.1375rem, 3vw, 3.2125rem);
    color: var(--headerColor);
  }
  #services_cards .cs-card-group {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* 16px - 20px */
    gap: clamp(1rem, 1.5vw, 1.25rem);
  }
  #services_cards .cs-item {
    list-style: none;
    text-align: left;
    width: 100%;
    /* 24px - 32px */
    padding: clamp(1.5rem, 2.5vw, 2rem);
    background-color: rgba(66, 66, 66, 0.8);
    border: 1px solid var(--headerColor);
    /* prevents padding from adding to height and width */
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    border-radius: 1rem;
  }
  #services_cards .cs-item:hover {
    transform: translateY(-0.5rem);
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  }
  #services_cards .cs-item-link {
    text-decoration: none;
  }
  #services_cards .cs-icon {
    width: 3rem;
    height: auto;
    margin-bottom: 1.25rem;
    display: block;
  }
  #services_cards .cs-h3 {
    /* 20px - 25px */
    font-size: clamp(1.25rem, 2.5vw, 1.5625rem);
    line-height: 1.2em;
    margin: 0;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-weight: bold;
  }
  #services_cards .cs-item-text {
    /* 14px - 16px */
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: 1.5em;
    margin: 0;
    color: var(--bodyTextColorWhite);
    opacity: 0.8;
    font-family: "Jost", sans-serif;
  }
  #services_cards .cs-background {
    width: 100%;
    height: 22.1875rem;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
    overflow-x: hidden;
  }
  #services_cards .cs-background img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    /* Makes img tag act as a background image */
    object-fit: cover;
    overflow-x: hidden;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #services_cards .cs-container {
    max-width: 80rem;
  }
  #services_cards .cs-content {
    text-align: left;
    align-items: flex-start;
  }
  #services_cards .cs-card-group {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-direction: row;
    flex-wrap: nowrap;
  }
  #services_cards .cs-item {
    width: clamp(31.85%, 30.5vw, 32.28%);
  }
  #services_cards .cs-background {
    width: 50vw;
    height: 100%;
    /* 64px - 120px */
    margin-left: clamp(4rem, 10vw, 7.5rem);
    left: 50%;
  }
}
