/**
 * FARS TEC - Optimized Dark Gaming Home Slider (YELLOW TEST MODE)
 */

/* ۱. کانتینر اصلی اسلایدر - تست زرد */
.homeslider-container {
  position: relative !important;
  display: block !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
  background-color: #FFE600 !important; /* زرد تست */
  border: 4px solid #FFE600 !important; /* کادر زرد تابلوی تست */
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 0 25px rgba(255, 230, 0, 0.7) !important;
}

/* ۲. لیست و رپر اسلایدر */
.homeslider,
.bx-wrapper,
.bx-viewport {
  position: relative !important;
  list-style: none !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: #FFE600 !important; /* زرد تست */
  background: #FFE600 !important;       /* زرد تست */
  border: none !important;
  box-shadow: none !important;
}

.homeslider li {
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  background-color: #FFE600 !important; /* زرد تست */
}

/* ۳. تصویر اسلایدر (فول‌عرض و متناسب با ابعاد ۱۱۱۰ در ۳۴۰) */
.homeslider img,
.homeslider-container img {
  display: block !important;
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 1110 / 340 !important;
  object-fit: cover !important;
  border: 0 !important;
  border-radius: 14px !important;
  background-color: #FFE600 !important; /* در صورت لود نشدن عکس، زمینه زرد شود */
}

/* ۴. کپشن و متن‌های روی بنر - تبدیل سفید به زرد و مشکی خوانا */
.homeslider .caption {
  display: block !important;
  position: absolute !important;
  z-index: 2 !important;
  font-size: 1.05rem !important;
  font-family: inherit !important;
  color: #FFE600 !important; /* متن‌ها کاملاً زرد */
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9) !important;
  background: linear-gradient(0deg, rgba(11, 14, 20, 0.95) 0%, rgba(11, 14, 20, 0.6) 70%, transparent 100%) !important;
  right: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  padding: 15px 25px !important;
  margin: 0 !important;
  max-width: none !important;
  border-bottom: 3px solid #FFE600 !important; /* خط پایین زرد */
}

.homeslider .caption h2,
.homeslider .caption h3,
.homeslider .caption p,
.homeslider .caption span {
  color: #FFE600 !important; /* تمام تیترها و پاراگراف‌ها زرد */
}

/* ۵. دکمه‌های چپ و راست ناوبری */
.homeslider_nav,
.bx-controls-direction a {
  position: absolute !important;
  -webkit-tap-highlight-color: transparent !important;
  top: 50% !important;
  right: 14px !important;
  opacity: 0.95 !important;
  z-index: 10 !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  text-decoration: none !important;
  height: 44px !important;
  width: 44px !important;
  background-color: #FFE600 !important; /* پس‌زمینه دکمه‌ها زرد */
  border: 2px solid #000000 !important;
  border-radius: 50% !important;
  transform: translateY(-50%) !important;
  transition: all 0.3s ease !important;
}

.homeslider_nav:hover,
.bx-controls-direction a:hover {
  opacity: 1 !important;
  background-color: #FFD700 !important;
  border-color: #000000 !important;
  box-shadow: 0 0 16px rgba(255, 230, 0, 0.9) !important;
}

.homeslider_nav.next,
.bx-controls-direction .bx-next {
  right: auto !important;
  left: 14px !important;
}

/* ۶. بولت‌ها / نقاط پایین اسلایدر */
.bx-pager {
  bottom: 12px !important;
  position: absolute !important;
  width: 100% !important;
  text-align: center !important;
  z-index: 5 !important;
}

.bx-pager-item a {
  background: #FFE600 !important; /* نقطه‌ها زرد */
  border: 1px solid #000000 !important;
}

.bx-pager-item a.active {
  background: #FFA500 !important; /* نقطه فعال نارنجی-طلایی */
  box-shadow: 0 0 10px #FFE600 !important;
}

/* ==========================================
   تنظیمات واکنش‌گرا (موبایل و تبلت)
   ========================================== */
@media (max-width: 768px) {
  .homeslider-container {
    margin-bottom: 12px !important;
    border-radius: 8px !important;
    background-color: #FFE600 !important;
  }

  .homeslider img,
  .homeslider-container img {
    border-radius: 8px !important;
    aspect-ratio: auto !important;
    min-height: 140px !important;
    background-color: #FFE600 !important;
  }

  .homeslider .caption {
    font-size: 0.8rem !important;
    padding: 8px 12px !important;
    color: #FFE600 !important;
  }

  .homeslider_nav,
  .bx-controls-direction a {
    height: 34px !important;
    width: 34px !important;
    opacity: 0.85 !important;
    background-color: #FFE600 !important;
  }
}
