/**
 * Homepage Styles - Workreap Design System
 * Uses existing Workreap colors and patterns
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
  --wr-hp-primary: #6366f1;
  --wr-hp-primary-dark: #4f46e5;
  --wr-hp-primary-light: #818cf8;
  --wr-hp-accent: #f59e0b;
  --wr-hp-text: #1f2937;
  --wr-hp-text-light: #6b7280;
  --wr-hp-text-muted: #9ca3af;
  --wr-hp-bg: #ffffff;
  --wr-hp-bg-alt: #f9fafb;
  --wr-hp-bg-dark: #111827;
  --wr-hp-border: #e5e7eb;
  --wr-hp-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --wr-hp-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --wr-hp-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --wr-hp-shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --wr-hp-radius: 12px;
  --wr-hp-radius-lg: 16px;
  --wr-hp-radius-xl: 24px;
  --wr-hp-transition: 0.2s ease;
}

/* ============================================
   Base Styles
   ============================================ */
.workreap-homepage-container {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--wr-hp-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wr-homepage {
  overflow-x: hidden;
}

.wr-container {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}

.wr-section-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--wr-hp-text);
}

.wr-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.wr-section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wr-hp-primary);
  font-weight: 500;
  text-decoration: none;
  transition: var(--wr-hp-transition);
}

.wr-section-link:hover {
  color: var(--wr-hp-primary-dark);
  gap: 12px;
}

.wr-section-link svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   Skeleton Loaders
   ============================================ */
.wr-section-skeleton {
  background: var(--wr-hp-bg-alt);
  border-radius: var(--wr-hp-radius-lg);
  position: relative;
  overflow: hidden;
  padding: 60px 24px;
}

.wr-skeleton-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skeleton-box {
  background: var(--wr-hp-border);
  border-radius: var(--wr-hp-radius);
}

.skeleton-text {
  height: 16px;
  background: var(--wr-hp-border);
  border-radius: 4px;
  margin: 8px 0;
}

/* ============================================
   Hero Section
   ============================================ */
.wr-hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 100px 24px 80px;
  overflow: hidden;
}

.wr-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
  z-index: 0;
}

.wr-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.4) 0%, transparent 50%),
              radial-gradient(ellipse at bottom left, rgba(139, 92, 246, 0.3) 0%, transparent 50%);
}

.wr-hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.8;
}

.wr-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.wr-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: white;
  margin: 0 0 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.wr-hero-title-accent {
  background: linear-gradient(90deg, #fde047, #facc15);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wr-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Search Form */
.wr-hero-search-wrapper {
  width: 100%;
  margin: 0 auto;
}

/* Search Type Tabs - Above search box */
.wr-hero-search-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.wr-hero-search-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid transparent;
  border-radius: 30px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--wr-hp-transition);
  backdrop-filter: blur(8px);
}

.wr-hero-search-tab svg {
  width: 20px;
  height: 20px;
}

.wr-hero-search-tab:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.wr-hero-search-tab.active {
  background: white;
  color: var(--wr-hp-primary);
  border-color: white;
}

@media (max-width: 480px) {
  .wr-hero-search-tabs {
    gap: 6px;
  }
  
  .wr-hero-search-tab {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  .wr-hero-search-tab svg {
    width: 18px;
    height: 18px;
  }
}

.wr-hero-search-form {
  width: 100%;
}

 .wr-hero-search-container {
  position: relative;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--wr-hp-radius-xl);
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.3);
  overflow: visible;
  border: 3px solid transparent;
  transition: var(--wr-hp-transition);
}

.wr-hero-search-container.focused {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Main search row */
.wr-hero-search-main {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 16px;
  flex-wrap: nowrap;
}

.wr-search-field {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: #f8fafc;
  border: 1.5px solid var(--wr-hp-border);
  border-radius: var(--wr-hp-radius-lg);
  min-height: 64px;
  transition: var(--wr-hp-transition);
  min-width: 0;
}

.wr-search-field:focus-within {
  border-color: var(--wr-hp-primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.wr-search-field-icon {
  width: 20px;
  height: 20px;
  color: var(--wr-hp-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wr-search-field input {
  border: none;
  background: transparent;
  width: 100%;
  min-width: 0;
  font-size: 1rem;
  color: var(--wr-hp-text);
  outline: none;
}

.wr-search-field input::-moz-placeholder {
  color: var(--wr-hp-text-muted);
}

.wr-search-field input::placeholder {
  color: var(--wr-hp-text-muted);
}

.wr-search-field-query {
  flex: 1 1 300px;
  min-width: 200px;
}

.wr-search-field-location {
  flex: 0 0 220px;
  min-width: 180px;
}

.wr-search-field-date {
  flex: 0 0 180px;
  min-width: 160px;
}

.wr-hero-search-input {
  font-size: 1.05rem;
}

.wr-hero-search-input::-moz-placeholder {
  color: var(--wr-hp-text-muted);
}

.wr-hero-search-input::placeholder {
  color: var(--wr-hp-text-muted);
}

.wr-hero-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
  min-width: 140px;
  min-height: 64px;
  background: var(--wr-hp-primary);
  color: white;
  border: none;
  border-radius: var(--wr-hp-radius-lg);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: var(--wr-hp-transition);
  box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.85);
}

.wr-hero-search-btn:hover {
  background: var(--wr-hp-primary-dark);
  transform: translateY(-1px) scale(1.01);
}

.wr-hero-search-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Location/date inputs within row */
.wr-hero-search-location {
  font-size: 0.95rem;
  color: var(--wr-hp-text);
  padding-right: 48px;
}

.wr-hero-locate-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #e0e7ff;
  color: var(--wr-hp-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--wr-hp-transition);
}

.wr-hero-locate-btn:hover {
  background: #c7d2fe;
}

.wr-hero-locate-btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.wr-hero-locate-btn svg {
  width: 18px;
  height: 18px;
}

.wr-hero-locate-btn--loading svg {
  animation: wr-spin 1s linear infinite;
}

/* Search Results - Improved */
.wr-hero-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: var(--wr-hp-radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  z-index: 100;
  max-height: 500px;
  overflow-y: auto;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wr-hero-search-results-content {
  display: flex;
  flex-direction: column;
}

.wr-hero-results-header {
  padding: 12px 20px;
  background: var(--wr-hp-bg-alt);
  border-bottom: 1px solid var(--wr-hp-border);
  font-size: 0.85rem;
  color: var(--wr-hp-text-light);
  font-weight: 500;
}

.wr-results-count {
  display: inline-block;
}

.wr-hero-results-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--wr-hp-text-light);
}

.wr-hero-results-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.wr-hero-results-empty p {
  margin: 0 0 16px 0;
  font-size: 1rem;
  color: var(--wr-hp-text);
  font-weight: 500;
}

/* Skeleton loader */
.wr-hero-search-skeleton {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--wr-hp-border);
}

