.hero-curved-fixed-slider {
  position: relative;
  overflow: hidden;

  --gradient-dir: to right;
  --align-content: flex-start;

  --hero-title-size: clamp(1.15rem, 2.8vw, 2.6rem);
  --hero-desc-size: clamp(0.78rem, 1.05vw, 1rem);
  --hero-link-size: clamp(0.76rem, 0.95vw, 0.95rem);

  --hero-btn-padding-y: clamp(0.45rem, 0.75vw, 0.7rem);
  --hero-btn-padding-x: clamp(0.9rem, 1.6vw, 1.35rem);
  --hero-btn-radius: clamp(24px, 3vw, 40px);
  --hero-btn-gap: clamp(8px, 1vw, 12px);

  --hero-content-padding: clamp(14px, 4vw, 42px);
  --hero-control-width: clamp(36px, 4vw, 58px);
  --hero-control-icon-size: clamp(32px, 3.8vw, 46px);


  cursor: grab;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
}

.hero-curved-fixed-slider.is-dragging,
.hero-curved-fixed-slider:active {
  cursor: grabbing;
}

.hero-curved-fixed-slider[dir="rtl"],
[dir="rtl"] .hero-curved-fixed-slider {
  --gradient-dir: to left;
  --align-content: flex-start;
}

.hero-curved-fixed-slider .hero-slide {
  position: relative;
  width: 100%;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.hero-curved-fixed-slider .hero-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.hero-curved-fixed-slider .hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.hero-curved-fixed-slider .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    var(--gradient-dir),
    rgba(180, 140, 50, 0.3) 10%,
    rgba(180, 140, 50, 0.1) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* محتوا */
.hero-curved-fixed-slider .hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-inline: var(--hero-content-padding);
  color: #fff;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.hero-curved-fixed-slider .hero-content .content-box {
  max-width: 80%;
  text-align: start;
}

.hero-curved-fixed-slider .hero-title {
  font-size: var(--hero-title-size);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: clamp(0.45rem, 0.9vw, 0.8rem);
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.hero-curved-fixed-slider .hero-desc {
  font-size: var(--hero-desc-size);
  line-height: 1.9;
  margin-bottom: clamp(0.8rem, 1.4vw, 1.4rem);
  color: rgba(255, 255, 255, 0.9);
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* دکمه‌ها و لینک‌ها (اعمال سایز داینامیک) */
.hero-curved-fixed-slider .hero-btns {
  display: flex;
  gap: var(--hero-btn-gap);
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-curved-fixed-slider .hero-btns .btn,
.hero-curved-fixed-slider .hero-btns a,
.hero-curved-fixed-slider .hero-btns button {
  font-size: var(--hero-link-size) !important;
  padding: var(--hero-btn-padding-y) var(--hero-btn-padding-x) !important;
  border-radius: var(--hero-btn-radius) !important;
  font-weight: 700;
  line-height: 1.4;
  position: relative;
  z-index: 6;
}

/* ---------------- CURVE SVG ---------------- */

.hero-curved-fixed-slider .hero-curve {
  position: absolute;
  bottom: -2px;
  inset-inline-start: 0;
  width: 100%;
  z-index: 3;
  line-height: 0;
  pointer-events: none;
}

.hero-curved-fixed-slider .hero-curve svg,
.hero-curved-fixed-slider .hero-curve img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

/* ---------------- CONTROLS ---------------- */

.hero-curved-fixed-slider .carousel-control-prev,
.hero-curved-fixed-slider .carousel-control-next {
  width: var(--hero-control-width);
  z-index: 5;
}

.hero-curved-fixed-slider .carousel-control-prev-icon,
.hero-curved-fixed-slider .carousel-control-next-icon {
  width: var(--hero-control-icon-size);
  height: var(--hero-control-icon-size);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.0);
  backdrop-filter: blur(5px);
  background-size: 45%;
  transition: 0.3s;
}

.hero-curved-fixed-slider .carousel-control-prev:hover .carousel-control-prev-icon,
.hero-curved-fixed-slider .carousel-control-next:hover .carousel-control-next-icon {
  background-color: rgba(255, 255, 255, 0.0);
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 992px) {
  .hero-curved-fixed-slider .hero-content {
    justify-content: center;
    text-align: center;
  }

  .hero-curved-fixed-slider .hero-content .content-box {
    margin: 0 auto;
    max-width: 90%;
  }

  .hero-curved-fixed-slider .hero-btns {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-curved-fixed-slider .hero-title {
    line-height: 1.5;
  }

  .hero-curved-fixed-slider .hero-desc {
    line-height: 1.8;
  }
}

/* ---------------- PROGRESS BAR ---------------- */

.hero-curved-fixed-slider .hero-progress {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
}

.hero-curved-fixed-slider .hero-progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  background: #b48a36;
  transition: width 0.3s linear;
}
