/* Careers Page Styles */
.careers-hero {
  position: relative;
  background-size: contain;
  padding: 50px 0 70px;
  display: flex;
  align-items: flex-start;
}

.careers-hero__container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: var(--container-max-width);
  width: var(--container-width);
  margin: 0 auto;
  gap: calc(2rem + 2vw);
}

.careers-hero__left {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 40px;
}

.careers-hero__tagline {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 0px;
  text-transform: uppercase;
  margin-top: 0;
}

.careers-hero__title {
  font-size: calc(2.8rem + 1vw);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
  margin-top: 20px;
  margin-bottom: 25px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.careers-hero__divider {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.careers-hero__divider-svg {
  width: 100%;
  height: auto;
}

.careers-hero__subtitle-group {
  margin-top: 0;
}

.careers-hero__subtitle {
  font-size: 1rem !important;
  font-weight: 400 !important;
  color: var(--color-secondary) !important;
  margin-bottom: 1.5rem !important;
  line-height: 1.5 !important;
  max-width: 40em;
  margin-left: 0;
  text-align: left;
}

.careers-hero__right {
  flex: 1 1 45%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  margin-top: 10px;
  position: relative;
}

.careers-hero__form-card {
  position: relative;
  background: #fff;
  border: 16px solid #282828;
  border-radius: 0;
  padding: calc(1.8rem + 0.4vw) calc(1rem + 0.2vw);
  max-width: 480px;
  width: 100%;
  z-index: 1;
}

.careers-hero__form-card:before {
  content: "";
  position: absolute;
  box-shadow: none;
  bottom: -17px;
  right: -16px;
  width: 15px;
  height: 15px;
  background-color: #ffffff;
  z-index: 2;
}

.careers-hero__form-card:after {
  content: "";
  position: absolute;
  bottom: -17px;
  right: -31px;
  width: 15px;
  height: 15px;
  background-color: #282828;
  z-index: 1;
}

.careers-hero__form-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 5px solid #222;
  background: transparent;
  z-index: 2;
}

.careers-hero__form-corner--tl {
  top: -5px;
  left: -5px;
  border-bottom: none;
  border-right: none;
}

.careers-hero__form-corner--tr {
  top: -5px;
  right: -5px;
  border-bottom: none;
  border-left: none;
}

.careers-hero__form-corner--bl {
  bottom: -5px;
  left: -5px;
  border-top: none;
  border-right: none;
}

.careers-hero__form-corner--br {
  bottom: -5px;
  right: -5px;
  border-top: none;
  border-left: none;
}

.careers-hero__form-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 15px;
  text-transform: none;
  line-height: 1.2;
}

.careers-hero__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.careers-hero__form input,
.careers-hero__form textarea,
.careers-hero__form select,
.careers-hero__form .form__input--file {
  background: #eaeaea;
  border: none;
  border-radius: 0;
  padding: 10px 14px;
  font-size: calc(0.85rem + 0.1vw);
  margin-bottom: 0;
  width: 100%;
}

.careers-hero__form textarea {
  min-height: 60px;
  resize: vertical;
}

.careers-hero__form input:focus,
.careers-hero__form textarea:focus,
.careers-hero__form select:focus,
.careers-hero__form .form__input--file:focus {
  outline: 2px solid var(--color-primary);
  background: #fff;
}

