/*--------------------------------------------------------------
# Topbar Start
--------------------------------------------------------------*/
.topbar {
  padding: 2px 10px 2px 20px;
  background-color: #0492c2 !important;
  font-size: 14px;
}

/* الروابط */
.topbar a {
  text-decoration: none;
  font-size: 14px;
}

/* ================= MOBILE ================= */
/* ================= MOBILE ================= */
/* @media (max-width: 992px) {
  
} */
@media (max-width: 768px) {
  /* .topbar {
    display: none;
  } */
  .topbar {
    display: block; /* بدل none علشان يظهر */
    overflow: visible !important;
  }
  .topbar .row {
    height: auto !important;
    padding: 10px 0;
    flex-direction: column; /* يخليهم تحت بعض */
  }

  /* نخلي العناصر تحت بعض */
  .topbar .col-lg-8,
  .topbar .col-lg-4 {
    width: 100%;
    text-align: center !important;
  }
  .topbar .col-lg-8 {
    text-align: center !important;
  }
  /* المسافة بين الجزءين */
  .topbar .col-lg-4 {
    margin-top: -5px;
  }
  /* نخلي الجزء اليمين منظم */
  /* .topbar .col-lg-4 .d-flex {
    display: flex;
    justify-content: space-between !important;  */
  /* يوزعهم يمين وشمال */
  /* align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  
 /* ترتيب العناصر داخل كل جزء */
  /* .topbar .d-flex {
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 8px;
  } */

  .topbar .d-flex {
    justify-content: center !important;
    /* flex-direction: column; */
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  /* تقليل حجم النص */
  .topbar a {
    font-size: 13px;
    /* margin: 0 !important; */
    margin: 5px 0 !important;
    display: block;
  }
  .topbar-actions {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    /* يخليهم في سطر واحد */
    justify-content: center;
    align-items: center;
    gap: 3px !important; /* يقلل المسافة بين كل العناصر */
    /* gap: 6px; */
    overflow-x: auto;
    /* لو الشاشة ضيقة يسمح بالسكرول */
  }
  /* أيقونات السوشيال */
  .topbar .btn-square {
    width: 35px;
    height: 35px;
    font-size: 12px;
    margin: 0 !important;
  }

  .topbar .justify-content-end {
    justify-content: center !important;
    /* margin-top: 8px; */
    margin-top: 5px;
  }
  /* جزء اللوجين */
  .user-auth-section {
    display: flex;
    gap: 6px;
  }

  /* تصغير الأزرار للموبايل */
  .btn-auth {
    font-size: 12px;
    padding: 5px 10px;
    margin-top: 13px;
    text-align: justify;
  }
}
@media (max-width: 576px) {
  .topbar a:first-child {
    display: none;
  }
  .topbar {
    text-align: center;
  }

  .topbar .btn {
    font-size: 12px;
    padding: 5px 10px;
  }
}
/* ================= SMALL MOBILE ================= */
/* @media (max-width: 480px) {
  .topbar {
    display: block;  */
/* بدل none علشان يظهر */
/* overflow: visible !important;
  }

 .topbar a:first-child {
    display: block;
  }
  .topbar a {
    font-size: 12px;
  } */
/* المسافة بين الجزءين */
/* .topbar .col-lg-4 {
    margin-top:-5px;
  } */
/* .topbar .btn-square {
    width: 30px;
    height: 30px;
    font-size: 11px;
  } */
/* .topbar .btn-square {
    width: 45px;
    height: 45px;
    font-size: 12px;
    margin: 0 !important; */
/* width: 32px;
    height: 32px;
    font-size: 11px; */
/* }  */
/* .user-auth-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;  */
/* يسمح بالنزول لسطر تاني لو زحمة */
/* gap: 6px;
    margin-top: -15px;
  } */

/* .btn-auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center; */
/* padding: 6px 12px; */
/* font-size: 12px; */
/* padding: 5px 10px;
    font-size: 11px;
    white-space: nowrap;
    gap: 4px;
    margin-top: 0; */
/* نشيل الـ 13px عشان ما يبوظش الترتيب */
/* } */
/* } */
/* 📱 Extra Small Mobile (424px) */
/* @media (max-width: 424px) { */
/* .topbar {
    padding: 5px 0;
  }

  .topbar a {
    font-size: 11px; */
/* display: block; */
/* كل عنصر في سطر */
/* margin: 2px 0 !important;
    text-align: center;
  }

  .topbar .d-flex { */
/* flex-direction: column; */
/* العناصر تحت بعض */
/* align-items: center;
     flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  } */
/* المسافة بين الجزءين */
/* .topbar .col-lg-4 {
    margin-top:-5px;
  }
  .topbar .btn-square { */
/* width: 35px;
    height: 35px;
    font-size: 11px; */
/* width: 28px;
    height: 28px;
    font-size: 10px;
  } */
/* .user-auth-section {
    flex-direction: column;  */
/* كل زر في سطر */
/* align-items: center;
    gap: 8px;
  } */

/* .btn-auth { */
/* width: 90%; */
/* زر كبير وسهل الضغط */
/* padding: 8px 10px;
    font-size: 12px; */
/* width: auto;
       padding: 4px 8px;
    font-size: 10px;
  } */
/* .user-auth-section { */
/* flex-direction: row; */
/* justify-content: center;
  }

} */
/* 📱 Mobile 480 */
/* @media (max-width: 480px) { */

/* .topbar-actions {
    display: flex;
    flex-wrap: nowrap; */
/* يخليهم في سطر واحد */
/* justify-content: center;
    align-items: center;
    gap: 3px;
    overflow-x: auto;  */
/* لو الشاشة ضيقة يسمح بالسكرول */
/* } */
/* .topbar-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
    width: 20%;
  } */
/* السوشيال */
/* .topbar-actions a.btn-square {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex: 0 0 auto;
  } */
/* .topbar-actions .btn-square {
    width: 32px;
    height: 32px;
    font-size: 11px;
  } */
/* زرار Login/Register */
/* .topbar-actions .btn-auth {
    padding: 5px 9px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex: 0 0 auto;
  } */
/* .btn-auth {
    padding: 5px 10px;
    font-size: 11px;
    white-space: nowrap;
  } */
/* .user-auth-section {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 4px !important; */
/* overflow-x: auto; */
/* مهم لو المساحة ضاقت */
/* } */

/* السوشيال + الأزرار */
/* .user-auth-section a,
  .user-auth-section button {
    flex: 0 0 auto;
    margin: 0 !important;
  } */

/* أزرار السوشيال */
/* .user-auth-section .btn-square {
    width: 30px;
    height: 30px;
    font-size: 11px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  } */

/* login / register */
/* .btn-auth {
    font-size: 11px;
    padding: 5px 8px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
  }
} */
@media (max-width: 480px) {
  /* .topbar {
    display: block; */
  /* بدل none علشان يظهر */
  /* overflow: visible !important;
  } */

  .topbar a:first-child {
    display: block;
  }
  .topbar a {
    font-size: 12px;
  }
  /* المسافة بين الجزءين */
  .topbar .col-lg-4 {
    margin-top: -5px;
  }
  .topbar-actions {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    /* يخليهم في سطر واحد */
    justify-content: center;
    align-items: center;
    gap: 3px !important; /* يقلل المسافة بين كل العناصر */
    /* gap: 6px; */
    overflow-x: auto;
    /* لو الشاشة ضيقة يسمح بالسكرول */
  }
  .user-auth-section {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 4px !important;
    overflow-x: auto;
    /* مهم لو المساحة ضاقت */
  }

  /* السوشيال + الأزرار */
  .user-auth-section a,
  .user-auth-section button {
    flex: 0 0 auto;
    margin: 0 !important;
  }
  /* .topbar-actions .btn-square {
    width: 28px;
    height: 28px;
    font-size: 10px;
  } */
  /* أزرار السوشيال */
  .user-auth-section .btn-square {
    width: 28px;
    height: 28px;
    font-size: 11px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* أيقونات السوشيال */
  /* .topbar-actions .btn-square {
    width: 30px;
    height: 30px;
    font-size: 11px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  } */
  /* login / register */
  /* .btn-auth {
    font-size: 11px;
    padding: 5px 8px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    ma white-space: nowrap;rgin-top: 5px;
  } */

  .btn-auth {
    font-size: 10px; /* أصغر شوية */
    padding: 4px 6px; /* يقلل المساحة الداخلية */
    margin-top: 0;
    /* يلغي النزول لتحت */
    /* width: 50%; */
    flex-direction: column;
    white-space: nowrap;
    margin-top: 5px;
    margin-left: -5px;
    margin-right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px; /* مسافة صغيرة بين الأيقونة والكلام */
  }
}

/* 📱 Extra Small 424 */
@media (max-width: 424px) {
  .topbar {
    padding: 5px 0;
  }

  .topbar a {
    font-size: 11px;
    display: block;
    /* كل عنصر في سطر */
    margin: 2px 0 !important;
    text-align: center;
  }

  .topbar .d-flex {
    flex-direction: column;
    /* العناصر تحت بعض */
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }
  /* المسافة بين الجزءين */
  .topbar .col-lg-4 {
    margin-top: -5px;
  }
  /* .topbar .btn-square { */
  /* width: 35px;
    height: 35px;
    font-size: 11px; */
  /* width: 28px;
    height: 28px;
    font-size: 10px;
  } */

  .topbar-actions {
    gap: 3px !important; /* يقلل المسافة بين كل العناصر */
  }
  /* .topbar-actions .btn-square {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .btn-auth {
    padding: 4px 8px;
    font-size: 10px;
  } */
  /* .topbar-actions a.btn-square {
    width: 30px;
    height: 30px;
    font-size: 10px;
    margin-top: 10px;
  } */
  .btn-auth {
    font-size: 10px; /* أصغر شوية */
    padding: 4px 6px; /* يقلل المساحة الداخلية */
    margin-top: 0; /* يلغي النزول لتحت */
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px; /* مسافة صغيرة بين الأيقونة والكلام */
  }
  .topbar-actions .btn-auth {
    padding: 4px 8px;
    font-size: 10px;
  }
  /* كمان نقلل حجم أيقونات السوشيال شوية */
  .topbar-actions .btn-square {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }
}
/* ====== Mobile Responsive ====== */
@media (max-width: 414px) {
  .topbar {
    padding: 8px 0;
  }

  .topbar .row {
    height: auto !important;
    text-align: center;
  }

  /* LEFT SIDE (contact info) */
  .topbar .col-lg-8 {
    margin-bottom: 10px;
  }

  .topbar .d-flex.flex-wrap {
    justify-content: center;
    gap: 8px;
  }
  .topbar .d-flex {
    flex-direction: column;
    /* العناصر تحت بعض */
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }
  .topbar a {
    font-size: 12px;
    margin: 3px 5px !important;
  }

  .topbar i {
    font-size: 12px;
    margin-right: 4px;
  }

  /* RIGHT SIDE */
  .topbar .col-lg-4 {
    text-align: center !important;
  }

  .topbar .d-flex.align-items-center {
    flex-direction: column;
    gap: 10px;
  }

  /* Social Icons */
  .topbar .btn-square {
    width: 32px;
    height: 32px;
    font-size: 12px;
    margin: 0 3px !important;
  }

  /* Buttons */
  .topbar .btn-auth {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
  }

  .topbar-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  /* Dropdown */
  #main-user-dropdown .dropdown-menu {
    width: 90%;
    left: 50% !important;
    transform: translateX(-50%);
  }
}
/* @media (max-width: 375px) { */
/* الكونتينر الرئيسي */
/* .topbar .d-flex.align-items-center.justify-content-end {
    flex-wrap: nowrap !important; */
/* يمنع النزول لسطر جديد */
/* justify-content: center !important;
    gap: 4px;
    overflow-x: auto; */
/* مهم لو المساحة ضاقت */
/* } */

/* السوشيال */
/* .topbar .btn-square {
    width: 26px;
    height: 26px;
    font-size: 10px;
    padding: 0;
    margin: 0 2px !important;
    flex-shrink: 0;  */
/* يمنع التصغير المبالغ فيه */
/* } */

/* الأزرار */
/* .topbar-actions {
    display: flex !important;
    gap: 4px;
    flex-shrink: 0;
  }

  .topbar .btn-auth {
    font-size: 10px;
    padding: 4px 6px;
    white-space: nowrap;  */
/* يمنع نزول النص */
/* }
  .btn-auth span {
    display: none;
  }
} */
@media (max-width: 375px) {
  /* الكونتينر كله في سطر واحد */
  .topbar .d-flex.align-items-center.justify-content-end {
    display: flex !important;
    flex-direction: row !important; /* 🔥 أهم سطر */
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px;
  }
  /* 🔥 إصلاح الجزء الشمال */
  .topbar .d-flex.flex-wrap {
    display: flex !important;
    flex-direction: row !important; /* يرجعهم صف واحد */
    justify-content: center !important;
    flex-wrap: nowrap !important; /* يمنع النزول */
    gap: 6px;
  }

  .topbar .d-flex.flex-wrap a {
    display: inline-flex !important;
    align-items: center;
    font-size: 11px;
    white-space: nowrap; /* يمنع كسر النص */
  }

  .topbar .d-flex.flex-wrap i {
    font-size: 11px;
    margin-right: 3px;
  }
  /* .topbar .d-flex.align-items-center.justify-content-end {
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 5px;
  } */
  /* السوشيال */
  .topbar .d-flex.align-items-center.justify-content-end > a {
    display: inline-flex !important;
  }
  /* السوشيال */
  .topbar .btn-square {
    width: 28px;
    height: 28px;
    font-size: 11px;
    margin: 0 2px !important;
    flex-shrink: 0;
  }

  /* الأزرار */
  /* .topbar-actions {
    display: flex;
    gap: 5px;
  } */
  /* الأزرار */
  .topbar-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 4px;
    flex-shrink: 0;
  }
  .btn-auth {
    /* padding: 5px 6px; */
    /* font-size: 11px; */
    font-size: 10px;
    padding: 4px 6px;
    white-space: nowrap;
    margin-top: 10px;
  }

  /* 🔥 نخفي النص ونسيب الأيقونة بس */
  .btn-text {
    display: none;
  }
}
@media (max-width: 375px) {
  .topbar .d-flex.flex-wrap a span {
    display: none;
  }
}
@media (max-width: 316px) {
  .topbar {
    padding: 8px 0;
  }

  .topbar .row {
    height: auto !important;
    text-align: center;
  }

  /* LEFT SIDE (contact info) */
  .topbar .col-lg-8 {
    margin-bottom: 10px;
  }

  /* .topbar .d-flex.flex-wrap {
    justify-content: center;
    gap: 8px;
  } */
  .topbar .d-flex {
    flex-direction: column;
    /* العناصر تحت بعض */
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }
  /* الكونتينر كله في سطر واحد */
  .topbar .d-flex.align-items-center.justify-content-end {
    display: flex !important;
    flex-direction: row !important; /* 🔥 أهم سطر */
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px;
  }
  /* 🔥 إصلاح الجزء الشمال */
  .topbar .d-flex.flex-wrap {
    display: flex !important;
    flex-direction: row !important; /* يرجعهم صف واحد */
    justify-content: center !important;
    flex-wrap: nowrap !important; /* يمنع النزول */
    gap: 4px;
  }

  .topbar .d-flex.flex-wrap a {
    display: inline-flex !important;
    align-items: center;
    font-size: 9px;
    white-space: nowrap; /* يمنع كسر النص */
  }

  .topbar .d-flex.flex-wrap i {
    font-size: 10px;
    margin-right: 3px;
  }
  /* .topbar .d-flex.align-items-center.justify-content-end {
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 5px;
  } */
  /* السوشيال */
  .topbar .d-flex.align-items-center.justify-content-end > a {
    display: inline-flex !important;
  }
  /* السوشيال */
  .topbar .btn-square {
    width: 23px;
    height: 23px;
    font-size: 10px;
    margin: 0 2px !important;
    flex-shrink: 0;
  }

  /* الأزرار */
  /* .topbar-actions {
    display: flex;
    gap: 5px;
  } */
  /* الأزرار */
  .topbar-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 4px;
    flex-shrink: 0;
  }
  .btn-auth {
    /* padding: 5px 6px; */
    /* font-size: 11px; */
    font-size: 10px;
    padding: 4px 6px;
    white-space: nowrap;
    margin-top: 10px;
  }

  /* 🔥 نخفي النص ونسيب الأيقونة بس */
  .btn-text {
    display: none;
  }
}
/*--------------------------------------------------------------
# Topbar End
--------------------------------------------------------------*/
/*-------------------------------------------------------------
Single  Page  Hero  Header  Start
  --------------------------------------------------------------*/

