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

#services {
    padding: 40px 0 80px;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    color: #151b54;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.learn-more {
    background-color: #151b54;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.learn-more:hover {
    background-color: #000;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.modal-content .service-description {
    text-align: justify;
}

.modal.show .modal-content {
    opacity: 1;
    transform: scale(1);
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal.show .modal-content {
    animation: reveal 0.5s ease forwards;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Mobile */
@media only screen and (min-width: 0rem) {
    #services-218 {
        padding: var(--sectionPadding);
    }

    #services-218 .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-218 .cs-content {
        /* set text align to left if content needs to be left aligned */
        text-align: left;
        width: 100%;
        max-width: 32.625rem;
        margin-right: auto;
        display: flex;
        flex-direction: column;
        /* centers content horizontally, set to flex-start to left align */
        align-items: flex-start;
    }

    #services-218 .cs-text {
        margin-bottom: 1rem;
    }

    #services-218 .cs-text:last-of-type {
        margin-bottom: 2rem;
    }

    #services-218 .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: #fff;
        min-width: 9.375rem;
        padding: 0 1.5rem;
        background-color: var(--primary);
        border-radius: 0.25rem;
        display: inline-block;
        position: relative;
        z-index: 1;
        /* prevents padding from adding to the width */
        box-sizing: border-box;
    }

    #services-218 .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;
    }

    #services-218 .cs-button-solid:hover:before {
        width: 100%;
    }

    #services-218 .cs-card-group {
        width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 2rem;
    }

    #services-218 .cs-item {
        list-style: none;
        width: 100%;
        margin-right: 0.625rem;
        /* padding left and right changes on tablet */
        padding: 2.75rem 2rem;
        /* prevents padding and border from affecting height and width */
        box-sizing: border-box;
        background-color: #fafbfc;
        border: 1px solid #dad9e3;
        border-radius: 0.3125rem;
        position: relative;
    }

    #services-218 .cs-item:before {
        /* top right box */
        content: "";
        width: 45%;
        max-width: 11.25rem;
        height: 50%;
        max-height: 9rem;
        background: var(--primary);
        border-radius: 1rem;
        position: absolute;
        display: block;
        top: -0.625rem;
        right: -0.625rem;
        z-index: -1;
    }

    #services-218 .cs-icon {
        /* 60px - 77px */
        width: clamp(3.75rem, 7.6vw, 4.8125rem);
        height: auto;
        margin-bottom: 2.5rem;
        display: block;
        color: #ff6a3e;
    }

    #services-218 .cs-h3 {
        /* 20px - 25px */
        font-size: clamp(1.25rem, 1.5vw, 1.5625rem);
        line-height: 1.2em;
        margin: 0;
        margin-bottom: 1rem;
        color: var(--headerColor);
        font-weight: bold;
    }

    #services-218 .cs-item-text {
        font-size: 1rem;
        line-height: 1.5em;
        margin: 0;
        color: var(--bodyTextColor);
    }

    #services-218 .cs-watermark {
        display: none;
    }
}

