/********** Template CSS **********/
:root {
    --primary: #06A3DA;
    --secondary: #F57E57;
    --light: #EEF9FF;
    --dark: #091E3E;
}

h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

#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;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.top-shape::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 100%;
    top: 0;
    left: -17px;
    background: var(--primary);
    transform: skew(40deg);
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    padding: 35px 15px;
    font-size: 18px;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 15px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .85);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.section-title h5::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 3px;
    right: -55px;
    bottom: 11px;
    background: var(--primary);
}

.section-title h5::after {
    position: absolute;
    content: "";
    width: 15px;
    height: 3px;
    right: -75px;
    bottom: 11px;
    background: var(--secondary);
}

.hero-header {
    background: linear-gradient(rgba(9, 30, 62, .85), rgba(9, 30, 62, .85)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.service-item img,
.service-item .bg-light,
.service-item .bg-light h5,
.team-item .team-text {
    transition: .5s;
}

.service-item:hover img {
    transform: scale(1.15);
}

.team-item .team-text::after {
    position: absolute;
    content: "";
    top: 50%;
    bottom: 0;
    left: 15px;
    right: 15px;
    border-radius:100px / 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, .7);
    opacity: 0;
    transition: .5s;
    z-index: -1;
}

.team-item:hover .team-text::after {
    opacity: 1;
}

/* Service Item Premium Animations */
.service-item {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
    border: 1px solid rgba(6, 163, 218, 0.08);
}

.service-item h5,
.service-item h6,
.service-item p,
.service-item .text-dark {
    transition: color .4s ease;
}

.service-item:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 30px rgba(6, 163, 218, 0.18) !important;
    border-color: var(--primary) !important;
    background-color: #ffffff !important;
}

.service-item:hover .bg-light {
    background-color: var(--primary) !important;
}

.service-item:hover h5,
.service-item:hover h6,
.service-item:hover p,
.service-item:hover .text-dark {
    color: #ffffff !important;
}

/* Specialities Highlights Section */
.speciality-col {
    padding: 20px 30px;
    transition: transform 0.3s ease;
}

@media (min-width: 992px) {
    .speciality-col {
        border-right: 1px solid rgba(0, 0, 0, 0.08);
    }
    .speciality-col:last-child {
        border-right: none;
    }
}

.speciality-col h3 {
    color: #e11d48; /* Red color matching the image */
    font-size: 24px;
    font-weight: 600;
    font-family: 'Jost', sans-serif;
    margin-top: 15px;
}

.speciality-col p {
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
    font-family: 'Open Sans', sans-serif;
}

.speciality-col .accent-line {
    width: 35px;
    height: 2px;
    background-color: #e11d48;
    margin: 12px auto;
}

.speciality-col .speciality-icon {
    height: 90px;
    width: auto;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.speciality-col:hover .speciality-icon {
    animation: heartbeat 1.2s infinite ease-in-out;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    18% { transform: scale(1.12); }
    32% { transform: scale(1.02); }
    48% { transform: scale(1.15); }
    70% { transform: scale(1); }
    100% { transform: scale(1); }
}

/* Clinical Focus Cards in About Page */
.focus-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(6, 163, 218, 0.08);
    border-radius: 15px;
    background: #ffffff;
}
.focus-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 24px rgba(6, 163, 218, 0.15) !important;
    border-color: var(--primary) !important;
}
.focus-card .icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.focus-card:hover .icon-box {
    background-color: var(--primary);
}
.focus-card:hover .icon-box i {
    color: #ffffff !important;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 48px;
    height: 48px;
    bottom: 115px;
    right: 45px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}
.whatsapp-float:hover {
    background-color: #1ebd56;
    transform: scale(1.1);
    color: #FFF;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Navbar Dropdown styling */
.dropdown-toggle::after {
    margin-left: 0.355em;
    vertical-align: 0.095em;
}

@media (min-width: 992px) {
    .navbar-light .dropdown:hover .dropdown-menu {
        display: block;
        visibility: visible;
        top: 100%;
        transform: rotateX(0deg);
        opacity: 1;
    }
    .navbar-light .dropdown .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 140%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        opacity: 0;
        transition: .3s;
        border: none;
        box-shadow: 0 5px 15px rgba(9, 30, 62, 0.07);
        border-radius: 0 0 10px 10px;
    }
}

.dropdown-item {
    font-family: 'Jost', sans-serif;
    padding: 10px 20px;
    color: var(--dark);
    font-size: 16px;
    font-weight: 500;
    transition: .3s;
}

.dropdown-item:hover,
.dropdown-item.active {
    color: #ffffff !important;
    background: var(--primary) !important;
}