/* =========================
   Global / Body
========================= */
/* =========================
   Global / Body
========================= */
body {
  background: #01163b;
  margin: 0;
  padding: 0;
  font-family: 'Cairo', sans-serif; /* استخدام خط Cairo فقط */
}

/* =========================
   نهاية Global / Body
========================= */


/* =========================
   بداية Navbar Bottom
========================= */
#navbar {
  position: fixed;           
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(1) translateY(0);
  width: 100%;               
  background-color: #f2f2f200; /* لون أبيض شفاف */
  padding: 0.5rem 1.5rem;
  z-index: 9999;
  direction: ltr;
  border-radius: 20px;
  transition: transform 0.3s ease, backdrop-filter 0.3s ease, background-color 0.3s ease;
}

/* تأثير عند التمرير */
#navbar.scrolled {
  transform: translateX(-50%) scaleX(0.95) translateY(20px);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  background-color: #f2f2f269; /* شفاف مع بلور */
}

/* زر تسجيل الدخول */
.btn-login {
  background-color: #ff6600; /* لون نص اللوجو */
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.5rem 0.5rem;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}
.btn-login:hover {
  background-color: #ff6600;
  color: white;
}

/* زر إنشاء حساب جديد */
.btn-outline-logo {
  color: #ff6600; /* نفس لون النص */
  border: 2px solid #ff6600;
  border-radius: 10px;
  padding: 0.5rem 0.5rem;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}
.btn-outline-logo:hover {
  background-color: #ff6600;
  color: white;
}

/* حجم اللوجو */
.nav-logo {
  height: 65px;
  transition: transform 0.3s ease;
}

/* =========================
   تعديل Offcanvas ليملأ طول الشاشة
========================= */
.offcanvas {
  width: 250px; /* عرض Offcanvas من الجنب */
  height: 100vh; /* طول كامل الشاشة */
}

.offcanvas-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
  gap: 1rem;
}

/* زر الهامبورجر */
.btn-dark.d-md-none {
  background-color: #f2f2f200; /* نفس لون خلفية الصفحة */
  border: none;
  padding: 10px;       /* حجم مناسب */
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
}

/* الخطوط داخل الزرار */
.btn-dark.d-md-none .navbar-toggler-icon {
  background-color: #ff6600; /* الخطوط برتقالية */
  width: 30px;
  height: 4px;
  border-radius: 2px;
  position: fixed;
  transition: all 0.3s ease;
}

/* الخطين فوق وتحت */
.btn-dark.d-md-none .navbar-toggler-icon::before,
.btn-dark.d-md-none .navbar-toggler-icon::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 4px;
  background-color: #ff6600;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.btn-dark.d-md-none .navbar-toggler-icon::before {
  top: -10px;
}

.btn-dark.d-md-none .navbar-toggler-icon::after {
  bottom: -10px;
}


/* =========================
   بداية Hero Card
========================= */
.hero-card {
  background-image: url(2.jfif);
  background-size: cover;
  background-position: center;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  width: 99vw;
  height: 510px;
  margin-top: 130px;
  padding: 0 30px;
  gap: 1.5rem;
}

/* الصورة على اليمين */
.hero-img-container {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
}
.hero-img-container img {
  display: block;
  width: auto;
  max-height: 95%;
  margin-left: -10px;
}

/* النصوص والزرار على اليسار */
.hero-text-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  color: white;
  gap: 1.2rem;
}

/* محاذاة الجروبات النصية */
.hero-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

/* المجموعة الأولى: h2 و h3 */
h2 {
  font-weight: 900;
  font-size: 1.6rem;
  color: white;
  margin: 0;
}

.name {
  color: #f8b422;
  font-weight: 900;
  font-size: 3rem;
}

h3 {
  font-weight: 800;
  font-size: 1.8rem;
  color: #f8b422;
  margin: 0;
}

/* المجموعة الثانية: p + زر */
p.mb-2 {
  font-weight: 900;
  font-size: 1.15rem;
  color: #ffffff;
}

.ed {
  color: #c9c6c4;
  font-weight: 900;
  font-size: 2.5rem;
}

p.mb-3 {
  font-weight: 800;
  font-size: 1.35rem;
  color: #ffffff;
  margin: 0;
}

/* زر الاشتراك */
.btn-outline-hero {
  color: #f8b422;
  border: 2px solid #8b68ce;
  border-radius: 12px;
  padding: 0.6rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  transition: all 0.2s ease;
}
.btn-outline-hero:hover {
  color: #F2F4F6;
  border: 2px solid #8b68ce;
  transform: translateY(-2px);
}
/* =========================
   نهاية Hero Card
========================= */


