/* ===================================================================
   Project Listing V2 Styles - Bahrain Skills Platform
   Modern, Scannable Project Discovery Interface
   Author: FEDEV
   Date: 2026-01-06
   =================================================================== */

/* ===================================================================
   BASE STYLES & RESET
   =================================================================== */

.search-project-v2-wrapper {
  background: #F8F9FD;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip to Content Link (Accessibility) */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #E60026;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
  top: 0;
}

/* Focus Visible (Keyboard Navigation) */
*:focus-visible {
  outline: 3px solid #E60026;
  outline-offset: 2px;
}

/* Apply Tajawal font for Arabic */
.search-project-v2-wrapper,
.search-project-v2-wrapper * {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* CRITICAL: Preserve Font Awesome icons - exclude from font-family override */
.search-project-v2-wrapper i[class*="fa-"],
.search-project-v2-wrapper .fa,
.search-project-v2-wrapper .fas,
.search-project-v2-wrapper .far,
.search-project-v2-wrapper .fal,
.search-project-v2-wrapper .fab {
  font-family: 'Font Awesome 5 Free', 'Font Awesome 5 Brands' !important;
}
.search-project-v2-wrapper .fas { font-weight: 900 !important; }
.search-project-v2-wrapper .far { font-weight: 400 !important; }
.search-project-v2-wrapper .fab { font-weight: 400 !important; }

/* ===================================================================
   PAGE HEADER SECTION
   =================================================================== */

.page-header {
  background: linear-gradient(135deg, #E60026 0%, #C7001F 100%);
  padding: 140px 5% 40px; /* 140px top to clear fixed header (110px) */
  color: #fff;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #fff;
}

.page-subtitle {
  font-size: 1.1rem;
  margin: 0 0 1.5rem 0;
  opacity: 0.9;
  color: #fff;
}

.results-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.results-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.95rem;
  color: #fff;
}

.results-count strong {
  font-weight: 700;
  color: #fff;
}

/* ===================================================================
   MAIN CONTENT GRID LAYOUT
   =================================================================== */

.main-content {
  padding: 2rem 5% 4rem;
}

.content-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ===================================================================
   FILTER SIDEBAR
   =================================================================== */

.filter-sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #E5E7EB;
}

.sidebar-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: #1A1A1A;
}

.btn-clear-all {
  background: none;
  border: none;
  color: #E60026;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.btn-clear-all:hover {
  background: #FFE5E8;
}

/* Active Filter Chips */
.active-filters {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #F8F9FD;
  border-radius: 8px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid #E5E7EB;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #666;
}

.filter-chip i {
  font-size: 0.75rem;
  cursor: pointer;
  color: #E60026;
}

.filter-chip i:hover {
  color: #C7001F;
}

/* Filter Groups */
.filter-group {
  margin-bottom: 1.5rem;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 0.75rem;
}

.filter-label i {
  color: #E60026;
  font-size: 1rem;
}

/* Filter Inputs */
.filter-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.filter-input:focus {
  outline: none;
  border-color: #E60026;
}

.filter-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-select:focus {
  outline: none;
  border-color: #E60026;
}

.filter-select:disabled {
  background: #F8F9FD;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Skills Multi-Select */
.skills-multiselect {
  position: relative;
}

.skills-dropdown-btn {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.skills-dropdown-btn:hover {
  border-color: #E60026;
}

.skills-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
  max-height: 300px;
  overflow-y: auto;
}

.skills-search {
  padding: 0.75rem;
  border-bottom: 1px solid #E5E7EB;
}

.skills-list {
  padding: 0.5rem;
}

.skill-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
}

.skill-option:hover {
  background: #F8F9FD;
}

.skill-option input[type="checkbox"] {
  cursor: pointer;
}

/* Budget Range Slider */
/* Dual-Range Budget Slider */
.budget-range-dual {
  padding: 0.5rem 0;
}

.budget-values {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #E60026;
}

