
/* شروع کد هیرو */
.slider-container {
  position: relative;
  width: 100%;
  /* Maximum width of the slider */
  margin: 20px 0;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: 230px;
  direction: ltr;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
  direction: ltr;
  /* Height of the slider content */
}

.slide {
  min-width: calc(100% - 20px);
  margin: 0px 10px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: white;
  background-size: cover;
  background-repeat: no-repeat;
  background-size: 100%;
  border-radius: 16px;
}

.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none !important;
  touch-action: none !important;
  transform: translateY(-50%);
  padding: 0 10px;
  box-sizing: border-box;
}

.control-button {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 1.5rem;
  pointer-events: auto !important;
  touch-action: auto !important;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.control-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.dots-container {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  direction: ltr;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: white;
}

@media (max-width : 670px) {
  .control-button {
    display: none;
  }
}

@media (min-width: 768px) {
  .slider-container {
    height: 400px;
  }
}

@media (min-width: 1024px) {
  .slider-container {
    height: 460px;
  }
}