html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    left: auto;
    bottom: 120px;
    display: flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: 0.3s ease-in-out;
    z-index: 9999;
}

.back-to-top i {
    font-size: 20px;
    line-height: 1;
}

.img {
    height: 30px;
    border-radius: 12px;
}

.img-1 {
    height: 60px;
    filter: brightness(1.2) contrast(1.1);
    background: transparent;
    margin-right: 4px;
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-square:hover,
.btn-sm-square:hover,
.btn-md-square:hover,
.btn-lg-square:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

.btn.btn-primary {
    box-shadow: inset 0 0 0 0 var(--bs-primary);
}

.btn.btn-primary:hover {
    box-shadow: inset 300px 0 0 0 var(--bs-light) !important;
    color: var(--bs-primary) !important;
}

.btn.btn-light {
    box-shadow: inset 0 0 0 0 var(--bs-primary);
}

.btn.btn-light:hover {
    box-shadow: inset 300px 0 0 0 var(--bs-primary);
    color: var(--bs-light) !important;
}

.btn-hover {
    transition: 0.5s;
}

.btn-hover:hover {
    color: var(--bs-secondary) !important;
}

/*** Section Title Start ***/
.section-title {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.section-title .sub-style {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.section-title .sub-style::before {
    content: "";
    width: 100px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-top: 8px;
    margin-left: -100px;
    border: 1px solid var(--bs-primary) !important;
}

.section-title .sub-style::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-bottom: 5px;
    margin-left: -50px;
    border: 1px solid var(--bs-primary) !important;
}

.sub-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.sub-title::before {
    content: "";
    width: 100px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-top: 8px;
    margin-right: -100px;
    border: 1px solid var(--bs-primary) !important;
}

.sub-title::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-bottom: 8px;
    margin-right: -50px;
    border: 1px solid var(--bs-primary) !important;
}

/*** Topbar Start ***/
.fixed-top .container {
    transition: 0.5s;
}

.topbar {
    padding: 2px 10px 2px 20px;
    background: var(--bs-primary) !important;
}

.topbar a,
.topbar a i {
    transition: 0.5s;
}

.topbar a:hover,
.topbar a i:hover {
    color: var(--bs-secondary) !important;
}

@media (max-width: 576px) {
    .topbar {
        display: none;
    }
}

/*** Topbar End ***/

/*** Navbar ***/
.navbar-light .navbar-nav .nav-link {
    font-family: 'Open Sans', sans-serif;
    position: relative;
    margin-right: 25px;
    padding: 35px 0;
    color: var(--bs-dark) !important;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--bs-primary) !important;
}

.navbar-light .navbar-brand img {
    max-height: 50px;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-brand img {
    max-height: 45px;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        border-radius: 10px;
        transition: .5s;
        opacity: 0;
    }
}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light) !important;
    transition: .5s;
    opacity: 1;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-light {
        position: relative;
        background: var(--bs-white);
    }

    .navbar.navbar-expand-lg .navbar-toggler {
        padding: 10px 20px;
        border: 1px solid var(--bs-primary);
        color: var(--bs-primary);
    }

    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #DDDDDD;
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: var(--bs-dark) !important;
    }

    .navbar-light .navbar-brand img {
        max-height: 45px;
    }
}

@media (min-width: 992px) {
    .navbar-light {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        z-index: 999;
    }

    .sticky-top.navbar-light {
        position: fixed;
        background: var(--bs-light) !important;
    }

    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--bs-primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: calc(100% - 2px);
        left: 1px;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }
}

/*** Carousel Hero Header Start ***/
.header-carousel {
    position: relative;
    padding-top: 0;
}

@media (max-width: 991.98px) {
    .header-carousel {
        padding-top: 0;
    }
}

.header-carousel .owl-nav .owl-prev {
    position: absolute;
    width: 70px;
    height: 70px;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--bs-primary);
    color: var(--bs-white);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.header-carousel .owl-nav .owl-next {
    position: absolute;
    width: 70px;
    height: 70px;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--bs-primary);
    color: var(--bs-white);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    box-shadow: inset 150px 0 0 0 var(--bs-light) !important;
    color: var(--bs-primary) !important;
}

