/* الخط من جوجل */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');


body {
  font-family: 'Cairo', sans-serif;
  background-color: #000;
  justify-content: flex-end
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}




/* تنسيق شعار الفاروق */
.farouq {
  width: 116px;
  position: fixed;
  top: 10px;
  left: 20px; /* أو right حسب اتجاه الموقع */
  font-family: 'Cairo', sans-serif;
  width: 120px;
  font-weight: bold;
  z-index: 1100; /* أعلى من التوب بار */
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0% {
    filter: drop-shadow(0 0 0px #ffdd00);
    opacity: 0.8;
  }
  50% {
    filter: drop-shadow(0 0 20px #ffdd00);
    opacity: 1;
  }
  100% {
    filter: drop-shadow(0 0 0px #ffdd00);
    opacity: 0.8;
  }
}




/* بدايه الافاتار بعد تسجيل الدخول */
.user-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100px; /* ضبط المسافة بين الأفاتار والجرس */
  margin-left: auto; /* يخليها ع اليمين */
  gap: 15px;
  cursor: pointer;
  position: relative; /* مهم لتحديد موضع القوائم */
}

.avatar-dropdown img.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  user-select: none;
}

.notification-icon img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1); /* تخلي صورة الجرس بيضاء */
  user-select: none;
}

.dropdown-menu {
  position: absolute;
  background-color: #000 !important; /* خلفية سوداء ثابتة */
  color: #fff !important;           /* نص أبيض */
  border: none;
  padding: 10px;
  border-radius: 5px;
  top: 60px;
  right: 0; /* بدل 20px لتكون من تحت الأفاتار أو الجرس مباشرة */
  display: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.7);
  z-index: 1000;
  min-width: 150px;
  font-family: 'Cairo', sans-serif;
}

.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  color: #fff !important; /* نص أبيض */
  text-decoration: none;  
  transition: background-color 0.3s ease, color 0.3s ease;

}

.dropdown-menu a:hover {
  color: #ddd !important; /* لون أبيض فاتح عند التمرير */
  background-color: rgba(255, 255, 255, 0.1);
}

/* تحديد خاص لقائمة الإشعارات */
#notifMenu {
  background-color: #000 !important;
  color: #fff !important;
  cursor: default;
}

/* تحديد خاص لقائمة الملف */
#dropdownMenu {
  background-color: #000 !important;
  color: #fff !important;
}

hr.avatar-hr{
  border: none; 
  border-bottom: 2px solid #c82f44; 
  width: 100%; 
  margin: 10px 0; 
}

/* تنسيق الهيرو */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 50px;
  direction: rtl;
  background: #000;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin-top: -250px;
  margin-left: auto;
  margin-right: auto; /* تعديل اليسار واليمين لتوسيط المحتوى */
}

.hero-text h1 {
  font-size: 60px;
  color: #fff;
  font-family: 'Changa', sans-serif;
  position: absolute;
  right: 50px;
  top:50px;
}


.hero-text p {
  font-size: 28px;
  color: #ccc;
  font-family: 'Cairo', sans-serif;
  position: relative;
  left: -20px;
  top:50px;
}
.span-hero{
  color: #c82f44;
}
.span-hero2{
  color: #c82f44;
  position: absolute;
  right: 10px;
  top:90px;
}

.hero-image img {
  background-color: #000;
  position: absolute;
  width: 400px; /* أو أي عرض يناسبك */
  height: auto;
  top: 130px; /* تبعدها عن التوب بار */
  left: 70px;
}
.login-hero {
  position: absolute; 
  right: 100px;
  bottom: 90px; 
  z-index: 100;
  padding: 16px 68px;
  font-size: 16px;
  border-radius: 6px;
  font-weight: bolder;
  background-color: #ccc;
  color: #000;
  border: none;
  cursor: pointer;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border: 0.5px solid transparent;

}

.login-hero:hover {
  background-color: transparent;
  color: #fff;
  border: 0.5px solid #fff;
}

.login-text {
  align-self: flex-start; 
}

.login-icon {
  font-size: 18px;
}
/* الكارت */
    .title {
      display: flex;
      justify-content: center;
      color: #01022d;
      font-size: 50px;
      font-weight: 1200;
      margin-bottom: 30px;
  }
  
  .content {
      display: flex;
      justify-content: center;
      flex-direction: row;
      flex-wrap: wrap;
  }
  
