/* #Strat career hero */

.career-hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100vh;
  position: relative;
}

.career-hero::after {
  content: "";
  background-image: linear-gradient(rgba(10, 16, 44, 0.452), rgba(1, 22, 36, 0.404)), url(../images/career-hero.png);
  background-size: cover;
  background-position: center;
  opacity: 95%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.career-hero .container {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
}

.career-hero h1 {
  text-transform: uppercase;
}

/* #End career hero */

/* #Start career info */

.career-info {
  color: #000;
  margin-top: var(--padding-big);
  margin-bottom: var(--padding-big);
}

.career-info__item {
  display: flex;
  margin-bottom: 20px;
}

.career-info__title {
  width: 50%;
  text-transform: uppercase;
}

.career-info__text {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}



.career-info__text--card h4 {
  color: var(--secondary-color);
  border-bottom: #000 solid 1px;
}

.career-info__text.info__text-row {
  flex-direction: row;
  flex-wrap: wrap;
}

.career-info__text.info__text-row .career-info__text--card {
  width: 48%;
}

@media (max-width: 768px) {
  .career-info__item {
    flex-direction: column;
    align-items: center;
  }

  .career-info__title {
    text-align: center;
    width: 80%;
    margin-bottom: 20px;
  }

  .career-info__text {
    width: 100%;
  }

  .career-info__text.info__text-row .career-info__text--card {
    width: 100%;
  }

  .career-info__text--card p {
    font-size: 14px;
    width: 100%;
  }

  .career-info__text--card h4 {
    font-size: 27px;
  }

}

/* #End career info */

/* #Start career gallery */

.career-gallery {
  margin-top: 80px;
  margin-bottom: 80px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.career-gallery__item {
  width: calc(33.333% - 20px);
  margin-bottom: 30px;
}

.career-gallery__item img {
  width: 100%;
  border-radius: 10px;
  cursor: zoom-in;
  transition: opacity 0.3s ease;
  display: block;
}

.career-gallery__item img:hover {
  opacity: 0.9;
}

@media (max-width: 991px) {
  .career-gallery__item {
    width: calc(50% - 15px);
  }
}

@media (max-width: 576px) {
  .career-gallery {
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .career-gallery__item {
    width: 100%;
    margin-bottom: 20px;
  }
}

/* #End  career gallery */

/* #Start career benefits section */
.career-benefits-section {
  display: flex;
  gap: 80px;
  color: #000;
}

/* Title Styling */
.career-section-title {

  width: 30%;
  line-height: 1.1;

}

/* --- BENEFITS CONTAINER (The 4 items) --- */
.career-benefits-container {
  width: 70%;
  display: flex;
  flex-direction: column;
}

/* A flex row to hold two items */
.career-benefit-row {
  display: flex;
  margin-bottom: 40px;
  gap: 20px;
}

/* Individual Benefit Item Styling */
.career-benefit-item {
  width: 50%;
  transition: all ease 0.3s;
}

.career-benefit-item:hover {
  transform: scale(1.05);
}

.career-benefit-item:nth-child(even) {
  padding-right: 0;
}


/* --- INDIVIDUAL ITEM STYLING --- */
.career-benefit-number {
  font-size: 4rem;
  font-weight: 300;
  color: #e67e22;
  margin-bottom: 10px;
  border-bottom: 1px solid #000;
}

.career-benefit-title {

  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 10px;
  font-size: 19px;

}

.career-benefit-description {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  margin: 0;
  color: #4a5568;
}

/* --- RESPONSIVENESS (BREAKPOINT) --- */
@media (max-width: 768px) {
  .career-benefits-section {
    flex-direction: column;
    gap: 40px;
  }

  .career-section-title {
    flex-basis: auto;
  }

  .career-benefits-container {
    flex-direction: column;
    width: 100%;
  }

  .career-benefit-row {
    width: 100%;
    flex-direction: column;
    margin-bottom: 0;
  }

  .career-benefit-item {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
    margin-bottom: 30px;
  }

  .career-benefit-item:nth-child(even) {
    padding-left: 0;
  }

  .career-section-title {
    width: 100%;
  }

  .career-benefit-number {
    font-size: 27px;
  }
}

@media (max-width: 480px) {
  .career-benefit-title {
    font-size: 16px;
  }
}

/* #End career benefits section */

/* #Start career banner */

.career-banner {
  background-image: url(../images/career-banner.webp);
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 75vh;
  position: relative;
  /* transform: scaleX(-1); */
  overflow: hidden;
}

.career-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.career-banner .container {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.career-banner p {
  z-index: 1;
  font-size: 1.2rem;
  margin-left: 40px;
  color: #fff;
  opacity: 0;
  /* transform: scaleX(-1) translateY(50px); */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.career-banner p.visible {
  opacity: 1;
  /* transform: scaleX(-1) translateY(0); */
}

.career-banner p:first-child {
  font-size: 2.5rem;
  line-height: 1.2;
}

.career-banner p:last-child {
  font-size: 1.4rem;
  transition-delay: 0.2s;
}

@media (max-width: 768px) {
  .career-banner {
    height: auto;
    min-height: 60vh;
    padding: 40px 0;
  }

  .career-banner p {
    margin-left: 15px;
    margin-right: 15px;
  }

  .career-banner p:first-child {
    font-size: 1.8rem;
  }

  .career-banner p:last-child {
    font-size: 1.1rem;
  }
}

@media (max-width: 440px) {
  .career-banner .container {
    justify-content: flex-end;
  }

  .career-banner p:first-child {
    font-size: 20px;
    margin-bottom: 60px;
  }
}

/* #End career banner */

/* #Start vacancies section */

.vacancies-section {
  margin-top: 100px;
  margin-bottom: 100px;
}

.vacancies-grid {
  /* display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(300px, 1fr)); */
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}

/* .item-1 {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}


.item-2 {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.item-3 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.item-4 {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
}

.item-5 {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
} */

.grid-item {
  width: 31%;
  height: 40vh;
  padding: 40px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  color: #1e293b;
  transition: all ease 0.3s;
}

.grid-item:hover {
  background-color: var(--secondary-color);
}

.title-card {
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.job-card {
  background-color: #ffffff;
}

.dark-card {
  background-color: #354151;
  color: #ffffff;
}

.card-title {
  font-size: 2.2rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
}

.details-link {
  font-size: 1rem;
  font-weight: 600;
  color: #3b82f6;
  text-decoration: none;
  margin-top: auto;
}

.job-title {
  font-size: 1.4rem;
  font-weight: 400;
  margin: 0;
  z-index: 10;
  position: relative;
}

.job-number {
  position: absolute;
  top: 50%;
  right: 115px;
  transform: translateY(-33%);
  font-size: 25rem;
  font-weight: 300;
  line-height: 1;
  color: rgba(0, 0, 0, 0.07);
  opacity: 0.8;
  user-select: none;
}

.dark-card .job-number {
  color: rgba(255, 255, 255, 0.1);
}

.card-arrow-job {
  position: absolute;
  width: 46px;
  height: 42px;
  top: 20px;
  background-repeat: no-repeat;
  right: 20px;
  font-size: 1.5rem;
  text-decoration: none;
  line-height: 1;
  color: #1e293b;
  z-index: 20;
  background-image: url(../images/job-dark-arrow.svg);
}

.dark-card .card-arrow-job {
  color: #ffffff;
  background-image: url(../images/job-arrow.png);
}

.item-2 .job-title {
  position: absolute;
  bottom: 40px;
  left: 40px;
  max-width: 80%;
}

.item-3 .job-title,
.item-5 .job-title {
  position: absolute;
  bottom: 40px;
  left: 29px;
  max-width: 80%;
}

.item-4 .job-title {
  position: absolute;
  bottom: 40px;
  left: 40px;
  max-width: 60%;
}

@media (max-width: 1246px) {
  .job-title {
    font-size: 20px;
  }
}

@media (max-width: 992px) {
  .vacancies-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .grid-item {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    height: 250px;
  }

  .title-card {
    height: 150px;
  }

  .job-number {
    font-size: 8rem;
    right: 10px;
  }

  .grid-item {
    width: 100%;
  }
}

/* @media (max-width: 768px) {
  .grid-item {
    width: 100%;
  }
} */

@media (max-width: 480px) {
  .card-title {
    font-size: 1.2rem;
  }

  .job-title {
    font-size: 14px;
  }
}

/* #End vacancies section */

.results-outcome-badge {
  margin: 0;
  border: none;
}