@media (max-width: 576px) {

    .header-carousel .owl-nav .owl-prev,
    .header-carousel .owl-nav .owl-next {
        top: 630px;
        transition: 0.5s;
    }

    .header-carousel .header-carousel-item .carousel-caption .carousel-caption-content {
        width: 95% !important;
    }
}

.header-carousel .header-carousel-item,
.header-carousel .header-carousel-item img {
    position: relative;
    width: 100%;
    height: 700px;
    margin-top: 0;
    display: block;
    object-fit: cover;
    transition: 0.5s;
}

@media (max-width: 992px) {

    .header-carousel .header-carousel-item,
    .header-carousel .header-carousel-item img {
        margin-top: 0;
        transition: 0.5s;
    }
}

@media (min-width: 992px) {

    .header-carousel .owl-nav .owl-prev,
    .header-carousel .owl-nav .owl-next {
        margin-top: 50px;
    }
}

.header-carousel .header-carousel-item .carousel-caption {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
}

.header-carousel .header-carousel-item .carousel-caption .carousel-caption-content {
    position: relative;
    width: 75%;
}

/*** Carousel Hero Header End ***/

/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    background: linear-gradient(160deg, rgba(0, 77, 77, 0.92) 0%, rgba(0, 128, 128, 0.85) 40%, rgba(13, 148, 136, 0.88) 70%, rgba(0, 102, 102, 0.95) 100%), url(../img/carousel-4.jpeg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 160px 0 90px 0;
    position: relative;
    overflow: hidden;
}

.bg-breadcrumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 40%, rgba(72, 207, 203, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 75% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.bg-breadcrumb::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23F5FFFA' d='M0,30 C360,60 720,0 1080,30 C1260,45 1380,50 1440,45 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 1;
}

.bg-breadcrumb .container {
    position: relative;
    z-index: 2;
}

