:root {
  --careers-blue: #1654ff;
}

.careers-page {
  background: #ffffff;
  color: #121827;
  font-family: "Manrope", sans-serif;
}

.careers-shell {
  min-height: 100vh;
  overflow: hidden;
  background: #ffffff;
}

.careers-page .bb-brand-mark img {
  filter: brightness(0) saturate(100%) invert(25%) sepia(97%) saturate(2680%) hue-rotate(220deg) brightness(90%) contrast(94%);
}

.careers-page .bb-header-navigation .nav-link,
.careers-page .careers-site-header.bb-is-sticky .bb-header-navigation .nav-link {
  color: #121827;
}

.careers-page .bb-header-navigation .nav-link:hover,
.careers-page .bb-header-navigation .nav-link:focus,
.careers-page .bb-header-navigation .nav-link[aria-current="page"],
.careers-page .careers-site-header.bb-is-sticky .bb-header-navigation .nav-link[aria-current="page"] {
  color: var(--careers-blue);
}

.careers-page .dropdown-toggle::after,
.careers-page .careers-site-header.bb-is-sticky .dropdown-toggle::after {
  filter: brightness(0) saturate(100%) invert(9%) sepia(18%) saturate(1129%) hue-rotate(183deg) brightness(95%) contrast(93%);
}

.careers-page .bb-menu-toggle .burger-menu-icon,
.careers-page .careers-site-header.bb-is-sticky .bb-menu-toggle .burger-menu-icon {
  width: 24px;
  height: auto;
  margin: 0;
  filter: brightness(0) saturate(100%) invert(9%) sepia(18%) saturate(1129%) hue-rotate(183deg) brightness(95%) contrast(93%);
}

.careers-page .bb-header-contact,
.careers-page .careers-site-header.bb-is-sticky .bb-header-contact {
  color: #ffffff;
  background: var(--brego-blue);
  box-shadow: none;
}

.careers-page .bb-header-contact .bb-btn-icon,
.careers-page .careers-site-header.bb-is-sticky .bb-header-contact .bb-btn-icon {
  filter: brightness(0) invert(1);
}

.careers-page .bb-header-contact:hover,
.careers-page .bb-header-contact:focus,
.careers-page .careers-site-header.bb-is-sticky .bb-header-contact:hover,
.careers-page .careers-site-header.bb-is-sticky .bb-header-contact:focus {
  color: #ffffff;
  background: #111111;
  box-shadow: none;
}

.careers-hero {
  padding: 176px 0 96px;
  background: #ffffff;
}

.careers-hero-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.careers-kicker {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin: 0 0 30px;
  color: var(--careers-blue);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 3.6px;
}

.careers-kicker span {
  display: block;
  width: 50px;
  height: 1px;
  background: rgba(31, 87, 255, 0.65);
}

.careers-hero h1 {
  max-width: 620px;
  margin: 0;
  color: #25262d;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.careers-hero h1 span {
  color: var(--careers-blue);
}

.careers-subtitle {
  max-width: 400px;
  margin: 28px 0 0;
  color: #30333b;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0.3px;
}

.careers-subtitle-mobile,
.careers-contact-mobile {
  display: none;
}

.careers-contact-btn {
  width: 136px;
  height: 46px;
  margin-top: 34px;
  color: #ffffff;
  background: var(--brego-blue);
  box-shadow: 0 14px 26px rgba(31, 87, 255, 0.2);
  font-size: 14px;
  font-weight: 600;
}

.careers-contact-btn .bb-btn-icon {
  filter: brightness(0) invert(1);
}

.careers-contact-btn:hover,
.careers-contact-btn:focus {
  color: #ffffff;
  background: #111111;
}

.careers-video-frame {
  margin-top: 88px;
  overflow: hidden;
}

.careers-video-frame video {
  display: block;
  width: 102%;
  height: auto;
  margin-left: -1%;
  object-fit: contain;
}

.careers-dream-section {
  position: relative;
  padding: 96px 0 118px;
  background: #ffffff;
  color: #121827;
}

.careers-dream-section::after {
  position: absolute;
  right: -40px;
  bottom: 42px;
  width: 260px;
  height: 260px;
  background: url("../images/about/grey-horse.png") center / contain no-repeat;
  opacity: 0.48;
  content: "";
  pointer-events: none;
}

