header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 0 15px; /* مسافة أمان باش الأيقونة ما تلصقش فالحافة */
  background-color: rgba(112, 0, 255, 1);
  border-bottom: 1px solid rgba(0,0,0,0.4);
  position: fixed;
  width: 100%;
  height: 70px;
  z-index: 1601;
}

/* التعديل الصارم على الصورة باش ما تخترقش الهيدر */
header img {
  max-height: 70px; /* طول متناسق وسط الهيدر اللي فيه 70px */
  width: auto; /* يحافظ على أبعاد 1920x1080 */
  object-fit: contain;
  /* تحييد scale(2.8) اللي كان كيكبر الصورة ويكسر الهيدر */
}

/* إصلاح إطار الأيقونة باش تبان كاملة وما تتقطعش من اليسار */
.logo-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: auto; /* تحييد 4.1rem الضيقة باش الصورة تاخد العرض اللي محتاجة */
  height: 70px;
  padding: 0;
  margin: 0;
  overflow: visible; /* حيدنا hidden باش ما تقطعش الصورة */
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.logo-img {
  position: relative; /* تحييد absolute باش تموضع بشكل طبيعي مرن */
  width: auto;
  height: 70px; /* طول مقاد */
  max-width: 180px; /* حد أقصى للعرض فالهواتف الصغار باش ما تزحمش المنيو */
  object-fit: contain;
  opacity: 1;
  image-rendering: crisp-edges;
}

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

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

.menu-icon span {
  height: 3px;
  background: #ffffff;
  border-radius: 3px;
}

#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: 70px;
  right: -250px;
  width: 250px;
  height: 100%;
  background: #00ccff;
  color: white;
  transition: right 0.3s ease;
  padding-top: 20px;
  z-index: 1400;
}
#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;
  font-family: 'ART';
  font-size: 18px;
  padding: 15px;
  color: rgb(0, 0, 0);
  text-decoration: none;
  transition: 0.3s, transform 0.2s;
}

#sidebar ul li a:hover {
  background: #7000FF;
  transform: scale(1.02);
  border: 1px solid rgba(0, 0, 0, 0.3);
}

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

#sidebar-overlay.active {
  display: block;
  pointer-events: auto;
}
 .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 {
  position: absolute;
  bottom: -26px;
  left: -26px;
  width: 250px;
  height: 250px;
  background-image: url('');
  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;
}
.site-footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  height: 120px;
  width: 100%;
  margin-top: auto;
  position: relative;
  clear: both;
  z-index: 1;
}
.footer-icons {
  margin-bottom: 10px;
}
.footer-icons a {
  margin: 0 10px;
  text-decoration: none;
}
.footer-icons img {
  width: 40px;
  height: auto;
  border: none;
  outline: none;
}
.site-footer p a {
  color: #4fc3f7;
  text-decoration: none;
}
.site-footer p {
  font-family: Arial, Helvetica, sans-serif;
}
.button {
  -webkit-tap-highlight-color: transparent;
  user-select: none; 
  background-color: transparent;
}
.button:focus,
button:active {
  outline: none;
  background-color: transparent;
}