@charset "UTF-8";

.specialties {
    position: relative;
    background-color: var( --white );
    z-index: 2;
}

.specialties .container {
    position: relative;
    width: min( 85.417vw, 1640px );
    padding: min( 2.083vw, 40px ) 0 clamp(100px, 7.292vw, 140px );
    background-color: transparent;
    margin: 0 auto;
}

.specialties .container > div {
    padding: 0;
}

.page-template-flexible .specialties {
    padding: 0;
}

.specialties .heading {
    margin-bottom: clamp( 40px, 4.167vw, 80px );
    text-align: center;
}

.specialties .heading h2 {
    color: var( --black );
}

.specialties .row.flex {
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-items: center;
    justify-content: center;
    gap: clamp( 40px, 4.375vw, 84px );
}

.specialties .heading h1 {
    color: var( --white );
    font-size: clamp( 26px, 2.083vw, 40px );
    line-height: clamp( 34px, 2.5vw, 48px );
    font-weight: 600;
    margin-bottom: 56px;
}

.specialties .heading h2:after {
    content: '';
    margin: 8px auto;
    height: 4px;
    width: 60px;
    display: none;
    background-color: var( --secondary-color );
}

.specBox {
    position: relative;
    display: block;
    /* width: 25%; */
    height: fit-content;
    padding: 0;
    text-align: left;
    overflow: visible;
    transition: all .75s ease;
    margin-bottom: 0px;
}

.specialties .specBox {
    width: min( 20.729vw, 398px );
    flex: 0 0 auto;
}

.specialties.beforeAfter .specBox {
    margin-bottom: 0px;
}

.specialties.beforeAfter .spWrap {
    padding: 0px;
    background-color: transparent;
}

.specialties .spWrap {
    position: relative;
    display: flex;
    background-color: transparent;
    color: var( --black );
    border-radius: 0;
    height: fit-content;
    width: 100%;
    padding: 0;
    /* box-shadow: 0px 15px 30px #0000000D; */
    align-items: flex-start;
    z-index: auto;
    flex-direction: column;
    justify-content: center;
}

.specialties.beforeAfter .specImg {
    padding-bottom: 0px;
}

.specImg {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 0;
    padding-bottom: 0;
    margin-bottom: clamp( 32px, 2.917vw, 56px );
}

.specialties.beforeAfter .specImg img {
    width: clamp(200px, 20.729vw, 398px);
    height: clamp(111px, 11.563vw, 222px);
}

.specImg img {
    width: 100%;
    aspect-ratio: 398 / 240;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: var( --card-border-rad );
    box-shadow: 0 40px 50px rgba( 0, 0, 0, 0.03 );
}

.specContent h4, .specContent h4 a,
.specContent .h4, .specContent .h4 a {
    position: relative;
    font-family: var( --body-font );
    font-size: var( --h3-font-size );
    font-weight: var( --h3-font-weight );
    letter-spacing: normal;
    line-height: var( --h3-line-height );
    color: var( --black );
    margin-bottom: 0;
    z-index: 3;
    text-transform: unset;
}

.specContent h4,
.specContent .h4 {
    /* border-bottom: 4px solid rgb(234 233 228 / 100%); */
    padding-bottom: 16px;
    display: block;
    /* margin-bottom: 16px; */
}

.specContent h4 .smaller,
.specContent .h4 .smaller {
    display: block;
    font-size: 65%;
    color: var( --black );
    font-family: var( --body-font );
    font-weight: 500;
}

.specContent {
    position: relative;
    font-size: 16px;
    line-height: 24px;
    text-align: left;
    padding: 0;
    margin-bottom: 32px;
    z-index: 5;
    color: var( --black );
    background-color: transparent;
    width: 100%;
}

.specialLink {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-family: var( --body-font );
    background-color: transparent;
    margin: 0;
    color: var( --black );
    text-transform: uppercase;
    font-weight: var( --btn-font-weight );
    font-size: 16px;
    width: auto;
    letter-spacing: var( --btn-letter-spc );
    padding: 0;
    z-index: 2;
}

a.specialLink::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url( /wp-content/uploads/2026/06/arrow.svg ) center / contain no-repeat;
    margin-left: 0;
    opacity: 1;
    transition: all .5s ease;
}

.specBox:hover a.specialLink::after,
a.specialLink:hover::after {
    margin-left: 5px;
    opacity: 1;
}

a.specialLink:hover {
    color: var( --black );
    text-decoration: none;
}

.specBox .overCon {
    position: absolute;
    color: var( --white );
    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: var( --black );
    font-size: 16px;
}

.spBtn .btn.btn-orange {
    margin: 0;
    /* border-radius: 50px; */
}

@media ( max-width: 1024px ) {
    .specialties .row.flex {
        flex-direction: column;
        gap: 80px;
        align-items: center;
        height: fit-content;
    }

    .specialties.beforeAfter .specImg img {
        width: 100%;
        height: auto;
    }

    .specialties.beforeAfter .specBox:hover {
        margin-bottom: 0px;
    }

    .specialties .specBox {
        width: 100%;
        max-width: 398px;
    }

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

    .specContent {
        clear: both;
    }

}

@media ( max-width: 768px ) {

}

@media ( max-width: 567px ) {
    .specialties .container {
        margin-bottom: 0
    }

    .specContent .specialLink {
        font-size: 16px;
    }

    .specialties .heading h2::after {
        margin: 18px auto;
    }

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

    .specImg img {
        border-radius: 30px;
        box-shadow: 0 20px 30px rgba( 0, 0, 0, 0.03 );
    }

    .specContent p {
        font-size: 14px;
    }
}