@charset "UTF-8";

.specialties {
    padding: clamp(45px, 5.208vw, 100px) 0;
    position: relative;
    background-color: #F2F1EF;
}

.specialties .heading {
    width: clamp(300px, 38.542vw, 740px );
    margin: 0 auto clamp( 30px, 2.917vw, 56px );
}

.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: 56px;
}

.specialties .heading h2 {
    color: #02657F;
    margin-bottom: clamp(32px, 2.292vw, 44px);
}

.specBox {
    position: relative;
    display: block;
    padding: 0 0 0 20px;
    text-align: center;
    overflow: hidden;
}

.spConWrap {
    position: relative;
    display: grid;
    background-color: #ede1cb;
    /* padding: clamp( 20px, 2.083vw, 40px ) 0; */
    border-radius: 0;
    height: 480px;
    overflow: visible;
    transition: all .5s ease;
    align-items: end;
}
.whBg .spConWrap {
    background-color: #f8f8f8;
    text-align: left;
}

.whBg .spConWrap:hover {
    margin: clamp( 20px, 2.083vw, 40px );
}

.whBg .spConWrap h3 {
    color: #313B38;
    font-family: 'Raleway', sans-serif;
    font-size: clamp( 28px, 1.667vw, 32px );
    line-height: clamp( 38px, 2.188vw, 42px );
}

.whBg .spConWrap h3 span {
    display: block;
    color: #DC9E38;
}

.whBg .spConWrap a.btn.btn-orange {
    margin: 32px 0;
}

.specImg {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.specBox .specImg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: .8;
    transition: all .75s ease;
    z-index: 1;
}

.specBox:first-of-type .specImg::before {
    background-color: #53A5A8;
}

.specBox:nth-of-type(2) .specImg::before {
    background-color: #C1DFDF;
}

.specBox:last-of-type .specImg::before {
    background-color: #02657F;
}

.specBox:hover .specImg::before {
    opacity: 0;
}

.specImg img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.specContent h4, .specContent h4 a {
    position: relative;
    font-size: clamp(20px, 1.25vw, 24px);
    font-weight: 500;
    line-height: clamp(28px, 1.667vw, 32px);
    color: #303030;
    padding-bottom: 0;
    margin-bottom: 16px;
    z-index: 3;
    text-transform: none;
}

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

.specContent {
    position: relative;
    font-size: 16px;
    line-height: 24px;
    text-align: left;
    padding: 36px 40px;
    z-index: 5;
    color: #303030;
    background-color: #fff;
    width: 100%;
    margin: 0 0 40px -20px;
    box-shadow: 0px 10px 20px #0000001A;
    z-index: 5;
}

.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: #313B38;
    font-size: clamp(14px, 0.781vw, 15px);
}

.specBtn a {
    float: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    color: #f8f8f8;
    text-transform: uppercase;
    font-size: clamp(14px, 0.833vw, 16px);
    letter-spacing: clamp(.8px, 0.080vw, 1.54px);
    margin: 0 auto;
    display: block;
    position: relative;
    width: fit-content;
}

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

.specBtn a:hover {
    text-decoration: none;
}

.spConWrap:hover .specBtn a::after, 
.specBtn a:hover::after {
    width: 100%;
}

.specialties .btn {
    margin: clamp( 30px, 2.917vw, 56px ) auto 0;
}

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

    .specBox {
        margin-bottom: 40px;
        width: 398px;
    }

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

    .specContent {
        clear: both;
    }

    .specContent h4 {
        font-size: 22px;
        line-height: 30px;
    }

}

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

@media ( max-width: 479px ) {    
    .specialties .heading h2::after {
        margin: 18px auto;
    }

    .specBox {
        width: 100%;
    }
}