.bg-courses {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../img/e-learn1.png);
  /* background: url("img/services11.jpg") center center no-repeat; */
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 60px 0 60px 0;
}

.courses-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* يمكنك التحكم في درجة الشفافية بتغيير 0.6 (60%) */
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}
.breadcrumb-item + .breadcrumb-item::before {
  float: left;
  padding-right: 0.5rem;
  color: #e6b209;
  content: var(--bs-breadcrumb-divider, "/");
}
/* لجعل روابط الـ breadcrumb تظهر بوضوح فوق الأوفرلاي */
.breadcrumb-item a {
  color: #ddd !important;
  text-decoration: none;
}

.bg-courses .breadcrumb-item a {
  color: var(--bs-white) !important;
  font-size: 17px;
}

.bg-courses .bg-courses-single {
  position: absolute;
  width: 500px;
  height: 1200px;
  /* width: 300px;
  height: 600px; */
  top: 0px;
  left: 0;
  margin-left: 30px;
  transform: rotate(-30deg);
  background: var(--bs-dark);
  animation: RotateMoveLeft 5s linear infinite;
  /* animation: RotateMoveRight 5s linear infinite; */
  opacity: 0.7;
  z-index: 2 !important;
}

/* .bg-courses::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  top: -150px;
  right: -150px;
  border-radius: 200px;  */
