@font-face {
  font-family: 'khodkar';
  src: url('../fonts/Far_khodkar/Far_khodkar.ttf') format('truetype');
  /* یا woff یا woff2 */
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'IranNastaliq';
  src: url('../fonts/IranNastaliq&Help-fontyab.com/IranNastaliq.ttf') format('truetype');
  /* یا woff یا woff2 */
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Negaar';
  src: url('../fonts/Negaar/Negaar\ Regular.ttf') format('truetype');
  /* یا woff یا woff2 */
  font-weight: normal;
  font-style: normal;
}

.custom-bg {
  background-color: #f0f9ff;
}

.custom-bg-2 {
  background-color: #f5f5f4;
}

body {
  font-family: 'Negaar', sans-serif !important;
}

.gray-box {
  background-color: #ffffff;
  color: #ffd000;
  border-radius: 50px;

}

.gray-box-img {
  background-color: #000000;
  color: #ffffff;
  padding: 5px;
  border-radius: 50px;

}

.gray-box-img-m {
  padding: 1px;
  border-radius: 50px;

}

.gray-box-3 {
  background-color: #f2f2f7;
  color: #ffd000;
  border-radius: 50px;

}

.bg-box-img {
  background-color: #848484;

  border-radius: 50px;

}

/* استایل‌های کارت‌های آزمون */
.hover-shadow {
  transition: all 0.3s ease;
}

.hover-shadow:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card {
  border-radius: 15px;
  overflow: hidden;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.badge {
  padding: 5px;
  border-radius: 100%;
}

/* استایل‌های چرخش کارت‌ها */
.transform-rotate-1 {
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.transform-rotate-2 {
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.transform-rotate-3 {
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
}

.transform-rotate-1:hover,
.transform-rotate-2:hover,
.transform-rotate-3:hover {
  transform: rotate(0deg) scale(1.02);
}

/* استایل برای تصاویر کارت‌ها */
.object-fit-cover {
  object-fit: cover;
}

/* استایل‌های dropdown برای موبایل */
@media (max-width: 991.98px) {
  .dropdown-menu {
    min-width: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
  }

  .dropdown-item {
    padding: 12px 16px;
    font-size: 18px;
    border-radius: 0;
  }

  .dropdown-item:first-child {
    border-radius: 10px 10px 0 0;
  }

  .dropdown-item:last-child {
    border-radius: 0 0 10px 10px;
  }

  .dropdown-item:hover {
    background-color: #f8f9fa;
  }

  .dropdown-item.text-danger:hover {
    background-color: #f8d7da;
  }
}

/* بهبود نمایش آیکون‌ها در dropdown */
.dropdown-item i {
  width: 16px;
  text-align: center;
}

/* رنگ تیره‌تر برای موجودی */
.dropdown-item .text-success {
  background-color: #a0eac7;
}

.custom-profile-btn {
  background-color: #dddddd;
  border-radius: 30px;
  width: 69px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0;
  border: none;
  /* Remove default border */
}

.custom-profile-btn img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.custom-profile-btn::after {
  content: '▼';
  color: #000000;
  font-size: 12px;
  margin-left: 5px;
}

.custom-profile-btn:hover,
.custom-profile-btn:focus,
.custom-profile-btn:active {
  background-color: #f5f5f5;
  /* Fixed color on hover, focus, and click */
  box-shadow: none;
  /* Remove any shadow effects */
  outline: none;
  /* Remove outline on focus */
}

.card-user {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  background: #fff;
  max-width: 300px;
  margin: 2rem auto;
  min-height: 330px;
}

#particles-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.svg-bg {
  position: absolute;
  z-index: 1;
  opacity: 0.8;
  pointer-events: none;
}

.svg-top-right {
  top: -40px;
  right: -40px;
  width: 100px;
  height: 100px;
}

.svg-bottom-left {
  bottom: -40px;
  left: -40px;
  width: 100px;
  height: 100px;
}

.svg-bottom-right {
  bottom: -30px;
  right: -30px;
  width: 60px;
  height: 60px;
  opacity: 0.5;
}

.svg-top-left {
  top: -30px;
  left: -30px;
  width: 60px;
  height: 60px;
  opacity: 0.5;
}

.user-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  position: relative;
  z-index: 2;
  margin-top: 2rem;
}

.card-body {
  position: relative;
  z-index: 3;
}

.card-user-teachers {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  background: #fff;
  max-width: 100%;
  margin: 2rem auto;
  min-height: 45%;
}

.article-header {
  position: relative;
  color: white;
  padding: 100px 0;
  margin-bottom: 50px;
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* گرادیانت‌های مختلف برای تنوع */
.article-header.no-image.gradient-1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-header.no-image.gradient-2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.article-header.no-image.gradient-3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.article-header.no-image.gradient-4 {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.article-header.no-image.gradient-5 {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.article-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.article-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
  z-index: 2;
}

.article-header .container {
  position: relative;
  z-index: 3;
}

.article-content {
  font-size: 1.1rem;
  line-height: 2;
}

.article-content img {
  max-width: 100%;
  border-radius: 15px;
  margin: 30px 0;
}

.article-meta {
  display: flex;
  gap: 20px;
  color: #666;
  margin-bottom: 30px;
}

.article-meta i {
  margin-left: 5px;
}

.author-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
}

.related-articles .card {
  transition: all 0.3s ease;
  border: none;
  border-radius: 15px;
  overflow: hidden;
}

.related-articles .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.share-buttons .btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
}

.article-filters {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  transition: all 0.3s ease;
  margin: 5px;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(45deg, #f87537, #36d1c4);
  color: white;
  border: none;
}

.article-card {
  transition: all 0.3s ease;
  border: none;
  border-radius: 15px;
  overflow: hidden;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-image {
  height: 200px;
  object-fit: cover;
}

.article-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.article-stats {
  display: flex;
  gap: 15px;
  color: #666;
  font-size: 0.9rem;
}

.article-stats i {
  margin-left: 5px;
}

.pagination .page-link {
  border-radius: 20px;
  margin: 0 5px;
  border: none;
  color: #333;
}

.pagination .page-item.active .page-link {
  background: linear-gradient(45deg, #f87537, #36d1c4);
  border: none;
}