.wr-skeleton-thumb {
  width: 56px;
  height: 56px;
  background: var(--wr-hp-border);
  border-radius: var(--wr-hp-radius);
  flex-shrink: 0;
}

.wr-skeleton-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wr-skeleton-title {
  width: 100%;
  height: 18px;
  background: var(--wr-hp-border);
  border-radius: 4px;
}

.wr-skeleton-subtitle {
  width: 70%;
  height: 14px;
  background: var(--wr-hp-border);
  border-radius: 4px;
}

/* Shimmer animation */
.shimmer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    var(--wr-hp-border) 0%,
    #f0f0f0 50%,
    var(--wr-hp-border) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes wr-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@media (max-width: 900px) {
  .wr-hero-search-main {
    flex-direction: column;
    padding: 12px;
  }

  .wr-search-field,
  .wr-search-field-location,
  .wr-search-field-date {
    flex: 1 1 auto;
    width: 100%;
  }

  .wr-hero-search-btn {
    width: 100%;
    min-height: 56px;
    margin-top: 6px;
  }

  .wr-hero-search-btn span {
    display: inline;
  }

  .wr-search-field-date {
    display: none;
  }
}

/* Search Results Dropdown */
.wr-hero-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: var(--wr-hp-radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  z-index: 100;
  max-height: 500px;
  overflow-y: auto;
  animation: slideDown 0.2s ease-out;
}

.wr-hero-search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: var(--wr-hp-text-light);
}

.wr-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--wr-hp-border);
  border-top-color: var(--wr-hp-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Result Items */
.wr-hero-search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--wr-hp-border);
}

.wr-hero-search-result-item:last-of-type {
  border-bottom: none;
}

.wr-hero-search-result-item:hover {
  background: var(--wr-hp-bg-alt);
  padding-left: 24px;
}

.wr-result-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--wr-hp-radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--wr-hp-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wr-result-thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.wr-result-thumb--placeholder {
  color: var(--wr-hp-text-muted);
}

.wr-result-thumb--placeholder svg {
  width: 28px;
  height: 28px;
}

.wr-result-content {
  flex: 1;
  min-width: 0;
}

