/* ========================================================= */
/* --- 1. الإعدادات العامة ومنع الاهتزاز (Global Reset) --- */
/* ========================================================= */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html { 
  scroll-behavior: smooth; 
  overflow-x: hidden; /* يمنع ظهور شريط التمرير العرضي نهائياً */
  width: 100%;
}

body { 
  font-family: 'Cairo', system-ui, Tahoma, Arial, sans-serif; 
  line-height: 1.7; 
  background: #050810; 
  color: #e9eefc; 
  position: relative;
  overflow-x: hidden; /* حماية مزدوجة لمنع البتر الجانبي */
  width: 100%;
}

a { color: inherit; text-decoration: none; }

/* ========================================================= */
/* --- 2. الإضاءة الخلفية (تم جعلها مرنة لكي لا تبرز الصفحة) --- */
/* ========================================================= */
.ambient-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px); /* تقليل التغبيش قليلاً لزيادة الأداء في الهاتف */
  z-index: -1;
  opacity: 0.35;
  animation: floatLight 12s infinite alternate ease-in-out;
  pointer-events: none; /* لضمان عدم تداخلها مع الروابط */
}

.light-1 {
  width: clamp(280px, 70vw, 500px); /* يصغر في الهاتف ويكبر في الوندوز */
  height: clamp(280px, 70vw, 500px);
  background: #00d2ff;
  top: -5%; left: -10%;
}

.light-2 {
  width: clamp(300px, 80vw, 600px);
  height: clamp(300px, 80vw, 600px);
  background: #3a7bd5;
  top: 40%; right: -15%;
}

.light-3 {
  width: clamp(200px, 60vw, 400px);
  height: clamp(200px, 60vw, 400px);
  background: #9b51e0;
  bottom: 10%; left: 20%;
}

@keyframes floatLight {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, 40px) scale(1.1); } /* تقليل مسافة الحركة لمنع دفع الصفحة */
}

/* ========================================================= */
/* --- 3. الكلاس السحري للزجاج الفاخر (Ultra-Premium Glass) --- */
/* ========================================================= */
.premium-glass-panel {
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.02);
}

/* ========================================================= */
/* --- 4. شريط التنقل العلوي (Nav) - مُحسّن للهاتف --- */
/* ========================================================= */
/* ========================================================= */
/* --- 1. حاوية التنقل الرئيسية (Nav) - ستايل زجاجي نيون --- */
/* ========================================================= */
.nav {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  gap: 14px; 
  padding: 14px clamp(15px, 5%, 24px); 
  position: sticky; 
  top: 0; 
  z-index: 1000;
  border-radius: 0 0 24px 24px;
  width: 100%;

  /* تحصين الطابع الزجاجي لضمان عدم ظهور السواد في المتصفحات */
  background: rgba(8, 16, 32, 0.6); 
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  
  /* خط نيون سفلي يربط الهوية البصرية بالشعار */
  border-bottom: 1px solid rgba(0, 210, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* شعار IICS المشع والمتحرك - المحرك الأساسي للستايل */
.brand-right { 
  font-weight: 900; 
  letter-spacing: 2px; 
  font-size: clamp(20px, 6vw, 28px); 
  background: linear-gradient(90deg, #00d2ff, #ffffff, #00d2ff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  
  /* تشغيل اللمعان والنبض النيوني */
  animation: shineBrand 3s linear infinite, pulseGlow 2s ease-in-out infinite alternate;
  
  cursor: pointer;
  white-space: nowrap;
  filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.3));
}

/* قواعد الأنيميشن الموحدة للموقع بالكامل */
@keyframes shineBrand { 
  to { background-position: 200% center; } 
}

@keyframes pulseGlow {
  0% { filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.4)); }
  100% { filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.8)); }
}

/* --- حاوية الروابط: مرنة لتدعم الهاتف وتمنع تداخل النصوص --- */
.links { 
  display: flex; 
  align-items: center; 
  gap: clamp(5px, 1.5vw, 10px); /* مسافة مرنة تتكيف مع حجم شاشة الجوال */
  flex-wrap: wrap; 
  justify-content: flex-end; 
}

/* --- تنسيق العناصر (الروابط) بستايل الشعار --- */
.nav-item {
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  padding: 9px clamp(8px, 2vw, 14px);
  border-radius: 12px; 
  border: 1px solid transparent; 
  background: transparent;
  cursor: pointer; 
  font: inherit; 
  transition: all 0.3s ease;
  position: relative;
}

/* تأثير التحويم (Hover) النبضي */
.nav-item:hover { 
  background: rgba(0, 210, 255, 0.05); /* لمحة زجاجية زرقاء عند التأشير */
  border-color: rgba(0, 210, 255, 0.2); 
  transform: translateY(-2px);
  /* تشغيل التوهج النبضي عند التأشير */
  animation: pulseGlow 1.5s ease-in-out infinite alternate;
}

/* --- تحويل الكلمات لستايل الشعار المتحرك --- */
.nav-item .label {
  font-size: clamp(13px, 3.5vw, 15px); /* حجم خط مرن يدعم الهاتف */
  font-weight: 900;
  opacity: 1; /* جعلها واضحة جداً مثل الشعار */
  
  /* تطبيق التدرج اللوني المتحرك (نفس شعار IICS) */
  background: linear-gradient(90deg, #00d2ff, #ffffff, #00d2ff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  
  /* تشغيل أنيميشن اللمعان */
  animation: shineBrand 4s linear infinite; 
  white-space: nowrap;
}

/* تنسيق الأيقونات والأسهم لتتناسق مع النيون */
.icon { 
  font-size: 18px; 
  color: #00d2ff; /* لون نيون للأيقونة */
  filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.4));
}

.caret { 
  color: #00d2ff;
  opacity: 0.8; 
  margin-right: 4px; 
  font-size: 12px;
}

/* ========================================================= */
/* --- القوائم المنسدلة (تنسيق احترافي يمنع التداخل) --- */
/* ========================================================= */

.dropdown { position: relative; }
.dropbtn { background: none; border: none; color: white; cursor: pointer; font-size: 16px; display: flex; align-items: center; gap: 5px; font-family: inherit; }

/* القائمة الرئيسية */
.dropdown .menu {
  display: none; 
  position: absolute; 
  top: 100%; 
  right: 0;
  min-width: 250px; 
  z-index: 2000; /* رفع الطبقة لضمان عدم التداخل مع النصوص الخلفية */
  border-radius: 16px; 
  padding: 10px 0;
  background: rgba(10, 15, 28, 0.98); /* خلفية داكنة جداً لمنع رؤية ما خلفها */
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 210, 255, 0.2);
  box-shadow: 0 25px 50px rgba(0,0,0,0.8);
}

