.rahino-countries-carousel {
  --rahino-country-height: 440px;
  --rahino-country-radius: 24px;
  --rahino-country-transition: 0.3s ease;
  position: relative;
  width: 100%;
}

.rahino-countries-carousel__swiper {
  overflow: hidden;
  direction: ltr !important; /* کماکان برای جهت حرکت صحیح Swiper روی ltr بماند */
}

.rahino-countries-carousel__swiper .swiper-wrapper {
  display: flex !important;
}

/* اسلایدهای کاملاً همسان و استاندارد بدون دستکاری عرض */
.rahino-countries-carousel__slide {
  height: auto;
  flex-shrink: 0;
  box-sizing: border-box;
}

.rahino-country-card {
  position: relative;
  height: var(--rahino-country-height);
  border-radius: var(--rahino-country-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(18, 34, 60, 0.06);
  direction: rtl; /* راست‌چین برای متون داخل کارت */
  width: 100%;
}

.rahino-country-card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.rahino-country-card__image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform var(--rahino-country-transition);
}

/* هاور ساده و استاندارد فقط روی بزرگنمایی عکس */
.rahino-country-card:hover .rahino-country-card__image {
  transform: scale(1.05);
}
.rahino-country-card:hover .rahino-country-card__active-icon {
  transform: scale(1) translateY(0) rotateY(0);
  opacity: 1;
  visibility: visible;
}
.rahino-country-card:hover .rahino-country-card__flag {
  transform: scale(1.1) rotateZ(180deg);
}
.rahino-country-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 34, 60, 0) 50%,
    rgba(18, 34, 60, 0.8) 100%
  );
  pointer-events: none;
}

.rahino-country-card__footer {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  backdrop-filter: blur(2px);
  z-index: 2;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
}
.rahino-country-card__flag {
  transition: all var(--ease1) 0.8s;
}
/* آیکون هواپیما دیگر پنهان نیست؛ به صورت ثابت و شیک در همه کارت‌ها نمایش داده می‌شود */
.rahino-country-card__active-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  transform: scale(0.8) translateY(40px) rotateY(80deg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--ease1) 0.6s;
}

.rahino-country-card__active-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.rahino-country-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rahino-country-card__title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  font-family: PeydaFaNumWeb;
  white-space: nowrap;
}

.rahino-country-card__flag {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* دکمه‌های ناوبری */
.rahino-countries-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  flex-direction: row-reverse;
}
.rahino-countries-carousel__arrow {
  background-color: #12223c !important;
  color: #fff !important;
  border-radius: 50px !important;
  transition: all var(--ease2) 0.4s !important;
}
.rahino-countries-carousel__arrow:hover {
  background-color: #fda311 !important;
}
.rahino-countries-carousel__arrow {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition:
    background-color 0.2s,
    opacity 0.2s;
}

.rahino-countries-carousel__arrow::after {
  content: none !important;
}

.rahino-countries-carousel__arrow--prev {
  background-color: #fda311;
  color: #fff;
}

.rahino-countries-carousel__arrow--next {
  background-color: #12223c;
  color: #fff;
}

.rahino-countries-carousel__arrow.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* بهینه‌سازی تبلت و موبایل */
@media (max-width: 768px) {
  .rahino-country-card__active-icon {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .rahino-countries-carousel {
    --rahino-country-height: 360px;
  }
  .rahino-country-card__title {
    font-size: 15px;
  }
}
