
:root {
  --clr-bg-header: #1f2842;
  --clr-btn: #fff;
  --clr-dropdown: #1f2842;
  --clr-nav-hover: #1E6F5C;
  --clr-dropdown-hov: #1f2842;
  --clr-dropdown-link-hov: #1f2842;
  --clr-light: #FAFAFA;
}



ul {
  list-style: none;
}

a {
  text-decoration: none;
}


.nav-btn {
  flex: 3;
  display: flex;
}

.ust-nav-links {
  flex: 2;
}



.ust-nav-links > ul {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ust-nav-link {
  position: relative; 
}



.ust-nav-link > a > i {
  margin-left: .2rem;
}

.ust-nav-link:hover > a {
  opacity: 0.5;  -moz-transition:all 0.3s ease-out;-o-transition:all 0.3s ease-out;-webkit-transition:all 0.3s ease-out;-ms-transition:all 0.3s ease-out;-transition:all 0.3s ease-out;
}

.dropdown {
  position: absolute;
  top: 100%; /* Başlangıçta 100% değerinde */
  left: 0;
  width: 190px;
  transform: translateY(20px); /* Menüyü 20px aşağıya kaydır */
  opacity: 0;
  pointer-events: none;
  transition: .5s; 
  padding-top: 10px; 
  
}

.dropdown ul {
  position: relative; box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); margin-top: 20px;  background-color: #fff; border-radius: 5px; padding: 5px;
}

.dropdown-link > a {
  display: flex;
  background-color: #fff;
  color: var(--clr-dropdown);
  padding: 10px 15px; 
  font-size: 14px; font-weight: 400;
  align-items: center;
  justify-content: space-between; font-family: 'Open Sans';  -moz-transition:all 0.3s ease-out;-o-transition:all 0.3s ease-out;-webkit-transition:all 0.3s ease-out;-ms-transition:all 0.3s ease-out;-transition:all 0.3s ease-out;
  
}

.dropdown-link:hover > a {
 background: #eee;  border-radius: 5px;
  color:#000;  -moz-transition:all 0.3s ease-out;-o-transition:all 0.3s ease-out;-webkit-transition:all 0.3s ease-out;-ms-transition:all 0.3s ease-out;-transition:all 0.3s ease-out;
}

.dropdown-link:not(:nth-last-child(2)) {
  border-bottom: 0px solid var(--clr-light);
}

.dropdown-link i {
  transform: rotate(-90deg);
}

.arrow {
  position: absolute;
  width: 0px;
  height: 0px;
  top: -5.5px;
  left: 32px;
  background-color: #eee;
  transform: rotate(45deg);
  cursor: pointer;
  transition: .3s;
  z-index: -1;
}

.dropdown-link:first-child:hover ~ .arrow {
  background-color: #fff;
}

.dropdown-link {
  position: relative;
}

.dropdown.second {
  top: 0;
  left: 100%;
  padding-left: .8rem;
  cursor: pointer;
  transform: translateX(10px);
}

.dropdown.second .arrow {
  top: 10px;
  left: -5.5px;
}

.ust-nav-link:hover > .dropdown,
.dropdown-link:hover>.dropdown {
  transform: translate(0, 0);
  opacity: 1;
  pointer-events: auto;
}






@keyframes animation {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

@media (max-width: 769px) {
  .ust-nav-links {
    flex: initial;
    width: 100%;
  }

  .ust-nav-links > ul {
    flex-direction: column;
  }

  .ust-nav-link {
    width: 100%;
    opacity: 0;
    transform: translateY(15px);
  }

  .ust-nav-link > a {
    line-height: 1;
    padding: 1.6rem 2rem;
  }

  .ust-nav-link:hover > a {
    transform: scale(1);
    background-color: var(--clr-nav-hover);
  }

  .dropdown,
  .dropdown.second {
    position: initial;
    top: initial;
    left: initial;
    transform: initial;
    opacity: 1;
    pointer-events: auto;
    width: 100%;
    padding: 0;
    background-color: var(--clr-dropdown-hov);
    display: none;
  }

  .ust-nav-link:hover > .dropdown,
  .dropdown-link:hover>.dropdown {
    display: block;
  }

  .ust-nav-link:hover > a > i,
  .dropdown-link:hover>a>i {
    transform: rotate(360deg);
  }

  .dropdown-link > a {
    background-color: transparent;
    color: var(--clr-light);
    padding: 1.2rem 2rem;
    line-height: 1;
  }

  .dropdown.second .dropdown-link > a {
    padding: 1.2rem 2rem 1.2rem 3rem;
  }

  .dropdown.second .dropdown.second .dropdown-link > a {
    padding: 1.2rem 2rem 1.2rem 4rem;
  }

  .dropdown-link:not(:nth-last-child(2)) {
    border-bottom: none;
  }

  .arrow {
    z-index: 1;
    background-color: var(--clr-btn);
    left: 10%;
    transform: scale(1.1) rotate(45deg);
    transition: .5s;
  }

  .ust-nav-link:hover .arrow {
    background-color: var(--clr-nav-hover);
  }

  .dropdown .dropdown .arrow {
    display: none;
  }

  .dropdown-link:hover > a {
    background-color: var(--clr-dropdown-link-hov);
  }

  .dropdown-link:first-child:hover ~ .arrow {
    background-color: var(--clr-nav-hover);
  }

  .ust-nav-link > a > i {
    font-size: 1.1rem;
    transform: rotate(-90deg);
    transition: .7s;
  }

  .dropdown i {
    font-size: 1rem;
    transition: .7s;
  }
}