body { font-family: 'Cairo', sans-serif; background-color: #f8f9fa; }

:root {
    --primary: #50a1a3;   /* مثال: أخضر زاهي، يمكنك تغييره */
    --secondary: #FF6700;  /* مثال: برتقالي، يمكنك تغييره */
    --light: #F8F9FA;     /* لون فاتح للخلفيات */
    --dark: #212529;      /* لون داكن للنصوص والخلفيات */
    --gray: #6C757D;      /* لون رمادي */
}



.ads-card {
  height: 350px; /* أو أي ارتفاع ثابت يناسبك */
  border-radius: 10px;
  border: 1px solid #ddd;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ads-image {
  width: 100%;
  height: 200px; /* اجعلها أقل من ارتفاع البطاقة */
  object-fit: contain;
  background-color: #f8f9fa; /* خلفية رمادية فاتحة لو كانت الصورة صغيرة */
  padding: 10px;
}




/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary {
    background-image: linear-gradient(to right, #000000, #032d36);
    border: 2px solid #032d36 !important; /* ✅ لون الإطار */
    color: #fff;
    box-shadow: none !important; /* ✅ إزالة الظل الأزرق */
}

.btn-primary:hover {
    background-image: linear-gradient(to right, #50a1a3, #000000);
    border-color: #50a1a3 !important; /* ✅ لون الإطار عند التمرير */
    color: #fff;
}


/* ثانوي */
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
    box-shadow: none !important;
}

.btn-outline-primary:hover {
    background-image: linear-gradient(to right, #50a1a3, #000000);
    color: #fff;
    border-color: var(--primary);
}

/*** Navbar ***/

.gradient-navbar {
  background-image: linear-gradient(to right, #000000, #032d36); /* أزرق داكن إلى أزرق سماوي */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.navbar-dark .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    position: relative;
    margin-left: 10px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 145x;
    font-weight: 600;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary)!important;
}

.navbar-dark .navbar-brand h1 {
    color: #FFFFFF;
}

.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}




/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .7);
    z-index: 1;
}


@media (max-width: 576px) {
  .carousel-mobile-height {
    height: 40vh !important;
  }

  .carousel-text h5 {
    font-size: 1.5rem !important;
  }

  .carousel-text p {
    font-size: 1rem !important;
  }

  .carousel-text a.btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
}


  
/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

.section-title {
  position: relative;
}

@keyframes section-title-run {
  0% { left: 0; }
  50% { left: 145px; }
  100% { left: 0; }
}

@keyframes section-title-run-center {
  0% { left: 50%; margin-left: -75px; }
  50% { left: 50%; margin-left: 45px; }
  100% { left: 50%; margin-left: -75px; }
}

@keyframes section-title-run-sm {
  0% { left: 0; }
  50% { left: 85px; }
  100% { left: 0; }
}



