
/*=============== HEADER & NAV ===============*/

.nav ul {
  list-style: none;
}

.nav a {
  text-decoration: none;
}
 /* hader */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  box-sizing: border-box;
  background-color: rgba(205, 205, 205, 0.85);        
  z-index: 99999;
  font-family: 'Times New Roman', Times, serif;
}

.nav {
  position: relative;
  height: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-inline:2rem ;
  font-family: var(--font-sub);
}
 
.nav__close, 
.nav__toggle {
  display: flex;
  color: #D8D3CD;
  font-size: 2rem;
  cursor: pointer;
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.ri-menu-line, .ri-close-large-line {
  color: rgb(0, 0, 0); 
}

@media screen and (max-width: 1150px) {

  .nav__menu {
    position: fixed;
    left: -100%;
    top: 0;
  
    backdrop-filter: blur(40px);  
    width: 100%;
    height: 100%;
 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: left .4s;
  }

  .nav__item {
    transform: translateX(-150px);
    visibility: hidden;
    transition: transform .5s ease-out, visibility .3s;

  }

  .nav__item:nth-child(1) {
    transition-delay: .4s;
  }
  .nav__item:nth-child(2) {
    transition-delay: .4s;
  }
  .nav__item:nth-child(3) {
    transition-delay: .4s;
  }
  .nav__item:nth-child(4) {
    transition-delay: .4s;
  }
  .nav__item:nth-child(5) {
    transition-delay: .4s;
  }

  .nav__list {
    padding: 50px;
  }

}
 
.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;


}

.nav__link {
  position: relative;
 
  display: inline-flex;
 
}
.nav__link span{ 
font-size: 1rem;
  padding-bottom: 19px;
  padding-top: 19px;
color: #000000;
}
.dropdowm__arrow {
font-size: 1px;
}

 

.nav__link span::after {
  content: "";
  position: absolute;
  left: 50%;  
  transform: translateX(-50%);  
  bottom: 15px;
   width: 0;
  height: 1px;
  background-color  : white;
  transition:.4s ease  ;
}

 

 .dropdown__link {
  font-size: 1rem;
 }
.dropdowm i {
  font-size: 16px;
}
.nav__link:hover span::after {
  width: 100%;
}
 
.nav__list:has(.nav__link:hover) .nav__link:not(:hover) {
  opacity: 0.5;
}
 

 
 
.show-menu {
  left: 0px;
}


.show-menu .nav__item {
  visibility: visible;
  transform: translateX(0);
}

/*=============== BREAKPOINTS ===============*/
 
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }
 

  .nav__toggle, 
  .nav__close {
    display: none;
  }

  .nav__link {
    font-size: 16px;
  }


  .nav__list {
    flex-direction: row;
    column-gap: 3.5rem;
  }

  .nav__menu {
    display: flex;
    align-items: center;
    column-gap: .5rem;
  }
  
}
/*  the dropdown */ 
.nav__item.dropdown {
 position: relative;
}

.dropdown__menu {
 display: none;
 position: absolute;
 top: 100%;  
 left: -25%; 
 padding: 10px;
 padding-top: 10px;
 list-style: none;
 box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);  
}
@media screen and (min-width: 1150px){
.dropdown__menu{
background-color: rgba(205, 205, 205, 0.8);    
 width: 300px;
 border-radius: 10px;
}
}

.dropdown__menu li {
 padding: 10px;
}

.dropdown__link {
 color: #000000;  
 text-decoration: none;

 border-radius: 115px;
}

.dropdown__menu li:hover {
background-color: #ffffff;

}

.nav__item.dropdown:hover .dropdown__menu {
 display: block;
}
.nav__logo img {
  width: 180px;
  margin-bottom: 18px;
}
@media screen and (max-width: 1150px) {
.nav__item.dropdown {
  position: relative;
}
.dropdown__menu {
  display: none;
  position: relative;
  top: 0;  
  left: 0; 
  width: min-content;
  list-style: none;
  background-color: none;
 box-shadow: none;
 width: 500px;
}
.dropdown__menu li {
padding: 20px;
}.nav__logo img {
  
  margin-bottom: 0px;
}
}
.dropdown__logo  {
  width: 1.25rem;
  margin-bottom: 6px;
}

@media screen and (max-width: 350px) {
  .dropdown__link  {
   font-size: 12px;
  }
}