.modal-backdrop{
  --bs-backdrop-opacity: 0.50;
}

#siteLayout{
  --mdc-primary: #0032A0;
  --mdc-primary-rgb: 0, 50, 160;
  --mdc-secondary: #FFB81C;
  --mdc-secondary-rgb: 255, 184, 28;
  --careers-light-blue: #CDE9F8;
  --careers-light-blue-rgb: 205, 233, 248;
  
  --bs-border-radius: .75rem;

  font-weight: 400;
  font-style: normal;
  font-size: 1.2rem;
  line-height: 1.5;
}


#siteLayout h1,
#siteLayout h2,
#siteLayout h3,
#siteLayout h4 {
  font-family: Futura, system-ui, -apple-system, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
}

#siteLayout h1{
  font-size: 4rem;
}
#siteLayout h2{
  font-size: 3.25rem;
  & span{
    display: inline-block;
    background-color: var(--mdc-secondary);
  }
}
#siteLayout h3{
  font-size: 2rem;
}

@media(max-width: 767px){
  #siteLayout h2, #siteLayout .h2{
    font-size: 2rem;
  }
}

#siteLayout .btn{
  font-family: Futura, system-ui, -apple-system, sans-serif;
  font-weight: bold;
  padding: 1rem 2rem;
  /* --bs-btn-border-radius: .5rem; */
  &.btn-primary{
    vertical-align: middle;
    &:hover{
      background: var(--mdc-secondary) !important;
      border-color: var(--mdc-secondary) !important;
      color: #000 !important;
      & i{
        color: #000;
      }
    }
    & i{
      display: inline-block;
      background-color: #fff;
      border-radius: 50%;
      font-size: 0.70rem;
      padding: .15rem;
      margin-top: -0.25rem;
      vertical-align: middle;
      color: var(--mdc-primary);
    }
  }
  &.btn-outline-primary{
    background: #fff;
  }
}

#siteLayout .card{
  background-color: rgba(var(--career-card-bg,var(--careers-light-blue-rgb)), .15);

}

#siteLayout section{
  margin-top: 5rem;
  padding-top: 5rem;
}
@media(max-width: 991px){
  #siteLayout section{
    padding-top: 0;
  }
}

#siteLayout .alt-bg{
  background-color: var(--careers-light-blue);
}

#siteLayout header{
  --hero-bottom-padding: 2.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 684px;
  background: no-repeat url('../img/careers/header.jpg');
  background-size: cover;
  background-position: center 87%;
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;

  &::before{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.5) 38%,
      rgba(0, 0, 0, 0.2) 62%,
      transparent 82%
    );
    pointer-events: none;
  }

  & .container{
    position: relative;
    z-index: 1;
    flex: 1;
    height: 100%;
  }

  & h1{
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    margin: 0 .75rem;
    font-size: 4rem;
    line-height: 1.1;
  }

  & .btns{
    position: absolute;
    bottom: var(--hero-bottom-padding);
    left: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0 .75rem;
  }
}

@media (max-width: 767px) {
  #siteLayout header{
    height: clamp(560px, 130vw, 860px);
    background-position: 63% center;

    &::before{
      background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.35) 40%,
        rgba(0, 0, 0, 0.45) 100%
      );
    }

    & h1{
      top: 0;
      transform: none;
      padding-top: 3rem;
      font-size: clamp(2.5rem, 9vw, 3rem);
    }

    & .btns{
      flex-direction: column;

      & .btn{
        width: 100%;
        text-align: center;
      }
    }
  }
}
#siteLayout .navbar{
  & .navbar-toggler{
    border: none;
  }
  & .navbar-toggler-icon{
    background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><path stroke='rgba%280, 50, 160, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/></svg>");
  }
  & .nav-item:hover a{
    color: var(--mdc-primary);
  }
}
@media(min-width: 1200px){
  #siteLayout .navbar-collapse{
    flex: 0 0 auto;
  }
}


