:root {
    --bs-primary: #0B1F3A !important;
    --bs-primary-rgb: 11, 31, 58 !important;
    --bs-link-color: #0B1F3A !important;
    --bs-link-hover-color: #08172c !important;
    --primary-color: #0B1F3A; /* Navy Blue */
    --secondary-color: #D62828; /* Medical Red */
    --light-color: #FFFFFF; /* White */
    --text-color: #333333;
    --gray-bg: #f8f9fa; /* Light Gray */
}

/* Global Override: Replace #0d6efd with #0B1F3A */
.bg-primary {
    background-color: #0B1F3A !important;
}
.text-primary {
    color: #0B1F3A !important;
}
.border-primary {
    border-color: #0B1F3A !important;
}
.btn-primary {
    background-color: #0B1F3A !important;
    border-color: #0B1F3A !important;
}
.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active {
    background-color: #08172c !important;
    border-color: #08172c !important;
}
.btn-outline-primary {
    color: #0B1F3A !important;
    border-color: #0B1F3A !important;
}
.btn-outline-primary:hover {
    background-color: #0B1F3A !important;
    color: #FFFFFF !important;
}
.page-item.active .page-link {
    background-color: #0B1F3A !important;
    border-color: #0B1F3A !important;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
}

.bg-primary h1, 
.bg-primary h2, 
.bg-primary h3, 
.bg-primary h4, 
.bg-primary h5, 
.bg-primary h6,
.text-white h1, 
.text-white h2, 
.text-white h3, 
.text-white h4, 
.text-white h5, 
.text-white h6,
.card.bg-primary h1,
.card.bg-primary h2,
.card.bg-primary h3,
.card.bg-primary h4,
.card.bg-primary h5,
.card.bg-primary h6 {
    color: #ffffff !important;
}

/* Modern Gradient Background for Sections */
.bg-modern-gradient {
    position: relative;
    background-color: #ffffff;
    overflow: hidden;
}
.bg-modern-gradient::before,
.bg-modern-gradient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: pulseBlob 10s infinite alternate ease-in-out;
}
.bg-modern-gradient::before {
    top: -10%; left: -10%;
    width: 500px; height: 500px;
    background: rgba(11, 31, 58, 0.08); /* Navy Blue soft blob */
}
.bg-modern-gradient::after {
    bottom: -10%; right: -10%;
    width: 600px; height: 600px;
    background: rgba(11, 31, 58, 0.05); /* Lighter Navy blob */
    animation-delay: -5s;
    animation-duration: 12s;
}
@keyframes pulseBlob {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.1) translate(20px, 30px); }
    100% { transform: scale(0.9) translate(-20px, -10px); }
}
.bg-modern-gradient > .container {
    position: relative;
    z-index: 1;
}

/* Floating Image Animation */
.floating-img {
    animation: floating 4s ease-in-out infinite;
}
@keyframes floating {
    0% { transform: translateY(0px); box-shadow: 0 10px 30px rgba(11, 31, 58, 0.15); }
    50% { transform: translateY(-15px); box-shadow: 0 25px 40px rgba(11, 31, 58, 0.25); }
    100% { transform: translateY(0px); box-shadow: 0 10px 30px rgba(11, 31, 58, 0.15); }
}

.bg-light-gray { background-color: var(--gray-bg); }

/* Header & Navbar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 8px 0;
    font-size: 0.9rem;
}
.top-bar a {
    color: var(--light-color);
    text-decoration: none;
    margin-right: 15px;
}

.navbar {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}
.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 15px;
    padding: 10px 15px !important;
    color: var(--primary-color) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.3s;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
}

/* Mobile Offcanvas Left Side Menu & Responsive Services Dropdown */
@media (max-width: 991.98px) {
    #mobileOffcanvasNav.offcanvas-start {
        width: 320px !important;
        max-width: 85vw !important;
        background-color: #ffffff !important;
        box-shadow: 5px 0 25px rgba(0,0,0,0.15) !important;
    }
    #mobileOffcanvasNav .nav-link {
        font-size: 16px !important;
        color: #0B1F3A !important;
        padding: 10px 0 !important;
    }
    #mobileOffcanvasNav .nav-link.active {
        color: #D62828 !important;
    }
    #mobileOffcanvasNav .dropdown-menu {
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding-left: 0 !important;
    }
    #mobileOffcanvasNav .dropdown-item {
        white-space: normal !important;
        word-wrap: break-word !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
        display: flex !important;
        align-items: flex-start !important;
        padding: 8px 10px !important;
        font-size: 14.5px !important;
        line-height: 1.4 !important;
    }
    #mobileOffcanvasNav .dropdown-item i {
        flex-shrink: 0 !important;
        margin-top: 3px !important;
    }
    .mega-menu {
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        padding: 10px 0 !important;
        background: transparent !important;
    }
    .mega-menu-list {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }
}

