/********** Template CSS **********/
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#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;
}


/*** Button ***/
.btn {
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover,
.btn.btn-dark,
.btn.btn-outline-dark:hover {
    color: var(--bs-white);
    font-weight: 500;
}

.btn.btn-primary:hover {
    background: var(--bs-dark);
    border-color: var(--bs-dark);
}

.btn.btn-dark:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}
/* ================= HEADER ================= */
/* ================= HEADER STICKY ================= */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

/* ================= NAVBAR STICKY BELOW HEADER ================= */
.custom-navbar{
    position: sticky;
    top: 74px;
    z-index: 1040;

    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 14px 0;

    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* ================= FIX OVERLAP ISSUE ================= */
body {
    padding-top: 0;
}

/* ================= HEADER ================= */
.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 50px;
}

/* Contact */
.contact-section {
    display: flex;
    gap: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item i {
    font-size: 18px;
    color: #009688;
}

.contact-item small {
    font-size: 12px;
    color: #888;
}

.contact-item p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* CTA */
.btn-appointment {
    background: #009688;
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
}

.btn-appointment:hover {
    background: #3d8f8f;
}

/* ================= NAV LINKS ================= */
.navbar-nav .nav-link{

    font-size:15px;
    font-weight:500;
    margin:0 16px;
    color:#333;

    position:relative;
    transition: all .3s ease;
}

/* hover color */

.navbar-nav .nav-link:hover{
    color:#009688;
}

/* animated underline */

.navbar-nav .nav-link::after{

    content:"";
    position:absolute;

    width:0%;
    height:2px;

    left:0;
    bottom:-6px;

    background:#009688;

    transition:0.35s;
}

/* hover underline */

.navbar-nav .nav-link:hover::after{
    width:100%;
}


/* active page */

.navbar-nav .nav-link.active{
    color:#009688;
    font-weight:600;
}

.navbar-nav .nav-link.active::after{
    width:100%;
}

/* ===== MEGA MENU FIX ===== */

.mega-menu{
    width: 520px;          /* increase width */
    left: 50%;
    transform: translateX(-50%);
    border-radius: 12px;
    padding: 20px 25px;
}

.mega-menu h6{
    font-weight: 600;
    margin-bottom: 12px;
    color:#009688;
}

.mega-menu .dropdown-item{
    padding:6px 0;
    font-size:14px;
}

.mega-menu .dropdown-item:hover{
    background:none;
    color:#009688;
}

.navbar .dropdown-menu{
    margin-top:18px;
}
/* .dropdown:hover .dropdown-menu{
    display:block;
    margin-top:0;
} */

/* ================= TOGGLER BLACK ================= */
.custom-toggler {
    border: none;
}

.custom-toggler .navbar-toggler-icon {
    background-image: none;
    width: 25px;
    height: 2px;
    background-color: black;
    position: relative;
}

.custom-toggler .navbar-toggler-icon::before,
.custom-toggler .navbar-toggler-icon::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 2px;
    background-color: black;
    left: 0;
}

.custom-toggler .navbar-toggler-icon::before {
    top: -7px;
}

.custom-toggler .navbar-toggler-icon::after {
    top: 7px;
}

/* ================= MOBILE ================= */
@media (max-width: 991px) {

    /* hide header */
    .main-header {
        display: none;
    }

    /* navbar full top */
    .custom-navbar {
        top: 0;
    }

    .navbar-collapse {
        background: #fff;
        margin-top: 10px;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link {
        margin: 10px 0;
        font-size: 16px;
    }

    .btn-appointment {
        width: 100%;
        margin-top: 10px;
    }
}
/*** Hero ***/
/* .hero-header {
    background: url(../img/hero.jpg) top right no-repeat;
    background-size: cover;
} */
/* HERO OVERLAY */
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(0, 29, 35, 0.85) 40%,
        rgba(0, 29, 35, 0.55) 65%,
        rgba(0, 29, 35, 0.2) 100%
    );
    z-index: 1;
}

.carousel-item img {
    height: 100vh;
    object-fit: cover;
}

.carousel-fade .carousel-item {
    transition: opacity 1s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {

    .carousel-item img {
        height: 550px;
    }

    .display-4 {
        font-size: 2rem;
    }

    .carousel-caption {
        padding: 20px;
    }
}
.hero-header {
    background: 
        linear-gradient(rgba(248, 251, 251, 0.6), rgba(248, 251, 251, 0.6)),
        url(../img/hero.jpg) top right no-repeat;
    background-size: cover;
}
.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--bs-primary);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--bs-primary);
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--bs-primary);
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--bs-white);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