/* The slider's prev/next arrows are pushed outside the centered container
   (right/left: -4rem). At widths just past a Bootstrap breakpoint the side
   margins are tiny, so the arrows poke past the viewport and create stray
   horizontal scroll. Clip the full-bleed section to contain that overflow.
   `clip` (vs `hidden`) avoids making a scroll container or breaking sticky. */
#siteLayout #history{
  overflow-x: clip;
}

#siteLayout .slider{
  & .carousel-indicators{
    margin-bottom: 0;
    bottom: -3rem;
    & button{
      background-color: #000;
    }
  }
  & .carousel-control-next, & .carousel-control-prev{
    width: 5%;
    & span{
      border: 2px solid #000;
      padding: 2.5rem;
      background-size: 2rem;
      border-radius: 50%;
    }
  }
  & .carousel-control-next{
    right: -4rem;
  }
  & .carousel-control-prev{
    left: -4rem;
  }
  & .carousel-control-next-icon{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  }
  & .carousel-control-prev-icon{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
  }
}

@media (max-width: 991px){
  #siteLayout .slider{
    & .carousel-indicators{
      bottom: -2rem;
    }
    & .carousel-control-next, & .carousel-control-prev{
      top: unset;
      height: auto;
      bottom: -3rem;
      & span{
        padding: 1.5rem;
      }
    }
    & .carousel-control-next{
      right: 1rem;
    }
    & .carousel-control-prev{
      left: 1rem;
    }
    & p{
      font-size: 1rem;
      line-height: 1.25rem;
    }
  }
}

/* ===== History slider v2 (peeking filmstrip) =====
   Reuses the `.slider` indicator/control styling above; this block adds the
   filmstrip behavior. Driven by the script at the bottom of default.aspx. */
#siteLayout .hs2{
  --hs2-dur: .5s;          /* transition duration */
  --hs2-item-w: 70%;       /* active image width as % of the media column */
  --hs2-gap: 5px;          /* spacing between filmstrip images */
  --hs2-peek-scale: .8;    /* neighbor image scale */
  --hs2-peek-opacity: .35; /* neighbor image opacity */
  --hs2-mobile-item-w: 80%;/* active image width on mobile (% of media column) */

  & .hs2-carousel{
    position: relative;
  }

  /* Media filmstrip (horizontal): active centered, neighbors peek + dim. */
  & .hs2-media{
    position: relative;
    overflow: hidden;
    &:before, &:after{
      content: '';
      display: inline-block;
      height: 100%;
      width: 5%;
      position: absolute;
      z-index: 100;
    }
    &:before{
      left: 0;
      background: linear-gradient(90deg, var(--careers-light-blue), transparent);
    }
    &:after{
      right: 0;
      background: linear-gradient(270deg, var(--careers-light-blue), transparent);
    }
  }
  & .hs2-media-item{
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--hs2-item-w);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: transform var(--hs2-dur) ease-in-out, opacity var(--hs2-dur) ease-in-out;
    will-change: transform, opacity;
    &.is-active{
      opacity: 1;
    }
    & img{
      display: block;
      width: 100%;
      height: auto;
    }
  }

  /* Captions (vertical): active centered, neighbors above/below. */
  & .hs2-captions{
    position: relative;
    overflow: hidden;
  }
  & .hs2-caption{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: transform var(--hs2-dur) ease-in-out, opacity var(--hs2-dur) ease-in-out;
    will-change: transform, opacity;
    &.is-active{
      opacity: 1;
    }
  }
}

@media (prefers-reduced-motion: reduce){
  #siteLayout .hs2 .hs2-media-item,
  #siteLayout .hs2 .hs2-caption{
    transition: none;
  }
}

/* Mobile (< lg): stacked columns + simple cross-fade, no peek. Anchor items to
   the top-left so the script's `transform: none` (the fade) sits correctly. */
