/* Workforce carousel — from workforce-carousel.html, scoped for employers page */
.roles-section.workforce-carousel {
  background: #F3F4F6;
  padding: 48px 48px 56px;
  border-top: 1px solid #E5E7EB;
  overflow: hidden;
}

.roles-section.workforce-carousel .wf-header {
  padding: 0 32px 36px;
  opacity: 0;
  transform: translateY(-30px);
  animation: wfFadeDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.roles-section.workforce-carousel .wf-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.roles-section.workforce-carousel .wf-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.roles-section.workforce-carousel .wf-tag-blue { background: #dbeafe; color: #1e40af; }
.roles-section.workforce-carousel .wf-tag-grey { background: #e5e7eb; color: #374151; }

.roles-section.workforce-carousel h2 {
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 800;
  color: #111;
  line-height: 1.15;
  margin-bottom: 10px;
}

.roles-section.workforce-carousel .wf-ticker-wrap {
  overflow: hidden;
  height: 1.15em;
  display: inline-block;
  vertical-align: bottom;
}

.roles-section.workforce-carousel .wf-ticker-inner {
  display: flex;
  flex-direction: column;
  animation: wfTicker 7s ease-in-out infinite;
}

.roles-section.workforce-carousel .wf-ticker-inner span {
  height: 1.15em;
  line-height: 1.15;
  white-space: nowrap;
  font-style: italic;
  color: #16a34a;
  font-weight: 800;
}

@keyframes wfTicker {
  0%, 28%   { transform: translateY(0); }
  33%, 61%  { transform: translateY(-1.15em); }
  66%, 94%  { transform: translateY(-2.3em); }
  99%, 100% { transform: translateY(0); }
}

.roles-section.workforce-carousel .wf-subtitle {
  font-size: 14px;
  color: #6b7280;
  max-width: 360px;
  line-height: 1.6;
}

.roles-section.workforce-carousel .wf-columns-wrap {
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  height: 680px;
  overflow: hidden;
  position: relative;
}

.roles-section.workforce-carousel .wf-columns-wrap::before,
.roles-section.workforce-carousel .wf-columns-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 2;
  pointer-events: none;
}

.roles-section.workforce-carousel .wf-columns-wrap::before {
  top: 0;
  background: linear-gradient(to bottom, #F3F4F6, transparent);
}

.roles-section.workforce-carousel .wf-columns-wrap::after {
  bottom: 0;
  background: linear-gradient(to top, #F3F4F6, transparent);
}

.roles-section.workforce-carousel .wf-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  will-change: transform;
}

.roles-section.workforce-carousel .wf-col.wf-up {
  animation: wfScrollUp var(--dur, 18s) linear infinite;
}

.roles-section.workforce-carousel .wf-col.wf-down {
  animation: wfScrollDown var(--dur, 18s) linear infinite;
}

.roles-section.workforce-carousel .wf-col:hover {
  animation-play-state: paused;
}

.roles-section.workforce-carousel .wf-card {
  flex: 0 0 auto;
  height: 260px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.38s ease;
}

.roles-section.workforce-carousel .wf-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 28px 52px rgba(0, 0, 0, 0.26);
  z-index: 10;
}

.roles-section.workforce-carousel .wf-card-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.55s ease;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.roles-section.workforce-carousel .wf-card:hover .wf-card-bg {
  transform: scale(1.07);
}

.roles-section.workforce-carousel .wf-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0) 55%);
  border-radius: 16px;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s;
}

.roles-section.workforce-carousel .wf-card:hover::before {
  opacity: 0.9;
}

.roles-section.workforce-carousel .wf-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.09) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
  border-radius: 16px;
  pointer-events: none;
  z-index: 1;
}

.roles-section.workforce-carousel .wf-card:hover::after {
  transform: translateX(100%);
}

.roles-section.workforce-carousel .wf-card-label {
  position: relative;
  z-index: 2;
}

.roles-section.workforce-carousel .wf-card-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 3px;
  margin-bottom: 5px;
}

.roles-section.workforce-carousel .wf-card-tag.blue { background: #2563eb; color: #fff; }
.roles-section.workforce-carousel .wf-card-tag.grey { background: #6b7280; color: #fff; }

.roles-section.workforce-carousel .wf-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

@keyframes wfScrollUp {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@keyframes wfScrollDown {
  0%   { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

@keyframes wfFadeDown {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .roles-section.workforce-carousel { padding: 40px 20px 48px; }
  .roles-section.workforce-carousel .wf-header { padding: 0 0 28px; }
  .roles-section.workforce-carousel .wf-columns-wrap {
    padding: 0;
    grid-template-columns: 1fr;
    height: 520px;
  }
  .roles-section.workforce-carousel .wf-col.wf-down { display: none; }
}

@media (max-width: 600px) {
  .roles-section.workforce-carousel .wf-columns-wrap { height: 420px; }
}
