/* =========================================
   1) ضبط السوايبر داخل الفقرة
   ========================================= */

/* تصغير المسافة بين السلايدات داخل الـ swiper-element */
::slotted(swiper-slide) {
  margin-right: -40px !important;
  
}


/* السلايدر يسمح بخروج الكرت المكبّر */
.cmhs-consultants-slider {
  overflow: visible;
  height:520px;
}

.cmhs-consultants-slider .swiper-slide {
  display: flex;
  justify-content: center;
  margin-right: -70px !important;
  overflow: visible;
}

/* جعل الأسهم ثابتة فوق السلايدر */
swiper-container {
  position: relative;
}

/* الأسهم الذهبية */
swiper-container::part(button-prev),
swiper-container::part(button-next) {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #d3aa2d;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 50;
}

/* السهم اليسار */
swiper-container::part(button-prev) {
  left: 20px;
}

/* السهم اليمين */
swiper-container::part(button-next) {
  right: 20px;
}

/* Hover على الأسهم */
swiper-container::part(button-prev):hover,
swiper-container::part(button-next):hover {
  background: #b8901e;
}

/* =========================================
   2) تقسيم القسم إلى عمودين (عنوان + سلايدر)
   ========================================= */

.cmhs-consultants-section {
  height: 600px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  padding: 80px 6%;
}

.cmhs-left {
  flex: 0 0 30%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.cmhs-right {
  flex: 1;
}

/* نوسّط السلايدر ونحدد عرض أقصى */
.cmhs-consultants-slider-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* عنوان القسم */
.cmhs-consultants-title {
  font-size: 55px !important;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 50px;
  color: #000;
  text-align: left;
}

/* =========================================
   3) الكروت + تأثير الـ Hover
   ========================================= */

/* الكرت الأساسي */
.consultant-card {
  position: relative;
  overflow: visible;      /* مهم عشان ما ينقص المحتوى داخل الكرت */
  border-radius: 0;
  width: 340px;           /* الحجم الابتدائي (مثل ما حبيتيه) */
  height: 440px;
  background: #000;
  filter: grayscale(25%);
  transform-origin: center center;
  z-index: 1;

  /* حركة سريعة وناعمة بدون أي delay */
will-change: transform, box-shadow, filter;
  transform: translateZ(0);

  /* نجبر الترانزيشن يكون سريع بدون أي delay */
  transition: transform 0.25s ease-out,
              box-shadow 0.25s ease-out,
              filter 0.25s ease-out !important;
  transition-delay: 0s !important;
}

/* الصورة داخل الكرت */
.consultant-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* تملى الكرت بالكامل بدون تشويه */
  display: block;
  /* ما نستخدم transform هنا عشان ما تقص الصورة */
  transition: none;
  will-change: transform;
}

/* الـ overlay – الاسم + الوظيفة */
.consultant-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 22px 22px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0)
  );
  text-align: center;
}

/* الاسم */
.consultant-name {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  margin-top: -25px;
}

/* الوظيفة */
.consultant-position {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* تأثير الـ hover على الكرت نفسه */
.consultant-card:hover {
  transform: scale(1.16);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35);
  filter: none;
  z-index: 10;
}

.consultant-card:hover .consultant-photo {
  transform: none;
}

}


/* إلغاء أي transition / animation delay ممكن يكون جاي من الثيم */
.consultant-card,
.consultant-card * {
  transition-delay: 0s !important;
  animation-delay: 0s !important;
}
