/************ MOBILE - 360PX *************/
/*****************************************/
@media only screen and (min-width: 0rem) {
    /********* FEATURED SERVICES *************/
    /*****************************************/
    #sbsr-2289 {
        padding: var(--sectionPadding);
        overflow: hidden;
    }
    #sbsr-2289 .cs-container {
        width: 100%;
        /* changes to 1280px at desktop */
        max-width: 36.5rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 3rem;
    }
    #sbsr-2289 .cs-content {
        /* set text align to left if content needs to be left aligned */
        text-align: left;
        width: 100%;
        display: flex;
        flex-direction: column;
        /* centers content horizontally, set to flex-start to left align */
        align-items: flex-start;
        position: relative;
        z-index: 10;
    }
    #sbsr-2289 .cs-text {
        margin-bottom: 1rem;
    }
    #sbsr-2289 .cs-text:last-of-type {
        margin-bottom: 2rem;
    }
    #sbsr-2289 .cs-features {
        width: 100%;
        margin: 0 0 2rem;
        /* 24px - 32px */
        padding: clamp(1.5rem, 4vw, 2rem);
        background-color: #fef5f4;
        border-left: 0.25rem solid var(--secondary);
    }
    #sbsr-2289 .cs-h3 {
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.5em;
        margin: 0 0 0.75rem;
        color: var(--headerColor);
    }
    #sbsr-2289 .cs-ul {
        font-size: 0.75rem;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    #sbsr-2289 .cs-li {
        font-size: 1rem;
        line-height: 1.5em;
        list-style: none;
        /* 20px - 24px */
        padding-left: clamp(1.25rem, 3vw, 1.5rem);
        color: var(--bodyTextColor);
        position: relative;
    }
    #sbsr-2289 .cs-li::before {
        content: "";
        width: 0.5rem;
        height: 0.5rem;
        margin-top: 0.5rem;
        background-color: var(--secondary);
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        transform: rotate(45deg);
    }
    #sbsr-2289 .cs-button-solid {
        font-size: 1rem;
        font-weight: 700;
        /* 46px - 56px */
        line-height: clamp(2.875rem, 5.5vw, 3.5rem);
        text-align: center;
        text-decoration: none;
        min-width: 9.375rem;
        margin: 0;
        /* prevents padding from adding to the width */
        box-sizing: border-box;
        padding: 0 1.5rem;
        background-color: var(--primary);
        color: #1a1a1a;
        display: inline-block;
        position: relative;
        z-index: 1;
        transition: color 0.3s;
    }
    #sbsr-2289 .cs-button-solid:before {
        content: "";
        width: 0%;
        height: 100%;
        background: #000;
        opacity: 1;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
        transition: width 0.3s;
    }
    #sbsr-2289 .cs-button-solid:hover {
        color: #fff;
    }
    #sbsr-2289 .cs-button-solid:hover:before {
        width: 100%;
    }
    #sbsr-2289 .cs-image-group {
        width: 100%;
        height: 126vw;
        max-height: 39.125rem;
        display: block;
        order: -1;
        position: relative;
        z-index: 1;
    }
    #sbsr-2289 .cs-picture {
        /* big background image */
        width: 100%;
        display: block;
        position: absolute;
        top: 0;
        bottom: 5.9375rem;
        left: 0;
    }
    #sbsr-2289 .cs-picture img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }
    #sbsr-2289 .cs-box {
        text-align: left;
        width: 91%;
        max-width: 28.125rem;
        /* prevents padding and border from affecting height and width */
        box-sizing: border-box;
        /* 24px - 32px */
        padding: clamp(1.5rem, 3vw, 2rem);
        background-color: #fffcf3;
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        column-gap: 1.5rem;
        row-gap: 0.5rem;
        position: absolute;
        right: 50%;
        bottom: 0;
        z-index: 10;
        transform: translate(50%);
    }
    #sbsr-2289 .cs-number {
        /* 31px - 49px */
        font-size: clamp(1.9375rem, 4vw, 3.0625rem);
        font-weight: 700;
        line-height: 1.2em;
        text-transform: uppercase;
        margin: 0;
        color: var(--General-Secondary, #ffc219);
    }
    #sbsr-2289 .cs-heading {
        font-size: 1.25rem;
        font-weight: 700;
        line-height: 1.2em;
        margin: 0 0 0.5rem;
        color: var(--headerColor);
    }
    #sbsr-2289 .cs-desc {
        font-size: 1rem;
        line-height: 1.5em;
        color: var(--bodyTextColor);
    }
    #sbsr-2289 .cs-graphic {
        width: 150%;
        height: auto;
        position: absolute;
        top: 50%;
        left: 50%;
        z-index: -1;
        transform: translate(-50%, -50%);
    }
    /************* SBS CONTENT ***************/
    /*****************************************/
    /* FIRST */
    #RPsbs-2278,
    #RPsbsr-2278 {
      background-color: #f7f7f7;
      padding: var(--sectionPadding);
      /* clips the green background pseudo from overflowing the section */
      overflow: hidden;
      display: flex;
      flex-direction: column;
      align-items: center;
      /* 48px - 64px, changed clamp at Desktop */
      gap: clamp(3rem, 6vw, 4rem);
      position: relative;
      z-index: 1;
    }
    #RPsbs-2278 .cs-header,
    #RPsbsr-2278 .cs-header {
      width: 100%;
      /* changes to 1280px at Desktop */
      max-width: 43.75rem;
      margin: auto;
    }
    #RPsbs-2278 .cs-container,
    #RPsbsr-2278 .cs-container {
      width: 100%;
      /* changes to 1280px at tablet */
      max-width: 43.75rem;
      margin: auto;
      padding: var(--sectionPadding);
      padding-left: 0;
      padding-right: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      /* 48px - 64px, changed clamp at tablet */
      gap: clamp(3rem, 6vw, 4rem);
      position: relative;
      z-index: 1;
    }
    #RPsbs-2278 .cs-container:before,
    #RPsbsr-2278 .cs-container:before {
      /* green background */
      content: "";
      width: 100vw;
      height: 100%;
      background: #fff;
      opacity: 1;
      position: absolute;
      display: block;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      z-index: -1;
    }
    #RPsbs-2278 .cs-content,
    #RPsbsr-2278 .cs-content {
      /* set text align to left if content needs to be left aligned */
      text-align: left;
      width: 100%;
      max-width: 42.875rem;
      display: flex;
      flex-direction: column;
      /* centers content horizontally, set to flex-start to left align */
      align-items: flex-start;
    }
    #RPsbs-2278 .cs-title,
    #RPsbsr-2278 .cs-title {
      margin: 0;
      max-width: 24ch;
    }
    #RPsbs-2278 .cs-h3,
    #RPsbsr-2278 .cs-h3 {
      /* 25px - 39px */
      font-size: clamp(1.5625rem, 4vw, 2.4375rem);
      line-height: 1.2em;
      margin: 0 0 1rem;
      color: var(--headerColor);
    }
    #RPsbs-2278 .cs-text,
    #RPsbsr-2278 .cs-text {
      margin-bottom: 1rem;
      /* uncomment this style if you remove the list for consistent styling*/
    }
    #RPsbs-2278 .cs-heading,
    #RPsbsr-2278 .cs-heading {
      font-size: 1rem;
      line-height: 1.2em;
      font-weight: 700;
      margin: 0 0 1rem;
      color: var(--headerColor);
    }
    #RPsbs-2278 .cs-ul,
    #RPsbsr-2278 .cs-ul {
      width: 100%;
      margin: 0 0 2rem 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
    }
    #RPsbs-2278 .cs-li,
    #RPsbsr-2278 .cs-li {
      list-style: none;
      font-size: 1rem;
      line-height: 1.5em;
      color: var(--bodyTextColor);
      display: flex;
      justify-content: flex-start;
      align-items: flex-start;
      gap: 0.75rem;
      position: relative;
      z-index: 1;
    }
    #RPsbs-2278 .cs-li:before,
    #RPsbsr-2278 .cs-li:before {
      content: '';
      width: 0.5rem;
      height: 0.5rem;
      margin-top: 0.4375rem;
      background: var(--secondary);
      opacity: 1;
      display: block;
      flex: none;
      transform: rotate(45deg);
    }
    #RPsbs-2278 .cs-number,
    #RPsbsr-2278 .cs-number {
      /* 14px - 16px */
      font-size: clamp(0.875rem, 1.6vw, 1rem);
      font-weight: 700;
      /* 24px - 28px */
      width: clamp(1.5rem, 2.9vw, 1.75rem);
      height: clamp(1.5rem, 2.9vw, 1.75rem);
      margin-right: 0.75rem;
      border-radius: 50%;
      background: var(--headerColor);
      color: var(--primary);
      display: flex;
      justify-content: center;
      align-items: center;
      /* we set this element to align to the top of the li, so if there's 
              multiple lines it will stay at the top instead of the center of the text */
      align-self: flex-start;
      /* prevents flexbox from squishing it */
      flex: none;
    }
    #RPsbs-2278 .cs-button-solid,
    #RPsbsr-2278 .cs-button-solid {
      font-size: 1rem;
      /* 46px - 56px */
      line-height: clamp(2.875rem, 5.5vw, 3.5rem);
      text-decoration: none;
      font-weight: 700;
      text-align: center;
      margin: 0;
      color: var(--bodyTextColorWhite);
      min-width: 9.375rem;
      padding: 0 1.5rem;
      background-color: var(--primary);
      display: inline-block;
      position: relative;
      z-index: 1;
      /* prevents padding from adding to the width */
      box-sizing: border-box;
      transition: color 0.3s;
    }
    #RPsbs-2278 .cs-button-solid:before,
    #RPsbsr-2278 .cs-button-solid:before {
      content: "";
      position: absolute;
      height: 100%;
      width: 0%;
      background: #000;
      opacity: 1;
      top: 0;
      left: 0;
      z-index: -1;
      border-radius: 0.25rem;
      transition: width 0.3s;
    }
    #RPsbs-2278 .cs-button-solid:hover,
    #RPsbsr-2278 .cs-button-solid:hover {
      color: #fff;
    }
    #RPsbs-2278 .cs-button-solid:hover:before,
    #RPsbsr-2278 .cs-button-solid:hover:before {
      width: 100%;
    }
    #RPsbs-2278 .cs-picture,
    #RPsbsr-2278 .cs-picture {
      width: 100%;
      height: 91.14vw;
      max-height: 22.5rem;
      margin: 0;
      position: relative;
      display: block;
    }
    #RPsbs-2278 .cs-picture img,
    #RPsbsr-2278 .cs-picture img {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
      object-fit: cover;
    }
    /* SECOND */
    #RPsbsr-2278 {
        padding-top: 0;
        padding-bottom: 0;
    }
    /******** FULL SERVICES & STATS **********/
    /*****************************************/
    #services-2331 {
        padding: var(--sectionPadding);
        position: relative;
        z-index: 1;
    }
    #services-2331:before {
        content: '';
        width: 100%;
        height: 40%;
        background: #F3F3F3;
        opacity: 1;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }
    #services-2331 .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-2331 .cs-stat-group {
        width: 100%;
        max-width: 65rem;
        padding: 0;
        margin: 0;
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 1.25rem;
    }
    #services-2331 .cs-stat {
        list-style: none;
        display: flex;
        align-items: center;
        /* 8px - 20px */
        gap: clamp(0.5rem, 2vw, 1.25rem);
        grid-column: span 6;
    }
    #services-2331 .cs-number {
        /* 31px - 61px */
        font-size: clamp(1.9375rem, 4vw, 3.8125rem);
        line-height: 1.2em;
        font-weight: 700;
        margin: 0;
        color: var(--primary);
    }
    #services-2331 .cs-desc {
        font-size: clamp(1rem, 2vw, 1.25rem);
        line-height: 1.2em;
        font-weight: bold;
        margin: 0;
        color: var(--headerColor);
    }
    #services-2331 .cs-card-group {
        margin: 0;
        padding: 0;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: clamp(0.5rem, 2vw, 1.25rem);
    }
    #services-2331 .cs-item {
        /* place this in a variable to reuse for the s-icon-wrapper placement */
        --itemPadding: clamp(1rem, 3.5vw, 3rem);
        width: 100%;
        text-align: left;
        list-style: none;
        margin: 0;
        /* 16px - 48px */
        padding: var(--itemPadding);
        background-color: #fff;
        border: 1px solid #E7E7E8;
        /* prevents padding and border from affecting height and width */
        box-sizing: border-box;
        grid-column: span 12;
        grid-row: span 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        position: relative;
        z-index: 1;
    }
    #services-2331 .cs-item:hover .cs-h3,
    #services-2331 .cs-item:hover .cs-link,
    #services-2331 .cs-item:hover .cs-item-text {
        color: var(--bodyTextColorWhite);
    }
    #services-2331 .cs-item:hover .cs-item-text {
        opacity: 0.9;
    }
    #services-2331 .cs-item:hover .cs-icon-wrapper {
        border-radius: 50%;
        transform: rotate(90deg);
    }
    #services-2331 .cs-item:hover .cs-icon {
        transform: rotate(-90deg);
    }
    #services-2331 .cs-item:hover .cs-arrow {
        filter: grayscale(1) brightness(10000%);
    }
    #services-2331 .cs-item:hover .cs-picture {
        opacity: 1;
    }
    #services-2331 .cs-icon-wrapper {
        /* 48px - 100px */
        width: clamp(3rem, 7vw, 6.25rem);
        height: clamp(3rem, 7vw, 6.25rem);
        margin: 0;
        background-color: #1a1a1a;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        bottom: var(--itemPadding);
        right: var(--itemPadding);
        z-index: 1;
        transition: transform 0.5s, border-radius 0.5s;
    }
    #services-2331 .cs-icon {
        /* 24px - 48px */
        width: clamp(1.5rem, 4vw, 3rem);
        height: auto;
        transition: transform 0.5s;
    }
    #services-2331 .cs-h3 {
        /* 20px - 25px */
        font-size: clamp(1.25rem, 2.5vw, 1.5625rem);
        line-height: 1.2em;
        font-weight: bold;
        text-align: inherit;
        margin: 0 0 0.75rem 0;
        color: var(--headerColor);
        display: flex;
        align-items: center;
        gap: 1rem;
        position: relative;
        z-index: 1;
    }
    #services-2331 .cs-h3:before {
        content: '';
        width: 0.5rem;
        height: 0.5rem;
        background: var(--primary);
        opacity: 1;
        display: block;
    }
    #services-2331 .cs-item-text {
        font-size: 1rem;
        line-height: 1.5em;
        max-width: 18.75rem;
        /* 56px - 108px */
        margin: 0 0 clamp(3.5rem, 8vw, 6.75rem) 0;
        padding: 0;
        color: var(--bodyTextColor);
    }
    #services-2331 .cs-link {
        text-decoration: none;
        font-size: 1rem;
        line-height: 1.2em;
        text-transform: uppercase;
        font-weight: bold;
        margin: 0;
        padding: 0 0 0.375rem 0;
        color: var(--headerColor);
        display: inline-flex;
        justify-content: space-between;
        gap: 0.75rem;
        position: relative;
        transition: color 0.3s;
    }
    #services-2331 .cs-link:hover .cs-arrow {
        transform: rotate(45deg);
    }
    #services-2331 .cs-link:before {
        /* underline */
        content: "";
        width: 100%;
        height: 1px;
        background: currentColor;
        opacity: 1;
        position: absolute;
        display: block;
        bottom: 0rem;
        left: 0;
    }
    #services-2331 .cs-arrow {
        width: 1.25rem;
        height: auto;
        display: block;
        transition: transform 0.3s;
    }
    #services-2331 .cs-picture {
        width: 100%;
        height: 100%;
        opacity: 0;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
        transition: opacity 0.3s;
    }
    #services-2331 .cs-picture:before {
        /* background color overlay */
        content: "";
        position: absolute;
        display: block;
        height: 100%;
        width: 100%;
        background: #1a1a1a;
        opacity: 0.84;
        top: 0;
        left: 0;
        z-index: 1;
    }
    #services-2331 .cs-picture img {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        /* Makes img tag act as a background image */
        object-fit: cover;
    }
}

