
/* السلايدر نفسه */
/* حل أي scroll أفقي في الصفحة */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* تأكد إن أي سلايدر وأي wrapper لا يزيد عن 100% */
.swiper, .swiper-wrapper {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* مهم: امنع ظهور سلايد أو عنصر يزيد عن عرض الشاشة */
.swiper-slide, .category-item, .daal-course-card {
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

.category-slider {
  padding: 20px 0;
  background-color: #fff;
}

/* العنصر داخل السلايدر */
.category-item {
  text-align: center;
  width: 100px;
}

.category-item a {
  text-decoration: none;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.category-item a:hover {
  transform: translateY(-5px); /* تأثير ناعم عند المرور */
}

/* صورة داخل دائرة */
.cat-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 10px;
  border: 2px solid #ffe01b;
  transition: box-shadow 0.3s ease;
}

.category-item:hover .cat-img {
  box-shadow: 0 0 10px rgba(234, 8, 139, 0.3); /* توهج عند المرور */
}

.cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* نص اسم القسم */
.category-item span {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  text-align: center;
}

/* الأسهم الجانبية */
.swiper-button-next,
.swiper-button-prev {
  width: 35px;
  height: 35px;
  background: white;
  color: #333;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  top: 40%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  z-index: 10;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

/* عند المرور على السهم */
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: #ea088b;
  color: #fff;
}

.swiper-button-next {
  right: -10px;
}

.swiper-button-prev {
  left: -10px;
}
