/* ==========================================================================
   Careers Template Styles (Matching Live React Design)
   ========================================================================== */

/* 1. Hero Section Root */
.career-hero-section {
  --side-padding: clamp(1rem, -0.408rem + 6.009vw, 5rem);
  --gutter: clamp(1.5rem, 1.25rem + 0.625vw, 1.6667vw);
  position: relative;
  width: 100%;
  padding-top: var(--spacing-3xl, clamp(2.5625rem, 1.8115rem + 3.2044vw, 4.375rem));
  padding-bottom: var(--spacing-5xl, clamp(3.6875rem, 2.548rem + 4.8619vw, 6.4375rem));
  box-sizing: border-box;
  overflow-x: clip;
}

/* --------------------------------------------------------------------------
   Themes: Natural, Light, Dark
   -------------------------------------------------------------------------- */

/* Theme: Natural (Default on Live Careers) */
.career-hero-section,
.career-hero-section.natural,
.career-hero-section.morae-theme-natural {
  background-color: #f5f2ef !important;
  color: #0f0f0f !important;
}

.career-hero-section.natural .career-hero-topline,
.career-hero-section.morae-theme-natural .career-hero-topline {
  color: #e03100 !important;
}

.career-hero-section.natural .career-hero-heading,
.career-hero-section.morae-theme-natural .career-hero-heading {
  color: #0f0f0f !important;
}

.career-hero-section.natural .career-hero-summary,
.career-hero-section.morae-theme-natural .career-hero-summary {
  color: #0f0f0f !important;
  border-left-color: #e03100 !important;
}

.career-hero-section.natural .career-hero-summary p,
.career-hero-section.morae-theme-natural .career-hero-summary p {
  color: #0f0f0f !important;
}

/* Theme: Light */
.career-hero-section.light,
.career-hero-section.morae-theme-light,
.career-hero-section.morae-theme-default {
  background-color: #ffffff !important;
  color: #262626 !important;
}

.career-hero-section.light .career-hero-topline,
.career-hero-section.morae-theme-light .career-hero-topline,
.career-hero-section.morae-theme-default .career-hero-topline {
  color: #e03100 !important;
}

.career-hero-section.light .career-hero-heading,
.career-hero-section.morae-theme-light .career-hero-heading,
.career-hero-section.morae-theme-default .career-hero-heading {
  color: #262626 !important;
}

.career-hero-section.light .career-hero-summary,
.career-hero-section.morae-theme-light .career-hero-summary,
.career-hero-section.morae-theme-default .career-hero-summary {
  color: #262626 !important;
  border-left-color: #e03100 !important;
}

.career-hero-section.light .career-hero-summary p,
.career-hero-section.morae-theme-light .career-hero-summary p,
.career-hero-section.morae-theme-default .career-hero-summary p {
  color: #262626 !important;
}

/* Theme: Dark */
.career-hero-section.dark,
.career-hero-section.morae-theme-dark {
  background-color: #101010 !important;
  color: #f5f2ef !important;
}

.career-hero-section.dark .career-hero-topline,
.career-hero-section.morae-theme-dark .career-hero-topline {
  color: #ff3700 !important;
}

.career-hero-section.dark .career-hero-heading,
.career-hero-section.morae-theme-dark .career-hero-heading {
  color: #ffffff !important;
}

.career-hero-section.dark .career-hero-summary,
.career-hero-section.morae-theme-dark .career-hero-summary {
  color: #cac5be !important;
  border-left-color: #ff3700 !important;
}

.career-hero-section.dark .career-hero-summary p,
.career-hero-section.morae-theme-dark .career-hero-summary p {
  color: #cac5be !important;
}

/* 2. Inner Container */
.career-hero-inner {
  position: relative;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--side-padding, clamp(1rem, -0.408rem + 6.009vw, 5rem));
  padding-right: var(--side-padding, clamp(1rem, -0.408rem + 6.009vw, 5rem));
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .career-hero-inner {
    min-height: 43.19444vw;
    display: flex;
  }
}

