.jobs-card,
.jobs-features,
.jobs-cta {
  --jobs-orange: #c44f26;
  --jobs-orange-soft: rgba(196, 79, 38, 0.08);
  --jobs-yellow: #f5c843;
  --jobs-text: #1a1a1a;
  --jobs-muted: #595959;
  --jobs-chip-border: #e8e8e8;
  --jobs-chip-bg: #fafafa;
  --jobs-whatsapp: #25d366;
  --jobs-whatsapp-hover: #20bd5a;
  --jobs-shadow:
    rgba(0, 0, 0, 0.2) 0px 3px 3px -2px,
    rgba(0, 0, 0, 0.14) 0px 3px 4px 0px,
    rgba(0, 0, 0, 0.12) 0px 1px 8px 0px;
  --jobs-shadow-hover:
    rgba(0, 0, 0, 0.22) 0px 6px 10px -2px,
    rgba(0, 0, 0, 0.16) 0px 4px 8px 0px,
    rgba(0, 0, 0, 0.14) 0px 2px 12px 0px;
}

/* ---------- Hero card ---------- */

.jobs-card {
  box-sizing: border-box;
  width: 100%;
  min-height: 280px;
  margin: 0;
  padding: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--jobs-shadow);
  overflow: hidden;
  font-family: "DM Sans", Helvetica, Arial, sans-serif;
}

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

.jobs-card__layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: inherit;
}

.jobs-card__left {
  --jobs-left-gap: 1.25rem;
  --jobs-copy-gap: 0.75rem;

  flex: 3 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--jobs-left-gap);
  padding: 1.75rem 1.5rem 1.5rem;
}

.jobs-card__section {
  display: flex;
  flex-direction: column;
  flex: none;
  min-height: auto;
}

.jobs-card__section--middle {
  gap: var(--jobs-copy-gap);
}

.jobs-card__right {
  position: relative;
  flex: 2 1 0;
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  background: #000;
}

.jobs-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.jobs-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(196, 79, 38, 0.25);
  background: var(--jobs-orange-soft);
  color: var(--jobs-orange);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.jobs-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #2e7d32;
}

.jobs-card__status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.jobs-card__status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  animation: jobs-pulse 1.8s ease-out infinite;
  opacity: 0.55;
}

@keyframes jobs-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70% {
    transform: scale(2.2);
    opacity: 0;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.jobs-card__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.25;
  color: var(--jobs-text);
}

.jobs-card__desc {
  margin: 0;
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--jobs-muted);
}

.jobs-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  align-self: flex-start;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--jobs-orange);
  text-decoration: none;
  transition: color 200ms ease;
}

.jobs-card__link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.jobs-card__link:hover {
  color: #a8401e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jobs-card__link:hover svg {
  transform: translateX(3px);
}

.jobs-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jobs-card__chip {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--jobs-chip-border);
  background: var(--jobs-chip-bg);
  font-size: 0.75rem;
  font-weight: 500;
  color: #333;
  transition:
    background 200ms ease,
    border-color 200ms ease;
}

.jobs-card__chip:hover {
  border-color: rgba(196, 79, 38, 0.35);
  background: var(--jobs-orange-soft);
}

/* ---------- Feature cards ---------- */

.jobs-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.jobs-feature {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.5rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--jobs-shadow);
}

.jobs-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--jobs-orange-soft);
  color: var(--jobs-orange);
}

.jobs-feature__icon svg {
  width: 22px;
  height: 22px;
}

.jobs-feature__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--jobs-text);
}

.jobs-feature__desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--jobs-muted);
}

/* ---------- Closing CTA banner ---------- */

.jobs-cta {
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(
      90% 120% at 95% 0%,
      rgba(245, 200, 67, 0.18) 0%,
      rgba(245, 200, 67, 0) 55%
    ),
    radial-gradient(
      120% 140% at 0% 100%,
      rgba(196, 79, 38, 0.35) 0%,
      rgba(196, 79, 38, 0) 60%
    ),
    #16100c;
  box-shadow: var(--jobs-shadow);
}

.jobs-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 2rem 1.75rem;
}

.jobs-cta__copy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.jobs-cta__title {
  margin: 0;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.jobs-cta__desc {
  margin: 0;
  max-width: 38rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.jobs-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  background: var(--jobs-whatsapp);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease;
}

.jobs-cta__btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.jobs-cta__btn:hover {
  transform: translateY(-2px);
  background: var(--jobs-whatsapp-hover);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

.jobs-cta__btn:active {
  transform: translateY(0);
}

/* ---------- Breakpoints ---------- */

@media (max-width: 767px) {
  .jobs-card__right {
    flex: none;
  }
}

@media (min-width: 640px) {
  .jobs-features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .jobs-card {
    min-height: 300px;
  }

  .jobs-card__layout {
    flex-direction: row;
  }

  .jobs-card__left {
    --jobs-left-gap: 1.5rem;
    --jobs-copy-gap: 0.875rem;

    min-height: inherit;
    gap: var(--jobs-left-gap);
    padding: 2.25rem 1.5rem 2rem 2.5rem;
  }

  /*
   * Sections keep their natural height; auto margins center the middle
   * one in the leftover space. Forcing equal thirds (flex: 1 1 0) made
   * tall middle content overflow under the chips section, which then
   * swallowed clicks on the link.
   */
  .jobs-card__section--middle {
    margin: auto 0;
  }

  .jobs-card__right {
    min-height: 360px;
    align-self: stretch;
  }

  .jobs-cta__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.25rem 2.5rem;
  }

  .jobs-cta__btn {
    flex-shrink: 0;
  }
}
