/* Root Variables and Base Styles */
:root {
    /* Color System */
    --primary: #000000;
    --secondary: #ffffff;
    --accent: #333333;
    --text-dark: #222222;
    --text-light: #555555;
    --background-light: #fafafa;
    --background-dark: #111111;
    --error: #FF3B30;
    --success: #34C759;
    
    /* Enhanced Auth Colors */
    --auth-bg: #f8f8f8;
    --auth-card-bg: #ffffff;
    --auth-input-bg: #f9f9f9;
    --auth-input-border: #e0e0e0;
    --auth-input-focus: #000000;
    --auth-button-hover: #222222;
    
    /* Spacing System */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 5s ease;
    
    /* Shadows */
    --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-auth: 0 10px 30px rgba(0, 0, 0, 0.08);

    /* Animation Variables */
    --animation-duration: 0.7s;
    --animation-timing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --stagger-delay: 0.08s;
    --anim-duration-fast: 0.3s;
    --anim-duration-normal: 0.5s;
    --anim-duration-slow: 0.8s;
    --anim-easing: cubic-bezier(0.25, 0.1, 0.25, 1);
    --anim-easing-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --anim-easing-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset with Performance in Mind */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Font Loading Optimizations */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiA.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuI6fAZ9hiA.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZ9hiA.woff2') format('woff2');
}

/* Base Elements */
body {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-dark);
    background: var(--secondary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    position: relative;
    z-index: 1; /* Lower than header */
}

/* Optimize Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container with Content-Visibility */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* Button System */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: transform var(--transition-fast),
                background var(--transition-fast),
                color var(--transition-fast);
    cursor: pointer;
    will-change: transform;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--secondary);
    border: 1px solid var(--primary);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid currentColor;
}

@media (hover: hover) {
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-outline:hover {
        transform: translateY(-2px);
    }
}

/* Grid System with Auto-Fit */
.grid {
    display: grid;
    gap: var(--space-md);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Card Styles */
.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Category Cards */
.category-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.category-card .category-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background-color: rgba(0, 86, 179, 0.1);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.category-card h3 {
  margin-bottom: 0.75rem;
  color: #333;
  font-size: 1.25rem;
}

.category-card p {
  color: #666;
  font-size: 0.95rem;
}

.category-card .date-label {
  display: block;
  margin-top: 1rem;
  color: #888;
  font-size: 0.8rem;
}

/* Freelancer Cards */
.freelancer-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.freelancer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.freelancer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.freelancer-card .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.freelancer-card .freelancer-rating {
  background-color: rgba(255, 215, 0, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #FF9800;
}

.freelancer-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: #333;
}

.freelancer-card .freelancer-title {
  color: #0056b3;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.freelancer-card .skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.freelancer-card .skill-tags span {
  background-color: #f0f4f8;
  color: #0056b3;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.freelancer-card .btn-outline {
  margin-top: auto;
}

.freelancer-card .date-label {
  display: block;
  margin-bottom: 1rem;
  color: #888;
  font-size: 0.8rem;
}

/* Job Cards */
.job-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.job-card .job-tag {
  display: inline-block;
  background-color: #e3f2fd;
  color: #0056b3;
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.job-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: #333;
}

.job-card .job-company {
  color: #0056b3;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.job-card .job-description {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.job-card .job-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.job-card .job-budget {
  font-weight: 600;
  color: #28a745;
}

.job-card .job-location {
  color: #666;
}

.job-card .btn-primary {
  margin-top: auto;
}

.job-card .date-label {
  display: block;
  margin-bottom: 1rem;
  color: #888;
  font-size: 0.8rem;
}

/* Navigation Styles */
.site-header {
    position: sticky;
    top: 0;
    background: var(--secondary);
    z-index: 9999 !important; /* Ensure it's above everything */
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transform: translateZ(0); /* Create a new stacking context */
    will-change: transform;
    transition: box-shadow var(--transition-fast);
}

.site-header.scrolled {
    box-shadow: var(--shadow-soft);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}

.logo {
    font-weight: 600;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: var(--space-md);
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links li a:hover {
    color: var(--primary);
}

.nav-links li a.active {
    color: var(--primary);
    font-weight: 600;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    margin: 5px 0;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Mobile Navigation */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
    z-index: 1049; /* Just below header */
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .main-nav.active .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .main-nav.active .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    .main-nav.active .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 70%;
        max-width: 300px;
        background: var(--secondary);
        padding: 80px var(--space-lg) var(--space-lg);
        flex-direction: column;
        transform: translateX(100%);
        transition: transform var(--transition-medium);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }
}

/* Typography with Optimized Loading */
h1, h2, h3, h4, h5 {
    line-height: 1.2;
    font-weight: 600;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h5 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

/* Modern Form Elements */
.form-group {
    margin-bottom: var(--space-md);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

/* Animation System - Simplified and Fixed */
/* Base class for all animated elements - FIXED TO BE VISIBLE BY DEFAULT */
[class*="fade-"], 
[class*="slide-"], 
[class*="scale-"], 
[class*="zoom-"],
[class*="rotate-"],
[class*="flip-"],
[class*="bounce-"] {
    opacity: 1; /* Changed from 0 to 1 to ensure visibility by default */
    visibility: visible; /* Changed from hidden to visible */
    will-change: transform, opacity;
    transition: opacity var(--animation-duration) var(--animation-timing), 
                transform var(--animation-duration) var(--animation-timing),
                visibility 0s;
}

/* Animation visible state */
.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity var(--animation-duration) var(--animation-timing), 
                transform var(--animation-duration) var (--animation-timing),
                visibility 0s;
}

/* Specific animation initial states */
.fade-up { transform: translateY(30px); }
.fade-down { transform: translateY(-30px); }
.fade-left { transform: translateX(30px); }
.fade-right { transform: translateX(-30px); }
.zoom-in, .scale-in { transform: scale(0.9); }
.zoom-out, .scale-out { transform: scale(1.1); }
.rotate-in { transform: rotate(-10deg) scale(0.9); }
.flip-x { transform: rotateX(90deg); }
.flip-y { transform: rotateY(90deg); }
.bounce-in { transform: scale(0.3); }

/* Animation visible states - all reset to normal */
.fade-up.visible,
.fade-down.visible,
.fade-left.visible,
.fade-right.visible,
.zoom-in.visible,
.zoom-out.visible,
.scale-in.visible,
.scale-out.visible,
.rotate-in.visible,
.flip-x.visible,
.flip-y.visible,
.bounce-in.visible {
    transform: none;
}

/* Animation Groups */
.animation-group > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--animation-duration) var(--animation-timing);
}

.animation-group.visible > * {
    opacity: 1;
    transform: none;
}

/* Staggered animation delays */
[data-delay="1"], .delay-1, .delay-100 { transition-delay: 0.1s; }
[data-delay="2"], .delay-2, .delay-200 { transition-delay: 0.2s; }
[data-delay="3"], .delay-3, .delay-300 { transition-delay: 0.3s; }
[data-delay="4"], .delay-4, .delay-400 { transition-delay: 0.4s; }
[data-delay="5"], .delay-5, .delay-500 { transition-delay: 0.5s; }

/* Animation Groups with staggered delays */
.animation-group.visible > *:nth-child(1) { transition-delay: calc(var(--stagger-delay) * 0); }
.animation-group.visible > *:nth-child(2) { transition-delay: calc(var(--stagger-delay) * 1); }
.animation-group.visible > *:nth-child(3) { transition-delay: calc(var(--stagger-delay) * 2); }
.animation-group.visible > *:nth-child(4) { transition-delay: calc(var(--stagger-delay) * 3); }
.animation-group.visible > *:nth-child(5) { transition-delay: calc(var(--stagger-delay) * 4); }
.animation-group.visible > *:nth-child(6) { transition-delay: calc(var(--stagger-delay) * 5); }
.animation-group.visible > *:nth-child(7) { transition-delay: calc(var(--stagger-delay) * 6); }
.animation-group.visible > *:nth-child(8) { transition-delay: calc(var(--stagger-delay) * 7); }
.animation-group.visible > *:nth-child(9) { transition-delay: calc(var(--stagger-delay) * 8); }
.animation-group.visible > *:nth-child(10) { transition-delay: calc(var(--stagger-delay) * 9); }

