/* استایل عمومی برای صفحه */
@font-face {
    font-family: 'lalezar';
    src:  url('../fonts/Lalezar-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    } 
body {
    font-family: lalezar;
    margin: 0;
    padding: 0;
    background-color:   #f8f9fa;

  }


/* بخش مقالات */
.blog-articles {
    padding: 50px 20px;
    background-color: #fff;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post {
    background-color: #f4f7fa;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-post h2 {
    font-size: 1.5rem;
    margin: 20px;
    color: #1e3799;
}

.blog-post p {
    margin: 0 20px 20px;
    color: #555;
    line-height: 1.6;
}

.read-more-btn {
    display: inline-block;
    margin: 20px;
    padding: 10px 20px;
    background-color: #1e3799;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background-color: #576574;
}

/* صفحه‌بندی */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.page-link {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #1e3799;
    color: #fff;
}

/* General Header Style */
/* General Header Style */
header {
  background: linear-gradient(to right, #576574, #1e3799);
  padding: 10px 30px;
  width: 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;
}

  /* Footer Section */
.footer {
    background: linear-gradient(to right, #576574, #1e3799);
    color: #ecf0f1;
    padding: 40px 20px;
    font-size: 1rem;
    position: relative;
    z-index: 10;
  }
  
  .footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
  }
  
  .footer-logo a {
    font-size: 1.8rem;
    color: #ecf0f1;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer-logo a:hover {
    color: #3498db;
  }
  
  .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .footer-links li {
    font-size: 1.1rem;
  }
  
  .footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer-links a:hover {
    color: #3498db;
  }
  
  /* New contact section */
  .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .footer-contact .contact-link {
    color: #ecf0f1;
    font-size: 1.2rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
  }
  
  .footer-contact .contact-link:hover {
    color: #3498db;
    transform: scale(1.1);
  }
  
  .footer-contact .contact-link i {
    font-size: 1.6rem;
  }
  
  /* Footer bottom */
  .footer-bottom {
    text-align: center;
    border-top: 1px solid #34495e;
    padding-top: 20px;
    margin-top: 20px;
  }
  
  .footer-bottom p {
    font-size: 1rem;
    color: #ecf0f1;
  }
  
  .footer-bottom a {
    color: #3498db;
    text-decoration: none;
  }
  
  .footer-bottom a:hover {
    text-decoration: underline;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .footer-top {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .footer-links ul {
      justify-content: center;
    }
  
    .footer-social {
      justify-content: center;
    }
  
    .footer-contact {
      align-items: center;
    }
  }
  
  


