/* Jobs page: use Avada site-width row (same edges as header logo/menu) */
body.tc-jobs-template a.skip-link {
  position: absolute !important;
  left: -9999px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

body.tc-jobs-template a.skip-link:focus,
body.tc-jobs-template a.skip-link:active {
  position: fixed !important;
  left: 12px !important;
  top: 12px !important;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  clip-path: none !important;
  overflow: visible !important;
  padding: 0.65rem 1rem !important;
  background: #12313c !important;
  color: #fff !important;
  border-radius: 6px;
  text-decoration: none !important;
}

body.tc-jobs-template {
  overflow-x: clip; /* avoid horizontal scroll from full-bleed CTA (100vw) */
}

body.tc-jobs-template #main,
body.tc-jobs-template #content.tc-jobs-page {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

body.tc-jobs-template .fusion-page-title-bar {
  display: none !important;
}

/*
 * Use Avada's normal .fusion-row site-width (same as header content).
 * Only clear extra side padding so the board spans the full row.
 */
body.tc-jobs-template #content.tc-jobs-page > .fusion-row.tc-jobs-row,
body.tc-jobs-template .fusion-row.tc-jobs-row {
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}

/*
 * Full-bleed Join Us band — breaks out of #main > .fusion-row so it spans the
 * viewport edge-to-edge (same visual role as Avada fusion-fullwidth CTAs).
 */
body.tc-jobs-template .tc-jobs-cta {
  --tc-cta-bg: var(--awb-color5, #63bdc4);
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  max-width: 100vw;
  margin: 0 0 0 -50vw;
  padding: 2.5rem 1.5rem 2.75rem;
  background-color: var(--tc-cta-bg);
  color: #fff;
  text-align: center;
  box-sizing: border-box;
}

body.tc-jobs-template .tc-jobs-cta__inner {
  max-width: min(40rem, var(--site_width, 1372.8px));
  margin: 0 auto;
}

body.tc-jobs-template .tc-jobs-cta__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

body.tc-jobs-template .tc-jobs-cta__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 1.2vw + 1.1rem, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
}

body.tc-jobs-template .tc-jobs-cta__text {
  margin: 0 auto 1.6rem;
  max-width: 34rem;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

body.tc-jobs-template .tc-jobs-cta__actions {
  margin: 0;
}

body.tc-jobs-template .tc-jobs-cta__btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border: 2px solid #fff;
  border-radius: 6px;
  background: #fff;
  color: #12313c;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.tc-jobs-template .tc-jobs-cta__btn:hover,
body.tc-jobs-template .tc-jobs-cta__btn:focus {
  background: transparent;
  color: #fff;
  border-color: #fff;
  outline: none;
}

/* Keep footer flush under the CTA (no gap that makes it look nested). */
body.tc-jobs-template #main {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.tc-jobs-template .fusion-tb-footer,
body.tc-jobs-template .fusion-footer {
  margin-top: 0 !important;
}

/* Temp Connect Jobs Board — fills the Avada site-width row */
.tc-jobs {
  --tc-brand: #42a4a9;
  --tc-ink: #12313c;
  --tc-muted: #5d727c;
  --tc-line: #dce6ea;
  --tc-soft: #f3f8f9;
  --tc-card: #ffffff;
  --tc-accent: #42a4a9;
  --tc-accent-dark: #2f858a;
  --tc-accent-soft: rgba(66, 164, 169, 0.14);
  --tc-portal: #63bdc4;
  --tc-control-h: 2.85rem;
  --tc-shadow: 0 8px 24px rgba(18, 49, 60, 0.06);
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2rem 0 2.5rem;
  color: var(--tc-ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.tc-jobs *,
.tc-jobs *::before,
.tc-jobs *::after {
  box-sizing: border-box;
}

.tc-jobs__hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 0 1.5rem;
  padding: 0 0 1.35rem;
  border-bottom: 1px solid var(--tc-line);
  background: transparent;
  color: inherit;
}

.tc-jobs__hero-inner {
  max-width: 46rem;
}

.tc-jobs__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tc-accent-dark);
}

.tc-jobs__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--tc-ink);
}

.tc-jobs__subtitle {
  margin: 0;
  color: var(--tc-muted);
  font-size: 1.04rem;
  line-height: 1.55;
}

.tc-jobs__filters {
  position: relative;
  z-index: 2;
  margin: 0 0 1.35rem;
  padding: 1.15rem 1.25rem;
  background: var(--tc-card);
  border: 1px solid var(--tc-line);
  border-radius: 14px;
  box-shadow: var(--tc-shadow);
}

.tc-jobs__filters-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.25fr auto;
  gap: 0.75rem 0.85rem;
  align-items: end;
}

.tc-jobs__field {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  min-width: 0;
}

.tc-jobs__field label,
.tc-jobs__field-spacer {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tc-muted);
  line-height: 1.2;
}

.tc-jobs__field-spacer {
  visibility: hidden;
}