#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: var(--bs-white);
    background: #000000;
    opacity: 1;
}

.page-header {
    background: url(../img/hero.jpg) center right no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-weight: 500;
}

.page-header .breadcrumb-item a,
.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-secondary)
}

.page-header .breadcrumb-item a:hover,
.page-header .breadcrumb-item.active {
    color: var(--bs-primary);
}


/*** Appointment ***/
@media (min-width: 992px) {
    .container.appointment {
        max-width: 100% !important;
    }

    .container.appointment .appointment-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }

    .container.appointment .appointment-form {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .container.appointment .appointment-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }

    .container.appointment .appointment-form  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .container.appointment .appointment-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }

    .container.appointment .appointment-form  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}

/* .container.appointment .appointment-text {
    background: linear-gradient(rgba(205, 95, 55, .95), rgba(205, 95, 55, .95)), url(../img/service-4.jpg) center center no-repeat;
    background-size: cover;
}

.container.appointment .appointment-form {
    background: linear-gradient(rgba(72, 30, 11, .95), rgba(72, 30, 11, .95)), url(../img/service-1.jpg) center center no-repeat;
    background-size: cover;
} */

.container.appointment .appointment-text {
    background: linear-gradient(rgba(90, 166, 166, 0.9), rgba(90, 166, 166, 0.9)),
                url(../img/service-4.jpg) center center no-repeat;
}

.container.appointment .appointment-form {
    background: linear-gradient(rgba(61, 143, 143, 0.9), rgba(61, 143, 143, 0.9)),
                url(../img/service-1.jpg) center center no-repeat;
}

.container.appointment .appointment-text .h-100,
.container.appointment .appointment-form .h-100 {
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}



/*** Service ***/
.service-item {
    position: relative;
    overflow: hidden;
}

.service-item .service-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item .service-icon img {
    max-width: 60px;
    max-height: 60px;
}

.service-item .service-text {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.service-item .service-img {
    transition: .5s;
}

.service-item:hover .service-img {
    transform: scale(1.2) rotate(7deg);
}



/*** Team ***/
.team {
    position: relative;
}

.team::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 110px;
    left: 0;
    bottom: 3rem;
    background: var(--bs-light);
    z-index: -1;
}

.team .team-item {
    position: relative;
    overflow: hidden;
}

.team .team-item img {
    position: relative;
    transform: scale(1.1);
    transition: .5s;
}

.team .team-item:hover img {
    margin-top: -30px;
    padding-bottom: 30px;
}

.team .team-text {
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team .team-text-overflow {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: -50px;
    opacity: 0;
    transition: .5s;
}

.team .team-item:hover .team-text-overflow {
    bottom: 0;
    opacity: 1;
}



/*** Testimonial ***/
.testimonial-left,
.testimonial-right {
    position: relative;
}

.testimonial-left img,
.testimonial-right img {
    position: absolute;
    animation: pulse-img 5s ease-out infinite;
}

@keyframes pulse-img {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 0;
    }

    50% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 0;
    }
}

.testimonial-left img:nth-child(1),
.testimonial-right img:nth-child(3) {
    width: 70px;
    height: 70px;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-left img:nth-child(2),
.testimonial-right img:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.testimonial-left img:nth-child(3),
.testimonial-right img:nth-child(1) {
    width: 50px;
    height: 50px;
    bottom: 10%;
    right: 10%;
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-white);
    background: var(--bs-primary);
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--bs-dark);
}


/*** Footer ***/
.footer {
    color: rgba(256, 256, 256, .6);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(256, 256, 256, .6);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: rgba(256, 256, 256, .6);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--bs-light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-square {
    color: rgba(256, 256, 256, .6);
    border: 1px solid rgba(256, 256, 256, .6);
}

.footer .btn.btn-square:hover {
    color: var(--bs-white);
    border-color: var(--bs-primary);
    background: var(--bs-primary);
}

.footer .form-control {
    color: var(--bs-light);
    border-color: rgba(256, 256, 256, .6);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--secondary);
}

.footer .copyright a:hover {
    color: #FFFFFF;
}