.wr-result-title {
  font-weight: 600;
  color: var(--wr-hp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.wr-result-title mark {
  background: rgba(99, 102, 241, 0.2);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 700;
}

.wr-result-author {
  font-size: 0.85rem;
  color: var(--wr-hp-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wr-result-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.wr-result-category {
  font-size: 0.75rem;
  color: var(--wr-hp-primary);
  background: rgba(99, 102, 241, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.wr-result-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wr-hp-text);
}

/* "View All Results" Button */
.wr-hero-search-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: var(--wr-hp-bg-alt);
  border-top: 1px solid var(--wr-hp-border);
  color: var(--wr-hp-primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.wr-hero-search-view-all:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--wr-hp-primary-dark);
}

.wr-hero-search-view-all svg {
  width: 16px;
  height: 16px;
}

/* Popular Searches */
.wr-hero-popular {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.wr-hero-popular-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.wr-hero-popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.wr-hero-popular-tags a {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-radius: 20px;
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--wr-hp-transition);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wr-hero-popular-tags a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Stats */
.wr-hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
}

.wr-hero-stat {
  text-align: center;
}

.wr-hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

.wr-stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
}

.wr-stat-label {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .wr-hero-section {
    padding: 60px 16px 48px;
    min-height: auto;
  }

  .wr-hero-stats {
    gap: 16px;
    margin-top: 32px;
  }

  .wr-stat-number {
    font-size: 1.5rem;
  }

  .wr-stat-label {
    font-size: 0.75rem;
  }

  .wr-hero-subtitle {
    margin-bottom: 28px;
  }
}

@media (max-width: 480px) {
  .wr-hero-section {
    padding: 48px 12px 36px;
  }

  .wr-hero-popular {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .wr-hero-popular::-webkit-scrollbar { display: none; }
  .wr-hero-popular-label { flex-shrink: 0; }
  .wr-hero-popular-tags { flex-wrap: nowrap; }
  .wr-hero-popular-tags a { white-space: nowrap; flex-shrink: 0; }

  .wr-hero-stats {
    gap: 12px;
    margin-top: 24px;
  }

  .wr-stat-number {
    font-size: 1.25rem;
  }
}

/* ============================================
   Categories Section – Enhanced Image Cards
   ============================================ */
/* ── LIGHT MODE (default) ── */
.wr-categories-section {
  padding: 64px 24px;
  background: var(--wr-hp-bg, #ffffff);
  color: var(--wr-hp-text, #1f2937);
}

.wr-ecat-title {
  text-align: center;
  margin-bottom: 28px;
  color: var(--wr-hp-text, #1f2937) !important;
}

.wr-ecat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 16px;
}

@media (min-width: 640px) {
  .wr-ecat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  .wr-ecat-grid { grid-template-columns: repeat(5, 1fr); }
}

.wr-ecat-viewall-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f0f0ff 0%, #e8e8ff 100%);
  border: 2px dashed rgba(99, 102, 241, 0.3);
  text-decoration: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.wr-ecat-viewall-card:hover {
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.5);
}
.wr-ecat-viewall-card__text {
  font-size: 0.85rem;
  font-weight: 700;
  color: #4338ca;
  text-align: center;
}
.wr-ecat-viewall-card__arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 50%;
  color: #4338ca;
  transition: background 0.25s ease;
}
.wr-ecat-viewall-card:hover .wr-ecat-viewall-card__arrow {
  background: rgba(99, 102, 241, 0.22);
}
.wr-ecat-viewall-card__arrow svg {
  width: 16px;
  height: 16px;
}

.wr-ecat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 8px;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: background 0.2s ease;
  animation: wr-card-in 0.4s ease both;
}

@keyframes wr-card-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wr-ecat-card:hover {
  background: #f8f7ff;
}

.wr-ecat-card--active {
  background: #eef2ff;
}

.wr-ecat-card--active .wr-ecat-card__name {
  color: #4338ca;
}

.wr-ecat-card__circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #f1f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.wr-ecat-card:hover .wr-ecat-card__circle {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.wr-ecat-card__icon {
  border-radius: 50% !important;
}

.wr-ecat-card__name {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  color: var(--wr-hp-text, #1f2937);
  text-align: center;
}

.wr-ecat-card--skeleton {
  background: var(--wr-hp-border, #e5e7eb);
  pointer-events: none;
  animation: wr-skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes wr-skeleton-pulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

.wr-ecat-expand {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid var(--wr-hp-border, #e5e7eb);
  border-radius: 16px;
  overflow: hidden;
  animation: wr-expand-in 0.3s ease;
}

@keyframes wr-expand-in {
  from { opacity: 0; max-height: 0; }
  to   { opacity: 1; max-height: 800px; }
}

.wr-ecat-expand__inner {
  padding: 24px;
}

.wr-ecat-expand__viewall-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--wr-hp-text, #1f2937);
  text-decoration: none;
  padding-bottom: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--wr-hp-border, #e5e7eb);
}

.wr-ecat-expand__viewall-link:hover {
  text-decoration: underline;
}

.wr-ecat-expand__viewall-link svg {
  flex-shrink: 0;
  color: var(--wr-hp-text-light, #9ca3af);
}

.wr-ecat-expand__viewall-link strong {
  font-weight: 700;
}

.wr-ecat-expand__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 4px 16px;
}

.wr-ecat-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--wr-hp-text, #1f2937);
  transition: background 0.15s;
}

.wr-ecat-sub:hover {
  background: #f3f4f6;
}

.wr-ecat-sub svg {
  flex-shrink: 0;
  color: var(--wr-hp-text-light, #9ca3af);
}

.wr-ecat-sub__name {
  font-size: 0.88rem;
  font-weight: 400;
  flex: 1;
}

.wr-ecat-mobile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 4px;
}

.wr-ecat-mobile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: #fff;
  border: 1px solid var(--wr-hp-border, #e5e7eb);
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  animation: wr-card-in 0.35s ease both;
  transition: background 0.15s ease;
}

.wr-ecat-mobile-card:active {
  background: #f3f4f6;
}

.wr-ecat-mobile-card__circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f1f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wr-ecat-mobile-card__icon {
  flex-shrink: 0;
  border-radius: 50% !important;
}

.wr-ecat-mobile-card__name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--wr-hp-text, #1f2937);
}

.wr-ecat-mobile-card--viewall {
  background: linear-gradient(135deg, #f0f0ff 0%, #e8e8ff 100%);
  border: 2px dashed rgba(99, 102, 241, 0.3);
  justify-content: center;
}
.wr-ecat-mobile-card__viewall-arrow {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 50%;
  color: #4338ca;
}
.wr-ecat-mobile-card__viewall-arrow svg {
  width: 16px;
  height: 16px;
}
.wr-ecat-mobile-card--viewall .wr-ecat-mobile-card__name {
  color: #4338ca;
  font-weight: 700;
}

/* ── DARK MODE overrides ── */
.wr-dark-mode .wr-categories-section {
  background: #111827;
  color: #f3f4f6;
}
.wr-dark-mode .wr-ecat-title {
  color: #f3f4f6 !important;
}
.wr-dark-mode .wr-ecat-card:hover {
  background: rgba(255, 255, 255, 0.06);
}
.wr-dark-mode .wr-ecat-card--active {
  background: rgba(99, 102, 241, 0.12);
}
.wr-dark-mode .wr-ecat-card--active .wr-ecat-card__name {
  color: #a5b4fc;
}
.wr-dark-mode .wr-ecat-card__circle {
  background: #1e1b4b;
}
.wr-dark-mode .wr-ecat-card:hover .wr-ecat-card__circle {
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}
.wr-dark-mode .wr-ecat-card__name {
  color: #e5e7eb;
}
.wr-dark-mode .wr-ecat-expand {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.1);
}
.wr-dark-mode .wr-ecat-expand__viewall-link {
  color: #e5e7eb;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.wr-dark-mode .wr-ecat-sub {
  color: #d1d5db;
}
.wr-dark-mode .wr-ecat-sub:hover {
  background: rgba(255, 255, 255, 0.06);
}
.wr-dark-mode .wr-ecat-mobile-card {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.08);
}
.wr-dark-mode .wr-ecat-mobile-card:active {
  background: #374151;
}
.wr-dark-mode .wr-ecat-mobile-card__circle {
  background: #1e1b4b;
}
.wr-dark-mode .wr-ecat-mobile-card__name {
  color: #e5e7eb;
}
.wr-dark-mode .wr-ecat-mobile-card--viewall {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border-color: rgba(99, 102, 241, 0.4);
}
.wr-dark-mode .wr-ecat-mobile-card__viewall-arrow {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}
.wr-dark-mode .wr-ecat-mobile-card--viewall .wr-ecat-mobile-card__name {
  color: #a5b4fc;
}
.wr-dark-mode .wr-ecat-viewall-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border-color: rgba(99, 102, 241, 0.4);
}
.wr-dark-mode .wr-ecat-viewall-card__text {
  color: #a5b4fc;
}
.wr-dark-mode .wr-ecat-viewall-card__arrow {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.skeleton-text {
  background: var(--wr-hp-border);
  border-radius: 4px;
}

/* ============================================
   Featured Tasks Section — Modern Redesign
   ============================================ */

/* ── Scroll-reveal animation ── */
@keyframes wr-reveal-up {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wr-reveal {
  opacity: 0;
  transform: translateY(36px);
  will-change: opacity, transform;
}

.wr-reveal.wr-revealed {
  animation: wr-reveal-up .55s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

/* ── Section subtitle ── */
.wr-section-subtitle {
  color: var(--wr-hp-text-light);
  font-size: 1rem;
  margin: 6px 0 0;
  font-weight: 400;
}

/* ── Section wrapper ── */
.wr-featured-tasks-section {
  padding: 80px 24px;
  background: var(--wr-hp-bg-alt);
}

/* ── Grid ── */
.wr-tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
}

/* ── Card ── */
.wr-task-card {
  position: relative;
  background: var(--wr-hp-bg);
  border-radius: var(--wr-hp-radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.06), 0 1px 2px rgb(0 0 0 / 0.04);
  transition: transform .28s cubic-bezier(.22,1,.36,1),
              box-shadow .28s cubic-bezier(.22,1,.36,1);
  border: 1px solid var(--wr-hp-border);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.wr-task-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.12),
              0 8px 20px -8px rgb(99 102 241 / 0.08);
  border-color: rgba(99, 102, 241, 0.18);
}

/* ── Image ── */
.wr-task-image {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--wr-hp-bg-alt);
  overflow: hidden;
}

