/* ===================================
   JOBS PAGE STYLES
   ===================================
   F.9 cleanup: local :root block stripped. All design tokens come from
   apps/frontend/css/jobs-and-services/tokens.css which is loaded first in
   every jobs-and-services HTML page. Brand primary is green (#1a8917),
   NOT the LinkedIn-style soft red the legacy file declared. */

/* ===================================
   HERO SECTION
   Layered surface: background image fills the entire hero with a contrast
   scrim, a frosted-glass switcher sits pinned at the top, and the foreground
   column carries the perspective text + search + popular-searches dropdown.
   =================================== */
.jobs-hero {
  position: relative;
  min-height: clamp(520px, 70vh, 720px);
  padding: 4rem 1.25rem 2.5rem;
  overflow: hidden;
  background: var(--gray-900);
  color: var(--white);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.30) 45%,
    rgba(0, 0, 0, 0.70) 100%
  );
}

.hero-toggle-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-bottom: clamp(3rem, 10vw, 6rem);
}

.hero-toggle {
  display: inline-flex;
  gap: 0;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 160px;
  background: rgba(255, 255, 255, 0.30);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-toggle__segment {
  padding: 6px 18px;
  border: 0;
  border-radius: 160px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.hero-toggle__segment.is-selected {
  background: rgb(20, 20, 20);
  color: var(--white);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0 0 0.75rem;
}

.hero-subtitle {
  font-family: var(--font-primary);
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  font-weight: 450;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.75rem;
}

.hero-search-wrapper {
  position: relative;
}

.hero-search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 60px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.hero-search-input {
  flex: 1;
  height: 56px;
  padding: 0 132px 0 24px;
  border: 0;
  background: transparent;
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-900);
  outline: none;
  min-width: 0;
}

.hero-search-input::placeholder {
  color: var(--gray-500);
}

.hero-search-cta {
  position: absolute;
  right: 8px;
  top: 8px;
  bottom: 8px;
  padding: 0 24px;
  border: 0;
  border-radius: 9999px;
  background: linear-gradient(264deg, #094a01 0%, #108401 100%);
  color: var(--white);
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s ease;
}

.hero-search-cta:hover {
  filter: brightness(1.08);
}

.popular-searches {
  margin-top: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  padding: 1rem 0.75rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  color: var(--gray-900);
}

.popular-searches[hidden] {
  display: none;
}

.popular-searches-eyebrow {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-600);
  padding: 0 0.75rem 0.5rem;
}

.popular-searches-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.popular-searches-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0.75rem;
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  color: var(--gray-900);
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

.popular-searches-item:hover,
.popular-searches-item:focus-visible {
  background: var(--gray-100);
  outline: none;
}

.popular-searches-item .icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--gray-600);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .jobs-hero {
    padding: 3rem 1rem 2rem;
    min-height: clamp(480px, 78vh, 640px);
  }

  .hero-toggle-container {
    margin-bottom: clamp(2.5rem, 14vw, 4.5rem);
  }

  .hero-search-input {
    padding-right: 116px;
  }

  .hero-search-cta {
    padding: 0 18px;
    font-size: 0.875rem;
  }
}

/* ===================================
   JOB CATEGORIES SECTION
   =================================== */
.job-categories {
  padding: 2rem 0 0.75rem;
  background: var(--white);
}

/* ===========================================================================
   Secondary filters (services-style) — jobs/talent perspective rows.
   Ported from services.css; each perspective owns its own row (scoped ids in
   the markup). All selectors are unique to this file (services.css isn't
   loaded here), so cascade order vs other stylesheets is a non-issue.
   =========================================================================== */
.job-filters-section {
  padding: 0.75rem 0 1.25rem;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.secondary-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-dropdowns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-dropdown {
  position: relative;
}

.filter-dropdown select {
  -webkit-appearance: none;
  appearance: none;
  padding: 0.5rem 2.5rem 0.5rem 2rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 150px;
  max-width: 100%;
}

.filter-dropdown select:hover { border-color: var(--primary-color); }
.filter-dropdown select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 137, 23, 0.1);
}

