/* ══════════════════════════════════════
   3D ICONS & PREMIUM CARD STYLES
   ══════════════════════════════════════ */

/* آیکون‌های سه‌بعدی SVG inline */
.icon3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* کارت اسلایدر — نسخه پریمیوم */
.slider-card {
  flex: 0 0 200px;
  border-radius: 18px;
  background: #fff;
  border: 1.5px solid #ede9fe;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s, border-color .3s;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}
.slider-card:hover {
  transform: translateY(-7px) scale(1.02);
  box-shadow: 0 16px 40px rgba(108,43,217,.18);
  border-color: #9b5de5;
}

/* تامبنیل کارت — با گرادیان پریمیوم */
.sc-thumb {
  height: 148px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-thumb-bg {
  position: absolute;
  inset: 0;
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.slider-card:hover .sc-thumb-bg { transform: scale(1.07); }

/* آیکون‌های سه‌بعدی — کانتینر */
.icon3d-wrap {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.25));
  transition: transform .3s, filter .3s;
}
.slider-card:hover .icon3d-wrap {
  transform: translateY(-4px) rotate(-3deg);
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.32));
}

/* تگ درس */
.sc-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 100px;
  color: #fff;
  letter-spacing: .3px;
  backdrop-filter: blur(8px);
  z-index: 3;
}
.sc-dur {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 7px;
  backdrop-filter: blur(8px);
  z-index: 3;
}
.sc-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 46px; height: 46px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .3s;
  z-index: 3;
}
.slider-card:hover .sc-play { transform: translate(-50%,-50%) scale(1.14); }

.sc-body { padding: 14px 16px 16px; }
.sc-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 6px;
  color: #1a1a2e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sc-meta {
  font-size: 11.5px;
  color: #9b5de5;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* کارت "مشاهده همه" */
.sc-more-card {
  flex: 0 0 130px;
  border-radius: 18px;
  border: 2px dashed #c4a0f0;
  background: #f8f5ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all .3s;
  min-height: 196px;
  text-decoration: none;
}
.sc-more-card:hover {
  border-color: #6c2bd9;
  background: #f0e8ff;
  transform: translateY(-4px);
}
.sc-more-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #ede9fe;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: #6c2bd9;
  transition: transform .3s;
}
.sc-more-card:hover .sc-more-icon { transform: scale(1.15); }
.sc-more-label {
  font-size: 12px;
  font-weight: 800;
  color: #6c2bd9;
  text-align: center;
  line-height: 1.4;
}

/* هدر بخش — بهبود یافته */
.sec-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
  flex-wrap: wrap;
}
.sec-header-left { display: flex; flex-direction: column; gap: 4px; }
.sec-tag-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 6px;
  width: fit-content;
}
.sec-title-new {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 900;
  color: #1a1a2e;
  line-height: 1.25;
}
.sec-title-new .hl { color: #6c2bd9; }
.see-all-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1.5px solid #c4a0f0;
  color: #6c2bd9;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s;
  background: transparent;
  cursor: pointer;
  font-family: 'Vazirmatn', sans-serif;
}
.see-all-new:hover { background: #f0e8ff; border-color: #6c2bd9; }

/* ردیف اسلایدر */
.h-slider-wrap { position: relative; }
.h-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.h-slider::-webkit-scrollbar { display: none; }

.slider-arrow {
  position: absolute;
  top: 50%; transform: translateY(-60%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #ede9fe;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  color: #6c2bd9;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(108,43,217,.14);
  transition: all .25s;
  z-index: 10;
}
.slider-arrow:hover { background: #6c2bd9; color: #fff; border-color: #6c2bd9; box-shadow: 0 6px 20px rgba(108,43,217,.3); }
.slider-prev { right: -21px; }
.slider-next { left: -21px; }

/* سکشن‌ها */
.home-section { padding: 64px 0 48px; scroll-margin-top: 130px; }
.home-section.alt { background: #f8f5ff; }

/* نوار تب */
.sections-nav-bar {
  position: sticky;
  top: 70px;
  z-index: 90;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid #ede9fe;
}
.snav-inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.snav-inner::-webkit-scrollbar { display: none; }
.snav-btn {
  padding: 16px 24px;
  border: none;
  background: transparent;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 7px;
}
.snav-btn::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 3px;
  background: #6c2bd9;
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.snav-btn:hover { color: #6c2bd9; }
.snav-btn.active { color: #6c2bd9; font-weight: 800; }
.snav-btn.active::after { transform: scaleX(1); }
.snav-btn .snav-ico { font-size: 18px; }

@media(max-width: 768px) {
  .slider-arrow { display: none; }
  .slider-card { flex: 0 0 168px; }
  .sc-thumb { height: 120px; }
}
