.hero-section {
  background: linear-gradient(to right, rgba(18, 62, 124, 0.441), rgba(228, 168, 112, 0.375)),
              url('../img/bk2.jpg');
  color: #fff;
  min-height: 100vh;
  padding: 60px 20px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-color: rgba(0,0,0,0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.btn-orange {
  background-color: #f7931e;
  color: #fff;
  padding: 12px 24px;
  font-size: 18px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn-orange:hover {
  background-color: #e87c00;
  color: #fff;
}


/*  أقسام عامة */
.section-dark {
  background-color: #123E7C;
  color: #fff;
  padding: 60px 15px;
}

.section-light {
  background-color: #f9f9f9;
  padding: 60px 15px;
}

.section-white {
  background-color: #ffffff;
  padding: 60px 15px;
}

.section-blue {
  background-color: #7FD2D3;
  padding: 60px 15px;
}

.section-orange {
  background-color: #f7931e;
  padding: 60px 15px;
  color: #fff;
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

/*  بطاقة الإحصائيات */
.stat-box {
  margin-bottom: 30px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 20px;
  height: 100%;
}

.stat-icon {
  font-size: 36px;
  color: #fff;
}

.stat-value {
  font-weight: bold;
  margin-top: 10px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}


/*  أقسام عامة (مُعاد استخدامها) */


/*  بطاقة الدورة */
.course-card {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  min-height: 240px;
  border-radius: 12px;
  overflow: hidden;
}

.course-card-header {
  background-color: rgba(0, 0, 0, 0.03);
  color: #123E7C;
  padding: 10px;
}

.course-title {
  margin: 0;
  font-weight: bold;
  font-size: 16px;
}

.course-card-body {
  padding: 15px;
  font-size: 14px;
}

.course-card-footer {
  background-color: #fff;
  border-top: 1px solid #eee;
  padding: 10px;
}

.course-card-footer .btn {
  margin: 3px;
  padding: 4px 10px;
  font-size: 13px;
  border-radius: 4px;
}


.btn-primary {
  background-color: #123E7C;
  border-color: #123E7C;
}

/*  تبويبات الأقسام */
.custom-tabs {
  display: inline-block;
  border-bottom: 1px solid #ddd;
  padding: 0;
  margin: 0;
}
.custom-tabs li {
  display: inline-block;
  margin: 0 3px;
}
.custom-tabs li a {
  padding: 10px 20px;
  font-weight: bold;
  border: 1px solid transparent;
  background: #f5f5f5;
  border-radius: 4px 4px 0 0;
  display: block;
  color: #333;
}
.custom-tabs li.active a,
.custom-tabs li a:hover {
  background: #fff;
  border: 1px solid #ddd;
  border-bottom-color: transparent;
  color: #123E7C;
}

/*  بطاقة الدورة */
.course-card {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  min-height: 240px;
  border-radius: 12px;
  overflow: hidden;
}

.course-card-header {
  background-color: rgba(0, 0, 0, 0.03);
  color: #123E7C;
  padding: 10px;
}

.course-title {
  margin: 0;
  font-weight: bold;
  font-size: 16px;
}

.course-card-body {
  padding: 15px;
  font-size: 14px;
}

.course-card-footer {
  background-color: #fff;
  border-top: 1px solid #eee;
  padding: 10px;
}

.course-card-footer .btn {
  margin: 3px;
  padding: 4px 10px;
  font-size: 13px;
  border-radius: 4px;
}


/*  قسم عام قابل للتمرير عرضي */
.scroll-x {
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 10px;
}

.teacher-card {
  display: inline-block;
  width: 180px;
  margin: 10px;
  vertical-align: top;
}

.teacher-panel {
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
  background-color: #fff;
}

.teacher-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 10px;
  object-fit: cover;
}

.teacher-name {
  font-size: 14px;
  margin: 5px 0;
  font-weight: bold;
}

.teacher-dept {
  font-size: 12px;
  margin-top: 5px;
  color: #555;
}


/*  صناديق الدورات الجارية */
.ongoing-box {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
  min-height: 220px;
  text-align: right;
}

.ongoing-title {
  font-size: 15px;
  font-weight: bold;
  color: #123E7C;
  margin-bottom: 10px;
}


/*  قسم العروض */
.section-blue {
  background-color: #123E7C;
  color: #fff;
  padding: 60px 15px;
}

.promo-box {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  color: #333;
  text-align: right;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
  min-height: 230px;
}

.promo-title {
  color: #f7931e;
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: bold;
}

.promo-box p {
  margin: 6px 0;
}

.promo-box .text-small {
  font-size: 13px;
}

/*  قسم الاتصال */
.section-orange {
  background-color: #f7931e;
  color: #fff;
  padding: 60px 15px;
}

.contact-info-box {
  background-color: #fff;
  color: #333;
  padding: 20px;
  border-radius: 10px;
  text-align: right;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.contact-info-box hr {
  border-top: 1px solid #ccc;
  margin: 10px 0;
}

.contact-info-box p {
  margin-bottom: 8px;
  font-size: 15px;
}

.contact-form .form-group {
  margin-bottom: 15px;
  text-align: right;
}

.contact-form .form-control {
  text-align: right;
  border-radius: 6px;
}

.contact-form textarea.form-control {
  resize: vertical;
}

.section-orange .row {
  display: flex;
  flex-direction: row-reverse; /* 🔄 إجبار اليمين أولاً */
  flex-wrap: wrap;
}

.section-orange textarea, .section-orange input {
  color:#555 !important;
}
 

.main-footer {
  background-color: #123E7C;
  padding: 40px 0;
  color: #fff;
}

.main-footer .footer-divider {
  border-color: rgba(255, 255, 255, 0.2);
}

.main-footer .footer-link:hover {
  text-decoration: underline;
  color: #ffc107 !important;
}

/* صندوق الأزرار الموحدة */
.fixed-buttons-group {
  position: fixed;
left:10px;
bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1000;
}

/* زر واتساب */
.fixed-buttons-group .whatsapp-float {
  background: #123E7C;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
}

.fixed-buttons-group .whatsapp-float img {
  width: 16px;
  height: 16px;
}

/* زر الرجوع لأعلى */
.fixed-buttons-group .back-to-top {
  background: #123E7C;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease-in-out;
}

.fixed-buttons-group .back-to-top:hover {
  background: #0e2f5c;
}

.top-breadcrumb{
background-color: #123E7C; 
color: #fff;
 padding: 100px 0 50px;
}





/* تنسيق زر Readabler مثل أزرار المجموعة */
#mdp-readabler-trigger-button {
  position: static !important;
  background: #123E7C !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  padding: 8px !important;
  display: flex !important;
  justify-content: center;
  align-items: center;
  box-shadow: none !important;
  z-index: auto !important;
  color: #fff !important;
}

/* أيقونة SVG داخل الزر */
#mdp-readabler-trigger-button svg {
  width: 16px !important;
  height: 16px !important;
  fill: white !important;
}


#mdp-readabler-trigger-button {
  position: static !important;  /* مهم جدًا لإلغاء التموضع المستقل */
  margin: 0 !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
}












/* سكرول أفقي جميل لألسنة التبويب */
.tabs-scroller {
  position: relative;
}

/* نفس الخلفية حتى يعمل التدرّج بشكل صحيح */
.tabs-scroller,
.tabs-scroller .nav-tabs {
  margin-bottom: 5px;
  padding: 0 15px;
}

/* اجعل التبويبات على سطر واحد + سكرول أفقي ناعم */
.tabs-scroller .nav-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch; /* سكرول ناعم في iOS */
  scrollbar-width: thin;             /* Firefox */
  scrollbar-color: #F7931E transparent;
}

