:root {
  --careers-bg: #f4f8ff;
  --careers-surface: #ffffff;
  --careers-ink: #00aaff;
  --careers-line: #86d5ff;
  --careers-accent-soft: #d9e7ff;
  --careers-accent-ink: #0088cc;
  --careers-radius: 20px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--careers-bg);
  color: var(--careers-ink);
}

.page-main {
  padding-top: 60px;
}

.nav-link[aria-current="page"] {
  color: var(--accent);
}

.careers-hero {
  position: relative;
  z-index: 0;
  background-image: linear-gradient(105deg, rgba(9, 17, 35, 0.92), rgba(11, 157, 255, 0.568)), url("assets/career.png");
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
  margin-top: calc(var(--header-height) * -1);
  padding-top: calc(4rem + var(--header-height));
  padding-bottom: 3.5rem;
}


.hero-overlay {
  background:
    radial-gradient(circle at 12% 78%, rgba(147, 184, 255, 0.56), transparent 21%),
    radial-gradient(circle at 84% 14%, rgba(83, 142, 255, 0.28), transparent 23%);
  inset: 0;
  position: absolute;
}


h1 {
  font-family: 'Beautiful Freak';
  font-size: clamp(1.8rem, 4.3vw, 3.4rem);
  line-height: 1.5;
  margin: 1.2rem 0 0;
  max-width: 30000ch;
}

.hero-text {
  color: rgba(244, 248, 255, 0.86);
  line-height: 1.65;
  margin: 1rem 0 0;
  max-width: 62ch;
}

.jobs-section {
  padding: 2.2rem 0 3.4rem;
}

.team-section {
  padding: 0 0 4.2rem;
}

.team-wrap {
  padding-top: 0.4rem;
}

.team-title {
  color: var(--careers-ink);
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  margin: 0;
}

.team-subtitle {
  color: #38516f;
  line-height: 1.65;
  margin: 0.85rem 0 0;
  max-width: 64ch;
}

.team-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.8rem;
}

.team-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(33, 74, 149, 0.12);
  border-radius: var(--careers-radius);
  box-shadow: 0 12px 28px rgba(206, 218, 235, 0.08);
  min-height: 220px;
  padding: 1.6rem 1.5rem 1.45rem;
}

.team-icon {
  align-items: center;
  color: #0088cc;
  display: inline-flex;
  height: 2.6rem;
  justify-content: center;
  margin-bottom: 1.2rem;
  width: 2.6rem;
}

.team-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  height: 100%;
  width: 100%;
}

.team-card h3 {
  font-family: 'Lato';
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  margin: 0;
}

.team-card p {
  color: #435a78;
  line-height: 1.7;
  margin: 0.8rem 0 0;
}

.jobs-stack {
  display: grid;
  gap: 1rem;
}

.job-card {
  align-items: center;
  background: var(--careers-surface);
  border: 1px solid var(--careers-line);
  border-radius: var(--careers-radius);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto;
  padding: 1.3rem 1.4rem;
}

.job-title {
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  margin: 0;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.job-tag {
  background: #e8edf7;
  border-radius: 999px;
  color: #313f52;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.34rem 0.86rem;
  text-transform: uppercase;
}

.job-tag-accent {
  background: var(--careers-accent-soft);
  color: var(--careers-accent-ink);
}

.job-summary {
  color: #2b3f5b;
  line-height: 1.6;
  margin: 0.9rem 0 0;
}

.view-role-btn {
  align-items: center;
  background: linear-gradient(110deg, #046a92, #4aa4ff);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  justify-content: center;
  padding: 0.95rem 1.8rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.view-role-btn:hover {
  box-shadow: 0 10px 25px rgba(11, 75, 200, 0.3);
  transform: translateY(-2px);
}


@media (max-width: 820px) {
  .job-card {
    grid-template-columns: 1fr;
  }

  .view-role-btn {
    width: 100%;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  :root{
    --header-height: 84px;
  }
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  main {
    padding-top: 84px;
    overflow-x: hidden;
  }

  .careers-hero {
    min-height: 0;
    overflow: hidden;
  }



  .hero-text {
    max-width: none;
  }

  .jobs-section,
  .jobs-stack,
  .job-card,
  .job-main {
    min-width: 0;
    max-width: 100%;
  }

  .job-card {
    overflow: hidden;
  }

  .job-title,
  .job-summary,
  .hero-text {
    overflow-wrap: anywhere;
  }

  .job-tags {
    min-width: 0;
  }

  .job-tag {
    max-width: 100%;
  }

  .view-role-btn {
    max-width: 100%;
  }
}
