body {
    font-family: 'Segoe UI', sans-serif;
    background: #f5f8fc;
}

.navbar-brand h4 {
    font-weight: bold;
}

.nav-link {
    font-weight: 600;
    margin-left: 12px;
}

    .nav-link:hover {
        color: #0d6efd !important;
    }

.btn-primary {
    border-radius: 30px;
    padding: 10px 22px;
}

footer {
    margin-top: 80px;
}

    footer p {
        margin-bottom: 6px;
    }
.hero {
    background: linear-gradient(to right,#EAF4FF,#FFFFFF);
    padding: 80px 0;
}

    .hero h1 {
        color: #0d6efd;
    }

.card {
    border: none;
    border-radius: 20px;
    transition: .3s;
}

    .card:hover {
        transform: translateY(-8px);
    }

.btn-primary {
    padding: 12px 30px;
    border-radius: 30px;
}
.hero-img {
    width: 100%;
    height: 650px;
    object-fit: cover;
}

.hero-section {
    margin-bottom: 50px;
}

.btn-primary {
    border-radius: 40px;
    padding: 15px 35px;
}
.feature-box {
    background: white;
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
    transition: .35s;
    height: 100%;
}

    .feature-box:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0,0,0,.15);
    }

.icon {
    font-size: 55px;
    margin-bottom: 20px;
}

.feature-box h4 {
    color: #0d6efd;
    margin-bottom: 15px;
}
.department-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transition: .4s;
    height: 100%;
}

    .department-card:hover {
        background: #0d6efd;
        color: #fff;
        transform: translateY(-12px);
    }

.department-icon {
    font-size: 55px;
    margin-bottom: 20px;
}

.department-card h4 {
    font-weight: bold;
    margin-bottom: 15px;
}
/*==========================
      Doctor Card
==========================*/

.doctor-card {
    transition: .35s;
    border-radius: 15px;
    overflow: hidden;
}

    .doctor-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0,0,0,.15) !important;
    }

    .doctor-card img {
        transition: .4s;
    }

    .doctor-card:hover img {
        transform: scale(1.05);
    }
/*=============================
        Gallery
=============================*/

.gallery-card {
    overflow: hidden;
    border-radius: 12px;
}

    .gallery-card img {
        transition: .4s;
    }

    .gallery-card:hover img {
        transform: scale(1.08);
    }

.gallery-card {
    box-shadow: 0 5px 20px rgba(0,0,0,.1);
}
/*=====================================
      Appointment CTA
=====================================*/

.appointment-section {
    background: linear-gradient(rgba(13,110,253,.90), rgba(13,110,253,.90)), url('/images/banner/banner1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

    .appointment-section .btn {
        transition: .35s;
    }

        .appointment-section .btn:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 25px rgba(0,0,0,.25);
        }
/*=================================
        Testimonials
=================================*/

.testimonial-card {
    border-radius: 15px;
    transition: .35s;
}

    .testimonial-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,.15) !important;
    }

    .testimonial-card img {
        border: 4px solid #0d6efd;
    }

    .testimonial-card p {
        font-style: italic;
    }
/*==============================
      Contact Section
==============================*/

.contact-card i {
    width: 35px;
    font-size: 20px;
}

.contact-card p {
    font-size: 17px;
}

.contact-card .btn {
    border-radius: 50px;
}
/*=========================
        Footer
==========================*/

.footer {
    background: #0b1c39;
    color: #ddd;
    padding: 60px 0 20px;
}

    .footer h5 {
        color: #fff;
        margin-bottom: 20px;
    }

    .footer a {
        color: #ccc;
        text-decoration: none;
        transition: .3s;
    }

        .footer a:hover {
            color: #0d6efd;
        }

    .footer ul li {
        margin-bottom: 12px;
    }

.social-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1b335e;
    border-radius: 50%;
    margin-right: 8px;
    color: white !important;
    transition: .3s;
}

    .social-icon:hover {
        background: #0d6efd;
        transform: translateY(-4px);
    }

#topBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #0d6efd;
    color: white;
    z-index: 9999;
    transition: .3s;
}

    #topBtn:hover {
        background: #084298;
    }
/*====================================
    Premium Footer Extension
====================================*/