/* border: 80px solid rgba(68, 210, 246, 0.2); */
  /* border: 80px solid rgba(171, 9, 141, 0.2);
  animation: RotateMoveCircle 10s linear infinite;
  background: transparent;
  z-index: 2 !important;
}  */

@keyframes RotateMoveCircle {
  0% {
    top: -200px;
  }
  50% {
    right: -100px;
  }
  75% {
    top: -100px;
  }
  100% {
    top: -200px;
  }
}

.bg-courses::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 1200px;
  top: -150px;
  left: 0;
  margin-left: 160px;
  transform: rotate(-30deg);
  background: rgba(68, 210, 246, 0.2);
  animation: RotateMoveRight 5s linear infinite;
  z-index: 2 !important;
}
 .course-title {
    color: #fbfdff;
    /* text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); */
    font-size: clamp(18px, 4vw, 20px);
    font-family: Georgia, "Times New Roman", Times, serif;
  }
@media (max-width: 991px) {
  /* .bg-service::after {
    margin-left: -70px;
  } */
  .bg-courses .bg-courses-single {
    margin-left: -70px;
  }
}
/* ===== 768px (Tablet) ===== */
@media (max-width: 768px) {

  .bg-courses {
    padding: 50px 0;
  }

  .bg-courses .bg-courses-single {
    width: 330px;
    height: 900px;
    margin-left: 10px;
    opacity: 0.5;
  }

  /* .bg-courses::before {
    width: 250px;
    height: 250px;
    border-width: 50px;
    top: -120px;
    right: -120px;
  } */

  .bg-courses::after {
    width: 90px;
    height: 900px;
    margin-left: 80px;
  }
   .course-title {
    color: #fbfdff;
    /* text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); */
    font-size: clamp(18px, 4vw, 20px);
    font-family: Georgia, "Times New Roman", Times, serif;
  }
  .bg-courses .breadcrumb-item a {
    font-size: 17px;
    font-family: Georgia, "Times New Roman", Times, serif;
  }
}
@media (max-width: 480px) {

  .bg-courses {
    padding: 40px 0;
  }

  .bg-courses .bg-courses-single {
    width: 290px;
    height: 700px;
    margin-left: 0;
    opacity: 0.4;
  }

  /* .bg-courses::before {
    width: 200px;
    height: 200px;
    border-width: 40px;
    top: 100px;
    right: 100px;
  } */

  .bg-courses::after {
    width: 80px;
    height: 700px;
    margin-left: 40px;
  }
   .course-title {
    color: #fbfdff;
    /* text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); */
    font-size: clamp(18px, 4vw, 32px);
    font-family: Georgia, "Times New Roman", Times, serif;
  }
  .bg-courses .breadcrumb-item a {
    font-size: 17px;
    font-family: Georgia, "Times New Roman", Times, serif;
  }
}
/* ===== 424px ===== */
@media (max-width: 424px) {

  .bg-courses .bg-courses-single {
    width: 200px;
    height: 600px;
    opacity: 0.3;
    margin-left: 100px;
  }
  

  /* .bg-courses::before {
    width: 170px;
    height: 170px;
    border-width: 35px;
    top: 100px;
    right: 100px;
  } */

  .bg-courses::after {
    width: 70px;
    height: 600px;
    margin-left: -3px;
  }
}
@media (max-width: 375px) {

   .bg-courses .bg-courses-single {
    width: 250px;
    height: 600px;
    opacity: 0.3;
    margin-left: 30px;
  }

  /* .bg-courses::before {
    width: 170px;
    height: 170px;
    border-width: 35px;
    top: 100px;
    right: 100px;
  } */

 .bg-courses::after {
    width: 70px;
    height: 600px;
    margin-left: -3px;
  }
  .course-title {
    color: #fbfdff;
    /* text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); */
    font-size: clamp(18px, 4vw, 20px);
    font-family: Georgia, "Times New Roman", Times, serif;
  }
}


