@charset "UTF-8";

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

.specialties .container {
    position: relative;
    width: min( 85.417vw, 1640px );
    padding: clamp( 50px, 5.208vw, 100px ) 0;
    background-color: transparent;
    margin: 0 auto;
}

.specialties .container > div {
    padding: 0;
}

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

.specialties .heading {
    margin-bottom: 0;
}

.specialties .row.flex {
    flex-wrap: nowrap;
    align-items: center;
    justify-items: center;
    justify-content: center;
    gap: 16px;
}

.specialties .heading h1 {
    color: #2A2A2C;
    font-size: clamp( 26px, 2.083vw, 40px );
    line-height: clamp( 34px, 2.5vw, 48px );
    font-weight: 400;
    margin-bottom: clamp(35px, 3.646vw, 70px);
}

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

.specBox {
    position: relative;
    display: block;
    /* width: 25%; */
    height: fit-content;
    padding: 0;
    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;
    display: flex;
    background-color: transparent;
    color: #f8f8f8;
    border-radius: 0;
    height: fit-content;
    width: 100%;
    padding: 0;
    /* box-shadow: 0px 15px 30px #0000000D; */
    align-items: end;
    z-index: auto;
    flex-direction: column;
    justify-content: center;
}

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

.specImg {
    position: relative;
    width: 100%;
    height: auto;
    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: "Bree Serif", sans-serif;
    font-size: clamp(22px, 1.25vw, 24px);
    font-weight: 400;
    letter-spacing: normal;
    line-height: clamp(28px, 1.563vw, 30px);
    color: #2A2A2C;
    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: 18px;
    line-height: 26px;
    text-align: center;
    padding: 36px 0 0px;
    z-index: 5;
    color: #2A2A2C;
    width: 100%;
}

.specialLink {
    position: relative;
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #FF5332;
    margin: 0 auto;
    color: #f8f8f8;
    text-transform: uppercase;
    font-weight: 600;
    font-size: clamp( 12px, 0.833vw, 16px );
    width: 80%;
    letter-spacing: clamp( 0.75px, 0.080vw, 1.54px );
    padding: 20px 0;
    z-index: 2;
}

a.specialLink::after {
    content: '\f054';
    display: none;
    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;
        column-gap: 34px;
        height: fit-content;
        gap: 40px;
    }

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

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

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

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

    .specContent {
        clear: both;
        padding: 18px 0 0;
    }

}

@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: 300px;
        padding: 0 0;
    }

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