/* --- Block Services
-------------------------------------------------------- */


/* --- Block Featured Services
-------------------------------------------------------- */

.wp-block-services-list {
    background-color: var(--wp--preset--color--primary);
    padding: var(--wp--custom--spacing--section-pricing-content);
    transition: all 0.5s ease-in-out;
}

.wp-block-services-list:hover {
    background-color: var(--wp--preset--color--text-link);
    border-radius: 16px;
}

.wp-block-services-list:hover h2 {
    color: var(--wp--preset--color--color-dark);
}

.wp-block-services-list:hover .fse-pro-icons svg {
    color: var(--wp--preset--color--color-dark);
    fill: var(--wp--preset--color--color-dark);
}

.wp-block-services-list .fse-pro-icons svg {
    color: var(--wp--preset--color--text-link);
    fill: var(--wp--preset--color--text-link);
    transition: all 0.3s ease-in-out;
}

.wp-block-featured-services .wp-block-cover__inner-container .wp-block-media-text__content>.wp-block-columns:last-child {
    margin-bottom: 0;
}

.wp-block-featured-services .wp-block-media-text .wp-block-media-text__media:before {
    content: "";
    background-color: var(--wp--preset--color--text-link);
    top: 0;
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 20%;
    left: 0;
}






.wp-block-our-events .wp-block-section-content:last-child {
    border-bottom: none;
}

.wp-block-our-events .wp-block-group:hover>.wp-block-section-content:not(:hover) {
    opacity: 0.45;
}

.wp-block-our-events .wp-block-group .wp-block-section-content {
    opacity: 1;
    transition: all 0.4s;
    border-color: var(--wp--preset--color--border-color);
}




.wp-block-services .wp-block-post-group {
    border: 1px solid var(--wp--preset--color--border-color);
    padding: clamp(56px, 3.5vw, 50px) clamp(30px, 3.5vw, 50px);

    &:hover figure img {
        -webkit-animation-name: hvr-push;
        animation-name: hvr-push;
        -webkit-animation-duration: 0.3s;
        animation-duration: 0.3s;
        -webkit-animation-timing-function: linear;
        animation-timing-function: linear;
        -webkit-animation-iteration-count: 1;
        animation-iteration-count: 1;
    }

    figure {
        margin-bottom: 28px;
        max-width: 125px;
        text-align: center;

        img {
            display: inline-block;
            vertical-align: middle;
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
        }
    }
}

@-webkit-keyframes hvr-push {
    50% {
        -webkit-transform: scale(0.8);
        transform: scale(0.8);
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes hvr-push {
    50% {
        -webkit-transform: scale(0.8);
        transform: scale(0.8);
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

.wp-block-services .is-style-button .wp-block-button__link:after,
.wp-block-services .is-style-button .wp-block-button__link::before {
    opacity: 0;
}

.wp-block-services .is-style-button:hover .wp-block-button__link:after,
.wp-block-services .is-style-button:focus .wp-block-button__link:after,
.wp-block-services .is-style-button:hover .wp-block-button__link::before,
.wp-block-services .is-style-button:focus .wp-block-button__link::after {
    opacity: 1;
}

.wp-block-event-booking .wp-block-image img {
    width: 18px;
    vertical-align: middle;
}

.wp-block-our-events {
    .wp-block-event-date {
        width: 30%;
    }

    .wp-block-event-booking {
        width: 70%;
    }
}

.wp-block-services .is-style-button.wp-block-button .wp-block-button__link {
    padding-right: 0;
}

.wp-block-services.has-background+.wp-block-section {
    padding-top: var(--wp--custom--spacing--section-block-top);
}

.wp-block-services.has-background {
    padding-top: var(--wp--custom--spacing--main-block-gap) !important;
    padding-bottom: var(--wp--custom--spacing--main-block-gap) !important;
}

/** Circle Services CSS  **/
.service-circle {
    text-align: center;
}

.service-circle a {
    text-decoration: none;
}

.service-circle:hover a,
.service-circle:focus a {
    color: var(--wp--preset--color--link-color);
}

.service-image img {
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease-out;
}

.service-image {
    position: relative;
    overflow: hidden;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease-out;
}

.service-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}




.service-circle:hover .service-image {
    transform: scale(1.03);
}

/* Glossy shine effect */
.service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    pointer-events: none;
    transition: none;
    z-index: 9;
}

.service-circle:hover .service-image::before {
    animation: glossy-shine 0.6s ease forwards;
}

@keyframes glossy-shine {
    0% {
        left: -75%;
    }

    100% {
        left: 125%;
    }
}