/*--------------------------------------------------------------
# Single Page Hero Header End
--------------------------------------------------------------*/
/* الشكل الأساسي */
.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* زر Back */
.menu-btn {
  padding: 8px 20px;
  background-color: #0492c2;
  /* color: #fff; */
  color: var(--bs-white) !important;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  transition: 0.5s;
}
.menu-btn:hover {
  /* background-color: #f6900b !important;  */
  /* لون أغمق قليلاً */
  transform: translateY(-3px); /* رفعة بسيطة تعطي شعوراً بالتفاعل */
  /* box-shadow: 0 5px 15px rgba(4, 146, 194, 0.3);  */
  /* ظل ناعم بنفس لون الزر */
  /* box-shadow: 0 5px 15px #181817;  */
  background-image: linear-gradient(to left, #f6900b, #0492c2);
  opacity: 0.8;
  /* color: #fff; */
}
.custom-nav {
  /* transform: translateX(-20px);  */
  /* يحرك لليسار */
  /* transform: translateX(-10px); */
  /* حركة بسيطة */
  /* transform: translateX(-30px);  */
  /* حركة أكبر */
  margin-right: 25px;
}
/* أيقونة الموبايل */
.mobile-menu-icon {
  display: none;
  cursor: pointer;
}

/* شكل البرجر */
.burger-menu {
  width: 30px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.line-menu {
  height: 3px;
  background-color: #000;
  border-radius: 5px;
  width: 100%;
}

.line-half {
  width: 50%;
}

/* 📱 موبايل */
@media (max-width: 768px) {
  .header-right {
    justify-content: space-between;
    width: 100%;
  }

  .menu-btn {
    font-size: 12px;
    padding: 6px 15px;
   
  }

  .mobile-menu-icon {
    display: block;
  }
}

/* 📱 موبايل صغير */
@media (max-width: 480px) {
  
  .menu-btn {
    padding: 5px 12px;
    font-size: 11px;
  }

  .burger-menu {
    width: 25px;
  }
}
/*************************
New css for upcoming events
***************************/
/* الحاوية الرئيسية للتمرير */
.horizontal-scroll-wrapper {
display: flex !important;
flex-wrap: nowrap !important;
overflow-x: auto !important;
gap: 20px;
padding: 20px 0;
scrollbar-width: thin; / *للمتصفحات الحديثة */
-webkit-overflow-scrolling:touch;
}
/* شكل شريط التمرير */
.horizontal-scroll-wrapper::-webkit-scrollbar {
height: 6px;
}
.horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
background: #0dcaf0;
border-radius: 10px;
}

/* الحاوية التي تجبر العناصر على البقاء في صف واحد */
.scrolling-wrapper {
  display: grid !important;
  grid-auto-flow: column !important; /*هذا السطر يمنع العناصر من النزول لأسفل */
  grid-auto-columns: calc(
    25% - 20px
  ) !important; /* يجعل كل عنصر يأخذ ربع المساحة */
  gap: 20px !important;
  overflow-x: auto !important; /*تفعيل التمرير الأفقي */
  padding: 20px 0 !important;
  -webkit-overflow-scrolling: touch; /*تمرير ناعم في الموبايل */
}

/* تصميم الكارت الواحد */
.course-card-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  
}

