/* MARK: NAV MENU
/*    ------------NAV MENU----------- */
body.lock-scroll {
  overflow: hidden;
  height: 100vh;
} 

#mainNavigationMenu button,
#mainNavigationMenu a {
  text-decoration: none;
  color: darkgray;
  font-family: "quanReg";
  font-size: 1.375rem;
  transition: font-size ease-in-out 0.3s;
}

#mainNavigationMenu button:focus-visible,
#mainNavigationMenu .topBtnLink:focus-visible {
   outline: 2px solid gray;
}

#mainNavigationMenu a:hover {
  text-decoration: none;
}


#mainNavigationMenu button:hover,
#mainNavigationMenu .topBtnLink:hover {
  text-decoration: underline solid #b80808 2px;
  color: #b80808;
  color: white;
  font-family: "quanReg";
  font-size: 1.5rem; 
  text-underline-offset: 0.625rem;
}

#mainNavigationMenu hr {
  opacity: 0;
}

#navCon {
    position: -webkit-sticky; 
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.nav-menu {
  background: radial-gradient(
    ellipse at center,
    rgba(44, 42, 42, 1) 50%,
    black 100%
  );
  padding:  0.625rem 0.625rem 0.625rem 0;
  color: wheat;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  transition: all 0.4s ease-in-out;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

/* MARK: SEARCH BAR
/**  ///  ===  SEARCH BAR  ===  ///  */
.searchBarCon {
  width: fit-content;
  height: fit-content;
  position: relative;
  display: flex;
  align-items: center;
  left: 0;
  top: 0;
  background: transparent;
  box-shadow: 0 0 3em rgba(0, 0, 0, 0.15);
  padding: 0;
  margin: 0.125rem 0.5rem 0 0;
}

.searchBarOD {
  position: relative;
  display: flex;
  top: 0;
  font-size: 1.4rem;
  background: #222222c4;
  border: 2px solid darkred;
  border-radius: 6.25rem;
  overflow: hidden;
  width: 2.188rem;
  height: 2.188rem;
  transition: width 450ms cubic-bezier(0.18, 0.89, 0.32, 1.28);
  color: transparent;
  margin: 0 0 0 0;
  background: url(/images/searchG\ WebP.webp) no-repeat center center;
}

label.screen-read-only {
  border: 0;
  width: 100%;
}

.searchBarCon .searchBarOD label {
  visibility: hidden;
  width: 0;
}

.search-bar__input {
  flex: 1; 
  border: 0;
  background: transparent;
  outline: 0;
  padding: 0.3125rem 0.625rem;
  color: black;
  opacity: 0;
  transition: opacity 0.3s;
  width: 100%;
}


.searchBar__submit {
  width: 2.1875rem;
  height: 2.1875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url(/images/searchG\ WebP.webp) no-repeat center center;
  background-size: 1.125rem;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
}


.searchBarOD:hover,
.searchBarOD:focus-within {
  width: 18.75rem;
  background-color: white;
  background-image: none; 
  border: 2px solid #0a0908;
  border-radius: 0.25rem;
  padding: 0 0.3125rem;
}



.searchBarOD:focus-within .search-bar__input,
.searchBarOD:hover .search-bar__input {
  opacity: 1;
}


/* MARK: MENU TITLE LINKS
/**  ///  ===  MENU TITLE LINKS  ===  ///  */
.menu-title-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menuLink {
  position: relative;

}

.main-menuLink a {
  color: whitesmoke;
}

.topBtnLink {
  font-size: 1rem;
  color: whitesmoke;
  background: none;
  border: none;
  text-transform: uppercase;
  margin: 0.625rem;
  cursor: pointer;
  text-decoration: none; 
  display: block; 

}


/*  MENU DROPDOWN CONTAINER  /  .dropDownMenu  */
.dropDownMenu {
  display: none;  
  position: absolute;
  top: 100%; 
  left: 25%;
  transform: translateX(-50%);  
  background-color: rgba(30, 30, 30, 0.95);
  padding: 1.875rem 1.25rem 1.25rem 1.25rem;
  width: 75rem; 
  max-width: 90vw;
  box-sizing: border-box; 
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0;
  
}

.dropDownMenu.is-open {
  display: grid;
  padding-right: 3.125rem;
   overflow: auto;
    
 }

.main-menuCol {
  display: flex;
  flex-direction: column;
}

.main-menuCol h3 {
  font-size: 1rem;
  color: white;
  border-bottom: 1px solid #b80808;
  padding: 0 3.75rem 0.3125rem 0;
  text-transform: uppercase;
}

.main-menuCol ul {
  list-style: none;
  margin: 0;
  padding: 1.25rem;
}

.main-menuCol ul li a {
  color: lightgray;
  text-decoration: none;
  display: block;
  padding: 0.0em; 
}

.main-menuCol ul li a:hover {
  color: #fbd61a;
}

.main-menuCol ul li:hover a {
  color: #fbd61a;
}

.main-menuCol ul li a:focus-visible {
  color: #fbd61a;
  outline: 1px solid whitesmoke;
  outline-offset: 0.125rem;
  margin: 0.3125rem;
  padding: 0.3125rem;
}

.main-menuCol ul li a:focus {
  outline: none;
}

.main-menuCol a:hover {
  color: #FBD61A;
  background-image: linear-gradient(to right, #232323 0%, black 100%);
  background-image: linear-gradient(to right, #232323 0%, black 100%);
  background: rgba(16, 21, 34, 1);

}

#mainNavigationMenu .main-menuCol a:hover  {
  color: #FBD61A;
}

.crest-main-nav {
  display: inline;
  text-align: end;
  right: 3.125rem;
  top: 0; 
  margin: 1.25rem 1.25rem 0.625rem 0.625rem;
}

.crest-main-nav a {
  text-decoration: unset;
}

.crest-main-nav img {
  height: 3.5rem;
  width: auto;
}

.brMainNav img,
.dacMainNav img { 
  margin-left: 0.625rem;
}

.crest-main-nav img:hover {
  scale: 1.3;
}

#mainNavigationMenu .crest-main-nav a:focus-visible img {
            outline: 1px solid white;
        outline-offset: 2px;
       
}


/* MARK: ACCESSIBILITY
/* =============================== /////////////// ACCESSIBILITY \\\\\\\\\\\\\\\\\\\ =========================== */

.screen-read-only {
  position: absolute;
  left: -625rem;
  width: 0.0625rem;
  height: 0.0625rem;
  overflow: hidden;
}



/* MARK: MEDIA QUIERES
/*    ------------MEDIA QUIERES----------- */

@media (max-width: 1440px) {
.nav-content .nav-item span {
  font-size: 1rem;
}

.nav-item img {
  height: 2.8rem;
}

#mainNavigationMenu button, #mainNavigationMenu a {
  font-size: 1.1rem;
}

.crest-main-nav img {
  height: 3rem;
}

}