.footer-title {
    color: #ffc107;
    font-weight: 600;
    margin-bottom: 18px;
}

.footer-about {
    text-align: justify;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        color: #ddd;
        transition: .3s;
    }

        .footer-links a:hover {
            color: #ffc107;
            padding-left: 8px;
        }

.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

    .social-icons a {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: #1b335e;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 18px;
        transition: all .3s ease;
        text-decoration: none;
    }

        .social-icons a:hover {
            background: #ffc107;
            color: #000;
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(255,193,7,.35);
        }

.footer hr {
    border-color: rgba(255,255,255,.15);
}

.footer small {
    color: #bbb;
}

.footer img {
    object-fit: cover;
}
/*==============================
        Doctors
==============================*/

.doctor-card {
    transition: .35s;
    border-radius: 15px;
    overflow: hidden;
}

    .doctor-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,.18) !important;
    }

    .doctor-card img {
        transition: .4s;
    }

    .doctor-card:hover img {
        transform: scale(1.05);
    }

    .doctor-card .btn {
        border-radius: 30px;
    }
/*===================================
        Doctor Details
===================================*/

.doctor-photo {
    width: 100%;
    max-width: 380px;
    height: 420px;
    object-fit: cover;
    border-radius: 15px;
}

.table th {
    background: #f8f9fa;
}
/*==========================
     Department Card
==========================*/

.department-card {
    border-radius: 15px;
    overflow: hidden;
    transition: .35s;
}

    .department-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,.18) !important;
    }

    .department-card img {
        transition: .4s;
    }

    .department-card:hover img {
        transform: scale(1.05);
    }
/*====================================
      Department Details
====================================*/

.department-detail-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 15px;
}
/*==============================
        Gallery
==============================*/
.gallery-card {
    transition: .35s;
}

    .gallery-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,.18);
    }

    .gallery-card img {
        transition: .4s;
    }

    .gallery-card:hover img {
        transform: scale(1.05);
    }


.hero-image {
    height: 700px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,rgba(0,45,98,.88),rgba(0,0,0,.35));
}

.carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 24px;
    margin-top: 25px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 20px;
    background: #ffc107;
    color: #000;
    font-weight: 600;
    border-radius: 40px;
    margin-bottom: 25px;
}

.feature-card {
    background: #fff;
    padding: 35px;
    border-radius: 18px;
    text-align: center;
    transition: .35s;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    height: 100%;
}

    .feature-card:hover {
        transform: translateY(-10px);
    }

.feature-icon {
    width: 90px;
    height: 90px;
    margin: auto;
    background: #0d6efd;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin-bottom: 20px;
}

.section-title {
    color: #0d6efd;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
/*=============================
TOP BAR
=============================*/

.top-bar {
    background: #0b1c39;
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

    .top-bar i {
        color: #ffc107;
        margin-right: 8px;
    }

/*=================================================
            PREMIUM GLASS NAVBAR
==================================================*/

#mainNavbar {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 18px 0;
    background: transparent;
    transition: all .45s ease;
}

    #mainNavbar.scrolled {
        top: 0;
        background: rgba(255,255,255,.95);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-shadow: 0 8px 30px rgba(0,0,0,.12);
        padding: 10px 0;
    }

/* Non-home pages */

body:not(.home-page) #mainNavbar {
    top: 0;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
}

/* Logo */

.hospital-name {
    color: #0d6efd;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: .5px;
    transition: .3s;
}

.hospital-tagline {
    color: #777;
    font-size: 14px;
}

/* Menu */

.navbar-nav .nav-link {
    position: relative;
    color: #fff !important;
    font-weight: 600;
    margin: 0 4px;
    transition: .35s;
}

#mainNavbar.scrolled .nav-link,
body:not(.home-page) #mainNavbar .nav-link {
    color: #222 !important;
}

.navbar-nav .nav-link:hover {
    color: #0d6efd !important;
}

/* Animated underline */

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 20%;
    bottom: 4px;
    width: 0;
    height: 3px;
    border-radius: 50px;
    background: #0d6efd;
    transition: .35s;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

/* Active */

.navbar-nav .nav-link.active {
    color: #0d6efd !important;
}

/* Appointment Button */