/* Header */
.main-header {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

/* Layout */
.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    height: 50px;
}

/* Contact Section */
.contact-section {
    display: flex;
    gap: 40px;
}

/* Each Contact */
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item i {
    font-size: 20px;
    color: #009688;
}

.contact-item small {
    display: block;
    font-size: 12px;
    color: #888;
}

.contact-item p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #2f3e3e;
}

/* CTA */
.btn-appointment{

    background:#009688;
    color:#fff;

    padding:10px 24px;
    border-radius:30px;

    font-weight:500;

    transition: all .3s ease;
}

.btn-appointment:hover{

    background:#00796b;

    transform:translateY(-2px);

    box-shadow:0 6px 18px rgba(0,150,136,.25);
}

@media (max-width: 991px) {

    .contact-section {
        display: none;
    }

    .logo {
        height: 40px;
    }

    .header-wrapper {
        flex-wrap: wrap;
        gap: 10px;
    }

    .cta-section {
        width: 100%;
    }

    .btn-appointment {
        width: 100%;
        text-align: center;
    }
}

/* .logo-bg {
    background-color: #009688;
    color: #fff; 
} */
 .logo-bg {
    background: linear-gradient(135deg, #8fbfbe, #009688);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #fff;
    transition: all 0.3s ease;
}

:root {
    --bs-primary: #009688;
}
.text-primary {
    color: var(--bs-primary) !important;
}

.bg-primary{
    background-color: var(--bs-primary) !important;
}



h1, .display-1 {
    color: #1f2d2d; /* dark professional */
}

.btn-primary {
    background-color: #009688;
    border-color: #009688;
}

.btn-primary:hover {
    background-color: #3d8f8f;
}



/* service-home start */

/* Service Card */
.service-item{
    position: relative;
    transition: all .35s ease;
    border-radius: 12px;
    overflow: hidden;
}

/* Top accent line */
.service-item::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:0;
    height:4px;
    background:#009688;
    transition:.35s;
}

/* Hover card lift */
.service-item:hover{
    transform:translateY(-10px);
    box-shadow:0 18px 45px rgba(0,0,0,0.12);
}

/* Animate top line */
.service-item:hover::before{
    width:100%;
}

/* Icon animation */
.service-item i{
    transition:.35s;
}

.service-item:hover i{
    transform:scale(1.2);
    color:#009688;
}

/* Learn more link */
.service-link{
    display:inline-block;
    margin-top:10px;
    font-weight:600;
    color:#009688;
    text-decoration:none;
    position:relative;
}

/* underline animation */
.service-link::after{
    content:"";
    position:absolute;
    width:0;
    height:2px;
    left:0;
    bottom:-4px;
    background:#009688;
    transition:.3s;
}

.service-item:hover .service-link::after{
    width:100%;
}

/* service-home end */

/* about-home start */
.doctor-card{
position:relative;
}

.experience-badge{
position:absolute;
bottom:-20px;
left:-20px;
background:#009688;
color:#fff;
padding:20px;
border-radius:10px;
box-shadow:0 10px 30px rgba(0,0,0,0.2);
}

.experience-badge h3{
font-size:32px;
margin:0;
}

.experience-badge span{
font-size:14px;
}

.achievement-box{
background:#fff;
padding:20px;
border-radius:10px;
text-align:center;
box-shadow:0 5px 20px rgba(0,0,0,0.05);
transition:0.3s;
}

.achievement-box:hover{
transform:translateY(-6px);
box-shadow:0 15px 35px rgba(0,0,0,0.15);
}

.achievement-box h3{
color:#009688;
font-weight:700;
}
/* about-home end */

/* why-home start */
.why-card{
background:#fff;
padding:35px 25px;
border-radius:10px;
box-shadow:0 8px 25px rgba(0,0,0,0.05);
text-align:center;
height:100%;
display:flex;
flex-direction:column;
justify-content:flex-start;
}

.why-card i{
font-size:40px;
color:#0d9488;
margin-bottom:15px;
}

.why-card h5{
font-weight:600;
margin-bottom:10px;
}

.why-card p{
flex-grow:1;
}

.why-card:hover{
transform:translateY(-8px);
box-shadow:0 20px 40px rgba(0,0,0,0.15);
}
/*  why-home end */


/* treatment-home start */
.treatment-slider {
padding: 60px 0;
}

