/* FF Vacancy Widget – screenshot-style filterable card grid */

.ffvw {
  --ffvw-navy: #0b2a6b;
  --ffvw-ink: #11203a;
  --ffvw-muted: #6b7689;
  --ffvw-border: #e3e7ee;
  --ffvw-chip: #eef1f6;
  --ffvw-cols: 2;
  --ffvw-gap: 24px;
  width: 100%;
}

/* ---------- Filter pills ---------- */
.ffvw-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 0 36px;
}

.ffvw-pill {
  appearance: none;
  border: 1px solid var(--ffvw-border);
  background: #fff;
  color: var(--ffvw-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 13px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.ffvw-pill:hover {
  border-color: var(--ffvw-navy);
  color: #fff;
  background: var(--ffvw-navy);
  box-shadow: 0 6px 18px rgba(11, 42, 107, 0.25);
}

.ffvw-pill.is-active {
  background: var(--ffvw-navy);
  border-color: var(--ffvw-navy);
  color: #fff;
  box-shadow: 0 6px 18px rgba(11, 42, 107, 0.25);
}

/* ---------- Grid (flexbox, configurable columns) ---------- */
.ffvw-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ffvw-gap);
  align-items: stretch;
  transition: opacity 0.2s ease;
}

.ffvw-grid.is-loading {
  opacity: 0.4;
  pointer-events: none;
}

.ffvw-grid > .ffvw-card {
  flex: 0 0 calc((100% - (var(--ffvw-cols) - 1) * var(--ffvw-gap)) / var(--ffvw-cols));
  max-width: calc((100% - (var(--ffvw-cols) - 1) * var(--ffvw-gap)) / var(--ffvw-cols));
}

/* ---------- Card ---------- */
.ffvw-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ffvw-border);
  border-radius: 14px;
  padding: 28px 28px 24px;
  box-sizing: border-box;
}

.ffvw-card.is-featured {
  border-color: var(--ffvw-navy);
  box-shadow: 0 10px 30px rgba(11, 42, 107, 0.08);
}

.ffvw-catbar {
  background: var(--ffvw-chip);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

.ffvw-cat {
  color: var(--ffvw-navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ffvw-card-title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
  color: var(--ffvw-ink);
  font-weight: 700;
}

.ffvw-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 16px;
}

.ffvw-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ffvw-muted);
  font-size: 15px;
}

.ffvw-meta svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.ffvw-desc {
  margin: 0 0 22px;
  color: var(--ffvw-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.ffvw-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--ffvw-border);
}

.ffvw-sal {
  color: var(--ffvw-ink);
  font-size: 19px;
  font-weight: 700;
}

.ffvw-view {
  color: var(--ffvw-navy);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ffvw-view span {
  transition: transform 0.18s ease;
}

.ffvw-view:hover span {
  transform: translateX(4px);
}

.ffvw-empty {
  flex: 1 1 100%;
  text-align: center;
  color: var(--ffvw-muted);
  padding: 40px 0;
}

/* ---------- Responsive fallback ---------- */
@media (max-width: 781px) {
  .ffvw-grid > .ffvw-card {
    flex-basis: 100%;
    max-width: 100%;
  }
}
