
body {
  overflow-x: hidden; /* باش تحبس التمدد للجوانب */
}

body {
html[dir="ltr"] body {
  text-align: left;
  direction: ltr;
}
  
  
  margin: 0;
  font-family: 'Arial', sans-serif;
  background: #B758DF;
    
  color: #fff;
}




.hero-banner {
  margin-top: 65px;
  border-bottom: 1px solid #000;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.single-slider-link {
  position: relative;
  width: 100%;
  height: 60vw;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-image {
  width: 100%;
  height: 60vw;
  object-fit: contain;
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 0;
  margin: auto;
  transform: scale(2);
}

.slider-image.active {
  opacity: 1;
  z-index: 1;
  transform: scale(0.9);
}

.slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 4px;
}

.slider-dot {
  width: 9px;
  height: 9px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slider-dot.active {
  background-color: #007bff;
}



.text-slider-wrapper {
  width: 100%;
  margin-top: 1px;
  overflow: hidden;
  padding: 10px 0;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  background: linear-gradient(270deg, #79CCFF, #804AE5, #B758DF);
  background-size: 600% 600%;
  animation: gradientMove 10s ease infinite;
}

.text-slider {
  display: inline-block;
  white-space: nowrap;
  animation: slide-text 15s linear infinite;
  font-size: 18px;
  color: #fff; /* باش يبان النص مزيان فوق التدرج */
  padding-left: 100%;
}

@keyframes slide-text {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.slider-background-wrapper {
  background-image: url('https://i.postimg.cc/pXPRPNB0/20250801-201805.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
}


.categories-row {
  display: flex;
  gap: 5px;
  overflow: visible;
  margin-top: 1px;
  min-width: 100%;
  flex-wrap: nowrap;
}


/*شرارة*/
.category-box {
  flex: 1;
  height: 100px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3a8edb, #6dd5fa); /* default */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease;
  transform-origin: center center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
  z-index: 15;
}



.spark {
  position: absolute;
  left: 100%;
  top: 97%;
  transform: translateX(-50%) translateY(0);
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  pointer-events: none;
  animation: spark-rise 2.5s linear forwards;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.6);
  z-index: 0;
}

@keyframes spark-rise {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  80% {
    opacity: 1;
    transform: translateX(-50%) translateY(-300%);
  }
  100% {
    transform: translateX(-500%) translateY(-2000%);
    opacity: 0;
  }
}

.category-box:hover {
transform: scale(1.07);
z-index: 2;
}

.category-logo {
  width: 100%;
  height: 100%;
  object-fit: cover; /* الصورة تبقى كاملة بلا ما تتقطع */
  display: block;
}


.category-title {
position: absolute;
left: -9999px;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
}

/* الخلفيات المتدرجة المتحركة لكل خانة */
.box1 {
background: linear-gradient(270deg, #3f51b5, #2196f3);
background-size: 400% 400%;
animation: gradientMove 8s ease infinite;
}

.box2 {
background: linear-gradient(270deg, #8e24aa, #d81b60);
background-size: 400% 400%;
animation: gradientMove 8s ease infinite;
}

.box3 {
background: linear-gradient(270deg, #43a047, #66bb6a);
background-size: 400% 400%;
animation: gradientMove 8s ease infinite;
}

.box4 {
background: linear-gradient(270deg, #f57c00, #ffb300);
background-size: 400% 400%;
animation: gradientMove 8s ease infinite;
}

.box5 {
background: linear-gradient(270deg, #455a64, #607d8b);
background-size: 400% 400%;
animation: gradientMove 8s ease infinite;
}

.categories-container {
  width: 100%;
  padding: 0 2px;
  box-sizing: border-box;
  
  isolation: isolate;
  position: relative;
  overflow: visible !important;
  z-index: 10;
}

.category-box span {
display: block;
font-size: 18px;
}

@keyframes autoZoom {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
  }
}

.auto-zoom {
  animation-name: autoZoom;
  animation-duration: 3s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}






/* آخر سطر فـ ملف CSS */


.text-slider-wrapper {
  position: relative;
  z-index: 5;
}
 
/*----------------------توافق  طول input مع أبعاد الأجهزة------------*/

.description-box {
  max-width: 95%;           /* ⬅️ أقصى عرض للكتلة */
  margin: 20px auto 0;         /* ⬅️ وسط الصفحة + تباعد علوي */
  background-color: #4EB8FF;
  padding: 20px clamp(20px, 0.5vw, 40px); /* ⬅️ padding عمودي + padding أفقي تلقائي حسب عرض الشاشة */
  box-sizing: border-box;
  
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  /* الحواف السفلية حادة */
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.description-content {
  max-width: auto;
  text-align: center;
  color: #fff;
}

.description-content h2 {
  font-size: 28px;
  color: #FFDE59; /* لون مميز */
  margin-bottom: 15px;
}

.description-content p {
  font-size: 17px;
  line-height: 1.7;
  color: #eeeeee;
}
/*ads*/
.ads-image {
  display: block;                 /* باش تكون بوحدها فالسطر */
  max-width: 95%;                /* ما تفوتش 95% من عرض الشاشة */
  width: auto;                   /* العرض الأصلي ديال الصورة */
  height: auto;                  /* تحافظ على النسبة */
  margin: 0 auto 0;           /* وسط الصفحة أفقياً + تباعد علوي */
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.description-box-2 {
  max-width: 95%;           /* ⬅️ أقصى عرض للكتلة */
  margin: 0 auto 0;         /* ⬅️ وسط الصفحة + تباعد علوي */
  background-color: #4EB8FF;
  padding: 20px clamp(20px, 0.5vw, 40px); /* ⬅️ padding عمودي + padding أفقي تلقائي حسب عرض الشاشة */
  box-sizing: border-box;
  
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  /* الحواف السفلية حادة */
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.description-content {
  max-width: auto;
  text-align: center;
  color: #fff;
}

.description-content h2 {
  font-size: 28px;
  color: #000; /* لون مميز */
  margin-bottom: 15px;
}

.description-content p {
  font-size: 17px;
  line-height: 1.7;
  color: #fff;
}

.form-box {
  max-width: 95%;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  /* الحواف السفلية حادة */
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  margin: 40px auto 0;
  background: linear-gradient(0deg, #673ab7, #4eb8ff);
  padding: 20px clamp(20px, 0.5vw, 40px);
  box-sizing: border-box;
}
.form-content {
  text-align: center;
  color: #cb9649;
}
.form-content h2 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 15px;
}
.form-content p {
  font-size: 17px;
  line-height: 1.7;
  color: #eeeeee;
  margin-bottom: 20px;
}
/* تنسيق الحقول */
form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

/* textarea */
form textarea {
  min-height: 120px;
  resize: vertical;
}

/* زر الإرسال */
form button {
  background: linear-gradient(
    180deg,
    #4EB6FD 90%,  /* الجزء الأول: سماوي */
    #FF8B00 90%   /* الجزء الثاني: أصفر */
  );
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 17px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

form button:hover {
  transform: scale(1.05);
}

/* حاوية البحث */
.search-wrapper {
  position: absolute;
  top: 50%;
  right: 80px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  }

/* الزر 🔍 */
#search-btn {
  background: transparent;
  border: none;
  font-size: 25px;
  cursor: pointer;
  transform: translateX(-70%)
}

/* input ديال البحث */
#search-input {
  width: 0;
  opacity: 0;
  padding: 7px 12px;
  border: 1px solid #ccc;
  border-radius: 15px;
  transition: width 0.4s ease, opacity 0.4s ease;
  direction: ltr !important;
  transform: translateX(-10%)
}

.search-wrapper.active #search-input {
  width: 180px;
  opacity: 1;
}
  /* الطول الافتراضي للصغار جدا (هواتف صغيرة)  input + icon  */
#search-input {
  width: 0;
  opacity: 0;
  padding: 7px 12px;
  border: 1px solid #ccc;
  border-radius: 15px;
  transition: width 0.4s ease, opacity 0.4s ease;
  direction: ltr;
}

.search-wrapper.active #search-input {
  width: 120px;
  opacity: 1;
}

/* شاشات متوسطة: هواتف أكبر أو تابلت صغير */
@media (min-width: 480px) {
  .search-wrapper.active #search-input {
    width: 200px;
  }
}

/* شاشات تابلت أفقي أو لابتوب صغير */
@media (min-width: 768px) {
  .search-wrapper.active #search-input {
    width: 300px;
  }
}

/* شاشات كبيرة (ديسكتوب) */
@media (min-width: 1024px) {
  .search-wrapper.active #search-input {
    width: 350px;
  }
}

/* 🌐 إعدادات عامة للصفحة */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
}


/* 🌟 ستايل الفوتر */
.site-footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  margin-top: 15px;
  height: 120px; /* نفس القيمة ديال padding-bottom ف main */
}

/* 🌟 ستايل أيقونات الفوتر */
.footer-icons {
  margin-bottom: 10px;
}

.footer-icons a {
  margin: 0 10px;
  text-decoration: none;
}

.footer-icons img {
  width: 30px;
  height: auto;
  border: none;
  outline: none;
}

/* 🌟 روابط داخل الفوتر */
.site-footer p a {
  color: #4fc3f7;
  text-decoration: none;
}

.button {
  -webkit-tap-highlight-color: transparent; /* يمنع الوميض الأزرق */
  outline: none; /* يمنع الإطار الأزرق */
  user-select: none; /* يمنع تحديد النص باللمس */
  background-color: transparent; /* يضمن عدم تغيير الخلفية */
}

.button:focus,
button:active {
  outline: none;
  background-color: transparent;
}