.course-card-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.course-card-item .content {
  padding: 15px;
  text-align: center;
}



/* هذا السطر هو السر في منع انضغاط الكورسات */
.new-course-card {
  flex-shrink: 0 !important; /* يمنع المتصفح من تصغير حجم الكارت */
  display: block !important;
}
/* إخفاء شريط التمرير القبيح (اختياري) */
.scrolling-wrapper::-webkit-scrollbar {
  /* height: 8px; */
  height: 6px;
}
.scrolling-wrapper::-webkit-scrollbar-thumb {
  background: #0dcaf0;
  border-radius: 10px;
}




/* .custom-card .card-img img {
width: 100%;
height: 180px;
object-fit: cover;
border-radius: 12px 12px 0 0;
}

.custom-card .card-body {
padding: 15px;
display: flex;
flex-direction: column;
justify-content: space-between; /* توزيع المحتوى لضمان تساوي المظهر */
/* flex-grow: 1;
} */

/* .custom-card h4 {
font-size: 16px;
font-weight: bold;
color: #333;
margin: 10px 0; */
/* لجعل العناوين تأخذ نفس عدد الأسطر */
/* min-height: 40px;
} */

/* .custom-card .text {
font-size: 13px;
color: #666;
line-height: 1.5;
} */

/* 3. شكل شريط التمرير */
/* .custom-scroll-container::-webkit-scrollbar {
height: 8px;
}
.custom-scroll-container::-webkit-scrollbar-thumb {
background: #0dcaf0;
border-radius: 10px;
}
.custom-scroll-wrapper::-webkit-scrollbar-track {
background: #f1f1f1;
}  */
/* لضمان تساوي المحتوى داخلياً */
.course-card-item div {
display: flex;
flex-direction: column;
justify-content: flex-start;
}

 /* Scroll Container */