.range-slider-wrapper {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
}

.range-slider-track {
  position: absolute;
  width: 100%;
  height: 6px;
  background: #E5E7EB;
  border-radius: 3px;
  pointer-events: none;
  top: 50%;
  transform: translateY(-50%);
}

.range-slider-progress {
  position: absolute;
  height: 6px;
  background: linear-gradient(90deg, #E60026, #C7001F);
  border-radius: 3px;
  pointer-events: none;
  top: 50%;
  transform: translateY(-50%);
}

.range-slider-input {
  position: absolute;
  width: 100%;
  height: 20px;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin: 0;
  padding: 0;
}

.range-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 3px solid #E60026;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.range-slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(230, 0, 38, 0.3);
}

.range-slider-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #fff;
  border: 3px solid #E60026;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.range-slider-input::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(230, 0, 38, 0.3);
}

.range-slider-input::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  height: 20px;
  background: transparent;
}

.range-slider-input::-moz-range-track {
  background: transparent;
  border: none;
  height: 20px;
}

/* Radio Groups */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.radio-label:hover {
  background: #F8F9FD;
}

.radio-label input[type="radio"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.radio-label span {
  font-size: 0.9rem;
  color: #666;
}

.radio-label input[type="radio"]:checked + span {
  color: #1A1A1A;
  font-weight: 600;
}

/* Checkbox Label */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem;
  background: #F8F9FD;
  border-radius: 8px;
  transition: background 0.2s;
}

.checkbox-label:hover {
  background: #FFE5E8;
}

.checkbox-label input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.checkbox-label span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1A1A1A;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-label span i {
  color: #10B981;
}

/* Filter Actions (Mobile) */
.filter-actions {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #E5E7EB;
}

.btn-apply-filters {
  width: 100%;
  padding: 0.875rem;
  background: #E60026;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.btn-apply-filters:hover {
  background: #C7001F;
}

/* ===================================================================
   PROJECTS MAIN AREA
   =================================================================== */

.projects-main {
  background: transparent;
}

/* Toolbar */
.projects-toolbar {
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-toggle-filters {
  display: none;
  padding: 0.75rem 1.25rem;
  background: #E60026;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  gap: 0.5rem;
  align-items: center;
}

.btn-toggle-filters i {
  font-size: 1rem;
}

.sort-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #666;
}

.sort-select {
  padding: 0.625rem 1rem;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fff;
  cursor: pointer;
  min-width: 200px;
}

.sort-select:focus {
  outline: none;
  border-color: #E60026;
}

/* Projects List */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Skeleton Loaders - Enhanced */
.skeleton-project-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.skeleton-project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.8) 50%,
    transparent 100%
  );
  animation: skeleton-shimmer 2s infinite;
}

@keyframes skeleton-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.skeleton-line {
  height: 16px;
  background: #E5E7EB;
  border-radius: 4px;
  margin-bottom: 12px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-line.title {
  height: 24px;
  width: 70%;
  margin-bottom: 16px;
}

.skeleton-line.short {
  width: 40%;
}

.skeleton-line.medium {
  width: 60%;
}

.skeleton-line.long {
  width: 85%;
}

.skeleton-circle {
  width: 40px;
  height: 40px;
  background: #E5E7EB;
  border-radius: 50%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* Loading State */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #E5E7EB;
  border-top-color: #E60026;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Pagination */
.pagination-container {
  margin-top: 2rem;
  text-align: center;
}

.btn-load-more {
  padding: 0.875rem 2rem;
  background: #E60026;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.btn-load-more:hover {
  background: #C7001F;
}

/* ===================================================================
   RESPONSIVE DESIGN
   =================================================================== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
  }

  .filter-sidebar {
    padding: 1.25rem;
  }

  .page-title {
    font-size: 2rem;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-header {
    padding: 100px 5% 30px; /* 100px top to clear fixed header (70px on mobile) */
  }

  .page-title {
    font-size: 1.75rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .main-content {
    padding: 1.5rem 5% 3rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Filter Sidebar as Mobile Drawer */
  .filter-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    max-height: 100vh;
    z-index: 1000;
    transition: left 0.3s ease;
    border-radius: 0;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.2);
  }

  .filter-sidebar.active {
    left: 0;
  }

  /* Mobile Overlay */
  .filter-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
  }

  .filter-sidebar-overlay.active {
    display: block;
  }

  .btn-toggle-filters {
    display: inline-flex;
  }

  .mobile-only {
    display: block !important;
  }

  .projects-toolbar {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .toolbar-left,
  .toolbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .sort-select {
    flex: 1;
  }
}