.btn-book {
    background: linear-gradient(135deg,#0d6efd,#26b4ff);
    color: #fff;
    padding: 11px 28px;
    border-radius: 40px;
    font-weight: 700;
    border: none;
    transition: .35s;
    box-shadow: 0 10px 25px rgba(13,110,253,.35);
}

    .btn-book:hover {
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 18px 35px rgba(13,110,253,.45);
    }

/* Mobile */

.navbar-toggler {
    border: none;
    box-shadow: none !important;
}

@media(max-width:991px) {

    #mainNavbar {
        top: 0;
        background: #fff;
        box-shadow: 0 5px 20px rgba(0,0,0,.08);
    }

    .navbar-collapse {
        margin-top: 15px;
        background: #fff;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0,0,0,.1);
    }

    .navbar-nav .nav-link {
        color: #222 !important;
        padding: 10px 0;
    }
}
/*=================================
        WEBSITE LOGO
==================================*/

.navbar-brand {
    text-decoration: none;
}

.hospital-logo {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 18px rgba(0,0,0,.15);
    transition: .3s;
}

.navbar-brand:hover .hospital-logo {
    transform: rotate(5deg) scale(1.06);
}

.hospital-info {
    line-height: 1.2;
}

.hospital-title {
    font-size: 28px;
    font-weight: 700;
    color: #0B4F8C;
    margin: 0;
}

.hospital-tagline {
    font-size: 14px;
    color: #666;
    font-style: italic;
    letter-spacing: .5px;
}
/*==================================================
                WHY CHOOSE US
==================================================*/

.why-us {
    background: #f8fbff;
}

.section-badge {
    display: inline-block;
    background: #eaf4ff;
    color: #0d6efd;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: #163269;
}

.section-subtitle {
    color: #6c757d;
    max-width: 700px;
    margin: auto;
}

.why-card {
    background: #fff;
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    transition: .4s;
    box-shadow: 0 15px 40px rgba(0,0,0,.06);
    height: 100%;
}

    .why-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 25px 55px rgba(13,110,253,.18);
    }

.why-icon {
    width: 90px;
    height: 90px;
    margin: auto;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    color: #fff;
    background: linear-gradient(135deg,#0d6efd,#18b7ff);
    margin-bottom: 25px;
    transition: .35s;
}

.why-card:hover .why-icon {
    transform: rotate(10deg) scale(1.08);
}

.why-card h4 {
    font-weight: 700;
    margin-bottom: 18px;
}

.why-card p {
    color: #666;
    line-height: 1.8;
}
/*=========================================
        PREMIUM SERVICES
=========================================*/

.services-section {
    background: #ffffff;
}

.service-card {
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    transition: .4s;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

    .service-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 30px 60px rgba(13,110,253,.18);
    }

.service-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: .5s;
}

.service-card:hover .service-img {
    transform: scale(1.08);
}

.service-body {
    padding: 30px;
    text-align: center;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: -70px auto 20px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

    .service-icon i {
        font-size: 34px;
        color: #0d6efd;
    }

.service-body h4 {
    font-weight: 700;
    margin-bottom: 15px;
}

.service-body p {
    color: #666;
    line-height: 1.8;
    min-height: 90px;
}

.service-card .btn {
    transition: .3s;
}

.service-card:hover .btn {
    background: #0d6efd;
    color: #fff;
}
/*=========================================
        PREMIUM DOCTORS
=========================================*/

.doctors-section {
    background: #f8fbff;
}

.doctor-card {
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    transition: .4s;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

    .doctor-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 30px 60px rgba(13,110,253,.18);
    }

.doctor-image {
    position: relative;
    overflow: hidden;
}

    .doctor-image img {
        width: 100%;
        height: 340px;
        object-fit: cover;
        transition: .5s;
    }

.doctor-card:hover img {
    transform: scale(1.08);
}

.doctor-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,110,253,.75);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: .4s;
}

.doctor-card:hover .doctor-overlay {
    opacity: 1;
}

.doctor-overlay a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: .3s;
}

    .doctor-overlay a:hover {
        transform: scale(1.1);
    }

.doctor-body {
    padding: 30px;
    text-align: center;
}

    .doctor-body h4 {
        font-weight: 700;
    }

.doctor-speciality {
    color: #0d6efd;
    font-weight: 600;
}