.tc-jobs__field input[type="text"],
.tc-jobs__field input[type="search"],
.tc-jobs__field select {
  display: block;
  width: 100%;
  height: var(--tc-control-h);
  min-height: var(--tc-control-h);
  max-height: var(--tc-control-h);
  margin: 0;
  padding: 0 0.95rem;
  border: 1px solid var(--tc-line);
  border-radius: 12px;
  background-color: #fbfcfd;
  background-image: none;
  color: var(--tc-ink);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: calc(var(--tc-control-h) - 2px);
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.tc-jobs__field select {
  padding-right: 2.3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235d727c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 12px 8px;
}

.tc-jobs__field input:focus,
.tc-jobs__field select:focus {
  outline: none;
  border-color: var(--tc-accent);
  background-color: #fff;
  box-shadow: 0 0 0 3px var(--tc-accent-soft);
}

.tc-jobs__field input::placeholder {
  color: #8a9ba4;
  opacity: 1;
}

.tc-jobs__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.tc-jobs__btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tc-control-h);
  margin: 0;
  padding: 0 1.2rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.tc-jobs__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.tc-jobs__btn--primary {
  background: var(--tc-accent);
  border-color: var(--tc-accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 158, 164, 0.24);
}

.tc-jobs__btn--primary:hover:not(:disabled) {
  background: var(--tc-accent-dark);
  border-color: var(--tc-accent-dark);
  color: #fff;
}

.tc-jobs__btn--ghost {
  background: #fff;
  border-color: var(--tc-line);
  color: var(--tc-ink);
  box-shadow: none;
}

.tc-jobs__btn--ghost:hover:not(:disabled) {
  border-color: var(--tc-accent);
  color: var(--tc-accent-dark);
}

.tc-jobs__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 1.5rem;
  margin-bottom: 1rem;
  padding: 0 0.1rem;
}

.tc-jobs__status {
  color: var(--tc-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.tc-jobs__status--error {
  color: #b42318;
}

/* Match portal JobCell grid — wider page can use 3 cols on large screens */
.tc-jobs__list {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (min-width: 1200px) {
  .tc-jobs__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}

/* Portal JobCell-compatible card */
.tc-jobs__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 180px;
  padding: 20px;
  text-align: left;
  text-decoration: none !important;
  color: inherit;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  outline: none;
}

.tc-jobs__card:hover {
  border-color: #d1d1d1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none !important;
  color: inherit;
}

.tc-jobs__card:focus-visible {
  box-shadow: 0 0 0 2px rgba(99, 189, 196, 0.35);
  border-color: #63bdc4;
}

.tc-jobs__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.tc-jobs__card-status {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(99, 189, 196, 0.2);
  color: #63bdc4;
}

.tc-jobs__card-date {
  flex-shrink: 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.3;
  text-align: right;
}

.tc-jobs__card-type-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #64748b;
}

.tc-jobs__card-type-line .mdi {
  font-size: 14px;
  line-height: 1;
  color: #78909c;
  opacity: 0.88;
}

.tc-jobs__card-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tc-jobs__card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #5e6d55;
}

.tc-jobs__card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.tc-jobs__card-meta-item .mdi {
  font-size: 14px;
  line-height: 1;
}

.tc-jobs__card-meta-item--pay {
  color: #222;
}

.tc-jobs__card-employer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 4px 0;
}

.tc-jobs__card-employer-avatar,
.tc-jobs__card-employer-fallback {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.tc-jobs__card-employer-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 189, 196, 0.2);
  color: #2f858a;
  font-size: 10px;
  font-weight: 700;
}

.tc-jobs__card-employer-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.tc-jobs__card-desc-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tc-jobs__card-desc {
  flex: 1;
  margin: 0 0 12px;
  font-size: 13px;
  color: #5e6d55;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tc-jobs__card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.tc-jobs__card-view {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tc-portal);
}

.tc-jobs__card-view .mdi {
  font-size: 16px;
  line-height: 1;
}

.tc-jobs__empty {
  grid-column: 1 / -1;
  padding: 3rem 1.5rem;
  text-align: center;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  color: #6b7280;
}

.tc-jobs__empty strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #222;
  font-size: 1.05rem;
}

.tc-jobs__pager {
  display: flex;
  justify-content: center;
  margin-top: 1.85rem;
}

@media (max-width: 1199px) {
  .tc-jobs__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .tc-jobs__filters-row {
    grid-template-columns: 1fr 1fr;
  }

  .tc-jobs__field--actions {
    grid-column: 1 / -1;
  }

  .tc-jobs__field--actions .tc-jobs__field-spacer {
    display: none;
  }

  .tc-jobs__actions {
    width: 100%;
  }

  .tc-jobs__actions .tc-jobs__btn {
    flex: 1;
  }
}

@media (max-width: 767px) {
  body.tc-jobs-template #content.tc-jobs-page > .fusion-row.tc-jobs-row,
  body.tc-jobs-template .fusion-row.tc-jobs-row {
    padding-left: 12px !important;
    padding-right: 12px !important;
    max-width: 100% !important;
  }

  .tc-jobs {
    padding-top: 1.15rem;
    padding-bottom: 2.25rem;
  }

  .tc-jobs__hero {
    margin-bottom: 1.1rem;
    padding-bottom: 1rem;
  }

  .tc-jobs__filters {
    padding: 0.85rem !important;
    border-radius: 12px;
  }

  .tc-jobs__filters-row {
    grid-template-columns: 1fr;
  }

  .tc-jobs__list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tc-jobs__card {
    padding: 14px;
    min-height: 0;
  }

  .tc-jobs__card-title {
    font-size: 15px;
  }
}
