.services {
	position: relative;
    overflow: hidden;
    padding: 100px 0 56px;
    background: #F8FAFC;
}

.services .container {
	position: relative;
}

.services__media {
    position: absolute;
    top: 59%;
    right: -18%;
    width: 30%;
    max-width: 433px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

.services__media img {
	width: 100%;
	height: auto;
	margin-left: auto;
}

.services--has-image .services__grid {
	position: relative;
	z-index: 1;
}

/* Badge */
.services__badge {
	display: inline-flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 16px;
    padding: 7px 16px;
    border: 1px solid #D5DEE9;
    border-radius: var(--radius-pill);
    font-size: 16px;
    font-weight: 500;
    line-height: 150%;
    color: #3B455A;
    box-shadow: 0px -4px 10px 0px #FFFFFF59 inset;
    background-color: #E2E6F033;
}

.services__badge-dot {
    width: 12px;
    height: 12px;
	border-radius: 50%;
	background: #87CF00;
}

/* Heading */
.services__heading {
    max-width: 965px;
    margin: 0 0 56px;
    color: #131C2E;
}

.services__heading span {
	color: var(--color-accent);
}

/* Grid - column count comes from the block setting, 3 by default. */
.services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.services--cols-2 .services__grid {
	grid-template-columns: repeat(2, 1fr);
}

.services--cols-4 .services__grid {
	grid-template-columns: repeat(4, 1fr);
}

/* Two columns: a lone last card fills the row instead of hanging half-width. */
.services--cols-2 .services__card:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

/* Card */
.services__card {
    position: relative;
    display: block;
    padding: 23px 23px 21px;
    border: 1.5px solid #D5DEE9;
    border-radius: 8px;
    background: #DEE6F299;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    backdrop-filter: blur(15px);
}

a.services__card:hover {
	border-color: #87CF00;
	background: var(--color-white);
}

a.services__card .services__card-arrow svg path {
    transition: all 0.3s;
}

a.services__card:hover .services__card-arrow svg path {
    stroke: #87CF00;
}

.services__card-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    margin: 0 0 13px;
    font-size: 20px;
    font-weight: 600;
    line-height: 140%;
    text-transform: uppercase;
    color: #131C2E;
}

.services__card-title > span {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.services__card-num {
    color: #68C010;
    display: block;
    min-width: max-content;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.01px;
}

.services__card-text {
    margin: 0;
    font-size: 16px;
    line-height: 150%;
    font-weight: 400;
    color: #3B455A;
}

@media (max-width: 1440px) {
    .services {
        padding: 60px 0 28px;
    }

    .services__badge {
        font-size: 14px;
    }

    .services__heading {
        max-width: 940px;
        margin: 0 0 40px;
    }

    .services__grid {
        gap: 16px;
    }

    .services__card {
        padding: 18px;
    }

    .services__card-title > span {
        gap: 15px;
    }

    .services__card-title {
        gap: 12px;
        font-size: 18px;
    }

    .services__card-text {
        font-size: 14px;
    }

    .services__media {
        top: 56%;
        right: -10%;
        width: 30%;
        max-width: 284px;
    }
}


@media (max-width: 1280px){
    .services__media {
        max-width: 261px;
    }

    .services__heading{
        font-size: 24px;
    }
}

/* Three columns next to the illustration get cramped early, so they drop to two. */
@media (max-width: 900px) {
    .services--cols-3.services--has-image .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* A lone last card fills the row instead of hanging half-width. */
    .services--cols-3.services--has-image .services__card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px){
    .services__heading {
        margin: 0 0 32px;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px){
    .services {
        padding: 40px 0 28px;
    }

    .services__badge {
        padding: 3px 11px;
        gap: 8px;
        font-size: 12px;
        margin: 0 0 11px;
    }

    .services__badge-dot {
        width: 8px;
        height: 8px;
    }

    .services__heading {
        margin: 0 0 20px;
        font-size: 18px;
    }

    .services--cols-3.services--has-image .services__grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .services__card-title{
        align-items: flex-start;
        margin: 0 0 2px;
    }

    .services__card-text {
        font-size: 12px;
    }

    .services__card-title > span{
        flex-direction: column;
        font-size: 16px;
        gap: 12px;
    }

    .services__card-arrow svg{
        width: 24px;
        height: 24px;
    }
}