/* ============================================================
  SUB-NAV.CSS
============================================================ */

/* NAV WRAPPER */

.page-subnav {
  position: sticky;
  top: 8rem;
  z-index: 3;
  height: 5rem;
  background: var(--color-white);
  border-bottom: 1px solid var(--black-rgba5);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.page-subnav::-webkit-scrollbar {
  display: none;
}

/* INNER CONTAINER */

.page-subnav .container {
  display: flex;
  align-items: center;
  height: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.page-subnav .container::-webkit-scrollbar {
  display: none;
}

/* NAV ITEM */

.page-subnav-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2.8rem;
  height: 100%;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-black);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: .2rem solid transparent;
  margin-bottom: -1px;
  transition: color .3s ease, border-color .3s ease;
  cursor: pointer;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
  line-height: 1;
}

.page-subnav-item.active {
  color: var(--color-red);
  border-bottom-color: var(--color-red);
}

@media (hover: hover) {
  .page-subnav-item:hover {
    color: var(--color-red);
  }
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width:1024px){

  .page-subnav{
    top:6rem;
  
  }

}

@media (max-width:768px){

  .page-subnav .container{
    justify-content:flex-start;
  }

  .page-subnav-item{
    padding:0 1.6rem;
    font-size:1.4rem;
  }

}

@media (max-width:480px){

  .page-subnav-item{
    padding:0 1.2rem;
  }

}