        :root {
            --primary-color: #4f46e5;
            --primary-hover: #4338ca;
            --secondary-color: #64748b;
            --light-bg: #f8fafc;
            --card-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
            --card-hover-shadow: rgba(0, 0, 0, 0.1) 0px 10px 20px;
            --card-border-radius: 16px;
            --btn-border-radius: 8px;
        }

        body {
            min-height: 100vh;
            background: url(https://portal.hef.co.ke/assets/app-assets/images/patterns/bg06.png);
            background-repeat: repeat;
            font-family: 'Inter', sans-serif;
            color: #1e293b;
            margin: 0;
            padding: 0;
            overflow-x: hidden; /* Prevent horizontal scroll */
        }

        .container {
            max-width: 1200px;
            padding: 0 15px; /* Reduced padding */
            width: 100%;
        }

        h1 {
            font-weight: 700;
            color: #1e293b;
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
        }

        .search-form {
            background-color: white;
            border-radius: 16px;
            padding: 1.5rem; /* Reduced padding for mobile */
            box-shadow: var(--card-shadow);
            margin-bottom: 2rem;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .form-label {
            font-weight: 500;
            margin-bottom: 0.5rem;
            color: #334155;
        }

        .form-control {
            border-radius: 8px;
            padding: 0.75rem 1rem;
            border: 1px solid #e2e8f0;
            font-size: 1rem;
        }

        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        .btn-primary {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
            border-radius: var(--btn-border-radius);
            font-weight: 500;
            padding: 0.75rem 1.5rem;
            transition: all 0.2s ease;
        }

        .btn-primary:hover, .btn-primary:focus {
            background-color: var(--primary-hover);
            border-color: var(--primary-hover);
            transform: translateY(-2px);
        }

        .btn-outline-primary {
            color: var(--primary-color);
            border-color: var(--primary-color);
            border-radius: var(--btn-border-radius);
            font-weight: 500;
        }

        .btn-outline-primary:hover, .btn-outline-primary.active {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }

        .btn-outline-success {
            border-radius: var(--btn-border-radius);
            font-weight: 500;
            padding: 0.4rem 0.75rem;
        }

        .profile-img {
            width: 100px;
            height: 100px;
            object-fit: cover;
            border-radius: 50%;
            border: 3px solid white;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .card {
            border: none;
            border-radius: var(--card-border-radius);
            overflow: hidden;
            box-shadow: var(--card-shadow);
            transition: all 0.3s ease;
            background-color: white;
            margin: auto;
            width: 100%; /* Ensure cards take full width of their container */
        }

        .card:hover {
            transform: translateY(-8px);
            box-shadow: var(--card-hover-shadow);
        }

        .card-body {
            padding: 1.75rem;
        }

        .card-title {
            font-weight: 600;
            font-size: 1.25rem;
            margin-bottom: 0.25rem;
        }

        .card-subtitle {
            font-weight: 500;
            color: var(--primary-color);
            margin-bottom: 0.75rem;
        }

        .card-text {
            color: var(--secondary-color);
            font-size: 0.95rem;
            line-height: 1.5;
        }

        .card-text i {
            width: 20px;
            color: var(--primary-color);
        }

        .card-footer {
            background-color: rgba(243, 244, 246, 0.5);
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            padding: 1rem 1.75rem;
        }

        .skills-container {
            margin-top: 1rem;
        }

        .skill-badge {
            display: inline-block;
            background-color: #f1f5f9;
            color: #475569;
            border-radius: 20px;
            padding: 0.25rem 0.75rem;
            margin-right: 0.5rem;
            margin-bottom: 0.5rem;
            font-size: 0.85rem;
            font-weight: 500;
        }

        .pagination {
            margin-top: 2rem;
            margin-bottom: 3rem;
        }

        .page-link {
            border-radius: 8px;
            margin: 0 0.25rem;
            color: var(--primary-color);
            border: 1px solid rgba(0, 0, 0, 0.1);
            padding: 0.5rem 0.75rem;
        }

        .page-item.active .page-link {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }

        .sort-options {
            background-color: white;
            border-radius: 12px;
            padding: 0.75rem 1rem;
            box-shadow: var(--card-shadow);
            width: 100%; /* Full width on mobile */
        }

        .alert-warning {
            border-radius: 12px;
            padding: 2rem;
            text-align: center;
            background-color: #fff7ed;
            color: #c2410c;
            border: 1px solid #ffedd5;
        }
        .btn-save {
            background-color: #f1f5f9;
            color: #475569;
            border-radius: 8px;
            padding: 0.4rem 0.75rem;
        }
        
        .btn-save:hover {
            background-color: #e2e8f0;
        }
        
        .btn-save.saved {
            color: #dc3545;
        }
        
        .contact-icons a {
            display: inline-block;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: #f1f5f9;
            text-align: center;
            line-height: 36px;
            margin-right: 0.5rem;
            color: #4f46e5;
            transition: all 0.3s ease;
        }
        
        .contact-icons a:hover {
            background-color: #4f46e5;
            color: white;
            transform: translateY(-3px);
        }
        .contact-icons span{
            text-decoration: none !important;
            color: black;
        }
        .modal-content {
            border-radius: 16px;
            overflow: hidden;
        }
        
        .modal-header {
            background-color: #f8fafc;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .modal-footer {
            background-color: #f8fafc;
            border-top: 1px solid #e2e8f0;
        }
        .modal-profile-img {
            width: 120px;
            height: 120px;
            object-fit: cover;
            border-radius: 50%;
            border: 3px solid white;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            margin: 0 auto;
        }
        .resume-btn {
            border-radius: 8px;
            padding: 0.75rem 1.5rem;
        }
        #modalPremiumBadge .badge, #modalVerifiedBadge .badge {
            font-size: 1em;
            vertical-align: middle;
        }
        /* Improved mobile styles */
        @media (max-width: 767px) {
            .profile-img {
                width: 80px; /* Smaller on mobile */
                height: 80px;
            }
            
            .card-body {
                padding: 1rem;
            }
            .card-title {
                font-size: 1rem;
            }
            
            .card-subtitle {
                font-size: 0.85rem;
            }
            
            .card-text {
                font-size: 0.8rem;
            }        
            .card-footer .btn {
                padding: 0.25rem 0.5rem;
                font-size: 0.75rem;
            }
            h1 {
                font-size: 1.75rem; /* Smaller heading on mobile */
            }
            .search-form {
                padding: 1rem; /* Less padding on mobile */
            }
            .card-footer {
                padding: 0.75rem 1rem;
                align-items: flex-start;
            }
            .sort-options {
                padding: 0.5rem 0.75rem;
            }

            .btn-group {
                width: 100%;
            }

            .btn-group .btn {
                flex: 1;
                padding: 0.375rem 0.5rem;
                font-size: 0.875rem;
            }
        }
  