/************ TABLET - 768PX *************/
/*****************************************/
@media only screen and (min-width: 48rem) {
    /*********** FEATURED SERVICES ***********/
    /*****************************************/
    #sbsr-2289 .cs-box {
        flex-direction: row;
        align-items: center;
    }

    /******** FULL SERVICES & STATS **********/
    /*****************************************/
    #services-2331:before {
        height: 30vw;
        max-height: 26rem;
    }
    #services-2331 .cs-container {
        max-width: 80rem;
    }
    #services-2331 .cs-stat {
        grid-column: span 3;
    }
    #services-2331 .cs-item {
        grid-column: span 4;
        justify-content: flex-start;
    }
    #services-2331 .cs-link {
        margin-top: auto;
    }
}

/************ DESKTOP - 1024PX ***********/
/*****************************************/
@media only screen and (min-width: 64rem) {
    /*********** FEATURED SERVICES ***********/
    /*****************************************/
    #sbsr-2289 .cs-container {
        max-width: 80rem;
        flex-direction: row;
        align-items: stretch;
        gap: 1.25rem;
    }
    #sbsr-2289 .cs-content {
        padding-right: 3.25rem;
        padding-bottom: 6.75rem;
    }
    #sbsr-2289 .cs-image-group {
        height: auto;
        min-height: 40.125rem;
        max-height: 100%;
        order: initial;
    }
    #sbsr-2289 .cs-picture {
        bottom: 4rem;
    }
    /************* SBS CONTENT ***************/
    /*****************************************/
    /* FIRST */
    #RPsbs-2278 .cs-header,
    #RPsbsr-2278 .cs-header {
      max-width: 80rem;
    }
    #RPsbs-2278 .cs-container,
    #RPsbsr-2278 .cs-container {
      max-width: 80rem;
      flex-direction: row;
      justify-content: space-between;
      align-items: stretch;
    }
    #RPsbs-2278 .cs-container:before,
    #RPsbsr-2278 .cs-container:before {
      /* 110px - 335px */
      margin-left: calc(clamp(110px, 14vw, 335px)*-1);
      left: 50%;
      transform: none;
    }
    #RPsbs-2278 .cs-picture,
    #RPsbsr-2278 .cs-picture {
      max-width: 32.625rem;
      height: auto;
      max-height: 100%;
    }
    /* SECOND */
    #RPsbsr-2278 {
        padding: var(--sectionPadding);
        padding-top: 0;
    }
    #RPsbsr-2278 .cs-container {
        justify-content: flex-end;
    }
    #RPsbsr-2278 .cs-container:before {
        margin-left: 0;
        /* 110px - 335px */
        margin-right: calc(clamp(110px, 14vw, 335px)*-1);
        right: 50%;
        left: auto;
        transform: none;
    }
    #RPsbsr-2278 .cs-picture {
        /* sends it to the right in the 2nd position */
        order: 2;
    }
    /******** FULL SERVICES & STATS **********/
    /*****************************************/
    #services-2331 .cs-item {
        grid-column: span 4;
    }
    #services-2331 .cs-accent {
        /* 435px - 526px */
        height: clamp(27.1875rem, 41vw, 32.875rem);
    }

}

