.testimonial-img-2 img {
    object-position: 12% center !important;
}

#official-image-fit
{


.hero-image img,
.about-us-img-1 img,
.about-us-img-2 img,
.what-we-do-image-1 img,
.what-we-do-image-2 img,
.why-choose-image img,
.expertise-image img,
.program-image img,
.book-appointment-image img,
.faq-image-1 img,
.faq-image-2 img,
.testimonial-img-1 img,
.testimonial-img-2 img,
.testimonial-img-3 img,
.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 12% center;
}




.hero-image img {
    object-position: 12% center;
}

.about-us-img-1 img,
.expertise-image img,
.book-appointment-image img,
.post-featured-image img {
    object-position: center 22%;
}

.about-us-img-2 img,
.faq-image-1 img,
.faq-image-2 img {
    object-position: center 18%;
}

.why-choose-image img {
    object-position: center top;
}

.testimonial-img-1 img,
.testimonial-img-2 img,
.testimonial-img-3 img {
    object-position: center center;
}

.client-image img,
.testimonial-author-iamge img,
.about-author-box .author-image img {
    object-fit: cover;
    object-position: center 18%;
}

}

/* =========================================================
   SERVICE + EXPERTISE + TESTIMONIAL CARD HOVER
   Paste this at the very end of your CSS file
   Existing theme colors and fonts remain unchanged
   ========================================================= */


/* =========================================================
   SHARED CARD TRANSITIONS
   ========================================================= */

.our-services .service-item,
.our-expertise .expertise-box,
.our-testimonial .testimonial-item{
    transition: all .5s ease;
}


/* =========================================================
   REMOVE PERMANENT ACTIVE BACKGROUNDS
   ========================================================= */

.our-services .service-item.active,
.our-testimonial .testimonial-item.active{
    background-color: var(--white-color);
}

.our-services .service-item.active::after,
.our-testimonial .testimonial-item.active::after{
    height: 0;
}


/* =========================================================
   DISABLE OLD PSEUDO-ELEMENT HOVER ANIMATION
   ========================================================= */

.our-services .service-item:hover::after,
.our-expertise .expertise-box:hover::after,
.our-testimonial .testimonial-item:hover::after{
    height: 0;
}


/* =========================================================
   SHARED HOVER BACKGROUND
   ========================================================= */

.our-services .service-item:hover,
.our-expertise .expertise-box:hover,
.our-testimonial .testimonial-item:hover{
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}


/* =========================================================
   SMOOTH TRANSITIONS FOR INNER ELEMENTS
   ========================================================= */

.our-services .service-item .icon-box,
.our-services .service-item .icon-box img,
.our-services .service-item-content h3,
.our-services .service-item-content h3 a,
.our-services .service-item-content p,
.our-services .service-item .readmore-btn,
.our-services .service-item .readmore-btn::after,

.our-expertise .expertise-box-content h3,
.our-expertise .expertise-box-content p,
.our-expertise .expertise-box .readmore-btn,
.our-expertise .expertise-box .readmore-btn::after,

.our-testimonial .testimonial-rating i,
.our-testimonial .testimonial-info p,
.our-testimonial .testimonial-author-content h3,
.our-testimonial .testimonial-author-content p{
    transition: all .5s ease;
}


/* =========================================================
   RESET ACTIVE SERVICE CARD COLORS
   ========================================================= */

.our-services .service-item.active .service-item-content h3,
.our-services .service-item.active .service-item-content h3 a{
    color: var(--primary-color);
}

.our-services .service-item.active .service-item-content p{
    color: var(--text-color);
}

.our-services .service-item.active .readmore-btn{
    color: var(--accent-secondary-color);
}

.our-services .service-item.active .icon-box{
    border-color: rgba(7, 150, 168, 0.42);
}


/* =========================================================
   RESET ACTIVE TESTIMONIAL CARD COLORS
   ========================================================= */

.our-testimonial .testimonial-item.active .testimonial-rating i{
    color: var(--accent-color);
}

.our-testimonial .testimonial-item.active .testimonial-info p{
    color: var(--text-color);
}

.our-testimonial .testimonial-item.active .testimonial-author-content h3{
    color: var(--primary-color);
}

.our-testimonial .testimonial-item.active .testimonial-author-content p{
    color: var(--text-color);
}