.events-scroller-section .horizontal-scroll-wrapper{
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 25px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 20px;
}

/* اخفاء scrollbar */
.events-scroller-section .horizontal-scroll-wrapper::-webkit-scrollbar{
    height:6px;
}

.events-scroller-section .horizontal-scroll-wrapper::-webkit-scrollbar-thumb{
    background:#ccc;
    border-radius:10px;
}

.events-scroller-section .custom-scroll-container{
    flex: 0 0 calc(25% - 15px);
    scroll-snap-align: start;
}
/* تصميم الكرت */
.events-scroller-section .course-card-item{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    transition:0.4s;
   
}

/* hover effect */
.events-scroller-section .course-card-item:hover{
    transform: translateY(-8px);
    box-shadow:0 15px 35px rgba(0,0,0,0.15);
}
/* .events-scroller-section .col,
.events-scroller-section [class*="col-"] {
  display: flex;
} */
/* الصورة */
.events-scroller-section .course-card-item img{
    width:100%;
    height:220px;
    object-fit:cover;
}

/* المحتوى */
.events-scroller-section .content{
  flex: 1;  
    padding:20px;
    display:flex;
    flex-direction:column;
    height:100%;
}
.course-card-item .content desc{
 font-family: Georgia, 'Times New Roman', Times, serif;
 font-size: 15px;
 margin-top: 10px;
}
.course-card-item .content  h4{
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 18px;
  margin-top: 12px;
}
.events-scroller-section .text-center h1{
    font-size:29px;
    margin-top:10px;
}
.events-scroller-section .content h4{
    font-size:13px;
    margin-top:10px;
    min-height:60px;
}
.events-scroller-section .content h4:hover{
    /* color: #f6900b; */
    color:#f7631b;
}

.events-scroller-section .content p{
    font-size:13px;
    line-height:1.7;
    /* color:#666; */
    color:#080808;
     flex-grow:1;     
}

.events-scroller-section .content .desc{
    font-size:13px;
    line-height:1.7;
    color:#080808;
    margin-top: -11px;
}


/*********new responsive css************/
/* ===============================
   EXTRA RESPONSIVE FIX (SAFE)
================================ */