.wr-task-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}

.wr-task-card:hover .wr-task-image img {
  transform: scale(1.06);
}

/* gradient overlay on image bottom */
.wr-task-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.4) 0%, transparent 55%);
  pointer-events: none;
}

/* placeholder when no image */
.wr-task-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wr-hp-bg-alt);
  color: var(--wr-hp-text-muted);
}

.wr-task-image-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: .35;
}

/* ── Badges ── */
.wr-task-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.wr-task-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: .02em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.wr-task-badge--featured {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  box-shadow: 0 2px 8px rgb(245 158 11 / .35);
}

.wr-task-badge--featured svg {
  flex-shrink: 0;
}

.wr-task-badge--category {
  background: rgba(255,255,255,.85);
  color: var(--wr-hp-text);
  border: 1px solid rgba(255,255,255,.4);
}

/* ── Price tag on image ── */
.wr-task-price-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 14px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  z-index: 2;
  box-shadow: 0 2px 8px rgb(0 0 0 / .1);
}

.wr-task-price-from {
  font-size: 0.7rem;
  color: var(--wr-hp-text-muted);
  font-weight: 500;
}

.wr-task-price-amount {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wr-hp-primary);
}

/* ── Content ── */
.wr-task-content {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wr-task-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--wr-hp-text);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}

