/* فقط داخل ریشه اسلایدر اعمال می‌شود */
.hs3d-root { color:#f4f5f7; }
.hs3d-root * { box-sizing: border-box; }

/* اسلایدر */
.hs3d-slider{
  position:relative;
  width:min(92vw, var(--hs3d-width, 1200px));
  height:var(--hs3d-height, 460px);
  overflow:visible;           /* لازم برای overlap تصویر */
  perspective:1000px;
  margin:0 auto;
}

.hs3d-slides{
  position:relative;
  width:100%;
  height:100%;
  overflow:visible;           /* ساختار اصلی شما حفظ شد */
}

/* کارت — absolute center (حفظ ساختار قبلی) */
.hs3d-card{
  position:absolute; top:50%; left:50%;
  width:var(--hs3d-card-w, 280px);
  height:var(--hs3d-card-h, 360px);
  border-radius:22px; text-align:center;
  transform:translate(-50%,-50%) scale(.7);
  transition:transform .6s ease, filter .6s ease, z-index .3s ease;
  will-change:transform,filter;
  filter:blur(6px) brightness(.85) saturate(.95);
  display:block; overflow:visible;
}

/* پنل گرادیانی — فقط تغییرِ height→min-height و کمی padding-bottom */
.hs3d-cardbox{
  position:relative;
  width:100%;
  min-height:270px;           /* قبلاً height:270px */
  margin-top:40px;
  border-radius:15px;
  background: linear-gradient(180deg,
    rgba(204,163,80,.22) 0%,
    rgba(57,50,33,.70) 55%,
    rgba(34,32,26,.95) 100%);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 24px 50px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.04);
  padding:110px 14px 20px;    /* کف کمی بیشتر تا بج تاریخ جا شود */
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  overflow:visible;
}

/* تصویر overlap */
.hs3d-cardbox img{
  width:70%; height:180px; object-fit:cover; border-radius:16px;
  position:absolute; top:-90px; left:50%; transform:translateX(-50%);
  z-index:2; display:block;
}

/* تیتر و اجزا */
.hs3d-title{ margin:4px 0 8px; font-size:18px; font-weight:800 }
/* پنل‌ها کنار هم */
.hs3d-panel {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;              /* فاصله بین عنوان و بج */
  margin: 4px 0;         /* فاصله عمودی کمتر */
  padding: 6px 10px;     /* پدینگ کوچکتر برای جمع‌تر شدن */
}

/* عنوان بج */
.hs3d-badgetitle {
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 0;            /* حذف پدینگ اضافی */
  margin: 0;
}

/* بج روز مانده */
.hs3d-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: linear-gradient(90deg,#d6a64d,#f0cf7a);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  margin: 0;
  box-shadow: 0 4px 12px rgba(214,166,77,.35);
}

/* بج تاریخ مسابقه */
.hs3d-historybadge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background-color:#FFE9BC;
  color:#CCA350;
  font-weight: 700;
  font-size: 12px;
  margin: 0;
  box-shadow: 0 4px 12px rgba(214,166,77,.35);
}

.hs3d-hr{ border:none; height:1px; background-color:#FFFFFF26; margin:10px 0 12px; border-radius:2px }

/* دکمه‌ها (همان ساختار قبلی) */
.hs3d-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:52px; height:52px; border:none; border-radius:50%;
  background:linear-gradient(135deg,#d6a64d,#f0cf7a);
  box-shadow:0 10px 24px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.2);
  display:grid; place-items:center; cursor:pointer; z-index:10000;
}
.hs3d-nav svg{ width:24px; height:24px; fill:#141414 }
.hs3d-left{ left:12px }
.hs3d-right{ right:12px }

/* دات‌ها */
.hs3d-dots{ position:absolute; bottom:10px; left:50%; transform:translateX(-50%); display:flex; gap:6px; z-index:10 }
.hs3d-dots span{ width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.25) }
.hs3d-dots span.hs3d-active{ background:linear-gradient(90deg,#d6a64d,#f0cf7a) }

/* ریسپانسیو — فقط افزایش فضای عمودی و کوچک‌تر کردن تصویر برای جا شدن «تاریخ مسابقه» */
@media (max-width:640px){
  .hs3d-root{
    --hs3d-card-w:240px;
    --hs3d-card-h:280px;      /* از 330 به 360 برای نفس بیشتر */
    --hs3d-step:200px;
  }
  .hs3d-slider{ height:450px }/* از 430 به 450 */
  .hs3d-cardbox{
    min-height:280px;         /* ارتفاع مؤثر بیشتر */
    padding-top:120px;        /* جا برای تصویر overlap */
    padding-bottom:10px;      /* جا برای بج تاریخ */
  }
  .hs3d-cardbox img{
    height:160px;             /* تصویر کوچکتر تا متن جا شود */
    top:-80px;
  }
  .hs3d-title{ font-size:16px; }
}

/* اگر هنوز متن‌ زیاد بود، کمی بیشتر قد بده */
@media (max-width:480px){
  .hs3d-cardbox{ min-height:340px; }
}