/* =========================
   بداية Cards Section
========================= */
.stu {
  text-align: center;
  color: #ff6600;
  font-weight: 900;
  font-size: 3.5rem;
  margin-top: 50px;
}

.card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin-top: 50px;
}

.card-img-top {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* النص المخفي */
.card-text-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  color: white;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(5px);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 900;
}

/* تأثير Hover */
.card:hover .card-img-top {
  transform: scale(1.05);
  filter: blur(5px);
}

.card:hover .card-text-overlay {
  transform: translateY(0);
  opacity: 1;
}
/* =========================
   نهاية Cards Section
========================= */


/* =========================
   بداية Big Card / Footer
========================= */
.big-card {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  max-width: 100%;
  margin: 20px auto;
  padding: 2rem;
  background-color: #01163b;
  border-radius: 12px;
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(238, 142, 17, 0.4);
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  box-sizing: border-box;
}

.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  width: 200px;
  height: auto;
  border-radius: 10px;
}

.social-links {
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.social-links li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #F2F4F6;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.social-links li a i {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

.social-links li a:hover {
  color: #f8b422;
}

.center-content p {
  color: #F2F4F6;
  font-weight: bold;
  font-size: 1rem;
  margin: 0.3rem 0;
}

.center-content a {
  color: #F2F4F6;
  text-decoration: none;
  font-weight: 700;
}

.center-content a:hover {
  color: #f8b422;
}

.ah, .km {
  background-color: #8b68ce;
  border-radius: 10px;
  padding: 10px;
}

p{
  color: #f8b422;
  font-weight: 900;
  font-size: 1.2rem;
}
/* =========================
   نهاية Big Card / Footer
========================= */




/* ===================
بدايه الريسبونسيف بقي
====================== */

/* ______________________________________________________________________________________________________________________________ */

/* =========================
   Hero Card Responsive
========================= */
@media (max-width: 991px) {
  .hero-card {
    flex-direction: column;  /* ترتيب العناصر عمودياً */
    align-items: center;     /* محاذاة جميع العناصر للوسط */
    height: auto;            /* ارتفاع ديناميكي حسب المحتوى */
    padding: 20px;
    gap: 1rem;
    margin-top: 100px;
  }

  /* الصورة أولاً */
  .hero-img-container {
    order: 0;                /* الصورة تأتي أولاً */
    width: 100%;
    justify-content: center; /* الصورة في الوسط */
    margin-bottom: 20px;
  }
  .hero-img-container img {
    max-width: 80%;          /* حجم مناسب للشاشات الصغيرة */
    height: auto;
    margin-left: 0;
  }

  /* النصوص بعد الصورة */
  .hero-text-container {
    order: 1;
    width: 100%;
    text-align: center;      /* محاذاة النصوص للوسط */
    padding: 0 15px;
    gap: 0.8rem;
  }
  .hero-text-group {
    align-items: center;     /* محاذاة الجروبات للنصوص للوسط */
  }

  /* الزرار */
  .btn-outline-hero {
    order: 2;
    margin-top: 1rem;
    align-self: center;      /* الزرار في الوسط */
  }

  /* تعديل حجم النصوص قليلاً على الموبايل */
  h2 {
    font-size: 1.4rem;
  }
  .name {
    font-size: 2.5rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  .ed {
    font-size: 2rem;
  }
  p.mb-3 {
    font-size: 1.2rem;
  }
}


/* =========================
   Cards Section Responsive
========================= */
@media (max-width: 991px) {
  .container .row {
    flex-direction: column;     /* ترتيب العناصر عمودي */
    align-items: center;        /* محاذاة الكارتات للوسط */
    gap: 2rem;                  /* مسافة بين الكارتات */
  }

  /* كل كارد يأخذ عرض أقل من 100% ليبقى متناسق */
  .col-md-5, .col-md-6 {
    width: 90%;                 /* عرض الكارد 90% من الشاشة */
    max-width: 400px;           /* الحد الأقصى للعرض */
    margin: 0 auto;             /* محاذاة الكارد للوسط */
  }

  /* تعديل عنوان القسم */
  .stu {
    font-size: 2.5rem;          /* حجم أصغر للشاشات الصغيرة */
    margin-top: 30px;
  }

  /* تعديل نص Overlay لو حابب */
  .card-text-overlay {
    font-size: 1.3rem;          /* أصغر شويه */
    padding: 0.8rem;
  }
}