/* Premium Mega Menu Styling */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(11, 31, 58, 0.12) !important;
    border-top: 4px solid var(--medical-red); 
    margin-top: 0;
    animation: slideUp 0.3s ease forwards;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
}
.mega-menu {
    width: 650px !important;
    max-width: 90vw;
}
.mega-menu-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 20px;
}
.dropdown-item {
    padding: 10px 15px;
    font-size: 14.5px;
    font-weight: 500;
    color: #444;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}
.dropdown-item i {
    color: var(--medical-red);
    opacity: 0.6;
    margin-right: 12px;
    font-size: 13px;
    transition: all 0.3s ease;
}
.dropdown-item:hover i {
    opacity: 1;
    transform: scale(1.2);
}
.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(214, 40, 40, 0.05), transparent);
    color: var(--primary-color);
    padding-left: 20px; 
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: #b71c1c;
    border-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(211, 47, 47, 0.3);
}
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* Hero Carousel Section */
.hero-slider .carousel-item {
    height: 90vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(11, 31, 58, 0.6); /* Navy Blue Overlay */
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}
.hero-content h1 {
    color: var(--light-color);
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.hero-content h3 {
    color: var(--light-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
}
.carousel-indicators {
    z-index: 3;
}
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
}

/* Mobile View Hero & Page Banner Responsive Fit */
@media (max-width: 767.98px) {
    .hero-slider .carousel-item {
        height: auto !important;
        min-height: 400px !important;
        padding: 50px 0 !important;
        background-size: cover !important;
        background-position: center center !important;
    }
    .hero-content {
        padding: 15px 10px !important;
        text-align: center !important;
    }
    .hero-content h1,
    .hero-content h1.display-3 {
        font-size: 1.75rem !important;
        line-height: 1.25 !important;
        margin-bottom: 12px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    .hero-content h3 {
        font-size: 1.15rem !important;
        margin-bottom: 10px !important;
    }
    .hero-content p, 
    .hero-content .lead {
        font-size: 0.95rem !important;
        margin-bottom: 25px !important;
    }
    .page-banner, 
    section.page-banner, 
    div.page-banner {
        padding: 35px 15px !important;
        min-height: auto !important;
        background-size: cover !important;
        background-position: center center !important;
    }
    .page-banner h1, 
    .page-banner h2 {
        font-size: 1.6rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
}

/* Page Banner Styling - Titles & Breadcrumbs White */
.page-banner,
section.page-banner,
div.page-banner {
    position: relative !important;
    background-color: #0B1F3A !important;
    background-image: linear-gradient(rgba(11, 31, 58, 0.85), rgba(11, 31, 58, 0.85)), url('../images/page-banner-bg.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: #ffffff !important;
}

.page-banner h1, 
.page-banner h2, 
.page-banner h3,
.page-banner h4,
.page-banner p,
.page-banner .breadcrumb-item, 
.page-banner .breadcrumb-item a,
.page-banner .breadcrumb-item.active {
    color: #ffffff !important;
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Light Buttons inside Dark Sections & Cards */
.btn-light,
.btn-light.text-primary,
.bg-primary .btn-light,
.page-banner .btn-light,
a.btn-light {
    background-color: #ffffff !important;
    color: #0B1F3A !important;
    border-color: #ffffff !important;
}

.btn-light:hover,
.btn-light.text-primary:hover,
.bg-primary .btn-light:hover,
a.btn-light:hover {
    background-color: #f8f9fa !important;
    color: #D62828 !important;
    border-color: #f8f9fa !important;
}

/* Sections */
.section-padding {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Service Cards */
.service-card {
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    border-bottom: 4px solid transparent;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom-color: var(--secondary-color);
}
.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: #cbd5e1;
    padding: 60px 0 20px;
}
.footer h5 {
    color: var(--light-color);
    margin-bottom: 25px;
}
.footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.3s;
}
.footer a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}
.social-icons a:hover {
    background: var(--secondary-color);
    color: var(--light-color);
    transform: translateY(-2px);
}
.contact-social-icons a {
    background: #0B1F3A !important;
    color: #ffffff !important;
}
.contact-social-icons a:hover {
    background: #D62828 !important;
    color: #ffffff !important;
}

/* Floating Buttons */
.floating-buttons-container {
    position: fixed;
    bottom: 30px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.floating-whatsapp, .floating-call {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white !important;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
    text-decoration: none;
    animation: bounceUpDown 3s infinite ease-in-out;
}

.floating-whatsapp {
    background-color: #25d366;
    /* Optional: Slight animation delay so they bounce together but offset */
}

.floating-call {
    background-color: #2b56af; /* Isoglobin standard blue for call */
    animation-delay: 0.5s;
}

.floating-whatsapp:hover, .floating-call:hover {
    transform: scale(1.1);
    animation-play-state: paused;
}

@keyframes bounceUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animations */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}
[data-aos].aos-animate {
    opacity: 1;
}

/* Shimmer Background */
.shimmer-bg {
    background: linear-gradient(120deg, #fdfbfb 25%, #ebedee 50%, #fdfbfb 75%);
    background-size: 200% 100%;
    animation: shimmerEffect 6s infinite linear;
}
@keyframes shimmerEffect {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Service Card Hover Top Border */
.service-card {
    transition: all 0.3s ease;
    border-top: 4px solid transparent !important;
}
.service-card:hover {
    border-top: 4px solid #dc3545 !important;
    transform: translateY(-5px);
}

/* Remove text underline from address and links */
a, a:hover, a:focus, a:active {
    text-decoration: none !important;
}
.address-link, .address-link * {
    text-decoration: none !important;
}