.wr-task-card:hover .wr-task-title {
  color: var(--wr-hp-primary);
}

/* ── Inline Rating (single star + value) ── */
.wr-task-rating-inline {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wr-task-rating-star {
  width: 16px;
  height: 16px;
  color: #fbbf24;
  flex-shrink: 0;
}

.wr-task-rating-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wr-hp-text-light);
}

/* ── Author row ── */
.wr-task-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--wr-hp-border);
}

.wr-task-author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid var(--wr-hp-border);
  transition: border-color .2s;
}

.wr-task-author-avatar:hover {
  border-color: var(--wr-hp-primary);
}

.wr-task-author-avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.wr-task-author-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(99, 102, 241, 0.1);
  color: var(--wr-hp-primary);
  font-weight: 700;
  font-size: 0.8rem;
}

.wr-task-author-info {
  flex: 1;
  min-width: 0;
}

.wr-task-author-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wr-hp-text);
  cursor: pointer;
  transition: color .2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wr-task-author-name:hover {
  color: var(--wr-hp-primary);
}

.wr-task-verified {
  flex-shrink: 0;
  color: var(--wr-hp-primary);
}

/* ── Skeleton ── */
.wr-task-card.skeleton {
  pointer-events: none;
}

.wr-task-card.skeleton .wr-task-image {
  background: var(--wr-hp-border);
}

.wr-task-card.skeleton .skeleton-text {
  background: var(--wr-hp-border);
  border-radius: 6px;
}

/* ============================================
   Featured Agencies Section
   ============================================ */
.wr-featured-agencies-section {
  padding: 80px 24px;
  background: var(--wr-hp-bg);
}

.wr-agencies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.wr-agency-card {
  display: flex;
  flex-direction: column;
  background: var(--wr-hp-bg);
  border: 1px solid var(--wr-hp-border);
  border-radius: var(--wr-hp-radius-lg);
  text-decoration: none;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), opacity 0.5s cubic-bezier(0.22,1,0.36,1), border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
}

.wr-agency-card.wr-slide-in {
  opacity: 1;
  transform: translateY(0);
}

.wr-agency-card.wr-slide-in:hover {
  border-color: var(--wr-hp-primary);
  box-shadow: var(--wr-hp-shadow-lg);
  transform: translateY(-4px);
}

/* Banner */
.wr-agency-banner-bg {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.wr-agency-banner-bg img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.4s ease;
}

.wr-agency-card:hover .wr-agency-banner-bg img {
  transform: scale(1.05);
}

.wr-agency-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

.wr-agency-banner-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
}

/* Card body */
.wr-agency-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

/* Avatar overlapping banner */
.wr-agency-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wr-hp-bg);
  border: 3px solid var(--wr-hp-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -44px;
  flex-shrink: 0;
}

.wr-agency-avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.wr-agency-avatar-letter {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wr-agency-name {
  font-weight: 700;
  color: var(--wr-hp-text);
  margin: 4px 0 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wr-agency-tagline {
  font-size: 0.85rem;
  color: var(--wr-hp-text-light);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wr-agency-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--wr-hp-text-muted);
}

.wr-agency-location svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.wr-agency-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.wr-service-tag {
  padding: 3px 10px;
  background: var(--wr-hp-bg-alt);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--wr-hp-text-light);
  border: 1px solid var(--wr-hp-border);
}

.wr-service-tag.more {
  background: transparent;
  color: var(--wr-hp-primary);
  border-color: var(--wr-hp-primary);
  font-weight: 600;
}

/* Card footer */
.wr-agency-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--wr-hp-border);
}

.wr-agency-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--wr-hp-text);
}

.wr-agency-rating svg {
  width: 16px;
  height: 16px;
  color: #fbbf24;
  fill: #fbbf24;
}

.wr-agency-review-count {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--wr-hp-text-muted);
}

.wr-agency-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--wr-hp-primary);
  padding: 6px 14px;
  border: 1.5px solid var(--wr-hp-primary);
  border-radius: 20px;
  transition: background 0.2s ease, color 0.2s ease, gap 0.2s ease;
}

.wr-agency-card:hover .wr-agency-cta {
  gap: 6px;
  background: var(--wr-hp-primary);
  color: #fff;
}

.wr-agency-cta svg {
  width: 14px;
  height: 14px;
}

.wr-agency-count {
  font-size: 0.75rem;
  color: var(--wr-hp-text-muted);
}

/* ============================================
   Blog Section
   ============================================ */
.wr-blog-section {
  padding: 80px 24px;
  background: var(--wr-hp-bg-alt);
}

.wr-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.wr-blog-card {
  background: var(--wr-hp-bg);
  border-radius: var(--wr-hp-radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: var(--wr-hp-transition);
  box-shadow: var(--wr-hp-shadow-sm);
  border: 1px solid var(--wr-hp-border);
}

.wr-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--wr-hp-shadow-lg);
  border-color: transparent;
}

.wr-blog-image {
  aspect-ratio: 16/10;
  background: var(--wr-hp-bg-alt);
  overflow: hidden;
}

.wr-blog-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: var(--wr-hp-transition);
}

.wr-blog-card:hover .wr-blog-image img {
  transform: scale(1.05);
}

.wr-blog-content {
  padding: 24px;
}

