/* ============================================================
   CAREERS-PAGE.CSS
   Styles specific to careers.html — Banner · Vacancy List
   ============================================================ */


/* ─────────────────────────────────────────────────────────────
   PAGE-LEVEL HEADER OVERRIDE
   Same pattern as Blogs / Services / About / Case Study:
   sticky at top, all corners rounded at page top,
   flatten top corners while scrolling (JS adds .is-stuck).
   ───────────────────────────────────────────────────────────── */
body.page--careers .site-header.is-scrolled {
  position: sticky;
  top: 0;
  animation: none;
  border-radius: var(--radius-md); /* all 4 corners at page top */
}

body.page--careers .site-header.is-scrolled.is-stuck {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}


/* ─────────────────────────────────────────────────────────────
   PAGE WRAPPER
   ───────────────────────────────────────────────────────────── */
.careers-page {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 32px 0 0; /* top gap below sticky header */
}


/* ─────────────────────────────────────────────────────────────
   1. CAREERS BANNER
   Figma node 3581-1031
   Same dark honeycomb texture treatment as the Blogs banner.
   .blogs-banner base styles live in blogs-page.css which
   careers.html does NOT load — so they are duplicated here.
   ───────────────────────────────────────────────────────────── */
.blogs-banner {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
  padding: 100px 60px 100px 100px;
}

.blogs-banner__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.blogs-banner__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.blogs-banner__heading {
  position: absolute;
  left: 100px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: 60px;
  line-height: 70px;
  letter-spacing: -1.6px;
  color: #ffffff;
  white-space: nowrap;
  margin: 0;
}


/* ─────────────────────────────────────────────────────────────
   2. VACANCY LIST
   Figma node 3561-14618
   Full-width list of job vacancies, each row separated by a
   1px #333 border-bottom
   ───────────────────────────────────────────────────────────── */
.careers-vacancies {
  display: flex;
  flex-direction: column;
  padding: 20px 0 60px;
}


/* ── Vacancy item row ── */
.vacancy-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 50px;
  border-bottom: 1px solid #333333;
}

.vacancy-item--last {
  border-bottom: none;
}


/* ── Left block: type / location + experience ──
   Figma: width 305px */
.vacancy-item__left {
  flex: 0 0 305px;
  width: 305px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vacancy-item__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: 16px;
  letter-spacing: -0.48px;
  color: #c1c1c1;
  line-height: 30px;
  white-space: nowrap;
}

.vacancy-item__experience {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: 20px;
  color: #111111;
  margin: 0;
  line-height: 1.4;
}


/* ── Middle block: title + skills ──
   Figma: width 634px, px 20px */
.vacancy-item__middle {
  flex: 0 0 634px;
  width: 634px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vacancy-item__title {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: 30px;
  letter-spacing: -0.9px;
  color: #111111;
  margin: 0;
  line-height: 1.3;
}

.vacancy-item__skills {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: #333333;
  margin: 0;
  line-height: 30px;
}

.vacancy-item__skills strong {
  font-weight: var(--fw-bold);
  color: #333333;
}


/* ── Right block: View More button ── */
.vacancy-item__right {
  flex-shrink: 0;
}


/* ─────────────────────────────────────────────────────────────
   VIEW MORE BUTTON
   Figma: gradient-filled pill, white text, arrow absolutely
   positioned at left: 22.88px (vertically centred).
   Outer div: border 1px solid white (sits on top of gradient).
   Inner abs div at inset:-1px carries the gradient fill.
   Figma: pt:11px pb:12px pl:44px pr:25px, border-radius:9999px
   Gradient: linear-gradient(262.89deg, #ff4664 14.51%, #386bb7 95.96%)
   ───────────────────────────────────────────────────────────── */
.btn-view-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 11px 25px 12px 44px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 27px;
  color: #ffffff;
  white-space: nowrap;
  text-decoration: none;
  overflow: hidden;
  transition: opacity var(--ease-default);
}

/* Gradient fill layer — sits at inset:-1px so it bleeds
   just outside the white border, making the pill appear
   gradient-filled with a subtle white inner ring */
.btn-view-more::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 9999px;
  background: linear-gradient(262.89deg, #ff4664 14.51%, #386bb7 95.96%);
  z-index: 0;
  pointer-events: none;
}

.btn-view-more:hover {
  opacity: 0.88;
}

/* Text sits above gradient layer */
.btn-view-more__text {
  position: relative;
  z-index: 1;
}

/* Arrow: absolutely positioned at Figma's left:22.88px, vcenter */
.btn-view-more__arrow {
  position: absolute;
  left: 22.88px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  color: #ffffff;
  flex-shrink: 0;
}

.btn-view-more__arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .vacancy-item__middle {
    flex: 1 1 auto;
    width: auto;
  }

  .vacancy-item__left {
    flex: 0 0 240px;
    width: 240px;
  }
}

@media (max-width: 900px) {
  .vacancy-item {
    padding: 36px 32px;
    flex-wrap: wrap;
    gap: 16px;
  }

  .vacancy-item__left {
    flex: 0 0 100%;
    width: 100%;
  }

  .vacancy-item__middle {
    flex: 0 0 100%;
    width: 100%;
    padding: 0;
  }

  .vacancy-item__right {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .careers-page {
    padding: 20px 0 0;
  }

  .vacancy-item {
    padding: 28px 20px;
  }

  .vacancy-item__title {
    font-size: 24px;
  }

  .vacancy-item__experience {
    font-size: 17px;
  }

  .btn-view-more {
    font-size: 14px;
    padding: 10px 20px 10px 32px;
  }
}