.careers-dream-wrapper {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(480px, 560px) minmax(0, 520px);
  align-items: center;
  justify-content: center;
  gap: 64px;
}

.careers-dream-media {
  display: block;
  width: 100%;
  margin: 0;
  height: 100%;
  min-height: 360px;
  overflow: hidden;
  border-radius: 16px;
  background: #eef3ff;
}

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

.careers-dream-content h2 {
  margin: 0;
  color: #25262d;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.careers-dream-content h2 span {
  color: var(--careers-blue);
}

.careers-dream-content > p {
  max-width: 430px;
  margin: 28px 0 0;
  color: #30333b;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0.3px;
}

.careers-team-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 72px;
  row-gap: 22px;
  max-width: 480px;
  margin-top: 36px;
}

.careers-team-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #121827;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.careers-team-item span {
  white-space: nowrap;
}

.careers-team-item img {

  flex: 0 0 auto;
  display: block;
  box-sizing: border-box;
}

.careers-grow-section {
  padding: 92px 0 118px;
  background: #ffffff;
  color: #121827;
}

.careers-grow-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.careers-grow-heading {
  max-width: 580px;
  text-align: center;
}

.careers-grow-heading h2 {
  margin: 0;
  color: #25262d;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.careers-grow-heading h2 span {
  color: var(--careers-blue);
}

.careers-grow-heading p {
  max-width: 560px;
  margin: 28px auto 0;
  color: #30333b;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0.3px;
}

.careers-grow-collage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: 64px;
}

.careers-grow-shot {
  height: 300px;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #edf3ff;
}

.careers-grow-shot:nth-child(1) img{

  width: 200%;
  margin-left: -40%;
}

.careers-grow-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.careers-grow-shot-top-left {
  grid-column: 1 / span 5;
}

.careers-grow-shot-top-right {
  grid-column: 6 / span 7;
}

.careers-grow-shot-bottom-left {
  grid-column: 1 / span 7;
}

.careers-grow-shot-bottom-right {
  grid-column: 8 / span 5;
}

.careers-faq-section {
  padding: 92px 0 118px;
  background: #ffffff;
  color: #121827;
}

.careers-faq-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.careers-faq-wrapper h2 {
  margin: 0;
  color: #25262d;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0;
}

.careers-faq-wrapper h2 span {
  color: var(--careers-blue);
}

.careers-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  width: min(100%, 1100px);
  margin-top: 68px;
}

.careers-faq-card {
  overflow: hidden;
  border: 2px solid #dfede7;
  border-radius: 24px;
  background: linear-gradient(135deg, #f4f8ff 0%, #ffffff 46%, #f8fbff 100%);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.02);
}

.careers-faq-item {
  border-bottom: 1px solid rgba(18, 24, 39, 0.1);
}

.careers-faq-item:last-child {
  border-bottom: 0;
}

.careers-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 20px 34px;
  border: 0;
  color: #0b0f19;
  background: transparent;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.careers-faq-icon {
  position: relative;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}

.careers-faq-icon::before,
.careers-faq-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--careers-blue);
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 0.24s ease;
}

.careers-faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.careers-faq-question[aria-expanded="true"] .careers-faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.careers-faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.28s ease, opacity 0.2s ease;
}

.careers-faq-item.bb-is-open .careers-faq-answer {
  opacity: 1;
}