/* About Us page variant - warm teal tones */
.bg-breadcrumb-about {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.9) 0%, rgba(0, 102, 102, 0.92) 35%, rgba(0, 77, 77, 0.88) 65%, rgba(20, 184, 166, 0.85) 100%), url(../img/carousel-4.jpeg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bg-breadcrumb-about::before {
    background-image:
        radial-gradient(ellipse at 20% 30%, rgba(72, 207, 203, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 140, 105, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

/* Contact Us page variant - deep teal tones */
.bg-breadcrumb-contact {
    background: linear-gradient(145deg, rgba(0, 102, 102, 0.93) 0%, rgba(0, 128, 128, 0.88) 30%, rgba(13, 148, 136, 0.85) 60%, rgba(0, 77, 77, 0.92) 100%), url(../img/carousel-4.jpeg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bg-breadcrumb-contact::before {
    background-image:
        radial-gradient(circle at 70% 30%, rgba(72, 207, 203, 0.14) 0%, transparent 55%),
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 20%, rgba(20, 184, 166, 0.08) 0%, transparent 60%);
}

.bg-breadcrumb .breadcrumb-item a {
    color: var(--bs-white) !important;
}

/* Fix for Contact Us header visibility */
.bg-breadcrumb-contact .display-3 {
    background: none !important;
    -webkit-text-fill-color: var(--teal-lighter) !important;
    color: var(--teal-lighter) !important;
}

.bg-breadcrumb-contact .breadcrumb-item.active {
    color: var(--teal-lighter) !important;
    font-weight: 600;
}

/* Fix for About Us header visibility */
.bg-breadcrumb-about .display-3 {
    background: none !important;
    -webkit-text-fill-color: var(--teal-lighter) !important;
    color: var(--teal-lighter) !important;
}

.bg-breadcrumb-about .breadcrumb-item.active {
    color: var(--teal-lighter) !important;
    font-weight: 600;
}

/* Fix for FAQs header visibility (uses default .bg-breadcrumb) */
.bg-breadcrumb .display-3 {
    background: none !important;
    -webkit-text-fill-color: var(--teal-lighter) !important;
    color: var(--teal-lighter) !important;
}

.bg-breadcrumb .breadcrumb-item.active {
    color: var(--teal-lighter) !important;
    font-weight: 600;
}

/* Specific separator for Contact Page - Light Teal Curve to match next section */
.bg-breadcrumb-contact::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    /* Light teal #f0fafa matches the contact-section gradient start */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23f0fafa' d='M0,30 C360,60 720,0 1080,30 C1260,45 1380,50 1440,45 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 1;
}

/*** Single Page Hero Header End ***/

/*** Service Start ***/
.service .service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .2);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

.service .service-item .service-img {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service .service-item .service-img img {
    height: 200px;
    object-fit: cover;
    transition: 0.5s;
}

.service .service-item .service-img::before {
    width: 100%;
    height: 0;
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    transition: 0.5s;
    z-index: 5;
}

.service .service-item:hover .service-img::before {
    height: 100%;
    background: rgba(0, 128, 128, .3);
}

.service .service-item .service-img:hover img {
    transform: scale(1.3);
}

.service .service-item .service-content {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.service .service-item .service-content::before {
    width: 100%;
    height: 8px;
    position: absolute;
    content: "";
    bottom: 0;
    left: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: rgba(0, 128, 128, .5);
    transition: 0.5s;
    z-index: 3;
}

.service .service-item:hover .service-content::before {
    background: rgba(0, 128, 128, .5);
    height: 100%;
}

.service .service-item .service-content .service-content-inner {
    transition: 0.5s;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service .service-item:hover .service-content .service-content-inner {
    position: relative;
    color: var(--bs-white) !important;
    z-index: 9;
}

.service .service-item:hover .service-content .service-content-inner h5 {
    color: var(--bs-secondary);
}

.service .service-item .service-content-inner p {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 1rem;
}

.service .service-item .service-content-inner h5 {
    min-height: 3rem;
}

.service .service-item .service-content-inner a.btn {
    margin-top: auto;
}

@media (max-width: 576px) {
    .service .service-item {
        min-height: 350px;
    }

    .service .service-item .service-img img {
        height: 150px;
    }

    .service .service-item .service-content {
        min-height: 180px;
    }
}

/*** Service End ***/

/*** About Start ***/
.about .about-img {
    position: relative;
    overflow: hidden;
    height: 100%;
    border-radius: 10px;
}

.about .about-img .about-img-inner {
    position: absolute;
    left: 0;
    bottom: 0;
    border: 10px solid;
    border-color: var(--bs-white) var(--bs-white) var(--bs-white) var(--bs-white);
    border-radius: 50%;
}

.about .about-img .about-experience {
    position: absolute;
    top: 125px;
    left: -125px;
    transform: rotate(-90deg);
    background: transparent;
    color: var(--bs-primary);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 4px;
}

/*** About End ***/

/*** Feature Start ***/
.feature .feature-item {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bs-primary);
    border-radius: 10px;
    background: var(--bs-light);
    transition: 0.5s;
    height: 100%;
    min-height: 300px;
}

.feature .feature-item::before {
    width: 0;
    height: 100%;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
    transition: 0.5s;
}

.feature .feature-item:hover::before {
    width: 100%;
    background: var(--bs-primary);
}

.feature .feature-item .feature-icon {
    display: inline-flex;
    border-radius: 10px;
    transition: 0.5s;
    height: 80px;
    align-items: center;
    justify-content: center;
}

.feature .feature-item:hover .feature-icon {
    position: relative;
    z-index: 2;
}

.feature .feature-item .feature-content {
    position: relative;
    color: var(--bs-dark);
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature .feature-item:hover .feature-content {
    color: var(--bs-white);
}

.feature .feature-item:hover .feature-content h5 {
    color: var(--bs-dark);
}

.feature .feature-item .feature-content h5 {
    min-height: 3rem;
}

.feature .feature-item .feature-content p {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .feature .feature-item {
        min-height: 250px;
    }

    .feature .feature-item .feature-icon {
        height: 60px;
    }

    .feature .feature-item .feature-icon i {
        font-size: 3rem;
    }
}

/*** Feature End ***/

/*** Appointment Start ***/
.appointment {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url(../img/carousel-2.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

/* Specific separator for Contact Page - Light Teal Curve to match light teal contact section */
.bg-breadcrumb-contact::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    /* Light Teal color #f0fdfa to match the contact section */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23f0fdfa' d='M0,30 C360,60 720,0 1080,30 C1260,45 1380,50 1440,45 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 1;
}

/*** Single Page Hero Header End ***/

.appointment .appointment-form {
    background: rgba(245, 255, 250, 0.9);
    max-width: 600px;
    margin: 0 auto;
    background: #F5FFFA;
    border: 1px solid var(--bs-primary);
    box-shadow: 0 10px 30px rgba(0, 128, 128, 0.1);
}

.appointment .appointment-form .btn.btn-primary {
    box-shadow: inset 0 0 0 0 var(--bs-primary);
}

.appointment .appointment-form .btn.btn-primary:hover {
    box-shadow: inset 600px 0 0 0 var(--bs-light) !important;
    color: var(--bs-primary) !important;
}

.appointment-form iframe {
    width: 100%;
    height: 700px;
    border: none;
}

/*** Youtube Video start ***/
.video {
    position: relative;
}

.video .btn-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50%;
    background: var(--bs-secondary);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 0;
    padding-left: 3px;
    /* Optical centering for the triangle */
}

.video .btn-play:before {
    display: none;
}

.video .btn-play:after {
    display: none;
}

.video .btn-play span {
    display: block;
    width: 0;
    height: 0;
    border-left: 23px solid var(--bs-white);
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
}

/* Play button hover effects */
.video .btn-play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--bs-primary);
    box-shadow: 0 0 30px rgba(0, 128, 128, 0.4);
}

@keyframes pulse-border {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

#videoModal {
    z-index: 99999;
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #ffffff;
    background: #000000;
    opacity: 1;
}

/*** Youtube Video End ***/
/*** Appointment End ***/

/*** Team Start ***/
.team .team-item .team-img {
    position: relative;
    overflow: hidden;
}

.team .team-item .team-img::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    transition: 0.5s;
}

.team .team-item .team-img .team-icon {
    position: absolute;
    bottom: -125px;
    left: 50%;
    transform: translateX(-50%);
    transition: 0.5s;
}

.team .team-item .team-img:hover .team-icon {
    margin-bottom: 145px;
}

.team .team-item:hover .team-img::before {
    background: rgba(0, 128, 128, .3);
}

.team .team-item .team-content {
    color: var(--bs-primary);
    transition: 0.5s;
}

.team .team-item .team-content h5 {
    color: var(--bs-secondary);
    transition: 0.5s;
}

.team .team-item:hover .team-content h5 {
    color: var(--bs-dark);
}

.team .team-item:hover .team-content {
    background: var(--bs-primary);
    color: var(--bs-white);
}

/*** Team End ***/

/*** Testimonial Start ***/
.testimonial {
    background: linear-gradient(rgba(20, 184, 166, 0.85), rgba(20, 184, 166, 0.85)), url(../img/carousel-4.jpeg) !important;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.testimonial .testimonial-item .testimonial-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    background: transparent;
    height: 100%;
    min-height: 480px;
    /* Ensure uniform height */
    justify-content: space-between;
}

.testimonial .testimonial-item .testimonial-inner .testimonial-inner-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid var(--bs-white);
}

.testimonial .testimonial-carousel.owl-carousel {
    position: relative;
}

.testimonial .testimonial-carousel .owl-nav .owl-prev {
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--bs-light);
    color: var(--bs-primary);
    transition: 0.5s;
}

.testimonial .testimonial-carousel .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--bs-light);
    color: var(--bs-primary);
    transition: 0.5s;
}

