:root {
    /* Premium Healthcare Palette */
    --primary-color: #0077b6;
    /* Richer, trustworthy blue */
    --primary-dark: #023e8a;
    --secondary-color: #00b4d8;
    /* Bright cyan for accents */
    --accent-color: #48cae4;
    --text-dark: #1b263b;
    /* Deep navy almost black */
    --text-muted: #5c677d;
    --light-bg: #f8f9fa;
    --light-alt: #e9ecef;
    --white: #ffffff;
    --success: #2a9d8f;

    /* Modern Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* RGB for transparency */
    --primary-color-rgb: 0, 119, 182;
}

/* Typography & Global */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--light-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    transition: var(--transition-base);
}

/* Navbar */
.navbar {
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e0faff 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    /* Pill shape */
    transition: var(--transition-base);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 119, 182, 0.4);
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.2);
}

/* Cards & Features */
.section-padding {
    padding: 80px 0;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 119, 182, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.1), rgba(0, 119, 182, 0.2));
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
}

.feature-card:hover .icon-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: rotateY(360deg);
}

/* Footer */
footer.footer {
    background-color: #0b1120;
    /* Very dark navy */
    color: #94a3b8;
    padding: 80px 0 30px;
    margin-top: auto;
}

.footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-link {
    display: block;
    color: #94a3b8;
    margin-bottom: 0.75rem;
    transition: var(--transition-base);
}

.footer-link:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-3px);
}

/* Forms */
.form-control {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.1);
    border-color: var(--primary-color);
    background-color: white;
}

.form-floating>label {
    padding: 0.75rem 1rem;
}

/* Helpers */
.text-primary-custom {
    color: var(--primary-color);
}

.bg-light-alt {
    background-color: var(--light-alt);
}

.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, rgba(0, 92, 170, 0.85) 0%, rgba(0, 168, 204, 0.8) 100%), url('https://images.unsplash.com/photo-1505751172876-fa1923c5c528?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    color: var(--white);
    text-align: center;
    margin-bottom: 0;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(2, 62, 138, 0.9) 0%, rgba(0, 119, 182, 0.85) 100%), url('https://images.unsplash.com/photo-1551434678-e076c223a692?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
    color: var(--white);
    text-align: center;
    position: relative;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section .lead {
    color: rgba(255, 255, 255, 0.9);
}

/* Stats Section Dark Variant */
.stats-section-dark {
    background: linear-gradient(135deg, rgba(2, 62, 138, 0.9) 0%, rgba(0, 119, 182, 0.85) 100%), url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stats-section-dark .feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.stats-section-dark .feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

/* Workflow Steps */
.workflow-step {
    position: relative;
    z-index: 2;
}

.workflow-circle {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    transition: var(--transition-base);
    border: 3px solid var(--white);
}

.workflow-step:hover .workflow-circle {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.workflow-step:hover .workflow-circle span {
    color: var(--white) !important;
}

/* Workflow Section Unique (Process Cards) */
.workflow-section-unique {
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
    position: relative;
    overflow: hidden;
}

.workflow-section-unique::before {
    /* Subtle background pattern */
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: radial-gradient(#bae6fd 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.4;
    z-index: 0;
}

.process-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
    height: 100%;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -5px rgba(0, 119, 182, 0.15);
    border-color: rgba(0, 119, 182, 0.3);
}

.process-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 119, 182, 0.2);
    position: relative;
    z-index: 2;
}

.process-watermark {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 6rem;
    font-weight: 800;
    color: #f1f5f9;
    z-index: 1;
    line-height: 1;
    opacity: 0.8;
}

.process-card h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    position: relative;
    z-index: 2;
}

.process-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* Connector Chevron (Desktop) */
@media (min-width: 992px) {
    .workflow-col:not(:last-child)::after {
        content: '\f054';
        /* fa-chevron-right */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        top: 50%;
        right: -10px;
        transform: translateY(-50%);
        font-size: 1.5rem;
        color: #cbd5e1;
        z-index: 1;
    }
}

/* Features Section with Cover Image */
.features-section-cover {
    background: linear-gradient(rgba(248, 249, 250, 0.9), rgba(248, 249, 250, 0.9)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.feature-card-hover {
    transition: var(--transition-base);
}

.feature-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

/* Contact Map Section */
.contact-map-section {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.map-container {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

/* Define primary color RGB for use in rgba() */
:root {
    --primary-color-rgb: 0, 119, 182;
    /* Example RGB for a common blue, adjust as needed */
}

/* Unique Language Switcher */
.lang-switcher-container {
    margin-left: 1.5rem;
    position: relative;
    z-index: 1030;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(var(--primary-color-rgb), 0.08);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(var(--primary-color-rgb), 0.15);
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
}

.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.3);
}

.lang-btn .fa-globe {
    font-size: 1.2rem;
    animation: rotateGlobe 12s linear infinite;
    color: var(--primary-color);
    transition: color 0.4s;
}

.lang-btn:hover .fa-globe,
.lang-btn[aria-expanded="true"] .fa-globe {
    color: white;
}

@keyframes rotateGlobe {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.lang-dropdown {
    min-width: 220px;
    padding: 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.9) !important;
    margin-top: 15px !important;
    transform-origin: top right;
    animation: dropdownPop 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes dropdownPop {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lang-item-form {
    margin: 0;
    padding: 0;
}

.lang-item-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 10px 15px;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
}

.lang-item-btn:last-child {
    margin-bottom: 0;
}

.lang-item-btn i {
    width: 20px;
    font-size: 1rem;
    color: var(--primary-color);
    opacity: 0.6;
    transition: all 0.3s;
}

.lang-item-btn.active {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

.lang-item-btn.active i {
    opacity: 1;
}

.lang-item-btn:hover:not(.active) {
    background: white;
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.lang-item-btn:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* Mobile Adjustments for Switcher */
@media (max-width: 991.98px) {
    .lang-switcher-container {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }

    .lang-btn {
        justify-content: center;
    }

    .lang-dropdown {
        width: 100%;
        margin-top: 5px !important;
    }
}

/* Testimonial Slider Enhancements */
.testimonial-letter-card {
    transition: var(--transition-base);
    cursor: pointer;
}

.testimonial-letter-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover) !important;
    border-color: var(--primary-color) !important;
}

.testimonial-img-zoom {
    transition: transform 0.5s ease;
    cursor: zoom-in;
}

.testimonial-letter-card:hover .testimonial-img-zoom {
    transform: scale(1.05);
}

.custom-carousel-ctrl {
    width: 5%;
    opacity: 0.8;
}

.custom-carousel-ctrl:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    background-size: 60%;
    width: 3rem;
    height: 3rem;
    box-shadow: var(--shadow-md);
}

.testimonial-icon-box {
    width: 50px;
    height: 50px;
    transition: var(--transition-base);
}

.testimonial-letter-card:hover .testimonial-icon-box {
    transform: rotateY(360deg);
}

.mb-n5 {
    margin-bottom: -3rem !important;
}

/* Fix for Carousel Item overflow */
.carousel-inner {
    overflow: visible;
}