.dropdown:hover .menu { display: block; }

/* تنسيق الروابط داخل القوائم */
.dropdown .menu a, .dropdown-submenu .submenu-btn {
  color: #ffffff; 
  padding: 12px 18px; 
  text-decoration: none; 
  display: flex; /* جعل النص والأيقونة في سطر واحد دائماً */
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  text-align: right; 
  font-size: 15px; 
  border-radius: 8px; 
  margin: 4px 10px;
  transition: 0.3s;
}

.dropdown .menu a:hover, .dropdown-submenu .submenu-btn:hover {
  background: rgba(0, 210, 255, 0.1); 
  color: #00d2ff;
}

/* ========================================================= */
/* --- السحر الخاص بالهاتف (Media Query لترتيب النافبار) --- */
/* ========================================================= */

@media (max-width: 900px) {
  /* ترتيب روابط النافبار لتكون عمودية ومنظمة */
  .links { 
    display: flex !important;
    flex-direction: column !important; /* تحويل الترتيب لعمودي */
    align-items: stretch !important;
    width: 100%;
    gap: 5px !important;
  }

  .nav-item { 
    width: 100%; 
    justify-content: space-between !important; 
    padding: 12px 15px !important; 
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
  }

  /* جعل القائمة المنسدلة تفتح للأسفل (Accordion) وليس فوق الكلام */
  .dropdown .menu {
    position: static; /* إلغاء الطيران لضمان عدم التداخل */
    width: 100%; 
    box-shadow: none; 
    border: none; 
    background: rgba(255, 255, 255, 0.03);
    margin-top: 5px;
    padding: 5px 0;
    display: none;
    opacity: 1;
    transform: none;
  }

  .dropdown:hover .menu { display: block; }

  /* إصلاح القوائم الفرعية (حكومية، خاصة) لتفتح تحت بعضها بانتظام */
  .dropdown-submenu .submenu {
    position: static; 
    width: 95%; 
    margin: 5px auto;
    background: rgba(0, 210, 255, 0.05);
    border-right: 2px solid #00d2ff; /* خط تمييز بصري */
    border-radius: 8px;
    display: none;
  }
  
  .dropdown-submenu:hover .submenu { display: block; }
}

/* تنسيق الويندوز (أبقه كما هو لفتحه للجنب) */
@media (min-width: 901px) {
  .dropdown-submenu .submenu {
    display: none; 
    position: absolute; 
    right: 102%; 
    top: 0; 
    min-width: 220px; 
    background: rgba(15, 23, 42, 0.98);
    border-radius: 12px; 
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .dropdown-submenu:hover .submenu { display: block; }
}
/* ... (باقي الـ nth-child للقائمة الفرعية تتبع نفس النمط) */

/* ========================================================= */
/* --- الواجهة (Hero) - تم إصلاح "المجرم" المسبب للبتر --- */
/* ========================================================= */
.hero {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: clamp(40px, 10vh, 80px) 5%; /* هوامش مرنة بدلاً من 80px */
  max-width: 1200px; 
  margin: 0 auto; 
  min-height: 75vh; 
  gap: 30px;
  width: 100%; /* ضمان البقاء داخل إطار الشاشة */
}

.hero-content { 
  flex: 1; 
  width: 100%; /* منع الخروج يميناً ويساراً */
  max-width: 600px; 
}

.hero h1 { 
  font-size: clamp(30px, 8vw, 52px); /* نص ذكي يصغر في الجوال تلقائياً */
  font-weight: 900; 
  margin: 0 0 15px; 
  line-height: 1.2; 
}

.hero h2 { 
  font-size: clamp(26px, 7vw, 46px); /* نص ذكي يصغر في الجوال تلقائياً */
  font-weight: 900; 
  margin: 0 0 20px; 
  line-height: 1.2; 
  color: white;
}

/* تحويل الترتيب لعمودي في الهاتف لمنع "لم الشاشة" */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 20px;
  }
}
/* ========================================================= */
/* --- نص سائل متحرك (Animated Gradient Text) - أبقه كما هو --- */
/* ========================================================= */
.highlight {
  background: linear-gradient(270deg, #00d2ff, #3a7bd5, #9b51e0, #00d2ff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0px 5px 15px rgba(0, 210, 255, 0.3);
  animation: gradientShift 6s ease infinite; 
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero p { 
  font-size: clamp(16px, 4vw, 19px); /* حجم خط مرن للجوال */
  opacity: 0.85; 
  margin-bottom: 35px; 
  line-height: 1.8; 
}

/* أزرار عصرية وزجاجية - تم ضبط التوزيع للجوال */
.hero-buttons { 
  display: flex; 
  gap: clamp(10px, 3vw, 20px); 
  flex-wrap: wrap; 
}

.btn {
  padding: 14px clamp(20px, 5vw, 35px); /* حواف مرنة للأزرار */
  border-radius: 14px; 
  font-weight: 700; 
  font-size: clamp(15px, 3.5vw, 17px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  cursor: pointer; 
  text-align: center; 
  border: none;
  flex-grow: 0; /* منع الزر من التمدد بشكل مشوه */
}

@media (max-width: 600px) {
  .hero-buttons { justify-content: center; } /* توسيط الأزرار في الجوال */
  .btn { width: 100%; max-width: 300px; } /* جعل الأزرار تأخذ عرضاً مناسباً في الجوال */
}

/* ========================================================= */
/* --- أزرار مع وميض ضوئي مستمر (Shimmer Effect) - أبقه كما هو --- */
/* ========================================================= */
.btn-primary, .btn-premium-submit {
  position: relative;
  overflow: hidden; 
  background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  color: white;
  box-shadow: 0 10px 20px rgba(58, 123, 213, 0.3), inset 0 2px 0 rgba(255,255,255,0.3);
  z-index: 1;
}
.btn-primary::after, .btn-premium-submit::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shimmer 3s infinite;
  z-index: -1;
}
@keyframes shimmer {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}
.btn-primary:hover, .btn-premium-submit:hover { 
  transform: translateY(-5px) scale(1.03); 
  box-shadow: 0 15px 30px rgba(58, 123, 213, 0.6), inset 0 2px 0 rgba(255,255,255,0.4); 
}

.btn-secondary {
  background: rgba(255,255,255,0.05); color: white; border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); border-color: #00d2ff; transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.3);}

/* ========================================================= */
/* --- الشعار الطائر (Floating Logo) - تم ضبط الحجم للجوال --- */
/* ========================================================= */
.hero-image { 
  flex: 1; 
  display: flex; 
  justify-content: center; 
  width: 100%; /* ضمان عدم تجاوز عرض الشاشة */
}

.floating-logo {
  max-width: 90%; /* حماية للجوال من تجاوز الإطار */
  width: 450px; 
  height: auto;
  filter: drop-shadow(0px 15px 35px rgba(0, 210, 255, 0.4)); 
  animation: floatLogo 5s ease-in-out infinite; 
}

@media (max-width: 992px) {
  .floating-logo { 
    width: clamp(200px, 60vw, 350px); /* حجم أصغر متناسق للجوال */
    margin: 30px 0;
  }
}

@keyframes floatLogo {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); } 
  100% { transform: translateY(0px); }
}