.wr-blog-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--wr-hp-primary);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.wr-blog-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wr-hp-text);
  margin: 0 0 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wr-blog-excerpt {
  font-size: 0.9rem;
  color: var(--wr-hp-text-light);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.wr-blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--wr-hp-text-muted);
}

.wr-blog-date,
.wr-blog-reading-time {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wr-blog-date svg,
.wr-blog-reading-time svg {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0;
}

/* ============================================
   FAQ Section – Modern Redesign
   ============================================ */
.wr-faq-section-modern {
  padding: 80px 24px;
  background: linear-gradient(180deg, var(--wr-hp-bg) 0%, var(--wr-hp-bg-alt) 100%);
}

/* Header */
.wr-faq-header-modern {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.wr-faq-badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wr-hp-primary);
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.18);
  border-radius: 20px;
  margin-bottom: 16px;
}

.wr-faq-title-modern {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wr-hp-text);
  margin: 0 0 12px;
  line-height: 1.2;
}

.wr-faq-desc-modern {
  color: var(--wr-hp-text-light);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.6;
}

/* Two-column grid */
.wr-faq-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 900px) {
  .wr-faq-columns {
    grid-template-columns: 1fr;
  }
}

.wr-faq-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Slide-in targets (reuse pattern from agencies) */
.wr-faq-slide-target {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.5s cubic-bezier(0.22,1,0.36,1),
              transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.wr-faq-slide-target.wr-slide-in {
  opacity: 1;
  transform: translateY(0);
}

/* Individual FAQ item (card) */
.wr-faq-item-modern {
  background: var(--wr-hp-bg);
  border: 1px solid var(--wr-hp-border);
  border-radius: 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.wr-faq-item-modern:hover {
  border-color: rgba(99,102,241,0.35);
}

.wr-faq-item-modern[data-open] {
  border-color: var(--wr-hp-primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
}

/* Question button */
.wr-faq-q-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.wr-faq-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--wr-hp-primary);
  background: rgba(99,102,241,0.08);
  border-radius: 8px;
  transition: background 0.25s ease, color 0.25s ease;
}

.wr-faq-item-modern[data-open] .wr-faq-num {
  background: var(--wr-hp-primary);
  color: #fff;
}

.wr-faq-q-text {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--wr-hp-text);
  line-height: 1.4;
}

/* Toggle icon (plus → minus) */
.wr-faq-toggle-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--wr-hp-bg-alt);
  transition: background 0.25s ease, transform 0.3s ease;
}

.wr-faq-toggle-icon svg {
  width: 14px;
  height: 14px;
  color: var(--wr-hp-text-light);
  transition: color 0.25s ease;
}

.wr-faq-toggle-icon[data-open] {
  background: var(--wr-hp-primary);
  transform: rotate(90deg);
}

.wr-faq-toggle-icon[data-open] svg {
  color: #fff;
}

/* Vertical line of plus icon – collapses to 0 */
.wr-faq-v-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.wr-faq-toggle-icon[data-open] .wr-faq-v-line {
  transform: scaleY(0);
  opacity: 0;
}

/* Answer panel – animated via grid-template-rows */
.wr-faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.22,1,0.36,1);
  will-change: grid-template-rows;
}

.wr-faq-a-wrap[data-open] {
  grid-template-rows: 1fr;
}

.wr-faq-a-inner {
  overflow: hidden;
  min-height: 0;
}

.wr-faq-a-inner p {
  padding: 0 20px 18px 66px;
  margin: 0;
  color: var(--wr-hp-text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.wr-faq-a-wrap[data-open] .wr-faq-a-inner p {
  opacity: 1;
  transform: translateY(0);
}

/* CTA */
.wr-faq-cta-modern {
  text-align: center;
  margin-top: 48px;
}

.wr-faq-cta-modern p {
  color: var(--wr-hp-text-light);
  margin: 0 0 16px;
  font-size: 1rem;
}

.wr-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  border-radius: var(--wr-hp-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--wr-hp-transition);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.wr-btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

/* ============================================
   Mobile Header – base styles (hidden on desktop)
   ============================================ */
.wr-header-mobile-actions {
  display: none;
}

.wr-header-bell-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--wr-hp-text, #1f2937);
  background: transparent;
  text-decoration: none;
  transition: background 0.2s ease;
  position: relative;
}

.wr-header-bell-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.wr-header-bell-btn svg {
  width: 22px;
  height: 22px;
}

/* ============================================
   Mobile Carousel Component – JS-driven
   ============================================ */
.wr-mobile-carousel {
  position: relative;
}

.wr-mobile-carousel-track {
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Prevent pull-to-refresh / back-nav when swiping horizontally */
  overscroll-behavior-x: contain;
}

.wr-mobile-carousel-track::-webkit-scrollbar {
  display: none;
}

.wr-mobile-carousel-slide {
  scroll-snap-stop: normal;
}

.wr-mobile-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 0 4px;
}

.wr-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.25s ease;
}

.wr-carousel-dot.active {
  background: var(--wr-hp-primary, #f1641d);
  width: 20px;
  border-radius: 4px;
}

.wr-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #374151;
  padding: 0;
}

.wr-carousel-arrow svg {
  width: 18px;
  height: 18px;
}

