/* --- کانتینر اصلی ویجت پرونده‌های موفق --- */
.rahino-success-cases {
  --case-card-radius: 30px;
  --case-card-bg: #ffffff;
  --case-card-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
  --case-transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);

  position: relative;
  width: 100%;
  direction: rtl; /* هماهنگی کامل با سایت‌های فارسی */
}
.LastSecVisaSucs{
    position: relative;
    z-index: 0;
}
.LastSecVisaSucs .rahino-custom-heading__title {
  color: #fff;
  font-size: 32px !important;
}
.LastSecVisaSucs .rahino-custom-heading__subtitle {
  color: #fff;
  font-size: 16px !important;
}

/* ساختار Swiper */
.rahino-success-cases__swiper {
  width: 100%;
  overflow: hidden;
  direction: ltr !important; /* لود حرکت اسلایدر از چپ به راست استاندارد */
  padding: 15px 0 25px 0; /* ایجاد فضا برای نریختن سایه کارت‌ها */
}

.rahino-success-cases__swiper .swiper-wrapper {
  display: flex !important;
}

/* اسلایدهای استاندارد */
.rahino-success-cases__slide {
  height: auto;
  flex-shrink: 0;
  box-sizing: border-box;
  text-decoration: none !important; /* حذف خط زیر لینک در صورت لینک‌دار بودن */
  display: block;
}

/* --- استایل اختصاصی کارت پرونده (مطابق تصویر طرح) --- */
.rahino-case-card {
  background-color: var(--case-card-bg);
  border-radius: 24px;
  box-shadow: var(--case-card-shadow);
  border: 1px solid #e5e5e5;
  padding: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition:
    transform var(--case-transition),
    box-shadow var(--case-transition);
}

/* افکت هوور ملایم روی کل کارت */
.rahino-case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 45px rgba(18, 34, 60, 0.08);
}
.rahino-case-card:hover .LogoHovers {
  opacity: 1;
  visibility: visible;
}
.rahino-case-card:hover .LogoHovers img{
  transform: scale(0.99) translateY(0) rotateY(0);
}
.LogoHovers {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  position: absolute;
  height: 100%;
  background: #d9d9d90d;
  backdrop-filter: blur(3px);
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: all var(--ease2) 0.4s;
}
.LogoHovers img {
  transform: scale(0.8) translateY(40px) rotateY(90deg);
  transition: all var(--ease1) 0.7s;
}
/* بخش تصویر سند/پرونده */
.rahino-case-card__media {
  position: relative;
  width: 100%;
  background-color: #fafbfe;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #e5e5e5;
  height: 300px;
}

.rahino-case-card__image {
  border: 1px solid #e5e5e5 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-fit: cover !important;
  transition: transform var(--case-transition);
}

/* افکت بزرگنمایی تصویر هنگام هوور */
.rahino-case-card:hover .rahino-case-card__image {
  transform: scale(1.03);
}

/* --- فوتر کارت (بخش عناوین و برچسب‌ها دقیقا مثل طرح) --- */
.rahino-case-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between; /* پخش شدن عنوان در یک سمت و برچسب در سمت دیگر */
  gap: 12px;
  padding: 32px 0;
  padding-bottom: 32px;
  background-color: #ffffff;
  padding-bottom: 4px;
}

/* استایل عنوان کشور */
.rahino-case-card__title {
  font-size: 16px;
  font-weight: 600;
  color: #12223c; /* رنگ تیره و خوانا مطابق قالب شما */
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* استایل برچسب بیضی‌شکل نوع ویزا */
.rahino-case-card__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: PeydaFaNumWeb, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #fff; /* رنگ نارنجی برند شما */
  background-color: #fda311;
  padding: 6px 16px;
  border-radius: 100px; /* بیضی کامل */
  white-space: nowrap;
  transition:
    background-color 0.25s,
    color 0.25s;
}

/* تغییر رنگ لیبل متناسب با تغییر وضعیت هوور کارت */
.rahino-case-card:hover .rahino-case-card__label {
  background-color: #12223c;
  color: #ffffff;
}

/* --- سیستم ناوبری (دکمه‌های قبلی و بعدی پایین اسلایدر) --- */
.rahino-success-cases__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}

.rahino-success-cases__arrow {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background-color: #12223c; /* رنگ اصلی سورمه‌ای */
  color: #ffffff;
  cursor: pointer;
  transition:
    background-color 0.25s,
    opacity 0.25s,
    transform 0.2s;
}

/* دکمه قبلی (رنگ متمایز نارنجی طبق طرح قبلی شما در صورت تمایل) */
.rahino-success-cases__arrow--prev {
  background-color: #fda311;
}

.rahino-success-cases__arrow:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.rahino-success-cases__arrow svg {
  display: block;
  transition: transform 0.2s;
}

/* افکت غیرفعال بودن دکمه‌ها در ابتدا یا انتهای اسلایدر */
.rahino-success-cases__arrow.swiper-button-disabled {
  opacity: 0.3;
  pointer-events: none;
  background-color: #cccccc;
  color: #666666;
}

/* --- ریسپانسیو اختصاصی برای موبایل (حالت نمایش لبه‌های کناری) --- */
@media (max-width: 767px) {
.LastSecVisaSucs .rahino-custom-heading__title {
  font-size: clamp(1.25rem, 0.8846rem + 1.5385vw, 2.375rem) !important;
}
.LastSecVisaSucs .rahino-custom-heading__subtitle {
  font-size: clamp(1rem, 0.9594rem + 0.1709vw, 1.125rem) !important;
}

  .LastSecVisaSucs {
    padding: 0 !important;
  }
  .rahino-case-card__media {
    border-radius: 12px;
    height: 260px;
  }
  .rahino-case-card {
    padding: 10px;
    border-radius: 16px;
  }
  .rahino-success-cases {
    --case-card-radius: 24px;
  }

  /* فعال‌سازی قابلیت دیدن آیتم‌های کناری به صورت ستاره‌ای روی موبایل */
  .rahino-success-cases__swiper {
    clip-path: inset(
      0 -100px 0 -100px
    ); /* اجازه به سایه و لبه‌های آیتم‌های کناری برای نمایش خروج از فریم کانتینر */
  }

  .rahino-case-card__footer {
    padding: 16px;
  }

  .rahino-case-card__title {
    font-size: 15px;
  }

  .rahino-case-card__label {
    font-size: 11px;
    padding: 4px 12px;
  }
}