.testimonial .testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial .testimonial-carousel .owl-nav .owl-next:hover {
    box-shadow: inset 100px 0 0 0 var(--bs-primary) !important;
    color: var(--bs-white) !important;
}

@media (max-width: 900px) {
    .testimonial .testimonial-carousel .owl-nav .owl-prev {
        margin-top: -190px;
        margin-left: 40px;
    }

    .testimonial .testimonial-carousel .owl-nav .owl-next {
        margin-top: -190px;
        margin-right: 40px;
    }
}

.testimonial-carousel .owl-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.testimonial-carousel .owl-dots .owl-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 15px;
    border: 1px solid var(--bs-white);
    background: transparent;
    transition: 0.5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 20px;
    height: 20px;
    background: var(--bs-secondary) !important;
}

.testimonial-carousel .owl-dots .owl-dot span {
    position: relative;
    margin-top: 50%;
    margin-left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dots .owl-dot span::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bs-white);
}

.testimonial .testimonial-carousel .testimonial-item .testimonial-inner p.fs-7 {
    transition: 0.5s;
}

@media (min-width: 900px) {
    .testimonial .testimonial-carousel .testimonial-item .testimonial-inner p.fs-7 {
        font-size: 20px;
    }
}

/* Testimonial Section Title Start */
.testimonial .section-title {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.testimonial .section-title h1 {
    color: var(--bs-white);
}

.testimonial .section-title .sub-style {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.testimonial .section-title .sub-style::before {
    content: "";
    width: 100px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-top: 8px;
    margin-left: -100px;
    border: 1px solid var(--bs-white) !important;
}

.testimonial .section-title .sub-style::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-bottom: 5px;
    margin-left: -50px;
    border: 1px solid var(--bs-white) !important;
}

.testimonial .section-title .sub-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-white);
}