.filter-dropdown > i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--gray-400);
  pointer-events: none;
}

.filter-dropdown::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: var(--gray-400);
  pointer-events: none;
}

.filter-actions { display: flex; gap: 0.5rem; }

.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.filter-toggle-btn:hover,
.filter-toggle-btn[aria-expanded="true"] {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.filter-toggle-btn i { font-size: 0.8rem; }

/* More-filters collapse panel (progressive disclosure via grid-rows animation) */
.more-filters-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
  transition: grid-template-rows 0.25s ease, opacity 0.25s ease, margin-top 0.25s ease;
}
.more-filters-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 1rem;
}
.more-filters-panel > * { min-height: 0; overflow: hidden; }
.more-filters-panel.is-open > * { overflow: visible; }

.filter-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  cursor: pointer;
}
.filter-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.filter-skills {
  position: relative;
  max-width: 360px;
}
.filter-skills i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--gray-400);
  pointer-events: none;
}
.filter-skills input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: var(--font-primary);
  color: var(--gray-700);
}
.filter-skills input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 137, 23, 0.1);
}

/* Active-filter chips — revealed via .has-filters (NOT the [hidden] attr, to
   sidestep the author-display footgun). */
.active-filters {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
  flex-wrap: wrap;
}
.active-filters.has-filters { display: flex; }

.active-filters-label { font-size: 0.8rem; color: var(--gray-500); font-weight: 500; }

.active-filter-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: rgba(26, 137, 23, 0.1);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}
.active-filter-pill .remove-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: none;
  background: none;
  color: var(--primary-color);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
  padding: 0;
}
.active-filter-pill .remove-filter:hover { background: var(--primary-color); color: var(--white); }

.clear-filters-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border: none;
  background: none;
  color: var(--gray-500);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}
.clear-filters-btn:hover { color: var(--danger-red); }
.clear-filters-btn i { font-size: 0.7rem; }

/* Mobile: stack the row, 2-col dropdown grid, blowout-proof (Iter8 overflow
   guard — minmax(0,1fr) + min-width:0 so a wide <select> can't push past vw). */
@media (max-width: 767px) {
  .secondary-filters { flex-direction: column; align-items: stretch; }
  .filter-dropdowns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .filter-dropdown { min-width: 0; }
  .filter-dropdown select { min-width: 0; width: 100%; }
  .filter-toggle-btn { width: 100%; justify-content: center; }
  .filter-skills { max-width: 100%; }
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
  font-family: var(--font-primary);
}

.section-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  font-weight: 400;
}

/* F.9 polish: categories are filters, not features — render as a single
   horizontally-scrolling row of pills (mirrors the services-page pattern)
   instead of a grid of tiles. Saves ~140px of vertical real estate and
   reads as "click to filter" instead of "click to drill in". */
.section-header.section-header-tight {
  margin-bottom: 1rem;
}

.category-pills-wrapper {
  position: relative;
  margin-bottom: 0;
}

.category-pills-container {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.25rem 0;
  scroll-behavior: smooth;
}

.category-pills-container::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 50px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  scroll-snap-align: start;
  white-space: nowrap;
}

.category-pill i {
  font-size: 0.85rem;
  color: var(--gray-500);
  transition: color 0.2s ease;
}

.category-pill:hover {
  border-color: var(--primary-color);
  background: var(--primary-tint);
  color: var(--primary-color);
}

.category-pill:hover i {
  color: var(--primary-color);
}

.category-pill.active {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(26, 137, 23, 0.3);
}

.category-pill.active i {
  color: var(--white);
}

/* ===================================
   FEATURED JOBS SECTION
   =================================== */
.featured-jobs {
  padding: 3rem 0;
  background: #fafafa;
}

