@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn/fonts/webfonts/Vazirmatn[wght].woff2') format('woff2 supports variations'),
    url('../fonts/Vazirmatn/fonts/webfonts/Vazirmatn[wght].woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: Vazirmatn !important;
}

.swiper {
  width: 100%;
  height: 610px;
  background-color: whitesmoke;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #444;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: rgb(235, 235, 235);
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
   
}

.courseSwiper{

  width:85%;
  height: auto;
  padding:20px 0 40px;
background-color: white;
}


.courseSwiper .swiper-slide{

  width:325px;
  height:420px;
background: #fff;
}

    
        .reveal {
            opacity: 0;
            ;
        }

        .reveal.show {
            opacity: 1;
            transform: translateY(0);
            transform: translateX(0);
            transition:
                opacity 1.3s ease,
                transform 1.5s ease
        }
    
.ttb{
  transform: translateY(-40px);
}
.btt{
  transform: translateY(40px);
}
.ltr{
  transform: translateX(-60px);
}
.rtl{
  transform: translateX(60px);
}
.rttl{
  transform:translate(-60px ,-40px)   ;
}
.header-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.13);
    z-index: 200;
    max-height: 340px;
    overflow-y: auto;
    display: none;
}

.header-search-dropdown.open {
    display: block;
}

.header-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    text-align: right;
    border-bottom: 1px solid #f2f2f2;
    color: #333333;
    font-size: 14px;
    transition: background 0.15s ease;
}

.header-search-item:last-child {
    border-bottom: none;
}

.header-search-item:hover {
    background: #f3fafc;
}

.header-search-item img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #eee;
}

.header-search-item span {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-search-empty,
.header-search-loading {
    padding: 16px;
    text-align: center;
    color: #999999;
    font-size: 13.5px;
}

.header-search-viewall {
    display: block;
    text-align: center;
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #0c7b93;
    cursor: pointer;
    border-top: 1px solid #f2f2f2;
}

.header-search-viewall:hover {
    background: #f3fafc;
}

@media (max-width: 1023px) {
    .header-search-dropdown {
        max-height: 280px;
    }
}

/* ===================== Mobile-only fixes (<1024px) ===================== */
@media (max-width: 1023px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* Convert horizontal reveal animations to vertical ones so nothing
       starts off-screen and creates horizontal scroll on mobile */
    .ltr {
        transform: translateY(40px);
    }
    .rtl {
        transform: translateY(40px);
    }
    .rttl {
        transform: translateY(-40px);
    }

    /* Hero images on صفحات خانه/درباره ما/تماس با ما */
    .page-hero-img {
        display: none !important;
    }

    /* بخش اساتید صفحه اصلی */
    .home-instructors-section {
        display: none !important;
    }

    /* عکس تلفن CTA صفحه تماس با ما */
    .cta-phone-img {
        display: none !important;
    }

    /* سه کارت اول صفحه اصلی: حذف متن، نمایش کامل آیکون */
    .home-cat-label {
        display: none !important;
    }
    .home-cat-card {
        height: 100px !important;
        overflow: visible !important;
    }
    .home-cat-card > div:first-child {
        height: 100% !important;
        border-radius: 18px;
        overflow: hidden;
    }
    .home-cat-icon {
        top: auto !important;
        bottom: -10px !important;
    }
}


/* =========================================================
   VIDA — GLOBAL PAGE LOADER
   این بلوک رو بذار ته فایل css/style.css  (روی همه صفحه‌ها اعمال میشه)
   تا وقتی <html> کلاس page-ready نگرفته، لودر نمایش داده میشه.
   ========================================================= */

/* پس‌زمینه سفید تمام‌صفحه */
html:not(.page-ready)::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: #fff;
    opacity: 1;
    transition: opacity .4s ease;
    animation: vida-failsafe 0s linear 8s forwards;
}

/* اسپینر وسط صفحه */
html:not(.page-ready)::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 99999;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 5px solid #E9E7F8;
    border-top-color: #087EA4;
    opacity: 1;
    transition: opacity .4s ease;
    animation:
        vida-spin .8s linear infinite,
        vida-failsafe 0s linear 8s forwards;
}

/* fade-out موقع تموم شدن لودینگ */
html.is-leaving:not(.page-ready)::before,
html.is-leaving:not(.page-ready)::after {
    opacity: 0;
}

/* تا لودینگ تموم نشده اسکرول قفل (بعد از ۸ ثانیه خودکار آزاد میشه) */
html:not(.page-ready) {
    overflow: hidden;
    animation: vida-unlock 0s linear 8s forwards;
}

@keyframes vida-spin     { to { transform: rotate(360deg); } }
@keyframes vida-failsafe { to { opacity: 0; visibility: hidden; } }
@keyframes vida-unlock   { to { overflow: visible; } }

/* اسپینر کوچیک برای داخل صفحه (مثلاً داخل گرید دوره‌ها) */
.loader-spinner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 5px solid #E9E7F8;
    border-top-color: #087EA4;
    animation: vida-spin .8s linear infinite;
}
.loader-spinner--sm {
    width: 36px;
    height: 36px;
    border-width: 4px;
}