@charset "UTF-8";

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

.specialties .heading {
    width: min( 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: 85px;
}

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

.specialties .heading h2::after {
    content: '';
    display: block;
    margin: 8px auto 0;
    width: 60px;
    height: 0;
    border-bottom: 3px solid #B9DBE5;
}

.specBox {
    position: relative;
    display: block;
    padding: 20px 0;
    text-align: center;
    overflow: hidden;
    transition: all .5s ease-in-out;
}

.specBox:hover {
    padding: 0 0 40px;
    transition: all .5s ease-in-out;
}

.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: relative;
    width: 120px;
    height: 90px;
    margin: 0 auto;
    z-index: 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.146vw, 22px);
    font-weight: 400;
    line-height: clamp(28px, 1.667vw, 32px);
    color: #f8f8f8;
    letter-spacing: clamp( 0.7px, 0.073vw, 1.41px );
    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: #2A2722;
    background-color: #2C353A;
    width: 100%;
    margin: 0;
    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: #f8f8f8;
    font-size: clamp(14px, 0.781vw, 15px);
}

a.specialLink {
    font-family: 'Lexend Mega', sans-serif;
    font-weight: 500;
    color: #f8f8f8;
    letter-spacing: clamp(.45px, 0.047vw, .9px);
    text-transform: uppercase;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

a.specialLink::after {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 20px;
    display: inline;
    margin-left: 0;
    opacity: 0;
    transition: all .75s ease;
}

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

.specBox:hover a.specialLink::after,
a.specialLink:hover::after {
    opacity: 1;
    margin-left: 16px;
    transition: all .75s ease;
}

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

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

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

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

    .specBox {
        width: 95%;
        padding: 0 10px 0;
    }

    .specBox:hover {
        padding: 0 10px 0;
    }
}