.card {
    padding: 2rem;
    height: 100%;
}

.grey-cards, .white-cards {
    gap: 2rem;

    &:not(.white-cards) .card {
        background-color: var(--wp--preset--color--base-2);
    }

    &:not(.grey-cards) .card {
        background-color: var(--wp--preset--color--base);
    }

    .card {
        .card-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;

            img, figure {
                width: var(--wp--preset--font-size--x-small);
                height: var(--wp--preset--font-size--x-small);
                object-fit: contain;
                vertical-align: top;
            }

            p {
                font-size: var(--wp--preset--font-size--x-small) !important;
                margin: 0 !important;
            }
        }

        h3 {
            font-weight: 400;
        }

        p {
            font-size: var(--wp--preset--font-size--small);
            margin-top: 3rem;
        }

        img {
            width: 100px;
            height: 100px;
            object-fit: contain;
            object-position: bottom right;
        }
    }
}

.black-cards {
    gap: 2rem;

    .card {
        background-color: var(--wp--preset--color--contrast-2);
        display: flex;
        flex-direction: column;
        position: relative;
        padding-bottom: 3rem;

        h3 {
            font-weight: 700;
            color: white;
            margin-top: 1rem;
        }

        p {
            font-size: var(--wp--preset--font-size--small);
            margin-top: 3rem;
            color: white;
        }

        figure {
            display: flex;
            align-items: right;
        }

        img {
            width: 30px;
            height: 30px;
            object-fit: contain;
            position: absolute;
            bottom: 1rem;
            right: 1rem;
        }

        .card-header {
            p {
                font-size: var(--wp--preset--font-size--x-small);
                margin: 0;
                color: white;
            }
        }
    }
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;

    .card {
        background-color: var(--wp--preset--color--base-2);
        margin: 0;
        padding: 0;
        height: 100%;
        display: flex;
        cursor: pointer;

        h3 {
            flex: 1;
            padding: 2rem;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 4rem;
            font-weight: 400;

            a {
                text-decoration: none;
            }

            &::after {
                content: '';
                width: 20px;
                height: 20px;
                background-image: url('../icons/link-arrow.svg');
                background-size: contain;
            }
        }

        figure {
            flex: 1;
            margin: 0;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
    }
}