/* /var/www/relyn/static_src/css/careers.css */

.careers-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 24px 90px;
}

.careers-shell {
  position: relative;
  width: 100%;
  max-width: 1920px;
  min-height: 1044px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 77px;

  /* blur controls */
  --career-blur-w: 1763px;
  --career-blur-h: 560px;
  --career-blur-top: 58%;
  --career-blur-blur: 95px;
  --career-blur-opacity: 0.78;
}

.careers-blur-layer {
  position: absolute;
  left: 52%;
  top: var(--career-blur-top);
  transform: translate(-50%, -50%);
  width: var(--career-blur-w);
  height: var(--career-blur-h);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%,
      rgba(166, 151, 224, 0.70) 0%,
      rgba(99, 62, 178, 0.82) 45%,
      rgba(0, 0, 0, 0.00) 78%);
  filter: blur(var(--career-blur-blur));
  opacity: var(--career-blur-opacity);
  pointer-events: none;
  z-index: 0;
}

.careers-header {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
}

.careers-kicker {
  margin: 0;
  font-family: "Urbanist", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.careers-title {
  margin: 22px 0 0;
  font-family: "Urbanist", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.12;
  color: #FFFFFF;
}

.careers-card {
  position: relative;
  z-index: 1;
  margin-top: 115px;
  width: 1475px;
  max-width: 100%;
  height: 314px;
  overflow: visible;

  filter: drop-shadow(0 26px 70px rgba(0, 0, 0, 0.85));
}

/* ✅ 40px spacing between stacked cards (desktop unchanged) */
.careers-card + .careers-card {
  margin-top: 40px;
}

.careers-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.careers-card-bg-mobile {
  display: none;
}

.careers-card-inner {
  position: absolute;
  inset: 0;
  z-index: 2;

  /* spacing: top 36px, left 72px */
  padding-top: 36px;
  padding-left: 72px;
  padding-right: 72px;
  padding-bottom: 40px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.careers-job-title {
  margin: 0;
  font-family: "Urbanist", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #FFFFFF;
  text-align: left;
}

.careers-job-desc {
  margin: 24px 0 0;
  width: 1283px;
  max-width: calc(100% - 380px); /* keep away from the button zone on desktop */
  font-family: "Urbanist", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.62;
  color: #FFFFFF;
  text-align: left;
}

.careers-tags {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.careers-tag {
  width: 156px;
  height: 50px;
  border-radius: 10px;
  background: #633EB2;
  border: 3px solid #3C4384;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-family: "Urbanist", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  text-align: center;
  letter-spacing: 0.02em;
}

.careers-apply-btn {
  position: absolute;
  z-index: 3;

  /* inside bottom-right corner; box wraps around it (gap only on top + left) */
  right: 0;
  bottom: 0;
  width: 330px;
  height: 60px;
  border-radius: 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-family: "Urbanist", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #FFFFFF;
  text-decoration: none;

  background: linear-gradient(135deg, rgba(99, 62, 178, 0.80) 0%, rgba(99, 62, 178, 0.20) 100%);
  border: 1px solid rgba(99, 62, 178, 0.85);

  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  transition:
    transform 0.18s ease-out,
    filter 0.18s ease-out,
    box-shadow 0.18s ease-out;
}

.careers-apply-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.92);
}

.careers-apply-btn:active {
  transform: translateY(0);
}

.careers-apply-anchor {
  width: 0;
  height: 0;
}

/* ✅ In-view animation hook (JS adds .is-inview) */
.careers-header,
.careers-card {
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.careers-shell.is-inview .careers-header,
.careers-shell.is-inview .careers-card {
  transform: translateY(0);
  opacity: 1;
}

/* ✅ Laptop (covers 1366px / 1440px too): same as desktop but smaller */
@media (max-width: 1440px) and (min-width: 1025px) {
  .careers-shell {
    min-height: 960px;
  }

  .careers-kicker {
    font-size: 18px;
    letter-spacing: 0.16em;
  }

  .careers-title {
    font-size: 40px;
  }

  .careers-card {
    width: min(1320px, 100% - 40px);
    height: 290px;
    margin-top: 95px;
  }

  .careers-card + .careers-card {
    margin-top: 32px;
  }

  .careers-card-inner {
    padding-top: 28px;
    padding-left: 56px;
    padding-right: 56px;
    padding-bottom: 36px;
  }

  .careers-job-title {
    font-size: 28px;
  }

  .careers-job-desc {
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.6;
    max-width: calc(100% - 340px);
  }

  .careers-tags {
    margin-top: 22px;
    gap: 12px;
  }

  .careers-tag {
    width: 140px;
    height: 46px;
    font-size: 14px;
  }

  .careers-apply-btn {
    width: 280px; /* ✅ reduced button width in corner */
    height: 54px;
    border-radius: 18px;
    font-size: 18px;
  }
}

/* ✅ Tablet (landscape only): smaller, still same layout */
@media (max-width: 1024px) and (min-width: 769px) and (orientation: landscape) {
  .careers-shell {
    min-height: 940px;
  }

  .careers-kicker {
    font-size: 17px;
    letter-spacing: 0.15em;
  }

  .careers-title {
    font-size: 36px;
  }

  .careers-card {
    width: min(1180px, 100% - 36px);
    height: 270px;
    margin-top: 88px;
  }

  .careers-card + .careers-card {
    margin-top: 28px;
  }

  .careers-card-inner {
    padding-top: 24px;
    padding-left: 44px;
    padding-right: 44px;
    padding-bottom: 34px;
  }

  .careers-job-title {
    font-size: 26px;
  }

  .careers-job-desc {
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.58;
    max-width: calc(100% - 310px);
  }

  .careers-tags {
    margin-top: 18px;
    gap: 10px;
  }

  .careers-tag {
    width: 132px;
    height: 44px;
    font-size: 13px;
  }

  .careers-apply-btn {
    width: 250px; /* ✅ reduced button width in corner */
    height: 52px;
    border-radius: 18px;
    font-size: 17px;
  }
}

/* ✅ Mobile + Tablet portrait: keep button INSIDE the box (desktop untouched) */
@media (max-width: 768px) {
  .careers-section {
    padding: 0 16px 96px;
  }

  .careers-shell {
    padding-top: 77px;
    min-height: 980px;

    --career-blur-w: 1400px;
    --career-blur-h: 520px;
    --career-blur-top: 52%;
    --career-blur-blur: 90px;
  }

  .careers-kicker {
    font-size: 16px;
    letter-spacing: 0.14em;
  }

  .careers-title {
    font-size: 30px;
  }

  .careers-card {
    margin-top: 85px;
    height: auto;
    overflow: hidden; /* ✅ prevents any element from visually going outside */
    border-radius: 25px; /* ✅ FIX: 25px corner-radius for mobile + tablet portrait */
  }

  /* ✅ ensure background respects the same rounding */
  .careers-card-bg {
    border-radius: 25px;
  }

  .careers-card-bg-mobile {
    border-radius: 25px;
  }

  /* keep the 40px spacing rule as-is */
  .careers-card + .careers-card {
    margin-top: 40px;
  }

  /* ✅ swap SVGs: mobile = normal corners */
  .careers-card-bg-desktop {
    display: none;
  }

  .careers-card-bg-mobile {
    display: block;
  }

  .careers-card-inner {
    position: relative;
    padding: 40px 20px 96px 20px; /* ✅ bottom space reserved for button */
  }

  .careers-job-title {
    font-size: 24px;
  }

  .careers-job-desc {
    margin-top: 18px;
    width: 100%;
    max-width: 100%;
    font-size: 15px;
    line-height: 1.65;
  }

  .careers-tags {
    margin-top: 18px;
    gap: 10px;
  }

  .careers-tag {
    width: calc(50% - 6px);
    height: 46px;
    font-size: 14px;
  }

  /* ✅ Button stays INSIDE the card */
  .careers-apply-btn {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    width: auto;
    height: 56px;
    margin: 0;
    border-radius: 18px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .careers-title {
    font-size: 26px;
  }

  .careers-tag {
    height: 44px;
    font-size: 13px;
  }

  .careers-apply-btn {
    height: 54px;
    font-size: 17px;
  }
}
