/* =========================================================
   MATRIS — extra.css
   چند خط CSS که قبلاً جاوااسکریپت المنتور (SmartMenus و Swiper) انجامش می‌داد
   ========================================================= */

/* ---------- زیرمنوی هدر دسکتاپ ---------- */
.elementor-nav-menu--main .elementor-nav-menu li { position: relative; }
.elementor-nav-menu--main .elementor-nav-menu ul { display: none; z-index: 100; }
.elementor-nav-menu--main .elementor-nav-menu > li > ul { top: 100%; right: 0; }
.elementor-nav-menu--main .elementor-nav-menu ul ul { top: 0; right: 100%; }
.elementor-nav-menu--main .elementor-nav-menu li:hover > ul,
.elementor-nav-menu--main .elementor-nav-menu li:focus-within > ul { display: block; }

/* ---------- منوی موبایل: زیرمنوها اول بسته‌اند ---------- */
.elementor-location-popup .elementor-nav-menu--dropdown { max-height: none !important; transform: none !important; }
.elementor-location-popup .elementor-nav-menu ul { display: none; position: static; width: auto; }
.elementor-location-popup .elementor-nav-menu__container[aria-hidden] { overflow: visible; }

/* ---------- اسلایدر وبلاگ (جای Swiper) ---------- */
.mx-carousel { position: relative; overflow: hidden; }
.mx-carousel .swiper-wrapper {
  display: flex;
  transition-property: transform;
  transition-timing-function: ease;
  will-change: transform;
}
.mx-carousel .swiper-slide { flex-shrink: 0; height: auto; }
.elementor-widget-loop-carousel .swiper-pagination {
  position: relative; display: flex; justify-content: center; gap: 8px; margin-top: 20px;
}
.elementor-widget-loop-carousel .swiper-pagination-bullet {
  width: 8px; height: 8px; border-radius: 50%; background: #000; opacity: .2; cursor: pointer; display: inline-block;
}
.elementor-widget-loop-carousel .swiper-pagination-bullet-active { opacity: 1; background: var(--e-global-color-primary, #001489); }
.elementor-widget-loop-carousel .elementor-swiper-button { cursor: pointer; }

/* ---------- فرم ---------- */
.elementor-form-waiting { opacity: .65; pointer-events: none; }
.elementor-form .elementor-message { margin: 14px 0 0; font-size: 14px; line-height: 1.8; }
.elementor-form .elementor-message-success { color: #1a7f37; }
.elementor-form .elementor-message-danger  { color: #c8007a; }

/* ---------- پایه‌ی پنجره‌ی منوی موبایل (قبلاً با dialog.js المنتور تزریق می‌شد) ---------- */
.dialog-type-lightbox { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 9999; }
.elementor-popup-modal .dialog-widget-content { position: relative; }
.dialog-message { line-height: 1.5; box-sizing: border-box; }
.dialog-close-button { cursor: pointer; position: absolute; line-height: 1; font-size: 20px; text-decoration: none; }