.testimonial .section-title .sub-title::before {
    content: "";
    width: 100px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-top: 8px;
    margin-right: -100px;
    border: 1px solid var(--bs-white) !important;
}

.testimonial .section-title .sub-title::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-bottom: 8px;
    margin-right: -50px;
    border: 1px solid var(--bs-white) !important;
}

/*** Testimonial End ***/

/*** Blog Start ***/
.blog .blog-item .blog-img {
    position: relative;
    overflow: hidden;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

.blog .blog-item .blog-img::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    transition: 0.5s;
}

.blog .blog-item .blog-img img {
    transition: 0.5s;
}

.blog .blog-item .blog-img:hover img {
    transform: scale(1.3);
}

.blog .blog-item:hover .blog-img::after {
    background: rgba(0, 128, 128, .5);
}

.blog .blog-item .blog-centent {
    background: var(--bs-light);
    border: 1px solid var(--bs-primary);
    border-top: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/*** Blog End ***/

/*** Contact Start ***/
.contact {
    background: #f0fdfa !important;
    /* Light Teal Background */
}

.contact .contact-form .btn.btn-light {
    box-shadow: inset 0 0 0 0 var(--bs-primary);
}

.contact .contact-form .btn.btn-light:hover {
    box-shadow: inset 600px 0 0 0 var(--bs-primary) !important;
    color: var(--bs-white) !important;
}

.contact .contact-form .form-floating input,
.contact .contact-form .form-floating textarea,
.contact .contact-form .form-floating label {
    color: var(--bs-dark);
}

/* Contact Section Title Start */
.contact .section-title {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.contact .section-title .sub-style {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.contact .section-title .sub-style::before {
    content: "";
    width: 100px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-top: 8px;
    margin-left: -100px;
    border: 1px solid var(--bs-white) !important;
}

.contact .section-title .sub-style::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-bottom: 5px;
    margin-left: -50px;
    border: 1px solid var(--bs-white) !important;
}

.contact .section-title .sub-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.contact .section-title .sub-title::before {
    content: "";
    width: 100px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-top: 8px;
    margin-right: -100px;
    border: 1px solid var(--bs-white) !important;
}

.contact .section-title .sub-title::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-bottom: 8px;
    margin-right: -50px;
    border: 1px solid var(--bs-white) !important;
}

/*** Contact End ***/

/*** Footer Start ***/
.footer {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url(../img/carousel-4.jpeg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.team-role {
    text-transform: none !important;
    color: var(--bs-primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.footer .footer-item a {
    line-height: 35px;
    color: var(--bs-body);
    transition: 0.5s;
}

.footer .footer-item p {
    line-height: 35px;
}

.footer .footer-item a:hover {
    letter-spacing: 2px;
    color: var(--bs-primary);
}

/*** Footer End ***/

/*** Copyright Start ***/
.copyright {
    background: var(--bs-dark) !important;
}

/*** Copyright End ***/

/*** Sticky Footer Fix ***/
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.time-slot-btn {
    padding: 8px 12px;
    border: 1px solid #007bff;
    background: white;
    color: #007bff;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s, color 0.3s;
}

.time-slot-btn:hover {
    background-color: #007bff;
    color: white;
}

.time-slot-btn.selected {
    background-color: #0056b3;
    color: white;
    border-color: #0056b3;
}

/*** Robust Footer Icon Fix ***/
.footer .footer-item a.btn-md-square {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    line-height: 44px !important;
    margin-bottom: 0 !important;
    transform: none !important;
    background-color: var(--bs-primary);
    color: var(--bs-white) !important;
}

.footer .footer-item a.btn-md-square:hover {
    transform: translateY(-5px) !important;
    color: var(--bs-white) !important;
    box-shadow: inset 0 0 0 0 var(--bs-primary) !important;
}

/*** Enhanced Sticky Footer & Whitespace Fix ***/
.footer {
    margin-top: auto;
}

.copyright {
    margin-bottom: 0 !important;
    padding-bottom: 15px !important;
}

/* Remove any extra space after copyright */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/*** Back to Top Fix ***/
.back-to-top {
    position: fixed !important;
    right: 30px !important;
    bottom: 120px !important;
    left: auto !important;
    z-index: 9999 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ================================
   APPOINTMENT FORM COLOR FIX
   ================================ */
.appointment .appointment-form .text-primary {
    color: #008080 !important;
    /* Teal */
}

.appointment .appointment-form .btn-primary {
    background-color: #008080 !important;
    border-color: #008080 !important;
    color: #fff !important;
}

.footer a {
    color: #F5FFFA !important;
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 15px;
    line-height: 1.5;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a i {
    /* margin-top removed for baseline alignment */
    width: 20px;
    /* Fixed width for alignment */
    text-align: center;
    flex-shrink: 0;
    transform: translateY(2px);
    /* Slight adjustment for better visual centering relative to cap height */
}

.footer a:hover {
    color: #48CFCB !important;
    transform: translateX(5px);
}

.appointment .appointment-form .btn-primary:hover {
    background-color: #006666 !important;
    border-color: #006666 !important;
}

.appointment .appointment-form .border-primary {
    border-color: #008080 !important;
}

.appointment .appointment-form .form-control:focus,
.appointment .appointment-form .form-select:focus {
    border-color: #48CFCB !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 128, 128, 0.25) !important;
}

/*** Contact Section Styling ***/
.contact {
    /* Background: White as requested */
    background: #ffffff !important;
    color: var(--bs-dark) !important;
}

.contact .section-title p {
    color: var(--bs-dark) !important;
}

.contact .form-floating label {
    color: var(--bs-secondary);
    opacity: 0.8;
}

.contact .form-floating>.form-control:focus~label,
.contact .form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--teal-primary);
    opacity: 1;
}

.contact-form {
    background: #f8f9fa !important;
    /* Light gray for form container */
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact .rounded.bg-transparent {
    background: #f8f9fa !important;
    padding: 30px;
    border-radius: 15px !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Teal Input Styling */
.form-control.teal-input {
    border: 1px solid #14B8A6 !important;
    /* Teal border */
    color: var(--bs-dark);
}

.form-control.teal-input:focus {
    border-color: #0D9488 !important;
    /* Darker teal on focus */
    box-shadow: 0 0 0 0.25rem rgba(20, 184, 166, 0.25);
}

/* Teal Button Styling */
.btn-teal {
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
    color: white !important;
    border: none;
    transition: all 0.3s ease;
}

.btn-teal:hover {
    background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 148, 136, 0.3);
}

/* Icon Pulse Animation - Teal for white background */
@keyframes pulse-teal {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 128, 128, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(0, 128, 128, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 128, 128, 0);
    }
}

.contact .d-flex .bg-white {
    animation: pulse-teal 2s infinite;
    /* Ensure icons are centered and look good */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Add subtle shadow to icons */
}

.contact .d-flex .bg-white:hover {
    animation: none;
    transform: scale(1.2);
}

/* ================================
   CONTACT PAGE - PREMIUM REDESIGN
   ================================ */

.contact-section {
    background: linear-gradient(135deg, #f0fafa 0%, #e6f7f7 50%, #f5fffa 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 128, 128, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(72, 207, 203, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

/* Section Header */
.contact-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.12), rgba(72, 207, 203, 0.15));
    color: #008080;
    border: 1px solid rgba(0, 128, 128, 0.25);
    border-radius: 50px;
    padding: 8px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.contact-main-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #222831;
    line-height: 1.2;
}

.contact-highlight {
    color: #008080;
    position: relative;
}

.contact-highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #008080, #48CFCB);
    border-radius: 2px;
}

.contact-subtitle {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Card */
.contact-form-card {
    background: transparent;
    border-radius: 20px;
    padding: 36px 32px;
    border: 2px solid #008080;
}

.contact-form-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 128, 128, 0.1);
    color: #222831;
}

.contact-form-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222831;
    margin: 0;
}

.contact-form-header p {
    color: #666;
    font-size: 0.9rem;
}

.contact-form-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #008080, #48CFCB);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 128, 128, 0.3);
}

