@charset "UTF-8";

.specialties {
    position: relative;
    background-color: #f8f8f8;
    z-index: 2;
}

.specialties:before {
    content: '';
    position: absolute;
    top: 0;
    right: min(2.604vw, 50px);
    height: 100%;
    width: 1px;
    background-color: rgb(248 248 248 / 25%);
}

.specialties:after {
    content: '';
    position: absolute;
    top: min(2.604vw, 50px);
    right: 0;
    height: 1px;
    width: min(100vw, 1920px);
    background-color: rgb(248 248 248 / 25%);
}

.specialties .container {
    position: relative;
    padding: clamp(80px, 8.333vw, 160px) 0 clamp(60px, 6.25vw, 120px);
    background-color: transparent;
    margin: 0 auto;
}

.page-template-flexible .specialties {
    padding: clamp( 25px, 2.083vw, 40px ) 0 clamp(45px, 9.375vw, 180px );
}

.specialties .heading {
    margin-bottom: 36px;
}

.specialties .row.flex {
    flex-wrap: nowrap;
    align-items: center;
    justify-items: center;
    justify-content: center;
    gap: clamp(40px, 4.427vw, 85px);
}

.specialties .heading h2 {
    margin-bottom: clamp( 10px, 1.042vw, 20px );
}

.specialties .heading h2:after {
    content: '';
    margin: 8px auto;
    height: 4px;
    width: 60px;
    display: block;
    background-color: #82A267;
}

.specBox {
    position: relative;
    display: block;
    width: 30%;
    padding: 0px 0 56px;
    margin: 20px 0px;
    text-align: center;
    overflow: visible;
    transition: all .75s ease;
    margin-bottom: 0px;
}

.specialties.beforeAfter .specBox {
    margin-bottom: 0px;
}

.specialties.beforeAfter .spWrap {
    padding: 0px;
    background-color: transparent;
}

.spWrap {
    position: relative;
    background-color: #f8f8f8;
    color: #091713;
    border-radius: 0;
    padding: 0;
    /* box-shadow: 0px 15px 30px #0000000D; */
}

.specialties.beforeAfter .specImg {
    padding-bottom: 0px;
}

.specImg {
    z-index: 0;
    padding-bottom: 4px;
}

.specialties.beforeAfter .specImg img {
    width: clamp(200px, 20.729vw, 398px);
    height: clamp(111px, 11.563vw, 222px);
}

.specImg img {
    width: 80px;
    object-fit: cover;
    object-position: center;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.specContent h4, .specContent h4 a {
    position: relative;
    font-family: "DM Sans", sans-serif;
    font-size: clamp(22px, 1.25vw, 24px);
    font-weight: 500;
    letter-spacing: normal;
    line-height: clamp(28px, 1.563vw, 30px);
    color: #091713;
    margin-bottom: 0;
    z-index: 3;
    text-transform: unset;
}

.specContent h4 {
    /* border-bottom: 4px solid rgb(234 233 228 / 100%); */
    padding-bottom: 16px;
    /* margin-bottom: 16px; */
}

.specContent h4 .smaller {
    display: block;
    font-size: 65%;
    color: #404042;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.specContent {
    position: relative;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    padding: 8px 0;
    z-index: 5;
    color: #091713;
    width: fit-content;
}

.specContent .specialLink {
    display: block;
    font-family: 'DM Sans', sans-serif;
    margin: clamp( 16px, 1.667vw, 32px ) 0 0;
    color: #091713;
    text-transform: uppercase;
    font-weight: 600;
    width: fit-content;
    letter-spacing: clamp( 0.75px, 0.080vw, 1.54px );
}

a.specialLink::after {
    content: '\f054';
    display: inline;
    font-family: 'Font Awesome 5 Free';
    margin-left: 0;
    opacity: 0;
    transition: all .5s ease;
}

.specBox:hover a.specialLink::after,
a.specialLink:hover::after {
    margin-left: 5px;
    opacity: 1;
}

.specContent .specialLink:hover {
    color: #232323;
    text-decoration: none;
}

.specBox .overCon {
    position: absolute;
    color: #f8f8f8;
    background-color: rgb(56 76 93 / 50%);
    font-size: clamp( 14px, 0.833vw, 16px );
    line-height: clamp( 22px, 1.25vw, 24px );
    top: 0;
    left: 0;
    width: 100%;
    height: clamp( 563px, 33.333vw, 640px );
    display: grid;
    padding: 0 40px 30px;
    align-items: end;
    justify-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: all .75s ease;
}

.specBox:hover .overCon {
    opacity: 1;
}

.specContent p {
    color: #404042;
    font-size: clamp( 14px, 0.781vw, 15px );
}

.spBtn .btn.btn-orange {
    margin: 0;
    /* border-radius: 50px; */
}

@media ( max-width: 1024px ) {
    .specialties .row.flex {
        flex-direction: column;
    }

    .specialties.beforeAfter .specImg img {
        width: 100%;
        height: auto;
    }

    .specialties.beforeAfter .specBox:hover {
        margin-bottom: 0px;
    }

    .specBox {
        /* margin-bottom: 40px; */
        max-width: 450px;
        width: 50%;
    }

    .specImg {
        /* height: fit-content; */
    }

    .specContent {
        clear: both;
    }

}

@media ( max-width: 768px ) {

}

@media ( max-width: 567px ) {
    .specialties .container {
        margin-bottom: 0
    }

    .specContent .specialLink {
        font-size: 16px;
    }

    .specialties .heading h2::after {
        margin: 18px auto;
    }

    .specialties a.btn.btn-orange {
        margin-top: 56px;
    }

    .specBox {
        width: 100%;
        padding: 0 20px;
    }

    .specContent h4,
    .specContent h4 a {
        font-size: 22px;
    }
}