/* Tablets */
@media (max-width: 1024px) {

  /* .active-upcoming-event-carousel .owl-dots {
    position: static;
    display: flex;
    justify-content: center;
    margin-top: 15px;
  }

  .single-carousel .thumb img {
    width: 100%;
  }

  .event-item {
    padding: 20px;
  } */

  .horizontal-scroll-wrapper {
    gap: 15px !important;
  }
}
/* للموبايل: نجعل الكورس يأخذ مساحة أكبر ليظهر بوضوح */

@media (max-width:992px){
 .scrolling-wrapper {
    grid-auto-columns: calc(50% - 10px) !important;
  }
.events-scroller-section .custom-scroll-container{
    flex: 0 0 calc(33.33% - 15px);
}

}
@media (max-width:991px){

.events-scroller-section .custom-scroll-container{
    flex: 0 0 calc(50% - 10px);
}

.events-scroller-section .course-card-item img{
    height:200px;
}

}
/* Mobile */
/* @media (max-width: 768px) { */

  /* Center titles */
  /* .text-center h1,
  .text-center h4 {
    text-align: center;
  }

  .active-upcoming-event-carousel {
    padding: 20px 10px;
  } */

  /* Carousel dots fix */
  /* .active-upcoming-event-carousel .owl-dots {
    position: static !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: 10px;
  } */

  /* Single carousel cards */
  /* .single-carousel {
    margin: 10px !important;
    padding: 10px;
  }

  .single-carousel .thumb img {
    width: 100% !important;
  }

  .single-carousel h4 {
    font-size: 16px;
    text-align: center;
  }

  .single-carousel p {
    font-size: 13px;
    text-align: justify;
    
  } */

  /* Event cards */
  /* .event-item {
    padding: 15px;
  } */

  /* Horizontal scroll cards */
  /* .horizontal-scroll-wrapper {
    flex-direction: row;
    gap: 12px;
    padding: 15px 10px;
  } */
/* 
  .event-square-card {
    flex: 0 0 85% !important;
  } */

  /* .course-card-item img {
    height: 220px !important;
  }

  .events-scroller-section .course-card-item img {
    height: 220px !important;
  }

  .events-scroller-section .content  {
     flex-grow:1;
     height: 200px;
  }
  .events-scroller-section .content h4 {
    font-size: 16px;
    text-align: center;
  }

  .events-scroller-section .content p,
  .events-scroller-section .content .desc {
    font-size: 13px;
    text-align: justify;
  }
  .events-scroller-section .content .desc{
    margin-top: 5px;
}

} */
@media (max-width: 576px) {
  .scrolling-wrapper {
    grid-auto-columns: 85% !important;
  }
}
/* Small Mobile */
@media (max-width: 480px) {

  /* .single-carousel h4 {
    font-size: 15px;
  }

  .single-carousel p {
    font-size: 12.5px;
  }

  .event-item {
    padding: 12px;
  }

  .event-square-card {
    flex: 0 0 90% !important;
  } */

  .course-card-item img {
    height: 180px !important;
  }

  .events-scroller-section .course-card-item img {
    height: 180px !important;
  }

  .events-scroller-section .content h4 {
    font-size: 14px;
  }

  .events-scroller-section .content p,
  .events-scroller-section .content .desc {
    font-size: 12.5px;
  }
}
/*--------------------------------------------------------------
# upcoming event End
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# upcoming event New Responsive Start 
--------------------------------------------------------------*/

/* ================= GENERAL ================= */
.events-scroller-section {
  overflow: hidden;
}

