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

.career-section {
  width: 100%;
  display: flex;
  justify-content: center;
  color: #FFFFFF;
  font-family: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.career-shell {
  position: relative;
  width: 100%;
  max-width: 1920px;
  height: 937px;
  overflow: hidden;

  --blur-top: 56%;
  --blur-h: 560px;
}

.career-blur-layer {
  position: absolute;
  left: 50%;
  top: var(--blur-top);
  transform: translate(-50%, -50%);
  width: 1920px;
  max-width: 100%;
  height: var(--blur-h);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(99, 62, 178, 0.34) 0%,
    rgba(99, 62, 178, 0.20) 35%,
    rgba(0, 0, 0, 0.00) 72%
  );
  filter: blur(34px);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.career-header {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding-top: 77px;
}

.career-kicker {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
}

.career-title {
  margin: 22px 0 0;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.18;
  color: #FFFFFF;
}

/* ✅ Header image hidden by default (desktop/laptop/tablet landscape unchanged) */
.career-header-image-wrap {
  display: none;
}

/* SUBSECTION (1343 × 500) - TRANSPARENT (NO GLASS) */
.career-subsection {
  position: relative;
  z-index: 2;
  width: 1343px;
  height: 500px;
  margin: 132px auto 0;
  overflow: visible;
  display: flex;
  align-items: stretch;
  opacity: 1;
  transform: translateY(0);
}

/* REVEAL ANIMATION ONLY IF JS LOADED */
.has-js .career-subsection {
  opacity: 0;
  transform: translateY(18px);
  transition: transform 0.85s ease, opacity 0.85s ease;
}

.has-js .career-subsection.is-inview {
  opacity: 1;
  transform: translateY(0);
}

/* RIGHT IMAGE (620 × 500) */
.career-image-wrap {
  width: 620px;
  height: 500px;
  flex-shrink: 0;
  position: relative;
}

.career-image {
  width: 620px;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

/* LEFT CONTENT */
.career-content {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 80px;
  padding-right: 110px; /* 110px spacing from the left side of the image */
  box-sizing: border-box;
}

.career-subtitle {
  margin: 0;
  font-size: 48px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.15;
  text-align: left;
  max-width: 560px;
}

.career-body {
  margin: 40px 0 0;
  font-size: 24px;
  font-weight: 500; /* medium */
  line-height: 32px;
  color: #FFFFFF;
  text-align: left;
  max-width: 600px;
  opacity: 0.95;
}

/* GLASS BUTTON ONLY (allowed) */
.career-cta {
  margin-top: 40px;
  width: 260px;
  height: 50px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #FFFFFF;
  background-image: linear-gradient(135deg, #633EB2, #A697E0);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    filter 0.18s ease-out,
    background-image 0.18s ease-out;
}

.career-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.98);
  background-image: linear-gradient(135deg, #A697E0, #633EB2);
}

.career-cta-icon {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 1500px) {
  .career-shell {
    height: auto;
    min-height: 937px;
    padding-bottom: 100px;
  }

  .career-subsection {
    width: calc(100% - 120px);
  }
}

/* ✅ Tablet (Portrait) ONLY + Mobile Portrait sizes:
      Show image under the title, add a LITTLE gap, reduce image size.
      Hide the subsection image so desktop/laptop/tablet landscape stays unchanged. */
@media (max-width: 1100px) and (orientation: portrait) {
  .career-shell {
    height: auto;
    min-height: 0;
    padding-bottom: 80px;
  }

  .career-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .career-title {
    margin-bottom: 0;
  }

  .career-header-image-wrap {
    display: block;
    width: min(520px, calc(100% - 32px));
    margin: 12px auto 0; /* ✅ small space between title and image */
    border-radius: 18px;
    overflow: hidden;
  }

  .career-header-image {
    width: 100%;
    height: auto;
    aspect-ratio: 620 / 500;
    object-fit: cover;
    display: block;
    border-radius: 18px;
  }

  .career-subsection {
    width: calc(100% - 32px);
    height: auto;
    flex-direction: column;
    margin: 52px auto 0;
  }

  .career-image-wrap {
    display: none;
  }

  .career-content {
    padding: 48px 28px 52px 28px;
  }

  .career-subtitle {
    font-size: 34px;
    max-width: 100%;
  }

  .career-body {
    font-size: 18px;
    line-height: 28px;
  }
}

/* ✅ Mobile (all orientations): same behavior */
@media (max-width: 768px) {
  .career-shell {
    height: auto;
    min-height: 0;
    padding-bottom: 80px;
  }

  .career-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .career-title {
    margin-bottom: 0;
  }

  .career-header-image-wrap {
    display: block;
    width: min(420px, calc(100% - 32px));
    margin: 10px auto 0; /* ✅ small space between title and image */
    border-radius: 16px;
    overflow: hidden;
  }

  .career-header-image {
    width: 100%;
    height: auto;
    aspect-ratio: 620 / 500;
    object-fit: cover;
    display: block;
    border-radius: 16px;
  }

  .career-subsection {
    width: calc(100% - 32px);
    height: auto;
    flex-direction: column;
    margin: 48px auto 0;
  }

  .career-image-wrap {
    display: none;
  }

  .career-content {
    padding: 44px 22px 48px 22px;
  }

  .career-subtitle {
    font-size: 32px;
    max-width: 100%;
  }

  .career-body {
    font-size: 18px;
    line-height: 28px;
  }
}
