
        :root {
            --primary-color: #6366f1;
            --secondary-color: #8b5cf6;
            --accent-color: #06b6d4;
            --text-dark: #1e293b;
            --text-light: #64748b;
            --bg-light: #f8fafc;
            --white: #ffffff;
            --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

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

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Poppins', sans-serif;
            font-weight: 600;
        }

        /* Navigation */
        .navbar {
            background: var(--white);
            box-shadow: var(--shadow-sm);
            padding: 1rem 0;
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
        }

        .navbar-brand {
            font-family: 'Poppins', sans-serif;
            font-weight: 700;
            font-size: 1.5rem;
            color: var(--primary-color) !important;
        }

        .navbar-nav .nav-link {
            font-weight: 500;
            color: var(--text-dark) !important;
            margin: 0 10px;
            transition: color 0.3s ease;
        }

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

        
        .navbar-nav .btn {
            padding: 0.4rem 0.9rem;
            font-size: 15px;
        }

        .navbar-nav .nav-item.ms-3 {
            margin-left: 1rem !important; 
        }

        @media (max-width: 1199.98px) {
        .navbar-nav .nav-link {
            padding: 0.5rem 0.5rem;
            font-size: 14px;
        }

        .navbar-nav .btn {
            font-size: 14px;
            padding: 0.35rem 0.8rem;
         }
        }


        .btn-primary {
            background: var(--gradient-primary);
            border: none;
            padding: 12px 30px;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        /* Buttons will be stacked on small screens */
        @media (max-width: 576px) {
        .d-flex.justify-content-center.gap-3.mb-5 {
            flex-direction: column;
            align-items: center;
         }

        .d-flex.justify-content-center.gap-3.mb-5 a.btn {
            width: 100%;
            max-width: 300px; 
         }
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        .btn-outline-primary {
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
            padding: 12px 30px;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .btn-outline-primary:hover {
            background: var(--primary-color);
            color: white;
            transform: translateY(-2px);
        }

        /* 404 Section */
        .error-section {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 120px 0 50px;
            position: relative;
            overflow: hidden;
        }

        .error-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="medical-pattern" patternUnits="userSpaceOnUse" width="40" height="40"><circle cx="20" cy="20" r="1.5" fill="%236366f1" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23medical-pattern)"/></svg>');
        }

        .error-content {
            text-align: center;
            position: relative;
            z-index: 2;
        }

        .error-number {
            font-size: 12rem;
            font-weight: 800;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1;
            margin-bottom: 2rem;
            position: relative;
        }

        .error-number::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 200px;
            height: 200px;
            background: var(--gradient-primary);
            border-radius: 50%;
            opacity: 0.1;
            z-index: -1;
        }

        .error-title {
            font-size: 3rem;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 1.5rem;
        }

        .error-subtitle {
            font-size: 1.5rem;
            color: var(--text-light);
            margin-bottom: 2rem;
        }

        .error-description {
            font-size: 1.1rem;
            color: var(--text-light);
            margin-bottom: 3rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .search-box {
            background: var(--white);
            border-radius: 50px;
            padding: 10px;
            box-shadow: var(--shadow-md);
            margin: 2rem auto;
            max-width: 500px;
            display: flex;
            align-items: center;
        }

        .search-input {
            border: none;
            outline: none;
            flex: 1;
            padding: 15px 20px;
            font-size: 1rem;
            background: transparent;
            min-width: 0; 
        }

        .search-btn {
            background: var(--gradient-primary);
            border: none;
            border-radius: 50px;
            padding: 15px 25px;
            color: white;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .search-btn:hover {
            transform: scale(1.05);
            box-shadow: var(--shadow-md);
        }

        .helpful-links {
            margin-top: 3rem;
        }

        .link-card {
            background: var(--white);
            border-radius: 15px;
            padding: 30px;
            box-shadow: var(--shadow-md);
            transition: all 0.3s ease;
            text-decoration: none;
            color: var(--text-dark);
            display: block;
            margin-bottom: 20px;
        }

        .link-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
            color: var(--text-dark);
        }

        .link-icon {
            width: 60px;
            height: 60px;
            background: var(--gradient-primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            margin: 0 auto 15px;
            transition: all 0.3s ease;
        }

        .link-card:hover .link-icon {
            transform: scale(1.1);
        }

        /* Footer */
        .footer {
            background: var(--gradient-primary);
            color: white;
            padding: 80px 0 30px;
        }

        .footer h5 {
            color: white;
            margin-bottom: 20px;
        }

        .footer a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer a:hover {
            color: white;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .error-number {
                font-size: 8rem;
            }
            
            .error-title {
                font-size: 2rem;
            }
            
            .error-subtitle {
                font-size: 1.2rem;
            }
            
            .error-description {
                font-size: 1rem;
                padding: 0 20px;
            }
            
            .search-box {
                margin: 2rem 20px;
            }
            
            .link-card {
                margin: 0 20px 20px;
            }
        }

        /* Animations */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .bounce {
            animation: bounce 2s infinite;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-10px);
            }
            60% {
                transform: translateY(-5px);
            }
        }


        @media (max-width: 991.98px) {
        .navbar-collapse {
            max-height: 80vh; 
            overflow-y: auto; 
         }

        .dropdown-menu {
           position: static; 
           float: none;
         }
        }