/* 3. Grid */
.career-hero-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .career-hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter, clamp(1.5rem, 1.25rem + 0.625vw, 1.6667vw));
  }
}

/* 4. Left Content Column */
.career-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  row-gap: var(--spacing-xl, clamp(1.5rem, 1.25rem + 0.625vw, 1.6667vw));
  z-index: 10;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .career-hero-content {
    grid-column: span 6 / span 6;
  }
}

@media (max-height: 890px) and (min-width: 768px) {
  .career-hero-content {
    justify-content: flex-start;
    row-gap: clamp(1.5rem, 1.25rem + 0.625vw, 2rem);
  }
}

/* 5. Topline */
.career-hero-topline {
  font-size: clamp(1.125rem, 1.05rem + 0.25vw, 1.25rem) !important;
  line-height: 1.5 !important;
  font-weight: 500 !important;
  margin: 0 !important;
  letter-spacing: normal !important;
}

/* 6. Heading */
.career-hero-heading {
  font-size: clamp(1.9375rem, 1.52314rem + 1.76796vw, 2.960625rem) !important;
  line-height: clamp(2.5rem, 1.93025rem + 2.43094vw, 3.84875rem) !important;
  font-weight: 400 !important;
  margin-top: clamp(0.875rem, 0.7875rem + 0.375vw, 1.0625rem) !important;
  margin-bottom: 0 !important;
  letter-spacing: normal !important;
}

/* 7. Summary */
.career-hero-summary {
  font-size: clamp(1.125rem, 1.05rem + 0.25vw, 1.25rem);
  line-height: 1.5;
  font-weight: 400;
  border-left: 2px solid #e03100;
  padding-left: 1.6em;
  margin: 0;
  box-sizing: border-box;
}

.career-hero-summary p {
  margin: 0;
}

/* 8. Actions & CTA Button */
.career-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-base, 1rem);
  margin-top: var(--spacing-2xl, clamp(2.125rem, 1.6588rem + 1.989vw, 3.25rem));
}

.career-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  position: relative;
  z-index: 0;
  font-size: clamp(0.9375rem, 0.8875rem + 0.2vw, 1.04375rem);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: normal;
  text-decoration: none !important;
  cursor: pointer;
  box-sizing: border-box;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.career-hero-btn svg,
.career-hero-btn .morae-btn-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  transition: color 0.15s ease, fill 0.15s ease, transform 0.15s ease;
}

/* ==========================================================================
   Primary Button Style
   ========================================================================== */
.career-hero-btn--primary {
  background-color: #e03100;
  color: #ffffff !important;
  border: 0.05988024em solid #e03100;
  height: 3.3533em;
  padding-left: 1em;
  padding-right: 1em;
  gap: 1.67665em;
  overflow: hidden;
}

.career-hero-btn--primary svg,
.career-hero-btn--primary .morae-btn-icon {
  fill: #ffffff;
}

.career-hero-btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #e13000 52.63%, #ff3600 100.88%);
  transition: opacity 0.2s ease;
  opacity: 1;
}

.career-hero-btn--primary:hover::before {
  opacity: 0;
}

.career-hero-btn--primary:hover {
  background-color: #ba2800;
  border-color: #ba2800;
  color: #ffffff !important;
}

/* ==========================================================================
   Naked Button Style
   ========================================================================== */
a.career-hero-btn--naked,
.career-hero-btn--naked,
a.morae-btn-naked,
.morae-btn-naked {
  background-color: transparent !important;
  background: transparent !important;
  border: 0 none transparent !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  gap: 0.71856em !important;
  overflow: visible !important;
}

.career-hero-btn--naked::before,
.morae-btn-naked::before {
  display: none !important;
}

.career-hero-btn--naked > span,
.morae-btn-naked > span {
  display: inline-block;
  border-bottom: 0.09375em solid transparent;
  transition: border-color 0.15s ease;
}

/* Naked Colors by Theme */
.career-hero-section.dark a.career-hero-btn--naked,
.career-hero-section.dark .career-hero-btn--naked,
.career-hero-section.morae-theme-dark a.career-hero-btn--naked,
.career-hero-section.morae-theme-dark .career-hero-btn--naked,
a.career-hero-btn--naked,
.career-hero-btn--naked {
  color: #ffffff !important;
}