/********************facts*********************************/
/********************facts**************************/
/********************facts*********************************/




   facts-overlay-fix {
      margin: 0;
      font-family: Arial, sans-serif;
      background: #000;
      padding: 60px 0;
    }

    .facts-container {
      display: flex;
      justify-content: center;
      gap: 30px;
      flex-wrap: wrap;
      max-width: 1200px;
      margin: 0 auto;
    }

    .fact-box {
      background-image: linear-gradient(to right, #000000, #032d36);
      color: #ffffff;
      border: 2px solid #032d36 !important;
      border-radius: 12px;
      padding: 30px 40px;
      text-align: center;
      box-shadow: 0 0 20px rgba(0,0,0,0.3);
      min-width: 220px;
      transition: all 0.3s ease;
    }

    .fact-box:hover {
      background-image: linear-gradient(to right, #50a1a3, #000000);
      border-color: #50a1a3 !important;
      transform: scale(1.05);
    }

    .fact-icon {
      font-size: 36px;
      margin-bottom: 10px;
      color: #fff;
    }

    .counter {
      font-size: 36px;
      font-weight: bold;
      color: #ffffff;
    }

    .label {
  font-size: 18px;
  margin-top: 10px;
  color: #ffffff;
  font-family: sans-serif;
  font-weight: bold;
}
/* عند اللغة الأردية */
html[lang="ur"] .label {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-weight: normal; /* نستعليق لا يدعم bold غالبًا */
}

  /* Desktop: مساحة تحت الكاروسيل لاستيعاب overlay */
@media (min-width: 769px) {
  #mainCarousel {
    margin-bottom: 120px; /* حسب ارتفاع facts overlay */
  }
}

/* Mobile: إزالة المساحة الإضافية */
@media (max-width: 768px) {
  .facts-overlay-fix {
    position: relative !important;
    z-index: 2;
    margin-top: -50px !important;
    padding: 0 10px;
  }

  .facts-container {
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 10px;
    max-width: 100%;
  }

  .fact-box {
    flex: 1;
    max-width: 33%;
    min-width: 0;
    padding: 15px 5px;
    margin: 0 auto;
  }

  .fact-icon {
    font-size: 24px;
    margin-bottom: 5px;
  }

  .counter {
    font-size: 22px;
  }

  .label {
    font-size: 13px;
    margin-top: 5px;
  }

  #mainCarousel {
    margin-bottom: 0 !important; /* ⛔ إزالة أي فراغ */
    padding-bottom: 0 !important;
  }
}
/* الوضع الطبيعي (لابتوب) */
.facts-overlay-fix {
  margin-top: -100px;  /* ترتفع قليلاً لتظهر فوق حدود الكاروسيل */
  z-index: 1;
  position: relative;
}