.wr-carousel-arrow--prev { left: 6px; }
.wr-carousel-arrow--next { right: 6px; }
.wr-carousel-arrow:disabled { opacity: 0.3; pointer-events: none; }

/* ============================================
   Responsive – Mobile (≤768px)
   ============================================ */
@media (max-width: 768px) {

  /* ── Mobile Header ── */
  .wr-header-modern .wr-user-menu-wrapper {
    display: none !important;
  }

  .wr-header-mobile-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
  }

  .wr-header-modern .wr-themenav_wrapper {
    padding: 0 !important;
  }

  .wr-header-modern .wr-themenavwrap {
    min-height: 48px;
  }

  .wr-header-modern .wr-logo img,
  .wr-header-modern .wr-theme-logo-svg {
    max-height: 26px;
  }

  .wr-header-container {
    padding: 0 16px;
  }

  /* ── Mobile Hero ── */
  .wr-hero-section {
    padding: 35px 16px 20px;
    min-height: auto;
  }

  .wr-hero-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    line-height: 1.25;
  }

  .wr-hero-title br {
    display: none;
  }

  .wr-hero-subtitle {
    display: none;
  }

  .wr-hero-search-tabs {
    gap: 6px;
    margin-bottom: 14px;
  }

  .wr-hero-search-tab {
    padding: 8px 14px;
    font-size: 0.82rem;
    border-radius: 20px;
  }

  .wr-hero-search-tab svg {
    width: 16px;
    height: 16px;
  }

  .wr-hero-search-container {
    border-radius: 16px;
  }

  .wr-hero-search-main {
    flex-direction: column;
    padding: 10px;
    gap: 8px;
  }

  .wr-search-field {
    min-height: 48px;
    padding: 0 12px;
    border-radius: 12px;
  }

  .wr-search-field-query,
  .wr-search-field-location,
  .wr-search-field-date {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

  .wr-hero-search-input {
    font-size: 0.95rem;
  }

  .wr-hero-search-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    font-size: 0.95rem;
    min-width: auto;
    padding: 0 20px;
  }

  .wr-hero-popular {
    display: none;
  }

  .wr-hero-stats {
    display: none;
  }

  .wr-stat-label {
    font-size: 0.7rem;
  }

  /* ── Mobile Section Headers ── */
  .wr-section-title {
    font-size: 1.25rem;
  }

  .wr-section-subtitle {
    font-size: 0.85rem;
  }

  .wr-section-header {
    margin-bottom: 16px;
    padding: 0 16px;
  }

  .wr-section-link {
    font-size: 0.85rem;
  }

  .wr-section-link svg {
    width: 16px;
    height: 16px;
  }

  /* ── Mobile Categories – enhanced image cards scroll ── */
  .wr-categories-section {
    padding: 24px 0;
  }

  .wr-categories-section .wr-container {
    padding: 0;
  }

  .wr-ecat-header {
    padding: 0 16px;
    margin-bottom: 16px;
    flex-direction: column;
    gap: 8px;
  }

  .wr-ecat-subtitle {
    font-size: 0.85rem;
  }

  .wr-categories-section .wr-section-title {
    font-size: 1.15rem;
  }

  /* ── Mobile Featured Tasks – JS Carousel ── */
  .wr-featured-tasks-section {
    padding: 24px 0;
  }

  .wr-featured-tasks-section .wr-container {
    padding: 0;
  }

  .wr-mobile-carousel .wr-task-card {
    max-width: none;
  }

  .wr-mobile-carousel .wr-task-card:hover {
    transform: none;
  }

  .wr-task-content {
    padding: 14px 16px 16px;
    gap: 8px;
  }

  .wr-task-title {
    font-size: 0.92rem;
  }

  .wr-task-badges {
    top: 8px;
    left: 8px;
  }

  .wr-task-badge {
    font-size: 0.68rem;
    padding: 4px 8px;
  }

  .wr-task-price-tag {
    bottom: 8px;
    right: 8px;
    padding: 4px 10px;
  }

  .wr-task-price-amount {
    font-size: 0.95rem;
  }

  .wr-task-author-row {
    padding-top: 10px;
    gap: 8px;
  }

  .wr-task-author-avatar {
    width: 30px;
    height: 30px;
  }

  .wr-task-author-name {
    font-size: 0.8rem;
  }

  /* ── Mobile Featured Agencies – JS Carousel ── */
  .wr-featured-agencies-section {
    padding: 24px 0;
  }

  .wr-featured-agencies-section .wr-container {
    padding: 0;
  }

  .wr-mobile-carousel .wr-agency-card {
    opacity: 1;
    transform: none;
  }

  .wr-mobile-carousel .wr-agency-card:hover {
    transform: none;
  }

  .wr-agency-banner-bg {
    height: 120px;
  }

  .wr-agency-card-body {
    padding: 16px;
  }

  .wr-agency-name {
    font-size: 1rem;
  }

  .wr-agency-tagline {
    font-size: 0.8rem;
    -webkit-line-clamp: 1;
  }

  /* ── Mobile Blog – JS Carousel ── */
  .wr-blog-section {
    padding: 24px 0;
  }

  .wr-blog-section .wr-container {
    padding: 0;
  }

  .wr-mobile-carousel .wr-blog-card:hover {
    transform: none;
  }

  .wr-blog-content {
    padding: 16px;
  }

  .wr-blog-title {
    font-size: 0.95rem;
  }

  .wr-blog-excerpt {
    -webkit-line-clamp: 2;
    font-size: 0.82rem;
    margin-bottom: 10px;
  }

  .wr-blog-meta {
    gap: 12px;
    font-size: 0.75rem;
  }

  /* ── Mobile FAQ ── */
  .wr-faq-section-modern {
    padding: 32px 16px;
  }

  .wr-faq-columns {
    grid-template-columns: 1fr;
  }

  .wr-faq-title-modern {
    font-size: 1.35rem;
  }

  .wr-faq-q-btn {
    padding: 14px 14px;
    gap: 10px;
  }

  .wr-faq-a-inner p {
    padding: 0 14px 14px 56px;
  }

  .wr-faq-header-modern {
    margin-bottom: 28px;
  }

  .wr-faq-desc-modern {
    font-size: 0.9rem;
  }

  /* ── Mobile Search Results ── */
  .wr-hero-search-results {
    border-radius: 12px;
    max-height: 60vh;
  }

  .wr-hero-search-result-item {
    padding: 12px 16px;
    gap: 12px;
  }

  .wr-result-thumb {
    width: 48px;
    height: 48px;
  }

  /* ── Disable scrollbar on mobile carousel track ── */
  .wr-mobile-carousel-track::-webkit-scrollbar {
    display: none;
  }
}

