@charset "UTF-8";

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

.specialties .container {
    position: relative;
    padding: clamp(60px, 6.250vw, 120px) 0 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: wrap;
    align-items: center;
    justify-items: flex-start;
    justify-content: flex-start;
}

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

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

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

.spWrap {
    position: relative;
    background-color: #09291F;
    color: #f8f8f8;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0px 15px 30px #00000026;
}

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

.specImg img {
    width: 68px;
    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-size: clamp( 20px, 1.146vw, 22px );
    font-weight: 400;
    letter-spacing: normal;
    line-height: clamp( 32px, 1.771vw, 34px );
    color: #f8f8f8;
    margin-bottom: clamp( 20px, 0.885vw, 17px );
    z-index: 3;
    text-transform: capitalize;
}

.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: clamp( 12px, 0.833vw, 16px );
    line-height: clamp( 20px, 1.25vw, 24px );
    text-align: center;
    padding: 8px 0;
    z-index: 5;
    color: #f8f8f8;
    width: fit-content;
}

.specContent .specialLink {
    display: block;
    margin: clamp( 16px, 1.667vw, 32px ) auto 0;
    color: #f8f8f8;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: clamp( 0.75px, 0.080vw, 1.54px );
}

.specContent .specialLink:hover {
    color: #CC9759;
}

.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
    }
    
    .specialties .heading h2::after {
        margin: 18px auto;
    }

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