/* ===== slide3.css برای اسلاید آمار ===== */
.stats-slide {
  background-color: #1c1c1c;
}

.stats-slide .content {
  max-width: 900px;
  margin: auto;
  padding: 2rem 2rem 0rem;
  text-align: center;
  color: #e0e0e0;
  margin-bottom: -12px;
  margin-top: -500px;
}

.stats-slide .company-title {
  font-size: 2rem;
  color: #d4af37;
  margin-bottom: 0.5rem;
}

.stats-slide .subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.stats-slide .content p {
  line-height: 2;
  margin-bottom: 2rem;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #d4af37;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  margin-top: 0.25rem;
}
/* واکنشگرا کردن اسلاید آمار برای موبایل */
@media (max-width: 600px) {
  .stats-slide .content {
    padding: 1.5rem 1rem 0;
    margin-top: -200px; /* تنظیم مجدد فاصله عمودی */
  }

  .stats-grid {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .stats-item {
    width: 100%;
    max-width: 300px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }
}
@media screen and (max-width: 480px) {
  .services-slide {
    /* حتما ارتفاعش با محتوا بالا بره */
    overflow: visible !important;
    /* فاصله‌ی پایینی برای ایمن‌سازی */
    padding-bottom: 2.5rem !important;
  }

  .services-slide .glass-grid {
    /* هر ردیف خودش هِیْت اتوماتیک داشته باشه */
    grid-auto-rows: auto !important;
  }

  .services-slide .glass-box {
    /* حذف حداقل ارتفاع ثابت */
    min-height: auto !important;
    /* مطمئن بشه با محتوا بزرگ میشه */
    height: auto !important;
  }
}
@media screen and (max-width: 480px) {
  /* لغو margin منفی در اسلاید آمار و اضافه کردن فاصله پایانی */
  .stats-slide {
    margin-top: 0 !important;
    margin-bottom: 2rem !important;
    padding-bottom: 2rem !important;
  }

  /* مطمئن شدن از اینکه اسلاید خدمات زیر اسلاید آمار قرار می‌گیرد */
  .services-slide {
    clear: both !important;
    margin-top: 2rem !important;
  }
}
