/* ===============================
   CAREERS LANDING SECTION
================================= */
body {
  font-family: Titillium Web;
  /* Global font */
  font-weight: 400;
  margin: 0;
  padding: 0;
}

.careers-section {
  background: radial-gradient(circle at center, rgba(56, 92, 89, 0.4), transparent 70%),
    radial-gradient(circle at top left, rgba(0, 178, 255, 0.15), transparent 40%),
    radial-gradient(circle at bottom right, rgba(107, 183, 69, 0.15), transparent 40%),
    #0a0a0a;
  text-align: center;
  padding: 190px 20px 80px;
  color: #fff;
  box-sizing: border-box;
}

.careers-subtitle {
  color: #00B2FF;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.careers-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
}

.careers-text {
  font-size: 18px;
  color: #ccc;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 20px;
}

.btn-careers {
  background: linear-gradient(90deg, #6BB745, #00B2FF);
  border: none;
  padding: 10px 24px;
  border-radius: 24px;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(0, 178, 255, 0.25);
}

.btn-careers:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  box-shadow: 0 5px 14px rgba(0, 178, 255, 0.35);
}

.btn-careers .hand {
  font-size: 16px;
}


/* ========== OFFICE SECTION ========== */
.career-section-office {
  position: relative;
  padding: 35px 0 120px;
  overflow: hidden;
  margin-left: 0;
  max-width: 1900px;
  margin: 0 auto;
}

.career-grid-office {
  display: grid;
  grid-template-columns: repeat(5, 0.8fr);
  /* 5 equal columns */
  grid-template-rows: repeat(3, auto);
  /* 3 rows */
  gap: 8px;
  width: 97%;
  padding-left: 65px;
  justify-items: end;
  /* align items to the right */
}

/* ===== CARD STYLING ===== */
.career-card-office {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.career-card-office img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.career-card-office:hover {
  transform: translateY(-4px);
}

/* ===== COMMON TEXT CARD STYLING ===== */
.career-card-office:has(h3, p) {
  display: flex;
  flex-direction: column;
  justify-content: left;
  /* vertical center */
  align-items: left;
  /* horizontal center */
  text-align: left;
  padding: 20px;
  /* equal padding */
  border-radius: 16px;
  border: 2px solid #00B2FF;
  background: rgba(21, 20, 29, 0.50);
}

.career-card-office h3 {
  margin: 0 0 10px 0;
  font-size: clamp(1.4rem, 1.5vw, 1.5rem);
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
}

.career-card-office p {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  color: #9b9a9a;
  font-weight: 400;
  line-height: 1.5;
}

/* ===== CARD GRID POSITIONS ===== */
/* Big Card 1 (columns 4-5, rows 1-2) */
.career-grid-office .career-card-office:nth-child(1) {
  grid-column: 4 / 6;
  grid-row: 1 / 3;
  height: 400px;
}

/* Small Card 3 (text card) */
.career-grid-office .career-card-office:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
  height: 196px;
}

/* Card 7 (text card) */
.career-grid-office .career-card-office:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
  height: 196px;
}

/* Card 8 (image card) */
.career-grid-office .career-card-office:nth-child(4) {
  grid-column: 5;
  grid-row: 3;
  height: 196px;
}

/* Card 9 (image card) */
.career-grid-office .career-card-office:nth-child(5) {
  grid-column: 4;
  grid-row: 3;
  height: 196px;
}

/* Big Card 2 (row 2-3, column 3) */
.career-grid-office .career-card-office:nth-child(6) {
  grid-column: 3;
  grid-row: 2 / 4;
  height: 400px;
}

/* Card 11 (text card) */
.career-grid-office .career-card-office:nth-child(7) {
  grid-column: 2;
  grid-row: 3;
  height: 196px;
}

/* Card 12 (text card) */
.career-grid-office .career-card-office:nth-child(8) {
  grid-column: 1;
  grid-row: 3;
  height: 196px;
}


/* ===== MOBILE FIX (stack all cards) ===== */
@media (max-width: 768px) {

  .career-grid-office {
    grid-template-columns: 1fr;
    /* One responsive column */
    grid-template-rows: auto;
    padding-left: 0;
    justify-items: stretch !important;
    gap: 16px;
  }

  /* Remove all manual placement on mobile */
  .career-grid-office .career-card-office {
    grid-column: auto !important;
    grid-row: auto !important;
    height: auto !important;
    /* Allow natural height */
  }

  /* Images scale automatically */
  .career-card-office img {
    height: auto;
  }
}


