* { 
        margin: 0; 
        padding: 0; 
        box-sizing: border-box; }

        body {
            font-family: 'Arial', sans-serif;
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.6;
        }

        .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

        /* Header */
        header {
            background: white; 
            color: #333; 
            padding: 1rem 0;
            position: sticky; 
            top: 0; 
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .header-content {
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            flex-wrap: wrap;
        }

        .logo { display: flex; 
        align-items: center; 
        font-size: 1.5rem; 
        font-weight: bold; 
        }
        .logo img { 
            height: 80px; 
            width: auto; 
            margin-right: 15px; 
            filter: brightness(1.1); 
            
        }

        .nav-menu { 
            display: flex; 
            gap: 2rem; 
            align-items: center; 
            list-style: none; 
        }
        
        nav a { 
            color: #333; 
            text-decoration: none; 
            transition: color 0.3s; 
            font-weight: 500; 
        }
        
        nav a:hover, nav a.active { 
            color: #00ff00; 
        }

        .btn { 
            padding: 10px 20px; 
            border: none; 
            border-radius: 5px; 
            cursor: pointer; 
            text-decoration: none; 
            display: inline-block; 
            transition: all 0.3s; 
            font-weight: 500; 
        }
        
        .btn-primary { 
            background: #203dc2; 
            color: white; 
        }
        
        .btn-primary:hover { 
            background: #1a32a3; 
            transform: translateY(-2px); 
        }
        
        .btn-secondary { 
            background: transparent; 
            color: #333; 
            border: 2px solid #333; 
        }
        
        .btn-secondary:hover { 
            background: #333; 
            color: white; 
        }
        
        .btn-small { padding: 8px 16px; font-size: 0.9rem; }

        /* Mobile Menu Toggle */
        .menu-toggle { 
            display: none; 
            flex-direction: column; 
            cursor: pointer; 
            padding: 8px; 
            z-index: 1001; 
        }
        
        .menu-toggle span { 
            width: 25px; 
            height: 3px; 
            background-color: #333; 
            margin: 3px 0; 
            transition: 0.3s; 
            display: block; 
        }
        
        .menu-toggle.active span:nth-child(1) { 
            transform: rotate(-45deg) translate(-5px, 6px); 
        }
        
        .menu-toggle.active span:nth-child(2) { 
            opacity: 0; 
        }
        .menu-toggle.active span:nth-child(3) { 
            transform: rotate(45deg) translate(-5px, -6px); 
        }

        /* NEW: responsive visibility helpers */
        .mobile-only { display: none; }
        .desktop-only { display: flex; gap: 0.5rem; }

        /* Keep your original modal/sections styles… */
        .modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); animation: fadeIn 0.3s ease-in-out; }
        .modal.show { display: flex; align-items: center; justify-content: center; }
        .modal-content { background-color: white; padding: 2rem; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; animation: slideIn 0.3s ease-in-out; position: relative; }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        @keyframes slideIn { from { opacity: 0; transform: translateY(-50px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
        .close { position: absolute; top: 15px; right: 20px; font-size: 2rem; font-weight: bold; cursor: pointer; color: #666; transition: color 0.3s; }
        .close:hover { color: #333; }
        .modal h2 { margin-bottom: 1.5rem; color: #333; text-align: center; font-size: 1.8rem; }

        /* Hero Section */
        .hero { background: linear-gradient(135deg, #203dc2 0%, #1a32a3 100%); color: white; padding: 45px 0; text-align: center; }
        .hero h1 { font-size: 2.5rem; margin-bottom: 1rem; font-weight: 700; }
        .hero p { font-size: 1.2rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
        .hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

        /* Action Cards Section */
        .action-cards { padding: 60px 0; background: white; }
        .action-cards h2 { text-align: center; margin-bottom: 3rem; font-size: 2.5rem; color: #333; }
        .cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
        .action-card { background: #f8f9fa; padding: 2rem; border-radius: 15px; text-align: center; border: 3px solid #203dc2; transition: transform 0.3s, box-shadow 0.3s; }
        .action-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
        .action-card.featured { border-color: #00ff00; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); }
        .action-icon { font-size: 4rem; margin-bottom: 1rem; color: #203dc2; }
        .action-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: #333; }
        .action-card p { margin-bottom: 1.5rem; color: #666; line-height: 1.6; }

        /* Post Job Section */
        .post-job-section { padding: 60px 0; background: #f8f9fa; }
        .post-job-container { max-width: 800px; margin: 0 auto; background: white; padding: 3rem; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
        .post-job-container h2 { text-align: center; margin-bottom: 2rem; color: #333; font-size: 2rem; }
        .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
        .form-group { display: flex; flex-direction: column; }
        .form-group.full-width { grid-column: 1 / -1; }
        .form-group label { margin-bottom: 0.5rem; font-weight: bold; color: #333; }
        .form-group input, .form-group select, .form-group textarea { padding: 12px; border: 2px solid #ddd; border-radius: 5px; font-size: 1rem; transition: border-color 0.3s; }
        .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #203dc2; }
        textarea { height: 120px; resize: vertical; }
        .form-footer { text-align: center; margin-top: 2rem; }

        /* Job Postings with Contractor Card Styling */
        .postings-listings { padding: 60px 0; background: white; }
        .section-header { text-align: center; margin-bottom: 3rem; }
        .section-header h2 { font-size: 2.5rem; color: #333; margin-bottom: 1rem; }
        .contractor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
        .contractor-card { background: white; padding: 2rem; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: transform 0.3s; border-left: 4px solid #203dc2; }
        .contractor-card:hover { transform: translateY(-3px); }
        .contractor-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
        .contractor-name { font-size: 1.3rem; font-weight: bold; color: #333; margin-bottom: 0.5rem; }
        .contractor-rating { background: #00ff00; color: #333; padding: 4px 8px; border-radius: 15px; font-size: 0.8rem; font-weight: bold; }
        .contractor-specialty { color: #666; margin-bottom: 0.5rem; }
        .contractor-location { color: #888; font-size: 0.9rem; margin-bottom: 1rem; }
        .contractor-description { color: #555; margin-bottom: 1rem; line-height: 1.5; }
        .contractor-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; padding: 1rem; background: #f8f9fa; border-radius: 8px; }
        .stat-item { text-align: center; }
        .stat-number { font-size: 1.2rem; font-weight: bold; color: #203dc2; }
        .stat-label { font-size: 0.8rem; color: #666; }
        .contractor-footer { display: flex; justify-content: space-between; align-items: center; }
        .hourly-rate { font-weight: bold; color: #00cc00; font-size: 1.1rem; }

        /* Success Stories Section */
        .success-stories { padding: 60px 0; background: #1a1a1a; color: white; }
        .success-stories h2 { text-align: center; margin-bottom: 3rem; font-size: 2.5rem; }
        .stories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
        .story-card { background: #2a2a2a; padding: 2rem; border-radius: 10px; border-left: 4px solid #00ff00; }
        .story-quote { font-style: italic; margin-bottom: 1rem; font-size: 1.1rem; line-height: 1.6; }
        .story-author { font-weight: bold; color: #00ff00; }
        .story-role { color: #bdc3c7; font-size: 0.9rem; }

        /* Footer */
        footer { background: #1a252f; color: white; padding: 40px 0 20px; }
        .footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
        .footer-section h3 { margin-bottom: 1rem; color: #00ff00; }
        .footer-section ul { list-style: none; }
        .footer-section ul li { margin-bottom: 0.5rem; }
        .footer-section a { color: #bdc3c7; text-decoration: none; transition: color 0.3s; }
        .footer-section a:hover { color: #00ff00; }
        .footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid #34495e; color: #7f8c8d; }

        .hidden { display: none; }

        /* Loading state */
        .loading { text-align: center; padding: 3rem; color: #666; }
        .loading-spinner { border: 3px solid #f3f3f3; border-top: 3px solid #203dc2; border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 0 auto 1rem; }
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

        /* Responsive */
@media (max-width: 768px) {
    .header-content { 
        justify-content: space-between; 
        align-items: center; 
        flex-direction: row; /* Keep horizontal layout */
        gap: 1rem; 
    }
    .menu-toggle { display: flex !important; z-index: 1001; position: absolute; right: 20px; top: 15px; }
    .nav-menu {
        position: fixed; left: -100%; top: 120px;
        flex-direction: column; background: white; width: 100%; text-align: center;
        transition: 0.3s; box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0; z-index: 999; border-top: 1px solid #eee;
    }
    .nav-menu.active { left: 0 !important; }
    /* Only mobile auth buttons show inside menu */
    .mobile-only { display: flex !important; justify-content: center; gap: 0.5rem; }
    .desktop-only { display: none !important; }
    /* Keep your original tweak for auth-buttons on mobile */
    .auth-buttons span { display: none; }
    .logo img { height: 60px; }
    .hero h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .form-grid { grid-template-columns: 1fr; }
    .posting-metadata { grid-template-columns: 1fr; }
    .posting-footer { flex-direction: column; gap: 1rem; align-items: flex-start; }
    .modal-content { width: 95%; padding: 1.5rem; margin: 1rem; }
    .modal h2 { font-size: 1.5rem; }
    
    /* NEW: Contractor Card Mobile Styles */
    .contractor-grid { 
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1rem; 
    }
    .contractor-card { 
        padding: 1.5rem; /* Less padding on mobile */
        margin: 0 1rem; /* Add side margins */
    }
    .contractor-header { 
        flex-direction: column; /* Stack header elements */
        align-items: flex-start; 
    }
    .contractor-location { 
        display: block !important; /* Force it to show */
        margin-bottom: 0.5rem;
    }
    .contractor-stats { 
        grid-template-columns: 1fr 1fr; /* 2 columns instead of 3 */
        gap: 0.5rem; 
    }
}