.section-requirements_and_services .bg{
    position: absolute;
    z-index: -1;
    opacity:.5;

}
.hex-services {
    padding: 32px 0;

    h2 {
        line-height: 120%;
    }


    .hexIn:hover {
        opacity: .9;
    }


    .regulations-block {
        /* border: 1px solid #efefef;
         padding: 12px;*/
    }
    .regulations-block h3 {
        font-size: 24px;
        font-weight: normal;
    }
    .regulations-block .sub-title {
        color: #2ea38f;
        font-weight: 600;
        font-size: 17px;
        line-height: 20px;
    }
    /*** HEX CONTENT **********************************************************************/


    .hex h4 {
        font-size: 18px;
        font-weight: bold;
        top: 50%;
        left: 50%; /* optional if you also want to horizontally center */
        transform: translate(-50%, -50%);
    }
    .hexLink p {
        position: absolute;
        display:block;
        width: 100%;
        transition: opacity 200ms ease-in;
        opacity: 0;
        font-size: 14px;
        bottom: 2%;
        left: 50%; /* optional if you also want to horizontally center */
        transform: translate(-50%, -50%);
    }


    a.hexLink  h4{
        font-size: 16px !important;
    }

    @media (max-width: 1300px) {

        .hexLink:hover  p {
            font-size: 12px !important;
            bottom: -10px;
        }
    }

    @media (max-width: 1500px) {
        a.hexLink h4 {
            font-size: 12px !important;
        }
        .hexLink:hover  p {
            font-size: 12px !important;

        }
    }






    /*** HEXAGON SIZING AND EVEN ROW INDENTATION *****************************************************************/
    #hexGrid {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        margin: 0 auto;
        overflow: hidden;
        font-family: sans-serif;
        list-style-type: none;
        padding: 64px 0;
    }


    .hex {
        margin-bottom: 64px;
    }






    /** radio**/
    .form-check-input:hover,.form-check-label:hover {
        cursor: pointer !important;
    }
    .form-check-label.inactive {
        color: #000;
        opacity: 1;
    }
    .form-check-label:not(.inactive) {
        color: #2ea38f;
    }

    .form-switch .form-check-input {
        height: 24px;
        width: 48px;
        background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(255,255,255,1)'/></svg>");
        background-color: #bbb;
        border-color: rgba(0, 0, 0, 0.1);
    }
    .form-switch .form-check-input:focus {
        border-color: rgba(0, 0, 0, 0.25);
        outline: 0;
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
        background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(255,255,255,1)'/></svg>");
    }
    .form-switch .form-check-input:checked {
        position: relative;
        border-color: #2ea38f;
        border: none;


    }
    .form-switch .form-check-label {
        line-height: 20px;
    }
    .form-switch .form-check-label strong {
        font-weight: normal;

        font-size: 16px;
    }
    .form-switch .form-check-input:checked::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, #2DA38F, #054479); /* Your gradient */
        z-index: 0; /* Layer this below the circle */
        border-radius: inherit; /* Ensure the pseudo-element matches the shape of the input */
    }

    .form-switch .form-check-input:checked::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 50%;
        height: 100%;
        background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(255,255,255,1.0)'/></svg>");
        z-index: 1; /* Layer this below the circle */
        border-radius: inherit; /* Ensure the pseudo-element matches the shape of the input */
    }

    .form-switch .form-check-input {

        margin-left: -3.5em;
    }

    .form-switch {
        padding-left: 3.5em;
    }

}

@media (max-width: 991px){
    .form-switch {
        padding-left: 4.5em !important;
    }
    .form-switch .form-check-input {

        margin-left: -4.5em !important;
    }
    #hexGrid {
        display: block !important;
        padding: 16px 0 !important;
    }
    #hexGrid li {
        display: block;
    }
    .item-subpages h3 {
        color: #fff;
    }

    .section-services_preview .item-subpages ul > li > a h4 {
        font-size: 16px !important;
        margin-left: 16px;
        margin-bottom: 0;
    }
    .section-services_preview .item-subpages ul > li {
        margin-bottom: 12px;
    }
    .section-services_preview .item-subpages ul > li > a {
        position: relative;
    }
    .section-services_preview .item-subpages ul > li > a.inactive {
        opacity: 0.5;
        pointer-events: none;
        cursor: none;

    }
    .section-services_preview .item-subpages ul > li > a:not(.inactive) {
        background: linear-gradient(to right, #03223d 0%, #054479 45%, #054479 100%);
    }
    .section-services_preview .item-subpages ul > li > a:not(.inactive):before {
        content: "\e904";

        font-family: 'icomoon' !important;
        position: absolute;
        color: white;
        font-size: 12px;
        width: 20px;
        height: 20px;
        z-index: 1;
        left:12px;
    }
}