@media (min-width: 835px) and (max-width: 1166px) {

  /* Text Cards: flexible, more room */
  .career-card-office:has(h3, p) {
    min-height: 240px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
  }

  /* Text wrap properly */
  .career-card-office h3,
  .career-card-office p {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }

  /* Font adjustments */
  .career-card-office h3 {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .career-card-office p {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  /* Small cards (text + image) */
  .career-grid-office .career-card-office:nth-child(2),
  .career-grid-office .career-card-office:nth-child(3),
  .career-grid-office .career-card-office:nth-child(4),
  .career-grid-office .career-card-office:nth-child(5),
  .career-grid-office .career-card-office:nth-child(7),
  .career-grid-office .career-card-office:nth-child(8) {
    height: 245px !important;
    /* text + image cards same height */
  }

  /* Large cards (text + image) */
  .career-grid-office .career-card-office:nth-child(1),
  .career-grid-office .career-card-office:nth-child(6) {
    height: 510px !important;
    /* match large proportion */
  }

  /* Images inside cards: maintain cover alignment */
  .career-card-office img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }
}


@media (min-width: 769px) and (max-width: 835px) {

  /* Text Cards: flexible, wrap text */
  .career-card-office:has(h3, p) {
    min-height: 210px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
  }

  /* Text: wrap properly */
  .career-card-office h3 {
    font-size: 1.13rem;
    line-height: 1.25;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .career-card-office p {
    font-size: 0.9rem;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }

  /* Small cards (text + image) — first row and last row */
  .career-grid-office .career-card-office:nth-child(2),
  .career-grid-office .career-card-office:nth-child(3),
  .career-grid-office .career-card-office:nth-child(4),
  .career-grid-office .career-card-office:nth-child(5),
  .career-grid-office .career-card-office:nth-child(7),
  .career-grid-office .career-card-office:nth-child(8) {
    height: 210px !important;
    /* all small cards same height */
  }

  /* Large cards (text + image) — middle row / big cards */
  .career-grid-office .career-card-office:nth-child(1),
  .career-grid-office .career-card-office:nth-child(6) {
    height: 445px !important;
  }

  /* Images inside cards: maintain cover alignment */
  .career-card-office img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }
}



/* ===============================
   CAREERS STEPS SECTION
================================= */
.careers-steps-section {
  background: #0a0a0a;
  padding: 0 20px 20px;
  color: #fff;
  text-align: center;
  position: relative;
  width: 100%;
  margin-top: 10px;
}

.inner-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.careers-bg {
  background-image: url("/images/careers/bg.svg");
  background-repeat: no-repeat;
  background-size: contain;
}

.careers-steps-header-bg {
  /*background: linear-gradient(180deg,
              rgba(95, 164, 64, 0.5) 0%,
              rgba(14, 161, 205, 0.5) 50%,
              rgba(11, 212, 84, 0.5) 100%);*/

  padding: 100px 20px 60px;
  position: relative;
  margin-bottom: 0;
  overflow: visible;

  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
}


.careers-steps-header-bg2::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100px;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.3) 0%, rgba(0, 0, 0, 1) 100%);
  clip-path: polygon(0 45%, 10% 75%, 25% 65%, 40% 75%,
      60% 75%, 75% 65%, 90% 85%, 100% 45%,
      100% 100%, 0 100%);
  z-index: 0;
  pointer-events: none;
}

.careers-steps-header-bg>* {
  position: relative;
  z-index: 1;
}

.careers-steps-title {
  color: #fff;
  font-size: 54px;
  font-weight: 500;
  margin: 0 0 10px;
}

.careers-steps-subtitle {
  color: #f2f2f7;
  font-size: 20px;
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto 60px;
}

.careers-steps-timeline {
  position: relative;
  padding-top: 20px;
  z-index: 1;
  margin-top: -40px;
}

.careers-step {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 50px 0;
  position: relative;
}

.careers-step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: #00B2FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  border: 2px solid #00B2FF;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.careers-step-circle::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: var(--after-height, 60px);
  background: rgba(255, 255, 255, 0.3);
  z-index: 1;
  transition: height 0.3s ease;
}