/* Tablet */
@media only screen and (min-width: 48rem) {
    #services-218 .cs-container {
        max-width: 80rem;
        position: relative;
    }

    #services-218 .cs-content {
        width: 50%;
    }

    #services-218 .cs-card-group {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
    }

    #services-218 .cs-item {
        grid-column: span 4;
        grid-row: span 1;
        margin: 0;
        /* makes each card the same height if you add or remove lines of text */
        align-self: stretch;
    }

    #services-218 .cs-watermark {
        width: 30%;
        max-width: 14rem;
        height: auto;
        position: absolute;
        top: 0;
        right: 0;
        display: block;
    }
}

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

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {

    #RPsbs-1097,
    #RPsbsr-1097 {
        padding: var(--sectionPadding);
    }

    #RPsbs-1097 .cs-container,
    #RPsbsr-1097 .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);
    }

    #RPsbs-1097 .cs-content,
    #RPsbsr-1097 .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;
    }

    #RPsbs-1097 .cs-text,
    #RPsbsr-1097 .cs-text {
        margin-bottom: 1rem;
    }

    #RPsbs-1097 .cs-text:last-of-type,
    #RPsbsr-1097 .cs-text:last-of-type {
        margin-bottom: 2rem;
    }

    #RPsbs-1097 .cs-button-solid,
    #RPsbsr-1097 .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: #fff;
        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;
    }

    #RPsbs-1097 .cs-button-solid:before,
    #RPsbsr-1097 .cs-button-solid:before {
        content: "";
        position: absolute;
        height: 100%;
        width: 0%;
        background: #000;
        opacity: 1;
        top: 0;
        left: 0;
        z-index: -1;
        transition: width 0.3s;
    }

    #RPsbs-1097 .cs-button-solid:hover:before,
    #RPsbsr-1097 .cs-button-solid:hover:before {
        width: 100%;
    }

    #RPsbs-1097 .cs-list,
    #RPsbsr-1097 .cs-list {
        max-width: 39.375rem;
        margin: 0 0 2rem 0;
        padding: 0;
        /* clips the bullets to create the half circle */
        overflow: hidden;
    }

    #RPsbs-1097 .cs-li,
    #RPsbsr-1097 .cs-li {
        list-style: none;
        margin: 0 0 0.5rem 0;
        color: var(--bodyTextColor);
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0.75rem;
        position: relative;
    }

    #RPsbs-1097 .cs-li:before,
    #RPsbsr-1097 .cs-li:before {
        /* bullet */
        content: "";
        width: 1rem;
        height: 1rem;
        margin-top: 0.1875rem;
        /* make it overflow the parent by half it's width to make an eclipse */
        margin-left: -0.5rem;
        background: var(--secondary);
        border-radius: 50%;
        display: block;
        /* prevents flexbox from squishing it */
        flex: none;
    }

    #RPsbs-1097 .cs-info,
    #RPsbsr-1097 .cs-info {
        width: 100%;
        padding-top: 2rem;
        border-top: 1px solid #e8e8e8;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 0.75rem;
        position: relative;
    }

    #RPsbs-1097 .cs-icon,
    #RPsbsr-1097 .cs-icon {
        width: 3.25rem;
        height: auto;
        display: block;
        transition: transform 0.3s;
    }

    #RPsbs-1097 .cs-flex,
    #RPsbsr-1097 .cs-flex {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    #RPsbs-1097 .cs-name,
    #RPsbsr-1097 .cs-name {
        /* 20px - 25px */
        font-size: clamp(1.25rem, 4vw, 1.5625rem);
        line-height: 1.2em;
        font-weight: 700;
        margin: 0;
        color: var(--headerColor);
        display: block;
    }

    #RPsbs-1097 .cs-desc,
    #RPsbsr-1097 .cs-desc {
        font-size: 0.875rem;
        line-height: 1.5em;
        margin: 0;
        color: var(--bodyTextColor);
        display: block;
    }

    #RPsbs-1097 .cs-image-group,
    #RPsbsr-1097 .cs-image-group {
        /* scales the whole group based on the view width size and stop when that vales equals .789em, resets at desktop */
        font-size: min(2.09vw, 0.789em);
        width: 43.375em;
        height: 43em;
        display: block;
        position: relative;
        z-index: 1;
    }

    #RPsbs-1097 .cs-picture,
    #RPsbsr-1097 .cs-picture {
        width: 33.875em;
        height: 38em;
        position: absolute;
        bottom: 0;
        left: 5.5em;
        z-index: -1;
    }

    #RPsbs-1097 .cs-picture img,
    #RPsbsr-1097 .cs-picture img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
    }

    #RPsbs-1097 .cs-stripes,
    #RPsbsr-1097 .cs-stripes {
        width: 32.625em;
        height: auto;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -2;
    }

    #RPsbs-1097 .cs-graphic,
    #RPsbsr-1097 .cs-graphic {
        width: 11.5em;
        height: auto;
        display: block;
        position: absolute;
        bottom: 5em;
        right: 0;
    }
}

/* Small Desktop - 1024px */
@media only screen and (min-width: 64rem) {

    #RPsbs-1097 .cs-container,
    #RPsbsr-1097 .cs-container {
        max-width: 80rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    #RPsbs-1097 .cs-image-group,
    #RPsbsr-1097 .cs-image-group {
        font-size: min(1.2vw, 1em);
        flex: none;
    }
}

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

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #RPsbsr-1097 {
        background-color: #f7f7f7;
    }

    #RPsbsr-1097 .cs-picture {
        right: 5.5em;
        left: auto;
    }

    #RPsbsr-1097 .cs-stripes {
        right: 0;
        left: auto;
    }

    #RPsbsr-1097 .cs-graphic {
        left: 0;
        right: auto;
    }
}

/* Small Desktop - 1024px */
@media only screen and (min-width: 64rem) {
    #RPsbsr-1097 .cs-image-group {
        /* sends it to the right in the 2nd position */
        order: 2;
    }
}

.service-custom-title {
    font-size: 1.7rem;
}

#custom-section {
    margin-top: 28px;
}

.custom-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}