@media (max-width: 1280px) {
  .main-menuCol a {
    min-height: 3rem;
  }


}


@media (min-width: 801px) {
  .main-menu-hamburger { display: none; }

    .has-submenu:hover .dropDownMenu {
    display: grid;
    padding-right: 3.125rem;
  }

  
  .has-submenu:hover .topBtnLink {
    text-decoration: underline solid #b80808 2px;
    color: white;
    font-size: 1.5rem;
    text-underline-offset: 0.625rem;
  }
}


@media (max-width: 800px) {  
  .nav-menu {
  width: 100%;
  }   
  .main-menu-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 1.875rem;
    height: 1.5625rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0.625rem 1.25rem;
    z-index: 1001;
  }
  .main-menu-hamburger span {
    width: 1.875rem;
    height: 0.1875rem;
    background: whitesmoke;
    transition: all 0.3s linear;
  }  
  .menu-title-links,   
  .crest-main-nav {
    display: none; 
    width: 100%;
  }

  
  /* .nav-menu.mobile-active {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    background: black;
  } */

  .nav-menu.mobile-active .menu-title-links,
  .nav-menu.mobile-active .searchBarCon {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1.25rem;
  }

    .nav-menu.mobile-active {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;  
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: stretch;        
    overflow-y: auto; 
    overflow-x: hidden;           
    -webkit-overflow-scrolling: touch; 
    
    background: black;
    z-index: 10000;
    padding-top: 4rem;           /* Give space for the hamburger button */
  }

  /* Ensure the links container is visible and flows correctly */
  .nav-menu.mobile-active .menu-title-links {
    display: flex !important;
    flex-direction: column;
    width: 100%;
  }
  .dropDownMenu {
    position: static; 
    width: 100% !important;
    max-width: 100%;
    transform: none;
    grid-template-columns: 1fr !important; 
    padding: 0.625rem;
   
  }

  .dropDownMenu.is-open {
    display: block; 
    
  }

  .main-menuCol h3 {
    padding: 0.625rem 0;
    margin-top: 0;
  }

    .main-menuLink:is(:hover, :focus, :active) #school.dropDownMenu {
    display: grid;
    grid-template-columns: 37% 35% 28%;

}
}

@media (max-width: 480px) {
#mainNavigationMenu button, #mainNavigationMenu a {
    font-size: 1rem;
    transition: font-size ease-in-out 0.3s;
}

.main-menu-hamburger {   
    width: .975rem;
    height: 1.1625rem;   
}

.main-menu-hamburger span {
      width: 1.5rem;
    height: 0.15rem;
    background: whitesmoke;
    transition: all 0.3s linear;
}

.searchBarOD {
    font-size: .86em;
    width: 1.4rem;
    height: 1.4rem;    
    margin: 0 0 0 0;
}

.searchBarCon {
    width: fit-content;
    height: fit-content;
    position: relative;
    display: flex;
    align-items: center;
    left: 0;
    top: 0;
    background: transparent;
    box-shadow: 0 0 3em rgba(0, 0, 0, 0.15);
    padding: 0;
    margin: 0.525rem 0.3rem 0 0;
}

}