.cards {
  height: 100vh;
  background-color: #b50439;
  margin-top: -50px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

/* الكارت */
.card {
  background-color: #dc0042;
  height: 270px;
  width: 330px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 25px;
  margin: 15px;
  margin-top: 75px;
  transition: 0.3s ease;
}

/* الأيقونة */
.card .icon {
  font-size: 3em;
  color: #f6ff00;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px auto 20px;
  background-color: #91002c;
}

/* العنوان */
.title-card {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  font-size: 20px;
  color: #fff;
  font-weight: 500;
  background-color: #91002c;
  border-radius: 10px;
  padding: 10px 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ✅ تحسين للموبايل */
@media (max-width: 600px) {
  .cards {
    height: auto; /* نخليها تاخد الحجم الطبيعي حسب المحتوى */
    padding-bottom: 60px; /* مسافة من تحت عشان مفيش كارت يخرج */
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%; /* تصغير العرض عشان يناسب الموبايل */
    margin: 20px auto; /* توسيط الكرت */
  }

  .title-card {
    font-size: 18px;
    padding: 8px 5px;
  }
}
@media (max-width: 767px) {
  .cards {
    height: auto; /* خليها تلقائي على الموبايل */
    padding-bottom: 100px; /* نزود مساحة تحت */
  }
}

@media (min-width: 768px) and (max-width: 834px) {
  .cards {
    height: auto;
    padding-bottom: 120px; /* مخصوص للآيباد ميني */
  }

  .card {
    width: 300px; /* تقلل العرض شويه لو بتحب */
    margin: 15px auto; /* توسيط الكارت */
  }
}

/* دعم Nest Hub (شاشات عريضة وقصيرة زي 1024x600) */
@media (max-width: 1024px) and (max-height: 700px) {
  .cards {
    flex-direction: column;
    align-items: center;
    height: auto; /* خليه ياخد الطول حسب المحتوى */
    padding-top: 60px;
  }

  .card {
    width: 90%; /* خليه ياخد معظم عرض الشاشة */
    height: auto; /* خليه يتعدل حسب المحتوى */
    margin: 20px auto;
  }

  .title-card {
    font-size: 18px;
    white-space: normal;
  }
}
/* الكورسات */
.title-section {
  text-align: center;
  margin-bottom: 30px;
  padding: 60px 20px; /* مسافة داخلية علشان المحتوى ياخد راحته */
}
.courses-container{
  display: flex;
  gap: 100px; /* زودت المسافة من 20px لـ 40px */
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  margin-top: -100px;
  text-align: center;
}
.scc{
  color: #b5b2b2;
}
.coursess{
  background: #000;

}

.courseat{
  margin-top: 150px;
  font-size: 50px !important;
}
.title-course {
  font-size: 24px;
  font-weight: bold;
  margin: 10px 0;
}
.title-section h2 {
  font-family: 'Cairo', sans-serif;
  font-size: 40px;
  color: #fff;
  margin-bottom: 10px;
  position: relative;
  top: -100px;
}

.title-section .underline {
  width: 150px;
  height: 3px;
  border-radius: 50%;
  position: relative;
  top: -100px;}

.title-section .subtitle {
  font-family: 'Cairo', sans-serif;
  font-size: 18px;
  color: #ccc;
  position: relative;
  top: -100px;
}

a {
  text-decoration: none;
  color: inherit; /* يخلي لون الرابط نفس لون النص أو الأيقونة */
}




.title-with-bars {
  position: relative;
  display: inline-block;
  padding: 0 20px;
  font-size: 50px !important;
  color: white;
    font-family: 'El Messiri', sans-serif !important;
}

.title-with-bars::before,
.title-with-bars::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 60px;
  background-color: #ca4106; /* نفس اللون الأحمر اللي استخدمته */
}

.title-with-bars::before {
  right: 100%;
  margin-top: -2px;
  margin-right: -12px;
}

.title-with-bars::after {
  left: 100%;
  margin-left: -12px;
  margin-top: -2px;

}


.courses-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 80px 20px;
  flex-wrap: wrap;
}

.course-box {
  cursor: default;
  width: 370px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  position: relative;
}

.image-wrapper {
  width: 100%;
  height: 220px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  transform: translateY(-100px); /* ✅ الصورة تطلع لفوق 20 بكسل */

}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.card-info {
  background-color: #0c1218;
  color: white;
  width: 90%;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  position: absolute;
  bottom: -40px;
  z-index: 2;
  text-align: center;
  transition: transform 0.3s ease;
}

/* Hover effect */
.course-box:hover {
  transform: scale(1.01);
}

