/* --- Block Stats
-------------------------------------------------------- */

.wp-block-stats .wp-block-stats-content h2:before {
    content: "";
    border-bottom: 5px solid var(--wp--preset--color--text-link);
    height: 5px;
    width: 100%;
    position: absolute;
    bottom: clamp(7px, 1vw, 13px);
    left: 0;
    z-index: -1;
}

.wp-block-stats .wp-block-stats-content h2 {
    font-size: clamp(40px, 4.5vw, 70px);
    line-height: 1.3;
    position: relative;
    display: inline-block;
}

.wp-block-stats .wp-block-stats-content>*+* {
    margin-block-start: 7px;
}

.wp-block-stats .wp-block-stats-content p {
    opacity: 0.5;
    line-height: var(--wp--custom--typography--line-height--paragraph);
}

.wp-block-stats .wp-block-column {
    text-align: center;
}

/* --- Block Services
-------------------------------------------------------- */
.service-block {
    > h2 {
        &:before {
            content: "";
            display: inline-block;
            width: 2em;
            height: 4px;
            margin-right: 21px;
            background: var(--wp--preset--color--foreground);
        }
    }
}

/* --- Block How It Works Default
-------------------------------------------------------- */

.wp-block-buttons.style-custom-btn .wp-block-button .wp-block-button__link {
    &:after {
        border-bottom-style: solid;
        border-bottom-width: 2px;
        border-right-style: solid;
        border-right-width: 2px;
        content: "";
        display: inline-block;
        height: 6px;
        right: -22px;
        position: absolute;
        top: 8px;
        width: 6px;
        border-color: var(--wp--preset--color--primary);
        transform: rotate(-45deg);
        transition: all 0.3s ease-in-out;
    }
    &:before {
        background-color: var(--wp--preset--color--primary);
        bottom: 1px;
        content: "";
        height: 12px;
        position: absolute;
        right: -10px;
        transform-origin: bottom;
        width: 2px;
        transform: rotate(90deg);
        top: 0;
        transition: all 0.3s ease-in-out;
    }
    position: relative;
    padding: 0;
    background-color: transparent;
    margin-top: 0;
    color: var(--wp--preset--color--primary);
    text-transform: uppercase;
    font-size: var(--wp--preset--font-size--medium);
    letter-spacing: 1.6px;
    &:hover {
        background-color: transparent;
        color: var(--wp--preset--color--foreground);
        padding-right: 7px;
        &:before {
            background-color: var(--wp--preset--color--foreground);
        }
        &:after {
            border-color: var(--wp--preset--color--foreground);
        }
    }
}


/* --- Block Hero Fluid
-------------------------------------------------------- */

.wp-block-hero-fluid .wp-block-media-text__media {
    display: none;
}

.wp-block-cover.wp-block-hero-fluid .wp-block-cover__image-background {
    left: 0;
    width: 50%;
    z-index: 9 !important;
}

.wp-block-cover.wp-block-hero-fluid .wp-block-media-text.has-media-on-the-right .wp-block-cover__image-background {
    left: auto;
    right: 0;
}

.wp-block-section.wp-block-hero-fluid .wp-block-group-heading {
    margin-bottom: 0;
}

@media screen and (max-width: 48em) {

    .wp-block-cover.wp-block-hero-fluid {
        flex-direction: column;
    }

    .wp-block-cover.wp-block-hero-fluid .wp-block-cover__image-background {
        position: static;
        width: 100%;
    }

    .wp-block-cover.wp-block-hero-fluid .wp-block-media-text {
        display: block;
    }
}

.wp-block-hero-fluid .wp-block-media-text.alignwide {
    max-width: 100%;
}


.wp-block-hero-fluid .is-stacked-on-mobile .wp-block-media-text__media {
    margin: 0
}

.wp-block-hero-fluid .wp-block-buttons {
    margin-top: var(--wp--custom--spacing--group-heading-bottom-gap);

    .wp-block-button__link {
        margin-top: 0;
    }
}

.wp-block-hero-fluid .wp-block-media-text .wp-block-media-text__content {
    padding: var(--wp--preset--spacing--80) !important;
}

.wp-block-hero-fluid.wp-block-section .wp-block-group-heading {
    text-align: left;
    > * {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.wp-block-hero-fluid .wp-block-buttons.style-custom-btn .wp-block-button .wp-block-button__link {
    color: var(--wp--preset--color--color-light);
}

.wp-block-hero-fluid .wp-block-buttons.style-custom-btn .wp-block-button .wp-block-button__link:before {
    background-color: var(--wp--preset--color--color-light);
}

.wp-block-hero-fluid .wp-block-buttons.style-custom-btn .wp-block-button .wp-block-button__link:after {
    border-color: var(--wp--preset--color--color-light);
}

.wp-block-hero-fluid .wp-block-buttons.style-custom-btn .wp-block-button .wp-block-button__link:hover {
    opacity: .6;
}

.wp-block-cover.wp-block-section.wp-block-hero-fluid {
    padding: 0;
    overflow: hidden;
}

.wp-block-hero-fluid.wp-block-section .wp-block-image img {
    transition: 0.3s;
}

.wp-block-hero-fluid.wp-block-section:hover {
    .wp-block-image img {
      transform: scale(1.12);
    }
}
