@charset "UTF-8";

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

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

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

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

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

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

.specBox:hover {
    margin: 0 0 40px;
}

.spWrap {
    position: relative;
    background: transparent linear-gradient(148deg, #F8F8F8 0%, #EDEBE8 100%) 0% 0%;
    color: #171B1F;
    border-radius: 0;
    padding: 40px;
    /* box-shadow: 0px 15px 30px #00000026; */
}

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

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

.specContent h4, .specContent h4 a {
    position: relative;
    font-family: 'corporate-s';
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: clamp( 32px, 1.771vw, 34px );
    color: #171B1F;
    margin-bottom: 0;
    z-index: 3;
    text-transform: unset;
}

.specContent h4 a:hover {
    text-decoration: none;
}

.specContent h4 {
    /* border-bottom: 4px solid rgb(248 248 248 / 10%); */
    padding-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: clamp( 22px, 1.25vw, 24px );
    text-align: left;
    padding: 8px 0;
    z-index: 5;
    color: #171B1F;
    width: fit-content;
}

.specContent .specialLink {
    display: block;
    margin: clamp( 16px, 1.667vw, 32px ) 0 0;
    color: #171B1F;
    text-transform: uppercase;
    font-weight: 600;
    width: fit-content;
    font-size: clamp(16px, 0.938vw, 18px);
    letter-spacing: clamp(.86px, 0.09vw, 1.73px);
    font-family: 'corporate-s';
}

a.specialLink::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background-color: #171B1F;
    transition: all .5s ease;
}

.specBox:hover a.specialLink::after,
a.specialLink:hover::after {
    width: 100%;
}

.specContent .specialLink:hover {
    color: #171B1F;
    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;
    }

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

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

    .specContent {
        clear: both;
    }

}

@media ( max-width: 768px ) {
    .specialties::after {
        display: none;
    }
}

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

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

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

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