.careers-step:last-child .careers-step-circle::after {
  display: none;
}

.careers-step-circle .step-image {
  border-radius: 50%;
}

.careers-step-content {
  width: 45%;
  font-size: 18px;
  color: #fff;
}

.careers-step-content.left {
  text-align: right;
  margin-right: 20px;
}

.careers-step-content.right {
  text-align: left;
  margin-left: 20px;
}

.careers-step-content:empty {
  flex-basis: 45%;
}

@media (max-width: 768px) {
  .careers-step {
    flex-direction: column;
    align-items: center;
  }

  .careers-step-content {
    width: 100%;
    margin-top: 15px;
    text-align: center !important;
  }

  .careers-step-circle::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (min-width: 769px) and (max-width: 1160px) {
  .careers-step {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: flex-start;
    gap: 20px;
  }

  .careers-step-content {
    width: 100%;
    word-wrap: break-word;
  }

  .careers-step-circle {
    justify-self: center;
  }

  .careers-step-circle::after {
    left: 50%;
    transform: translateX(-50%);
  }
}


/* ===============================
   OPEN POSITIONS SECTION
================================= */
.careers-positions {
  padding: 20px 20px;
  color: #fff;
  text-align: center;
}

.careers-section-title {
  font-size: 28px;
  margin-bottom: 30px;
  color: #00FF00;
}

.careers-search-container {
  display: flex;
  width: 604px;
  padding: 15px 30px;
  align-items: center;
  gap: 7.5px;
  border-radius: 20px;
  background: #1C1C1C;
  margin: 0 auto 30px;
  box-sizing: border-box;
}

.careers-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
}

.search-icon {
  color: #888;
  font-size: 18px;
  margin-right: 5px;
}

/* Pill Filters */
.careers-pill-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 15px;
  margin-bottom: 0px;
  margin-left: 40px;
}

.careers-pill {
  color: #fff;
  padding: 10px 28px;
  /* wider padding for oval shape */
  border-radius: 30px;
  /* more oval/rounded ends */
  font-size: 16px;
  cursor: pointer;
  min-width: 100px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid #00FF00;
  background: transparent;
  width: 130px;
}

.careers-pill:hover {
  background: #fff;
  color: #000;
}

/* ===============================
   JOB CARD SECTION
================================= */
.careers-job-card {
  display: flex;
  padding: 30px;
  justify-content: center;
  align-items: center;
  gap: 16px;
  align-self: stretch;
  border-radius: 16px;
  background: rgba(68, 68, 68, 0.44);
  margin: 15px auto 30px auto;
  max-width: 1200px;
  width: 100%;
  text-align: left;
}

.job-content {
  flex-grow: 1;
  margin-right: 20px;
}

.job-content h3 {
  margin: 0 0 10px 0;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
}

.job-content h4 {
  margin: 0 0 10px 0;
  color: #fff;
  font-size: 20px;
  font-weight: 400;
}

.job-content p,
ul {
  margin: 0;
  color: #efe4e4;
  font-size: 16px;
}

/* Apply Button */
.careers-btn-outline {
  padding: 10px 20px;
  border: 2px solid #00ff005f;
  background: transparent;
  color: #fff;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 16px;
}

.careers-btn-outline:hover {
  background: #fff;
  color: #000;
  border-color: #489b1e;
  transform: translateY(-2px);
  opacity: 0.95;
}

.careers-job-details {
  display: none;
  /* hidden initially */
  padding-top: 10px;
  font-size: 10px;
  color: #555;
}

.careers-job-card.expanded .careers-job-details {
  display: block;
  /* show when card has .expanded */
}

.job-title {
  cursor: pointer;
  /* Show pointer on hover */
}

.job-title:hover {
  color: #007BFF;
  /* Optional highlight */
}

@media(min-width: 1400px) {
  .careers-pill-container {
    margin-left: 80px;
  }

  .careers-job-card {
    max-width: 1700px;
  }

  .career-opportunities {
    margin-bottom: 75px;
  }

  .about-career-wrapper img {
    padding-left: 150px;
  }
}

@media (min-width: 1440px) {
  .career-grid-office {
    padding-left: 75px;
    /* adjust if needed */
  }
}