&:root {
  --color-blue: #111C35;
  --color-red: #BD2F2C;

  --font-degular: 'degular', sans-serif;
  --font-lintel: 'lintel', sans-serif;
}

html, body {
  scroll-behavior: smooth;
}

.careers {
  color: #010101;

  .careers__hero {
    display: grid;
    grid-template-columns: 46% 54%;

    .--content {
      background: var(--color-blue);
      display: flex;
      color: #fff;
      padding: 1.5rem;
      place-content: center;
      
      .careers__hero-content {
        align-items: center;
        display: flex;
        flex-direction: column;
        margin-inline: auto;
        justify-content: center;
        padding-block: 2rem;
        padding-inline: 1.5rem;
        width: min(612px, 100%);

        @media screen and (min-width: 1024px) {
          padding-inline: 3rem;
        }

        @media screen and (min-width: 1200px) {
          padding-block: 1rem;
          padding-inline: 4rem;
        }

        & > * { width: 100%; }

        h1 {
          font-family: var(--font-lintel);
          font-size: 40px;
          line-height: 1.1;
          margin-block-end: 1.5rem;

          @media screen and (min-width: 1024px) { font-size: 48px; }
          @media screen and (min-width: 1200px) { font-size: 52px; }
          @media screen and (min-width: 1300px) { font-size: 58px; }
          @media screen and (min-width: 1400px) { font-size: 64px; }
        }

        P {
          font-family: sans-serif;
          font-size: 19px;
          line-height: 1.35;
          margin-block: 0 2rem;
          text-wrap: pretty;
        }
      }

      .careers__hero-actions {
        align-items: center;
        display: flex;
        gap: 2rem;

        button {
          align-items: center;
          background: var(--color-red);
          border: 0;
          color: #fff;
          cursor: pointer;
          display: inline-flex;
          font-family: var(--font-degular);
          font-size: 18px;
          font-weight: 400;
          height: 42px;
          line-height: 1;
          padding: 0 2.5rem;
          white-space: nowrap;
        }
      }
    }

    .careers__hero-video-grid {
      display: flex;
      flex-direction: column;
      
      & > * {
        width: 100%;
      };

      .careers__hero-video-grid-row.--one {
        display: grid;
        grid-template-columns: 1fr;
      }

      .careers__hero-video-grid-row.--four {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
      }

      a {
        display: inline-flex;
        position: relative;
        overflow: hidden;

        & > div,
        &:after {
          background: rgba(29, 38, 69, .65);
          content: '';
          height: 100%;
          left: 0;
          opacity: 0;
          position: absolute;
          top: 0;
          transition: opacity .3s ease;
          width: 100%;
          z-index: 1;
        }

        &:after {
          border-bottom: 8px solid var(--color-red);
          translate: 0 -8px !important;
        }

        & > div {
          background: 0;
          height: auto;
          left: 50%;
          top: 50%;
          translate: -50% -50%;
          width: auto;
          z-index: 3;
        }

        span {
          bottom: 1rem;
          color: #fff;
          font-family: var(--font-degular);
          font-size: 22px;
          font-style: italic;;
          left: 1rem;
          opacity: 0;
          position: absolute;
          transition: all .3s ease;
          translate: 0 1.5rem;
          z-index: 2;
        }

        &.--has-hover,
        &:hover {
          &:after,
          span {
            opacity: 1;
            translate: 0 0;
          }

          & > div {
            opacity: 1;
          }
        }
      }
    }
  }

  .careers__intro {
    background: #EDEDED;
    padding: 4rem 1.5rem;

    @media screen and (min-width:1200px) {
      padding-inline: 6rem;
    }

    p {
      font-family: var(--font-degular);
      font-size: 28px;
      font-weight: 500;
      line-height: 1.05;
      margin-inline: auto;
      margin-block: 0;
      text-align: center;
      text-wrap: pretty;
      width: min(100%, 1100px);

      @media screen and (min-width:768px) { font-size:32px; }
      @media screen and (min-width:1024px) { font-size:36px; }
      @media screen and (min-width:1200px) { font-size:38px; }
      @media screen and (min-width:1320px) { font-size:40px; }
      @media screen and (min-width:1400px) { font-size:42px; }
      @media screen and (min-width:1460px) { font-size:44px; }
      @media screen and (min-width:1500px) { font-size:46px; }
      @media screen and (min-width:1580px) { font-size:48px; }
      @media screen and (min-width:1660px) { font-size:50px; }
     }
  }

  .careers__open-roles {
    padding: 4rem 1.5rem;

    @media screen and (min-width:1200px) {
      padding-inline: 6rem;
    }

    .careers__open-roles-container {
      margin-inline: auto;
      width: min(100%, 1630px);
    }

    h2 {
      color: #bc2f2c;
      font-family: 'lintel';
      font-size: 42px;
      line-height: 1.1;
      margin: 0 0 1.5rem;
      text-transform: uppercase;
    
      @media screen and (min-width:1500px) { font-size: 48px; }
      @media screen and (min-width:1700px) { font-size: 52px; }
    }
    
    .careers__open-roles-grid {
      column-gap: 2rem;
      display: grid;
      grid-template-columns: 1fr 77.67%;
    }

    .careers__open-roles-aside {
      align-items: flex-start;
      display: flex;
      flex-direction: column;
      gap: 1.25rem;

      button {
        align-items: center;
        background: 0;
        border: 0;
        display: flex;
        color: inherit;
        cursor: pointer;
        font-family: var(--font-degular);
        font-size: 22px;
        font-weight: 500;
        outline: 0;
        overflow: hidden;
        padding: 0;
        position: relative;

        &:before {
          background: var(--color-red);
          content: '';
          display: inline-block;
          height: 2px;
          padding-inline: 0;
          position: relative;
          transition: width .125s ease;
          translate: -.5rem 0;
          width: 0;
        }

        &.--is-selected,
        &:hover {
          color: var(--color-red);

          &:before {
            width: 42px;
          }
        }
      }
    }

    .careers__open-roles-content {
      color: #000;

      .c-careers-opts-cat__post {
        display: none;

        &.--is-visible { display: block; }

        h4 {
          color: #000;
          font-family: var(--font-degular);
          font-size: 40px;
          font-weight: 600;
          margin-block: 0 1.5rem;
          text-transform: none;

          &:not(:first-child) {
            margin-block-start: 2rem;
          }
        }

        p {
          line-height: 1.25;
        }

        p, li {
          color: #000;
          font-family: var(--font-degular);
          font-size: 22px;
          font-weight: 500;
        }

        p, ul, ol {
          margin-block: 0;

          &:not(:last-child) {
            margin-block-end: 1.25rem;
          }
        }

        li {
          &:not(:last-child) {
            margin-block-end: 0.5rem;
          }
        }

        ul {
          list-style: none;
          position: relative;

          li {
            padding-inline-start: 1rem;
            position: relative;
          
            &:before {
              background: #000;
              border-radius: 50%;
              content: '';
              height: 6px;
              left: 0;
              position: absolute;
              top: 9px;
              width: 6px;
            }
          }
        }

        .c-careers-opts-cat__apply {
          padding-block-start: 2rem;
        }

        .c-careers-opts-cat__apply-btn {
          align-items: center;
          background: var(--color-red);
          border: 0;
          color: #fff;
          cursor: pointer;
          display: inline-flex;
          font-family: var(--font-degular);
          font-size: 22px;
          font-weight: 500;
          height: 48px;
          line-height: 1;
          padding: 0 4rem;
          text-transform: none;
        }
      }
    }
  }

  .careers__break {
    img {
      display: block;
      margin: 0;
      width: 100%;
    }
  }

  .careers__hear {
    padding: 7rem 1.5rem;
    position: relative;

    .careers__hear-grid {
      height: 100%;
      isolation: isolate;
      left: 0;
      position: absolute;
      top: 0;
      width: 100%;
      z-index: 0;
    }

    .careers__hear-grid.bt {
      border-top: 1px solid #707070;
    }

    .careers__hear-grid.bb {
      border-bottom: 1px solid #707070;
    }

    .careers__hear-grid-row {
      border-bottom: 1px solid #707070;
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      /* height: 14.9vh;
      max-height: 160px;; */
      height: 161px;

      & > div {
        &:not(:last-child) {
          border-right: 1px solid #707070;
        }
      }
    }

    .careers__hear-content {
      margin-inline: auto;
      position: relative;
      width: min(1488px, 100%);
      z-index: 1;
    }

    h3 {
      align-items: center;
      background: #fff;
      color: #bc2f2c;
      display: inline-flex;
      font-family: 'lintel';
      font-size: 42px;
      gap: 1rem;
      justify-content: center;
      line-height: 1;
      margin-block: 0 117px;
      margin-inline: auto;
      padding: 1rem 2rem;
      position: relative;
      left: 50%;
      translate: -50% 0;

      @media screen and (min-width:1500px) { font-size: 48px; }
      @media screen and (min-width:1700px) { font-size: 52px; }

      span {
        color: inherit;
        line-height: 1;

        &:last-child { color: var(--color-red); }
      }
    }

    .careers__hear-carousel {
      overflow: hidden;
      position: relative;
      width: 100%;
    }

    .careers__hear-carousel-items {
      align-items: flex-start;
      display: flex;
      flex-wrap: nowrap;
      transition: translate .6s ease;
      translate: 1.5rem 0;
      width: 9999rem;
    }

    .careers__hear-carousel-item {
      color: inherit;
      display: inline-block;
      max-width: 480px;
      position: relative;
      text-align: center;
      text-decoration: none;
      width: 25vw;

      @media screen and (min-width:1488px) {
        width: 480px;
      }

      &.--has-hover,
      &:hover {
        .careers__hear-carousel-item-overlay {
          opacity: 1;
        }    
      }
    }

    .careers__hear-carousel-item-overlay {
      align-items: center;
      background: rgba(29, 38, 69, .65);
      color: #fff;
      display: flex;
      flex-direction: column;
      font-family: var(--font-degular);
      font-size: 26px;
      font-weight: 500;
      gap: .5rem;
      height: 100%;
      justify-content: center;
      left: 0;
      opacity: 0;
      padding: 1rem;
      position: absolute;
      top: 0;
      transition: opacity .4s ease;
      width: 100%;
      z-index: 20;

      span {
        font-size: 16px;
        font-style: italic;
      }
    }

    .careers__hear-carousel-item-img {
      margin-block: 0 1px;
      margin-inline: auto;
      position: relative;
      width: min(100%, 322px);

      img { display: inline-block; margin: 0; } 
    }

    .careers__hear-carousel-item-content {
      background: #fff;
      font-family: var(--font-degular);
      font-size: 22px;
      font-weight: 500;
      margin-inline: auto;
      padding: 1rem;
      width: min(100%, 340px);
      
      span { display: block; }
      span:first-child { color: var(--color-red); }
    }

    .careers__hear-carousel-nav {
      background: 0;
      border: 0;
      cursor: pointer;
      left: 0;
      outline: 0;
      padding: 0;
      position: absolute;
      top: calc(50% - 16px);
      translate: 0 -50%;
      z-index: 10;

      &.--prev {
        
      }

      &.--next {
        left: auto;
        right: 0;
      }

      &:disabled {
        opacity: .4;
      }
    }
  }

  .careers__expect {
    padding: 4rem 1.5rem;

    @media screen and (min-width:1200px) {
      padding-inline: 6rem;
    }

    .careers__expect-container {
      align-items: center;
      gap: 2rem;
      display: grid;
      grid-template-columns: 47% 1fr;
      margin-inline: auto;
      width: min(100%, 1697px);
    }

    .--content {
      padding-block: 1.5em;
      padding-inline: 4rem 0;

      .careers__expect-copy {
        width: min(100%, 700px);
      }

      h4 {
        color: var(--color-red);
        font-family: var(--font-degular);
        font-size: 60px;
        font-weight: 500;
        line-height: 1.1;
        margin-block: 0 2rem;
        margin-inline: 0;
        text-transform: uppercase;
      }

      p {
        font-family: var(--font-degular);
        font-size: 19px;
        font-weight: 500;
        line-height: 1.35;
        margin-block: 0 4rem;
        margin-inline: auto;
        line-height: 1.25;
        text-wrap: pretty;
        width: min(100%, 1000px);

        @media screen and (min-width:1400px) { font-size: 20px; }
        @media screen and (min-width:1500px) { font-size: 21px; }
        @media screen and (min-width:1700px) { font-size: 23px; }
      }

      .careers__expect-cta {
        align-items: center;
        background: var(--color-red);
        border: 0;
        color: #fff;
        cursor: pointer;
        display: inline-flex;
        font-family: var(--font-degular);
        font-size: 22px;
        font-weight: 500;
        height: 48px;
        line-height: 1;
        padding: 0 1.5rem;
        text-decoration: none;
      }
    }
  }

  .careers__recruiting {
    padding: 4rem 1.5rem;

    @media screen and (min-width:1200px) {
      padding-inline: 6rem;
    }

    .careers__recruiting-container {
      margin-inline: auto;
      width: min(100%, 1492px);

      h5 {
        color: var(--color-red);
        font-family: var(--font-degular);
        font-size: 60px;
        font-weight: 500;
        line-height: 1.1;
        margin-block: 0 2rem;
        margin-inline: 0;
        text-transform: uppercase;
      }
    
      p {
        font-family: var(--font-degular);
        font-size: 22px;
        font-weight: 500;
        line-height: 1.25;
        margin-block: 0 3rem;
      }
    }

    .careers__recruiting-events {
      column-gap: 3rem;
      display: grid;
      grid-template-columns: 35.5% 1fr;

      h5 {
        color: #000;
        font-family: var(--font-degular);
        font-size: 40px;
        font-weight: 700;
      }
    }

    .careers__recruiting-events-past {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      list-style: none;
      margin: 0;
      padding: 0;

      li {
        display: flex;
        flex-direction: column;
        gap: .25rem;

        span {
          font-family: var(--font-degular);
          line-height: 1.1;
          
          &:first-child {
            font-size: 20px;
            font-weight: 700;
          }

          &:last-child {
            font-size: 16px;
          }
        }
      }
    }

    .careers__recruiting-events-upcoming {
      display: flex;
      gap: 2rem;
      list-style: none;
      margin: 0;
      overflow: hidden;
      overflow-x: auto;
      padding: 0 0 1rem;

      li {
        display: inline-flex;
        flex-direction: column;
        flex-shrink: 0;
        width: 436px;

        img {
          display: block;
          margin: 0 0 1rem;
          width: 100%;
        }

        span:nth-child(2) {
          color: var(--color-red);
          font-family: var(--font-degular);
          font-size: 20px;
          font-weight: 700;
          line-height: 1.1;
          margin-block: 0 .25rem;
        }

        span:nth-child(3) {
          font-family: var(--font-degular);
          font-size: 16px;
        }

        span:last-child {
          font-family: var(--font-degular);
          font-weight: bold;
        }
      }
    }
  }
}