.careers-faq-answer p {
  margin: 2px 34px 12px;
  color: #0b0f19;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}

@media (max-width: 1439px) and (min-width: 1024px) {
  .careers-dream-wrapper {
    grid-template-columns: minmax(0, 520px) minmax(0, 500px);
    gap: 56px;
  }
}

@media (max-width: 1023px) and (min-width: 768px) {
  .careers-dream-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 700px;
    gap: 42px;
  }

  .careers-dream-media {
    order: 2;
    width: min(100%, 640px);
    min-height: 0;
    margin: 0 auto;
  }

  .careers-dream-media img {
    height: auto;
    aspect-ratio: 1.45 / 1;
  }

  .careers-dream-content {
    display: contents;
    text-align: center;
  }

  .careers-dream-content h2 {
    order: 1;
    width: 100%;
    text-align: center;
  }

  .careers-dream-content > p {
    order: 1;
    width: min(100%, 520px);
    text-align: center;
  }

  .careers-team-list {
    order: 3;
  }

  .careers-dream-content > p,
  .careers-team-list {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 767px) {

  .careers-page .bb-navbar {
    width: 90%;
  }

  .careers-page .bb-brand-mark img {
    width: 200px;
    max-width: calc(100vw - 132px);
  }

  .careers-hero {
    padding: 118px 0 50px;
  }

  .careers-kicker {
    display: none;
  }

  .careers-hero h1 {
    max-width: 310px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.18;
    text-transform: capitalize;
  }

  .careers-subtitle-desktop,
  .careers-contact-desktop {
    display: none;
  }

  .careers-subtitle-mobile,
  .careers-contact-mobile {
    display: inline;
  }

  .careers-subtitle {
    margin-top: 24px;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.45;
    letter-spacing: 0;
  }

  .careers-contact-btn {
    width: 142px;
    height: 44px;
    margin-top: 34px;
    font-size: 14px;
    font-weight: 600;
  }

  .careers-contact-btn .bb-btn-icon {
    display: none;
  }

  .careers-video-frame {
    margin-top: 58px;
  }

  .careers-video-frame video {
    width: 104%;
    margin-left: -2%;
  }

  .careers-dream-section {
    padding: 50px 0;
  }

  .careers-dream-section::after {
    right: -60px;
    bottom: -100px;
    width: 214px;
    height: 214px;
    opacity: 0.42;
  }

  .careers-dream-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0px;
    align-items: stretch;
  }

  .careers-dream-media {
    order: 2;
    border-radius: 24px;
    margin: 24px auto 0;
    min-height: 0;
  }

  .careers-dream-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 1.28 / 1;
  }

  .careers-dream-content {
    order: 1;
    display: contents;
    text-align: center;
  }

  .careers-dream-content h2 {
    order: 1;
    width: 100%;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
  }

  .careers-dream-content > p {
    order: 1;
    width: 100%;
    margin: 18px auto 0;
    text-align: center;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.45;
    letter-spacing: 0;
  }

  .careers-team-list {
    order: 3;
    grid-template-columns: repeat(2, max-content);  
    column-gap: 55px;
    row-gap: 18px;
    justify-content: space-between;
  }

  .careers-team-item {
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
  }

  .careers-grow-section {
    padding: 50px 0;
  }

  .careers-grow-heading {
    max-width: 305px;
  }

  .careers-grow-heading h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
  }

  .careers-grow-heading h2::after {
    display: block;
    width: 34px;
    height: 1px;
    margin: 12px auto 0;
    background: #25262d;
    content: "";
  }

  .careers-grow-heading p {
    margin-top: 24px;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.55;
    letter-spacing: 0;
  }

  .careers-grow-collage {
    grid-template-columns: repeat(11, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 30px;
  }

  .careers-grow-shot {
    height: auto;
    min-height: 0;
    border-radius: 8px;
    aspect-ratio: auto;
  }

  .careers-grow-shot:nth-child(1) img {
    width: 100%;
    margin-left: 0;
  }

  .careers-grow-shot-top-left,
  .careers-grow-shot-top-right,
  .careers-grow-shot-bottom-left,
  .careers-grow-shot-bottom-right {
    height: 150px;
  }

  .careers-grow-shot img {
    transform: scale(2.08);
    transform-origin: center;
  }

  .careers-grow-shot-top-left {
    grid-column: 1 / span 5;
  }

  .careers-grow-shot-top-right {
    grid-column: 6 / span 6;
  }

  .careers-grow-shot-bottom-left {
    grid-column: 1 / span 6;
  }

  .careers-grow-shot-bottom-right {
    grid-column: 7 / span 5;
  }

  .careers-faq-section {
    padding: 50px 0;
  }

  .careers-faq-wrapper h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
  }

  .careers-faq-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    margin-top: 34px;
  }

  .careers-faq-card {
    border-width: 1.5px;
    border-radius: 16px;
  }

  .careers-faq-question {
    gap: 16px;
    padding: 20px 18px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
  }

  .careers-faq-answer p {
    margin: 2px 18px 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.55;
  }
}
