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

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #services-cards {
        padding: var(--sectionPadding);
        background-color: #171e26;
    }
    #services-cards .cs-container {
        width: 100%;
        max-width: 80rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: clamp(2.5rem, 5vw, 4rem);
    }
    #services-cards .cs-title {
        font-family: 'Outfit', sans-serif;
        font-size: clamp(1.875rem, 4vw, 3rem);
        font-weight: 900;
        text-transform: uppercase;
        text-align: center;
        line-height: 1.15em;
        color: #fff;
        margin: 0;
        max-width: 20ch;
    }
    #services-cards .cs-card-group {
        width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    #services-cards .cs-item {
        list-style: none;
        background-color: #fff;
        border-radius: 0 0 0.75rem 0.75rem;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        border-top: 6px solid var(--primary);
        transition: transform 0.3s;
    }
    #services-cards .cs-item:hover {
        transform: translateY(-4px);
    }
    #services-cards .cs-image-wrap {
        width: 100%;
        height: 14rem;
        overflow: hidden;
        flex-shrink: 0;
    }
    #services-cards .cs-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s;
    }
    #services-cards .cs-item:hover .cs-img {
        transform: scale(1.04);
    }
    #services-cards .cs-content {
        padding: clamp(1.25rem, 3vw, 1.75rem);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 1;
        gap: 0.75rem;
    }
    #services-cards .cs-h3 {
        font-family: 'Outfit', sans-serif;
        font-size: clamp(1rem, 2vw, 1.25rem);
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        line-height: 1.2em;
        color: var(--primary);
        margin: 0;
    }
    #services-cards .cs-text {
        font-size: 0.9375rem;
        line-height: 1.7em;
        color: var(--bodyTextColor);
        margin: 0;
        flex: 1;
    }
    #services-cards .cs-button {
        font-family: 'Outfit', sans-serif;
        font-size: 0.8125rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        text-decoration: none;
        padding: 0.625rem 1.5rem;
        color: var(--primary);
        border: 2px solid var(--primary);
        border-radius: 0.375rem;
        display: inline-block;
        margin-top: auto;
        transition: background-color 0.3s, color 0.3s;
    }
    #services-cards .cs-button:hover {
        background-color: var(--primary);
        color: #fff;
    }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
    #services-cards .cs-card-group {
        flex-direction: row;
        flex-wrap: wrap;
    }
    #services-cards .cs-item {
        width: calc(50% - 0.75rem);
    }
}
/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
    #services-cards .cs-item {
        width: calc(25% - 1.125rem);
    }
}