/* Hover animation effects */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* No-JS Fallbacks */
.no-js [class*="fade-"],
.no-js [class*="slide-"],
.no-js [class*="scale-"],
.no-js [class*="zoom-"],
.no-js [class*="rotate-"],
.no-js [class*="flip-"],
.no-js [class*="bounce-"],
.no-js .animation-group > * {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001s !important;
        transition-duration: 0.001s !important;
    }

    [class*="fade-"],
    [class*="slide-"],
    [class*="scale-"],
    [class*="zoom-"],
    [class*="rotate-"],
    [class*="flip-"],
    [class*="bounce-"] {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
}

/* Utility Classes */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    padding: 8px;
    z-index: 1001;
    background: var(--primary);
    color: var(--secondary);
}

.skip-link:focus {
    top: 0;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .btn-primary,
    .btn-secondary {
        display: none;
    }
}

/* Error Notifications */
.error-notification {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    background: var(--error);
    color: var(--secondary);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    animation: slideIn 0.3s ease-out;
    z-index: 1000;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .grid {
        gap: var(--space-sm);
    }

    .card {
        padding: var(--space-md);
    }
}

/* Auth Container and Card Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: "";
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at top left, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
}

.auth-card {
    background: var(--secondary);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    max-height: 40px;
    width: auto;
}

.auth-card h1 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.auth-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    margin-bottom: 0.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    background-color: rgba(0, 0, 0, 0.02);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:focus {
    outline: none;
}

.toggle-password svg {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.toggle-password:hover svg {
    opacity: 1;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.25rem 0 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: var(--primary);
}

.checkbox-label span {
    font-size: 0.875rem;
    color: var(--text-light);
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: var(--text-dark);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
    overflow: hidden;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 1.5rem);
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    background: var(--secondary);
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
}

.social-btn img {
    width: 20px;
    height: 20px;
}

.google-btn {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: white;
    color: #444;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.google-btn:hover {
    background-color: #fcfcfc;
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var (--text-light);
}

.auth-footer a {
    color: var (--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.error-message {
    display: none;
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 0.375rem;
}

/* Enhanced Authentication Pages Styling */
.auth-page {
    background-color: var(--auth-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-lg) var(--space-md);
}

