/* === بنر اصلی === */
.banner {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  margin-top: 0;
  border-radius: 0; /* خود بنر صاف بماند */
  background: #381a17; /* رنگ هماهنگ با پس‌زمینه تصویر بنر */
}

/* کانتینر اسلایدها و هیرو */
.banner-hero-container,
.banner-slide-container {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s ease-in-out;
}

/* هر اسلاید */
.banner-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  border-radius: 0; /* لبه اسلاید صاف */
}

/* تصویر داخل هیرو و اسلاید */
.banner-hero-img,
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  border-radius: 0;
  display: block;
}

/* === محتوای متنی روی بنر (سمت چپ در دسکتاپ) === */
.banner-hero-content {
  position: absolute;
  left: clamp(20px, 3.5vw, 44px);
  top: 40%;
  transform: translateY(-50%);
  max-width: clamp(380px, 36vw, 490px);
  z-index: 15;
  text-align: right;
  direction: rtl;
  pointer-events: auto;
}

/* نشان بالای تیتر (Badge) */
.banner-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.45);
  padding: 6px 14px;
  border-radius: 30px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-ui, sans-serif);
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.banner-hero-badge .badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* تیتر اصلی روی بنر */
.banner-hero-title {
  color: #ffffff;
  font-family: var(--font-display, 'Sahel', 'Vazirmatn', sans-serif);
  font-size: clamp(1.35rem, 2.1vw + 0.3rem, 2.25rem);
  font-weight: 700;
  line-height: 1.38;
  margin: 0 0 12px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.banner-hero-highlight {
  color: #F8DC88;
  background: linear-gradient(90deg, #FFF0B8 0%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* توضیحات روی بنر */
.banner-hero-desc {
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-base, 'Vazirmatn', sans-serif);
  font-size: clamp(0.86rem, 0.88vw + 0.1rem, 0.98rem);
  line-height: 1.8;
  max-width: 440px;
  margin: 0 0 22px 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* دکمه‌های اقدام روی بنر */
.banner-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  font-family: var(--font-ui, sans-serif);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.banner-btn-gold {
  background: linear-gradient(135deg, #E6B800 0%, #D4AF37 100%);
  color: #1A1A2E !important;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.banner-btn-gold:hover {
  background: linear-gradient(135deg, #F0C419 0%, #E6B800 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.banner-btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.banner-btn-outline:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* دکمه‌های قبلی / بعدی بنر */
.banner-prev,
.banner-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.6);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 8px;
}

.banner-prev { right: 10px; }
.banner-next { left: 10px; }

/* === نوار سفید روی بنر (feature-bar) === */
.feature-bar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 14px 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  gap: 16px;
  width: min(1200px, 94%);
  z-index: 20;
  flex-wrap: nowrap;
  border-radius: 12px;
}

/* هر آیتم در نوار */
.feature-item {
  position: relative;
  text-align: center;
  display: flex;
  align-items: center;
}

/* خط جداکننده بین آیتم‌ها */
.feature-item:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 22px;
  background-color: #E6DFD5;
  margin-right: 14px;
  flex-shrink: 0;
}

/* حالت هاور و استایل نوشته‌ها */
.tooltip {
  cursor: pointer;
  position: relative;
}

.feature-text {
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border 0.3s;
  font-size: 13.5px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}

.tooltip:hover .feature-text {
  border-color: var(--primary); /* رنگ طلایی برند */
}

/* پنجره توضیحات (tooltip) */
.tooltip-box {
  position: absolute;
  bottom: 135%;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  background: #ffffff;
  color: #333;
  font-size: 13px;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 100;
  transform: translate(-50%, 10px); /* شروع انیمیشن با بالا آمدن خفیف */

  direction: rtl;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: auto; /* فعال کردن رویدادهای موس روی کل تولتیپ */
}

/* پل ارتباطی برای پر کردن فاصله فیزیکی و جلوگیری از بسته‌شدن تولتیپ هنگام جابجایی ماوس */
.tooltip-box::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 30px;
  background: transparent;
}

.tooltip-box::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -7px;
  border-width: 7px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

.tooltip:hover .tooltip-box {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

/* لینک داخل tooltip */
.tooltip-box a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.tooltip-box a:hover {
  color: #b3883c;
  text-decoration: underline;
}

/* آیکون + متن */
.feature-icon-text {
  transform: scale(1) translateY(2px);
  font-family: var(--font-ui);
  display: inline-flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 6px;
}

.feature-icon-text svg {
  flex-shrink: 0;
}

/* اگر بخش امتیاز/ستاره داشتی و می‌خواهی برود سمت چپ (در RTL) */
.feature-review {
  margin-right: auto;
}

/* — ریسپانسیو برای تبلت و لپ‌تاپ‌های کوچک — */
@media (max-width: 1024px) {
  .banner {
    height: 440px;
  }
  .banner-hero-img {
    object-position: 85% center;
  }
  .banner-hero-content {
    left: 20px;
    max-width: 420px;
    top: 38%;
  }
  .banner-hero-title {
    font-size: 1.6rem;
  }
  .banner-hero-desc {
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 16px;
    max-width: 380px;
  }
  .feature-bar {
    width: min(100% - 24px, 96%);
    padding: 12px 16px;
    gap: 12px;
  }
  .feature-text {
    font-size: 12.5px;
  }
}

/* — ریسپانسیو برای تبلت و موبایل — */
@media (max-width: 768px) {
  .banner {
    height: auto;
    overflow: visible;
    margin-bottom: 0;
    background: #1a0b0a;
  }

  .banner-hero-container {
    height: 390px;
    overflow: hidden;
    margin-bottom: 0;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .banner-hero-img {
    object-position: center top;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .banner-hero-content {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 20px;
    top: auto;
    transform: none;
    max-width: 440px;
    margin: 0 auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    border: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
  }

  .banner-hero-badge {
    font-size: 11.5px;
    padding: 5px 14px;
    margin-bottom: 8px;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  }

  .banner-hero-title {
    font-size: 1.35rem;
    line-height: 1.4;
    margin-bottom: 12px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
  }

  .banner-hero-desc {
    display: none; /* مخفی کردن توضیحات در موبایل برای سادگی و تمیزی */
  }

  .banner-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
    width: 100%;
    max-width: 380px;
  }

  .banner-btn {
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
  }

  .banner-btn-gold {
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.45);
  }

  .banner-btn-outline {
    background: rgba(255, 255, 255, 0.14);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .feature-bar {
    position: static;
    transform: none;
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    gap: 16px;
    border-radius: 0;
    background: #f3f4f6;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE / Edge */
  }

  .feature-bar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .feature-item {
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
  }

  .feature-review {
    margin-right: 0;
  }

  .feature-item:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 18px;
    background-color: #d1d5db;
    margin-left: 0;
    margin-right: 16px;
    flex-shrink: 0;
  }

  .feature-text {
    font-size: 12.5px;
    white-space: nowrap;
    padding-bottom: 0;
    color: #374151;
  }

  .tooltip-box {
    display: none !important; /* جلوگیری از به هم ریختگی اسکرول در لمس موبایل */
  }
}

@media (max-width: 480px) {
  .banner-hero-container {
    height: 360px;
  }

  .banner-hero-content {
    left: 12px;
    right: 12px;
    bottom: 16px;
    max-width: 100%;
  }

  .banner-hero-title {
    font-size: 1.18rem;
    line-height: 1.38;
    margin-bottom: 10px;
  }

  .banner-hero-badge {
    font-size: 11px;
    padding: 4px 10px;
    margin-bottom: 6px;
  }

  .banner-hero-actions {
    gap: 8px;
    max-width: 100%;
  }

  .banner-btn {
    padding: 9px 8px;
    font-size: 12px;
    border-radius: 9px;
    gap: 5px;
  }

  .feature-bar {
    width: 100%;
    margin: 0;
    padding: 11px 14px;
    gap: 14px;
    border-radius: 0;
    background: #f3f4f6;
  }

  .feature-item {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .feature-item:not(:last-child)::after {
    margin-right: 14px;
    height: 15px;
    background-color: #d1d5db;
  }

  .feature-text {
    font-size: 11.5px;
  }

  .feature-icon-text svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
}

/* === مدال نمایش ویژگی‌ها در موبایل (Bottom Sheet) === */
.feature-mobile-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.feature-mobile-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.feature-mobile-modal {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 28px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  text-align: center;
  direction: rtl;
  margin: 0 auto;
}

.feature-mobile-modal-backdrop.active .feature-mobile-modal {
  transform: translateY(0);
}

.feature-modal-close {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.feature-modal-close:hover,
.feature-modal-close:active {
  background: #e5e7eb;
  color: #111827;
}

.feature-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.feature-modal-header svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.feature-modal-body {
  font-size: 13.5px;
  line-height: 1.8;
  color: #4b5563;
  text-align: right;
}

.feature-modal-body a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  background: #D4AF37;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13.5px;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.feature-modal-body a:hover,
.feature-modal-body a:active {
  background: #b8860b;
  transform: translateY(-1px);
}


