html,
body {
    overflow-x: hidden;
    max-width: 100%;
    color: #444444;
    /* Premium charcoal gray for body text readability */
    font-family: 'Open Sans', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: 'Roboto', sans-serif;
    color: #1B2C51;
    /* Standardize headings to match the --dark navy theme color */
}

p {
    color: #444444;
}

.footer p,
.footer span,
.footer div,
.footer a.border-bottom {
    color: #ffffff !important;
}

.gallery-btn {
    transition: all 0.3s ease;
}

.gallery-btn:hover:not(.active) {
    background-color: rgba(4, 99, 250, 0.1);
    color: #0463FA;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(4, 99, 250, 0.2);
}

.gallery-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(4, 99, 250, 0.3);
}

/*** Navbar ***/
.site-logo img {
    max-width: 45px;
    width: 100%;
    max-height: 65px;
    object-fit: contain;
}

/*** Home Banner ***/
.home-banner .owl-carousel .owl-item img {
    height: 92vh;
    object-fit: cover;
    object-position: center center;
}

.home-banner .header-carousel .owl-carousel-text {
    flex-direction: column;
    color: #fff;
    max-width: 100%;
    z-index: 2;
}

.home-banner .owl-carousel-item.position-relative::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(to right, rgba(27, 44, 81, 0.9) 0%, rgba(27, 44, 81, 0.55) 50%, rgba(27, 44, 81, 0) 100%) !important;
    z-index: 1;
}

/*** About ***/
.text-bg-image {
    position: absolute;
    max-width: 350px;
    max-height: 350px;
    object-fit: contain;
    top: -20px;
    right: 0;
    z-index: -1;
    opacity: 0.1;
}

/*** Service ***/
.service-hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease-in-out;
}

.service-hover-image .fa {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 170px;
}

.service-item:hover .service-hover-image {
    opacity: 0.15;
    top: -8px;
}

/*** Appointment ***/
.appointment-area-two {
    padding-bottom: 180px
}

.appointment-item-two {
    background-image: none;
    margin-bottom: 30px;
    -webkit-box-shadow: 0 0 20px 0 #ddd;
    box-shadow: 0 0 20px 0 #ddd;
    padding: 80px 65px;
    position: relative
}

.appointment-item-two .appointment-shape {
    position: absolute;
    bottom: -65px;
    left: -74px;
    width: 310px;
    -webkit-animation: a-six 5s infinite linear;
    animation: a-six 5s infinite linear
}

