/* Prevent layout shift on mobile while scripts/fonts load */

body {
  transition: none !important;
  font-family: IranSans, Tahoma, sans-serif;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

/* Hide default owl-carousel flash and keep stable height before init */
@media (max-width: 767px) {
  .testimonialstwo__owl-carousel.owl-carousel:not(.owl-loaded) {
    display: block !important;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    overflow: hidden;
    min-height: 380px;
  }
}

.testimonialstwo__owl-carousel.owl-carousel:not(.owl-loaded) {
  display: block !important;
  width: 100%;
  overflow: hidden;
  min-height: 380px;
}

.testimonialstwo__owl-carousel.owl-carousel.owl-loaded {
  display: block !important;
}

.testimonialstwo__owl-carousel:not(.owl-loaded) .tem2-item {
  width: 100% !important;
  float: none !important;
}

.testimonialstwo__owl-carousel:not(.owl-loaded) .tem2-item ~ .tem2-item {
  display: none !important;
}

.testimonialstwo__section {
  min-height: 520px;
}

/* ===== فاصله‌های یکنواخت بین بخش‌های صفحه ===== */

/* بخش معرفی (هیرو) */
#text .textthree-wrapper {
  padding-top: 30px;
  padding-bottom: 30px;
}

/* حذف کامل فضای خالی بخش leadcapture (فرم مخفی داخل صفحه) */
#leadcapture {
  display: none !important;
}

/* بخش اساتید و منتورها */
#testimonials .testimonialstwo__section {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 30px;
  padding-bottom: 15px;
}

/* بخش ویژگی‌ها */
#features .featuresthree-wrapper {
  padding-top: 17px;
  padding-bottom: 35px;
}

/* بخش مراحل */
#stepbystep .tem3-stepbystep .forPadding {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

/* بخش CTA ثبت نام */
#leadcapture-cta {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

/* تراز عمودی دکمه‌های next/prev اسلایدر */
.testimonialstwo__section .owl-nav {
  position: static;
}
.testimonialstwo__section .owl-nav .owl-prev,
.testimonialstwo__section .owl-nav .owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}
.testimonialstwo__section .owl-carousel {
  position: relative;
}
.testimonialstwo__section .owl-nav .owl-prev {
  right: -30px;
}
.testimonialstwo__section .owl-nav .owl-next {
  left: -30px;
}

/* Reserve hero image space */
.textthree-img__bg img {
  width: 293px;
  height: 293px;
  max-width: 100%;
  aspect-ratio: 1;
}

/* Bootstrap columns: full width on mobile before grid settles */
/* لوگو — همه سایزها */
.navbar-brand {
  margin-right: auto !important;
  margin-left: -20px !important;
  padding-left: 0 !important;
}

@media (max-width: 991px) {
  .featuresthree-items.col-7,
  .featuresthree-texts.col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .textthree-row .col-md-10,
  .textthree-row .col-lg-7,
  .textthree-row .col-md-2,
  .textthree-row .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