/* Extra Small Screens (max-width: 480px) */
@media (max-width: 480px) {
  .page-header {
    padding: 90px 20px 20px; /* 90px top to clear fixed header (70px on mobile) */
  }

  .page-title {
    font-size: 1.5rem;
  }

  .page-subtitle {
    font-size: 0.9rem;
  }

  .main-content {
    padding: 1rem 20px 2rem;
  }

  .filter-sidebar {
    width: 90%;
  }

  .results-count {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }
}

/* ===================================================================
   PROJECT CARDS - Modern Scannable Design
   =================================================================== */

.project-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: both;
}

/* Featured Project Card - Premium Styling */
.project-card.featured {
  background: linear-gradient(135deg, #FFF9E6 0%, #FFFFFF 100%);
  border: 2px solid #F59E0B;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

.project-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #F59E0B 0%, #D97706 50%, #F59E0B 100%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.project-card.featured:hover {
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.35);
  border-color: #D97706;
  transform: translateY(-6px) scale(1.01);
}

/* Staggered animation for multiple cards */
.project-card:nth-child(1) { animation-delay: 0.05s; }
.project-card:nth-child(2) { animation-delay: 0.1s; }
.project-card:nth-child(3) { animation-delay: 0.15s; }
.project-card:nth-child(4) { animation-delay: 0.2s; }
.project-card:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #E60026;
  transform: translateY(-4px);
}

.project-card:focus-within {
  outline: 3px solid #E60026;
  outline-offset: 2px;
}

/* Card Header */
.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-title-section {
  flex: 1;
  min-width: 0;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-title:hover {
  color: #E60026;
  cursor: pointer;
}

/* Budget Badge */
.budget-badge {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  flex-shrink: 0;
}

.budget-badge.fixed {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.budget-badge.hourly {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Project Badges */
.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-badge.new {
  background: #DBEAFE;
  color: #1E40AF;
}

.project-badge.hot {
  background: #FEE2E2;
  color: #991B1B;
}

.project-badge.closing-soon {
  background: #FEF3C7;
  color: #92400E;
}

.project-badge.verified {
  background: #D1FAE5;
  color: #065F46;
}

/* NEW: GCC Regional Badges */
.project-badge.gcc-region {
  background: #DBEAFE;
  color: #1E40AF;
  border: 1px solid #3B82F6;
}

.project-badge.gcc-arabic {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #10B981;
}

/* NEW: Skill Match Badge (for freelancers) */
.project-badge.skill-match {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #10B981;
  font-weight: 600;
}

.project-badge.skill-match i {
  color: #10B981;
}

.project-badge.featured {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  color: #92400E;
  border: 1px solid #F59E0B;
  font-weight: 700;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0);
  }
}

.project-badge i {
  font-size: 0.875rem;
}

/* Project Meta (Time + Proposals) */
.project-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  color: #666;
  font-size: 0.9rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-item i {
  color: #E60026;
  font-size: 1rem;
}

.meta-item.highlight {
  color: #E60026;
  font-weight: 600;
}

/* Project Description */
.project-description {
  color: #4B5563;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Project Skills */
.project-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  min-height: 32px;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  background: #F8F9FD;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #4B5563;
  font-weight: 500;
  transition: all 0.2s;
}

.skill-pill:hover {
  background: #E60026;
  color: #fff;
  border-color: #E60026;
  cursor: pointer;
}

.skill-pill i {
  margin-right: 0.375rem;
  font-size: 0.75rem;
}

.more-skills {
  background: #E5E7EB;
  color: #666;
  font-weight: 600;
}

/* Employer Info */
.employer-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0 0 0;
  border-top: 1px solid #E5E7EB;
  margin-bottom: 1rem;
}