.appointment-item-two-right {
    background-image: url(../img/2.jpg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
    z-index: 1;
    position: relative
}

.appointment-item-two-right .appointment-item-content {
    background-color: #e7e7e7;
    padding: 95px 30px 100px;
    margin: 0 40px;
    border-radius: 10px
}

.appointment-item-two-right .appointment-item-content h2 {
    color: #0046c0;
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 30px
}

.appointment-item-two-right .appointment-item-content .content-one {
    display: inline-block
}

.appointment-item-two-right .appointment-item-content .content-one ul {
    margin: 0;
    padding: 0
}

.appointment-item-two-right .appointment-item-content .content-one ul li {
    list-style-type: none;
    display: block;
    position: relative;
    color: #4a6f8a;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 10px
}

.appointment-item-two-right .appointment-item-content .content-one ul li:last-child {
    margin-bottom: 0
}

.appointment-item-two-right .appointment-item-content .content-one ul li:before {
    position: absolute;
    content: '';
    width: 25px;
    height: 1px;
    top: 10px;
    left: 95px;
    background-color: #b7b2b2
}

.appointment-item-two-right .appointment-item-content .content-two {
    display: inline-block;
    margin-left: 70px
}

.appointment-item-two-right .appointment-item-content .content-two ul {
    margin: 0;
    padding: 0
}

.appointment-item-two-right .appointment-item-content .content-two ul li {
    list-style-type: none;
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #4a6f8a;
    margin-bottom: 10px
}

.appointment-item-two-right .appointment-item-content .content-two ul li:last-child {
    margin-bottom: 0
}

.appointment-wrap-two {
    margin-top: -210px;
}

.appointment-area {
    background-image: url(../img/home-two/6.jpg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding-top: 200px
}

.appointment-item {
    max-width: 770px;
    margin-left: auto;
    margin-right: auto;
    background-color: #fff;
    padding: 80px 100px;
    border-radius: 10px;
    background-image: url(../img/home-two/5.jpg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat
}

.appointment-item h2 {
    color: #0046c0;
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 15px
}

.appointment-item span {
    display: block;
    color: #4a6f8a;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 50px
}

.appointment-item .appointment-form .form-group {
    padding-left: 70px;
    position: relative;
    margin-bottom: 60px
}

.appointment-item .appointment-form .form-group i {
    display: inline-block;
    color: #0046c0;
    position: absolute;
    top: 11px;
    left: 0;
    font-size: 50px
}

.appointment-item .appointment-form .form-group label {
    margin-bottom: 10px;
    color: #4a6f8a;
    font-size: 15px;
    font-weight: 500
}

.appointment-item .appointment-form .form-group .form-control {
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid #0046c09e;
    font-size: 15px;
    padding-left: 0;
    padding-bottom: 8px;
    height: 40px;
    background-color: transparent
}

.appointment-item .appointment-form .form-group .form-control:focus {
    -webkit-box-shadow: none;
    box-shadow: none;
    border-bottom: 1px solid #0046c09e
}

.appointment-item .appointment-form .form-group ::-webkit-input-placeholder {
    color: #4a6f8a
}

.appointment-item .appointment-form .form-group :-ms-input-placeholder {
    color: #4a6f8a
}

.appointment-item .appointment-form .form-group ::-ms-input-placeholder {
    color: #4a6f8a
}

.appointment-item .appointment-form .form-group ::placeholder {
    color: #4a6f8a
}

.appointment-item .appointment-form .appointment-btn {
    color: #fff;
    background-color: #0046c0;
    font-weight: 500;
    font-size: 15px;
    border-radius: 5px;
    padding: 18px 45px;
    -webkit-transition: .5s all ease;
    transition: .5s all ease
}

.appointment-item .appointment-form .appointment-btn:hover {
    color: #fff;
    background-color: #111
}

.appointment-header.page-header {
    background-image: url(../img/1.jpg);
    height: 440px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    text-align: center;
    position: relative;
}

.appointment-header::before {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: .5;
    background-color: #0046c0;
}

.appointment-header.page-header .container {
    position: relative;
    z-index: 1;
    text-align: left;
}

.fa-user-doctor::before {
    content: "\f0f0";
}

/*** Our Expertise ***/
.expertise-item {
    text-align: center
}

.expertise-item a {
    display: block
}

.expertise-item .expertise-inner {
    background-color: #0046c0;
    padding: 42px 25px 35px;
    border-radius: 10px;
    margin-bottom: 30px
}

.expertise-item .expertise-inner:hover i {
    -webkit-box-shadow: none;
    box-shadow: none
}

.expertise-item .expertise-inner i {
    display: block;
    width: 70px;
    height: 70px;
    line-height: 70px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    color: #0046c0;
    font-size: 30px;
    margin-bottom: 35px;
    -webkit-box-shadow: 0 0 0 7px #ffffffa6;
    box-shadow: 0 0 0 7px #ffffffa6;
    background-color: #fff;
    -webkit-transition: .5s all ease;
    transition: .5s all ease;
    position: relative;
    top: 8px
}

.expertise-item .expertise-inner h3 {
    color: #fff;
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 14px
}

.expertise-item .expertise-inner p {
    margin-bottom: 0;
    color: #fff
}

.expertise-item .expertise-right {
    padding-left: 80px;
    position: relative
}

.expertise-item .expertise-right:before {
    position: absolute;
    content: '';
    top: -10px;
    left: 70px;
    width: 430px;
    height: 380px;
    z-index: -1;
    border-radius: 10px;
    -webkit-animation: a-one 5s infinite linear;
    animation: a-one 5s infinite linear;
    background-color: #0046c0
}

.expertise-item .expertise-right:after {
    position: absolute;
    content: '';
    bottom: -10px;
    right: -10px;
    width: 430px;
    height: 380px;
    z-index: -1;
    border-radius: 10px;
    -webkit-animation: a-two 5s infinite linear;
    animation: a-two 5s infinite linear;
    background-color: #0046c0
}

.expertise-item .expertise-right img.animation-seven {
    width: 100%;
    z-index: 1;
}

/*** Our Speciality ***/
.section-title-two {
    max-width: 430px;
    margin-left: 0;
    margin-bottom: 40px;
    margin-top: -5px
}

.section-title-two span {
    display: inline-block;
    color: #0046c0;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px
}

.section-title-two h2 {
    font-size: 38px;
    font-weight: 700;
    color: #232323
}

.speciality-area .section-title-two {
    padding-top: 50px;
    padding-left: 15px
}

.speciality-item .speciality-inner {
    border-radius: 10px;
    -webkit-box-shadow: 0 0 20px 0 #dddddda6;
    box-shadow: 0 0 20px 0 #dddddda6;
    padding: 35px;
    margin-bottom: 30px
}

.speciality-item .speciality-inner:hover i {
    color: #fff;
    background-color: #6096fd
}

.speciality-item .speciality-inner i {
    display: block;
    color: #6096fd;
    background-color: #e9eef5;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    font-size: 28px;
    margin-bottom: 18px;
    -webkit-transition: .5s all ease;
    transition: .5s all ease
}

.speciality-item .speciality-inner h3 {
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 12px
}

.speciality-item .speciality-inner p {
    margin-bottom: 0
}

.speciality-right {
    background-image: url(../img/self_3.jpg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 10px 0 0 10px;
    position: relative;
    width: 100%;
    height: 100%
}

.speciality-right img {
    display: none
}

.speciality-right .speciality-emergency {
    position: absolute;
    bottom: 20px;
    left: -70px;
    background-color: #0046c0;
    padding: 30px 295px 25px 40px;
    border-radius: 10px
}

.speciality-right .speciality-emergency .speciality-icon {
    width: 45px;
    height: 45px;
    background-color: #fff;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    display: inline-block;
    position: relative
}

.speciality-right .speciality-emergency .speciality-icon i {
    display: inline-block;
    line-height: 45px;
    color: #0046c0;
    text-align: center;
    font-size: 20px;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    position: absolute;
    top: 0;
    left: 12px
}

.speciality-right .speciality-emergency h3 {
    font-weight: 500;
    color: #fff;
    font-size: 24px;
    margin-bottom: 8px;
    position: absolute;
    top: 23px;
    right: 70px
}

.speciality-right .speciality-emergency p {
    margin-bottom: 0;
    color: #fff;
    position: absolute;
    right: 142px;
    top: 56px
}

.speciality-left {
    padding-left: 55px;
    padding-right: 120px
}

/*** Terms & Conditions ***/
.privacy-item {
    margin-bottom: 50px;
}

.privacy-item h2 {
    font-size: 26px;
    margin-bottom: 15px;
    font-weight: 600;
}

.privacy-item ul {
    margin: 0;
    padding: 0;
}

.privacy-item ul li {
    list-style-type: none;
    display: block;
    margin-bottom: 18px;
}

.privacy-item ul li i {
    display: inline-block;
    font-size: 20px;
    position: relative;
    bottom: -2px;
}

/*** Doctor Details ***/
.d-table {
    width: 100%;
    height: 100%;
}

.d-table {
    display: table !important;
}

.page-title-three .d-table-cell {
    vertical-align: bottom;
}

.d-table-cell {
    display: table-cell !important;
}

.page-title-area {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 400px;
    text-align: center;
    position: relative
}

.page-title-area:before {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: .5;
    background-color: #0046c0
}

.page-title-three {
    background-image: url(../img/doctor-details-bg.jpg);
    height: 460px
}

.page-title-three .d-table-cell {
    vertical-align: bottom
}

.page-title-item-two {
    position: relative;
    text-align: left;
    max-width: 500px;
    margin-left: auto
}

.page-title-item-two h2 {
    font-weight: 700;
    font-size: 48px;
    color: #fff;
    margin-bottom: 14px
}

.page-title-item-two h3 {
    font-weight: 600;
    font-size: 32px;
    color: #fefefe;
    margin-bottom: 15px
}

.page-title-item-two p {
    margin-bottom: 0;
    font-size: 20px;
    color: #fefefe;
    padding-bottom: 55px
}

.doctor-details-left {
    -webkit-box-shadow: 0 0 10px 0 #ddd;
    box-shadow: 0 0 10px 0 #ddd;
    border-radius: 10px;
    margin-top: -225px;
    position: relative
}

.doctor-details-item {
    margin-bottom: 30px
}

.doctor-details-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 60px
}

.doctor-details-item .doctor-details-contact {
    padding-left: 65px;
    margin-bottom: 50px
}

.doctor-details-item .doctor-details-contact h3 {
    font-weight: 600;
    font-size: 22px;
    color: #4a6f8a;
    margin-bottom: 30px
}

.doctor-details-item .doctor-details-contact ul {
    margin: 0;
    padding: 0
}

.doctor-details-item .doctor-details-contact ul li {
    list-style-type: none;
    display: block;
    font-weight: 500;
    font-size: 18px;
    color: #858585;
    margin-bottom: 25px
}

.doctor-details-item .doctor-details-contact ul li:last-child {
    margin-bottom: 0
}

.doctor-details-item .doctor-details-contact ul li i {
    display: inline-block;
    color: #0046c0;
    margin-right: 8px;
    font-size: 23px;
    position: relative;
    top: 2px
}

.doctor-details-item .doctor-details-work {
    padding-left: 65px;
    padding-bottom: 60px
}

.doctor-details-item .doctor-details-work h3 {
    font-weight: 600;
    font-size: 22px;
    color: #4a6f8a;
    margin-bottom: 30px
}

.doctor-details-item .doctor-details-work .appointment-item-two-right {
    background-image: none;
    padding-top: 0;
    padding-bottom: 0
}

.doctor-details-item .doctor-details-work .appointment-item-two-right .appointment-item-content {
    padding: 0;
    background-color: transparent;
    margin: 0
}

.doctor-details-item .doctor-details-biography {
    padding-left: 63px;
    padding-top: 70px
}

.doctor-details-item .doctor-details-biography h3 {
    font-weight: 600;
    font-size: 24px;
    color: #2f60bd;
    margin-bottom: 25px
}

.doctor-details-item .doctor-details-biography p {
    margin-bottom: 0
}

.doctor-details-item .doctor-details-biography ul {
    margin: 0;
    padding: 0
}

.doctor-details-item .doctor-details-biography ul li {
    list-style-type: none;
    display: block;
    margin-bottom: 15px
}

.doctor-details-item .doctor-details-biography ul li:last-child {
    margin-bottom: 0
}

.appointment-area-three {
    padding-bottom: 210px
}

.appointment-area-three .appointment-item {
    max-width: 565px;
    margin-left: auto;
    margin-right: 80px;
    margin-top: 50px
}

.appointment-area-three .appointment-item .appointment-shape {
    bottom: 0;
    top: -95px;
    left: -74px;
    width: 250px
}

.appointment-area-three .speciality-right-three {
    background-image: url(../img/appointment-right-bg.jpg);
}

.speciality-right-two {
    position: relative;
}

.speciality-right-two::before {
    position: absolute;
    content: '';
    top: -25px;
    right: 0;
    width: 405px;
    height: 300px;
    z-index: -1;
    background-color: #0046c0;
}

/*** Responsive ***/

@media only screen and (max-width:767px) {
    @-webkit-keyframes a-one {
        50% {
            -webkit-transform: translate(-10px, -10px);
            transform: translate(-10px, -10px)
        }
    }

    @keyframes a-one {
        50% {
            -webkit-transform: translate(-10px, -10px);
            transform: translate(-10px, -10px)
        }
    }

    @-webkit-keyframes a-two {
        50% {
            -webkit-transform: translate(10px, 10px);
            transform: translate(10px, 10px)
        }
    }

    @keyframes a-two {
        50% {
            -webkit-transform: translate(10px, 10px);
            transform: translate(10px, 10px)
        }
    }

    .section-title {
        margin-bottom: 30px
    }

    .section-title h2 {
        font-size: 22px;
        padding-bottom: 12px
    }

    .section-title h2:before {
        width: 50px;
        height: 2px
    }

    .section-title-two {
        margin-bottom: 30px;
        max-width: 100%
    }

    .section-title-two span {
        font-size: 13px
    }

    .section-title-two h2 {
        font-size: 22px
    }

    .expertise-item .expertise-inner {
        padding-top: 35px;
        padding-bottom: 30px
    }

    .expertise-item .expertise-inner i {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 26px;
        margin-bottom: 22px;
        -webkit-box-shadow: 0 0 0 5px #ffffffa6;
        box-shadow: 0 0 0 5px #ffffffa6
    }

    .expertise-item .expertise-inner h3 {
        font-size: 18px;
        margin-bottom: 10px
    }

    .expertise-item .expertise-right {
        padding-left: 0;
        margin-bottom: 30px;
    }

    .expertise-item .expertise-right:before {
        display: none;
    }

    .expertise-item .expertise-right:after {
        display: none;
    }

    .expertise-item .expertise-right img {
        width: 100%;
        z-index: 1;
    }

    .appointment-area-two {
        padding-bottom: 160px
    }

    .appointment-item-two {
        padding: 30px 15px 40px
    }

    .appointment-item-two-right {
        padding-top: 30px;
        padding-bottom: 30px
    }

    .appointment-item-two-right .appointment-item-content {
        padding: 20px 15px 30px;
        margin: 0 10px
    }

    .appointment-item-two-right .appointment-item-content h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .appointment-item-two-right .appointment-item-content .content-one ul li {
        font-size: 13px;
    }

    .appointment-item-two-right .appointment-item-content .content-one ul li:before {
        width: 20px;
        left: 84px;
    }

    .appointment-item-two-right .appointment-item-content .content-two {
        margin-left: 30px;
    }

    .appointment-item-two-right .appointment-item-content .content-two ul li {
        font-size: 13px;
    }

    .appointment-wrap-two {
        margin-top: -160px;
    }

    .appointment-area-two {
        padding-top: 60px
    }

    .appointment-item-two-right .appointment-item-content .content-one ul li:before {
        display: none
    }

    .appointment-item-two-right .appointment-item-content .content-two {
        margin-left: 10px
    }

    .appointment-wrap-two {
        margin: 0
    }

    .speciality-area .section-title-two {
        padding-top: 0;
        padding-left: 15px
    }

    .speciality-item .speciality-inner {
        padding-top: 25px;
        padding-left: 25px;
        padding-bottom: 25px;
        margin-bottom: 20px
    }

    .speciality-item .speciality-inner i {
        margin-bottom: 15px
    }

    .speciality-item .speciality-inner h3 {
        font-size: 18px;
        margin-bottom: 8px
    }

    .speciality-right {
        height: auto;
        background-image: unset
    }

    .speciality-right:before {
        display: none
    }

    .speciality-right img {
        display: inline-block;
        max-width: 100%;
    }

    .speciality-right .speciality-emergency {
        left: 15px;
        padding: 25px 210px 20px 30px
    }

    .speciality-right .speciality-emergency .speciality-icon {
        width: 40px;
        height: 40px;
        line-height: 40px
    }

    .speciality-right .speciality-emergency .speciality-icon i {
        font-size: 18px
    }

    .speciality-right .speciality-emergency h3 {
        font-size: 18px;
        right: 45px
    }

    .speciality-right .speciality-emergency p {
        top: 52px;
        font-size: 12px;
        right: 95px
    }

    .speciality-left {
        padding-left: 0;
        padding-right: 0
    }

    .speciality-right-two:before {
        top: -2px
    }

    .privacy-item h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .privacy-item ul li {
        margin-bottom: 15px;
    }

    .page-title-area {
        height: 280px
    }

    .page-title-item-two {
        text-align: center;
        max-width: 100%;
    }

    .page-title-item-two h2 {
        font-size: 30px;
        margin-bottom: 10px;
    }

    .page-title-item-two h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .page-title-item-two p {
        font-size: 16px;
    }

    .page-title-three {
        text-align: center
    }

    .doctor-details-left {
        margin-top: 50px
    }

    .doctor-details-item img {
        margin-bottom: 30px
    }

    .doctor-details-item .doctor-details-contact {
        padding-left: 15px;
        margin-bottom: 30px
    }

    .doctor-details-item .doctor-details-contact h3 {
        font-size: 20px;
        margin-bottom: 25px
    }

    .doctor-details-item .doctor-details-contact ul li {
        font-size: 14px;
        margin-bottom: 15px
    }

    .doctor-details-item .doctor-details-contact ul li i {
        font-size: 18px
    }

    .doctor-details-item .doctor-details-work {
        padding-left: 15px;
        padding-bottom: 35px
    }

    .doctor-details-item .doctor-details-work h3 {
        font-size: 20px;
        margin-bottom: 25px
    }

    .doctor-details-item .doctor-details-biography {
        padding-left: 0;
        padding-top: 25px
    }

    .doctor-details-item .doctor-details-biography h3 {
        font-size: 20px;
        margin-bottom: 15px
    }

    .doctor-details-item .doctor-details-biography ul li {
        margin-bottom: 10px
    }

    .appointment-area-three {
        padding-bottom: 160px
    }

    .appointment-area-three .appointment-item {
        margin-right: 0;
        margin-top: 0;
        max-width: 100%
    }

    .appointment-area-three .appointment-item .appointment-shape {
        bottom: 0;
        top: -95px;
        left: -74px;
        width: 250px
    }

    .appointment-area-three .speciality-right-three {
        background-image: unset;
        height: auto
    }
}

@media only screen and (min-width:768px) and (max-width:991px) {
    @-webkit-keyframes a-one {
        50% {
            -webkit-transform: translate(-10px, 10px);
            transform: translate(-10px, 10px)
        }
    }

    @keyframes a-one {
        50% {
            -webkit-transform: translate(-10px, 10px);
            transform: translate(-10px, 10px)
        }
    }

    @-webkit-keyframes a-two {
        50% {
            -webkit-transform: translate(10px, 10px);
            transform: translate(10px, 10px)
        }
    }

    @keyframes a-two {
        50% {
            -webkit-transform: translate(10px, 10px);
            transform: translate(10px, 10px)
        }
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 26px;
        padding-bottom: 12px;
    }

    .section-title h2:before {
        width: 70px;
        height: 4px;
    }

    .section-title-two {
        max-width: 100%
    }

    .section-title-two span {
        font-size: 15px
    }

    .section-title-two h2 {
        font-size: 26px
    }

    .expertise-item .expertise-inner {
        padding-top: 36px;
        padding-bottom: 26px
    }

    .expertise-item .expertise-inner i {
        width: 65px;
        height: 65px;
        line-height: 65px;
        font-size: 28px;
        margin-bottom: 25px;
    }

    .expertise-item .expertise-inner h3 {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .expertise-item .expertise-inner p {
        margin-bottom: 0;
        color: #fff;
        padding-right: 25px;
        padding-left: 25px;
    }

    .expertise-item .expertise-right {
        padding-left: 0;
        margin-bottom: 40px;
    }

    .expertise-item .expertise-right:before {
        top: -15px;
        left: -10px;
    }

    .appointment-area-two {
        padding-bottom: 180px;
    }

    .appointment-item-two-right .appointment-item-content {
        padding: 35px 40px;
    }

    .speciality-area .section-title-two {
        padding-top: 0;
        padding-left: 15px
    }

    .speciality-item .speciality-inner {
        padding-top: 25px;
        padding-left: 25px;
        padding-bottom: 25px
    }

    .speciality-item .speciality-inner i {
        margin-bottom: 15px
    }

    .speciality-item .speciality-inner h3 {
        font-size: 20px;
        margin-bottom: 8px
    }

    .speciality-right {
        height: auto;
        background-image: unset
    }

    .speciality-right img {
        display: inline-block
    }

    .speciality-right .speciality-emergency {
        left: 15px;
        padding: 30px 295px 20px 40px
    }

    .speciality-right .speciality-emergency h3 {
        font-size: 22px;
        right: 80px
    }

    .speciality-right .speciality-emergency p {
        margin-bottom: 0;
        color: #fff;
        position: absolute;
        right: 142px;
        top: 56px
    }

    .speciality-left {
        padding-left: 0;
        padding-right: 0
    }

    .speciality-right-two:before {
        display: none
    }

    .speciality-right-two:before {
        display: none
    }

    .page-title-item-two {
        text-align: center;
        max-width: 100%;
    }

    .page-title-item-two h2 {
        font-size: 38px;
        margin-bottom: 8px;
    }

    .page-title-item-two h3 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .page-title-item-two p {
        font-size: 16px;
    }

    .doctor-details-left {
        margin-top: 70px
    }

    .doctor-details-item img {
        margin-bottom: 40px
    }

    .doctor-details-item .doctor-details-contact {
        padding-left: 45px;
        margin-bottom: 35px
    }

    .doctor-details-item .doctor-details-contact h3 {
        margin-bottom: 24px
    }

    .doctor-details-item .doctor-details-contact ul li {
        font-size: 15px;
        margin-bottom: 18px
    }

    .doctor-details-item .doctor-details-contact ul li i {
        font-size: 18px
    }

    .doctor-details-item .doctor-details-work {
        padding-left: 50px;
        padding-bottom: 50px
    }

    .doctor-details-item .doctor-details-work h3 {
        margin-bottom: 24px
    }

    .doctor-details-item .doctor-details-biography {
        padding-left: 0;
        padding-top: 30px
    }

    .doctor-details-item .doctor-details-biography h3 {
        font-size: 22px;
        margin-bottom: 15px
    }

    .appointment-area-three {
        padding-bottom: 180px
    }

    .appointment-area-three .appointment-item {
        max-width: 100%;
        margin-right: 0;
        margin-top: 0
    }

    .appointment-area-three .appointment-item .appointment-shape {
        bottom: 0;
        top: -95px;
        left: -74px;
        width: 250px
    }

    .appointment-area-three .speciality-right-three {
        background-image: unset;
        height: auto
    }

    .appointment-item {
        padding: 50px 60px;
    }
}

@media only screen and (min-width:992px) and (max-width:1199px) {
    .expertise-item .expertise-right:before {
        width: 395px;
        height: 355px;
    }

    .expertise-item .expertise-right:after {
        width: 395px;
        height: 355px;
    }

    .expertise-item .expertise-right img {
        width: 100%;
        z-index: 1;
    }

    .appointment-item-two-right .appointment-item-content {
        padding: 95px 20px 100px;
        margin: 0 20px;
    }

    .speciality-left {
        padding-left: 30px;
        padding-right: 65px
    }

    .speciality-item .speciality-inner {
        padding: 15px
    }

    .speciality-item .speciality-inner h3 {
        font-size: 20px
    }

    .doctor-details-item .doctor-details-contact ul li {
        font-size: 16px
    }

    .appointment-area-three {
        padding-bottom: 180px
    }

    .appointment-area-three .appointment-item {
        padding: 80px 15px
    }
}

@media only screen and (min-width:1800px) {
    .speciality-left {
        padding-left: 0;
        max-width: 810px;
        margin-left: auto
    }

    .appointment-area-three .appointment-item {
        max-width: 710px
    }
}

@media only screen and (min-width:2700px) {
    .speciality-left {
        max-width: 875px
    }

    .appointment-area-three .appointment-item {
        max-width: 760px
    }
}

/* Reusable Components */
custom-header,
custom-footer {
    display: block;
}

custom-header.sticky-top {
    position: sticky;
    top: -100px;
    z-index: 1020;
    transition: .5s;
}

/* Floating Contact Buttons (Site-wide) */
.floating-contact-wrap {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-contact-wrap .floating-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    font-size: 24px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.floating-contact-wrap .float-call {
    background-color: #0463FA;
    /* Primary Clinic Blue */
}

.floating-contact-wrap .float-whatsapp {
    background-color: #25D366;
    /* WhatsApp Green */
    animation: pulse-whatsapp 2s infinite;
}

.floating-contact-wrap .floating-btn:hover {
    transform: scale(1.1);
    color: #ffffff;
}

.floating-contact-wrap .floating-btn:active {
    transform: scale(0.9);
}

.back-to-top {
    bottom: 150px !important;
    right: 20px !important;
    width: 55px !important;
    height: 55px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

@media (max-width: 991.98px) {
    .floating-contact-wrap {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }

    .floating-contact-wrap .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .back-to-top {
        bottom: 120px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
    }
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Logo Text and Image */
@media (max-width: 575.98px) {
    .site-logo {
        font-size: 14px !important;
    }

    .site-logo img {
        max-width: 30px !important;
        max-height: 45px !important;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .site-logo {
        font-size: 18px !important;
    }

    .site-logo img {
        max-width: 36px !important;
        max-height: 52px !important;
    }
}

@media (min-width: 992px) {
    .site-logo {
        font-size: 24px !important;
    }
}

.text-logo {
    color: #0046c0 !important;
}

.service-item p {
    font-weight: 500 !important;
    color: #444 !important;
}

/* Responsive Footer and Contact Email Links */
.footer-email-link {
    font-size: 14px;
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-email-link:hover {
    color: #0463FA !important;
}

@media (max-width: 480px) {
    .footer-email-link {
        font-size: 13px !important;
    }
}

@media (max-width: 375px) {
    .footer-email-link {
        font-size: 11.5px !important;
    }
}

@media (max-width: 320px) {
    .footer-email-link {
        font-size: 10px !important;
    }
}

.contact-card-email a {
    font-size: 20px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.contact-card-email a:hover {
    color: #0463FA !important;
}

@media (max-width: 991.98px) {
    .contact-card-email a {
        font-size: 18px !important;
    }
}

@media (max-width: 575.98px) {
    .contact-card-email a {
        font-size: 15px !important;
    }
}

@media (max-width: 375px) {
    .contact-card-email a {
        font-size: 13px !important;
    }
}

@media (max-width: 320px) {
    .contact-card-email a {
        font-size: 12px !important;
    }
}

/* Mobile Hero Banner - Overlaid layout: Image centered, text positioned in the top-left */
@media (max-width: 767.98px) {
    .home-banner .owl-carousel-item {
        display: block !important;
        position: relative !important;
        height: 60vh !important;
        min-height: 380px !important;
    }

    .home-banner .owl-carousel-item img {
        position: absolute !important;
        top: 0;
        left: 0;
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        /* Center the background images on mobile */
    }

    .home-banner .header-carousel .owl-carousel-text {
        position: absolute !important;
        top: 12% !important;
        /* Position in the top-left region */
        bottom: auto !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        padding: 20px 15px !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        /* Align container to the left side */
        background: transparent !important;
        /* No background color overlay */
        flex-direction: row !important;
        text-shadow: none !important;
        z-index: 2 !important;
    }

    .home-banner .header-carousel .owl-carousel-text .container {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
    }

    .home-banner .header-carousel .owl-carousel-text .row {
        margin: 0 !important;
        width: 100% !important;
    }

    /* Keep text content restricted to the left 58% of the viewport (safe zone: wall & plant area) */
    .home-banner .header-carousel .owl-carousel-text .col-md-8 {
        max-width: 58% !important;
        padding: 0 !important;
        text-align: left !important;
    }

    .home-banner .header-carousel .owl-carousel-text h1 {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        /* Premium white text */
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5) !important;
        /* Soft dark text shadow */
        margin-bottom: 6px !important;
        line-height: 1.3 !important;
    }

    .home-banner .header-carousel .owl-carousel-text p {
        font-size: 11px !important;
        color: #ffffff !important;
        /* Premium white text */
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5) !important;
        /* Soft dark text shadow */
        margin-bottom: 0 !important;
        line-height: 1.4 !important;
    }

    /* Navigation Adjustments - dots centered at the bottom of the slide */
    .home-banner .header-carousel .owl-nav {
        display: none !important;
    }

    .home-banner .header-carousel .owl-dots {
        bottom: 15px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

    /* Fix carousel dots visibility on mobile against white background details */
    .home-banner .header-carousel .owl-dot {
        border-color: #0463FA !important;
        /* Clinic primary blue border for contrast */
    }

    .home-banner .header-carousel .owl-dot::after {
        background: #0463FA !important;
        /* Clinic primary blue dot for contrast */
    }

    .home-banner .header-carousel .owl-dot.active {
        background: #0463FA !important;
        /* Solid blue active dot */
        border-color: #0463FA !important;
    }

    .home-banner .header-carousel .owl-dot.active::after {
        background: #ffffff !important;
        /* White inner dot for active dot */
    }
}

/* Premium Pill Badges / Sub-Headers styling across the site */
p.d-inline-block.border.rounded-pill.py-1.px-4:not(.text-light) {
    border-color: #0463FA !important;
    /* Theme primary blue */
    color: #0463FA !important;
    /* Match text to primary blue */
    background-color: rgba(4, 99, 250, 0.06) !important;
    /* Subtle blue tint background */
    font-weight: 600 !important;
    letter-spacing: 0.5px;
}

p.d-inline-block.border.rounded-pill.py-1.px-4.text-light {
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    /* Subtle white tint background */
    font-weight: 600 !important;
    letter-spacing: 0.5px;
}

/* Gallery Buttons Outline Fix */
.gallery-btn:not(.active) {
    color: #0463FA !important;
    border-color: #0463FA !important;
}

/* Page Header (Upper Side) Premium Styling */
.page-header {
    background: linear-gradient(rgba(27, 44, 81, 0.8), rgba(4, 99, 250, 0.75)), url(../img/aboutss.png) top center no-repeat !important;
    background-size: cover !important;
    padding: 6.5rem 0 5.5rem 0 !important;
    margin-bottom: 5rem !important;
    position: relative;
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.15);
}

.page-header h1 {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 3.25rem !important;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.35) !important;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem !important;
}

.page-header .breadcrumb {
    background: rgba(255, 255, 255, 0.15) !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-header .breadcrumb-item a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.page-header .breadcrumb-item.active {
    color: #EFF5FF !important;
    /* light accent color */
    opacity: 0.85;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Sidebar Premium Styling */
.sidebar-wrapper {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.sidebar-card h4 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.sidebar-card h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Sidebar Services List Links */
.sidebar-service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-service-list li {
    margin-bottom: 10px;
}

.sidebar-service-list li:last-child {
    margin-bottom: 0;
}

.sidebar-service-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--light);
    color: var(--dark) !important;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.sidebar-service-link i {
    font-size: 14px;
    transition: all 0.3s ease;
}

.sidebar-service-link:hover {
    background: var(--primary);
    color: #ffffff !important;
    padding-left: 25px;
}

.sidebar-service-link:hover i {
    transform: translateX(3px);
}

.sidebar-service-link.active {
    background: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(4, 99, 250, 0.3);
}

/* Sidebar Contact Card */
.sidebar-card.contact-card {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    color: #ffffff !important;
    border: none;
}

.sidebar-card.contact-card h4 {
    color: #ffffff;
}

.sidebar-card.contact-card h4::after {
    background: #ffffff;
}

.sidebar-card.contact-card p {
    color: rgba(255, 255, 255, 0.85) !important;
}

.sidebar-card.contact-card .btn-outline-light:hover {
    color: var(--primary);
    background: #ffffff;
}

/* Gallery Premium Hover & Lightbox Styles */
.gallery-item-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: #000000;
}

.gallery-item-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(4, 99, 250, 0.25);
}

.gallery-item-container img {
    transition: transform 0.5s ease, opacity 0.5s ease;
    display: block;
}

.gallery-item-container:hover img {
    transform: scale(1.08);
    opacity: 0.8;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 44, 81, 0.75);
    /* Deep Navy semi-transparent overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.35s ease;
}

.gallery-item-container:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    transform: scale(0.7);
    transition: all 0.35s ease;
}

.gallery-item-container:hover .gallery-overlay i {
    transform: scale(1);
}

.gallery-overlay-title {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
}

/* Lightbox Modal */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 17, 34, 0.95);
    /* matching theme navy background */
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.gallery-lightbox.show .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: #ffffff;
    font-size: 36px;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: #0463FA;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    outline: none;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #0463FA;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(4, 99, 250, 0.5);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-caption {
    position: absolute;
    bottom: -35px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.5px;
}

@media (max-width: 991px) {
    .lightbox-prev {
        left: -40px;
    }

    .lightbox-next {
        right: -40px;
    }
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 5px;
        background: rgba(0, 0, 0, 0.6);
        width: 40px;
        height: 40px;
    }

    .lightbox-next {
        right: 5px;
        background: rgba(0, 0, 0, 0.6);
        width: 40px;
        height: 40px;
    }

    .lightbox-close {
        top: -45px;
        right: 5px;
    }

    .lightbox-img {
        max-height: 70vh;
    }
}

/* Premium Highlight Accents */
.text-highlight {
    color: var(--primary) !important;
    /* Matches clinic primary blue theme */
}

/* Doctor Details Appointment Form Improvements */
.appointment-item-two .appointment-form .form-group {
    padding-left: 55px;
    margin-bottom: 30px; /* Reduced from 60px for tighter, cleaner layout */
}

.appointment-item-two .appointment-form .form-group i {
    font-size: 32px; /* Smaller, more elegant icon size */
    top: 20px; /* Aligned vertically */
    color: #0463FA; /* Match site primary blue */
}

.appointment-item-two .appointment-form .form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #1B2C51;
    margin-bottom: 5px;
}

.appointment-item-two .appointment-form .form-group span {
    display: inline !important;
    margin-bottom: 0 !important;
}

.appointment-item-two .appointment-form .form-group .form-control {
    height: 42px;
    border-bottom: 1px solid #0463FA;
    font-size: 14px;
    color: #444444;
}

.appointment-item-two .appointment-form .form-group textarea.form-control {
    border: 1px solid #0463FA !important; /* Full border for textarea */
    border-radius: 8px !important;
    padding: 12px 15px !important;
    height: 120px !important;
    background-color: #ffffff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.appointment-item-two .appointment-form .form-group textarea.form-control:focus {
    border-color: #0046c0 !important;
    box-shadow: 0 0 0 3px rgba(4, 99, 250, 0.15);
}

.appointment-item-two .appointment-form .form-group input[type="date"].form-control {
    padding-top: 4px;
    padding-bottom: 4px;
}

.appointment-item-two .appointment-form .appointment-btn {
    background-color: #0463FA;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(4, 99, 250, 0.2);
    transition: all 0.3s ease;
}

.appointment-item-two .appointment-form .appointment-btn:hover {
    background-color: #1B2C51;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(27, 44, 81, 0.3);
}