/* =========================================================
   SERVICE CARD HOVER TEXT
   ========================================================= */

.our-services .service-item:hover .service-item-content h3,
.our-services .service-item:hover .service-item-content h3 a,
.our-services .service-item:hover .service-item-content p,
.our-services .service-item:hover .readmore-btn{
    color: var(--white-color) !important;
}


/* =========================================================
   EXPERTISE CARD HOVER TEXT
   ========================================================= */

.our-expertise .expertise-box:hover .expertise-box-content h3,
.our-expertise .expertise-box:hover .expertise-box-content p,
.our-expertise .expertise-box:hover .readmore-btn{
    color: var(--white-color) !important;
}


/* =========================================================
   TESTIMONIAL CARD HOVER TEXT
   ========================================================= */

.our-testimonial .testimonial-item:hover .testimonial-info p,
.our-testimonial .testimonial-item:hover .testimonial-author-content h3,
.our-testimonial .testimonial-item:hover .testimonial-author-content p{
    color: var(--white-color) !important;
}


/* =========================================================
   TESTIMONIAL STARS ON HOVER
   ========================================================= */

.our-testimonial .testimonial-item:hover .testimonial-rating i{
    color: var(--accent-secondary-color) !important;
}


/* =========================================================
   SERVICE ICON HOVER
   ========================================================= */

.our-services .service-item:hover .icon-box{
    background-color: var(--white-color);
    border-color: var(--white-color);
}

.our-services .service-item:hover .icon-box img{
    filter: none;
}


/* =========================================================
   READ MORE ARROWS
   ========================================================= */

.our-services .service-item:hover .readmore-btn::after,
.our-expertise .expertise-box:hover .readmore-btn::after{
    filter: brightness(0) invert(1);
}

.service-item.active .icon-box img{
    filter: none;
}





.expertise-image img{
     box-shadow: 0 18px 42px rgba(31, 64, 72, 0.10);
    border: 7px solid var(--white-color);
    border-radius: 30px; 
}

.about-us-img-1{
    box-shadow: 0 18px 42px rgba(31, 64, 72, 0.10);
    border: 5px solid var(--white-color);
    border-radius: 30px;
}



/*
footer
*/
.footer-contact-list ul li a{
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact-list ul li a i{
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    font-size: 14px;
    flex-shrink: 0;
    transition: all .3s ease;
}

.footer-contact-list ul li:hover a i{
    color: var(--accent-secondary-color);
    background: var(--white-color);
    border-color: var(--white-color);
}

.footer-contact-list ul li a span{
    line-height: 1.3;
}.footer-contact-list ul li a{
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact-list ul li a i{
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    font-size: 14px;
    flex-shrink: 0;
    transition: all .3s ease;
}

.footer-contact-list ul li:hover a i{
    color: var(--accent-secondary-color);
    background: var(--white-color);
    border-color: var(--white-color);
}

.footer-contact-list ul li a span{
    line-height: 1.3;
}


.hero-image img{
    width: 90%;
    aspect-ratio: 1 / 1.375;
    object-fit: cover;
	margin-top: 37px;
    /* width: 85%;
    aspect-ratio: 1 / 1.375;
    object-fit: cover;
	margin-top: 77px; */
}

#testimonial_align{
    align-items: center;
}



/* =========================================================
   FAMILY MEDICINE OF POOLER
   PREMIUM CONTACT PAGE UI
   ========================================================= */


/* =========================================================
   1. CONTACT PAGE LAYOUT
   ========================================================= */

.page-contact-us{
    padding: 110px 0 90px;
    /* background:
        radial-gradient(
            circle at 95% 10%,
            rgba(7, 150, 168, 0.08),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #FFFFFF 0%,
            #F7FBFC 100%
        ); */
}

.contact-intro-row{
    margin-bottom: 55px;
}

.page-contact-us .section-title{
    margin-bottom: 0;
}

.page-contact-us .section-title h2{
    max-width: 690px;
    letter-spacing: -0.04em;
}

.contact-intro-text{
    max-width: 660px;
    margin: 20px 0 0;
    font-size: 18px;
    line-height: 1.7;
}

.page-contact-us .row.align-items-center:nth-of-type(2){
    align-items: stretch !important;
}


/* =========================================================
   2. CONTACT RESPONSE NOTE
   ========================================================= */

.contact-response-note{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding-bottom: 8px;
}

.contact-response-icon{
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white-color);
    background: var(--accent-color);
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(7, 150, 168, 0.22);
}

