/* ============================================
   MEDICAL WEBSITE - PROFESSIONAL COLOR SCHEME
   ============================================ */

:root {
    /* PRIMARY COLORS - Medical Professional Blue */
    --primary-color: #0066CC;
    --primary-dark: #004A99;
    --primary-light: #E6F0FF;
    --primary-gradient: linear-gradient(135deg, #0066CC 0%, #00A86B 100%);


    /* SECONDARY COLORS - Medical Teal/Green */
    --secondary-color: #00A86B;
    --secondary-dark: #007A52;
    --secondary-light: #E6F9F0;

    /* ACCENT COLORS */
    --accent-color: #00C9A7;

    /* STATUS COLORS */
    --success-color: #00A86B;
    --success: #00A86B;
    --warning-color: #FF9500;
    --danger-color: #DC2626;
    --danger: #DC2626;
    --info-color: #0066CC;

    /* TEXT COLORS - Medical Professional */
    --text-main: #0B1929;
    --text-dark: #1F3A5F;
    --text-primary: #1F3A5F;
    --text-secondary: #5A7A9D;
    --text-light: #8FA3C0;
    --text-muted: #A7B9D1;
    --dark-color: #0B1929;

    /* BACKGROUND COLORS - Clean & Professional */
    --bg-body: #F8FAFB;
    --bg-light: #FFFFFF;
    --bg-lighter: #F3F6F9;
    --bg-surface: #FFFFFF;
    --bg-card: #FFFFFF;

    /* NAVIGATION */
    --nav-bg: rgba(255, 255, 255, 0.98);
    --nav-bg-light: #FFFFFF;

    /* DARK MODE */
    --dark-bg: #0B1929;
    --dark-bg-light: #1F3A5F;

    /* LIGHT COLOR */
    --light-color: #F3F6F9;

    /* BORDERS - Medical Subtle */
    --border-color: #D5E0EB;
    --border-light: rgba(15, 58, 95, 0.08);
    --border-lighter: rgba(15, 58, 95, 0.04);

    /* RADIUS */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    /* TRANSITIONS */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;

    /* SHADOWS - Medical Subtle */
    --shadow-sm: 0 2px 6px rgba(15, 58, 95, 0.05);
    --shadow-md: 0 8px 20px rgba(15, 58, 95, 0.08);
    --shadow-lg: 0 15px 35px rgba(15, 58, 95, 0.12);
    --shadow-xl: 0 25px 50px rgba(15, 58, 95, 0.16);
    --shadow-hover: 0 18px 40px rgba(0, 102, 204, 0.16);
    --card-hover-shadow: 0 18px 40px rgba(0, 168, 107, 0.12);

    /* OVERLAYS */
    --overlay-light: rgba(255, 255, 255, 0.75);
    --overlay-dark: rgba(15, 58, 95, 0.65);

    /* GLASS MORPHISM */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth !important;
    scroll-padding-top: 100px;
}

* {
    transition: color 0.15s ease, background-color 0.15s ease;
}

body {
    font-family: "Inter", "Poppins", "Noto Sans", "Noto Sans Devanagari", "Segoe UI", Arial, sans-serif;
    background-color: var(--bg-body);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-dark);
    overflow-x: hidden;
    will-change: scroll-position;
}


/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar { 
    width: 5px; 
}

::-webkit-scrollbar-track { 
    background: transparent; 
}

::-webkit-scrollbar-thumb { 
    background: rgba(95, 122, 157, 0.3); 
    border-radius: 20px; 
}

::-webkit-scrollbar-thumb:hover { 
    background: rgba(95, 122, 157, 0.5); 
}