.careers-hero__form input[type="file"] {
  opacity: 0;
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* Style the label associated with the file input to look like an input field */
.careers-hero__form .form__input--file {
  display: flex; /* Use flexbox to align icon and text */
  align-items: center; /* Vertically center icon and text */
  gap: 10px; /* Space between icon and text */
  cursor: pointer;
  background-color: #eaeaea; /* Background color */
  border: none; /* Remove default border */
  border-radius: 0; /* Remove default border-radius */
  padding: 10px 14px; /* Padding */
  font-size: calc(0.85rem + 0.1vw); /* Font size */
  color: #757575; /* Text color for 'Upload Resume' */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%; /* Ensure full width */
  box-sizing: border-box; /* Include padding in the element's total width */
  text-align: left; /* Ensure text aligns to the left */
  /* Ensure the label is treated as a block element */
  display: flex; /* Already flex, confirm it behaves like a block */
  /* Try to reset any default appearance on the label itself */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.careers-hero__form .form__input--file svg {
  flex-shrink: 0; /* Prevent icon from shrinking */
  /* SVG fill color is set inline in HTML */
  vertical-align: middle; /* Ensure icon is vertically aligned */
}

/* Style the dropdown select element */
.careers-hero__form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: #eaeaea url("assets/svg/dropdown-arrow.svg") no-repeat right 14px
    center;
  background-size: 12px;
  cursor: pointer;
  padding: 10px 30px 10px 14px; /* Adjust padding for arrow and text */
  margin-bottom: 0;
  color: #757575; /* Default text color for the select (placeholder) */
  width: 100%; /* Ensure full width */
  box-sizing: border-box; /* Include padding in the element's total width */
}

.careers-hero__form select option {
  color: #232323; /* Color for actual options */
}

.careers-hero__form select option[value=""] {
  color: #757575; /* Color for the placeholder option */
}

.careers-hero__form select::-ms-expand {
  display: none;
}

.careers-hero__form select:focus {
  outline: 2px solid var(--color-primary);
  background-color: #fff;
}

.careers-hero__form-button {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: calc(0.8rem + 0.1vw);
  border-radius: 0;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  width: auto;
  align-self: flex-start;
}

.careers-hero__form-arrow {
  font-size: 1.2em;
  margin-left: 4px;
  transition: transform 0.2s ease-in-out;
  vertical-align: middle;
  display: inline-block;
}

.careers-hero__form-button:hover .careers-hero__form-arrow {
  transform: translateX(5px);
}

.careers-hero__form-container {
  position: relative;
  width: 100%;
  min-height: 350px;
}

.careers-hero__form-view {
  opacity: 1;
  transition: opacity 0.4s ease;
  width: 100%;
}

.careers-hero__success-view {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 20px 0;
}

.careers-hero__form-container--success .careers-hero__form-view {
  opacity: 0;
  visibility: hidden;
}

.careers-hero__form-container--success .careers-hero__success-view {
  opacity: 1;
  visibility: visible;
}

.careers-hero__success-title {
  font-size: calc(1.3rem + 0.2vw);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.careers-hero__success-desc {
  color: var(--color-secondary);
  font-size: calc(0.85rem + 0.1vw);
  line-height: 1.4;
}

/* Careers Form Corner Decorations */
.careers-hero__form-corner-arrow {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
  width: 46px;
  height: 46px;
  z-index: 10;
  pointer-events: none;
}

.careers-hero__form-inner-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 46px;
  z-index: 3;
  pointer-events: none;
}
/* File name display */
.form__file-name {
  font-size: 0.7rem;
  color: var(--color-primary);
  margin-top: -10px;
  margin-bottom: 10px;
  padding-left: 2px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ================= WORK WITH US SECTION ================= */

.work-with-us__container {
  width: var(--container-width);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.work-with-us__team-highlights {
  margin: 60px 0;
}

.work-with-us__highlights-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 40px 0;
  position: relative;
  display: inline-block;
}
.work-with-us__corner-svg {
  display: inline-block;
  position: absolute;
  top: 0;
  right: -20px;
  width: 15px;
  height: 15px;
}

/* Stats Table - Similar to homepage quality section */
.work-with-us__stats-table {
  width: 100%;
  margin: 0 auto;
  background-color: var(--color-secondary);
  border-radius: 0;
  overflow: hidden;
}

.work-with-us__stats-row {
  display: flex;
  width: 100%;
}

.work-with-us__stats-cell {
  flex: 1;
  padding: 2rem 1.5rem;
  text-align: left;
  position: relative;
  background-color: var(--color-secondary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.work-with-us__stats-cell:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 0;
  bottom: 20%;
  width: 1px;
  background-color: #e63946;
}

.work-with-us__stats-text {
  font-size: 1rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.4;
  margin: 0;
}

/* Expertise Section */
.expertise {
  background-color: #282828;
  padding: calc(3rem + 2vw) 0;
  color: #fff;
}

.expertise__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(2rem + 2vw);
}

.expertise__content {
  flex: 1;
}

.expertise__title {
  font-size: calc(1.8rem + 0.7vw);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0;
}

.expertise__image {
  flex: 0 0 auto;
  max-width: 30%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.expertise__svg {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Careers Gallery Section */
.careers-gallery {
  padding: 60px 0;
  background-color: #fff;
  overflow: hidden;
}

.careers-gallery__container {
  width: var(--container-width);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.careers-gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: auto;
  grid-gap: 16px;
  width: 100%;
}

.careers-gallery__item {
  background-color: #ddd;
  border-radius: 0;
  overflow: hidden;
  min-height: 240px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.careers-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.3s ease;
}

.careers-gallery__item--wide {
  grid-column: span 8;
  min-height: 280px;
}

.careers-gallery__item--narrow {
  grid-column: span 4;
  min-height: 280px;
}

.careers-gallery__item--medium {
  grid-column: span 4;
  margin-top: 16px;
  min-height: 240px;
}

.careers-gallery__vertical-stack {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.careers-gallery__item--small {
  min-height: 200px;
}

.careers-gallery__item--large {
  grid-column: span 8;
  min-height: 416px;
  margin-top: 16px;
}

.careers-gallery__item:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.careers-gallery__item:hover .careers-gallery__image {
  transform: scale(1.05);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .careers-hero__container {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: 0 var(--space-md);
  }
  .careers-hero__right,
  .careers-hero__left {
    width: 100%;
    flex: 1 1 100%;
    align-items: center;
    text-align: center;
  }
  .careers-hero__left {
    margin-bottom: 10px;
  }
  .careers-hero__form-card {
    max-width: 480px;
    margin: 0 auto;
  }
  .careers-hero__divider {
    justify-content: center;
  }
}

@media (max-width: 992px) {
  .careers-gallery__grid {
    grid-gap: 12px;
  }

  .careers-gallery__item {
    min-height: 200px;
  }

  .careers-gallery__vertical-stack {
    gap: 12px;
    margin-top: 12px;
  }

  .careers-gallery__item--medium {
    margin-top: 12px;
    min-height: 220px;
  }

  .careers-gallery__item--large {
    margin-top: 12px;
    min-height: 340px;
  }

  .careers-gallery__item--small {
    min-height: 160px;
  }

  .careers-gallery__item--wide,
  .careers-gallery__item--narrow {
    min-height: 240px;
  }

  .careers-gallery__item--wide {
    grid-column: span 7;
  }

  .careers-gallery__item--narrow {
    grid-column: span 5;
  }
}

/* For larger screens */
@media (min-width: 1440px) {
  .careers-gallery__grid {
    grid-gap: 20px;
  }

  .careers-gallery__item {
    min-height: 260px;
  }

  .careers-gallery__vertical-stack {
    gap: 20px;
    margin-top: 20px;
  }

  .careers-gallery__item--medium {
    margin-top: 20px;
    min-height: 300px;
  }

  .careers-gallery__item--large {
    margin-top: 20px;
    min-height: 480px;
  }

  .careers-gallery__item--small {
    min-height: 230px;
  }

  .careers-gallery__item--wide,
  .careers-gallery__item--narrow {
    min-height: 320px;
  }
}

@media (min-width: 1920px) {
  .careers-gallery {
    padding: 80px 0;
  }

  .careers-gallery__grid {
    grid-gap: 24px;
  }

  .careers-gallery__item {
    min-height: 300px;
  }

  .careers-gallery__vertical-stack {
    gap: 24px;
    margin-top: 24px;
  }

  .careers-gallery__item--medium {
    margin-top: 24px;
    min-height: 340px;
  }

  .careers-gallery__item--large {
    margin-top: 24px;
    min-height: 550px;
  }

  .careers-gallery__item--small {
    min-height: 260px;
  }

  .careers-gallery__item--wide,
  .careers-gallery__item--narrow {
    min-height: 360px;
  }
}

/* Media queries for expertise section */
@media (max-width: 992px) {
  .expertise__container {
    flex-direction: column;
    gap: 2rem;
  }

  .expertise__image {
    max-width: 70%;
    order: -1;
  }

  .expertise__title {
    font-size: calc(1.5rem + 0.5vw);
    text-align: center;
  }
}

@media (max-width: 576px) {
  .expertise {
    padding: calc(2rem + 1vw) 0;
  }

  .expertise__image {
    max-width: 90%;
  }

  .expertise__title {
    font-size: calc(1.3rem + 0.3vw);
  }
}

@media (min-width: 1600px) {
  .expertise__title {
    font-size: calc(2rem + 0.5vw);
  }

  .expertise__image {
    max-width: 25%;
  }
}

@media (min-width: 2560px) {
  .expertise {
    padding: calc(5rem + 2vw) 0;
  }

  .expertise__title {
    font-size: calc(2.5rem + 1vw);
  }
}