.experience {
    display: inline-block;
    margin-top: 15px;
    background: #eef6ff;
    color: #0d6efd;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
}
/*=========================================
            PREMIUM GALLERY
=========================================*/

.gallery-section {
    background: #fff;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
    cursor: pointer;
}

    .gallery-item img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        transition: .5s;
    }

    .gallery-item:hover img {
        transform: scale(1.12);
    }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( rgba(0,0,0,.1), rgba(0,0,0,.75) );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    opacity: 0;
    transition: .4s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h5 {
    margin-bottom: 18px;
    font-weight: 700;
}

.gallery-overlay a {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #fff;
    color: #0d6efd;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    text-decoration: none;
    transition: .3s;
}

    .gallery-overlay a:hover {
        transform: scale(1.15);
    }
.main-content {
    padding-top: 90px;
}

.hero-section {
    margin-top: -90px;
}
/* ===========================
      Premium Navbar
=========================== */

#mainNavbar {
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    transition: .4s;
}

    #mainNavbar .nav-link {
        color: #183B73;
        font-size: 16px;
        font-weight: 600;
        margin: 0 6px;
        position: relative;
    }

        #mainNavbar .nav-link:hover {
            color: #0d6efd;
        }

        #mainNavbar .nav-link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 3px;
            background: #0d6efd;
            bottom: 4px;
            left: 50%;
            transition: .3s;
        }

        #mainNavbar .nav-link:hover::after {
            width: 80%;
            left: 10%;
        }

        #mainNavbar .nav-link.active {
            color: #0d6efd;
        }

            #mainNavbar .nav-link.active::after {
                width: 80%;
                left: 10%;
            }

.dropdown-menu {
    border: none;
    border-radius: 15px;
    padding: 10px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 15px;
}

    .dropdown-item:hover {
        background: #0d6efd;
        color: #fff;
    }

.navbar .btn {
    font-weight: 600;
    padding: 11px 25px;
    border-radius: 50px;
}
.card {
    border-radius: 14px;
}

.card-header {
    font-weight: 600;
    font-size: 17px;
}

.form-control,
.form-select {
    border-radius: 10px;
}

    .form-control:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 10px rgba(13,110,253,.25);
    }

.btn-lg {
    border-radius: 12px;
}

.img-thumbnail {
    transition: .3s;
}

    .img-thumbnail:hover {
        transform: scale(1.05);
    }

.card:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 6px 18px rgba(0,0,0,.3);
    transition: .3s;
}

    .float-btn:hover {
        transform: scale(1.1);
        color: #fff;
    }

.call-btn {
    background: #0d6efd;
}

.whatsapp-btn {
    background: #25D366;
}

.appointment-btn {
    background: #dc3545;
}
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.float-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    transition: .3s;
}

    .float-btn:hover {
        transform: translateY(-3px) scale(1.08);
        color: #fff;
    }

.call-btn {
    background: #0d6efd;
}

.whatsapp-btn {
    background: #25D366;
}

.appointment-btn {
    background: #dc3545;
}

@media(max-width:768px) {
    .floating-buttons {
        right: 12px;
        bottom: 90px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
/*=====================================================
            PREMIUM HOSPITAL PRELOADER
======================================================*/

#preloader {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: .8s;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    animation: pulse 2s infinite;
}

.preloader-content h2 {
    margin-top: 20px;
    color: #0d6efd;
    font-weight: 700;
}

.preloader-content p {
    color: #777;
    margin-bottom: 20px;
}

.heart {
    font-size: 38px;
    color: #ff3366;
    animation: heartbeat 1s infinite;
}

.loading-text {
    display: block;
    margin-top: 20px;
    color: #888;
    letter-spacing: 2px;
    font-weight: 600;
}

.ecg {
    width: 320px;
    height: 60px;
    margin: auto;
}

    .ecg path {
        fill: none;
        stroke: #0d6efd;
        stroke-width: 4;
        stroke-linejoin: round;
        stroke-linecap: round;
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
        animation: ecg 2s linear infinite;
    }

@keyframes ecg {

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes heartbeat {

    0% {
        transform: scale(1);
    }

    20% {
        transform: scale(1.25);
    }

    40% {
        transform: scale(1);
    }

    60% {
        transform: scale(1.25);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes pulse {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}