/* ===== TOP HEADER BAR ===== */
.top-header {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0F2847 100%);
    color: #D5E0EB;
    height: 50px;
    max-height: 50px;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(0, 102, 204, 0.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.top-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.top-header a { 
    color: #A7B9D1; 
    text-decoration: none; 
    transition: all 0.2s ease; 
    font-weight: 500; 
}

.top-header a:hover { 
    color: var(--primary-color); 
}

.top-header-left { 
    display: flex; 
    gap: 2.25rem; 
    align-items: center; 
}

.top-header-contact { 
    display: flex; 
    gap: 2rem; 
    align-items: center; 
}

.top-header-contact-item { 
    display: flex; 
    align-items: center; 
    gap: 0.6rem; 
    transition: all 0.2s ease; 
    border-radius: 6px; 
}

.top-header-contact-item:hover { 
    color: white; 
    transform: translateX(2px); 
}

.top-header-contact-item i { 
    color: var(--primary-color); 
    font-size: 0.88rem; 
    transition: transform 0.2s ease; 
}

.top-header-contact-item:hover i { 
    transform: scale(1.15); 
}

.top-header-utility {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.14), rgba(0, 168, 107, 0.1));
    padding: 0.25rem 1rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
}

.utility-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon { 
    0%, 100% { 
        opacity: 1; 
        transform: scale(1); 
    } 
    50% { 
        opacity: 0.65; 
        transform: scale(1.08); 
    } 
}

.top-header-social { 
    display: flex; 
    gap: 0.5rem; 
    align-items: center; 
}

.social-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 102, 204, 0.12);
    color: rgba(0, 102, 204, 0.85);
    transition: all 0.22s ease;
    border: 1px solid rgba(0, 102, 204, 0.2);
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    transform: translateY(-2px) scale(1.1);
}

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1040;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(213, 224, 235, 0.85);
    will-change: transform, padding, background-color, box-shadow;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.35s ease,
                box-shadow 0.35s ease;
}

.navbar.scrolled {
    padding: 0.55rem 0;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(15, 58, 95, 0.06);
}

.navbar.nav-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .top-header {
        display: none !important;
    }
}

/* ===== BRAND LOGO ===== */
.navbar-brand { 
    font-weight: 800; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 1.35rem; 
    transition: transform 0.3s ease;
    color: var(--dark-color);
}

.navbar-brand-logo { 
    height: 48px; 
    transform: scale(1.2); 
    margin-left: 20px; 
    transition: all 0.4s ease; 
}

.navbar.scrolled .navbar-brand-logo { 
    height: 42px; 
    transform: scale(1.2); 
    margin-left: 20px;
}

/* ===== DESKTOP NAV LINKS ===== */
.navbar-nav { 
    gap: 0.35rem; 
}

.navbar-nav .nav-link { 
    color: var(--text-dark) !important; 
    font-weight: 500; 
    padding: 0.7rem 1rem !important; 
    position: relative; 
    transition: all 0.18s ease; 
    border-radius: 6px; 
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.navbar-nav .nav-link:hover { 
    color: var(--primary-color) !important; 
    background: rgba(0, 102, 204, 0.05); 
    transform: translateY(-1px); 
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { 
    width: 65%; 
}

.navbar-nav .nav-link.active { 
    color: var(--primary-color) !important; 
    background: rgba(0, 102, 204, 0.1); 
}

/* ===== DESKTOP DROPDOWN ===== */
@media (min-width: 992px) {
    .nav-item.dropdown:hover > .dropdown-menu { 
        display: block; 
        opacity: 1; 
        visibility: visible; 
        transform: translateY(0); 
    }
    
    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: all 0.2s ease;
        background: var(--nav-bg);
        border: 1px solid var(--border-light);
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.09);
        border-radius: 12px;
        padding: 0.75rem 0;
        margin-top: 0.5rem !important;
    }
}

.dropdown-item { 
    padding: 0.75rem 1.4rem; 
    transition: all 0.15s ease; 
    border-left: 3px solid transparent; 
    font-weight: 500; 
    display: flex; 
    align-items: center; 
    gap: 0.75rem;
    color: var(--text-dark);
}

.dropdown-item i { 
    width: 16px; 
    text-align: center; 
    color: var(--primary-color); 
    opacity: 0.7; 
    transition: all 0.18s ease; 
}

