body {
  background: #B758DF;
}

header {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: #6a0dad;
  color: #9D70EF;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1601;
  
}

header img {
  height: 50px;
  transform: scale(2.8);
  transform-origin: left center;
  transition: transform 0.9s ease-in-out;
}


.logo-switcher {
  position: relative;
  width: 100px;
  height: 50px;
  left: -20%;
  transform: scale(0.85);
  overflow: hidden;
}

.logo-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 100%;
  left: 95%;
  transform: translate(-100%, -100%);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  
}

.logo-img.active {
  opacity: 1;
  z-index: 2;
}

.menu-icon {
  width: 30px;
  height: 25px;
  margin-right: auto;
  cursor: pointer;
  display: block;
  flex-direction: column;
  justify-content: space-between;
}

.menu-icon span {
  height: 3px;
  background: #87CEEB;
  border-radius: 3px;
  transition: 0.4s;
}

/* زر القائمة الجانبية */
#menu-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2500;
  cursor: pointer;
  
}

#menu-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  transition: 0.4s;
}

#menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
#menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

#sidebar {
  pointer-events: auto;
  position: fixed;
  top: 60px; /* باش تبقى تحت الهيدر */
  right: -250px;
  width: 250px;
  height: 100%;
  background: #378FCB;
  color: white;
  transition: right 0.3s ease;
  padding-top: 20px;
  z-index: 1599;
  
}

#sidebar.active {
  right: 0;
}

#sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#sidebar:not(.active) {
  pointer-events: none;
}

#sidebar ul li a {
  display: block;
  padding: 15px;
  color: white;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

#sidebar ul li a:hover {
  background: #673BB7;
  transform: scale(1.02);
}

#sidebar ul li a:active,
#sidebar ul li a:focus {
  background: #673BB7;
  transform: scale(0.98);
  outline: none;
}

#sidebar-overlay.active {
  display: block;
  pointer-events: auto; /* تمنع لمس المحتوى */
}


/* حاوية البحث */
.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;
  }
}



    .cookie-banner {
  position: fixed !important;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(173, 216, 230, 0.95);
  padding: 20px;
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 999999 !important; /* ✅ التغيير هنا */
  font-family: 'Cairo', sans-serif;
  overflow: hidden;
  position: relative;
}

.cookie-banner::before {
  content: "";
  position: absolute;
  bottom: -26px;
  left: -26px;
  width: 250px;
  height: 250px;
  background-image: url('https://i.postimg.cc/t70CNDW0/20250727-005558.png');
  background-size: contain;
  background-repeat: no-repeat;
  transform: rotate(0deg);
  opacity: 0.3;
  z-index: 1;
  pointer-events: none;
}

.cookie-content {
  position: relative;
  z-index: 2;
}
.cookie-content p {
  font-size: 15px;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}
.cookie-content a {
  color: #0000EE;
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.cookie-actions button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
}
#accept-cookies {
  background-color: #28a745;
  color: white;
  border: 2px solid #28a745;
}
#reject-cookies {
  background-color: transparent;
  color: #333;
  border: 2px solid #28a745;
}
/*لا يكتب أي شيء تحت هذا السطر وسير تقود ونتا كاعد كتقلب في الكود ديالي */ 

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

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

/*-----------4444444----------*/
  
