@charset "UTF-8";

.specialties {
    display: flex;
    padding: clamp(60px, 6.25vw, 120px) 0;
    background-image: url('/wp-content/uploads/2024/08/Featured-Background-W-Overlay.jpg.webp');
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    background-color: #f8f8f8;
    z-index: 1;
    align-items: center;
    align-content: center;
}

.specialties .btn.btn-orange {
    margin-top: 35px;
}

.specialties .btn.btn-orange:hover {
    /* margin: 30px auto 5px; */
}

.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;
    overflow: visible;
}

.specialties .heading h2 {
    color: #303030;
    margin-bottom: clamp(40px, 2.917vw, 56px);
}

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

.specBox .spWrap {
    padding: 40px;
    background-color: #052F59;
    border-radius: 25px;
    box-shadow: 0px 10px 30px #00000033;
    transition: all .3s ease;
}

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

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

.specBox .spWrap:hover a.specialLink {
    color: #FF7D2E;
}

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

.specBox .spWrap:hover {
    transform: translateY(-20px);
    transition: all .3s ease;
}

.spWrap {
    text-align: left;
}

.specialties .spWrap a.specialLink {
    color: #F8F8F8;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 0.833vw, 16px);
    letter-spacing: clamp(.8px, 0.08vw, 1.54px);
    text-transform: uppercase;
}

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

.specImg img {
    width: 80px;
    object-fit: cover;
    object-position: center;
    border-radius: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.specContent h4 {
    border-bottom: 4px solid #F8F8F8;
}

.specContent h4, .specContent h4 a {
    position: relative;
    font-size: clamp(18px, 1.354vw, 26px);
    font-weight: 600;
    text-align: center;
    letter-spacing: normal;
    line-height: clamp(26px, 1.563vw, 30px);
    color: #F8F8F8;
    margin-bottom: 20px;
    padding-bottom: 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;
    font-size: clamp(14px, 0.833vw, 16px);
    line-height: clamp(22px, 1.25vw, 24px);
    text-align: left;
    padding: 20px 0;
    z-index: 5;
    color: #F8F8F8;
    width: fit-content;
}

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

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

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

    .specialties {
        height: unset;
        padding-top: 60px;
        padding-bottom: 60px;
        background-image: none;
    }

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

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

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