/*services */

.services-block {
    background-color: #f5f5f5;
}

.services-block span {
    color: #2ea38f;
}

.services-block .col {
    padding: 0 1em 1em 1em;
    text-align: center;
}

.services-block .service-card {
    width: 100%;
    height: 100%;
    padding: 2em 1.5em;
    border-radius: 5px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: 0.5s;
    position: relative;
    z-index: 2;
    overflow: hidden;
    background: #fff;
}

.services-block .service-card.inactive {
    opacity: 0.2;
}
.services-block .service-card.inactive:hover:after {
    top: -98%;
    cursor: none;

}
.services-block .service-card.inactive a {
    pointer-events: none;
    cursor: none;
}
.services-block .service-card.inactive:hover h3 {
    color: #1f194c;
}

.services-block .service-card.inactive:hover p {
    color: #1f194c;
}
.services-block .service-card.inactive:hover img {
    filter: none;
}
.services-block .service-card:hover img {
    filter: brightness(0) invert(1);
}

.services-block .service-card::after {
    content: "";
    width: 100%;
    height: 100%;
    background: linear-gradient(#2ea38f, #2ea38f);
    position: absolute;
    left: 0%;
    top: -98%;
    z-index: -2;
    transition: all 0.4s cubic-bezier(0.77, -0.04, 0, 0.99);
}

.services-block h3 {
    font-size: 20px;

    font-weight: 600;
    color: #1f194c;
    margin: 1em 0;
    z-index: 3;
}

.services-block p {
    color: #575a7b;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0.03em;
    z-index: 3;
}



.services-block .service-card:hover:after {
    top: 0%;
}

.color-green {
    color: #2ea38f !important;
}



.services-block .service-card:hover h3 {
    color: #ffffff;
}

.services-block .service-card:hover p {
    color: #f0f0f0;
}


@media (min-width: 992px) {
    .hexLink:hover  p {
        opacity: 1;
        font-weight: normal;
        text-transform: uppercase;
        z-index:5;

    }

    .section-services_preview .item-subpages ul > li > a {

        width: clamp(100px, 8.8541666667vw, 270px);
        height: clamp(108px, 10.15625vw, 295px);

    }

    .section-services_preview .item-subpages ul > li > a.inactive {
        color: white;
        pointer-events: none;
        cursor: default;
    }
    .section-services_preview .item-subpages ul > li > a.inactive:before {
        background: var(--wpr-bg-2db8f6d8-9921-4cdf-a332-1a3d1d62b563) no-repeat center !important;
    }

    .section-services_preview .item-subpages ul > li > a:hover {
        color: #fff;
    }
    .section-services_preview .item-subpages ul > li > a:hover:before {
        content: "";
        width: 100%;
        height: 100%;

        background-size: 100%;
        position: absolute;
        z-index: -1;
        left: 0;
        top: 0;
        background: var(--wpr-bg-492ebbb9-5abc-4c60-b8e5-786408a8b5da) no-repeat center !important;

    }

    .section-services_preview .item-subpages ul > li > a:after {
        transition: transform 0.3s ease-in-out;
        content: '';
        position: absolute;
        left:0;
        bottom:0;
        background-size: 100%;
        width: 100%;
        height: 100%;
    }
    .section-services_preview .item-subpages ul > li > a:hover:after {
        content: "";

        transform: scale(1.1);

        position: absolute;
        z-index: 0;
        left: 0;
        bottom: 0;
        background: var(--wpr-bg-4492bf6f-8ddb-4601-aeea-e74aaa1006a8) no-repeat bottom !important;

    }

}

@media (min-width: 2290px){

    .section-services_preview .item-subpages ul > li > a {
        width: clamp(100px, 8.8541666667vw, 170px) !important;
        height: clamp(108px, 10.15625vw, 195px) !important;
    }
}