/************** DARK MODE ****************/
/*****************************************/
@media only screen and (min-width: 0rem) {
    /*********** FEATURED SERVICES ***********/
    /*****************************************/
    body.dark-mode #sbsr-2289 .cs-title,
    body.dark-mode #sbsr-2289 .cs-text,
    body.dark-mode #sbsr-2289 .cs-h3,
    body.dark-mode #sbsr-2289 .cs-li,
    body.dark-mode #sbsr-2289 .cs-heading,
    body.dark-mode #sbsr-2289 .cs-desc {
      color: var(--bodyTextColorWhite);
    }
    body.dark-mode #sbsr-2289 .cs-text,
    body.dark-mode #sbsr-2289 .cs-li,
    body.dark-mode #sbsr-2289 .cs-desc {
      opacity: 0.8;
    }
    body.dark-mode #sbsr-2289 .cs-features,
    body.dark-mode #sbsr-2289 .cs-box {
      background-color: var(--medium);
    }
    /************* SBS CONTENT ***************/
    /*****************************************/
    body.dark-mode #RPsbs-2278,
    body.dark-mode #RPsbsr-2278 {
      background-color: rgba(0, 0, 0, 0.2);
    }
    body.dark-mode #RPsbs-2278 .cs-container:before,
    body.dark-mode #RPsbsr-2278 .cs-container:before {
      background-color: rgba(0, 0, 0, 0.2);
    }
    body.dark-mode #RPsbs-2278 .cs-title,
    body.dark-mode #RPsbsr-2278 .cs-title,
    body.dark-mode #RPsbs-2278 .cs-li,
    body.dark-mode #RPsbsr-2278 .cs-li,
    body.dark-mode #RPsbs-2278 .cs-h3,
    body.dark-mode #RPsbsr-2278 .cs-h3,
    body.dark-mode #RPsbs-2278 .cs-heading,
    body.dark-mode #RPsbsr-2278 .cs-heading {
      color: var(--bodyTextColorWhite);
    }
    body.dark-mode #RPsbs-2278 .cs-text,
    body.dark-mode #RPsbsr-2278 .cs-text,
    body.dark-mode #RPsbs-2278 .cs-li,
    body.dark-mode #RPsbsr-2278 .cs-li {
      opacity: 0.8;
    }
    /******** FULL SERVICES & STATS **********/
    /*****************************************/
    body.dark-mode #services-2331:before {
        background-color: rgba(0, 0, 0, 0.2);
    }
    body.dark-mode #services-2331 .cs-item {
        background-color: var(--dark);
        border-color: rgba(255, 255, 255, 0.2);
    }
    body.dark-mode #services-2331 .cs-item:hover .cs-icon-wrapper:before {
        background-color: var(--primary);
        opacity: 0.9;
    }
    body.dark-mode #services-2331 .cs-h3,
    body.dark-mode #services-2331 .cs-item-text,
    body.dark-mode #services-2331 .cs-link,
    body.dark-mode #services-2331 .cs-desc {
        color: var(--bodyTextColorWhite);
    }
    body.dark-mode #services-2331 .cs-icon-wrapper {
        background-color: rgba(0, 0, 0, 0.6);
    }
    body.dark-mode #services-2331 .cs-icon-wrapper:before {
        background-color: #000;
        opacity: 0.3;
        transition: background-color 0.3s, opacity 0.3s;
    }
    body.dark-mode #services-2331 .cs-arrow,
    body.dark-mode #services-2331 .cs-icon {
        filter: grayscale(1) brightness(10000%);
    }
}