/* تعریف فونت لوکال - وزن معمولی */
@font-face {
  font-family: 'IRANSans';
  src: url('https://stylei.ir/wp-content/uploads/IRANSansWeb.woff2') format('woff2'),
       url('https://stylei.ir/wp-content/uploads/IRANSansWeb.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* تعریف فونت لوکال - وزن پررنگ */
@font-face {
  font-family: 'IRANSans';
  src: url('https://stylei.ir/wp-content/uploads/IRANSansWeb_Bold.woff2') format('woff2'),
       url('https://stylei.ir/wp-content/uploads/IRANSansWeb_Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}

/* استایل کلی سکشن */
.section-6-wrapper .section-six {
  padding: 40px 5px;
  font-family: 'IRANSans', sans-serif;
  text-align: center;
  background: ; /* رنگ بژ روشن برای حس حرفه‌ای */
  --icon-size: 20px; /* متغیر برای سایز آیکون‌ها - موبایل */
}

/* استایل عنوان */
.section-6-wrapper .section-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 40px;
  position: relative;
  font-family: 'IRANSans', sans-serif;
}

.section-6-wrapper .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #00BFFF; /* آبی فیروزه‌ای */
  border-radius: 2px;
}

/* استایل کاروسل */
.section-6-wrapper .experts-carousel {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

.section-6-wrapper .carousel__slider-container {
  overflow: hidden;
  position: relative;
}

.section-6-wrapper .carousel__slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 15px;
  padding: 0 10px;
  scrollbar-width: none; /* مخفی کردن اسکرول‌بار در فایرفاکس */
}

.section-6-wrapper .carousel__slider::-webkit-scrollbar {
  display: none; /* مخفی کردن اسکرول‌بار در کروم و سافاری */
}

/* استایل کارت متخصص */
.section-6-wrapper .expert-card {
  flex: 0 0 370px; /* عرض دقیق مطابق درخواست */
  height: 217px; /* ارتفاع دقیق مطابق درخواست */
  background: #FFFFFF; /* رنگ سفید */
  border-radius: 8px; /* گردی گوشه‌ها مطابق آچاره */
  padding: 15px;
  border: 1px solid #E0E0E0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.section-6-wrapper .expert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.section-6-wrapper .expert-card__header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.section-6-wrapper .expert-card__avatar img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: 10px;
}

.section-6-wrapper .expert-card__details {
  flex: 1;
  text-align: right;
}

.section-6-wrapper .expert-card__name {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin: 0;
  font-family: 'IRANSans', sans-serif;
}

.section-6-wrapper .expert-card__rating {
  display: flex;
  align-items: center;
  gap: 8px; /* فاصله بین مستطیل امتیاز و تعداد نظرات */
  margin-top: 5px;
}

.section-6-wrapper .rating-box {
  display: flex;
  align-items: center;
  gap: 3px; /* فاصله کم بین عدد و ستاره */
  background: #FFF9E5; /* پس‌زمینه زرد کمرنگ */
  border: 1px solid #FFD700; /* بوردر زرد طلایی */
  border-radius: 12px; /* گوشه‌های گرد */
  padding: 2px 6px; /* پدینگ داخلی */
}

.section-6-wrapper .rating-score {
  font-size: 12px;
  font-weight: bold;
  color: #333; /* رنگ متن تیره برای خوانایی */
}

.section-6-wrapper .rating-star {
  width: var(--icon-size);
  height: var(--icon-size);
}

.section-6-wrapper .rating-count {
  font-size: 12px;
  color: #666;
}

/* تخصص */
.section-6-wrapper .expert-card__specialty {
  font-size: 13px;
  color: #333;
  margin: 5px 0;
  text-align: right;
  font-family: 'IRANSans', sans-serif;
}

/* بج‌ها (اعتمادسنجی) */
.section-6-wrapper .expert-card__badges {
  list-style: none;
  padding: 8px 8px 0 8px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* دو ستون */
  gap: 5px; /* فاصله بین گزینه‌ها */
  text-align: right;
  flex-grow: 1;
}

.section-6-wrapper .expert-card__badges li {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #333;
  font-family: 'IRANSans', sans-serif;
}

.section-6-wrapper .badge-icon {
  width: var(--icon-size);
  height: var(--icon-size);
  margin-left: 5px;
}

/* تبلت */
@media (min-width: 768px) {
  .section-6-wrapper .section-six {
    padding: 50px 5px;
    --icon-size: 22px; /* سایز آیکون‌ها برای تبلت */
  }

  .section-6-wrapper .section-title {
    font-size: 32px;
  }

  .section-6-wrapper .expert-card__name {
    font-size: 16px;
  }

  .section-6-wrapper .expert-card__specialty {
    font-size: 14px;
  }

  .section-6-wrapper .expert-card__badges li {
    font-size: 13px;
  }
}

/* دسکتاپ */
@media (min-width: 1024px) {
  .section-6-wrapper .section-six {
    padding: 60px 5px;
    --icon-size: 24px; /* سایز آیکون‌ها برای دسکتاپ */
  }

  .section-6-wrapper .section-title {
    font-size: 36px;
  }

  .section-6-wrapper .experts-carousel {
    max-width: 900px;
  }

  .section-6-wrapper .expert-card__name {
    font-size: 18px;
  }

  .section-6-wrapper .expert-card__specialty {
    font-size: 15px;
  }

  .section-6-wrapper .expert-card__badges li {
    font-size: 14px;
  }
}