
/* General Header Style */
header {
  background: linear-gradient(to right, #576574, #1e3799);
  padding: 10px 30px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-size: 1.8rem;
  color: #ecf0f1;
  text-decoration: none;
  font-weight: 600;
}

.navbar-nav {
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.nav-item {
  margin-left: 30px;
}
.nav-link {
  text-decoration: none;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease-in-out;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #3498db; /* تغییر رنگ خط زیر */
  transition: width 0.3s ease-in-out;
}

.nav-link:hover {
  color: #3498db; /* تغییر رنگ متن هنگام هاور */
}

.nav-link:hover::after {
  width: 100%; /* خط زیر متن هنگام هاور نمایش داده می‌شود */
}







/* Search Box */
/* استایل دهی به بخش سرچ باکس */
.search-box input {
  border: 2px solid #ccc;
  padding: 10px 20px;
  font-size: 16px;
  color: #333;
  border-radius: 25px;
  width: 250px;
  outline: none;
  transition: all 0.3s ease-in-out;
  background-color: #fff;
}

/* افکت هاور برای سرچ باکس */
.search-box input:hover {
  border-color: #3498db;  /* تغییر رنگ مرز هنگام هاور */
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.6); /* سایه اطراف */
}

/* تغییر رنگ متن و مرز هنگام فوکوس */
.search-box input:focus {
  border-color: #3498db; /* تغییر رنگ مرز هنگام فوکوس */
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.6); /* سایه اطراف */
  color: #3498db; /* تغییر رنگ متن هنگام فوکوس */
}

/* استایل جایگزینی برای placeholder */
.search-box input::placeholder {
  color: #bbb;
  font-style: italic;
  transition: color 0.3s ease-in-out;
}

/* هنگام فوکوس، رنگ placeholder تغییر می‌کند */
.search-box input:focus::placeholder {
  color: #3498db; /* رنگ placeholder هنگام فوکوس */
}


/* استایل دهی به آیکون‌های شبکه اجتماعی */
.social-links a {
  font-size: 24px;
  color: #ffffff;
  margin: 0 15px;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* افکت هاور برای آیکون‌های شبکه اجتماعی */
.social-links a:hover {
  color: #3498db; /* تغییر رنگ آیکون هنگام هاور */
  transform: scale(1.2); /* بزرگتر شدن آیکون */
}

/* استایل برای آیکون‌های اجتماعی با رنگ‌های مشخص */
.social-links a i {
  transition: transform 0.3s ease;
}

/* تغییر رنگ و سایه در هنگام هاور */
.social-links a:hover i {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.6); /* سایه اطراف آیکون */
}

/* برای اطمینان از فاصله‌گذاری مناسب */
.social-links {
  display: flex;
  align-items: center;
}

/* Mobile View */
@media (max-width: 768px) {
 
 
  .menu-btn {
    display: block;
    background-color: transparent;
    border: none;
    font-size: 2rem;
    color: #ecf0f1;
  }

  .search-box {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .social-links {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .social-links a {
    font-size: 1.5rem;
  }
}


/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100%;
  background: linear-gradient(to right, #576574, #1e3799);
  padding: 20px;
  transition: left 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 3000;
}

.sidebar.active {
  left: 0;
}

.close-btn {
  font-size: 2rem;
  color: #ecf0f1;
  background: none;
  border: none;
  margin-bottom: 20px;
}

.sidebar .nav-item {
  margin-bottom: 20px; 
}

.sidebar .nav-link {
  font-size: 1.2rem;
  color: #ecf0f1;
  text-decoration: none;
}