.horizontal-scroll-wrapper {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

/* إخفاء scrollbar بشكل شيك */
.horizontal-scroll-wrapper::-webkit-scrollbar {
  height: 6px;
}
.horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* الكارت */
.custom-scroll-container {
  flex: 0 0 auto;
}

.events-scroller-section .course-card-item {
  width: 290px;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.events-scroller-section .course-card-item:hover {
  transform: translateY(-6px);
}

/* الصورة */
.course-card-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* المحتوى */
.course-card-item .content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-card-item h4 {
  font-size: 18px;
  margin: 10px 0;
}

.course-card-item p {
  font-size: 14px;
  line-height: 1.6;
}

.course-card-item .desc {
  flex-grow: 1;
}

/* ================= TABLET ================= */
@media (max-width: 991px) {

  .events-scroller-section h1 {
    font-size: 28px;
  }

  .events-scroller-section p {
    font-size: 14px;
  }

  .course-card-item {
    width: 260px;
  }

  .course-card-item img {
    height: 160px;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
 /* Horizontal scroll cards */
  .horizontal-scroll-wrapper {
    flex-direction: row;
    gap: 12px;
    padding: 15px 10px;
  }
  .events-scroller-section .course-card-item {
    width: 340px;
  }
/* 
  .event-square-card {
    flex: 0 0 85% !important;
  } */

  /* .course-card-item img {
    height: 220px !important;
  } */

  .events-scroller-section .course-card-item img {
    height: 220px !important;
  }

  .events-scroller-section .content  {
     flex-grow:1;
     height: 200px;
  }
  .events-scroller-section .content h4 {
    font-size: 16px;
    text-align: center;
  }

  .events-scroller-section .content p,
  .events-scroller-section .content .desc {
    font-size: 13px;
    text-align: justify;
  }
  .events-scroller-section .content .desc{
    margin-top: 3px;
}

  .events-scroller-section {
    padding: 40px 0;
  }

  /* .menu-content {
    padding-bottom: 40px !important;
  } */

  .events-scroller-section h1 {
    font-size: 24px;
  }

  .course-card-item {
    width: 240px;
  }

  .course-card-item h4 {
    font-size: 16px;
  }

  .course-card-item p {
    font-size: 13px;
  }
}

/* ================= SMALL MOBILE ================= */
@media (max-width: 576px) {

  .events-scroller-section h1 {
    font-size: 22px;
  }

  .course-card-item {
    width: 220px;
  }

  .course-card-item img {
    height: 150px;
  }
}

/* ================= 480 ================= */
@media (max-width: 480px) {

  .horizontal-scroll-wrapper {
    gap: 12px;
    padding-left: 10px;
  }
.events-scroller-section .course-card-item{
    width: 330px;
}
 .course-card-item img {
    height: 180px !important;
  }

  .events-scroller-section .course-card-item img {
    height: 180px !important;
  }

  .events-scroller-section .content h4 {
    font-size: 14px;
  }

  .events-scroller-section .content p,
  .events-scroller-section .content .desc {
    font-size: 12.5px;
  }
  .course-card-item {
    width: 200px;
  }

  .course-card-item img {
    height: 140px;
  }

  .course-card-item h4 {
    font-size: 14px;
  }

  .course-card-item p {
    font-size: 12px;
  }
 
}
@media (max-width: 414px) {

  .horizontal-scroll-wrapper {
    gap: 12px;
    padding-left: 10px;
  }
   .events-scroller-section .content  {
     flex-grow:1;
     height: 200px;
  }
.events-scroller-section .course-card-item{
    width: 300px;
}
 .course-card-item img {
    height: 180px !important;
  }

  .events-scroller-section .course-card-item img {
    height: 180px !important;
  }

  .events-scroller-section .content h4 {
    font-size: 12px;
  }

  .events-scroller-section .content p,
  .events-scroller-section .content .desc {
    font-size: 11.5px;
  }
  .events-scroller-section .content .desc {
    font-size: 11.5px;
    margin-top: -20px;
  }
  .course-card-item {
    width: 200px;
  }

  .course-card-item img {
    height: 140px;
  }

  .course-card-item h4 {
    font-size: 14px;
  }

  .course-card-item p {
    font-size: 12px;
  }
 
}
@media (max-width: 320px) {

  .horizontal-scroll-wrapper {
    gap: 12px;
    padding-left: 10px;
  }
   .events-scroller-section .text-center h1 {
    font-size: 20px;
  }
   .events-scroller-section .text-center p {
    font-size: 12px;
  }
  .events-scroller-section .course-card-item{
      width: 275px;
      height: 350px;
  }
 .course-card-item img {
    height: 180px !important;
  }

  .events-scroller-section .course-card-item img {
    height: 180px !important;
  }

  .events-scroller-section .content h4 {
    font-size: 11px;
    /* margin-top:-10px; */
  }

  .events-scroller-section .content p,
  .events-scroller-section .content .desc {
    font-size: 11px;
    text-align: center;
  }
  .events-scroller-section .content .desc {
    margin-top: -20px;
  }
  .course-card-item {
    width: 200px;
  }

  .course-card-item img {
    height: 140px;
  }

  .course-card-item h4 {
    font-size: 14px;
  }

  .course-card-item p {
    font-size: 12px;
  } 
}
@media (max-width: 316px) {

  .horizontal-scroll-wrapper {
    gap: 12px;
    padding-left: 10px;
  }
   .events-scroller-section .text-center h1 {
    font-size: 20px;
  }
   .events-scroller-section .text-center p {
    font-size: 12px;
  }
  .events-scroller-section .course-card-item{
      width: 270px;
      height: 350px;
  }
 .course-card-item img {
    height: 180px !important;
  }

  .events-scroller-section .course-card-item img {
    height: 180px !important;
  }

  .events-scroller-section .content h4 {
    font-size: 11px;
    /* margin-top:-10px; */
  }

  .events-scroller-section .content p,
  .events-scroller-section .content .desc {
    font-size: 11px;
    text-align: center;
  }
  .events-scroller-section .content .desc {
    margin-top: -20px;
  }
  .course-card-item {
    width: 200px;
  }

  .course-card-item img {
    height: 140px;
  }

  .course-card-item h4 {
    font-size: 14px;
  }

  .course-card-item p {
    font-size: 12px;
  } 
}

/* ================= 424 ================= */
@media (max-width: 424px) {

  .course-card-item {
    width: 180px;
  }

  .course-card-item img {
    height: 130px;
  }

  .course-card-item h4 {
    font-size: 13px;
  }

  .course-card-item p {
    font-size: 11.5px;
  }
}