/* تنسيق عام */
.facts-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.fact-box {
  flex: 1 1 250px;
  background: linear-gradient(to right, #000, #032d36);
  color: white;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

/* في الجوال: لا ترفعها فوق الكاروسيل */
@media (max-width: 768px) {
  .facts-overlay-fix {
    position: relative !important;
    z-index: 2;
    margin-top: -50px !important;
  }

  .fact-box {
    flex: 1;
    max-width: 33%;
    min-width: 0;
  }
}





/* عنوان المناهج في صفحة الطالب والمعلم */
.bg-primary {
    background: linear-gradient(to right, #000000, #032d36) !important;
}




/******************************footer******************/
/* كلاس منفصل تماماً ومخصص للفوتر فقط ليحاكي ألوان وتدرج الهيدر بدقة */
.site-footer-gradient {
    background-image: linear-gradient(to right, #000000, #032d36) !important;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    color: #ffffff !important;
    padding: 20px 0 !important; /* حجم متناسق للفوتر */
    margin-top: 40px; /* مسافة أمان لمنعه من الارتفاع وتغطية العناصر */
}






//////////////////////////////////////////////////////////
////////////////////////////////////////////////////////
//////////////////////////////////////////////////////*/
/* ==========================================
   الضربة القاضية لإجبار الخطوط من ملف الـ CSS فقط
   ========================================== */

/* 1. جلب جميع الخطوط للتأكد من وجودها بالموقع */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Inter:wght@400;600;700&family=Noto+Nastaliq+Urdu&display=swap');

/* 2. اللغة العربية: تدمير أي خط آخر وإجبار خط Cairo */
html[lang="ar"], 
html[lang="ar"] body, 
html[lang="ar"] *:not(i):not(.fa):not(.fab):not(.fas) {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* 3. اللغة الأوردو: تدمير أي خط آخر وإجبار خط النستعليق مع ضبط المسافات */
html[lang="ur"], 
html[lang="ur"] body, 
html[lang="ur"] *:not(i):not(.fa):not(.fab):not(.fas) {
    font-family: 'Noto Nastaliq Urdu', 'Urdu Typesetting', permanent-marker, serif !important;
    line-height: 2.4 !important;
}

/* 4. اللغة الإنجليزية: تدمير أي خط آخر وإجبار خط Inter */
html[lang="en"], 
html[lang="en"] body, 
html[lang="en"] *:not(i):not(.fa):not(.fab):not(.fas) {
    font-family: 'Inter', sans-serif !important;
}

/* 5. إصلاح الفوتر ذو اللون الأزرق المكتوب داخل الـ HTML تلقائياً */
footer, [style*="background-color: #004080"] {
    background: linear-gradient(to right, #000000, #032d36) !important;
    color: #ffffff !important;
}


/*/////////////////////////////////////////////////
//////////////////////////////////////////////////
/////////////////الخاص بالترحيب/////////////////*/
/*** تنسيقات إضافية لقسم الترحيب المعدل ***/

/* ألوان تمييز أسماء اللغات */
.lang-highlight-ar { color: #50a1a3; } /* مستوحى من var(--primary) الخاص بك */
.lang-highlight-en { color: #032d36; }
.lang-highlight-ur { color: #FF6700; } /* مستوحى من var(--secondary) الخاص بك */

/* شارة الترحيب الصغيرة */
.welcome-badge {
    background-color: rgba(80, 161, 163, 0.15) !important;
    color: #50a1a3 !important;
}

/* لون عنوان الأكاديمية */
.welcome-heading {
    color: #032d36 !important;
}

/* بطاقات الميزات الصغيرة - متطابقة مع تصميم الـ fact-box الخاص بك */
.custom-welcome-card {
    background: #ffffff !important;
    border: 1px solid #ddd !important;
    border-radius: 10px !important;
    transition: all 0.5s ease !important; /* نفس مدة الـ transition للأزرار عندك */
}

/* تأثير التمرير (Hover) مطابق لأسلوب الـ fact-box والـ btn */
.custom-welcome-card:hover {
    background-image: linear-gradient(to right, #50a1a3, #000000) !important;
    border-color: #50a1a3 !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

/* تحويل نصوص وأيقونات البطاقة للون الأبيض عند التمرير */
.custom-welcome-card:hover h5,
.custom-welcome-card:hover p,
.custom-welcome-card:hover .welcome-icon-shape {
    color: #ffffff !important;
}

/* شكل دائرة الأيقونات الافتراضي */
.welcome-icon-shape {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-image: linear-gradient(to right, #000000, #032d36); /* تدرج الهيدر الخاص بك */
    color: #ffffff;
    transition: all 0.5s ease;
}
/* تخصيص زر اكتشف المزيد المتوافق مع هوية الأكاديمية */
.welcome-section .btn-outline-primary {
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
    background-color: transparent !important;
    font-weight: 700 !important; /* إعطائه وزناً واضحاً ومتناسقاً مع خط كايرو */
    box-shadow: none !important;
}

/* تأثير التمرير الفوقي (Hover) مطابق تماماً للهيدر وبقية أزرار الموقع */
.welcome-section .btn-outline-primary:hover {
    background-image: linear-gradient(to right, #50a1a3, #000000) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
}




/*///////////////////////////////
///////صفحة امثلةالتدريس /////*/
/* ضبط اتجاه العناصر التلقائي بناءً على لغة الصفحة المفعلة علوياً */
html[lang="ar"] body, html[lang="ur"] body {
    direction: rtl;
    text-align: right;
}

html[lang="en"] body {
    direction: ltr;
    text-align: left;
}

/* تنسيق إضافي لبطاقات الميديا لضمان ثبات المساحات وتناسق مشغل الفيديو والصور المرفوعة */
.ads-card video {
    outline: none;
    background: #000;
}

/* معالجة الهوامش للأيقونات داخل الأزرار حسب اتجاه النص */
html[lang="en"] .btn i {
    margin-right: 8px;
}
html[lang="ar"] .btn i, html[lang="ur"] .btn i {
    margin-left: 8px;
}

/* ضمان توافق الـ Flexbox مع تبديل اللغات داخل الأزرار السفلى للبطاقة */
html[lang="en"] .ads-card .d-flex {
    flex-direction: row !important;
}
html[lang="ar"] .ads-card .d-flex, html[lang="ur"] .ads-card .d-flex {
    flex-direction: row-reverse !important;
}


/*///////////////////////search///////////*/

mark {
    background-color: #ffeb3b; /* لون تمييز أصفر خلف الكلمة */
    color: #000;              /* لون الخط داخل التمييز */
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: bold;
}