.employer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #666;
  background: #F8F9FD;
}

.employer-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.employer-details {
  flex: 1;
  min-width: 0;
}

.employer-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1A1A1A;
  display: block;
  margin-bottom: 0.25rem;
}

.employer-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: #666;
}

.employer-rating {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: #F59E0B;
  font-weight: 600;
}

.employer-rating i {
  font-size: 0.875rem;
}

.employer-verified {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: #10B981;
  font-weight: 600;
}

.employer-verified i {
  font-size: 0.875rem;
}

/* View Details Button */
.btn-view-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  margin-top: 0.75rem;
  background: #E60026;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-view-details:hover {
  background: #C7001F;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 0, 38, 0.3);
}

.btn-view-details i {
  font-size: 1rem;
  color: inherit;
  transition: transform 0.3s;
}

.btn-view-details:hover i {
  color: #fff !important;
  transform: translateX(4px);
}

/* Sponsored CTA - Combined "Bid & get fee subsidy" button */
.btn-view-details.sponsored-cta {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  font-size: 0.9rem;
  letter-spacing: 0.2px;
}

.btn-view-details.sponsored-cta:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* Card Footer Actions (Quick Actions) */
.card-footer-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #E5E7EB;
}

.btn-quick-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: #F8F9FD;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4B5563;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-quick-action i {
  color: inherit;
}

.btn-quick-action:hover {
  background: #E60026 !important;
  border-color: #E60026 !important;
  color: #fff !important;
  text-decoration: none;
}

.btn-quick-action:hover i {
  color: #fff !important;
}

.btn-quick-action.saved {
  background: #FEE2E2;
  border-color: #E60026;
  color: #E60026;
}

.btn-quick-action.saved:hover {
  background: #E60026 !important;
  border-color: #E60026 !important;
  color: #fff !important;
}

.btn-quick-action.saved:hover i {
  color: #fff !important;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.empty-state i {
  font-size: 4rem;
  color: #D1D5DB;
  margin-bottom: 1.5rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 0.75rem 0;
}

.empty-state p {
  font-size: 1rem;
  color: #666;
  margin: 0 0 1.5rem 0;
}

.btn-clear-filters {
  padding: 0.875rem 2rem;
  background: #E60026;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-clear-filters:hover {
  background: #C7001F;
}

/* Error State */
.error-state {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.error-state i {
  font-size: 4rem;
  color: #EF4444;
  margin-bottom: 1.5rem;
}

.error-state h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 0.75rem 0;
}

