@charset "UTF-8";

.specialties {
    padding: clamp(50px, 5.208vw, 100px) 0 clamp(44px, 4.583vw, 88px);
    position: relative;
    background-color: #494F5A;
    z-index: 1;
}

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

.specialties .heading h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    margin: 8px auto 16px;
    border-bottom: 0;
    background-color: #CEDFF0;
}

.specialties .row.flex {
    flex-wrap: nowrap;
    align-items: center;
    justify-items: center;
    justify-content: center;
    overflow: visible;
    gap: clamp(40px, 4.419vw, 84.84px);
}

.specialties .heading h2 {
    color: #F8F8F8;
    margin-bottom: clamp(20px, 1.615vw, 31px);
}

.specialties a.btn:hover {
    color: #044267;
    background-color: #F8F8F8;
}

.specBox {
    position: relative;
    background-color: #F8F8F8;
    display: block;
    padding: 0;
    text-align: center;
    transition: all .3s cubic-bezier(.4,0,1,1);
    overflow: hidden;
    /* padding-top: 25px; */
}

.specBox:hover {
    margin-top: -20px;
    margin-bottom: 20px;
}

.specImg {
    z-index: 0;
    display: flex;
    width: 80%;
    align-items: flex-end;
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin: 0 clamp(20px, 2.083vw, 40px) 0 clamp(20px, 2.083vw, 40px);
    padding: clamp(20px, 2.083vw, 40px) 0 16px;
    border-bottom: 3px solid rgba(11, 15, 31, 0.1);
}

.specImg h4 {
    margin-bottom: 0px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
}

.specImg h4 a {
    color: #0B0F1F;
    font-size: clamp(18px, 1.146vw, 22px);
}

.specImg img {
    width: clamp(30px, 2.969vw, 57px);
    height: auto;
    object-fit: cover;
    object-position: center;
    margin: 0 auto -4px;
}

.specContent h4, .specContent h4 a {
    position: relative;
    font-size: clamp(20px, 1.354vw, 26px);
    font-weight: 500;
    letter-spacing: normal;
    line-height: clamp(28px, 1.771vw, 34px);
    color: #0B0F1F;
    margin-bottom: clamp(12px, 0.833vw, 16px);
    z-index: 3;
    text-transform: unset;
}

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

.specContent {
    position: relative;
    margin: 0 clamp(20px, 2.083vw, 40px) 0;
    font-size: clamp(14px, 0.833vw, 16px);
    line-height: clamp(22px, 1.250vw, 24px);
    padding: 16px 0 clamp(20px, 2.5vw, 48px);
    z-index: 5;
    color: #0B0F1F;
    background-color: transparent;
    text-align: left;
    width: 81%;
}

.specContent a.learnMore {
    display: inline-block;
    padding-top: clamp(18px, 1.667vw, 32px);
    text-transform: uppercase;
    font-weight: 500;
    color: #0B0F1F;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: clamp(0.76px, 0.080vw, 1.54px);
}

.specBox:hover .specContent a.learnMore {
    color: #2047BE;
    text-decoration: none;
}

.specContent a.learnMore:after {
    content: '';
    display: block;
    height: 2px;
    width: 0;
    background-color: #2047BE;
    transition: width .7s ease;
}

.specBox:hover .specContent a.learnMore:after {
    width: 100%;
}

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

.specialties a.btn.btn-orange {
    margin: 56px auto 0;
    /* border-radius: 50px; */
}

.specialties a.btn.btn-orange:hover {
    margin: 51px auto 5px;
}

@media ( max-width: 1024px ) {
    .specialties {
        padding: 75px 0px;
        background-image: none;
    }

    .specialties .row.flex {
        flex-wrap: wrap;
        align-items: center;
        justify-items: flex-start;
        justify-content: flex-start;
        gap: clamp(20px, 2.24vw, 43px);
    }
    
    .specialties .row.flex {
        flex-direction: column;
    }

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

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

    .specContent {
        clear: both;
    }

    .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: 85%;
        padding: 0 20px;
    }
}