header {
  background-color: #ffffff;
  min-height: 10vh;
}
.background1 {
  height: 6vh;
  justify-content: end;
  font-size: 14px;
}
.background1 a {
  margin: 0.5rem;
}

@media screen and (max-width: 768px) {
  .a-responsiv {
 
   position: static;
   margin-right: 5px;
  
  }
}
.background2 {
  position: relative;
  background-color: #0b0e5c;
  height: 1vh;
  width: 75%;
}

.navbar-nav .nav-item:hover {
  border-bottom: 2px solid #0b0e5c;
}
ul {
  display: inline;
  margin: 0;
  padding: 0;
}
ul li {
  margin: 0.1rem;
  font-size: 14px;
  font-weight: bold;
  color: #0b0e5c;
  display: inline-block;
}

ul li:hover ul {
  display: block;
}

ul li ul {
  position: absolute;
  width: 200px;
  display: none;
}

nav a {
  color: #0b0e5c;
}
nav button {
  color: #0b0e5c;
  background-color: red;
}
.navbar-toggler {
  border: none;
  padding: 6px 8px;
  background: linear-gradient(183deg, #480a7a 0%, #461586 50%, #510f8f 100%);
  border-radius: 25px;
  
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* آیکن همبرگر */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,0.8%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.boxitem {
  margin-left: -6.5%;
}
.mobile-only {
  display: none;
}
.textmobile-only {
  display: none;
}

@media screen and (max-width: 768px) {
  .nav-res {
  
    width: 100%;
  }
  .tex-res {
    display: none !important;

  }

  @media (max-width: 768px) {
    .mobile-only {
      display: block;

      height: 8vh;
      margin-bottom: .6rem;
      margin-right: 6rem;
    }
    .textmobile-only{
       
        font-size: 10px !important;
        width: 60%;
        position: absolute;
        left: 4rem;
        bottom: -30%;
    }
    .boxitem {
        margin-right: 1rem !important;
       
      }
      .boxitem img{
       
        width: 15%;
        height: 8%;
      }
      .background1{
        height: 3vh !important;
        position: absolute;
        top: 4rem;
   
      }
      .background1 a{
        font-size: 12px !important;
      }
  }
  @media (max-width: 768px) {

    .navbar-brand.a-responsiv{
      order: 2;
      margin-right: 10px;
    }
  
    .navbar-toggler{
      order: 1;
      margin-left: auto;
    }
  
    .navbar-collapse{
      order: 4;
      width: 100%;
    }
  
    .boxitem{
      order: 3;
    }
  
  }
  @media (max-width: 768px) {
    .navbar-nav .nav-item {
      display: block;
      width: 100%;
      text-align: right;
      margin: 0;
    }
  
    .navbar-nav .nav-link {
      padding: 10px 0;
    }
    .navbar-collapse.show {
      padding-top: 25px;
    }
  }
}