.treatment-slider .swiper-slide {
text-align:center;
transition: all .4s;
opacity: .6;
transform: scale(.8);
}

.treatment-slider .swiper-slide-active {
opacity:1;
transform: scale(1.1);
}

.treatment-card img{
width:100%;
height:240px;
object-fit:cover;
border-radius:15px;
box-shadow:0 10px 30px rgba(0,0,0,0.15);
}

.treatment-card h5{
margin-top:15px;
font-weight:600;
}
/* treatment-home end */


/* achievment-home start */

.achievement-card{
background:#fff;
padding:35px;
border-radius:12px;
text-align:center;
box-shadow:0 10px 25px rgba(0,0,0,0.05);
transition:0.4s;
height:100%;
}

.achievement-card i{
font-size:36px;
color:#009688;
margin-bottom:15px;
}

.achievement-card h5{
font-weight:600;
margin-bottom:10px;
}

.achievement-card:hover{
transform:translateY(-8px);
box-shadow:0 20px 40px rgba(0,0,0,0.15);
background:#009688;
color:#fff;
}

.achievement-card:hover i{
color:#fff;
}

/* achievment-home end */


.footer .btn-link{
display:block;
margin-bottom:8px;
text-decoration:none;
}

.footer .btn-link:hover{
padding-left:6px;
color:#ffffff;
}


.contact-info{
background:#f9f9f9;
padding:30px;
border-radius:10px;
box-shadow:0 5px 15px rgba(0,0,0,0.05);
}

.contact-form{
background:#fff;
padding:30px;
border-radius:10px;
box-shadow:0 5px 20px rgba(0,0,0,0.08);
}

.page-title-banner{
background:#f4f4f4 url("../img/cover-banner.png");
background-size:cover;
padding:60px 0;
}

.banner-content{
display:flex;
align-items:center;
gap:20px;
}

.title-line{
width:4px;
height:55px;
background:#009688;
}

.page-title-banner h1{
font-size:48px;
font-weight:700;
color:#222;
margin:0;
}

.breadcrumb-text{
margin-top:6px;
color:#777;
font-size:14px;
}


/* Doctor image */
.doctor-img{
position:relative;
}

.experience-box{
position:absolute;
bottom:-20px;
right:-20px;
background:#009688;
color:#fff;
padding:20px;
border-radius:10px;
text-align:center;
box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

.experience-box h3{
font-size:32px;
font-weight:700;
margin:0;
}

.expertise-box{
transition:0.3s;
}

.expertise-box:hover{
transform:translateY(-8px);
box-shadow:0 15px 40px rgba(0,0,0,0.12);
}


/* SERVICES */
/* ================= SERVICE CARDS ================= */

.service-card{
background:#fff;
border-radius:12px;
overflow:hidden;
box-shadow:0 15px 35px rgba(0,0,0,0.08);
transition:0.4s;
height:100%;
}

.service-card:hover{
transform:translateY(-10px);
box-shadow:0 25px 60px rgba(0,0,0,0.15);
}

.service-img{
width:100%;
height:230px;
object-fit:cover;
}

.service-content{
padding:25px;
}

.service-content i{
font-size:28px;
color:#009688;
margin-bottom:10px;
}

.service-content h4{
font-weight:600;
margin-bottom:10px;
}

.service-content ul{
padding-left:18px;
margin-bottom:20px;
}

.service-content ul li{
font-size:14px;
margin-bottom:5px;
}

.service-btn{
text-decoration:none;
font-weight:500;
color:#009688;
}

.service-btn i{
margin-left:6px;
}


.feature-box{
background:#fff;
padding:35px 25px;
border-radius:10px;
box-shadow:0 10px 30px rgba(0,0,0,0.08);
transition:0.3s;
}

.feature-box:hover{
transform:translateY(-6px);
box-shadow:0 20px 50px rgba(0,0,0,0.15);
}



.achievement-card{
background:#fff;
padding:35px 25px;
border-radius:10px;
box-shadow:0 8px 25px rgba(0,0,0,0.05);
text-align:center;
height:100%;
display:flex;
flex-direction:column;
}

.achievement-card i{
font-size:40px;
color:#0d9488;
margin-bottom:15px;
}

.achievement-card h5{
font-weight:600;
margin-bottom:10px;
}

.achievement-card p{
flex-grow:1;
}