.error-state p {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

/* Responsive Adjustments for Cards */
@media (max-width: 768px) {
  .project-card {
    padding: 1.25rem;
  }

  .project-card-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .budget-badge {
    align-self: flex-start;
  }

  .project-title {
    font-size: 1.1rem;
  }

  .project-meta {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .card-footer-actions {
    flex-direction: column;
  }

  .btn-quick-action {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .project-card {
    padding: 1rem;
  }

  .project-title {
    font-size: 1rem;
  }

  .budget-badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.875rem;
  }

  .project-description {
    font-size: 0.9rem;
  }
}

/* ===================================================================
   QUICK VIEW MODAL
   =================================================================== */

.quick-view-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.quick-view-modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease-out;
  z-index: 1;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 2px solid #E5E7EB;
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0;
  flex: 1;
  padding-right: 1rem;
}

.btn-close-modal {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-close-modal:hover {
  background: #F3F4F6;
  color: #E60026;
}

.btn-close-modal i {
  font-size: 1.25rem;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.modal-section {
  margin-bottom: 2rem;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 1rem 0;
}

.budget-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.budget-info .label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.budget-info .value {
  font-size: 1.5rem;
  font-weight: 700;
}

.meta-info {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.95rem;
  color: #666;
}

.meta-info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-info i {
  color: #E60026;
}

.modal-section p {
  color: #4B5563;
  line-height: 1.7;
  margin: 0;
}

.text-muted {
  color: #9CA3AF;
  font-style: italic;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 2px solid #E5E7EB;
  flex-shrink: 0;
}

.btn-primary,
.btn-secondary {
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: #E60026;
  color: #fff;
}

.btn-primary:hover {
  background: #C7001F;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 0, 38, 0.3);
}

.btn-secondary {
  background: #F3F4F6;
  color: #4B5563;
}

.btn-secondary:hover {
  background: #E5E7EB;
  color: #1A1A1A;
}

/* Modal Responsive */
@media (max-width: 768px) {
  .quick-view-modal {
    padding: 0;
  }

  .modal-content {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    height: 100%;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1.25rem;
  }

  .modal-header h2 {
    font-size: 1.25rem;
  }

  .budget-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .meta-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .modal-footer {
    flex-direction: column-reverse;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ===================================================================
   SAVED SEARCHES FEATURE
   =================================================================== */

/* Saved Searches Section in Filter Sidebar */
.saved-searches-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #E5E7EB;
}

/* Save This Search Button */
.btn-save-search {
  width: 100%;
  padding: 0.875rem;
  background: #fff;
  color: #E60026;
  border: 2px solid #E60026;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.btn-save-search:hover {
  background: #E60026;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 0, 38, 0.3);
}

.btn-save-search i {
  font-size: 1rem;
}

/* Save Search Modal Specific Styles */
.save-search-modal .modal-content {
  max-width: 600px;
}

.current-filters-summary {
  background: #F8F9FD;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.current-filters-summary h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filters-display {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filters-display .filter-chip {
  background: #fff;
  border: 1px solid #E5E7EB;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #666;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.filters-display .filter-chip i {
  color: #E60026;
  font-size: 0.75rem;
}

.filters-display .filter-chip strong {
  color: #1A1A1A;
  font-weight: 600;
}

/* Form Controls in Modal */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 0.5rem;
}

.form-group .form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group .form-control:focus {
  outline: none;
  border-color: #E60026;
  box-shadow: 0 0 0 3px rgba(230, 0, 38, 0.1);
}

.form-group .form-text {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #666;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 300px;
  max-width: 500px;
  z-index: 10001;
  animation: slideInRight 0.3s ease-out;
  border-left: 4px solid #10B981;
}

.toast-notification.success {
  border-left-color: #10B981;
}

.toast-notification.error {
  border-left-color: #EF4444;
}

.toast-notification.warning {
  border-left-color: #F59E0B;
}

.toast-notification.info {
  border-left-color: #3B82F6;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-notification i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast-notification.success i {
  color: #10B981;
}

.toast-notification.error i {
  color: #EF4444;
}

.toast-notification.warning i {
  color: #F59E0B;
}

.toast-notification.info i {
  color: #3B82F6;
}

.toast-notification .toast-message {
  flex: 1;
  font-size: 0.95rem;
  color: #1A1A1A;
}

.toast-notification .toast-close {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  flex-shrink: 0;
}

.toast-notification .toast-close:hover {
  background: #F3F4F6;
  color: #1A1A1A;
}

/* Toast fade out animation */
.toast-notification.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

/* Mobile Responsive for Toast */
@media (max-width: 768px) {
  .toast-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    min-width: auto;
    max-width: none;
  }

  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateY(-50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fadeOut {
    from {
      opacity: 1;
      transform: translateY(0);
    }
    to {
      opacity: 0;
      transform: translateY(-50px);
    }
  }
}

/* Desktop Only */
@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}
