@charset "UTF-8";

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

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

.specialties .heading h2 {
    color: #171B1F;
    margin-bottom: clamp(16px, 1.667vw, 32px);
}

.specialties .specSecDesc p {
    margin-bottom: 40px;
    color: #171B1F;
}

.specialties a.btn {
    margin-top: clamp(28px, 2.917vw, 56px);
    background-color: #F8F8F8;
    color: #171B1F;
    border-radius: 0;
    outline: 2px solid #C6A170;
}

.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;
}

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

.specBox:first-of-type .specImg::before {
    /* background-color: #B07839; */
}

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

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

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

.specContent h4, .specContent h4 a {
    position: relative;
    font-family: 'corporate-s', sans-serif;
    font-size: clamp(22px, 1.354vw, 26px);
    font-weight: 500;
    line-height: clamp(28px, 1.667vw, 32px);
    color: #171B1F;
    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: clamp(14px, 0.833vw, 16px);
    line-height: clamp(22px, 1.250vw, 24px);
    text-align: left;
    padding: 36px 40px;
    z-index: 5;
    color: #171B1F;
    background-color: #fff;
    width: 100%;
    margin: 0 0 40px -20px;
    box-shadow: 0px 10px 20px #0000001A;
    z-index: 555;
}

.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%;
}

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

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

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

    .specContent {
        clear: both;
        font-size: 16px;
    }

    .specContent h4 {
        font-size: 28px;
        line-height: 42px;
    }

}

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

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

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