@charset "UTF-8";

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

.specialties .container {
    position: relative;
    padding: clamp(60px, 6.250vw, 120px) 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( 40px, 2.917vw, 56px );
}

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

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

.specImg img {
    width: 80px;
    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( 24px, 1.458vw, 28px );
    font-weight: 500;
    letter-spacing: normal;
    line-height: clamp( 32px, 1.771vw, 34px );
    color: #062030;
    margin-bottom: clamp( 12px, 0.833vw, 16px );
    z-index: 3;
    text-transform: capitalize;
}

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

.specContent {
    position: relative;
    font-size: 16px;
    line-height: clamp( 22px, 1.25vw, 24px );
    text-align: center;
    padding: 20px 0;
    z-index: 5;
    color: #313131;
    width: fit-content;
}

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

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

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