.hero {
  position: relative;
  height: 95vh;
  overflow: hidden;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.1);
  transition: all 2s ease-in-out;
}

.hero-slider .slide1 {
  background-image: url('../img/hero1.jpg');
}

.hero-slider .slide2 {
  background-image: url('../img/hero2.jpg');
}

.hero-slider .slide3 {
  background-image: url('../img/hero3.jpg');
}

.hero-slider .slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-slider .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-slider .content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  z-index: 2;
  width: 80%;
}

.hero-slider .content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero-slider .content p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}
.hero-slider .content .slider-btns{
  display: flex;
  justify-content: center;
}
.hero-slider .content .slider-btns .btn-hero{
  margin: 0 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 17px;
  display: inline-flex;       /* خلي الزر فليكس */
  align-items: center;        /* وسط النص والخط عمودياً */
  position: relative;   

}
.hero-slider .content .slider-btns .btn-hero2{
  color: var(--primary-hover);
}
.hero-slider .content .slider-btns .btn-hero2::after {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background-color: #fff;
  margin-right: 8px;
}


.hero-slider .content .slider-btns .btn-hero::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background-color: #fff;
  margin-left: 8px;
}

.hero-slider .content .btn:hover {
  background: var(--primary-hover, #52c2f1);
}

/* الأزرار */
.slider-controls span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: #fff;
  padding: 10px;
  cursor: pointer;
  user-select: none;
  z-index: 3;
}

/* الأزرار (عكس الاتجاه) */
.slider-controls .prev {
  right: 20px;
  /* تبقى يمين */
  left: auto;
}

.slider-controls .next {
  left: 20px;
  /* تبقى شمال */
  right: auto;
}
/* صندوق النقاط */
.dots {
  position: absolute;
  bottom: 20px;         /* تحت السلايدر */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

/* شكل النقطة */
.dots span {
  display: block;
  width: 12px;
  height: 12px;
  background: var(--primary-hover);
  border-radius: 50%;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
}

/* النقطة النشطة */
.dots span.active {
  opacity: 1;
  transform: scale(1.2);
}

@media (max-width: 768px) {
 /* الأزرار (عكس الاتجاه) */
.slider-controls .prev {
  right: 0px;
  /* تبقى يمين */
  left: auto;
}

.slider-controls .next {
  left: 0px;
  /* تبقى شمال */
  right: auto;
}

}