/* ---------- Small Mobile (≤480px) ---------- */
@media (max-width: 480px) {
  .wr-hero-title {
    font-size: 1.3rem;
  }

  .wr-hero-subtitle {
    font-size: 0.82rem;
  }

  .wr-section-title {
    font-size: 1.15rem;
  }

  .wr-ecat-mobile__track {
    grid-auto-columns: 44%;
    gap: 8px;
  }
}

/* ============================================
   Body class styles for homepage
   ============================================ */
body.workreap-react-homepage .wr-main-section {
  padding: 0 !important;
  margin: 0 !important;
}

body.workreap-react-homepage .wr-content-wrapper {
  padding: 0 !important;
}

body.workreap-react-homepage .wr-main-section .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.workreap-react-homepage .wr-main-section .row > [class*="col"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.workreap-react-homepage article.wr-theme-box {
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

body.workreap-react-homepage .entry-content {
  padding: 0 !important;
  margin: 0 !important;
}

body.workreap-react-homepage .workreap-homepage-container {
  margin-top: -30px;
}

/* Hide WordPress content when homepage is active */
body.workreap-react-homepage .entry-content > *:not(.workreap-homepage-container) {
  display: none;
}

/* ============================================
   Google Places Autocomplete Styling
   ============================================ */
.pac-container {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--wr-hp-border);
  padding: 8px 0;
  margin-top: 8px;
  font-family: var(--wr-hp-font);
  z-index: 10000 !important;
}

.pac-container::after {
  display: none;
}

.pac-item {
  padding: 12px 16px;
  cursor: pointer;
  border: none;
  line-height: 1.5;
  transition: background-color 0.15s ease;
}

.pac-item:hover {
  background-color: #f8fafc;
}

.pac-item-selected,
.pac-item-selected:hover {
  background-color: #e0e7ff;
}

.pac-icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E") !important;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.pac-item-query {
  font-size: 0.95rem;
  color: var(--wr-hp-text);
  font-weight: 500;
}

.pac-matched {
  font-weight: 600;
  color: var(--wr-hp-primary);
}

/* ============================================
   HTML5 Date Input Styling
   ============================================ */
.wr-search-field-date {
  cursor: pointer;
}

.wr-date-placeholder {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--wr-hp-text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  white-space: nowrap;
}

.wr-search-field input.wr-hero-search-date {
  font-size: 0.95rem;
  color: transparent;
  cursor: pointer;
  font-family: var(--wr-hp-font);
}

.wr-search-field-date.has-value input.wr-hero-search-date {
  color: var(--wr-hp-text);
}

.wr-hero-search-date::-webkit-datetime-edit {
  color: inherit;
}

.wr-hero-search-date::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* ============================================
   React Footer - Column Layout
   ============================================ */
.wr-react-footer {
  background: var(--wr-hp-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 0;
  margin-top: 0;
}

.wr-react-footer .wr-container {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}

/* Grid layout: brand + 4 link columns */
.wr-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Brand */
.wr-footer-brand {
  flex: 0 0 auto;
}

.wr-footer-logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.wr-footer-logo span {
  color: var(--wr-hp-primary-light);
}

.wr-footer-logo:hover {
  color: #fff;
  text-decoration: none;
}

.wr-footer-tagline {
  margin: 8px 0 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 260px;
  line-height: 1.4;
}

/* Link columns */
.wr-footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wr-footer-col-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wr-footer-link {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.15s ease;
}

.wr-footer-link:hover {
  color: #fff;
  text-decoration: none;
}

/* Social icons */
.wr-footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.wr-footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  transition: background 0.15s ease, color 0.15s ease;
}

.wr-footer-social-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Bottom bar */
.wr-footer-bottom {
  padding: 20px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .wr-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }

  .wr-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .wr-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .wr-footer-tagline {
    max-width: 100%;
  }

  .wr-footer-social {
    justify-content: center;
  }
}


