.section-careers-1 {
  background-image: url('images/bg-careers.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  h1 {
    width: 100%;
    text-align: center;
    line-height: 1;
    margin-top: clamp(200px, calc(10vw + 200px), 800px);
    font-family: 'Dela Gothic One';
    font-size: 48px;
    color: white;
  }
}
.child.section-careers-2,
.child.section-careers-3,
.child.section-careers-4 {
  min-height: auto;
  height: fit-content;
}
.section-careers-2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  h2 {
    font-weight: 700;
    text-align: center;
  }
  p {
    max-width: 80%;
  }
  .container-benefit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    column-gap: 16px;
    row-gap: 8px;
    margin-top: 6%;
    .item-benefit {
      display: grid;
      grid-template-columns: subgrid;
      grid-template-rows: subgrid;
      grid-column: span 1;
      grid-row: span 3;
      background-color: #212121;
      padding: 24px;
      img {
        width: 56px;
        height: 56px;
        margin: auto;
      }
      h2 {
        font-family: 'Saira';
        font-weight: 500;
        font-size: 24px;
        color: white;
        line-height: 1em;
      }
      p {
        font-family: 'Saira';
        font-weight: 300;
        font-size: 20px;
        color: white;
        opacity: 0.65;
        max-width: 100%;
      }
    }
  }
}

.section-careers-3 {
  display: flex;
  flex-direction: column;
  margin-top: 10%;
  gap: 16px;
  .item-position {
    padding: 24px;
    background-color: #212121;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    span {
      width: 80%;

      p {
        font-family: Saira;
        font-weight: 500;
        font-size: 24px;
        color: white;
      }
      .info-position {
        display: flex;
        flex-wrap: wrap;
        gap: 10%;
        .item-info {
          display: flex;
          gap: 12px;
          align-items: center;
          img {
            width: 24px;
            height: 24px;
          }
          P {
            font-family: 'Saira';
            font-weight: 300;
            font-size: 1.2em;
            color: white;
            opacity: 0.65;
          }
        }
      }
    }
    a {
      margin-left: auto;
      width: 150px;
    }
    .btn {
      margin-left: auto;
      width: 150px;
      &:hover {
        background-color: white;
        color: black;
      }
      &:hover::before {
        background-color: black;
      }
    }
  }
}
.child.section-careers-4 {
  display: flex;
  flex-direction: column;
  margin: 10% 0;
  .text-content {
    margin-bottom: 8%;
  }
  .container-team {
    display: flex;
    flex-direction: column;
    gap: 100px;
    .contaniner-role {
      display: flex;
      flex-direction: column;
      flex: 1 1 calc(50% - 100px);
      .role {
        font-weight: 600;
        font-size: 2em;
        line-height: 1em;
        color: white;
        border-left: 4px solid white;
        padding: 0.5em;
        opacity: 0.4;
        cursor: pointer;
        &.active {
          opacity: 1;
        }
      }
    }
    .info-team {
      display: none;
      flex-wrap: wrap;
      gap: 16px;
      flex: 1 1 calc(50% - 100px);

      .wrap-member {
        width: calc((100% - (3 * 16px)) / 4);
        position: relative;

        img {
          width: 100%;
          height: 300px;
          object-fit: cover;
        }

        .info-member {
          background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, #000000 100%);
          position: absolute;
          left: 0;
          top: 0;
          right: 0;
          width: 100%;
          height: 100%;
          display: none;
          flex-direction: column;
          gap: 5px;
          justify-content: end;
          padding: 12px;

          h2 {
            font-family: 'Saira';
            font-weight: 500;
            font-size: 1.4em;
            color: white;
            margin: 0;
          }

          p {
            font-family: Saira;
            font-weight: 300;
            font-size: 1.2em;
            color: white;
          }
        }

        &:hover .info-member {
          display: flex;
        }

        &.empty {
          visibility: hidden;
        }
      }
    }
  }
}

@media screen and (max-width: 1024px) {
  .container-team {
    flex-direction: column;
    gap: 60px;
  }
  .section-careers-2 {
    p {
      max-width: 100%;
    }
  }

  .child.section-careers-4 {
    .container-team {
      flex-direction: column;
      gap: 68px;
      .contaniner-role {
        width: 100%;
        .role {
          padding: 20px;
        }
      }
      .info-team {
        display: none;
        flex-wrap: wrap;
        gap: 32px;
        flex: 1 1 calc(50% - 100px);

        .wrap-member {
          width: calc(50% - 16px);
          position: relative;

          img {
            width: 100%;
            height: 300px;
            object-fit: cover;
          }

          .info-member {
            background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, #000000 100%);
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            width: 100%;
            height: 100%;
            display: none;
            flex-direction: column;
            gap: 5px;
            justify-content: end;
            padding: 12px;

            h2 {
              font-family: 'Saira';
              font-weight: 500;
              font-size: 16px;
              color: white;
              margin: 0;
            }

            p {
              font-family: Saira;
              font-weight: 300;
              font-size: 12px;
              color: white;
            }
          }

          &.empty {
            visibility: hidden;
          }
        }
      }
    }
  }
}

@media screen and (max-width: 650px) {
  .child.section-careers-4 {
    .container-team {
      flex-direction: column;
      gap: 68px;
      .contaniner-role {
        width: 100%;
        .role {
          font-size: 1.5em;
        }
      }
      .info-team {
        display: none;
        flex-wrap: wrap;
        gap: 32px;
        flex: 1 1 calc(100% - 100px);

        .wrap-member {
          width: 100%;
          position: relative;

          img {
            width: 100%;
            height: 300px;
            object-fit: cover;
          }
        }
      }
    }
  }
}