.career-hero-btn--naked svg,
.career-hero-btn--naked .morae-btn-icon {
  color: #e03100 !important;
  fill: #e03100 !important;
}

.career-hero-btn--naked:hover > span {
  border-bottom-color: #e03100 !important;
}

.career-hero-btn--naked:hover svg,
.career-hero-btn--naked:hover .morae-btn-icon {
  color: #ba2800 !important;
  fill: #ba2800 !important;
}

.career-hero-section.light a.career-hero-btn--naked,
.career-hero-section.light .career-hero-btn--naked,
.career-hero-section.morae-theme-light a.career-hero-btn--naked,
.career-hero-section.morae-theme-light .career-hero-btn--naked,
.career-hero-section.natural a.career-hero-btn--naked,
.career-hero-section.natural .career-hero-btn--naked,
.career-hero-section.morae-theme-natural a.career-hero-btn--naked,
.career-hero-section.morae-theme-natural .career-hero-btn--naked {
  color: #101010 !important;
}

.career-hero-section.light a.career-hero-btn--naked:hover > span,
.career-hero-section.light .career-hero-btn--naked:hover > span,
.career-hero-section.morae-theme-light a.career-hero-btn--naked:hover > span,
.career-hero-section.morae-theme-light .career-hero-btn--naked:hover > span,
.career-hero-section.natural a.career-hero-btn--naked:hover > span,
.career-hero-section.natural .career-hero-btn--naked:hover > span,
.career-hero-section.morae-theme-natural a.career-hero-btn--naked:hover > span,
.career-hero-section.morae-theme-natural .career-hero-btn--naked:hover > span {
  border-bottom-color: #e03100 !important;
}

/* ==========================================================================
   Secondary Button Style
   ========================================================================== */
.career-hero-btn--secondary {
  background-color: transparent !important;
  background: transparent !important;
  border: 0.05988024em solid currentColor !important;
  height: 3.3533em;
  padding-left: 1em;
  padding-right: 1em;
  gap: 1.67665em;
  overflow: hidden;
}

.career-hero-btn--secondary::before {
  display: none !important;
}

/* Secondary in Dark Theme */
.career-hero-section.dark .career-hero-btn--secondary,
.career-hero-section.morae-theme-dark .career-hero-btn--secondary,
.career-hero-btn--secondary {
  color: #ffffff !important;
  border-color: #ffffff !important;
}

.career-hero-section.dark .career-hero-btn--secondary svg,
.career-hero-section.morae-theme-dark .career-hero-btn--secondary svg,
.career-hero-section.dark .career-hero-btn--secondary .morae-btn-icon,
.career-hero-section.morae-theme-dark .career-hero-btn--secondary .morae-btn-icon,
.career-hero-btn--secondary svg,
.career-hero-btn--secondary .morae-btn-icon {
  fill: currentColor;
}

.career-hero-section.dark .career-hero-btn--secondary:hover,
.career-hero-section.morae-theme-dark .career-hero-btn--secondary:hover,
.career-hero-btn--secondary:hover {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: #101010 !important;
}

.career-hero-section.dark .career-hero-btn--secondary:hover svg,
.career-hero-section.morae-theme-dark .career-hero-btn--secondary:hover svg,
.career-hero-section.dark .career-hero-btn--secondary:hover .morae-btn-icon,
.career-hero-section.morae-theme-dark .career-hero-btn--secondary:hover .morae-btn-icon,
.career-hero-btn--secondary:hover svg,
.career-hero-btn--secondary:hover .morae-btn-icon {
  fill: #101010 !important;
}

/* Secondary in Light / Natural Themes */
.career-hero-section.light .career-hero-btn--secondary,
.career-hero-section.morae-theme-light .career-hero-btn--secondary,
.career-hero-section.natural .career-hero-btn--secondary,
.career-hero-section.morae-theme-natural .career-hero-btn--secondary {
  color: #101010 !important;
  border-color: #101010 !important;
}