.section-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  background: var(--white);
  border: 1px solid #e5e7eb;
  color: #4b5563;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  background: #fef2f2;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.filter-tab.active {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.view-all-jobs {
  background: transparent;
  color: #4adc26;
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.view-all-jobs:hover {
  gap: 0.75rem;
  text-decoration: underline;
}

/* Jobs List */
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Job + talent card styles now live in the shared cards.css (one source of
   truth, loaded by every page that renders these cards). .jobs-list above is
   the page-chrome container and stays here. */

/* ===================================
   TOP COMPANIES SECTION
   =================================== */
.top-companies {
  padding: 5rem 0;
  background: var(--white);
}

.companies-slider {
  margin-top: 3rem;
}

.company-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.company-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.company-logo-large {
  width: 120px;
  height: 60px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-logo-large img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.company-logo-fallback {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
}

.company-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.company-industry {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.company-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.company-stats span {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.company-stats strong {
  color: var(--gray-900);
  display: block;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.view-company-btn {
  background: var(--gray-100);
  color: var(--gray-700);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.view-company-btn:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* ===================================
   FOR EMPLOYERS SECTION
   =================================== */
.for-employers {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.employers-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.content-left .section-title {
  text-align: left;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.employer-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.feature {
  display: flex;
  gap: 1rem;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.feature-content h4 {
  font-size: 1.125rem;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.feature-content p {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* Pricing Preview - Free Version */
.pricing-preview {
  margin-bottom: 2rem;
  text-align: center;
}

.pricing-preview h3 {
  font-size: 2rem;
  color: var(--gray-900);
  margin-bottom: 2rem;
  font-weight: 600;
}

.free-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.free-feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.free-feature-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon-large {
  width: 80px;
  height: 80px;
  background: #fef2f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-color);
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.free-feature-card:hover .feature-icon-large {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.1);
}

.free-feature-card h4 {
  font-size: 1.25rem;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.free-feature-card p {
  color: var(--gray-600);
  line-height: 1.6;
}

.cta-button {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 1rem 3rem;
  border-radius: var(--radius-md);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateX(5px);
}

/* Employer Testimonial */
.employer-testimonial {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
}

.testimonial-content {
  position: relative;
}

.testimonial-content i {
  font-size: 3rem;
  color: var(--primary-light);
  opacity: 0.2;
  position: absolute;
  top: -10px;
  left: -10px;
}

.testimonial-content p {
  font-size: 1.125rem;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-left: 2rem;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h5 {
  font-size: 1rem;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.testimonial-author p {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin: 0;
}

/* Stats Showcase */
.stats-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.stat-card h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* ===================================
   JOB RESOURCES SECTION
   =================================== */
.job-resources {
  padding: 5rem 0;
  background: var(--gray-50);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.resource-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.resource-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.resource-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.resource-card:hover::before {
  transform: scaleX(1);
}

.resource-icon {
  width: 60px;
  height: 60px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary-color);
  margin: 0 auto 1rem;
  transition: var(--transition);
}

.resource-card:hover .resource-icon {
  background: var(--primary-color);
  color: var(--white);
  transform: rotate(10deg);
}

.resource-card h3 {
  font-size: 1.25rem;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.resource-card p {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.resource-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.resource-link:hover {
  gap: 0.75rem;
}

/* ===================================
   JOB ALERTS SECTION
   =================================== */
.job-alerts-section {
  padding: 4rem 0;
  background: var(--primary-color);
  color: var(--white);
}

.alerts-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}

.alerts-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.alerts-text p {
  font-size: 1.125rem;
  opacity: 0.9;
}

.alerts-form {
  display: flex;
  gap: 1rem;
  flex: 1;
  max-width: 500px;
}

.alerts-form input {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
}

.alerts-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.alerts-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.alerts-form button {
  background: var(--white);
  color: var(--primary-color);
  border: none;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.alerts-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===================================
   FLOATING POST JOB BUTTON
   =================================== */
.floating-post-job-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 60px;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(26, 137, 23, 0.4);
  cursor: pointer;
  transition: var(--transition);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float 3s ease-in-out infinite;
}

.floating-post-job-btn:hover {
  background: var(--primary-dark);
  padding: 1rem 1.5rem;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 30px rgba(26, 137, 23, 0.5);
}

.floating-post-job-btn i {
  font-size: 1.25rem;
}

.btn-text {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.3s ease;
  font-weight: 600;
}

.floating-post-job-btn:hover .btn-text {
  max-width: 100px;
}

/* Mobile: the FAB and the back-to-top both default to the bottom-right corner
   and overlap each other + the fixed 60px bottom tab bar (mobile-nav.css).
   Stack them in one right-aligned column above the tab bar. The `body ` prefix
   raises specificity so .back-to-top beats footer.css's later-loaded ≤768 rule;
   only position changes, so the show/hide transform still works. */
@media (max-width: 767px) {
  body .floating-post-job-btn {
    bottom: calc(72px + env(safe-area-inset-bottom));
    right: 16px;
    /* Stop the bob near the fixed bottom tab bar — keeps it visually calm and
       its position deterministic (it sat ~10px from the bar mid-bob). */
    animation: none;
  }

  body .back-to-top {
    bottom: calc(136px + env(safe-area-inset-bottom));
    right: 16px;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ===================================
   FOOTER
   =================================== */
.jobs-footer {
  background: var(--gray-100);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--gray-600);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
  .employers-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .content-left,
  .content-right {
    min-width: 0;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto 2rem;
  }
}

@media (max-width: 768px) {
  .title-highlight {
    font-size: 1.75rem;
  }

  .free-features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .search-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .search-submit-btn {
    width: 100%;
    justify-content: center;
  }

  .section-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .filter-tabs {
    justify-content: center;
  }

  .alerts-content {
    flex-direction: column;
    text-align: center;
  }

  .alerts-form {
    flex-direction: column;
    width: 100%;
  }

  .alerts-form button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .title-highlight {
    font-size: 1.5rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-card h3 {
    font-size: 2rem;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Saved Jobs Icon Animation */
.saved-jobs-container {
  position: relative;
  font-size: 1.5rem;
  color: var(--gray-700);
  cursor: pointer;
  padding: var(--spacing-sm);
  transition: all var(--transition);
}

.saved-jobs-container:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

.saved-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger-red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  min-width: 20px;
  text-align: center;
}

/* ===================================
   TALENT MARKETPLACE STYLES
   =================================== */
.talent-marketplace {
  padding: 3rem 0;
  background: var(--white);
}

.talent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Talent card styles now live in the shared cards.css. .talent-marketplace +
   .talent-grid above are the page-chrome containers and stay here. */

/* Result summary line (browse-controller pagination count) */
.results-summary {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--gray-600, #6b7280);
}

/* The Load-More buttons set `display` via author CSS, which overrides the UA
   [hidden]{display:none}. The controller toggles `hidden` to hide them when a
   list is exhausted (and the saved view hides the jobs one), so force it. */
.load-more-jobs-btn[hidden],
.load-more-btn[hidden] {
  display: none !important;
}

/* Load More Button */
.load-more-container {
  text-align: center;
  margin-top: 3rem;
}

.load-more-btn,
.load-more-jobs-btn {
  background: var(--white);
  border: 2px solid var(--gray-300);
  color: var(--gray-700);
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.load-more-btn:hover,
.load-more-jobs-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.load-more-jobs-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Loading and Error States */
.loading-spinner {
  text-align: center;
  padding: 3rem;
  color: var(--gray-500);
  font-size: 1.125rem;
}

.no-jobs-found,
.error-message {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-600);
}

.no-jobs-found i,
.error-message i {
  font-size: 3rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
  display: block;
}

.no-jobs-found h3,
.error-message h3 {
  font-size: 1.5rem;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.no-jobs-found p,
.error-message p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto 1.5rem;
}

.retry-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retry-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ===================================
   PROFILE CTA SECTION
   =================================== */
.profile-cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.profile-cta-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.cta-visual {
  position: relative;
}

.cta-illustration {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-card-preview {
  width: 200px;
  height: 250px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  padding: 2rem;
  position: relative;
  transform: rotate(-5deg);
  animation: float 4s ease-in-out infinite;
}

.preview-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  margin: 0 auto 1.5rem;
}

.preview-lines {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.line {
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
}

.line.short { width: 60%; }
.line.medium { width: 80%; }
.line.long { width: 100%; }

.floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.floating-icons i {
  position: absolute;
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.3;
  animation: float-icon 6s ease-in-out infinite;
}

.floating-icons i:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-icons i:nth-child(2) { top: 10%; right: 20%; animation-delay: 1s; }
.floating-icons i:nth-child(3) { bottom: 30%; left: 15%; animation-delay: 2s; }
.floating-icons i:nth-child(4) { bottom: 20%; right: 10%; animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-20px); }
}

@keyframes float-icon {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.1); }
}

.cta-text h2 {
  font-size: 2.5rem;
  color: var(--gray-900);
  margin-bottom: 1rem;
  font-weight: 700;
}

.cta-text p {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-benefits {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--gray-700);
}

.benefit i {
  color: var(--success-green);
  font-size: 1.25rem;
}

.create-profile-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-md);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.create-profile-btn:hover {
  background: var(--primary-dark);
  transform: translateX(5px);
  box-shadow: 0 10px 20px rgba(186, 105, 105, 0.3);
}

/* Responsive Design for Talent Marketplace */
@media (max-width: 768px) {
  .talent-grid {
    grid-template-columns: 1fr;
  }

  .profile-cta-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .cta-illustration {
    height: 200px;
  }
  
  .cta-text h2 {
    font-size: 2rem;
  }
}
/* Safety net: no element may induce horizontal page scroll */
html,
body {
  overflow-x: clip;
}

/* ===================================
   SAVED JOBS (F.11.1)
   =================================== */
.save-job-btn.saved,
.save-job-btn.saved i {
  color: var(--primary-color);
}

.saved-jobs-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 50px;
  background: var(--white);
  color: var(--gray-700);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.saved-jobs-toggle:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.saved-jobs-toggle.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.saved-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--primary-color);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
}

.saved-jobs-toggle.active .saved-count-badge {
  background: var(--white);
  color: var(--primary-color);
}

/* The display rule above overrides the UA [hidden] { display:none } — honor
   the attribute so an empty/zero badge actually hides. */
.saved-count-badge[hidden] {
  display: none !important;
}

/* ===========================================================================
   Mobile spacing polish (2026-06-29) — collapse the category → filter → grid
   dead space so the bar reads as tightly controlled as the Services page (the
   user-approved reference). Placed at END OF FILE on purpose: media queries
   don't add specificity, so these overrides must come AFTER every base rule
   they touch (.section-header/.section-title/.featured-jobs/.talent-marketplace/
   .jobs-list/.talent-grid are all defined earlier) or source order would let
   the base rule win at ≤767px (the recurring cascade-order trap).
   =========================================================================== */
@media (max-width: 767px) {
  .job-categories { padding: 1rem 0 0.5rem; }
  .section-header.section-header-tight { margin-bottom: 0.75rem; }
  .job-filters-section { padding: 0.5rem 0 1rem; }
  .featured-jobs,
  .talent-marketplace { padding: 1.75rem 0; }
  .section-header { margin-bottom: 1.25rem; }
  .section-title { font-size: 1.5rem; }
  .jobs-list,
  .talent-grid { margin-top: 1.25rem; }
}