.auth-card {
    background-color: var(--auth-card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-auth);
    width: 100%;
    max-width: 460px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.auth-logo {
    display: block;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.auth-card h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--text-dark);
    letter-spacing: -0.025em;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.auth-form .form-control {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--auth-input-bg);
    background-clip: padding-box;
    border: 1px solid var(--auth-input-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.auth-form .form-control:focus {
    border-color: var(--auth-input-focus);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
    outline: none;
}

.auth-form .password-input {
    position: relative;
}

.auth-form .toggle-password {
    position: absolute;
    top: 50%;
    right: 0.875rem;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form .toggle-password:focus {
    outline: none;
}

.auth-form .btn-primary {
    background-color: var(--primary);
    color: var(--secondary);
    border: none;
    padding: 0.875rem 1.5rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    width: 100%;
    font-size: 1rem;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.auth-form .btn-primary:hover {
    background-color: var(--auth-button-hover);
    transform: translateY(-1px);
}

.auth-form .btn-primary:active {
    transform: translateY(0);
}

.auth-form .btn-primary.loading .btn-text {
    visibility: hidden;
}

.auth-form .btn-primary.loading .btn-loader {
    display: block;
}

.auth-form .btn-loader {
    display: none;
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    top: 50%;
    left: 50%;
    margin-top: -0.625rem;
    margin-left: -0.625rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--secondary);
    animation: spinner 0.8s linear infinite;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    accent-color: var(--primary);
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.forgot-password:hover {
    color: var(--accent);
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.75rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--auth-input-border);
}

.auth-divider span {
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.social-login {
    margin-bottom: 1.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--auth-input-bg);
    border: 1px solid var(--auth-input-border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: background-color var(--transition-fast), border-color var (--transition-fast);
}

.social-btn svg {
    margin-right: 0.75rem;
}

.social-btn:hover {
    background-color: var(--secondary);
    border-color: var(--auth-input-focus);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.error-message {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.auth-simple-footer {
    background-color: var(--auth-bg);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-links-simple {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links-simple a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-links-simple a:hover {
    color: var(--primary);
}

.auth-simple-footer p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Login page specific */
.login-help {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1.5rem 0 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.login-help p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.demo-accounts {
    list-style: none;
    padding-left: 0;
}

.demo-accounts li {
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    font-family: monospace;
}

/* Signup page specific */
.role-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.role-option {
    cursor: pointer;
}

.role-option input {
    position: absolute;
    opacity: 0;
}

.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    border: 1px solid var(--auth-input-border);
    border-radius: var(--radius-md);
    background-color: var(--auth-input-bg);
    transition: all var(--transition-fast);
    text-align: center;
    font-size: 0.825rem;
    gap: 0.5rem;
}

.role-option input:checked + .role-card {
    border-color: var(--primary);
    background-color: rgba(0, 0, 0, 0.02);
}

.role-option input:focus + .role-card {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.checkbox-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.verification-banner {
    background-color: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.verification-banner .banner-icon {
    font-size: 1.25rem;
}

.verification-banner p {
    color: var(--text-dark);
    font-size: 0.875rem;
    margin: 0;
}

.file-upload-container {
    position: relative;
    margin-top: 0.5rem;
}

.file-upload-container input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: var(--auth-input-bg);
    border: 1px dashed var(--auth-input-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.file-upload-label:hover {
    border-color: var(--primary);
    background-color: rgba(0, 0, 0, 0.01);
}

.upload-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    color: var(--primary);
}

.form-help-text {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.password-requirements {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var (--text-light);
}

.password-requirements ul {
    padding-left: 1.25rem;
    margin-top: 0.25rem;
}

.password-requirements li {
    margin-bottom: 0.25rem;
}

.password-requirements li.valid {
    color: var(--success);
}

.terms-checkbox {
    margin: 1.5rem 0;
}

.terms-checkbox a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

.pending-approval-message {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.pending-approval-message h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pending-approval-message p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.pending-approval-message .loader {
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spinner 1s linear infinite;
    margin: 0 auto;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Adjustments for Auth Pages */
@media (max-width: 576px) {
    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: var(--radius-md);
        max-width: 100%;
        box-shadow: none;
    }
    
    .auth-container {
        padding: 1rem;
    }
    
    .role-selection {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .checkbox-options {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .auth-simple-footer {
        padding: 1rem 0;
    }
    
    .footer-links-simple {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .auth-card {
        max-width: 400px;
    }
}

/* Enhanced Role Selection */
.role-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.role-option {
    position: relative;
    cursor: pointer;
}

.role-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: rgba(0, 0, 0, 0.02);
}

.role-card svg {
    width: 28px;
    height: 28px;
    margin-bottom: 0.5rem;
    fill: var(--text-light);
    transition: fill 0.2s ease;
}

.role-option input[type="radio"]:checked + .role-card {
    border-color: var(--primary);
    background-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.role-option input[type="radio"]:checked + .role-card svg {
    fill: var(--primary);
}

.role-option input[type="radio"]:focus + .role-card {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* File Upload Styling */
.file-upload-container {
    position: relative;
    width: 100%;
}

.file-upload-container input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-label {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px dashed rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: rgba(0, 0, 0, 0.02);
}

.file-upload-label:hover {
    border-color: var(--primary);
    background-color: rgba(0, 0, 0, 0.04);
}

.upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    margin-right: 0.75rem;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--text-light);
}

/* Checkbox Styling */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    margin: 0.5rem 0 1.5rem;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
}

/* Password Requirements */
.password-requirements {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.02);
}

.password-requirements ul {
    padding-left: 1.25rem;
    margin-top: 0.25rem;
}

.password-requirements li {
    margin-bottom: 0.25rem;
    position: relative;
    transition: color 0.2s ease;
}

.password-requirements li.valid {
    color: var(--success);
}

.password-requirements li.valid::before {
    content: "✓";
    position: absolute;
    left: -1rem;
}

/* Verification Banner */
.verification-banner {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 187, 0, 0.1);
    border: 1px solid rgba(255, 187, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.banner-icon {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.verification-banner p {
    font-size: 0.85rem;
    color: #664d03;
    margin: 0;
}

/* Login Help */
.login-help {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    font-size: 0.85rem;
}

.login-help p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.demo-accounts {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.demo-accounts li {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

/* Form Button */
.btn-primary.w-full {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.btn-loader {
    display: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

button.loading .btn-text {
    visibility: hidden;
}

button.loading .btn-loader {
    display: block;
    position: absolute;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Checkbox Options */
.checkbox-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
}

.form-help-text {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.375rem;
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
    .auth-card {
        padding: 1.75rem;
        max-width: 100%;
    }
    
    .role-selection {
        grid-template-columns: 1fr;
    }
    
    .auth-container {
        padding: 1rem;
    }
}

/* Home page specific styles */
/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 0;
    background-image: url('../images/header.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for better text visibility */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2; /* Make sure content sits above the overlay */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Statistics Section */
.statistics {
    padding: var(--space-xl) 0;
    background-color: var(--primary);
    color: var(--secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.stat-card {
    text-align: center;
    padding: var(--space-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.stat-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

.quick-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

.quick-stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

/* Site Footer */
.site-footer {
    background: var(--background-dark);
    color: var(--secondary);
    padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.footer-about p {
    margin-top: var(--space-sm);
    opacity: 0.8;
}

.footer-links h3 {
    margin-bottom: var(--space-md);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: var(--space-sm);
}

.footer-links ul li a {
    color: var(--secondary);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.footer-links ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.6;
}

/* Footer Social Links */
.social-links {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links h4 {
    color: var(--secondary);
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
    font-weight: 600;
}

.social-cta {
    text-align: center;
}

.social-cta p {
    margin-bottom: var(--space-sm);
    opacity: 0.9;
    font-size: 0.95rem;
}

.facebook-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 20px;
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
    border: none;
    cursor: pointer;
}

.facebook-cta:hover {
    background: linear-gradient(135deg, #166fe5 0%, #1976d2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
    color: white;
    text-decoration: none;
}

.facebook-cta:active {
    transform: translateY(0);
}

.facebook-cta i {
    font-size: 1.2rem;
    margin-right: 2px;
}

.facebook-cta span {
    font-weight: 600;
}

/* Mobile responsiveness for social links */
@media (max-width: 768px) {
    .social-links {
        margin-top: var(--space-md);
        padding: var(--space-sm);
    }
    
    .facebook-cta {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .social-cta p {
        font-size: 0.85rem;
    }
}

/* Tabs System */
.tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: background var(--transition-fast), color var (--transition-fast);
}

.tab-btn.active {
    background: var(--primary);
    color: var(--secondary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.step-card {
    background: var(--background-light);
    padding: var(--space-lg);
    border-radius: var(--radius-sm);
    text-align: center;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto var(--space-md);
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var (--space-lg);
    margin-top: var(--space-lg);
}

.feature-card {
    text-align: center;
    padding: var(--space-lg);
    background: var(--background-light);
    border-radius: var(--radius-sm);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var (--space-lg);
}

.category-card {
    text-align: center;
    padding: var(--space-lg);
    background: var (--background-light);
    border-radius: var(--radius-sm);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

/* Freelancer Cards */
.freelancers-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.freelancer-card {
    background: var(--secondary);
    border-radius: var(--radius-sm);
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.freelancer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.freelancer-rating {
    font-weight: 500;
}

.freelancer-title {
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.skill-tags span {
    background: var(--background-light);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
}

/* Job Cards */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var (--space-lg);
}

.job-card {
    background: var(--secondary);
    border-radius: var(--radius-sm);
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

/* Job Card Structure */
.job-card .job-header {
    margin-bottom: 1rem;
}

.job-card .job-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.job-card .company-name {
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

.job-card .job-details {
    flex: 1;
    margin-bottom: 1rem;
}

.job-card .job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.job-card .job-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-card .job-meta i {
    color: #333333;
}

.job-card .job-summary {
    color: #555;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.job-card .job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.job-card .tag {
    background-color: #e3f2fd;
    color: #0056b3;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.job-card .job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.job-card .posted-date {
    color: #888;
    font-size: 0.9rem;
}

.job-card .view-job-btn {
    background-color: #000000;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.job-card .view-job-btn:hover {
    background-color: #333333;
}

.job-card .job-salary.blurred-text {
    filter: blur(3px);
    pointer-events: none;
}

.job-tag {
    align-self: flex-start;
    background: var(--background-light);
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    margin-bottom: var(--space-sm);
}

.job-company {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: var (--space-sm);
}

.job-description {
    margin-bottom: var(--space-md);
}

.job-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
}

.job-card .btn-primary {
    margin-top: auto;
}

/* Testimonials */
.testimonials {
    padding: var(--space-xl) 0;
    background: var(--background-light);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.testimonial {
    background: var(--secondary);
    border-radius: var(--radius-sm);
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: var(--space-md);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var (--space-sm);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Section Spacing */
section {
    padding: var(--space-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-lg);
    color: var(--text-light);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid, 
    .features-grid, 
    .freelancers-slider, 
    .jobs-grid, 
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .quick-stats {
        flex-direction: column;
    }
    
    section {
        padding: var(--space-lg) 0;
    }
}

.category-card, .freelancer-card, .job-card, .feature-card, .step-card, .stat-card {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card:hover, .freelancer-card:hover, .job-card:hover, .feature-card:hover, .step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Add a subtle border to make edges more visible */
.category-card, .freelancer-card, .job-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Add a slightly highlighted header to cards */
.card-header {
    margin: -1.5rem -1.5rem 1rem;
    padding: 1rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Improved tab styling for How Mo'sebetsi Works section */
.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: 2px solid transparent;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #666;
}

.tab-btn:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.04);
}

.tab-btn.active {
    color: #0056b3;
    border-color: #0056b3;
    background-color: rgba(0, 86, 179, 0.05);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section with Background Image */
.hero-section {
  position: relative;
  background-image: url('../images/header.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 0;
  color: var(--secondary);
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for better text readability */
  z-index: 1;
}

/* Compact Hero Form - Reduced height by 3x */
.hero-section.hero-form {
  min-height: 23vh; /* Reduced from 70vh */
  padding: 1.5rem 0; /* Reduced from 5rem */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-title {
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero-subtitle {
  margin-bottom: 2rem;
  font-size: 1.25rem;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary);
}

.section-subtitle {
  text-align: center;
  margin-top: -1.5rem;
  margin-bottom: 3rem;
  color: var(--text-light);
}

/* How it works section */
.how-it-works {
  padding: 5rem 0;
  background-color: var(--background-light);
}

.steps-container {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
}

.step-item {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 2.5rem;
  right: -15%;
  width: 30%;
  height: 2px;
  background-color: var(--primary);
}

.step-number {
  width: 5rem;
  height: 5rem;
  background: var(--primary);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 auto 1.5rem;
}

.step-title {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Platform benefits section */
.platform-benefits {
  padding: 5rem 0;
}

/* Tabs System */
.tabs-container {
  max-width: 900px;
  margin: 0 auto;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.tab-button {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 0.5rem;
}

.tab-button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* CTA Section */
.cta-section {
  background-color: var(--primary);
  color: var(--secondary);
  padding: 5rem 0;
  text-align: center;
}

.cta-title {
  margin-bottom: 1.5rem;
}

.cta-subtitle {
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Popular Categories Section */
.popular-categories {
  padding: 5rem 0;
}

/* Featured Freelancers Section */
.featured-freelancers {
  padding: 5rem 0;
  background-color: var(--background-light);
}

/* Recent Jobs Section */
.recent-jobs {
  padding: 5rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
    min-height: 60vh;
  }
  
  .steps-container {
    flex-direction: column;
    gap: 3rem;
  }
  
  .step-item:not(:last-child)::after {
    display: none;
  }
  
  .tabs-nav {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    justify-content: flex-start;
  }
}

/* Hero Section */
.hero-section {
    background: url('../images/header.png') no-repeat center center;
    background-size: cover;
    padding: 120px 0;
    position: relative;
    color: #fff;
    text-align: center;
    margin-bottom: 60px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.search-form select {
    background-color: #f8f8f8;
    border: none;
    padding: 15px 20px;
    width: 150px;
    font-weight: 600;
    border-right: 1px solid #eee;
}

.search-form input[type="search"] {
    flex-grow: 1;
    padding: 15px 20px;
    border: none;
    font-size: 1rem;
}

.search-form button {
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: var(--primary-darker);
}

/* Category Section */
.categories-section {
    padding: 60px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    height: 60px;
    width: 60px;
    line-height: 60px;
    text-align: center;
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.category-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.category-card p {
    color: #666;
    margin-bottom: 15px;
}

.task-count {
    display: block;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.category-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: var(--primary-darker);
}

/* Freelancers Section */
.freelancers-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.freelancers-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.freelancer-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.freelancer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.freelancer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.freelancer-rating {
    color: #ffc107;
    font-weight: 600;
}

.freelancer-card h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.freelancer-title {
    color: #666;
    margin-bottom: 15px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 8px;
}

.skill-tag {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.freelancer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.hourly-rate {
    font-weight: 700;
    color: #333;
}

/* Jobs Section */
.jobs-section {
    padding: 60px 0;
}

.jobs-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.job-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.job-title {
    font-size: 1.3rem;
    margin: 0;
}

.job-budget {
    color: var(--primary-color);
    font-weight: 700;
}

.job-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-details {
    margin-bottom: 15px;
}

.job-details > * {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 0.9rem;
}

.job-details i {
    margin-right: 5px;
    color: var(--primary-color);
}

.company-name {
    font-weight: 600;
    color: #333;
}

.job-footer {
    text-align: right;
}

/* Animation classes */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add animation delay based on data-delay attribute */
[data-delay] {
    animation-delay: var(--delay, 0s);
}

[data-delay="0.1"] {
    --delay: 0.1s;
}

[data-delay="0.2"] {
    --delay: 0.2s;
}

[data-delay="0.3"] {
    --delay: 0.3s;
}

/* Enhanced About Section */
.section-title.text-center {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.section-title.text-center::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--primary);
  margin: 1rem auto 0;
}

.section-subtitle.text-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #555;
}

/* Enhanced Features Grid */
.enhanced-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature-card.enhanced {
  position: relative;
  background-color: white;
  border-radius: 12px;
  padding: 3rem 2rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
  border-top: 3px solid var(--primary);
  overflow: hidden;
}

.feature-card.enhanced:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(0, 86, 179, 0.1) 0%, rgba(0, 86, 179, 0.05) 100%);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.feature-card.enhanced:hover .feature-icon-wrapper {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(0, 86, 179, 0.15) 0%, rgba(0, 86, 179, 0.08) 100%);
}

.feature-card.enhanced .feature-icon {
  font-size: 2.5rem;
  transition: all 0.3s ease;
}

.feature-card.enhanced h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: #333;
  transition: all 0.3s ease;
}

.feature-card.enhanced:hover h3 {
  color: var(--primary);
}

.feature-card.enhanced p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.feature-link:after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.feature-link:hover:after {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .enhanced-features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .section-subtitle.text-center {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .feature-card.enhanced {
    padding: 2.5rem 1.5rem 1.5rem;
  }
}

/* Horizontal Features Grid for About Section */
.horizontal-features-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card.horizontal {
  display: flex;
  align-items: flex-start;
  background-color: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary);
  text-align: left;
}

.feature-card.horizontal:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.feature-card.horizontal .feature-icon-wrapper {
  flex-shrink: 0;
  margin: 0;
  margin-right: 2rem;
}

.feature-card.horizontal .feature-content {
  flex: 1;
}

.feature-card.horizontal h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: #333;
  transition: all 0.3s ease;
  text-align: left;
}

.feature-card.horizontal:hover h3 {
  color: var(--primary);
}

.feature-card.horizontal p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  text-align: left;
}

@media (max-width: 768px) {
  .feature-card.horizontal {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .feature-card.horizontal .feature-icon-wrapper {
    margin: 0 0 1.5rem 0;
  }
  
  .feature-card.horizontal h3,
  .feature-card.horizontal p {
    text-align: center;
  }
}

/* Why Mo'sebetsi Works - Benefits Cards */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.benefit-card {
  display: flex;
  background-color: white;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
  flex-shrink: 0;
  width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(0, 86, 179, 0.08) 0%, rgba(0, 86, 179, 0.03) 100%);
  padding: 1.5rem;
  border-right: 1px solid #f0f0f0;
}

.benefit-emoji {
  font-size: 2.5rem;
}

.benefit-content {
  flex: 1;
  padding: 1.5rem;
}

.benefit-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: #333;
  position: relative;
  padding-bottom: 0.75rem;
}

.benefit-card h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.benefit-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: #555;
  font-size: 0.95rem;
}

.benefit-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.benefit-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.benefit-link span {
  display: inline-block;
  transition: transform 0.3s ease;
  margin-left: 0.25rem;
}

.benefit-link:hover span {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .benefit-card {
    flex-direction: column;
  }
  
  .benefit-icon {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 1rem;
  }
}

/* Redesigned Testimonials - Modern Quote Format */
.quotes-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0 2rem;
}

.quote-block {
  position: relative;
  background: linear-gradient(145deg, #ffffff, #f8f8f8);
  border-radius: 12px;
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.quote-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.quote-symbol {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: rgba(0, 86, 179, 0.1);
  line-height: 1;
}

.quote-block blockquote {
  position: relative;
  font-style: italic;
  color: #444;
  margin: 0 0 1.5rem;
  line-height: 1.7;
  font-size: 1.1rem;
  z-index: 1;
  padding-top: 1.5rem;
}

.quote-attribution {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}

.quote-name {
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
}

.quote-role {
  color: #666;
  font-size: 0.9rem;
}

.quote-rating {
  color: #FFC107;
  letter-spacing: 2px;
}

.testimonials-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border: 2px solid var(--primary);
  border-radius: 30px;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
}

.testimonials-link:hover {
  background-color: var(--primary);
  color: white;
}

/* About Section Cards */
.about-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  text-align: left;
  height: 100%;
  border-left: 4px solid var(--primary);
  overflow: hidden;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.about-card .feature-icon-wrapper {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.03) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  transition: all 0.3s ease;
}

.about-card:hover .feature-icon-wrapper {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.06) 100%);
}

.about-card .feature-icon {
  font-size: 2rem;
  transition: all 0.3s ease;
}

.about-card .feature-content {
  flex: 1;
}

.about-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  color: var(--primary);
  position: relative;
  transition: all 0.3s ease;
}

.about-card p {
  color: var(--text-light);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.about-card .feature-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0;
  background: none;
  border: none;
  font-size: 0.95rem;
}

.about-card .feature-link::after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.about-card .feature-link:hover::after {
  transform: translateX(5px);
}

/* Why Mo'sebetsi Works Cards */
.benefit-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--primary);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.benefit-card .benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  background-color: rgba(0, 0, 0, 0.08);
  transform: scale(1.1);
}

.benefit-card .benefit-emoji {
  font-size: 2rem;
}

.benefit-card h3 {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.25rem;
  position: relative;
}

.benefit-card .benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}

.benefit-card .benefit-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

.benefit-card .benefit-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.benefit-card .benefit-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  margin-top: auto;
}

.benefit-card .benefit-link span {
  display: inline-block;
  transition: transform 0.3s ease;
  margin-left: 0.25rem;
}

.benefit-card .benefit-link:hover span {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .about-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-left: none;
    border-top: 4px solid var(--primary);
  }

  .about-card .feature-icon-wrapper {
    margin-right: 0;
    margin-bottom: 1.25rem;
  }

  .about-card .feature-content {
    width: 100%;
  }
}

/* Why Mo'sebetsi Cards Grid - For Four Cards In One Row */
.why-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: var(--space-lg);
}

.why-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.why-card .category-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  background-color: rgba(0, 0, 0, 0.05);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
}

.why-card h3 {
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 1.1rem;
}

.why-card p {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Responsive handling for smaller screens */
@media (max-width: 992px) {
  .why-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .why-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Browse Pages Styles */
.page-header {
  background-color: var(--primary);
  color: var(--secondary);
  padding: 3rem 0;
  text-align: center;
}

.page-title {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 700;
}

.page-subtitle {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Search and Filters */
.search-filters {
  padding: 2rem 0;
  background-color: #f8f9fa;
  border-bottom: 1px solid #eaecef;
}

.filters-container {
  position: relative;
}

.search-bar {
  position: relative;
  margin-bottom: 1.5rem;
}

.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem;
  padding-right: 3rem;
  border: 1px solid #ddd;
  border-radius: 50px;
  font-size: 1rem;
}

.search-bar .search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
}

.filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #555;
}

.filter-group select {
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
}

.filter-toggle-btn {
  display: none;
  margin: 0 auto;
}

/* Task Cards */
.tasks-section,
.jobs-section,
.freelancers-section {
  padding: 3rem 0;
}

.tasks-grid,
.jobs-grid,
.freelancers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.task-card,
.job-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.task-card:hover,
.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.task-card-header,
.job-card-header {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.badge {
  background-color: rgba(0, 86, 179, 0.1);
  color: #0056b3;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.job-type {
  background-color: rgba(0, 0, 0, 0.05);
  color: #555;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.task-budget, 
.job-salary {
  font-weight: 600;
  color: #28a745;
}

.task-card h3,
.job-card h3 {
  margin: 1rem;
  font-size: 1.2rem;
  color: #333;
}

.task-location,
.job-location,
.freelancer-location {
  display: flex;
  align-items: center;
  margin: 0 1rem 0.5rem;
  color: #666;
  font-size: 0.9rem;
}

.task-location svg,
.job-location svg,
.freelancer-location svg {
  margin-right: 5px;
}

.task-poster,
.company-name,
.freelancer-rate {
  margin: 0 1rem 1rem;
  color: #666;
  font-size: 0.9rem;
}

.task-details,
.job-details,
.freelancer-details {
  padding: 0 1rem;
}

.task-details p,
.job-details p,
.freelancer-details p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.task-time,
.job-time {
  font-size: 0.85rem;
  color: #999;
  margin: 0 1rem 1rem;
}

.task-footer,
.job-footer,
.freelancer-footer {
  margin: auto 1rem 1rem;
  text-align: center;
}

/* Freelancer Cards */
.freelancer-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
}

.freelancer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.freelancer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.freelancer-rating {
  background-color: rgba(255, 193, 7, 0.1);
  color: #FF9800;
  padding: 0.25rem 0.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

.freelancer-name {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  color: #333;
}

.freelancer-title {
  color: #0056b3;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.skill-tags span {
  background-color: #f0f4f8;
  color: #0056b3;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
}

.freelancer-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.freelancer-stats span {
  font-size: 0.85rem;
  color: #555;
}

.freelancer-stats strong {
  color: #333;
}

.freelancer-footer {
  margin-top: auto;
  display: flex;
  gap: 0.75rem;
}

/* Blurred Content for Auth-Required Elements */
.blurred {
  filter: blur(3px);
  user-select: none;
}

[data-auth-required="true"] .hidden {
  display: none;
}

/* Authentication Modal */
.auth-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.auth-modal.active {
  display: flex;
}

.modal-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 400px;
  width: 100%;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
}

.auth-modal h2 {
  margin-bottom: 1rem;
  color: #333;
}

.auth-modal p {
  margin-bottom: 2rem;
  color: #666;
}

.auth-buttons {
  display: flex;
  gap: 1rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 5px;
  background-color: #f8f9fa;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background-color: #e9ecef;
}

.pagination a.active {
  background-color: var(--primary);
  color: var(--secondary);
}

.pagination a.next {
  width: auto;
  padding: 0 1rem;
  border-radius: 50px;
}

/* CTA Section */
.cta-section {
  background-color: #f8f9fa;
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid #eaecef;
}

.cta-content h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.cta-content p {
  margin-bottom: 2rem;
  color: #555;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Responsive Adjustments for Browse Pages */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .search-filters {
    padding: 1.5rem 0;
  }
  
  .filters-row {
    display: none;
  }
  
  .filters-row.active {
    display: grid;
    grid-template-columns: 1fr;
  }
  
  .filter-toggle-btn {
    display: block;
  }
  
  .tasks-grid,
  .jobs-grid,
  .freelancers-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    max-width: 250px;
    margin: 0 auto;
  }
}

/* Welcome Popup */
.welcome-popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  width: 300px;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  border-left: 4px solid #34b27b;
}

.welcome-popup.show {
  transform: translateY(0);
  opacity: 1;
}

.welcome-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #777;
}

.welcome-popup h3 {
  margin-top: 0;
  color: #333;
  font-weight: 600;
  font-size: 1.2rem;
}

.welcome-popup p {
  margin-bottom: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

.welcome-popup-logo {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.welcome-popup-logo img {
  width: 40px;
  height: auto;
  margin-right: 10px;
}

@media (max-width: 768px) {
  .welcome-popup {
    width: calc(100% - 40px);
    bottom: 20px;
    right: 20px;
  }
}

/* Enhanced Static Pages Styling */
.static-page .page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 4rem 0 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, rgba(var(--primary-rgb), 0.8) 100%);
  color: var(--secondary);
  border-radius: 0 0 10px 10px;
  position: relative;
}

.static-page .page-header::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

.static-page .page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.static-page .page-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.static-page .content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.static-page .content-section h2 {
  color: var(--text-dark);
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
}

.static-page .content-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 1.5px;
}

.static-page .content-section p {
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.static-page .content-section ul {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.static-page .content-section li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  position: relative;
}

.static-page .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.static-page .feature-card {
  background-color: var(--secondary);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.static-page .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.static-page .feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.static-page .feature-card h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-size: 1.2rem;
  font-weight: 600;
}

.static-page .contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.static-page .contact-form-container,
.static-page .contact-info-container {
  background-color: var(--secondary);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.static-page .contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.static-page .contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.static-page .contact-item {
  margin-bottom: 1.5rem;
}

.static-page .contact-item h3 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1rem;
}

.static-page .social-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.static-page .social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.static-page .social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.static-page .social-icons a:hover {
  background-color: var(--primary);
  color: var(--secondary);
}

@media (max-width: 768px) {
  .static-page .contact-container {
    grid-template-columns: 1fr;
  }
  
  .static-page .contact-info {
    grid-template-columns: 1fr;
  }
  
  .static-page .features-grid {
    grid-template-columns: 1fr;
  }
}

/* How It Works Styles */
.how-it-works-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.step:last-child {
    border-bottom: none;
}

.step h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    text-align: center;
}

.step .step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.2rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.step p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: left;
}

.step ul {
    margin-left: 2.5rem;
    margin-bottom: 1.5rem;
    color: #444;
    text-align: left;
}

.step ul li {
    margin-bottom: 0.75rem;
    position: relative;
    line-height: 1.5;
    text-align: left;
}

.step ul li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

.summary-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
    border-left: 4px solid var(--primary);
}

.summary-box h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.summary-box p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .step h2 {
        font-size: 1.4rem;
    }
    
    .step .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .step p, .summary-box p {
        font-size: 1rem;
    }
    
    .summary-box {
        padding: 1.5rem;
    }
}

/* Authentication restrictions styles */
.content-blurred {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
  position: relative;
}

/* Login prompt modal styles */
.auth-prompt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.auth-prompt-container {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  text-align: center;
}

.auth-prompt-container h3 {
  margin-top: 0;
  color: #333;
  font-size: 1.5rem;
}

.auth-prompt-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.auth-prompt-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
}

.auth-prompt-close:hover {
  color: #333;
}

/* Page content container to be blurred */
.sensitive-content {
  transition: filter 0.3s ease;
}

/* Auth restriction styles */
.auth-blur {
  position: relative;
  filter: blur(4px);
  pointer-events: none;
  overflow: hidden;
  max-height: 100px;
}

.auth-prompt {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  pointer-events: auto;
  border-radius: 6px;
}

.auth-prompt-content {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 90%;
}

.auth-prompt-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-requires-auth {
  position: relative;
  cursor: pointer;
}

.btn-requires-auth::after {
  content: '🔒';
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 12px;
  background: #f8f9fa;
  border-radius: 50%;
  padding: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.preview-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 152, 0, 0.9);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  z-index: 5;
}

.preview-mode {
  position: relative;
  opacity: 0.9;
}

/* Hide sensitive content in preview mode */
.preview-mode .sensitive-content {
  display: none;
}

/* Truncated content indicator */
.preview-mode .truncated-content::after {
  content: '... Sign in to view more';
  display: block;
  color: #666;
  font-style: italic;
  margin-top: 0.5rem;
}

/* Auth required indicator for buttons */
.auth-required-action {
  opacity: 0.8;
  position: relative;
}

/* Additional style for cards in preview mode */
.preview-mode.job-card .job-description,
.preview-mode.task-card .task-description,
.preview-mode.freelancer-card .freelancer-bio {
  max-height: 80px;
  overflow: hidden;
  position: relative;
}

.preview-mode.job-card .job-description::after,
.preview-mode.task-card .task-description::after,
.preview-mode.freelancer-card .freelancer-bio::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(transparent, white);
}

/* Auth login form styling */
.auth-login-redirect {  padding: 1rem;
  margin: 1rem 0;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #000000;
  text-align: center;
}

/* Auth Guard Content Restriction Styles */
.content-restricted {
  position: relative;
  filter: blur(4px);
  pointer-events: none;
  max-height: 200px;
  overflow: hidden;
}

.login-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  z-index: 10;
  pointer-events: all;
  border-radius: var(--radius-md);
}

.login-overlay-content {
  text-align: center;
  padding: var(--space-md);
}

.login-overlay p {
  margin-bottom: var(--space-md);
  font-weight: 500;
  color: var(--text-dark);
}

.login-overlay-btn {
  background: var(--primary);
  color: var(--secondary);
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.login-overlay-btn:hover {
  background-color: var(--auth-button-hover);
  transform: translateY(-1px);
}

.preview-wrapper {
  position: relative;
  overflow: hidden;
}

.preview-text {
  margin-bottom: var(--space-sm);
}

.preview-more-btn {
  display: inline-block;
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.preview-more-btn:hover {
  color: var(--text-dark);
}

.auth-required-action {
  position: relative;
}

/* Mobile optimization for auth overlays */
@media (max-width: 768px) {
  .login-overlay-content {
    padding: var(--space-sm);
  }
  
  .login-overlay p {
    font-size: 0.9rem;
  }
  
  .login-overlay-btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
}

/* Print styles for auth restrictions */
@media print {
  .content-restricted {
    filter: none;
    max-height: none;
    overflow: visible;
  }
  
  .login-overlay {
    display: none;
  }
}

/* Content Restriction Styles */
.content-restricted {
  position: relative;
  filter: blur(4px);
  -webkit-filter: blur(4px);
  pointer-events: none;
  transition: all 0.3s ease;
  overflow: hidden;
  max-height: 200px;
}

.login-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  pointer-events: auto;
}

.login-overlay-content {
  background: white;
  padding: 20px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 80%;
}

.login-overlay p {
  margin-bottom: 15px;
  color: #333;
}

.login-overlay-btn {
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.login-overlay-btn:hover {
  background-color: var(--primary-dark);
}

/* Preview Content Styles */
.preview-wrapper {
  position: relative;
}

.preview-text {
  line-height: 1.6;
}

.preview-more-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  margin-top: 8px;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.preview-more-btn:hover {
  background-color: var(--primary-dark);
}

.preview-more-btn::after {
  content: '→';
  display: inline-block;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.preview-more-btn:hover::after {
  transform: translateX(3px);
}

.auth-required-action {
  position: relative;
}

.auth-required-action::before {
  content: '🔒';
  font-size: 12px;
  margin-right: 5px;
}

/* Blurred Content Elements */
.blurred {
  filter: blur(4px);
  -webkit-filter: blur(4px);
  user-select: none;
}

.blurred::after {
  content: '🔒';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 4px;
  border-radius: 50%;
  filter: none;
  -webkit-filter: none;
}

/* Content restriction styles for auth-guard */

/* Blurred content for unauthenticated users */
.content-restricted {
  position: relative;
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  max-height: 200px;
  transition: all 0.3s ease;
}

/* Login overlay styling */
.login-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  pointer-events: auto;
}

.login-overlay-content {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 80%;
}

.login-overlay-content p {
  margin-bottom: 15px;
  font-weight: 500;
  color: #333;
}

.login-overlay-btn {
  background-color: #4a90e2;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
}

.login-overlay-btn:hover {
  background-color: #357ab8;
}

/* Preview text with "Show More" button */
.preview-wrapper {
  position: relative;
  margin-bottom: 10px;
}

.preview-text {
  line-height: 1.6;
  margin-bottom: 10px;
}

.preview-more-btn {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  padding: 5px 15px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #555;
  transition: all 0.2s;
}

.preview-more-btn:hover {
  background-color: #e0e0e0;
  color: #333;
}

/* Authentication required actions styling */
.auth-required-action {
  position: relative;
  cursor: pointer;
}

.auth-required-action::after {
  content: '🔒';
  font-size: 0.8em;
  margin-left: 5px;
  opacity: 0.7;
}

/* Upsell messages styling */
.upsell-message {
  background-color: #f8f9fa;
  border-left: 4px solid #4a90e2;
  padding: 15px;
  margin: 15px 0;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.upsell-message p {
  margin: 0;
  font-weight: 500;
  color: #333;
  flex: 1;
}

.upsell-btn {
  background-color: #4a90e2;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
  white-space: nowrap;
  margin-left: 15px;
}

.upsell-btn:hover {
  background-color: #357ab8;
}

/* Restricted content counter banner */
.restricted-count-banner {
  background-color: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 6px;
  padding: 12px 20px;
  margin: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.restricted-count-banner p {
  margin: 0;
  color: #ff8f00;
}

.signup-prompt-btn {
  background-color: #ff9800;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
}

.signup-prompt-btn:hover {
  background-color: #f57c00;
}

/* Job card preview styling */
.job-card .description.preview-text {
  max-height: 80px;
  overflow: hidden;
  position: relative;
}

/* Freelancer card preview styling */
.freelancer-card .bio.preview-text {
  max-height: 60px;
  overflow: hidden;
  position: relative;
}

/* Task card preview styling */
.task-card .description.preview-text {
  max-height: 80px;
  overflow: hidden;
  position: relative;
}

/* Content Restriction and Auth Protection Styles */
.content-blur {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  overflow: hidden;
  max-height: 100px;
}

.content-preview {
  position: relative;
  overflow: hidden;
  max-height: 100px;
  margin-bottom: 20px;
}

.content-preview::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}

.auth-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border-radius: 5px;
  padding: 20px;
  text-align: center;
}

.auth-overlay h3 {
  color: white;
  margin-bottom: 15px;
}

.auth-overlay p {
  color: #e0e0e0;
  margin-bottom: 20px;
}

.auth-overlay .btn {
  margin: 5px;
}

.show-more-container {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 15px;
}

.show-more-btn {
  padding: 8px 16px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  transition: all 0.3s ease;
}

.show-more-btn:hover {
  background-color: #e9ecef;
  color: #333;
}

.protected-content-wrapper {
  position: relative;
  margin-bottom: 20px;
  border-radius: 5px;
  overflow: hidden;
}

/* Specific page content restrictions */
.job-card .content-restricted,
.task-card .content-restricted,
.freelancer-card .content-restricted {
  position: relative;
}

/* Login prompt animation */
@keyframes pulseLoginPrompt {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.auth-overlay .login-btn {
  animation: pulseLoginPrompt 1.5s infinite;
  background-color: #4285f4;
  color: white;
}

.auth-overlay .signup-btn {
  background-color: #34a853;
  color: white;
}

/* Authentication UI: Content Restrictions & Previews */
.content-restricted {
  position: relative;
  overflow: hidden;
}

.content-preview {
  max-height: 150px;
  overflow: hidden;
  position: relative;
}

.content-preview::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
  pointer-events: none;
}

.content-restricted .premium-content {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}

.content-restricted .auth-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.auth-overlay .auth-prompt {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 80%;
  max-width: 400px;
}

.auth-overlay .auth-prompt h4 {
  margin-bottom: 15px;
  color: #333;
}

.auth-overlay .auth-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

button.show-more-btn {
  display: block;
  width: 100%;
  padding: 10px 15px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-top: 10px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-weight: 500;
}

button.show-more-btn:hover {
  background-color: #e9e9e9;
}

.restricted-count-banner {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 12px 20px;
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.restricted-count-banner p {
  margin: 0;
  color: #495057;
}

.signup-prompt-btn {
  background-color: #000000;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 500;
}

.signup-prompt-btn:hover {
  background-color: #0069d9;
}

@media (max-width: 768px) {
  .restricted-count-banner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* Header component styling */
.site-header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 9999 !important; /* Ensure it's above everything */
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: 700;
  font-size: 1.5rem;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0 15px;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #333333;
}

/* User display in header */
.user-display {
  display: flex;
  align-items: center;
}

.user-avatar {
  margin-right: 10px;
}

.user-avatar img {  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #333333;
}

.user-info {
  display: flex;
  flex-direction: column;
  margin-right: 15px;
}

.user-name {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

.user-role {
  font-size: 0.8rem;
  color: #666;
}

.auth-links {
  display: flex;
  gap: 10px;
}

.sign-out-btn {
  background-color: #f8f9fa;
  color: #dc3545;
  border: 1px solid #dc3545;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sign-out-btn i {
  margin-right: 5px;
}

.sign-out-btn:hover {
  background-color: #dc3545;
  color: white;
}

/* Client Session Header */
.client-session-header {
  background-color: var(--background-light);
  border-bottom: 1px solid var(--auth-input-border);
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 50px;
  position: relative;
  z-index: 999;
}

.client-session-header #clientName {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
  margin: 0;
}

.client-session-header #clientName:empty::before {
  content: "";
  display: inline-block;
  width: 120px;
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 2px;
}

.client-session-header #logoutBtn {
  background-color: var(--primary);
  color: var(--secondary);
  border: none;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.client-session-header #logoutBtn:hover {
  background-color: var(--auth-button-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.client-session-header #logoutBtn:active {
  transform: translateY(0);
}

@keyframes loading {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Responsive design for client session header */
@media (max-width: 768px) {
  .client-session-header {
    padding: var(--space-xs) var(--space-md);
    min-height: 45px;
  }
  
  .client-session-header #clientName {
    font-size: 0.9rem;
  }
  
  .client-session-header #logoutBtn {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8rem;
  }
}

/* Approval pending page */
.approval-status {
  text-align: center;
  max-width: 700px;
  margin: 50px auto;
  padding: 30px;
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.status-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.status-pending .status-icon {
  color: #ffc107;
}

.status-approved .status-icon {
  color: #28a745;
}

.status-rejected .status-icon {
  color: #dc3545;
}

.status-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.status-message {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #555;
}

.status-actions {
  margin-top: 30px;
}

/* User Dropdown Menu Styles */
.user-dropdown {
  position: relative;
}

.user-dropdown-toggle {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-dark);
}

.user-dropdown-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.user-info-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.user-avatar-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.user-name {
  font-weight: 500;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 240px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 10001 !important; /* Even higher z-index to ensure it's above everything */
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.user-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dropdown-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dropdown-user-info .user-avatar,
.dropdown-user-info .user-avatar-initials {
  width: 40px;
  height: 40px;
}

.dropdown-user-name {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.dropdown-user-role {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
}

.dropdown-divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.08);
}

.dropdown-nav {
  list-style: none;
  padding: 0.5rem 0;
}

.dropdown-nav li a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.dropdown-nav li a:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--primary);
}

.dropdown-nav li a i {
  margin-right: 0.75rem;
  color: var(--text-light);
  width: 16px;
  text-align: center;
}

.dropdown-logout {
  color: #dc3545 !important;
}

.dropdown-logout:hover {
  background-color: rgba(220, 53, 69, 0.1) !important;
}

/* Mobile responsiveness for user dropdown */
@media (max-width: 768px) {
  .user-dropdown-menu {
    position: fixed;
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    border-radius: 12px 12px 0 0;
    transform: translateY(100%);
    margin-top: 0;
  }
  
  .user-dropdown-menu.show {
    transform: translateY(0);
  }
  
  .dropdown-header {
    padding: 1.25rem;
  }
  
  .dropdown-nav li a {
    padding: 1rem 1.25rem;
  }
}

/* User Menu Dropdown Styles */
.user-menu-container {
  position: relative;
}

.user-menu-button {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.user-menu-button:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.user-menu-button .user-avatar {
  margin-right: 8px;
}

.user-menu-button .user-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-menu-button .user-info {
  text-align: left;
  margin-right: 8px;
}

.user-menu-button .user-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  display: block;
  margin-bottom: 2px;
}

.user-menu-button .user-role {
  font-size: 0.75rem;
  color: var(--text-light);
  display: block;
}

.dropdown-arrow {
  font-size: 0.6rem;
  color: var(--text-light);
  margin-left: 5px;
  transition: transform 0.2s;
}

.user-menu-button[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  width: 220px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 10000 !important; /* Ensure it's above header */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-header {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.user-dropdown-header .user-avatar {
  margin-right: 10px;
}

.user-dropdown-header .user-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.user-dropdown-header .user-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.user-dropdown-header .user-email {
  font-size: 0.75rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.dropdown-divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.05);
  margin: 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  text-decoration: none;
  color: var(--text-dark);
  transition: background-color 0.2s;
  font-size: 0.9rem;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.dropdown-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.dropdown-item i {
  margin-right: 10px;
  color: var(--text-light);
  width: 16px;
  text-align: center;
}

.sign-out-btn {
  color: #dc3545;
}

@media (max-width: 768px) {
  .user-info {
    display: none;
  }
  
  .user-dropdown-header .user-email {
    max-width: 140px;
  }
}

/* Auth Restriction Styles */
.content-restricted {
  position: relative;
  min-height: 100px;
  overflow: hidden;
}

.login-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(248, 249, 250, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(4px);
  border-radius: 4px;
}

.login-overlay-content {
  text-align: center;
  padding: 20px;
}

.login-overlay-content p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.login-overlay-btn {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
}

.login-overlay-btn:hover {
  background-color: var(--primary-dark);
  text-decoration: none;
  color: white;
}

/* Preview content styles */
.preview-wrapper {
  position: relative;
}

.preview-text {
  position: relative;
}

.preview-text:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}

.preview-more-btn {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  margin-top: 15px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.preview-more-btn:hover {
  background-color: var(--primary-dark);
}

/* Simplified auth message styles */
#message-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: 90%;
}

.alert {
  padding: 10px 20px;
  margin-bottom: 10px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* User Menu and Dropdown Improvements */
.user-menu-container {
  position: relative;
  margin-left: auto;
  z-index: 1051; /* Make user menu container higher than the header */
}

.auth-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.user-menu {
  position: relative;
  z-index: 10000 !important; /* Ensure it's above header */
}

.user-menu-button {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 8px 12px;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
  background-color: rgba(255, 255, 255, 0.1);
}

.user-menu-button:hover, .user-menu-button:focus {
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  outline: none;
}

.user-menu-button .user-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
  border: 2px solid var(--primary-color);
}

.user-menu-button .user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* User Dropdown Menu */
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.95);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 10001 !important; /* Even higher z-index to ensure it's above everything */
  overflow: hidden;
  padding: 12px 0;
}

/* Fix for dropdown appearing behind hero image */
.hero {
  position: relative;
  z-index: 1; /* Lower z-index than header */
}

/* Fix for any potential conflicts with other elements */
.mobile-menu-overlay {
  z-index: 1049; /* Just below header */
}

/* Dropdown Header */
.user-dropdown-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
}

.user-dropdown-header .user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 12px;
  border: 2px solid var(--primary-color);
}

.user-dropdown-header .user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-dropdown-header .user-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 3px;
}

.user-dropdown-header .user-email {
  font-size: 13px;
  color: var(--text-muted);
  word-break: break-all;
}

/* Dropdown divider */
.dropdown-divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.08);
  margin: 8px 0;
  border: none;
}

/* Dropdown items */
.dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.2s;
  font-size: 14px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.dropdown-item:hover, .dropdown-item:focus {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--primary-color);
  outline: none;
}

