/* === تنظیمات کلی منو === */
.navbar-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: none; /* بدون قاب و پس‌زمینه */
  padding: 5px 10px;
  border: none;
}

/* === لینک‌های ساده (خانه و...) === */
.navbar-nav .nav-link {
  color: #ffffff;
  padding: 8px 18px;
  /*font-family: 'b Titr';*/
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
}

/* افکت نوری زیر لینک هنگام هاور */
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #00bfff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 60%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
  color: #00bfff;
  text-shadow: 0 0 6px rgba(0,191,255,0.5);
}

/* === دکمه‌های کشویی === */
.dropbtn {
  background: none;
  color: #ffffff;
  /*font-family: 'b Titr';*/
  font-size: 15px;
  border: none;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.dropbtn:hover {
  color: #00bfff;
  text-shadow: 0 0 6px rgba(0,191,255,0.5);
}

/* افکت زیر خط هنگام هاور برای dropbtn */
.dropbtn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #00bfff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.dropdown:hover .dropbtn::after {
  width: 60%;
}

/* === زیرمنو === */
/* === زیرمنو نرم و لطیف === */
.dropdown-content {
  display: block;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  right: 0;
  top: 100%;
  background: rgba(4, 18, 90, 0.96); /* رنگ تیره با کمی شفافیت */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px; /* گوشه‌های نرم‌تر */
  min-width: 180px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3); /* سایه‌ی لطیف‌تر و بلندتر */
  z-index: 1000;
  text-align: right;
  overflow: hidden;
  transform: translateY(-12px) scale(0.98); /* کمی کوچک‌تر در حالت پنهان */
  transform-origin: top right;
  transition:
      opacity 0.35s ease,
      visibility 0.35s ease,
      transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* انیمیشن باز شدن لطیف */
.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* لینک‌های داخل زیرمنو */
.dropdown-content a {
  color: #ffffff;
  padding: 10px 18px;
  display: block;
  text-decoration: none;
  font-size: 14px;
  font-family: 'b Titr';
  transition: all 0.25s ease;
}

/* حالت هاور برای لینک‌های زیرمنو */
.dropdown-content a:hover {
  background: rgba(0, 191, 255, 0.1);
  color: #00bfff;
  padding-right: 22px; /* حرکت ظریف به راست هنگام هاور */
}




.dropdown-content a:hover {
  background-color: #062086;
  color: #00bfff;
}

/* حالت واکنش‌گرا */
@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .dropdown-content {
    position: static;
    box-shadow: none;
    border-radius: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
  }
}