/* --- قسم التفاصيل الجديد (About) - تم ضبط الهوامش لمنع البتر --- */
.about-section { 
  display: flex; 
  flex-direction: column; 
  gap: clamp(40px, 8vh, 80px); 
  padding-bottom: 80px; 
  max-width: 1200px; 
  margin: 0 auto; 
  padding-left: clamp(15px, 5%, 24px); 
  padding-right: clamp(15px, 5%, 24px); 
  width: 100%; /* ضمان البقاء داخل الإطار */
}
/* ========================================================= */
/* --- إطارات الصور الزجاجية مع لمعان زجاجي يمر --- */
/* ========================================================= */
.about-intro {
  padding: clamp(30px, 5vw, 50px) clamp(15px, 5vw, 40px); /* حواف مرنة */
  border-radius: 24px; 
  margin: 0 auto; 
  max-width: 900px; 
  position: relative; 
  overflow: hidden;
}

.premium-image-wrapper {
  flex: 1; 
  width: 100%; /* ضمان عدم تجاوز عرض الشاشة */
  min-width: unset; /* إلغاء الحد الأدنى الثابت لمنع البتر */
  height: clamp(250px, 50vh, 400px); /* ارتفاع مرن بدلاً من الثابت */
  padding: 12px; 
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.03); 
  backdrop-filter: blur(20px); 
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4); 
  transition: transform 0.4s ease;
  position: relative; 
  overflow: hidden;
}

.premium-image-wrapper::after, .about-intro::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.premium-image-wrapper:hover::after, .about-intro:hover::after { left: 200%; }
.premium-image-wrapper:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0, 210, 255, 0.2); }
.premium-image-wrapper img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }

.about-intro h2 { font-size: clamp(24px, 6vw, 36px); margin-top: 0; margin-bottom: 20px; }
.about-intro p { font-size: clamp(16px, 4vw, 19px); line-height: 1.8; color: #a0aec0; margin: 0; }

.about-row { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: clamp(30px, 5vw, 60px); 
  width: 100%;
}
.reverse-row { flex-direction: row-reverse; }

.about-text { flex: 1; min-width: unset; width: 100%; }
.about-text h3 { font-size: clamp(22px, 5vw, 34px); margin-top: 0; margin-bottom: 25px; }
.about-text p { font-size: clamp(15px, 4vw, 18px); line-height: 1.8; color: #a0aec0; margin-bottom: 20px; }

/* القائمة النقطية الزجاجية */
.custom-list { list-style: none; padding: 0; margin: 0; width: 100%; }
.custom-list li {
  display: flex; 
  align-items: flex-start; 
  gap: 15px; 
  margin-bottom: 18px; 
  font-size: clamp(14px, 3.5vw, 17px); 
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.03); 
  padding: 15px 20px; 
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08); 
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 5px rgba(255,255,255,0.02);
}
.custom-list li:hover {
  background: rgba(255, 255, 255, 0.08); 
  transform: translateX(-5px) scale(1.01);
  border-color: rgba(0, 210, 255, 0.4); 
}
.list-icon { font-size: clamp(18px, 5vw, 24px); }

@media (max-width: 850px) {
  .about-row, .reverse-row { flex-direction: column; text-align: center; gap: 40px; }
  .custom-list li { text-align: right; }
  .premium-image-wrapper { width: 100%; height: 300px; }
}

/* --- قسم الدعوة لاتخاذ إجراء (CTA) والعداد --- */
.cta-counter-section {
  position: relative; 
  padding: clamp(100px, 15vh, 180px) 20px; 
  text-align: center;
  background-image: url('images/p05.avif'); 
  background-size: cover; 
  background-position: center; 
  background-attachment: scroll; /* تغيير من fixed لزيادة أداء الموبايل ومنع البتر */
  margin: 80px auto; 
  width: 100%;
}

@media (min-width: 1024px) {
  .cta-counter-section { background-attachment: fixed; }
}