/* لا تكسر النص داخل الأزرار */
.tabs-scroller .nav-link {
  white-space: nowrap;
}

/* WebKit scrollbar */
.tabs-scroller .nav-tabs::-webkit-scrollbar {
  height: 5px;
}
.tabs-scroller .nav-tabs::-webkit-scrollbar-track {
  background: transparent;
}
.tabs-scroller .nav-tabs::-webkit-scrollbar-thumb {
  background: #c7c7c7;
  border-radius: 15px;
}
.tabs-scroller .nav-tabs::-webkit-scrollbar-thumb:hover {
  background: #a9a9a9;
}

/* تدرّج لطيف يلمّح بوجود تمرير */
.tabs-scroller::before,
.tabs-scroller::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 76px;
  pointer-events: none;
  z-index: 1;
}
.tabs-scroller::before {
  left: 0;
  background: linear-gradient(to right, var(--bs-body-bg), rgba(255,255,255,0));
}
.tabs-scroller::after {
  right: 0;
  background: linear-gradient(to left, var(--bs-body-bg), rgba(255,255,255,0));
}

/* قلب اتجاه التدرّج في الصفحات RTL تلقائياً */
html[dir="rtl"] .tabs-scroller::before {
  right: 0; left: auto;
  background: linear-gradient(to left, var(--bs-body-bg), rgba(255,255,255,0));
}
html[dir="rtl"] .tabs-scroller::after {
  left: 0; right: auto;
  background: linear-gradient(to right, var(--bs-body-bg), rgba(255,255,255,0));
}