.contact-form-icon i {
    color: #fff;
    font-size: 1.2rem;
}

/* Custom Inputs */
.contact-input-group {
    position: relative;
}

.contact-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #008080;
    font-size: 0.9rem;
    z-index: 1;
    opacity: 0.7;
}

.contact-input {
    width: 100%;
    padding: 13px 14px 13px 40px;
    border: 1.5px solid rgba(0, 128, 128, 0.2);
    border-radius: 12px;
    background: #f8fffe;
    color: #222831;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s ease;
    font-family: 'Open Sans', sans-serif;
}

.contact-input::placeholder {
    color: #aaa;
}

.contact-input:focus {
    border-color: #008080;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.12);
}

.contact-textarea {
    height: 120px;
    resize: none;
    padding-top: 13px;
}

/* Submit Button */
.contact-submit-btn {
    background: linear-gradient(135deg, #008080, #0a9e9e);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(0, 128, 128, 0.3);
}

.contact-submit-btn:hover {
    background: linear-gradient(135deg, #006666, #008080);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 128, 128, 0.4);
    color: #fff;
}

.contact-submit-btn:active {
    transform: translateY(0);
}

/* Info Cards */
.contact-info-card {
    background: transparent;
    padding: 16px 10px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-4px);
}

.contact-info-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #008080, #48CFCB);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 4px 12px rgba(0, 128, 128, 0.25);
    transition: transform 0.3s ease;
}