.cta-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(5, 8, 16, 0.88); z-index: 1; }
.cta-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; width: 100%; }
.cta-content h2 { font-size: clamp(28px, 6vw, 42px); color: #ffffff; margin-bottom: 20px; font-weight: 900; text-shadow: 0 5px 15px rgba(0,0,0,0.5);}
.cta-content p { font-size: clamp(16px, 4vw, 19px); color: #e9eefc; opacity: 0.95; line-height: 1.8; margin-bottom: 40px; }

.btn-golden {
  display: inline-block; 
  background: rgba(243, 177, 49, 0.1); 
  color: #f3b131; 
  border: 2px solid #f3b131; 
  padding: 14px 35px; 
  border-radius: 40px; 
  font-size: clamp(16px, 4vw, 19px); 
  font-weight: 900; 
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.btn-golden:hover { background: #f3b131; color: #050810; transform: translateY(-5px); }

.counter-box { margin-top: clamp(40px, 8vh, 70px); width: 100%; }
.counter-wrapper { display: flex; align-items: center; justify-content: center; direction: ltr; gap: 5px; flex-wrap: wrap; }
.counter-number, .plus-sign { font-size: clamp(45px, 12vw, 75px); font-weight: 900; color: #f3b131; text-shadow: 0 10px 20px rgba(0,0,0,0.6); line-height: 1; }
.counter-label { font-size: clamp(16px, 4vw, 20px); color: #ffffff; margin-top: 15px; font-weight: 700; width: 100%; }

/* ========================================================= */
/* --- قسم حجز الاستشارة (الفورم الزجاجي الفاخر) --- */
/* ========================================================= */
/* ========================================================= */
/* --- قسم حجز الاستشارة (الفورم الزجاجي الفاخر) --- */
/* ========================================================= */
.consultation-section { 
  display: flex; 
  justify-content: center; 
  padding: clamp(60px, 10vh, 100px) clamp(15px, 5%, 18px); 
  width: 100%;
}

.form-premium { 
  border-radius: 30px; 
  padding: clamp(30px, 8vw, 50px) clamp(15px, 6vw, 40px); 
  max-width: 700px; 
  width: 100%; 
  position: relative; 
  overflow: hidden; 
}

.form-glow {
  position: absolute; 
  top: -80px; 
  right: -80px; 
  width: clamp(200px, 40vw, 300px); 
  height: clamp(200px, 40vw, 300px);
  background: radial-gradient(circle, rgba(0, 210, 255, 0.25) 0%, transparent 70%); 
  filter: blur(50px); 
  z-index: 0; 
  pointer-events: none; 
}

.form-header, .consultation-form { position: relative; z-index: 1; }
.form-header h2 { text-align: center; margin-top: 0; margin-bottom: 10px; font-size: clamp(26px, 6vw, 38px); }
.form-header p { text-align: center; color: #a0aec0; margin-bottom: 40px; font-size: clamp(14px, 4vw, 17px); }
.form-group { margin-bottom: 25px; text-align: right; width: 100%; }
.form-premium label { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: #e9eefc; margin-bottom: 12px; }

.premium-input {
  background: rgba(255, 255, 255, 0.04); 
  border: 1px solid rgba(255, 255, 255, 0.1); 
  border-radius: 18px; 
  color: #fff;
  padding: 18px 20px; 
  font-family: inherit; 
  font-size: 16px; 
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  width: 100%; 
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.3); 
}

.premium-input:focus {
  outline: none; 
  background: rgba(255, 255, 255, 0.08); 
  border-color: #00d2ff;
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.25), inset 0 2px 5px rgba(0,0,0,0.1); 
  transform: translateY(-4px); 
}

.premium-input option { background-color: #050810; color: #fff; padding: 10px; }

/* إصلاح حقل الهاتف ليكون مرناً جداً */
.phone-input-wrapper { 
  display: flex; 
  gap: 10px; 
  width: 100%; 
}

.country-select { 
  width: 35%; 
  min-width: 100px; /* لضمان ظهور الرمز بشكل صحيح */
  cursor: pointer; 
}

.phone-input { 
  width: 65%; 
  direction: ltr; 
  text-align: left; 
}

@media (max-width: 480px) {
  .phone-input-wrapper { flex-direction: column; }
  .country-select, .phone-input { width: 100%; }
  .phone-input { text-align: right; } /* تسهيل الإدخال العربي عند الحاجة */
}

/* ========================================================= */
/* --- زر الإرسال البيضوي الزجاجي المتوهج (موسّط) --- */
/* ========================================================= */
.btn-submit-glow {
  display: block;
  width: fit-content; 
  min-width: clamp(200px, 80vw, 280px); /* عرض ذكي يناسب الهاتف */
  margin: 40px auto 10px auto; 
  padding: 16px 40px;
  font-family: 'Cairo', sans-serif;
  font-size: clamp(17px, 4vw, 20px);
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  border-radius: 50px; 
  
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.15) 0%, rgba(155, 81, 224, 0.15) 100%);
  border: 1px solid rgba(0, 210, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  box-shadow: 0 8px 30px rgba(0, 210, 255, 0.2), inset 0 0 15px rgba(0, 210, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-submit-glow:hover {
  transform: translateY(-5px) scale(1.03);
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.3) 0%, rgba(155, 81, 224, 0.3) 100%);
  border-color: #00d2ff;
  box-shadow: 0 15px 40px rgba(0, 210, 255, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.2);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.btn-submit-glow:active {
  transform: translateY(2px) scale(0.98);
}


/* ========================================================= */
/* --- تصميم قسم الخدمات (Grid Cards السحرية مع Icon Pop) --- */
/* ========================================================= */
.section { 
  padding: clamp(40px, 8vh, 80px) clamp(15px, 5%, 18px); 
  max-width: 1200px; 
  margin: 0 auto; 
  width: 100%; /* ضمان البقاء داخل الإطار */
}

.section-title { text-align: center; margin-bottom: clamp(40px, 8vw, 60px); }
.section-title h2 { font-size: clamp(28px, 6vw, 40px); margin-bottom: 10px; }
.section-title p { color: #a0aec0; font-size: clamp(16px, 4vw, 19px); }

.services-grid { 
  display: grid; 
  /* تم تعديل العرض الأدنى ليكون 250px لضمان التوافق مع أصغر الهواتف */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: clamp(20px, 4vw, 35px); 
  padding: 10px 0; 
  width: 100%;
}

.service-card {
  border-radius: 24px; 
  padding: clamp(30px, 6vw, 40px) clamp(20px, 5vw, 25px); 
  text-align: center; 
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative; 
  overflow: hidden;
  width: 100%;
}

.service-card::before {
  content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.2) 0%, transparent 60%); 
  opacity: 0; transition: opacity 0.4s ease; z-index: 0;
}

/* التفاعل المغناطيسي والوميض المتداخل - أبقيتها كما هي لإبداعها */
.service-card:hover { 
  transform: translateY(-15px) scale(1.02); 
  box-shadow: 0 20px 40px rgba(0, 210, 255, 0.25), 0 0 30px rgba(155, 81, 224, 0.15); 
  border-color: rgba(0, 210, 255, 0.5); 
}
.service-card:hover::before { opacity: 1; }
.service-card .card-icon, .service-card h3, .service-card p { position: relative; z-index: 1; }

/* قفزة الأيقونة ودورانها */
.card-icon {
  font-size: clamp(40px, 10vw, 50px); 
  margin-bottom: 25px; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  background: rgba(255, 255, 255, 0.05); 
  width: clamp(75px, 15vw, 90px); 
  height: clamp(75px, 15vw, 90px); 
  border-radius: 50%; 
  box-shadow: inset 0 0 15px rgba(255,255,255,0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover .card-icon {
  transform: scale(1.2) rotate(10deg); 
  background: rgba(0, 210, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
  color: #fff;
}

.service-card h3 { font-size: clamp(20px, 5vw, 24px); margin-bottom: 15px; color: #ffffff; }
.service-card p { color: #a0aec0; font-size: clamp(14px, 4vw, 16px); line-height: 1.7; margin: 0; }
/* ========================================================= */
/* --- تصميم صفحات الجامعات الفردية (العصرية والـ 3D) --- */
/* ========================================================= */

.back-btn { font-weight: 900; color: #00d2ff !important; text-shadow: 0 0 10px rgba(0,210,255,0.4); }

/* قسم الغلاف (Hero) للجامعة */
.uni-hero { 
  position: relative; 
  height: clamp(300px, 45vh, 450px); /* ارتفاع مرن بدلاً من الثابت */
  overflow: hidden; 
  border-radius: 0 0 40px 40px; 
  box-shadow: 0 20px 50px rgba(0,0,0,0.6); 
  width: 100%;
}
.hero-bg-img { 
  width: 100%; height: 100%; object-fit: cover; 
  filter: brightness(0.5) saturate(1.2); 
  transform: scale(1.1); 
  animation: slowZoom 25s linear infinite alternate; 
}
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.15); } }

.hero-overlay { 
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
  display: flex; align-items: center; justify-content: center; 
  background: linear-gradient(to top, #050810, rgba(5,8,16,0.1)); 
  padding: 0 20px;
}

/* إصلاح الخط العملاق الذي سبب البتر في الصور */
.hero-overlay h1 { 
  font-size: clamp(40px, 15vw, 130px); /* يتقلص بذكاء من 130 إلى 40 حسب الشاشة */
  font-weight: 900; 
  letter-spacing: clamp(2px, 2vw, 10px); 
  margin: 0; 
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #a0aec0); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.8)); 
  animation: floatLogo 4s ease-in-out infinite;
}

/* قسم تفاصيل الجامعة */
.uni-details { 
  padding: 0 15px 80px; 
  position: relative; 
  z-index: 10; 
  margin-top: clamp(-60px, -10vw, -120px); /* إزاحة مرنة تمنع التداخل القبيح في الهاتف */
  width: 100%;
}
.details-container { 
  max-width: 950px; 
  margin: 0 auto; 
  text-align: center; 
  padding: 0 clamp(15px, 5vw, 40px) 60px; 
  width: 100%;
}

/* تأثير الحلقة المضيئة الدوارة خلف الشعار */
.logo-wrapper { 
  margin-top: -40px; 
  margin-bottom: 20px; 
  display: inline-block; 
  position: relative; 
}
.logo-wrapper::before { 
  content: ''; position: absolute; top: -6px; left: -6px; right: -6px; bottom: -6px; 
  background: linear-gradient(135deg, #00d2ff, #9b51e0, #00d2ff); 
  background-size: 200% 200%;
  border-radius: 50%; z-index: -1; animation: spinGlow 4s linear infinite; 
}
@keyframes spinGlow { 100% { transform: rotate(360deg); } }

.uni-logo { 
  width: clamp(100px, 25vw, 150px); /* حجم شعار مرن */
  height: clamp(100px, 25vw, 150px); 
  object-fit: contain; 
  background-color: #ffffff; 
  padding: clamp(10px, 2vw, 15px); 
  border-radius: 50%; 
  border: 4px solid #050810; 
  position: relative; z-index: 2; 
  box-shadow: 0 15px 35px rgba(0,0,0,0.6); 
}

/* العناوين */
.uni-title { font-size: clamp(24px, 7vw, 40px); margin-bottom: 20px; line-height: 1.2; }
.uni-subtitle { font-size: clamp(16px, 4vw, 20px); color: #a0aec0; font-weight: 700; letter-spacing: 1px;}

/* الإحصائيات (Dashboard) - تم ضبطها لتصبح عمودية في الهواتف الصغيرة */
.uni-stats { 
  list-style: none; padding: 0; margin: 0 auto 40px; 
  display: flex; justify-content: center; 
  gap: clamp(10px, 3vw, 20px); 
  flex-wrap: wrap; 
  max-width: 800px;
  width: 100%;
}
.uni-stats li { 
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); 
  padding: 15px clamp(15px, 3vw, 25px); 
  border-radius: 20px; 
  font-size: clamp(14px, 3.5vw, 16px); 
  color: #fff; 
  display: flex; align-items: center; gap: 15px; 
  text-align: right;
  flex: 1; 
  min-width: 250px; /* لضمان ترتيب عمودي أنيق في الجوال */
  box-shadow: inset 0 2px 5px rgba(255,255,255,0.02);
  transition: all 0.4s ease; 
}

@media (max-width: 600px) {
  .uni-stats li { min-width: 100%; } /* عمود واحد في الجوال الصغير */
}

/* المربع الزجاجي للنبذة مع الخط النيون المتحرك */
.glass-card-info { 
  background: rgba(0, 0, 0, 0.2); 
  border: 1px solid rgba(255,255,255,0.05); 
  border-radius: 20px; 
  padding: clamp(20px, 5vw, 30px); 
  margin-bottom: 50px; 
  position: relative;
  overflow: hidden;
  width: 100%;
}
.glass-card-info::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: linear-gradient(180deg, #00d2ff, #3a7bd5, #9b51e0, #00d2ff);
  background-size: 100% 300%;
  animation: neonBorderRGB 3s linear infinite;
}
.glass-card-info p { 
  font-size: clamp(15px, 4vw, 18px); 
  line-height: 1.8; 
  color: #e9eefc; 
  margin: 0; 
  position: relative; z-index: 1; 
  text-align: justify; /* شكل احترافي للنصوص الطويلة */
}

/* ===================================== */
/* --- قسم: لماذا تختار هذه الجامعة؟ --- */
/* ===================================== */
.why-us-section { 
  margin-top: 20px; 
  border-top: 1px solid rgba(255,255,255,0.05); 
  padding-top: clamp(30px, 5vw, 40px);
  width: 100%; /* ضمان البقاء داخل الإطار */
}

.why-title { 
  font-size: clamp(22px, 5vw, 30px); /* حجم خط مرن للجوال */
  margin-bottom: clamp(20px, 4vw, 30px); 
  color: #ffffff; 
  text-align: center;
}

.features-grid { 
  display: grid; 
  /* تقليل الحد الأدنى للعرض لضمان التناسب مع الهواتف الصغيرة */
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); 
  gap: clamp(15px, 3vw, 25px); 
  width: 100%;
}

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: clamp(20px, 5vw, 30px) 20px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 210, 255, 0.3);
  box-shadow: 0 15px 30px rgba(0, 210, 255, 0.15);
}

.feature-icon { 
  font-size: clamp(32px, 8vw, 40px); 
  margin-bottom: 15px; 
  display: block; 
  transition: transform 0.3s ease; 
}
.feature-card:hover .feature-icon { transform: scale(1.15) rotate(5deg); }

.feature-card h4 { 
  font-size: clamp(17px, 4vw, 20px); 
  color: #ffffff; 
  margin-bottom: 10px; 
  margin-top: 0;
}

.feature-card p { 
  font-size: clamp(14px, 3.5vw, 15px); 
  color: #a0aec0; 
  line-height: 1.6; 
  margin: 0;
}

/* ===================================== */
/* --- الزر السحري (المُحسّن للجوال) --- */
/* ===================================== */
.apply-btn { 
  width: fit-content; 
  min-width: clamp(200px, 70vw, 300px); /* عرض ذكي يمنع خروجه عن الشاشة */
  display: inline-flex; 
  justify-content: center;
  padding: 16px clamp(30px, 8vw, 50px); 
  margin: 30px auto; /* التوسيط التلقائي */
  max-width: 100%;
}
/* ========================================================= */
/* --- جدول التخصصات ثلاثي الأبعاد (3D Glassmorphism Table) --- */
/* ========================================================= */

.majors-section { padding-bottom: clamp(60px, 10vh, 120px); width: 100%; }

/* حاوية الجدول مع تفعيل المنظور ثلاثي الأبعاد (Perspective) */
.majors-3d-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 40px);
  max-width: 1100px;
  margin: 0 auto;
  perspective: 1200px; /* السر خلف بروز العناصر */
  width: 100%;
}

/* أعمدة الجدول (الخلفية الزجاجية) */
.majors-column {
  border-radius: 24px;
  padding: clamp(20px, 5vw, 40px) clamp(15px, 4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: clamp(15px, 3vw, 25px);
  position: relative;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 100%;
}

/* حركة العمود بالكامل */
.majors-column:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.05);
}

/* تمييز لوني لكل عمود */
.science-col { border-top: 2px solid rgba(0, 210, 255, 0.4); }
.arts-col { border-top: 2px solid rgba(155, 81, 224, 0.4); }

/* عناوين الأعمدة */
.column-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  position: relative;
  width: 100%;
}
.column-header h3 {
  font-size: clamp(20px, 5vw, 26px);
  color: #ffffff;
  margin: 0;
  font-weight: 900;
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.header-icon {
  font-size: clamp(28px, 6vw, 35px);
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

/* الإضاءة الخلفية للعناوين */
.header-glow {
  position: absolute;
  top: -20px; right: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
  opacity: 0.5;
}
.science-col .header-glow { background: #00d2ff; }
.arts-col .header-glow { background: #9b51e0; }

/* قائمة التخصصات (الصفوف) */
.majors-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform-style: preserve-3d;
}

/* تصميم الصف الواحد (التخصص) */
.major-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* لمعان يمر على التخصصات - أبقيتها كما هي لإبداعها */
.major-item::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
}
.major-item:hover::before { left: 200%; }

/* تأثير الـ 3D المُحسّن لمنع البتر الجانبي في الهاتف */
.major-item:hover {
  background: rgba(255, 255, 255, 0.08);
  /* تقليل قيمة translateZ في الجوال لمنع خروج العنصر عن الإطار */
  transform: translateZ(20px) scale(1.02);
  box-shadow: 10px 10px 25px rgba(0, 0, 0, 0.4);
}

/* تلوين حواف التخصص */
.science-col .major-item:hover { border-right: 4px solid #00d2ff; border-color: rgba(0, 210, 255, 0.4); }
.arts-col .major-item:hover { border-right: 4px solid #9b51e0; border-color: rgba(155, 81, 224, 0.4); }

.major-icon { font-size: clamp(18px, 4vw, 22px); transition: transform 0.3s ease; }
.major-item:hover .major-icon { transform: scale(1.2) rotate(10deg); }

.major-name {
  font-size: clamp(14px, 3.5vw, 17px);
  font-weight: 700;
  color: #e9eefc;
  transition: color 0.3s ease;
}
.science-col .major-item:hover .major-name { color: #00d2ff; }
.arts-col .major-item:hover .major-name { color: #d69eff; }

/* تجاوب الجدول مع الموبايل - إصلاح جذري للبتر */
@media (max-width: 900px) {
  .majors-3d-table { 
    grid-template-columns: 1fr; 
    gap: 30px; 
    perspective: none; /* إلغاء المنظور العام في الجوال لمنع الارتداد الجانبي */
  }
  .majors-column { padding: 30px 15px; }
  .major-item:hover { 
    transform: translateY(-5px); /* تحويل الـ 3D إلى حركة عمودية بسيطة في الجوال */
    translate: 0;
  }
}
/*
/* ========================================================= */
/* --- صفحة دليل الجامعات (Universities Grid) --- */
/* ========================================================= */
.uni-cards-grid {
  display: grid;
  /* تم تعديل الحد الأدنى ليكون 250px لضمان بقاء البطاقات داخل إطار الهاتف */
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(15px, 4vw, 30px);
  max-width: 2000px;
  margin: 0 auto;
  padding: 10px clamp(15px, 5%, 30px); /* هوامش جانبية مرنة تمنع الالتصاق بالحافة */
  width: 100%;
}

.uni-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(25px, 6vw, 35px) 20px;
  border-radius: 20px;
  text-decoration: none;
  color: #fff;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  width: 100%; /* ضمان البقاء داخل شبكة الـ Grid */
}

/* تأثير اللمس لبطاقة الجامعة (قفزة وضوء) - كما هو لإبداعه */
.uni-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 210, 255, 0.5);
  box-shadow: 0 20px 40px rgba(0, 210, 255, 0.15);
  background: rgba(255, 255, 255, 0.05) !important;
}

/* شعار الجامعة داخل البطاقة */
.uni-card-logo {
  width: clamp(90px, 20vw, 110px); /* حجم مرن يصغر مع الشاشة */
  height: clamp(90px, 20vw, 110px);
  object-fit: contain;
  margin-bottom: 25px;
  background: #fff; 
  padding: 15px;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 3px solid transparent;
}

.uni-card:hover .uni-card-logo {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 210, 255, 0.4);
  border-color: #00d2ff;
}

.uni-card h3 {
  font-size: clamp(16px, 4vw, 20px); /* حجم خط مرن للجوال */
  margin: 0;
  line-height: 1.4;
  font-weight: 700;
  transition: color 0.3s ease;
}

.uni-card:hover h3 {
  color: #00d2ff;
}

/* إصلاح تباعد البطاقات في الشاشات الصغيرة جداً */
@media (max-width: 400px) {
  .uni-cards-grid {
    grid-template-columns: 1fr; /* تحويلها لعمود واحد في الهواتف الصغيرة جداً */
  }
}
/************************************************
/* ========================================================= */
/* --- جدار الشعارات المدمج والمتحرك (Sponsor Wall) --- */
/* ========================================================= */

.bottom-sponsor-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* التوسيط الذكي بدلاً من الإزاحة اليدوية */
  align-items: center;
  gap: clamp(10px, 3vw, 15px); 
  width: 100%; /* تغيير من 95vw لمنع البتر الجانبي */
  max-width: 1200px; /* ضمان عدم التمدد المبالغ فيه في الشاشات الكبيرة */
  margin: 0 auto; /* ضمان التوسط في الويندوز والهاتف */
  padding: clamp(10px, 4vw, 20px);
  position: relative;
  /* تم حذف الإزاحات (right & transform) لأنها المسببة لمشكلة "لم الشاشة" */
}

/* صندوق الشعار (ألوان الموقع مع تأمين الحجم) */
.sponsor-logo-box {
  width: clamp(100px, 25vw, 140px); /* حجم مرن يصغر تلقائياً في الهاتف */
  height: clamp(50px, 12vw, 65px); 
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  
  background: rgba(0, 210, 255, 0.015); 
  border: 1px solid rgba(155, 81, 224, 0.15); 
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  
  padding: 8px; 
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: floatLogos 4s ease-in-out infinite;
}

/* تفريق الحركة */
.sponsor-logo-box:nth-child(even) { animation-delay: -2s; }
.sponsor-logo-box:nth-child(3n) { animation-delay: -1s; }

/* أنيميشن الطفو (أبقيته كما هو لجماله) */
@keyframes floatLogos {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.sponsor-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5); 
  transition: all 0.4s ease;
}

/* التأثير السحري عند مرور الماوس (بألوان نيون الموقع) */
.sponsor-logo-box:hover {
  animation-play-state: paused;
  transform: scale(1.1) translateY(-5px) !important;
  background: rgba(0, 210, 255, 0.05); 
  border: 1px solid rgba(0, 210, 255, 0.6);
  box-shadow: 0 10px 30px rgba(0, 210, 255, 0.25), inset 0 0 10px rgba(155, 81, 224, 0.1);
  z-index: 10;
}

.sponsor-logo-box:hover img {
  filter: grayscale(0%) opacity(1); 
}
/*
/* ========================================================= */
/* --- قسم الفيديو (Video Section) --- */
/* ========================================================= */
.video-presentation-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  /* استخدام clamp للمسافات الرأسية لمنع الفراغات المبالغ فيها في الجوال */
  margin: clamp(30px, 5vh, 40px) 0 clamp(40px, 8vh, 50px) 0; 
  padding: 0 clamp(15px, 5%, 20px); /* إضافة padding جانبي لحماية التأثير الزجاجي في الهاتف */
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 850px; 
  aspect-ratio: 16 / 9; 
  border-radius: 20px;
  overflow: hidden; 
  background: rgba(0, 0, 0, 0.5); 
  
  /* تأثيرات زجاجية وإضاءة خفيفة (تم جعلها مرنة) */
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* تقليل حجم الـ box-shadow قليلاً في الجوال لضمان عدم تسببه في "لم الشاشة" */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 clamp(10px, 4vw, 30px) rgba(0, 210, 255, 0.15);
  transition: all 0.4s ease;
}

.video-container:hover {
  box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 40px rgba(0, 210, 255, 0.3);
  transform: translateY(-5px);
}

/* إصلاحات خاصة بالجوال لضمان سلاسة العرض */
@media (max-width: 600px) {
  .video-container {
    border-radius: 15px; /* حواف أنعم قليلاً لتناسب الشاشات الصغيرة */
  }
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
/* ========================================================= */
/* --- الإصلاح الشامل والنهائي للذيل (Neon Glass Footer) --- */
/* ========================================================= */

.main-footer {
    margin-top: clamp(60px, 10vh, 100px);
    padding: clamp(40px, 8vw, 70px) 5% 20px;
    border-radius: 40px 40px 0 0;
    width: 100%;
    /* يرث الخصائص من premium-glass-panel */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* تحسين توزيع الأعمدة ليكون أكثر مرونة في الويندوز */
    grid-template-columns: 1fr 0.8fr 0.8fr 1.2fr; 
    gap: clamp(25px, 4vw, 40px);
    direction: rtl;
    align-items: start;
    width: 100%;
}

/* --- عمود الهوية (الشعار والأيقونات) --- */
.brand-col {
    display: flex;
    flex-direction: column;
    align-items: center !important; 
    text-align: center;
    gap: 15px !important; 
    width: 100%;
}

.footer-logo-wrapper {
    width: clamp(120px, 15vw, 150px) !important; 
    margin: 0 auto !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-logo {
    width: 100% !important;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.3));
}

/* --- الأيقونات النيون الزجاجية (Social Links) --- */
.social-links {
    display: flex !important;
    gap: 12px !important;
    justify-content: center !important;
    margin-top: 5px !important;
    flex-wrap: wrap; /* لضمان عدم خروجها عن الإطار في الجوال الصغير */
}

.social-icon {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e9eefc !important;
    font-size: 18px !important;
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(0, 210, 255, 0.15) !important;
    border-color: #00d2ff !important;
    color: #00d2ff !important;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4), inset 0 0 10px rgba(0, 210, 255, 0.2);
}

/* --- محاذاة الأعمدة النصية --- */
.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    width: 100%;
}

.footer-col h4 {
    color: #00d2ff;
    font-size: clamp(18px, 4vw, 20px);
    margin-bottom: 25px;
    position: relative;
    font-weight: 700;
    width: fit-content;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 35px;
    height: 2px;
    background: #9b51e0;
    box-shadow: 0 0 8px rgba(155, 81, 224, 0.6);
}

/* --- الحقوق السفلى --- */
.footer-bottom {
    margin-top: 60px;
    padding: 30px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center !important; 
    align-items: center;
    text-align: center;
    width: 100%;
}

.footer-bottom p {
    margin: 0;
    color: #5a6678;
    font-size: 14px;
    width: 100%;
}

/* --- التجاوب مع الجوال (إصلاحات البتر الجذري) --- */
@media (max-width: 950px) {
    .footer-container {
        grid-template-columns: 1fr 1fr !important; /* تحويل لعمودين في الأجهزة المتوسطة */
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr !important; /* عمود واحد في الجوال */
        gap: 35px;
    }
    .footer-col, .brand-col {
        align-items: center !important;
        text-align: center;
    }
    .footer-col h4::after {
        right: 50%;
        transform: translateX(50%);
    }
}
/* تنسيق صندوق النص الزجاجي */
.premium-textarea {
  min-height: 120px; /* ارتفاع مناسب للكتابة */
  resize: vertical; /* السماح للمستخدم بتغيير الارتفاع رأسياً فقط */
  line-height: 1.6;
  padding-top: 15px !important;
}

/* تحسين المظهر في الهواتف الصغيرة */
@media (max-width: 600px) {
  .premium-textarea {
    min-height: 100px;
    font-size: 14px;
  }
}
/* --- تصميم صفحات الخدمات الزجاجي --- */
.service-page { background: #050810; overflow-x: hidden; }

.service-hero {
    padding: clamp(100px, 15vh, 150px) 20px 60px;
    display: flex;
    justify-content: center;
}

.service-main-card {
    max-width: 900px;
    width: 100%;
    padding: clamp(30px, 8vw, 60px) clamp(20px, 5vw, 40px);
    border-radius: 40px;
    text-align: center;
}

.service-icon-header {
    font-size: 60px;
    color: #00d2ff;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.5));
}

.service-description {
    font-size: clamp(16px, 4vw, 19px);
    line-height: 1.8;
    color: #a0aec0;
    margin-bottom: 40px;
}

.service-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.s-feature-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.3s ease;
}

.s-feature-card i { font-size: 30px; color: #9b51e0; margin-bottom: 15px; }
.s-feature-card h4 { margin-bottom: 10px; color: #fff; }
.s-feature-card:hover { border-color: #00d2ff; transform: translateY(-5px); }

.service-steps { text-align: right; margin-top: 50px; }
.service-steps h3 { margin-bottom: 25px; border-right: 4px solid #f3b131; padding-right: 15px; }

.cta-box { margin-top: 50px; }
/**
/* ========================================================= */
/* 1. إخفاء زر الثلاث خطوط من اللابتوب (بشكل قاطع ونهائي) */
/* ========================================================= */
#mobile-menu-btn, .mobile-menu-btn {
  display: none !important;
}

/* ========================================================= */
/* 2. تصميم الجوال (زجاج بريميوم، إضاءة نيون، وحركات سلسة) */
/* ========================================================= */
@media (max-width: 992px) {
  
  /* إظهار الزر بتأثير النيون */
  #mobile-menu-btn {
    display: block !important; font-size: 26px !important; 
    color: #00d2ff !important; cursor: pointer !important; 
    margin-right: auto !important; z-index: 10000 !important;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5) !important; /* توهج الزر */
  }

  /* الحاوية الزجاجية النيونية (Premium Glass) */
  #mobile-nav-links {
    position: fixed !important; top: 0 !important; right: -100% !important; left: auto !important;
    width: 290px !important; height: 100vh !important;
    
    /* --- سحر الزجاج هنا --- */
    background: rgba(8, 16, 32, 0.75) !important; /* شفافية أنيقة */
    backdrop-filter: blur(20px) !important; /* تمويه الخلفية */
    -webkit-backdrop-filter: blur(20px) !important; /* لسفاري والآيفون */
    border-left: 1px solid rgba(0, 210, 255, 0.2) !important; /* خط نيون خفيف على الحافة */
    box-shadow: -10px 0 40px rgba(0, 210, 255, 0.1) !important; /* توهج أزرق ناعم يسبق القائمة */
    /* ---------------------- */

    display: block !important; padding: 80px 0 30px 0 !important;
    transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; /* دخول بحركة ارتداد سينمائية */
    z-index: 9999 !important; overflow-y: auto !important; direction: rtl !important;
  }

  #mobile-nav-links.active { right: 0 !important; }

  /* الروابط الرئيسية (الخدمات، الجامعات..) */
  #mobile-nav-links .nav-item, #mobile-nav-links .dropbtn {
    display: flex !important; justify-content: space-between !important; align-items: center !important;
    width: 100% !important; padding: 16px 25px !important; margin: 0 !important;
    background: transparent !important; border: none !important;
    border-bottom: 1px solid rgba(0, 210, 255, 0.1) !important; /* فاصل نيون خفيف جداً */
    color: #f1f5f9 !important; font-size: 16px !important; text-align: right !important;
    transition: all 0.3s ease !important;
  }

  /* تأثير الإضاءة عند اللمس أو فتح القائمة */
  #mobile-nav-links .nav-item:active, #mobile-nav-links .dropbtn:active,
  #mobile-nav-links .dropdown.active > .dropbtn {
    color: #00d2ff !important; /* يتحول للأزرق النيوني */
    background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.05)) !important; /* تدرج لوني */
    border-right: 3px solid #00d2ff !important; /* شريط مضيء جهة اليمين */
  }

  #mobile-nav-links .icon { display: none !important; }

  /* ========================================================= */
  /* تجميل الأكورديون (الروابط الداخلية) */
  /* ========================================================= */
  #mobile-nav-links .dropdown, #mobile-nav-links .dropdown-submenu {
    display: block !important; position: static !important; width: 100% !important; margin: 0 !important; padding: 0 !important;
  }

  /* القوائم الفرعية - زجاج أغمق قليلاً لخلق العمق */
  #mobile-nav-links .menu, #mobile-nav-links .submenu {
    display: none !important; position: static !important;
    background: rgba(0, 0, 0, 0.25) !important; 
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.3) !important; /* ظل داخلي لتبدو كأنها غائرة للداخل */
    width: 100% !important; padding: 0 !important; margin: 0 !important; border: none !important;
  }

  #mobile-nav-links .dropdown.active > .menu, #mobile-nav-links .dropdown-submenu.active > .submenu {
    display: block !important;
  }

  /* أسماء الجامعات والخدمات */
  #mobile-nav-links .menu a, #mobile-nav-links .submenu a {
    display: block !important; padding: 12px 30px 12px 20px !important;
    color: #94a3b8 !important; font-size: 14px !important; text-align: right !important; text-decoration: none !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05) !important;
    border-right: 2px solid rgba(0, 210, 255, 0.15) !important; /* خط تسلسل هرمي */
    transition: all 0.3s ease !important;
  }

  /* توهج أسماء الجامعات عند لمسها */
  #mobile-nav-links .menu a:active, #mobile-nav-links .submenu a:active {
    color: #00d2ff !important;
    padding-right: 38px !important; /* حركة دفع خفيفة لليسار عند اللمس */
    border-right: 2px solid #00d2ff !important;
    background: rgba(0, 210, 255, 0.05) !important;
  }

  /* تدوير السهم الصغير بنعومة عند الفتح */
  #mobile-nav-links .caret, #mobile-nav-links .submenu-btn span {
    transition: transform 0.3s ease !important;
    display: inline-block !important;
  }
  #mobile-nav-links .dropdown.active > .dropbtn .caret,
  #mobile-nav-links .dropdown-submenu.active > .submenu-btn span {
    transform: rotate(180deg) !important;
    color: #00d2ff !important;
  }
}