.career-hero-section.light .career-hero-btn--secondary svg,
.career-hero-section.morae-theme-light .career-hero-btn--secondary svg,
.career-hero-section.natural .career-hero-btn--secondary svg,
.career-hero-section.morae-theme-natural .career-hero-btn--secondary svg,
.career-hero-section.light .career-hero-btn--secondary .morae-btn-icon,
.career-hero-section.morae-theme-light .career-hero-btn--secondary .morae-btn-icon,
.career-hero-section.natural .career-hero-btn--secondary .morae-btn-icon,
.career-hero-section.morae-theme-natural .career-hero-btn--secondary .morae-btn-icon {
  fill: currentColor;
}

.career-hero-section.light .career-hero-btn--secondary:hover,
.career-hero-section.morae-theme-light .career-hero-btn--secondary:hover,
.career-hero-section.natural .career-hero-btn--secondary:hover,
.career-hero-section.morae-theme-natural .career-hero-btn--secondary:hover {
  background-color: #101010 !important;
  border-color: #101010 !important;
  color: #ffffff !important;
}

.career-hero-section.light .career-hero-btn--secondary:hover svg,
.career-hero-section.morae-theme-light .career-hero-btn--secondary:hover svg,
.career-hero-section.natural .career-hero-btn--secondary:hover svg,
.career-hero-section.morae-theme-natural .career-hero-btn--secondary:hover svg,
.career-hero-section.light .career-hero-btn--secondary:hover .morae-btn-icon,
.career-hero-section.morae-theme-light .career-hero-btn--secondary:hover .morae-btn-icon,
.career-hero-section.natural .career-hero-btn--secondary:hover .morae-btn-icon,
.career-hero-section.morae-theme-natural .career-hero-btn--secondary:hover .morae-btn-icon {
  fill: #ffffff !important;
}

/* 9. Media & Image Container */
.career-hero-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .career-hero-media {
    position: relative;
    width: calc(100% + var(--side-padding, 1rem));
    margin-top: clamp(1.5rem, 1.25rem + 0.625vw, 1.6667vw);
    margin-right: calc(-1 * var(--side-padding, 1rem));
  }

  .career-hero-media .career-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

@media (min-width: 768px) {
  .career-hero-media {
    position: absolute;
    top: 0;
    right: 0;
    width: 43.19444vw;
    height: 43.19444vw;
  }

  .career-hero-media .career-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* ==========================================================================
   10. Fluid Typography & 90rem (1440px+) Scaling Matching Live React
   ========================================================================== */
@media (min-width: 90rem) {
  .career-hero-section {
    padding-top: 4.8611vw !important;
    padding-bottom: 8.54167vw !important;
  }

  .career-hero-inner {
    padding-left: 5.55556vw !important;
    padding-right: 5.55556vw !important;
    min-height: 43.19444vw !important;
  }

  .career-hero-grid {
    column-gap: 1.6667vw !important;
  }

  .career-hero-content {
    row-gap: 1.6667vw !important;
  }

  .career-hero-topline {
    font-size: 1.38889vw !important;
    line-height: 1.5 !important;
  }

  .career-hero-heading {
    font-size: 3.28958vw !important;
    line-height: 1.3 !important;
    margin-top: 1.04167vw !important;
  }

  .career-hero-summary {
    font-size: 1.38889vw !important;
    line-height: 1.5 !important;
    padding-left: 1.6em !important;
  }

  .career-hero-actions {
    margin-top: 3.6111vw !important;
    gap: 1.1111vw !important;
  }

  .career-hero-btn {
    font-size: 1.15972vw !important;
  }

  .career-hero-btn--primary,
  .career-hero-btn--secondary {
    height: 3.3533em !important;
  }

  a.career-hero-btn--naked,
  .career-hero-btn--naked,
  a.morae-btn-naked,
  .morae-btn-naked {
    height: auto !important;
    min-height: 0 !important;
  }

  .career-hero-media {
    width: 43.19444vw !important;
    height: 43.19444vw !important;
  }
}