.contact-info-card:hover .contact-info-icon-wrap {
    transform: scale(1.1) rotate(-5deg);
}

.contact-info-icon-wrap i {
    color: #fff;
    font-size: 1.1rem;
}

.contact-info-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #008080;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.contact-info-text {
    font-size: 0.82rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* Map */
.contact-map-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 128, 128, 0.15);
    box-shadow: 0 4px 20px rgba(0, 128, 128, 0.1);
    aspect-ratio: 4 / 3;
    width: 100%;
}



.contact-map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Social Row */
.contact-social-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}

.contact-social-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    margin-right: 4px;
}

.contact-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.1), rgba(72, 207, 203, 0.15));
    border: 1px solid rgba(0, 128, 128, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #008080;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-social-btn:hover {
    background: linear-gradient(135deg, #008080, #48CFCB);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 128, 128, 0.3);
}

/* ================================
   CONTACT - MOBILE RESPONSIVE
   ================================ */

@media (max-width: 991.98px) {
    .contact-main-title {
        font-size: 2.1rem;
    }

    .contact-form-card {
        padding: 28px 22px;
    }
}

@media (max-width: 767.98px) {
    .contact-main-title {
        font-size: 1.8rem;
    }

    .contact-subtitle {
        font-size: 0.95rem;
    }

    .contact-form-card {
        padding: 22px 16px;
        border-radius: 16px;
    }

    .contact-form-header {
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .contact-form-header h3 {
        font-size: 1.2rem;
    }

    .contact-form-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .contact-info-card {
        padding: 16px 10px;
        border-radius: 14px;
    }

    .contact-info-icon-wrap {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .contact-info-title {
        font-size: 0.78rem;
    }

    .contact-info-text {
        font-size: 0.78rem;
    }

    .contact-map-wrap {
        min-height: unset;
    }
}

@media (max-width: 575.98px) {
    .contact-main-title {
        font-size: 1.6rem;
    }

    .contact-badge {
        font-size: 0.82rem;
        padding: 7px 16px;
    }

    .contact-form-card {
        padding: 18px 14px;
    }

    .contact-input {
        padding: 12px 12px 12px 38px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .contact-submit-btn {
        padding: 13px 20px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .contact-info-card {
        border-radius: 12px;
    }

    .contact-map-wrap {
        border-radius: 12px;
    }

    .contact-social-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}