@font-face {
  font-family: "IRANYekan";
  src: url("../assets/Fonts/IRANYekanXFaNum-Black.ttf");
}
@font-face {
  font-family: "IRANYekanRe";
  src: url("../assets/Fonts/IRANYekanXFaNum-Regular.ttf");
}
@font-face {
  font-family: "IRANYekanBo";
  src: url("../assets/Fonts/IRANYekanXFaNum-Bold.ttf");
}

* {
  font-family: "IRANYekan";
  direction: rtl;
}
.fontRe { font-family: "IRANYekanRe" !important; }
.fontBo { font-family: "IRANYekanBo" !important; }

body { background-color: whitesmoke; }

.page { animation: fadeIn 0.8s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-width { width: 190px; }
@media (min-width: 1024px) { .card-width { width: 320px; } }

.toast {
  animation: toastIn 0.25s ease;
  min-width: 260px;
  max-width: 500px;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* اسلایدر برترین دوره‌ها - اسکرول افقی ساده به‌جای Swiper */
.courses-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}
.courses-slider::-webkit-scrollbar { height: 8px; }
.courses-slider::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 10px; }
.courses-slider > * { scroll-snap-align: start; flex-shrink: 0; }

/* اسلایدر بی‌نهایت لوگوها */
.infinity-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: scrollLeft 25s linear infinite;
}
@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