.dropdown-item:hover { 
    background: rgba(0, 102, 204, 0.08); 
    color: var(--primary-color); 
    border-left-color: var(--primary-color); 
    padding-left: 1.75rem; 
}

.dropdown-item:hover i { 
    opacity: 1; 
    transform: translateX(3px); 
}

/* ===== CTA & TOGGLER ===== */
.navbar-cta { 
    display: flex; 
    gap: 0.7rem; 
    align-items: center; 
}

.btn-primary,
.btn-outline-primary { 
    font-weight: 600; 
    padding: 0.65rem 1.5rem; 
    border-radius: 8px; 
    transition: all 0.22s ease; 
}

.btn-primary { 
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); 
    border: none; 
    color: white; 
}

.btn-primary:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 28px rgba(0, 102, 204, 0.38); 
}

.btn-outline-primary { 
    color: var(--primary-color); 
    border: 1.8px solid var(--primary-color); 
}

.btn-outline-primary:hover { 
    background: var(--primary-color); 
    color: white; 
    transform: translateY(-3px); 
}

.navbar-toggler { 
    border: none; 
    font-size: 1.4rem; 
    color: var(--primary-color); 
    padding: 0.5rem; 
    transition: all 0.2s ease; 
}

.navbar-toggler:hover { 
    transform: scale(1.15); 
}

/* ===== OFFCANVAS & MOBILE ===== */
.offcanvas { 
    background: var(--nav-bg); 
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12); 
}

.offcanvas-header { 
    border-bottom: 1px solid var(--border-light); 
    padding: 1.5rem; 
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05), rgba(0, 168, 107, 0.05)); 
}

.offcanvas-title { 
    font-weight: 700; 
    font-size: 1.2rem;
    color: var(--text-dark);
}

.offcanvas-body { 
    padding: 1rem 0; 
    overflow-y: auto; 
}

.offcanvas .nav-link {
    color: var(--text-dark) !important;
    padding: 1rem 1.4rem !important;
    border-left: 4px solid transparent;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.offcanvas .nav-link i:first-child { 
    width: 18px; 
    text-align: center; 
    color: var(--primary-color); 
    transition: all 0.2s ease; 
}

.offcanvas .nav-link:hover,
.offcanvas .nav-link.active { 
    background: rgba(0, 102, 204, 0.08); 
    border-left-color: var(--primary-color); 
    color: var(--primary-color) !important; 
    padding-left: 1.7rem !important; 
}

.offcanvas .dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border: solid var(--primary-color);
    border-width: 2px 2px 0 0;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-left: auto;
}

.offcanvas .dropdown-toggle.show::after { 
    transform: rotate(-135deg); 
}

.offcanvas .dropdown-menu {
    display: none;
    background: rgba(0, 102, 204, 0.03);
    border: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border-left: 3px solid var(--primary-color);
    position: static;
    box-shadow: none;
}

.offcanvas .dropdown-menu.show { 
    display: block; 
    animation: slideDownMobile 0.25s ease-out forwards; 
}

@keyframes slideDownMobile { 
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}

.offcanvas .dropdown-item {
    color: var(--text-secondary) !important;
    padding: 0.8rem 1.4rem 0.8rem 2.4rem !important;
    border-left: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
}

.offcanvas .dropdown-item::before {
    content: '';
    position: absolute;
    left: 1.4rem;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.2s ease;
}

.offcanvas .dropdown-item:hover { 
    color: var(--primary-color) !important; 
    background: rgba(0, 102, 204, 0.08) !important; 
    padding-left: 2.7rem !important; 
}

.offcanvas .dropdown-item:hover::before { 
    opacity: 1; 
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white !important;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    z-index: 1045;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.9);
    will-change: transform, opacity, visibility;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.4);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 102, 204, 0.55);
}

.scroll-to-top i {
    transition: transform 0.2s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
}