.contact-response-icon i{
    font-size: 20px;
}

.contact-response-note > div{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.contact-response-note span{
    color: var(--text-color);
}

.contact-response-note a{
    font-family: var(--accent-font);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.contact-response-note a:hover{
    color: var(--accent-color);
}


/* =========================================================
   3. CONTACT FORM CARD
   ========================================================= */

.contact-form-card{
    height: 100%;
    margin-right: 15px;
    padding: 42px;
    background: var(--white-color);
    border: 1px solid rgba(7, 150, 168, 0.12);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(35, 43, 48, 0.09);
}

.contact-card-heading{
    margin-bottom: 30px;
}

.contact-card-heading h3{
    margin-bottom: 10px;
    font-size: 28px;
}

.contact-card-heading p{
    margin: 0;
}

.contact-form-card .form-group label{
    display: block;
    margin-bottom: 9px;
    font-family: var(--accent-font);
    font-size: 14px;
    font-weight: 650;
    color: var(--primary-color);
}

.contact-form-card .form-control{
    min-height: 56px;
    padding: 15px 17px;
    color: var(--text-color);
    background: #F8FBFC;
    border: 1px solid #D9E7EA;
    border-radius: 14px;
    box-shadow: none;
    outline: none;
    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.contact-form-card .form-control::placeholder{
    color: var(--text-color);
    opacity: 0.9;
}

.contact-form-card textarea.form-control{
    min-height: 140px;
    resize: vertical;
}

.contact-form-card .form-control:focus{
    background: var(--white-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(7, 150, 168, 0.10);
}

.contact-form-btn{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.contact-form-btn .btn-default{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white-color);
    box-shadow: 0 14px 30px rgba(7, 150, 168, 0.22);
}

.contact-form-btn .btn-default i{
    font-size: 14px;
    transition: transform 0.3s ease;
}

.contact-form-btn .btn-default:hover i{
    transform: translateX(4px);
}

.contact-form-note{
    width: 100%;
    margin: 8px 0 0;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-color);
}

.contact-form-note i{
    margin-right: 5px;
    color: var(--accent-color);
}


/* =========================================================
   4. CONTACT DETAILS PANEL
   ========================================================= */

.contact-details-panel{
    position: relative;
    height: 100%;
    margin-left: 15px;
    padding: 46px;
    color: var(--white-color);
    background:
        radial-gradient(
            circle at 100% 100%,
            rgba(255, 255, 255, 0.07) 0,
            rgba(255, 255, 255, 0.07) 120px,
            transparent 121px
        ),
        linear-gradient(
            145deg,
            #3F1022 0%,
            var(--accent-secondary-color) 55%,
            #54182F 100%
        );
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(75, 21, 40, 0.18);
}

.contact-details-panel::before{
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}


/* =========================================================
   5. CONTACT PANEL HEADER
   ========================================================= */

.contact-details-header{
    position: relative;
    z-index: 1;
    margin-bottom: 32px;
}

.contact-details-label{
    display: inline-block;
    margin-bottom: 10px;
    font-family: var(--accent-font);
    font-size: 15px;
    font-weight: 700;
    /* color: #7EDBE3; */
}

.contact-details-header h2{
    max-width: 540px;
    margin-bottom: 14px;
    font-size: 32px;
    line-height: 1.2;
    color: var(--white-color);
}

.contact-details-header p{
    max-width: 530px;
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
}


/* =========================================================
   6. PRIMARY PHONE ACTION
   ========================================================= */

.contact-primary-action{
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    padding: 24px;
    background: var(--white-color);
    border-radius: 20px;
    box-shadow: 0 16px 36px rgba(26, 4, 13, 0.16);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.contact-primary-action:hover{
    transform: translateY(-4px);
    box-shadow: 0 22px 45px rgba(26, 4, 13, 0.22);
}

.contact-primary-icon{
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white-color);
    background: var(--accent-color);
    border-radius: 16px;
    font-size: 20px;
}

.contact-primary-content{
    flex: 1;
}

.contact-primary-content span{
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.contact-primary-content a{
    display: inline-block;
    margin-bottom: 4px;
    font-family: var(--accent-font);
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.contact-primary-content a:hover{
    color: var(--accent-color);
}

.contact-primary-content p{
    margin: 0;
    font-size: 14px;
    color: var(--text-color);
}

.contact-primary-arrow{
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white-color);
    background: var(--accent-secondary-color);
    border-radius: 50%;
    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
}

.contact-primary-action:hover .contact-primary-arrow{
    background: var(--accent-color);
    transform: translateX(4px);
}


/* =========================================================
   7. CONTACT INFORMATION ROWS
   ========================================================= */

.contact-details-list{
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-detail-row{
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 2px;
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    transition:
        padding-left 0.3s ease,
        background-color 0.3s ease;
}

a.contact-detail-row:hover{
    padding-left: 8px;
}

.contact-detail-icon{
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* color: #8BE0E6; */
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    transition:
        color 0.3s ease,
        background-color 0.3s ease;
}

a.contact-detail-row:hover .contact-detail-icon{
    color: var(--accent-secondary-color);
    background: var(--white-color);
}

.contact-detail-content{
    flex: 1;
}

.contact-detail-content span{
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.62);
}

.contact-detail-content strong{
    display: block;
    margin-bottom: 4px;
    font-family: var(--accent-font);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--white-color);
}

.contact-detail-content small{
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.58);
}

.contact-detail-arrow{
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.54);
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

a.contact-detail-row:hover .contact-detail-arrow{
    color: #fff;
    transform: translateX(3px);
}


/* =========================================================
   8. CONTACT SOCIAL FOOTER
   ========================================================= */

.contact-panel-footer{
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 28px;
}

.contact-social-heading span{
    display: block;
    margin-bottom: 4px;
    font-family: var(--accent-font);
    font-size: 17px;
    font-weight: 600;
    color: var(--white-color);
}

.contact-social-heading small{
    color: rgba(255, 255, 255, 0.58);
}

.contact-panel-socials{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.contact-panel-socials li a{
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.contact-panel-socials li a:hover{
    color: var(--accent-secondary-color);
    background: var(--white-color);
    border-color: var(--white-color);
    transform: translateY(-3px);
}


/* =========================================================
   9. GOOGLE MAP
   ========================================================= */

.google-map{
    padding-top: 80px;
}

.google-map-iframe,
.google-map-iframe iframe{
    border-radius: 28px;
}


/* =========================================================
   10. TABLET RESPONSIVE
   ========================================================= */

@media only screen and (max-width: 991px){

    .page-contact-us{
        padding: 60px 0;
    }

    .contact-intro-row{
        margin-bottom: 35px;
    }

    .contact-response-note{
        justify-content: flex-start;
        margin-top: 22px;
    }

    .contact-form-card,
    .contact-details-panel{
        height: auto;
        margin-right: 0;
        margin-left: 0;
    }

    .contact-form-card{
        margin-bottom: 30px;
    }

    .contact-details-panel{
        padding: 36px;
    }
}


/* =========================================================
   11. MOBILE RESPONSIVE
   ========================================================= */

@media only screen and (max-width: 767px){

    .page-contact-us{
        padding: 50px 0;
    }

    .contact-intro-text{
        font-size: 16px;
    }

    .contact-response-note a{
        font-size: 19px;
    }

    .contact-form-card,
    .contact-details-panel{
        padding: 24px;
        border-radius: 22px;
    }

    .contact-card-heading h3{
        font-size: 24px;
    }

    .contact-details-header h2{
        font-size: 26px;
    }

    .contact-primary-action{
        align-items: flex-start;
        padding: 20px;
    }

    .contact-primary-content a{
        font-size: 22px;
    }

    .contact-primary-arrow{
        display: none;
    }

    .contact-detail-row{
        align-items: flex-start;
    }

    .contact-panel-footer{
        align-items: flex-start;
        flex-direction: column;
    }

    .google-map-iframe,
    .google-map-iframe iframe{
        border-radius: 20px;
    }
}


.page-header.for_contact{
    padding:57px 0;
}

.page-header.for_contact .page-header-box{
    display:none;
}

.main-header.bg-section{
    border-radius: 50px;
}