.dropdown-item i {
  margin-right: 12px;
  width: 16px;
  text-align: center;
  font-size: 16px;
  color: var(--text-muted);
}

.dropdown-item span {
  flex-grow: 1;
}

/* Notification indicator in menu */
.menu-notification-badge {
  background-color: var(--danger-color, #dc3545);
  color: white;
  border-radius: 10px;
  font-size: 10px;
  padding: 2px 6px;
  font-weight: bold;
}

.dropdown-item.has-notification i {
  color: var(--danger-color, #dc3545);
}

/* Sign out button */
.sign-out-btn {
  color: var(--danger-color);
}

.sign-out-btn i {
  color: var(--danger-color);
}

/* Mobile responsiveness for user menu */
@media (max-width: 768px) {
  .user-menu-button .user-info {
    display: none;
  }

  .dropdown-arrow {
    display: none;
  }
  
  .user-dropdown {
    width: 250px;
    right: -80px;
  }
  
  .user-dropdown:before {
    content: '';
    position: absolute;
    top: -8px;
    right: 90px;
    width: 16px;
    height: 16px;
    background-color: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
  }
}

/* Nav links in mobile view */
@media (max-width: 991px) {
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 1000;
  }

  .nav-links.active li {
    margin: 8px 0;
  }
  
  .nav-links .user-menu-container {
    width: 100%;
    margin: 10px 0;
  }
  
  .nav-links .auth-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-links .auth-buttons a {
    width: 100%;
    text-align: center;
    margin: 5px 0;
  }
  
  .mobile-menu-open .user-dropdown {
    position: static;
    width: 100%;
    margin-top: 10px;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
}

/* Authentication State Management Styling */
.auth-loading {
  /* Prevent content jumps during auth state determination */
  min-height: 100vh;
}

.auth-loading [data-auth-required],
.auth-loading [data-role-required],
.auth-loading .auth-dependent {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.auth-ready [data-auth-required],
.auth-ready [data-role-required],
.auth-ready .auth-dependent {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

/* Using HTML attribute selectors for global state management */
html[data-auth-state="authenticated"] .auth-only {
  display: block;
}

html[data-auth-state="unauthenticated"] .auth-only {
  display: none;
}

html[data-auth-state="authenticated"] .guest-only {
  display: none;
}

html[data-auth-state="unauthenticated"] .guest-only {
  display: block;
}

/* Role-specific content visibility */
html[data-user-role="client"] .client-only,
html[data-user-role="freelancer"] .freelancer-only,
html[data-user-role="tasker"] .tasker-only,
html[data-user-role="admin"] .admin-only {
  display: block;
}

html:not([data-user-role="client"]) .client-only,
html:not([data-user-role="freelancer"]) .freelancer-only,
html:not([data-user-role="tasker"]) .tasker-only,
html:not([data-user-role="admin"]) .admin-only {
  display: none;
}

/* User dropdown header styling improvements */
.user-dropdown-header .user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 12px;
  border: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
}

/* Logo styling - Improved for responsive design */
.logo, 
.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 60px; /* Fixed height for consistency */
}

.logo img,
.logo-container img {
  max-height: 100%; /* Use max-height to maintain aspect ratio */
  width: auto; /* Auto width to maintain aspect ratio */
  height: auto; /* Auto height to prevent stretching */
  object-fit: contain; /* Ensure image fits without distortion */
  max-width: 180px; /* Limit maximum width */
  display: block; /* Remove any inline spacing issues */
  transition: transform 0.2s ease;
}

/* Ensure logo hover effect is subtle */
.logo:hover img,
.logo-container:hover img {
  transform: scale(1.02);
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
  .logo,
  .logo-container {
    height: 50px;
  }
  
  .logo img,
  .logo-container img {
    max-width: 140px;
  }
}

@media (max-width: 480px) {
  .logo,
  .logo-container {
    height: 40px;
  }
  
  .logo img,
  .logo-container img {
    max-width: 120px;
  }
}

/* Logo and branding - consistent across all pages */
.logo,
.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 60px;
  max-height: 60px;
  overflow: hidden;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img,
.logo-container img {
  max-height: 100%; /* Use max-height to maintain aspect ratio */
  width: auto; /* Auto width to maintain aspect ratio */
  height: auto; /* Auto height to prevent stretching */
  object-fit: contain; /* Ensure image fits without distortion */
  max-width: 180px; /* Limit maximum width */
  display: block; /* Remove any inline spacing issues */
  transition: transform 0.2s ease;
}

/* Ensure logo hover effect is subtle */
.logo:hover img,
.logo-container:hover img {
  transform: scale(1.02);
}

/* Logo size classes */
.logo img.logo-medium,
.logo-container img.logo-medium {
  max-width: 140px;
}

.logo img.logo-small,
.logo-container img.logo-small {
  max-width: 120px;
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
  .logo,
  .logo-container {
    height: 50px;
  }
  
  .logo img,
  .logo-container img {
    max-width: 140px;
  }
}

@media (max-width: 480px) {
  .logo,
  .logo-container {
    height: 40px;
  }
  
  .logo img,
  .logo-container img {
    max-width: 120px;
  }
}

/* Logo styling for consistent display across all pages */
.logo,
.logo-container {
  display: flex;
  align-items: center;
  height: 60px;
  max-height: 60px;
  overflow: hidden;
}

.logo img,
.logo-container img {
  max-height: 100%;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

/* Ensure logo hover effect is subtle */
.logo:hover img,
.logo-container:hover img {
  transform: scale(1.02);
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
  .logo,
  .logo-container {
    height: 50px;
  }
  
  .logo img,
  .logo-container img {
    max-width: 140px;
  }
}

@media (max-width: 480px) {
  .logo,
  .logo-container {
    height: 40px;
  }
  
  .logo img,
  .logo-container img {
    max-width: 120px;
  }
}

/* Add Skeleton Loading Styles */
.skeleton {
  background-color: #e0e0e0;
  background-image: linear-gradient(90deg, #e0e0e0 0px, #f0f0f0 40px, #e0e0e0 80px);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  border-radius: 4px;
  display: inline-block;
  line-height: 1;
  width: 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-card {
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
}

.skeleton-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 16px auto;
}

.skeleton-title {
  height: 24px;
  margin: 16px 16px 8px;
  width: 70%;
}

.skeleton-text {
  height: 16px;
  margin: 8px 16px;
}

.skeleton-text.short {
  width: 40%;
}

.skeleton-text.medium {
  width: 60%;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Profile Completion Components */
.profile-completion {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.profile-completion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.profile-completion-progress {
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.profile-completion-bar {
  height: 100%;
  background-color: #34b27b;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.profile-completion-items {
  margin-top: 1rem;
}

.completion-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.completion-item i {
  margin-right: 8px;
}

.completion-item.completed {
  color: #34b27b;
}

.completion-item.pending {
  color: #f5a623;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .tabs {
    flex-direction: column;
    align-items: stretch;
  }
  
  .tab-btn {
    margin-bottom: 0.5rem;
    width: 100%;
  }
  
  .categories-grid, 
  .why-cards-grid, 
  .freelancers-slider, 
  .jobs-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .categories-grid,
  .steps-grid,
  .why-cards-grid,
  .jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Enhanced Animation Transitions */
.fade-up, 
.fade-in, 
.slide-up, 
.slide-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.fade-up.animate, 
.fade-in.animate, 
.slide-up.animate, 
.slide-in.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Improved Category Card Styling */
.category-card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  background-color: #f9f9f9;
}

/* Adding Style for Search With Suggestions */
.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.search-suggestions.active {
  display: block;
}

.search-suggestion-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-suggestion-item:last-child {
  border-bottom: none;
}

.search-suggestion-item:hover {
  background-color: #f5f5f5;
}

.search-category-label {
  font-size: 0.8rem;
  color: #666;
  margin-right: 8px;
}

/* Logo Responsive Styling */
.responsive-logo {
  max-width: 100%;
  height: auto;
  width: auto;
  max-height: 60px;
  object-fit: contain;
  display: block;
}

/* Logo styling for auth pages */
.auth-logo img.responsive-logo {
  max-height: 60px;
  margin: 0 auto;
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
  .responsive-logo {
    max-height: 50px;
  }
}

@media (max-width: 480px) {
  .responsive-logo {
    max-height: 40px;
  }
}

/* Featured Freelancers Teaser Styling */
.freelancers-teaser {
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: var(--border-radius-lg);
  margin: var(--space-lg) 0;
}

.teaser-content {
  max-width: 600px;
  margin: 0 auto;
}

.teaser-icon {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.teaser-icon i {
  font-size: 2.5rem;
  color: var(--primary);
  animation: pulse 2s infinite;
}

.teaser-icon i:nth-child(2) {
  animation-delay: 0.5s;
}

.teaser-icon i:nth-child(3) {
  animation-delay: 1s;
}

.freelancers-teaser h3 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

.freelancers-teaser p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.teaser-highlights {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.highlight {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--success);
  font-weight: 500;
}

.highlight i {
  font-size: 1.2rem;
}

.teaser-cta {
  margin-top: var(--space-lg);
}

.cta-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

.btn-large {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  transition: all var(--transition-normal);
}

.btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Responsive adjustments for teaser */
@media (max-width: 768px) {
  .freelancers-teaser {
    padding: var(--space-lg) var(--space-md);
  }
  
  .teaser-highlights {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .freelancers-teaser h3 {
    font-size: 1.6rem;
  }
  
  .teaser-icon i {
    font-size: 2rem;
  }
}

/* Pricing Banner Carousel - REMOVED to prevent conflicts with inline styles */