.course-box:hover .image-wrapper img {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.course-box:hover .card-info {
  transform: scale(1.01);
}

.card-info .course-hr {
  border: none;
  height: 2px;
  background-color: #ca4106; /* غيّر اللون اللي انت عايزه */
  margin: 10px auto;
  width: 100%; /* أو 100% لو حابب */
}


/* الموبايلات */


@media (max-width: 768px) {
  /* قسم الهيرو */
  .hero {
    flex-direction: column;
    padding: 20px;
    min-height: auto;
    text-align: center;
  }

  .hero-content {
    flex-direction: column-reverse; /* الصورة فوق والباقي تحت */
    align-items: center;
    justify-content: center;
    margin-top: 0;
  }

  .hero-image img {
    position: static;
    width: 290px;
    margin-top: -10px;
  }

  .hero-text h1 {
    font-size: 22px;
    position: static;
    margin-bottom: 10px;
    top: 0 !important;
    right: 0 !important;
  }

  .hero-text p {
    font-size: 18px;
    position: static;
    margin-top: 0;
    top: 0 !important;
    right: 0 !important;
  }

  .login-hero {
    position: static;
    margin-top: 3px;
    font-size: 15px;
    padding: 12px 110px;
    white-space: nowrap; /* تمنع الكلمة من التكسير */

  }

  .heroo-hh {
    margin-top: 50px;
    font-size: 8vw !important;
    white-space: nowrap; /* تمنع الكلمة من التكسير */
    text-align: center;
    line-height: 1.4;
  }

  .span-hero2 {
    font-size: 8vw !important;
    display: inline;
    position: static !important;
    margin: 0;
    top: 0 !important;
    right: 0 !important;
  }

  /* النصوص والعناوين */
  .center-word {
    font-size: 28px;
    top: -80px;
  }

  .underline {
    width: 60px;
    height: 2px;
    transform: scaleX(1.5);
  }

  .title-section h2 {
    font-size: 28px;
    top: -50px;
  }

  .title-section .underline,
  .title-section .subtitle {
    top: -50px;
  }

  .title-section .subtitle {
    font-size: 16px;
  }

  .courseat {
    margin-top: 80px;
    font-size: 32px !important;
  }

  .title-course,
  .title-card {
    font-size: 20px;
  }

.title{
  font-size: 40px;
}
  /* الكروت والدورات */
  .courses-container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 20px 10px;
    margin-top: 0;
  }

  .course-card {
    width: 90% ;
    margin: 0 auto;
  }

  .cards {
    margin-top: 0;
    padding-top: 10px;
  }

  .card {
    width: 70%;
    height: auto;
  }

  .courses-row {
    flex-direction: column;
    align-items: center;
    padding: 30px 10px;
    gap: 160px;
  }

  .course-box {
    width: 90%;
    margin-bottom: 40px;
  }

  .image-wrapper {
    height: 180px;
    transform: translateY(-60px);
  }

  .card-info {
    width: 95%;
    bottom: -80px;
  }
}
 

/* الايباد */
@media (min-width: 769px) and (max-width: 1024px) {
  /* قسم الهيرو */
  .hero {
    flex-direction: column;
    padding: 20px;
    min-height: auto;
    text-align: center;
  }

  .hero-content {
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    margin-top: 0;
  }

  .hero-image img {
    position: static;
    width: 320px;
    margin-top: -5px;
  }

  .hero-text h1 {
    font-size: 28px;
    position: static;
    margin-bottom: 10px;
  }

  .hero-text p {
    font-size: 20px;
    position: static;
    margin-top: 0;
  }

  .login-hero {
    position: static;
    margin-top: 5px;
    font-size: 14px;
    padding: 12px 130px;
    white-space: nowrap;
  }

  .heroo-hh {
    margin-top: 60px;
    font-size: 6vw !important;
    white-space: nowrap;
    text-align: center;
    line-height: 1.4;
  }

  .span-hero2 {
    font-size: 6vw !important;
    display: inline;
    position: static !important;
    margin: 0;
  }

  /* النصوص والعناوين */
  .center-word {
    font-size: 30px;
    top: -80px;
  }

  .underline {
    width: 80px;
    height: 2px;
    transform: scaleX(1.5);
  }

  .title-section h2 {
    font-size: 32px;
    top: -50px;
  }

  .title-section .underline,
  .title-section .subtitle {
    top: -50px;
  }

  .title-section .subtitle {
    font-size: 17px;
  }

  .courseat {
    margin-top: 90px;
    font-size: 36px !important;
  }

  .title-course,
  .title-card {
    font-size: 22px;
  }

  .title {
    font-size: 42px;
  }

  /* الكروت والدورات */
  .courses-container {
    flex-direction: column;
    align-items: center;
    gap: 50px;
    padding: 30px 20px;
    margin-top: 0;
  }

  .course-card {
    width: 80% !important;
    margin: 0 auto;
  }

  .cards {
    margin-top: 0;
    padding-top: 15px;
  }

  .card {
    width: 60%;
    height: auto;
  }

  .courses-row {
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    gap: 70px;
  }

  .course-box {
    width: 85%;
    margin-bottom: 40px;
  }

  .image-wrapper {
    height: 220px;
    transform: translateY(-70px);
  }

  .card-info {
    width: 95%;
    bottom: -30px;
  }
}