@media (max-width: 991px){
  #siteLayout #history{
    padding-top: 3rem;
  }
  #siteLayout .hs2 .hs2-media-item{
    width: var(--hs2-mobile-item-w);
    top: 0;
    left: 0;
    right: 0;
    margin-inline: auto;
  }
  #siteLayout .hs2 .hs2-caption{
    position: absolute;
    text-align: center;
  }
}

#siteLayout #about{

}

#siteLayout #values{
  & i.fa{
    line-height: 1.2;
  }
}

#siteLayout #benefits{
  & .cards{
    & .icon-wrap{
      background-color: rgb(var(--career-card-bg, var(--careers-light-blue-rgb)));
      text-align: center;
      border-radius: 50%;
      width: 4rem;
      height: 4rem;
      margin: 1rem 0;
      & i{
        line-height: 4rem;
        font-size: 1.5rem;
        color: #fff
      }
    }
  }
}

#siteLayout #history{

}

#siteLayout #video{

}

/* Both portraits are ~0.906 as tall as they are wide. The card tracks that
   ratio so the space above each figure stays the same as the viewport changes. */
#siteLayout #positions{
  & .positions-intro{
    container-type: inline-size;
    overflow: visible;
    & .position-relative{
      height: auto;
      min-height: calc((50cqw - 1.5rem) * 0.906 - 4.75rem);
      padding: 0;
      & img{
        bottom: -1px;
        right: 1.5rem;
        width: calc(100% - 1.5rem);
        max-width: none;
        height: auto;
      }
    }
  }
  & .positions-student{
    container-type: inline-size;
    overflow: hidden;
    & .position-relative{
      height: auto;
      min-height: calc(50cqw * 0.906 + 0.5rem);
      padding: 0;
      & img{
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: none;
        height: auto;
      }
    }
  }
}

/* Student card width: 75% by default, full width from lg through xl and on small phones. */
@media (min-width:992px) and (max-width:1399px) {
  #siteLayout #positions .positions-student{
    width: 100% !important;
  }
}

@media (max-width:991.98px){
  #siteLayout #positions .positions-intro{
    overflow: hidden;
    & .position-relative{
      min-height: 0;
      height: auto;
      & img{
        position: static !important;
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        right: auto;
        bottom: auto;
      }
    }
  }
  #siteLayout #positions .positions-student .position-relative{
    min-height: calc(100cqw * 0.906 + 0.5rem);
  }
}

@media(max-width:767px){
  #siteLayout #positions .positions-student{
    width: 100% !important;
  }
}

#siteLayout #locations{
  & .campuses{
    & li{
      cursor: pointer;
      & a:hover{
        background-color: var(--mdc-primary);
        color: #fff;
      }
      &.is-active a{
        background-color: var(--mdc-primary);
        color: #fff;
      }
    }
    & small{
      font-size: 0.85rem;/
    }
  }
  & .locations-map{
    aspect-ratio: 10 / 11;
    & span{
      cursor: pointer;
      position: absolute;
      &#pin_hialeah {
        top: 30.5%;
        left: 30.5%;
      }
      &#pin_homestead {
        top: 87%;
        left: 8.5%;
      }
      &#pin_kendall {
        top: 59%;
        left: 23%;
      }
      &#pin_medical {
        top: 40.25%;
        left: 46.5%;
      }
      &#pin_north {
        top: 38.5%;
        left: 41.5%;
      }
      &#pin_padron {
        top: 44.5%;
        left: 43%;
      }
      &#pin_west {
        top: 40%;
        left: 21%;
      }
      &#pin_wolfson {
        top: 43%;
        left: 49.5%;
      }
      & img{
        transition: all 150ms ease-in-out;
      }
      &:hover img,
      &.is-active img{
        filter: drop-shadow(2px 4px 6px rgba(0,0,0,.5));
        transform: translateY(-3px);
      }
    }
  }
}

#siteLayout #join{
  background: url("/jobs/img/careers/apply.png") no-repeat center bottom;
  background-size: 1560px;
  min-height: 480px;
}
@media (max-width:991px){
  #siteLayout #join{
    min-height: auto;
    background: none;
  }
}