/* =====================================================================
   Entshar LMS theme — يطابق هوية الموقع التسويقي entsharsa.com
   يُحمَّل بعد style.css و rtl.css و responsive.css
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  /* ألوان الهوية (مأخوذة من لقطة الموقع التسويقي) */
  --es-ink: #090f20;        /* أغمق خلفية: الفوتر والشريط العلوي */
  --es-navy: #0b132b;       /* خلفية الصفحة */
  --es-panel: #0f2242;      /* البطاقات والألواح */
  --es-blue: #0c3374;       /* الأزرق المؤسسي */
  --es-orange: #f0a838;     /* لون الإجراء الأساسي */
  --es-orange-press: #d9922a;
  --es-text: #e8edf7;
  --es-muted: #b8c5df;
  --es-line: rgba(255, 255, 255, .10);
  --es-font: 'Tajawal', 'Inter', sans-serif;

  /* متغيرات القالب القديم: الأزرق المؤسسي بدل البنفسجي (فاتح قليلًا ليُقرأ على الخلفية الداكنة) */
  --color-4: #f0a838;
  --color-12: rgba(240, 168, 56, .18);
  --color-15: rgba(240, 168, 56, .35);
}

body { font-family: var(--es-font); }
h1, h2, h3, h4, h5, h6, .btn, .nav-link { font-family: var(--es-font); }

/* الأزرار الأساسية في كل الموقع: برتقالي بنص كحلي كما في الموقع التسويقي */
.btn-primary,
.btn-primary:focus {
  background: var(--es-orange);
  border-color: var(--es-orange);
  color: var(--es-ink);
  font-weight: 700;
}
.btn-primary:hover,
.btn-primary:active {
  background: var(--es-orange-press);
  border-color: var(--es-orange-press);
  color: var(--es-ink);
}

/* =====================================================================
   الهيدر (الشريط العلوي + القائمة)
   ===================================================================== */
.sub-header { background: var(--es-ink); border-bottom: 1px solid var(--es-line); }
.sub-header a,
.sub-header i,
.sub-header .icon a { color: var(--es-muted); }
.sub-header a:hover { color: var(--es-orange); }
.sub-header .vartical { background: var(--es-line); }

.menubar { background: var(--es-navy); border-bottom: 1px solid var(--es-line); }
.menubar .navbar { background: transparent; }
.menubar .navbar-nav > .nav-item > a,
.menubar .navbar-nav > .nav-item > a.bg-white,
.menubar .navbar-nav > .nav-item > a.text-dark {
  background: transparent !important;
  color: var(--es-text) !important;
}
.menubar .navbar-nav > .nav-item > a:hover { color: var(--es-orange) !important; }
.menubar .right-menubar > li > a,
.menubar .right-menubar > li > a i,
.menubar .btn-bar i,
.menubar .m-search-icon i { color: var(--es-text); }
.menubar .navbarHover,
.menubar .sub-category-menu { background: var(--es-panel) !important; border: 1px solid var(--es-line); }
.menubar .navbarHover a,
.menubar .navbarHover .text-cat,
.menubar .navbarHover i { color: var(--es-text) !important; }
.menubar .navbarHover li:hover > a { background: rgba(255, 255, 255, .06); }
.es-head-link { color: var(--es-orange) !important; font-weight: 700; }

/* =====================================================================
   الصفحة الرئيسية
   ===================================================================== */
.es-home {
  background: var(--es-navy);
  color: var(--es-text);
  font-family: var(--es-font);
  line-height: 1.8;
}
.es-home a { text-decoration: none; }
.es-wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.es-section { padding: 72px 0; }
.es-section--alt { background: var(--es-ink); }
.es-h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: #fff; margin: 0 0 8px; line-height: 1.35; }
.es-lead { color: var(--es-muted); max-width: 62ch; margin: 0 0 36px; font-size: 17px; }
.es-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.es-head .es-lead { margin: 0; }

.es-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 10px; border: 0; cursor: pointer;
  font: 700 16px var(--es-font); background: var(--es-orange); color: var(--es-ink);
  transition: background .2s;
}
.es-btn:hover { background: var(--es-orange-press); color: var(--es-ink); }
.es-btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.es-btn--ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.es-home :focus-visible { outline: 3px solid var(--es-orange); outline-offset: 3px; }

/* ---------- أعلى الصفحة: عنوان + بحث + تصنيفات (مضغوط) ---------- */
.es-top { padding: 40px 0 28px; background: linear-gradient(180deg, var(--es-ink), var(--es-navy)); border-bottom: 1px solid var(--es-line); }
.es-top h1 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; color: #fff; margin: 0 0 6px; line-height: 1.35; }
.es-top p { color: var(--es-muted); margin: 0 0 20px; font-size: 16.5px; }
.es-search { display: flex; gap: 8px; max-width: 620px; padding: 6px; border-radius: 12px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--es-line); }
.es-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: 500 16px var(--es-font); padding: 8px 14px; }
.es-search input::placeholder { color: var(--es-muted); }
.es-search input:focus { outline: none; }
.es-search .es-btn { padding: 9px 22px; }
.es-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.es-chips a { padding: 5px 16px; border-radius: 999px; color: var(--es-text); font-size: 15px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.es-chips a:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- شريط المساعدة ---------- */
.es-help { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 28px; border-radius: 14px; background: var(--es-panel); box-shadow: inset 0 0 0 1px var(--es-line); }
.es-help strong { color: #fff; font-size: 18px; display: block; }
.es-help span { color: var(--es-muted); font-size: 15px; }

/* ---------- الدورات ---------- */
.es-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--es-panel); border-radius: 12px; }
.es-tabs button { border: 0; background: transparent; color: var(--es-muted); font: 700 15px var(--es-font); padding: 8px 20px; border-radius: 9px; cursor: pointer; }
.es-tabs button[aria-selected="true"] { background: var(--es-orange); color: var(--es-ink); }
.es-panel[hidden] { display: none; }

.es-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.es-course { display: flex; flex-direction: column; background: var(--es-panel); border-radius: 14px; overflow: hidden; color: var(--es-text); box-shadow: inset 0 0 0 1px var(--es-line); transition: box-shadow .2s; }
.es-course:hover { box-shadow: inset 0 0 0 1.5px var(--es-orange); color: var(--es-text); }
.es-course__img { position: relative; aspect-ratio: 16 / 10; background: var(--es-ink); }
.es-course__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.es-course__level { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--es-orange); color: var(--es-ink); font-weight: 700; font-size: 13px; padding: 2px 12px; border-radius: 6px; }
.es-course__body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 16px; }
.es-course__title { font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 8px; line-height: 1.5; }
.es-course__desc { color: var(--es-muted); font-size: 14.5px; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.es-course__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--es-line); }
.es-price { display: flex; align-items: baseline; gap: 8px; }
.es-price strong { font-size: 20px; color: var(--es-orange); }
.es-price del { color: var(--es-muted); font-size: 14px; }
.es-meta { color: var(--es-muted); font-size: 14px; white-space: nowrap; }
.es-meta i { margin-inline-end: 6px; }
.es-rate { color: var(--es-orange); font-size: 14px; margin-bottom: 8px; }
.es-rate span { color: var(--es-muted); }

/* ---------- الدورات القادمة ---------- */
.es-upcoming { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.es-up { display: flex; gap: 16px; padding: 14px; border-radius: 14px; background: var(--es-panel); color: var(--es-text); box-shadow: inset 0 0 0 1px var(--es-line); }
.es-up:hover { box-shadow: inset 0 0 0 1.5px var(--es-orange); color: var(--es-text); }
.es-up img { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; flex: none; }
.es-up h3 { color: #fff; font-size: 17px; margin: 0 0 4px; font-weight: 700; line-height: 1.5; }
.es-up p { color: var(--es-muted); font-size: 14px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- تباعد الأقسام ---------- */
.es-section--flush { padding-bottom: 40px; }
.es-section--tight { padding-top: 0; padding-bottom: 56px; }

/* ---------- الفوتر ---------- */
.es-footer { background: var(--es-ink); color: var(--es-muted); font-family: var(--es-font); padding: 56px 0 0; border-top: 1px solid var(--es-line); line-height: 1.8; }
.es-footer a { color: var(--es-muted); text-decoration: none; }
.es-footer a:hover { color: var(--es-orange); }
.es-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.es-footer__brand img { height: 44px; width: auto; margin-bottom: 16px; }
.es-footer__brand p { margin: 0; max-width: 40ch; font-size: 15px; }
.es-footer h2 { color: #fff; font-size: 18px; font-weight: 700; margin: 0 0 14px; }
.es-footer ul { list-style: none; margin: 0; padding: 0; }
.es-footer li { margin-bottom: 8px; font-size: 15px; }
.es-footer__news { border-top: 1px solid var(--es-line); padding: 28px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.es-footer__news strong { color: #fff; font-size: 17px; }
.es-news { display: flex; gap: 8px; width: min(420px, 100%); padding: 5px; border-radius: 10px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--es-line); }
.es-news input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: 500 15px var(--es-font); padding: 6px 12px; }
.es-news input::placeholder { color: var(--es-muted); }
.es-news input:focus { outline: none; }
.es-news button { border: 0; border-radius: 8px; background: var(--es-orange); color: var(--es-ink); padding: 6px 18px; font: 700 15px var(--es-font); cursor: pointer; }
.es-news button:hover { background: var(--es-orange-press); }
.es-footer__bottom { border-top: 1px solid var(--es-line); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.es-footer__pay { max-height: 44px; width: auto; border-radius: 6px; }

/* ---------- الجوال ---------- */
@media (max-width: 991px) {
  .es-footer__grid { grid-template-columns: 1fr 1fr; }
  .es-footer__brand { grid-column: 1 / -1; }
  .es-section { padding: 40px 0; }
  .es-top { padding: 28px 0 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .es-home * { transition: none !important; }
}

/* =====================================================================
   تصحيحات الهيدر (بعد مراجعة لقطة الشاشة)
   ===================================================================== */

/* الشريط العلوي: أيقونات برتقالية ونص واضح */
.sub-header .icon-left i,
.sub-header .right-icon i { color: var(--es-orange); }
.sub-header .icon a,
.sub-header .icon-left a { color: var(--es-text); font-size: 14px; }
.sub-header .icon a:hover { color: var(--es-orange); }

/* زر "الدورات التدريبية": برتقالي هادئ بأيقونة بيضاء */
.menubar .navbar-nav > .nav-item > a.header-dropdown {
  background: rgba(240, 168, 56, .14) !important;
  color: var(--es-orange) !important;
  border: 1px solid rgba(240, 168, 56, .45);
  border-radius: 8px;
  padding: 7px 14px;
  font-weight: 700;
}
.menubar .navbar-nav > .nav-item > a.header-dropdown:hover { background: rgba(240, 168, 56, .24) !important; color: #fff !important; }
.menubar .header-dropdown img { filter: brightness(0) invert(1); }

/* زر البحث */
.menubar .search-input-button {
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--es-line);
  border-radius: 10px;
  color: #fff;
}
.menubar .search-input-button:hover,
.menubar .search-input-button:focus,
.menubar .search-input-button.show { background: rgba(255, 255, 255, .16); border-color: var(--es-line); color: #fff; }
.menubar .search-input-button i { color: #fff; }

/* أيقونات وروابط الجهة الأخرى (السلة، الدخول، التسجيل) */
.menubar .right-menubar > a,
.menubar .right-menubar .wisth_tgl_2div > a,
.menubar .right-menubar .menu_pro_tgl { color: var(--es-text); }
.menubar .right-menubar > a:hover,
.menubar .right-menubar .wisth_tgl_2div > a:hover { color: var(--es-orange); }
.menubar .right-menubar .menu_number { background: var(--es-orange); color: var(--es-ink); font-weight: 700; }

/* "سجل الآن" كزر برتقالي */
.menubar .right-menubar > a[href$="sign_up"] {
  background: var(--es-orange);
  color: var(--es-ink);
  padding: 7px 18px;
  border-radius: 8px;
  font-weight: 700;
  min-width: 0 !important;
  margin-inline: 8px !important;
}
.menubar .right-menubar > a[href$="sign_up"]:hover { background: var(--es-orange-press); color: var(--es-ink); }

/* اللوحات المنسدلة (السلة والمفضلة وحساب المستخدم) تبقى بيضاء بنص داكن */
.menubar .right-menubar .menu_pro_wish a,
.menubar .right-menubar .menu_pro_tgl_bg a { color: var(--color-1); }
.menubar .right-menubar .menu_pro_btn .btn-primary { color: var(--es-ink) !important; }

/* =====================================================================
   الثيم الداكن للصفحات الداخلية (قائمة الدورات + تفاصيل الدورة)
   القالب يعتمد على متغيرات CSS، فنعيد تعريفها بألوان الهوية بدل تعديل مئات القواعد.
   يعمل فقط على الصفحات التي تحتوي هذه العناصر، فلا تتأثر صفحات أخرى لم نراجعها.
   ===================================================================== */
html:has(.es-home),html:has(.grid-view),html:has(.courses-details),html:has(.sign-up),html:has(.wish-list-body),html:has(.bread-crumb) {
  --primary-color: #dbe4f5;
  --primary-color-2: #b8c5df;
  --secondery-color: #b8c5df;
  --bg-white: #0b132b;
  --bg-white-2: #0f2242;
  --bg-white-3: #0f2242;
  --bg-white-4: #0f2242;
  --bg-white-5: #0f2242;
  --bg-white-6: #090f20;
  --bg-white-7: #0b132b;
  --color-1: #e8edf7;
  --color-2: #e8edf7;
  --color-3: #dbe4f5;
  --color-4: #f0a838;
  --color-5: #ffffff;
  --color-6: #dbe4f5;
  --color-7: #0f2242;
  --color-8: #dbe4f5;
  --color-9: #ffffff;
  --color-10: #e8edf7;
  --color-11: #b8c5df;
  --color-12: rgba(240, 168, 56, .18);
  --color-13: #dbe4f5;
  --color-14: #e8edf7;
  --color-15: rgba(240, 168, 56, .35);
  --color-16: #dbe4f5;
  --hover-color: rgba(255, 255, 255, .06);
  --hover-color-2: rgba(255, 255, 255, .06);
  --border-color: rgba(255, 255, 255, .12);
  --color-linear: #0b132b;
  --box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

html:has(.es-home) body,
html:has(.grid-view) body,
html:has(.courses-details) body,
html:has(.sign-up) body,
html:has(.wish-list-body) body,
html:has(.bread-crumb) body {
  background: var(--bg-white);
  color: var(--primary-color);
  font-family: var(--es-font);
}
html:has(.es-home) .form-control,
html:has(.grid-view) .form-control,
html:has(.courses-details) .form-control,
html:has(.sign-up) .form-control,
html:has(.wish-list-body) .form-control,
html:has(.bread-crumb) .form-control,
html:has(.es-home) .form-select,
html:has(.grid-view) .form-select,
html:has(.courses-details) .form-select,
html:has(.sign-up) .form-select,
html:has(.wish-list-body) .form-select,
html:has(.bread-crumb) .form-select,
html:has(.es-home) .nice-select,
html:has(.grid-view) .nice-select,
html:has(.courses-details) .nice-select,
html:has(.sign-up) .nice-select,
html:has(.wish-list-body) .nice-select,
html:has(.bread-crumb) .nice-select,
html:has(.es-home) .select-control,
html:has(.grid-view) .select-control,
html:has(.courses-details) .select-control,
html:has(.sign-up) .select-control,
html:has(.wish-list-body) .select-control,
html:has(.bread-crumb) .select-control {
  background-color: rgba(255,255,255,.06);
  border: 1px solid var(--es-line);
  color: var(--es-text);
}
html:has(.es-home) .nice-select .list,
html:has(.grid-view) .nice-select .list,
html:has(.courses-details) .nice-select .list,
html:has(.sign-up) .nice-select .list,
html:has(.wish-list-body) .nice-select .list,
html:has(.bread-crumb) .nice-select .list,
html:has(.es-home) .dropdown-menu,
html:has(.grid-view) .dropdown-menu,
html:has(.courses-details) .dropdown-menu,
html:has(.sign-up) .dropdown-menu,
html:has(.wish-list-body) .dropdown-menu,
html:has(.bread-crumb) .dropdown-menu {
  background: var(--es-panel);
  border: 1px solid var(--es-line);
  color: var(--es-text);
}
html:has(.es-home) .nice-select .option,
html:has(.grid-view) .nice-select .option,
html:has(.courses-details) .nice-select .option,
html:has(.sign-up) .nice-select .option,
html:has(.wish-list-body) .nice-select .option,
html:has(.bread-crumb) .nice-select .option,
html:has(.es-home) .dropdown-item,
html:has(.grid-view) .dropdown-item,
html:has(.courses-details) .dropdown-item,
html:has(.sign-up) .dropdown-item,
html:has(.wish-list-body) .dropdown-item,
html:has(.bread-crumb) .dropdown-item {
  color: var(--es-text);
}
html:has(.es-home) .nice-select .option:hover,
html:has(.grid-view) .nice-select .option:hover,
html:has(.courses-details) .nice-select .option:hover,
html:has(.sign-up) .nice-select .option:hover,
html:has(.wish-list-body) .nice-select .option:hover,
html:has(.bread-crumb) .nice-select .option:hover,
html:has(.es-home) .nice-select .option.focus,
html:has(.grid-view) .nice-select .option.focus,
html:has(.courses-details) .nice-select .option.focus,
html:has(.sign-up) .nice-select .option.focus,
html:has(.wish-list-body) .nice-select .option.focus,
html:has(.bread-crumb) .nice-select .option.focus,
html:has(.es-home) .nice-select .option.selected.focus,
html:has(.grid-view) .nice-select .option.selected.focus,
html:has(.courses-details) .nice-select .option.selected.focus,
html:has(.sign-up) .nice-select .option.selected.focus,
html:has(.wish-list-body) .nice-select .option.selected.focus,
html:has(.bread-crumb) .nice-select .option.selected.focus,
html:has(.es-home) .dropdown-item:hover,
html:has(.grid-view) .dropdown-item:hover,
html:has(.courses-details) .dropdown-item:hover,
html:has(.sign-up) .dropdown-item:hover,
html:has(.wish-list-body) .dropdown-item:hover,
html:has(.bread-crumb) .dropdown-item:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
html:has(.es-home) .accordion-item,
html:has(.grid-view) .accordion-item,
html:has(.courses-details) .accordion-item,
html:has(.sign-up) .accordion-item,
html:has(.wish-list-body) .accordion-item,
html:has(.bread-crumb) .accordion-item,
html:has(.es-home) .accordion-button,
html:has(.grid-view) .accordion-button,
html:has(.courses-details) .accordion-button,
html:has(.sign-up) .accordion-button,
html:has(.wish-list-body) .accordion-button,
html:has(.bread-crumb) .accordion-button {
  --bs-accordion-bg: var(--es-panel);
  --bs-accordion-color: var(--es-text);
  --bs-accordion-border-color: var(--es-line);
  --bs-accordion-btn-color: var(--es-text);
  --bs-accordion-active-bg: rgba(255,255,255,.05);
  --bs-accordion-active-color: #fff;
  background: var(--es-panel);
  color: var(--es-text);
}
html:has(.es-home) .accordion-button::after,
html:has(.grid-view) .accordion-button::after,
html:has(.courses-details) .accordion-button::after,
html:has(.sign-up) .accordion-button::after,
html:has(.wish-list-body) .accordion-button::after,
html:has(.bread-crumb) .accordion-button::after {
  filter: invert(1) brightness(1.4);
}
html:has(.es-home) .page-link,
html:has(.grid-view) .page-link,
html:has(.courses-details) .page-link,
html:has(.sign-up) .page-link,
html:has(.wish-list-body) .page-link,
html:has(.bread-crumb) .page-link {
  background: var(--es-panel);
  border-color: var(--es-line);
  color: var(--es-text);
}
html:has(.es-home) .page-item.active .page-link,
html:has(.grid-view) .page-item.active .page-link,
html:has(.courses-details) .page-item.active .page-link,
html:has(.sign-up) .page-item.active .page-link,
html:has(.wish-list-body) .page-item.active .page-link,
html:has(.bread-crumb) .page-item.active .page-link,
html:has(.es-home) .page-link:hover,
html:has(.grid-view) .page-link:hover,
html:has(.courses-details) .page-link:hover,
html:has(.sign-up) .page-link:hover,
html:has(.wish-list-body) .page-link:hover,
html:has(.bread-crumb) .page-link:hover {
  background: var(--es-orange);
  border-color: var(--es-orange);
  color: var(--es-ink);
}
html:has(.es-home) .modal-content,
html:has(.grid-view) .modal-content,
html:has(.courses-details) .modal-content,
html:has(.sign-up) .modal-content,
html:has(.wish-list-body) .modal-content,
html:has(.bread-crumb) .modal-content {
  background: var(--es-panel);
  color: var(--es-text);
}
html:has(.es-home) .nav-tabs,
html:has(.grid-view) .nav-tabs,
html:has(.courses-details) .nav-tabs,
html:has(.sign-up) .nav-tabs,
html:has(.wish-list-body) .nav-tabs,
html:has(.bread-crumb) .nav-tabs,
html:has(.es-home) .nav-tabs .nav-link,
html:has(.grid-view) .nav-tabs .nav-link,
html:has(.courses-details) .nav-tabs .nav-link,
html:has(.sign-up) .nav-tabs .nav-link,
html:has(.wish-list-body) .nav-tabs .nav-link,
html:has(.bread-crumb) .nav-tabs .nav-link {
  border-color: var(--es-line);
}
html:has(.es-home) .bg-light,
html:has(.grid-view) .bg-light,
html:has(.courses-details) .bg-light,
html:has(.sign-up) .bg-light,
html:has(.wish-list-body) .bg-light,
html:has(.bread-crumb) .bg-light,
html:has(.es-home) .bg-white,
html:has(.grid-view) .bg-white,
html:has(.courses-details) .bg-white,
html:has(.sign-up) .bg-white,
html:has(.wish-list-body) .bg-white,
html:has(.bread-crumb) .bg-white {
  background-color: var(--es-panel) !important;
}
html:has(.es-home) .text-dark,
html:has(.grid-view) .text-dark,
html:has(.courses-details) .text-dark,
html:has(.sign-up) .text-dark,
html:has(.wish-list-body) .text-dark,
html:has(.bread-crumb) .text-dark {
  color: var(--es-text) !important;
}
html:has(.es-home) .text-muted,
html:has(.grid-view) .text-muted,
html:has(.courses-details) .text-muted,
html:has(.sign-up) .text-muted,
html:has(.wish-list-body) .text-muted,
html:has(.bread-crumb) .text-muted {
  color: var(--es-muted) !important;
}
html:has(.es-home) .form-check-input,
html:has(.grid-view) .form-check-input,
html:has(.courses-details) .form-check-input,
html:has(.sign-up) .form-check-input,
html:has(.wish-list-body) .form-check-input,
html:has(.bread-crumb) .form-check-input {
  background-color: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.35);
}
html:has(.es-home) .form-check-input:checked,
html:has(.grid-view) .form-check-input:checked,
html:has(.courses-details) .form-check-input:checked,
html:has(.sign-up) .form-check-input:checked,
html:has(.wish-list-body) .form-check-input:checked,
html:has(.bread-crumb) .form-check-input:checked {
  background-color: var(--es-orange);
  border-color: var(--es-orange);
}
html:has(.es-home) .bread-crumb,
html:has(.grid-view) .bread-crumb,
html:has(.courses-details) .bread-crumb,
html:has(.sign-up) .bread-crumb,
html:has(.wish-list-body) .bread-crumb,
html:has(.bread-crumb) .bread-crumb {
  background: linear-gradient(135deg, var(--es-blue) 0%, var(--es-navy) 75%) !important;
  border-bottom: 1px solid var(--es-line);
}
html:has(.es-home) .bread-crumb h1,
html:has(.grid-view) .bread-crumb h1,
html:has(.courses-details) .bread-crumb h1,
html:has(.sign-up) .bread-crumb h1,
html:has(.wish-list-body) .bread-crumb h1,
html:has(.bread-crumb) .bread-crumb h1 {
  font-size: clamp(26px, 4vw, 40px);
  margin-bottom: 28px;
  line-height: 1.35;
  font-weight: 800;
}
html:has(.es-home) .bread-crumb a,
html:has(.grid-view) .bread-crumb a,
html:has(.courses-details) .bread-crumb a,
html:has(.sign-up) .bread-crumb a,
html:has(.wish-list-body) .bread-crumb a,
html:has(.bread-crumb) .bread-crumb a,
html:has(.es-home) .breadcrumb span,
html:has(.grid-view) .breadcrumb span,
html:has(.courses-details) .breadcrumb span,
html:has(.sign-up) .breadcrumb span,
html:has(.wish-list-body) .breadcrumb span,
html:has(.bread-crumb) .breadcrumb span,
html:has(.es-home) .breadcrumb i,
html:has(.grid-view) .breadcrumb i,
html:has(.courses-details) .breadcrumb i,
html:has(.sign-up) .breadcrumb i,
html:has(.wish-list-body) .breadcrumb i,
html:has(.bread-crumb) .breadcrumb i,
html:has(.es-home) .breadcrumb-item,
html:has(.grid-view) .breadcrumb-item,
html:has(.courses-details) .breadcrumb-item,
html:has(.sign-up) .breadcrumb-item,
html:has(.wish-list-body) .breadcrumb-item,
html:has(.bread-crumb) .breadcrumb-item {
  color: var(--es-text);
}
html:has(.es-home) .breadcrumb-item.active,
html:has(.grid-view) .breadcrumb-item.active,
html:has(.courses-details) .breadcrumb-item.active,
html:has(.sign-up) .breadcrumb-item.active,
html:has(.wish-list-body) .breadcrumb-item.active,
html:has(.bread-crumb) .breadcrumb-item.active,
html:has(.es-home) .breadcrumb-item.active span,
html:has(.grid-view) .breadcrumb-item.active span,
html:has(.courses-details) .breadcrumb-item.active span,
html:has(.sign-up) .breadcrumb-item.active span,
html:has(.wish-list-body) .breadcrumb-item.active span,
html:has(.bread-crumb) .breadcrumb-item.active span {
  color: var(--es-orange);
}
html:has(.es-home) .courses-details .courses-details-1st-text h1,
html:has(.grid-view) .courses-details .courses-details-1st-text h1,
html:has(.courses-details) .courses-details .courses-details-1st-text h1,
html:has(.sign-up) .courses-details .courses-details-1st-text h1,
html:has(.wish-list-body) .courses-details .courses-details-1st-text h1,
html:has(.bread-crumb) .courses-details .courses-details-1st-text h1 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.4;
}
html:has(.es-home) .courses-details .courses-details-1st-text p,
html:has(.grid-view) .courses-details .courses-details-1st-text p,
html:has(.courses-details) .courses-details .courses-details-1st-text p,
html:has(.sign-up) .courses-details .courses-details-1st-text p,
html:has(.wish-list-body) .courses-details .courses-details-1st-text p,
html:has(.bread-crumb) .courses-details .courses-details-1st-text p,
html:has(.es-home) .courses-details .info-tag p,
html:has(.grid-view) .courses-details .info-tag p,
html:has(.courses-details) .courses-details .info-tag p,
html:has(.sign-up) .courses-details .info-tag p,
html:has(.wish-list-body) .courses-details .info-tag p,
html:has(.bread-crumb) .courses-details .info-tag p,
html:has(.es-home) .courses-details .info-tag i,
html:has(.grid-view) .courses-details .info-tag i,
html:has(.courses-details) .courses-details .info-tag i,
html:has(.sign-up) .courses-details .info-tag i,
html:has(.wish-list-body) .courses-details .info-tag i,
html:has(.bread-crumb) .courses-details .info-tag i,
html:has(.es-home) .created-by-instructor,
html:has(.grid-view) .created-by-instructor,
html:has(.courses-details) .created-by-instructor,
html:has(.sign-up) .created-by-instructor,
html:has(.wish-list-body) .created-by-instructor,
html:has(.bread-crumb) .created-by-instructor {
  color: var(--es-text);
}
html:has(.es-home) .courses-details .info-tag i.text-light,
html:has(.grid-view) .courses-details .info-tag i.text-light,
html:has(.courses-details) .courses-details .info-tag i.text-light,
html:has(.sign-up) .courses-details .info-tag i.text-light,
html:has(.wish-list-body) .courses-details .info-tag i.text-light,
html:has(.bread-crumb) .courses-details .info-tag i.text-light {
  color: rgba(255,255,255,.25) !important;
}
html:has(.es-home) .courses-details .info-tag .fa-star:not(.text-light),
html:has(.grid-view) .courses-details .info-tag .fa-star:not(.text-light),
html:has(.courses-details) .courses-details .info-tag .fa-star:not(.text-light),
html:has(.sign-up) .courses-details .info-tag .fa-star:not(.text-light),
html:has(.wish-list-body) .courses-details .info-tag .fa-star:not(.text-light),
html:has(.bread-crumb) .courses-details .info-tag .fa-star:not(.text-light) {
  color: var(--es-orange);
}
html:has(.es-home) .course-left-side,
html:has(.grid-view) .course-left-side,
html:has(.courses-details) .course-left-side,
html:has(.sign-up) .course-left-side,
html:has(.wish-list-body) .course-left-side,
html:has(.bread-crumb) .course-left-side,
html:has(.es-home) .course-card,
html:has(.grid-view) .course-card,
html:has(.courses-details) .course-card,
html:has(.sign-up) .course-card,
html:has(.wish-list-body) .course-card,
html:has(.bread-crumb) .course-card {
  background: var(--es-panel);
  box-shadow: inset 0 0 0 1px var(--es-line);
}
html:has(.es-home) .course-decription li .nav-link,
html:has(.grid-view) .course-decription li .nav-link,
html:has(.courses-details) .course-decription li .nav-link,
html:has(.sign-up) .course-decription li .nav-link,
html:has(.wish-list-body) .course-decription li .nav-link,
html:has(.bread-crumb) .course-decription li .nav-link {
  color: var(--es-text);
}
html:has(.es-home) .course-left-side .nav-tabs .nav-link.active,
html:has(.grid-view) .course-left-side .nav-tabs .nav-link.active,
html:has(.courses-details) .course-left-side .nav-tabs .nav-link.active,
html:has(.sign-up) .course-left-side .nav-tabs .nav-link.active,
html:has(.wish-list-body) .course-left-side .nav-tabs .nav-link.active,
html:has(.bread-crumb) .course-left-side .nav-tabs .nav-link.active,
html:has(.es-home) .course-left-side .nav-tabs .nav-item.show .nav-link,
html:has(.grid-view) .course-left-side .nav-tabs .nav-item.show .nav-link,
html:has(.courses-details) .course-left-side .nav-tabs .nav-item.show .nav-link,
html:has(.sign-up) .course-left-side .nav-tabs .nav-item.show .nav-link,
html:has(.wish-list-body) .course-left-side .nav-tabs .nav-item.show .nav-link,
html:has(.bread-crumb) .course-left-side .nav-tabs .nav-item.show .nav-link {
  background: transparent;
  color: var(--es-orange);
}
html:has(.es-home) .course-decription .nav-link svg *,
html:has(.grid-view) .course-decription .nav-link svg *,
html:has(.courses-details) .course-decription .nav-link svg *,
html:has(.sign-up) .course-decription .nav-link svg *,
html:has(.wish-list-body) .course-decription .nav-link svg *,
html:has(.bread-crumb) .course-decription .nav-link svg * {
  fill: currentColor;
}
html:has(.es-home) .description-head,
html:has(.grid-view) .description-head,
html:has(.courses-details) .description-head,
html:has(.sign-up) .description-head,
html:has(.wish-list-body) .description-head,
html:has(.bread-crumb) .description-head,
html:has(.es-home) .course-description h3,
html:has(.grid-view) .course-description h3,
html:has(.courses-details) .course-description h3,
html:has(.sign-up) .course-description h3,
html:has(.wish-list-body) .course-description h3,
html:has(.bread-crumb) .course-description h3 {
  color: #fff;
  font-weight: 800;
}
html:has(.es-home) .course-description li,
html:has(.grid-view) .course-description li,
html:has(.courses-details) .course-description li,
html:has(.sign-up) .course-description li,
html:has(.wish-list-body) .course-description li,
html:has(.bread-crumb) .course-description li,
html:has(.es-home) .course-description p,
html:has(.grid-view) .course-description p,
html:has(.courses-details) .course-description p,
html:has(.sign-up) .course-description p,
html:has(.wish-list-body) .course-description p,
html:has(.bread-crumb) .course-description p {
  color: var(--es-text);
}
html:has(.es-home) .ac-lecture li a,
html:has(.grid-view) .ac-lecture li a,
html:has(.courses-details) .ac-lecture li a,
html:has(.sign-up) .ac-lecture li a,
html:has(.wish-list-body) .ac-lecture li a,
html:has(.bread-crumb) .ac-lecture li a {
  color: var(--es-text);
}
html:has(.es-home) .ac-lecture li a:hover,
html:has(.grid-view) .ac-lecture li a:hover,
html:has(.courses-details) .ac-lecture li a:hover,
html:has(.sign-up) .ac-lecture li a:hover,
html:has(.wish-list-body) .ac-lecture li a:hover,
html:has(.bread-crumb) .ac-lecture li a:hover {
  background: rgba(255,255,255,.06);
}
html:has(.es-home) .ac-lecture li a span i,
html:has(.grid-view) .ac-lecture li a span i,
html:has(.courses-details) .ac-lecture li a span i,
html:has(.sign-up) .ac-lecture li a span i,
html:has(.wish-list-body) .ac-lecture li a span i,
html:has(.bread-crumb) .ac-lecture li a span i {
  color: var(--es-orange);
}
html:has(.es-home) .course-right-section .course-card .ammount h1,
html:has(.grid-view) .course-right-section .course-card .ammount h1,
html:has(.courses-details) .course-right-section .course-card .ammount h1,
html:has(.sign-up) .course-right-section .course-card .ammount h1,
html:has(.wish-list-body) .course-right-section .course-card .ammount h1,
html:has(.bread-crumb) .course-right-section .course-card .ammount h1 {
  color: var(--es-orange);
}
html:has(.es-home) .course-right-section .course-card .ammount h3,
html:has(.grid-view) .course-right-section .course-card .ammount h3,
html:has(.courses-details) .course-right-section .course-card .ammount h3,
html:has(.sign-up) .course-right-section .course-card .ammount h3,
html:has(.wish-list-body) .course-right-section .course-card .ammount h3,
html:has(.bread-crumb) .course-right-section .course-card .ammount h3 {
  color: var(--es-muted);
}
html:has(.es-home) .course-right-section .course-card .enrol,
html:has(.grid-view) .course-right-section .course-card .enrol,
html:has(.courses-details) .course-right-section .course-card .enrol,
html:has(.sign-up) .course-right-section .course-card .enrol,
html:has(.wish-list-body) .course-right-section .course-card .enrol,
html:has(.bread-crumb) .course-right-section .course-card .enrol {
  border-color: var(--es-line);
}
html:has(.es-home) .course-right-section .course-card .enrol h4,
html:has(.grid-view) .course-right-section .course-card .enrol h4,
html:has(.courses-details) .course-right-section .course-card .enrol h4,
html:has(.sign-up) .course-right-section .course-card .enrol h4,
html:has(.wish-list-body) .course-right-section .course-card .enrol h4,
html:has(.bread-crumb) .course-right-section .course-card .enrol h4,
html:has(.es-home) .course-right-section .course-card .enrol h5,
html:has(.grid-view) .course-right-section .course-card .enrol h5,
html:has(.courses-details) .course-right-section .course-card .enrol h5,
html:has(.sign-up) .course-right-section .course-card .enrol h5,
html:has(.wish-list-body) .course-right-section .course-card .enrol h5,
html:has(.bread-crumb) .course-right-section .course-card .enrol h5 {
  color: var(--es-text);
}
html:has(.es-home) .course-right-section .course-card .enrol .icon img,
html:has(.grid-view) .course-right-section .course-card .enrol .icon img,
html:has(.courses-details) .course-right-section .course-card .enrol .icon img,
html:has(.sign-up) .course-right-section .course-card .enrol .icon img,
html:has(.wish-list-body) .course-right-section .course-card .enrol .icon img,
html:has(.bread-crumb) .course-right-section .course-card .enrol .icon img {
  filter: brightness(0) invert(1) opacity(.8);
}
html:has(.es-home) .course-right-section .button a,
html:has(.grid-view) .course-right-section .button a,
html:has(.courses-details) .course-right-section .button a,
html:has(.sign-up) .course-right-section .button a,
html:has(.wish-list-body) .course-right-section .button a,
html:has(.bread-crumb) .course-right-section .button a {
  background: transparent;
  border-color: var(--es-orange);
  color: var(--es-orange);
}
html:has(.es-home) .course-right-section .button a:hover,
html:has(.grid-view) .course-right-section .button a:hover,
html:has(.courses-details) .course-right-section .button a:hover,
html:has(.sign-up) .course-right-section .button a:hover,
html:has(.wish-list-body) .course-right-section .button a:hover,
html:has(.bread-crumb) .course-right-section .button a:hover,
html:has(.es-home) .course-right-section .button a.active,
html:has(.grid-view) .course-right-section .button a.active,
html:has(.courses-details) .course-right-section .button a.active,
html:has(.sign-up) .course-right-section .button a.active,
html:has(.wish-list-body) .course-right-section .button a.active,
html:has(.bread-crumb) .course-right-section .button a.active {
  background: var(--es-orange);
  color: var(--es-ink);
}
html:has(.es-home) .course-all-category,
html:has(.grid-view) .course-all-category,
html:has(.courses-details) .course-all-category,
html:has(.sign-up) .course-all-category,
html:has(.wish-list-body) .course-all-category,
html:has(.bread-crumb) .course-all-category {
  background: var(--es-panel);
  border: 1px solid var(--es-line);
  border-radius: 14px;
}
html:has(.es-home) .course-category h3,
html:has(.grid-view) .course-category h3,
html:has(.courses-details) .course-category h3,
html:has(.sign-up) .course-category h3,
html:has(.wish-list-body) .course-category h3,
html:has(.bread-crumb) .course-category h3 {
  color: #fff;
}
html:has(.es-home) .course-category span,
html:has(.grid-view) .course-category span,
html:has(.courses-details) .course-category span,
html:has(.sign-up) .course-category span,
html:has(.wish-list-body) .course-category span,
html:has(.bread-crumb) .course-category span,
html:has(.es-home) .course-category label,
html:has(.grid-view) .course-category label,
html:has(.courses-details) .course-category label,
html:has(.sign-up) .course-category label,
html:has(.wish-list-body) .course-category label,
html:has(.bread-crumb) .course-category label,
html:has(.es-home) .course-category a,
html:has(.grid-view) .course-category a,
html:has(.courses-details) .course-category a,
html:has(.sign-up) .course-category a,
html:has(.wish-list-body) .course-category a,
html:has(.bread-crumb) .course-category a {
  color: var(--es-text);
}
html:has(.es-home) .course-category a:hover,
html:has(.grid-view) .course-category a:hover,
html:has(.courses-details) .course-category a:hover,
html:has(.sign-up) .course-category a:hover,
html:has(.wish-list-body) .course-category a:hover,
html:has(.bread-crumb) .course-category a:hover {
  color: var(--es-orange);
}
html:has(.es-home) .list-card-control .btn,
html:has(.grid-view) .list-card-control .btn,
html:has(.courses-details) .list-card-control .btn,
html:has(.sign-up) .list-card-control .btn,
html:has(.wish-list-body) .list-card-control .btn,
html:has(.bread-crumb) .list-card-control .btn {
  background: var(--es-panel);
  border: 1px solid var(--es-line);
  color: var(--es-text);
}
html:has(.es-home) .list-card-control .btn.active,
html:has(.grid-view) .list-card-control .btn.active,
html:has(.courses-details) .list-card-control .btn.active,
html:has(.sign-up) .list-card-control .btn.active,
html:has(.wish-list-body) .list-card-control .btn.active,
html:has(.bread-crumb) .list-card-control .btn.active {
  background: var(--es-orange);
  border-color: var(--es-orange);
  color: var(--es-ink);
}
html:has(.es-home) .list-card-control p,
html:has(.grid-view) .list-card-control p,
html:has(.courses-details) .list-card-control p,
html:has(.sign-up) .list-card-control p,
html:has(.wish-list-body) .list-card-control p,
html:has(.bread-crumb) .list-card-control p {
  color: var(--es-muted);
}
html:has(.es-home) .not-found h5,
html:has(.grid-view) .not-found h5,
html:has(.courses-details) .not-found h5,
html:has(.sign-up) .not-found h5,
html:has(.wish-list-body) .not-found h5,
html:has(.bread-crumb) .not-found h5 {
  color: #fff;
}
html:has(.es-home) .not-found p,
html:has(.grid-view) .not-found p,
html:has(.courses-details) .not-found p,
html:has(.sign-up) .not-found p,
html:has(.wish-list-body) .not-found p,
html:has(.bread-crumb) .not-found p {
  color: var(--es-muted);
}
html:has(.es-home) .not-found img,
html:has(.grid-view) .not-found img,
html:has(.courses-details) .not-found img,
html:has(.sign-up) .not-found img,
html:has(.wish-list-body) .not-found img,
html:has(.bread-crumb) .not-found img {
  filter: invert(1) opacity(.6);
}
html:has(.es-home) .courses-card .courses-card-body,
html:has(.grid-view) .courses-card .courses-card-body,
html:has(.courses-details) .courses-card .courses-card-body,
html:has(.sign-up) .courses-card .courses-card-body,
html:has(.wish-list-body) .courses-card .courses-card-body,
html:has(.bread-crumb) .courses-card .courses-card-body {
  background: var(--es-panel);
  border: 1px solid var(--es-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
  transition: border-color .2s;
}
html:has(.es-home) .courses-card .courses-card-body:hover,
html:has(.grid-view) .courses-card .courses-card-body:hover,
html:has(.courses-details) .courses-card .courses-card-body:hover,
html:has(.sign-up) .courses-card .courses-card-body:hover,
html:has(.wish-list-body) .courses-card .courses-card-body:hover,
html:has(.bread-crumb) .courses-card .courses-card-body:hover {
  border-color: var(--es-orange);
}
html:has(.es-home) .courses-card .courses-text h5,
html:has(.grid-view) .courses-card .courses-text h5,
html:has(.courses-details) .courses-card .courses-text h5,
html:has(.sign-up) .courses-card .courses-text h5,
html:has(.wish-list-body) .courses-card .courses-text h5,
html:has(.bread-crumb) .courses-card .courses-text h5 {
  color: #fff;
  font-weight: 700;
}
html:has(.es-home) .courses-card .courses-text p,
html:has(.grid-view) .courses-card .courses-text p,
html:has(.courses-details) .courses-card .courses-text p,
html:has(.sign-up) .courses-card .courses-text p,
html:has(.wish-list-body) .courses-card .courses-text p,
html:has(.bread-crumb) .courses-card .courses-text p,
html:has(.es-home) .courses-card .ellipsis-line-2,
html:has(.grid-view) .courses-card .ellipsis-line-2,
html:has(.courses-details) .courses-card .ellipsis-line-2,
html:has(.sign-up) .courses-card .ellipsis-line-2,
html:has(.wish-list-body) .courses-card .ellipsis-line-2,
html:has(.bread-crumb) .courses-card .ellipsis-line-2 {
  color: var(--es-muted);
}
html:has(.es-home) .courses-card .courses-price-left h5,
html:has(.grid-view) .courses-card .courses-price-left h5,
html:has(.courses-details) .courses-card .courses-price-left h5,
html:has(.sign-up) .courses-card .courses-price-left h5,
html:has(.wish-list-body) .courses-card .courses-price-left h5,
html:has(.bread-crumb) .courses-card .courses-price-left h5 {
  color: var(--es-orange);
  font-weight: 800;
}
html:has(.es-home) .courses-card .courses-price-left del,
html:has(.grid-view) .courses-card .courses-price-left del,
html:has(.courses-details) .courses-card .courses-price-left del,
html:has(.sign-up) .courses-card .courses-price-left del,
html:has(.wish-list-body) .courses-card .courses-price-left del,
html:has(.bread-crumb) .courses-card .courses-price-left del {
  color: var(--es-muted);
}
html:has(.es-home) .courses-card .courses-card-image-text,
html:has(.grid-view) .courses-card .courses-card-image-text,
html:has(.courses-details) .courses-card .courses-card-image-text,
html:has(.sign-up) .courses-card .courses-card-image-text,
html:has(.wish-list-body) .courses-card .courses-card-image-text,
html:has(.bread-crumb) .courses-card .courses-card-image-text {
  background: var(--es-orange);
  color: var(--es-ink);
}
html:has(.es-home) .courses-card .courses-card-image-text h3,
html:has(.grid-view) .courses-card .courses-card-image-text h3,
html:has(.courses-details) .courses-card .courses-card-image-text h3,
html:has(.sign-up) .courses-card .courses-card-image-text h3,
html:has(.wish-list-body) .courses-card .courses-card-image-text h3,
html:has(.bread-crumb) .courses-card .courses-card-image-text h3 {
  color: var(--es-ink);
  font-weight: 700;
}
html:has(.es-home) .courses-card .compare-img,
html:has(.grid-view) .courses-card .compare-img,
html:has(.courses-details) .courses-card .compare-img,
html:has(.sign-up) .courses-card .compare-img,
html:has(.wish-list-body) .courses-card .compare-img,
html:has(.bread-crumb) .courses-card .compare-img {
  display: none !important;
}
html:has(.es-home) .courses-card .courses-price-border,
html:has(.grid-view) .courses-card .courses-price-border,
html:has(.courses-details) .courses-card .courses-price-border,
html:has(.sign-up) .courses-card .courses-price-border,
html:has(.wish-list-body) .courses-card .courses-price-border,
html:has(.bread-crumb) .courses-card .courses-price-border {
  border-color: var(--es-line);
}
html:has(.es-home) .grid-view-body,
html:has(.grid-view) .grid-view-body,
html:has(.courses-details) .grid-view-body,
html:has(.sign-up) .grid-view-body,
html:has(.wish-list-body) .grid-view-body,
html:has(.bread-crumb) .grid-view-body,
html:has(.es-home) .course-details-card,
html:has(.grid-view) .course-details-card,
html:has(.courses-details) .course-details-card,
html:has(.sign-up) .course-details-card,
html:has(.wish-list-body) .course-details-card,
html:has(.bread-crumb) .course-details-card,
html:has(.es-home) .pagenation-items,
html:has(.grid-view) .pagenation-items,
html:has(.courses-details) .pagenation-items,
html:has(.sign-up) .pagenation-items,
html:has(.wish-list-body) .pagenation-items,
html:has(.bread-crumb) .pagenation-items {
  background: transparent;
}

/* ---------- الجوال: شريط علوي مضغوط وقائمة جانبية بالهوية ---------- */
@media (max-width: 767px) {
  .sub-header .col-lg-6:last-child { display: none; }
  .sub-header .nav { justify-content: center; }
}
.mobile-view-offcanves .offcanvas,
.mobile-view-offcanves .offcanvas-header { background: var(--es-navy) !important; color: var(--es-text); }
.mobile-view-offcanves .bg-light,
.mobile-view-offcanves .bg-white { background: transparent !important; }
.mobile-view-offcanves .text-dark,
.mobile-view-offcanves .btn-toggle,
.mobile-view-offcanves .btn-toggle-list,
.mobile-view-offcanves a { color: var(--es-text) !important; }
.mobile-view-offcanves .btn-close { filter: invert(1); }
.mobile-view-offcanves .signUp-btn { background: var(--es-orange); color: var(--es-ink) !important; border-radius: 8px; font-weight: 700; }
.mobile-view-offcanves .logIn-btn { border: 1px solid var(--es-line); border-radius: 8px; }

/* ---------- زر تصفية الدورات (جوال) + إخفاء زر المقارنة في صفحة الدورة ---------- */
.es-filter-toggle {
  width: 100%;
  margin: 24px 0 12px;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid var(--es-line);
  background: var(--es-panel);
  color: var(--es-text);
  font: 700 15px var(--es-font);
}
.es-filter-toggle i { color: var(--es-orange); margin-inline-end: 8px; }
.course-card .ammount a[href*="compare"] { display: none !important; }
@media (min-width: 992px) { .es-filter-toggle { display: none; } }

/* =====================================================================
   استبدال البنفسجي بالبرتقالي في كل الموقع (مولَّد من قواعد القالب الأصلية)
   ===================================================================== */
.home_2nd { --color-4: #f0a838; --color-12: #f0a8383a; --color-15: #f0a83858; }
.home_3rd { --color-4: #f0a838; --color-12: #f0a8383a; --color-15: #f0a83858; }
.home_4th { --color-4: #f0a838; --color-12: #f0a8383a; --color-15: #f0a83858; }
.home_5th { --color-4: #f0a838; --color-12: #f0a8383a; --color-15: #f0a83858; }
.sign-in-box .sign-up-btn { color: #090f20; }
.menu_pro_tgl_bg ul li:hover a { color: #f0a838; }
.menu_pro_tgl_bg ul li:hover i { color: #f0a838; }
.menu_pro_tgl_bg ul li:hover { color: #f0a838; }
.menu_pro_tgl_bg ul li:hover:after { background-color: #f0a838; color: #090f20; }
.menu_pro_wish-flex .spandiv span { color: #f0a838; }
.menu_pro_wish-f-b .prcd a { color: #f0a838; border: 1.5px solid #f0a838; }
.menu_pro_btn .btn { background-color: #f0a838; color: #090f20; }
.dropdown-menu li a:hover { color: #f0a838; }
.search-icon { border: 1px solid #f0a838; }
.m-cross-icon,
.m-search-icon { border: 1px solid #f0a838; }
.search-item span:hover { background-color: #f0a838; color: #090f20; }
.cross-icon { border: 1px solid #f0a838; }
.m-cross-icon { border: 1px solid #f0a838; }
.h-1-banner .h-1-banner-text h1 span { color: #f0a838; }
.signUp-btn { color: #090f20; }
.inline-form .search-btn { background: #f0a838; color: #090f20; }
.will-learn li::after { color: #090f20; }
.popover-btns .purchase-btn { color: #090f20; }
.search-option .submit-cls { background-color: #f0a838; color: #090f20; }
.courses-card-body:hover .courses-text h5 { color: #f0a838; }
.courses-card-body .courses-text .courses-price .courses-price-right i { color: #f0a838; }
.category-product .category-product-body:hover { color: #090f20; }
.expert-instructor .instructor-card .instructor-card-body:hover h3 { color: #f0a838; }
.expert-instructor .instructor-card .instructor-card-body:hover p { color: #f0a838; }
.qustion .accordion-item .active { color: #f0a838; }
.footer a:hover { color: #f0a838; }
.footer .copyright .footer-privacy a:hover { color: #f0a838; }
.list-btn.active { color: #090f20; }
.grid-view-body .courses-card .courses-text .review-icon span { background-color: #f0a838; color: #090f20; }
.form-check-input:checked { color: #090f20; }
.course-category h3::after { background-color: #f0a838; color: #090f20; }
.pagenation .active { background-color: #f0a838; color: #090f20; }
.page-item:last-child .page-link,
.page-item:first-child .page-link { color: #090f20; }
.page-link:hover { color: #090f20; }
.courses-list-view-card-body .courses-text .courses-d-flex-text .compare-img { color: #090f20; }
.course-decription li .nav-link:after { color: #090f20; }
.ac-lecture li a span i { color: #f0a838; }
.course-right-section .button a:hover { color: #090f20; }
.accordion-body-2 .accordion-body-video .icon i { background-color: #f0a838; color: #090f20; }
.accordion-body-2 .accordion-body-video h2 a:hover { color: #f0a838; }
.accordion-body-2 .accordion-time h2:hover { color: #f0a838; }
.instructor .instructor-icon i:hover { background-color: #f0a838; color: #090f20; }
.instructor-student-feed-back h1:after { color: #090f20; }
.student-feed-back-text a { color: #090f20; }
.message-btn { color: #090f20; }
.c-d-3-banner .card-video-icon i:hover { background-color: #f0a838; color: #090f20; }
.include-icon i { color: #f0a838; }
.error-body-text a { background-color: #f0a838; color: #090f20; }
.blog-body .top ul li::after { color: #090f20; }
.blog-body .left-tag a:hover { background-color: #f0a838; color: #090f20; }
.comment #phone:hover { border-color: #f0a838; }
.blog-body .right-section .categories ul li a::after { color: #090f20; }
.blog-body .right-section .right-tag a:hover { background-color: #f0a838; color: #090f20; }
.sing-up-right h3 span { color: #f0a838; }
.sing-up-right .log-in .btn { color: #090f20; }
.sing-up-right .social-media .btn { color: #090f20; }
.sing-up-right .resend-code .btn { color: #090f20; }
.instructor-1 .instructor-about .about-text ul li a:hover { color: #090f20; }
.instructor-right .instructor-msg .btn { color: #090f20; }
.wish-list-course .my-cosre:hover { color: #090f20; }
.conversation-sending .sending { color: #090f20; }
.purchase-btn:hover { background-color: #f0a838; border-color: #f0a838; color: #090f20; }
.profile .profile-parrent .profile-child-btn a:hover { color: #090f20; }
.faq .faq-accrodion .faq-acc-heading h4 { color: #f0a838; }
.price-card .price-card-full-body  .price-btn a { color: #090f20; }
.form-section #exampleFormControlInput1:focus-visible { border-color: #f0a838; }
.form-section .form-btn a { color: #090f20; }
.cart-total .cart-total-btn a { color: #090f20; }
.payment-imformation-card .form-check-input:checked { color: #090f20; }
.invoice-bill::after { color: #090f20; }
.invoice-dec .print-btn a { color: #090f20; }
.invoice-2-table-head { color: #090f20; }
.about-us .about-us-btn a { background-color: #f0a838; color: #090f20; }
.course-play-body .course-play-left-body .body-1 a:hover { background-color: #f0a838; color: #090f20; }
.course-play-body .course-play-left-body .video .card-video-icon { background-color: #f0a838; color: #090f20; }
.course-play-body .course-play-left-body .video p a { color: #f0a838; }
.course-play-body .course-play-left-body .body-1 p a:hover { color: #f0a838; }
.course-play-tab .nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active { border-bottom: 1.5px solid#f0a838; color: #f0a838; }
.course-play-tab .nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover { border-bottom: 1.5px solid#f0a838; }
.course-play-tab .like p { color: #f0a838; }
.course-play-tab .like button { color: #f0a838; }
.compare-card .empty-card .icon a { color: #090f20; }
.my-course-1-last  .my-course-1-btn .btn { color: #090f20; }
.skill-bar { color: #090f20; }
.s_Sidebar_one .title { color: #090f20; }
.s_Sidebar_title_one.s_bar::before { color: #090f20; }
.s_course_item_one .content .title .schedule-no { color: #090f20; }
.ebook-item-one .content .link { color: #090f20; }
.instructor_social li a:hover { color: #090f20; }
.s_list_one li::before { background-color: #f0a83858; color: #090f20; }
.s_list_one li::after { background-color: #f0a838; color: #090f20; }
.sbundle-items .bundle-foot { color: #090f20; }
.sAdd-btn { color: #090f20; }
.sSchedule-item.active .date { color: #090f20; }
.sRequest-btn { color: #090f20; }
.speech-item-content .inner .title::before { background: #f0a838; color: #090f20; }
@media (max-width: 1200px) {
.sing-up-right .resend-code .btn { background-color: #f0a838; color: #090f20; }
}
@media all and (max-width: 991px) {
.btn-bar { color: #f0a838; }
.sing-up-right .resend-code .btn { background-color: #f0a838; color: #090f20; }
}
@media all and (max-width: 900px) {
.sing-up-right .resend-code .btn { background-color: #f0a838; color: #090f20; }
}
@media all and (max-width: 420px) {
.sing-up-right .resend-code .btn { background-color: #f0a838; color: #090f20; }
.invoice-no .invoice-color { color: #f0a838; }
.invoice-bill .invoice-total h2 { color: #f0a838; }
}

/* ---------- وضوح النص + إصلاح العناصر البيضاء ---------- */
.courses-card .courses-text p,
.courses-card .ellipsis-line-2,
.courses-card .courses-price-right p,
.courses-card .courses-price-right i,
.list-card-control p { color: var(--es-text) !important; }
.courses-card .ellipsis-line-2 { font-size: 14px !important; line-height: 1.9; opacity: .92; }
.courses-card .courses-text .review-icon p,
.courses-card .courses-text .review-icon span { color: var(--es-muted) !important; }
.courses-card .courses-price-right i { color: var(--es-orange) !important; }
.course-category span,
.course-category label { color: var(--es-text) !important; }

/* قائمة الترتيب (كانت بيضاء) */
.select-box .nice-select,
.select-box .form-select,
.select-control {
  background-color: var(--es-panel) !important;
  color: var(--es-text) !important;
  border: 1px solid var(--es-line) !important;
}
.select-box .nice-select .list { background-color: var(--es-panel) !important; border: 1px solid var(--es-line); }
.select-box .nice-select .option { color: var(--es-text); }
.select-box .nice-select .option:hover,
.select-box .nice-select .option.selected { background: rgba(255,255,255,.08); color: #fff; }
.select-box .nice-select .current { color: var(--es-text); }

/* زر البحث في الهيدر (كان أبيض) */
.menubar .search-input-button,
.menubar .search-input-form .btn {
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid var(--es-line) !important;
  color: #fff !important;
}
.menubar .search-input-button i,
.menubar .search-menu-icon { color: #fff !important; }

/* صورة الكتب الزخرفية في شريط العنوان */
.bread-crumb .book-img,
.bread-crumb .book-img img { display: none !important; }

/* =====================================================================
   تسجيل الدخول / إنشاء حساب / الملف الشخصي / المراجعات / المدرب
   ===================================================================== */
html:has(.es-home) .text-black,
html:has(.grid-view) .text-black,
html:has(.courses-details) .text-black,
html:has(.sign-up) .text-black,
html:has(.wish-list-body) .text-black,
html:has(.bread-crumb) .text-black {
  color: #fff !important;
}
html:has(.es-home) .input-group-text,
html:has(.grid-view) .input-group-text,
html:has(.courses-details) .input-group-text,
html:has(.sign-up) .input-group-text,
html:has(.wish-list-body) .input-group-text,
html:has(.bread-crumb) .input-group-text {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--es-line);
  color: var(--es-orange);
}
html:has(.es-home) .btn-light,
html:has(.grid-view) .btn-light,
html:has(.courses-details) .btn-light,
html:has(.sign-up) .btn-light,
html:has(.wish-list-body) .btn-light,
html:has(.bread-crumb) .btn-light {
  background: rgba(255,255,255,.1) !important;
  border-color: var(--es-line);
  color: var(--es-text);
}
html:has(.es-home) hr,
html:has(.grid-view) hr,
html:has(.courses-details) hr,
html:has(.sign-up) hr,
html:has(.wish-list-body) hr,
html:has(.bread-crumb) hr {
  border-color: var(--es-line);
  opacity: 1;
}
html:has(.es-home) .border-bottom,
html:has(.grid-view) .border-bottom,
html:has(.courses-details) .border-bottom,
html:has(.sign-up) .border-bottom,
html:has(.wish-list-body) .border-bottom,
html:has(.bread-crumb) .border-bottom,
html:has(.es-home) .border-top,
html:has(.grid-view) .border-top,
html:has(.courses-details) .border-top,
html:has(.sign-up) .border-top,
html:has(.wish-list-body) .border-top,
html:has(.bread-crumb) .border-top,
html:has(.es-home) .border,
html:has(.grid-view) .border,
html:has(.courses-details) .border,
html:has(.sign-up) .border,
html:has(.wish-list-body) .border,
html:has(.bread-crumb) .border {
  border-color: var(--es-line) !important;
}
html:has(.es-home) label,
html:has(.grid-view) label,
html:has(.courses-details) label,
html:has(.sign-up) label,
html:has(.wish-list-body) label,
html:has(.bread-crumb) label,
html:has(.es-home) .form-label,
html:has(.grid-view) .form-label,
html:has(.courses-details) .form-label,
html:has(.sign-up) .form-label,
html:has(.wish-list-body) .form-label,
html:has(.bread-crumb) .form-label {
  color: var(--es-text);
}
html:has(.es-home) .form-control::placeholder,
html:has(.grid-view) .form-control::placeholder,
html:has(.courses-details) .form-control::placeholder,
html:has(.sign-up) .form-control::placeholder,
html:has(.wish-list-body) .form-control::placeholder,
html:has(.bread-crumb) .form-control::placeholder,
html:has(.es-home) textarea::placeholder,
html:has(.grid-view) textarea::placeholder,
html:has(.courses-details) textarea::placeholder,
html:has(.sign-up) textarea::placeholder,
html:has(.wish-list-body) textarea::placeholder,
html:has(.bread-crumb) textarea::placeholder {
  color: var(--es-muted);
  opacity: 1;
}
html:has(.es-home) .form-control:focus,
html:has(.grid-view) .form-control:focus,
html:has(.courses-details) .form-control:focus,
html:has(.sign-up) .form-control:focus,
html:has(.wish-list-body) .form-control:focus,
html:has(.bread-crumb) .form-control:focus {
  background-color: rgba(255,255,255,.1);
  border-color: var(--es-orange);
  box-shadow: 0 0 0 3px rgba(240,168,56,.2);
  color: #fff;
}
html:has(.es-home) .form-control option,
html:has(.grid-view) .form-control option,
html:has(.courses-details) .form-control option,
html:has(.sign-up) .form-control option,
html:has(.wish-list-body) .form-control option,
html:has(.bread-crumb) .form-control option,
html:has(.es-home) select option,
html:has(.grid-view) select option,
html:has(.courses-details) select option,
html:has(.sign-up) select option,
html:has(.wish-list-body) select option,
html:has(.bread-crumb) select option {
  background: var(--es-panel);
  color: var(--es-text);
}
html:has(.es-home) .sing-up-right,
html:has(.grid-view) .sing-up-right,
html:has(.courses-details) .sing-up-right,
html:has(.sign-up) .sing-up-right,
html:has(.wish-list-body) .sing-up-right,
html:has(.bread-crumb) .sing-up-right {
  background: var(--es-panel);
  border: 1px solid var(--es-line);
  border-radius: 18px;
  padding: 36px;
}
html:has(.es-home) .sing-up-right h3,
html:has(.grid-view) .sing-up-right h3,
html:has(.courses-details) .sing-up-right h3,
html:has(.sign-up) .sing-up-right h3,
html:has(.wish-list-body) .sing-up-right h3,
html:has(.bread-crumb) .sing-up-right h3 {
  color: #fff;
  font-weight: 800;
}
html:has(.es-home) .sing-up-right h3 span,
html:has(.grid-view) .sing-up-right h3 span,
html:has(.courses-details) .sing-up-right h3 span,
html:has(.sign-up) .sing-up-right h3 span,
html:has(.wish-list-body) .sing-up-right h3 span,
html:has(.bread-crumb) .sing-up-right h3 span {
  color: var(--es-orange);
}
html:has(.es-home) .sing-up-right p,
html:has(.grid-view) .sing-up-right p,
html:has(.courses-details) .sing-up-right p,
html:has(.sign-up) .sing-up-right p,
html:has(.wish-list-body) .sing-up-right p,
html:has(.bread-crumb) .sing-up-right p,
html:has(.es-home) .sing-up-right h5,
html:has(.grid-view) .sing-up-right h5,
html:has(.courses-details) .sing-up-right h5,
html:has(.sign-up) .sing-up-right h5,
html:has(.wish-list-body) .sing-up-right h5,
html:has(.bread-crumb) .sing-up-right h5,
html:has(.es-home) .sing-up-right small,
html:has(.grid-view) .sing-up-right small,
html:has(.courses-details) .sing-up-right small,
html:has(.sign-up) .sing-up-right small,
html:has(.wish-list-body) .sing-up-right small,
html:has(.bread-crumb) .sing-up-right small {
  color: var(--es-text);
}
html:has(.es-home) .sing-up-right p,
html:has(.grid-view) .sing-up-right p,
html:has(.courses-details) .sing-up-right p,
html:has(.sign-up) .sing-up-right p,
html:has(.wish-list-body) .sing-up-right p,
html:has(.bread-crumb) .sing-up-right p {
  margin-bottom: 32px;
}
html:has(.es-home) .sing-up-right .form-control,
html:has(.grid-view) .sing-up-right .form-control,
html:has(.courses-details) .sing-up-right .form-control,
html:has(.sign-up) .sing-up-right .form-control,
html:has(.wish-list-body) .sing-up-right .form-control,
html:has(.bread-crumb) .sing-up-right .form-control {
  background-color: rgba(255,255,255,.06);
  border: 1px solid var(--es-line);
  color: #fff;
}
html:has(.es-home) .sing-up-right i,
html:has(.grid-view) .sing-up-right i,
html:has(.courses-details) .sing-up-right i,
html:has(.sign-up) .sing-up-right i,
html:has(.wish-list-body) .sing-up-right i,
html:has(.bread-crumb) .sing-up-right i {
  color: var(--es-orange);
}
html:has(.es-home) .sing-up-right .log-in .btn,
html:has(.grid-view) .sing-up-right .log-in .btn,
html:has(.courses-details) .sing-up-right .log-in .btn,
html:has(.sign-up) .sing-up-right .log-in .btn,
html:has(.wish-list-body) .sing-up-right .log-in .btn,
html:has(.bread-crumb) .sing-up-right .log-in .btn {
  background: var(--es-orange);
  border-color: var(--es-orange);
  color: var(--es-ink);
  font-weight: 800;
  width: 100%;
}
html:has(.es-home) .sing-up-right .another p a,
html:has(.grid-view) .sing-up-right .another p a,
html:has(.courses-details) .sing-up-right .another p a,
html:has(.sign-up) .sing-up-right .another p a,
html:has(.wish-list-body) .sing-up-right .another p a,
html:has(.bread-crumb) .sing-up-right .another p a,
html:has(.es-home) .sing-up-right small a,
html:has(.grid-view) .sing-up-right small a,
html:has(.courses-details) .sing-up-right small a,
html:has(.sign-up) .sing-up-right small a,
html:has(.wish-list-body) .sing-up-right small a,
html:has(.bread-crumb) .sing-up-right small a {
  color: var(--es-orange);
}
html:has(.es-home) .sing-up-right .another h5::before,
html:has(.grid-view) .sing-up-right .another h5::before,
html:has(.courses-details) .sing-up-right .another h5::before,
html:has(.sign-up) .sing-up-right .another h5::before,
html:has(.wish-list-body) .sing-up-right .another h5::before,
html:has(.bread-crumb) .sing-up-right .another h5::before,
html:has(.es-home) .sing-up-right .another h5::after,
html:has(.grid-view) .sing-up-right .another h5::after,
html:has(.courses-details) .sing-up-right .another h5::after,
html:has(.sign-up) .sing-up-right .another h5::after,
html:has(.wish-list-body) .sing-up-right .another h5::after,
html:has(.bread-crumb) .sing-up-right .another h5::after {
  background: var(--es-line);
}
html:has(.es-home) .sign-up img[src*="login-security"],
html:has(.grid-view) .sign-up img[src*="login-security"],
html:has(.courses-details) .sign-up img[src*="login-security"],
html:has(.sign-up) .sign-up img[src*="login-security"],
html:has(.wish-list-body) .sign-up img[src*="login-security"],
html:has(.bread-crumb) .sign-up img[src*="login-security"] {
  display: none;
}
html:has(.es-home) .common-card,
html:has(.grid-view) .common-card,
html:has(.courses-details) .common-card,
html:has(.sign-up) .common-card,
html:has(.wish-list-body) .common-card,
html:has(.bread-crumb) .common-card,
html:has(.es-home) .profile-ful-body,
html:has(.grid-view) .profile-ful-body,
html:has(.courses-details) .profile-ful-body,
html:has(.sign-up) .profile-ful-body,
html:has(.wish-list-body) .profile-ful-body,
html:has(.bread-crumb) .profile-ful-body,
html:has(.es-home) .profile-input-section,
html:has(.grid-view) .profile-input-section,
html:has(.courses-details) .profile-input-section,
html:has(.sign-up) .profile-input-section,
html:has(.wish-list-body) .profile-input-section,
html:has(.bread-crumb) .profile-input-section {
  background: var(--es-panel);
  border: 1px solid var(--es-line);
  border-radius: 14px;
  box-shadow: none;
}
html:has(.es-home) .profile-child .child-text h5,
html:has(.grid-view) .profile-child .child-text h5,
html:has(.courses-details) .profile-child .child-text h5,
html:has(.sign-up) .profile-child .child-text h5,
html:has(.wish-list-body) .profile-child .child-text h5,
html:has(.bread-crumb) .profile-child .child-text h5 {
  color: #fff;
}
html:has(.es-home) .profile-child .child-text p,
html:has(.grid-view) .profile-child .child-text p,
html:has(.courses-details) .profile-child .child-text p,
html:has(.sign-up) .profile-child .child-text p,
html:has(.wish-list-body) .profile-child .child-text p,
html:has(.bread-crumb) .profile-child .child-text p {
  color: var(--es-muted);
}
html:has(.es-home) .profile-bg,
html:has(.grid-view) .profile-bg,
html:has(.courses-details) .profile-bg,
html:has(.sign-up) .profile-bg,
html:has(.wish-list-body) .profile-bg,
html:has(.bread-crumb) .profile-bg {
  background: transparent;
}
html:has(.es-home) .reviews .reviews-border,
html:has(.grid-view) .reviews .reviews-border,
html:has(.courses-details) .reviews .reviews-border,
html:has(.sign-up) .reviews .reviews-border,
html:has(.wish-list-body) .reviews .reviews-border,
html:has(.bread-crumb) .reviews .reviews-border,
html:has(.es-home) .reviews-border,
html:has(.grid-view) .reviews-border,
html:has(.courses-details) .reviews-border,
html:has(.sign-up) .reviews-border,
html:has(.wish-list-body) .reviews-border,
html:has(.bread-crumb) .reviews-border {
  border-color: var(--es-line);
}
html:has(.es-home) .reviews-border h1,
html:has(.grid-view) .reviews-border h1,
html:has(.courses-details) .reviews-border h1,
html:has(.sign-up) .reviews-border h1,
html:has(.wish-list-body) .reviews-border h1,
html:has(.bread-crumb) .reviews-border h1 {
  color: var(--es-orange);
  font-size: 40px;
}
html:has(.es-home) .reviews-border .text,
html:has(.grid-view) .reviews-border .text,
html:has(.courses-details) .reviews-border .text,
html:has(.sign-up) .reviews-border .text,
html:has(.wish-list-body) .reviews-border .text,
html:has(.bread-crumb) .reviews-border .text,
html:has(.es-home) .reviews-border p,
html:has(.grid-view) .reviews-border p,
html:has(.courses-details) .reviews-border p,
html:has(.sign-up) .reviews-border p,
html:has(.wish-list-body) .reviews-border p,
html:has(.bread-crumb) .reviews-border p {
  color: var(--es-text);
}
html:has(.es-home) .reviews-border .icon i,
html:has(.grid-view) .reviews-border .icon i,
html:has(.courses-details) .reviews-border .icon i,
html:has(.sign-up) .reviews-border .icon i,
html:has(.wish-list-body) .reviews-border .icon i,
html:has(.bread-crumb) .reviews-border .icon i {
  color: rgba(255,255,255,.2);
}
html:has(.es-home) .reviews-border .icon i.gold,
html:has(.grid-view) .reviews-border .icon i.gold,
html:has(.courses-details) .reviews-border .icon i.gold,
html:has(.sign-up) .reviews-border .icon i.gold,
html:has(.wish-list-body) .reviews-border .icon i.gold,
html:has(.bread-crumb) .reviews-border .icon i.gold,
html:has(.es-home) .comment .rating .icon .gold,
html:has(.grid-view) .comment .rating .icon .gold,
html:has(.courses-details) .comment .rating .icon .gold,
html:has(.sign-up) .comment .rating .icon .gold,
html:has(.wish-list-body) .comment .rating .icon .gold,
html:has(.bread-crumb) .comment .rating .icon .gold {
  color: var(--es-orange);
}
html:has(.es-home) .comment .ritt,
html:has(.grid-view) .comment .ritt,
html:has(.courses-details) .comment .ritt,
html:has(.sign-up) .comment .ritt,
html:has(.wish-list-body) .comment .ritt,
html:has(.bread-crumb) .comment .ritt {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}
html:has(.es-home) .instructor .instructor-text h2,
html:has(.grid-view) .instructor .instructor-text h2,
html:has(.courses-details) .instructor .instructor-text h2,
html:has(.sign-up) .instructor .instructor-text h2,
html:has(.wish-list-body) .instructor .instructor-text h2,
html:has(.bread-crumb) .instructor .instructor-text h2 {
  color: #fff;
}
html:has(.es-home) .instructor .instructor-text p,
html:has(.grid-view) .instructor .instructor-text p,
html:has(.courses-details) .instructor .instructor-text p,
html:has(.sign-up) .instructor .instructor-text p,
html:has(.wish-list-body) .instructor .instructor-text p,
html:has(.bread-crumb) .instructor .instructor-text p,
html:has(.es-home) .instructor .instructor-text div,
html:has(.grid-view) .instructor .instructor-text div,
html:has(.courses-details) .instructor .instructor-text div,
html:has(.sign-up) .instructor .instructor-text div,
html:has(.wish-list-body) .instructor .instructor-text div,
html:has(.bread-crumb) .instructor .instructor-text div {
  color: var(--es-text);
}
html:has(.es-home) .instructor .instructor-img img,
html:has(.grid-view) .instructor .instructor-img img,
html:has(.courses-details) .instructor .instructor-img img,
html:has(.sign-up) .instructor .instructor-img img,
html:has(.wish-list-body) .instructor .instructor-img img,
html:has(.bread-crumb) .instructor .instructor-img img {
  border-radius: 14px;
}
html:has(.es-home) .instructor .instructor-icon i,
html:has(.grid-view) .instructor .instructor-icon i,
html:has(.courses-details) .instructor .instructor-icon i,
html:has(.sign-up) .instructor .instructor-icon i,
html:has(.wish-list-body) .instructor .instructor-icon i,
html:has(.bread-crumb) .instructor .instructor-icon i {
  color: var(--es-orange);
}

/* =====================================================================
   الشريط العلوي (تواصل + أزرار المعهد والمتجر)
   ===================================================================== */
.sub-header.es-topbar { padding: 8px 0; background: var(--es-ink); border-bottom: 1px solid var(--es-line); }
.es-topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.es-topbar__contact { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.es-topbar__contact a {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px;
  border-radius: 999px; background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px var(--es-line);
  color: var(--es-text) !important; font: 500 14px var(--es-font); text-decoration: none;
  transition: box-shadow .2s, background .2s;
}
.es-topbar__contact a:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px var(--es-orange); color: #fff !important; }
.es-topbar__contact i { color: var(--es-orange); font-size: 15px; }
.es-topbar__sites { display: flex; gap: 8px; }
.es-site-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 18px;
  border-radius: 10px; background: transparent; color: #fff !important;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4);
  font: 700 14px var(--es-font); text-decoration: none; white-space: nowrap;
  transition: background .2s, box-shadow .2s;
}
.es-site-btn:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px var(--es-orange); }
.es-site-btn--main { background: var(--es-orange); color: var(--es-ink) !important; box-shadow: none; }
.es-site-btn--main:hover { background: var(--es-orange-press); box-shadow: none; }
.es-site-btn i { font-size: 15px; }
@media (max-width: 767px) {
  .es-topbar__contact { display: none; }
  .es-topbar__sites { width: 100%; }
  .es-site-btn { flex: 1; justify-content: center; padding: 0 8px; font-size: 13px; }
}

/* ---------- الشعار: أكبر ---------- */
.menubar .logo img { height: 60px !important; width: auto !important; }
@media (max-width: 991px) { .menubar .logo img { height: 50px !important; } }
.es-footer__brand img { height: 64px; }

/* =====================================================================
   قائمة الجوال الجانبية
   ===================================================================== */
.es-menu .offcanvas { background: var(--es-navy) !important; color: var(--es-text); width: min(320px, 86vw); border-inline-end: 1px solid var(--es-line); }
.es-menu__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--es-line); }
.es-menu__logo img { height: 48px; width: auto; }
.es-menu .btn-close { filter: invert(1); opacity: .8; }
.es-menu__body { padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.es-menu__auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.es-menu__cta, .es-menu__ghost { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 10px; font: 700 14px var(--es-font); text-decoration: none; }
.es-menu__cta { background: var(--es-orange); color: var(--es-ink) !important; }
.es-menu__ghost { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); color: #fff !important; }
.es-menu__user { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--es-panel); text-decoration: none; }
.es-menu__user img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.es-menu__user strong { display: block; color: #fff; font-size: 15px; }
.es-menu__user small { color: var(--es-muted); font-size: 12.5px; }
.es-menu__nav { display: flex; flex-direction: column; gap: 4px; }
.es-menu__link {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 12px;
  border: 0; border-radius: 10px; background: transparent; color: var(--es-text) !important;
  font: 600 16px var(--es-font); text-align: start; text-decoration: none;
}
.es-menu__link:hover, .es-menu__link:focus { background: rgba(255, 255, 255, .06); color: #fff !important; }
.es-menu__link > i:first-child { width: 22px; text-align: center; color: var(--es-orange); }
.es-menu__chev { margin-inline-start: auto; font-size: 12px; color: var(--es-muted); transition: transform .2s; }
.es-menu__toggle:not(.collapsed) .es-menu__chev { transform: rotate(180deg); }
.es-menu__sub { margin: 2px 12px 6px; padding-inline-start: 12px; border-inline-start: 2px solid var(--es-line); }
.es-menu__sub a { display: flex; justify-content: space-between; padding: 9px 10px; color: var(--es-text) !important; font-size: 15px; text-decoration: none; border-radius: 8px; }
.es-menu__sub a:hover { background: rgba(255, 255, 255, .06); }
.es-menu__sub a span { color: var(--es-muted); font-size: 13px; }
.es-menu__badge { margin-inline-start: auto; min-width: 24px; padding: 1px 8px; border-radius: 999px; background: var(--es-orange); color: var(--es-ink); font-size: 13px; font-weight: 800; text-align: center; }
.es-menu__sites { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 16px; border-top: 1px solid var(--es-line); }
.es-menu__sites a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); color: var(--es-text) !important; font: 500 13.5px var(--es-font); text-decoration: none; }
.es-menu__sites a:hover { background: rgba(255, 255, 255, .1); }
.es-menu__sites i { color: var(--es-orange); }
.es-menu__logout { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--es-muted) !important; text-decoration: none; font-size: 14.5px; }
.es-menu__logout:hover { color: #fff !important; }

/* =====================================================================
   reCAPTCHA (داكن ومتمركز ولا يخرج من البطاقة)
   ===================================================================== */
.es-captcha { display: block; width: 100%; overflow: hidden; margin: 4px 0 20px; min-height: 78px; }
.es-captcha .g-recaptcha { width: 304px; height: 78px; margin-inline: calc((100% - 304px) / 2); transform-origin: center top; }
@media (max-width: 420px) {
  .es-captcha { min-height: 70px; }
  .es-captcha .g-recaptcha { transform: scale(.9); }
}
.sing-up-right { padding: 36px; }
@media (max-width: 575px) { .sing-up-right { padding: 24px 20px; } }

/* =====================================================================
   وصف الدورات (أوضح) + شارة التصنيفات
   ===================================================================== */
html .courses-card .courses-text p.ellipsis-line-2,
html .courses-card .courses-text .ellipsis-line-2 { color: #e8edf7 !important; opacity: 1 !important; font-size: 14.5px !important; }
.es-chips small { color: var(--es-muted); font-size: 12.5px; margin-inline-start: 4px; }

/* =====================================================================
   تصحيحات من لقطة صفحة الدورات (سطح المكتب)
   ===================================================================== */

/* حقل البحث المضمّن في الهيدر (كان صندوقًا أبيض) */
.menubar .header-search { background: rgba(255, 255, 255, .08) !important; border: 1px solid var(--es-line) !important; border-radius: 10px; box-shadow: none !important; min-width: 220px; }
.menubar .search-container { background: transparent !important; }
.menubar .search-input,
.menubar .search-input-floating { background: transparent !important; color: #fff !important; border: 0 !important; box-shadow: none !important; }
.menubar .search-input::placeholder,
.menubar .search-input-floating::placeholder { color: var(--es-muted); opacity: 1; }
.menubar .header-search-icon { color: var(--es-muted) !important; background: transparent; }

/* شارة المستوى (مبتدئ / متوسط / متقدم): برتقالية بدل الوردية */
.courses-card .courses-card-body .courses-card-image .courses-card-image-text {
  background-color: var(--es-orange);
}
.courses-card .courses-card-body .courses-card-image .courses-card-image-text::after {
  background-color: var(--es-orange);
}
.courses-card .courses-card-body .courses-card-image .courses-card-image-text h3 {
  color: var(--es-ink);
  font-weight: 800;
}

/* أسهم breadcrumb: القالب يدوّر أيقونات chevron 180° في RTL، فنثبّت الاتجاه الصحيح (لليسار) */
.bread-crumb .breadcrumb .fa-chevron-left,
.bread-crumb .breadcrumb .fa-chevron-right { transform: none !important; }

/* =====================================================================
   السلة + دوراتي + المشتريات + حالات الفراغ
   (صفحة السلة تحتوي breadcrumb فهي تتبع الثيم الداكن تلقائيًا)
   ===================================================================== */
html:has(.es-home) .table,
html:has(.grid-view) .table,
html:has(.courses-details) .table,
html:has(.sign-up) .table,
html:has(.wish-list-body) .table,
html:has(.bread-crumb) .table,
html:has(.cart-page) .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--es-text);
  --bs-table-border-color: var(--es-line);
  --bs-table-striped-bg: rgba(255,255,255,.03);
  --bs-table-hover-bg: rgba(255,255,255,.05);
  color: var(--es-text);
  border-color: var(--es-line);
}
html:has(.es-home) .table > :not(caption) > * > *,
html:has(.grid-view) .table > :not(caption) > * > *,
html:has(.courses-details) .table > :not(caption) > * > *,
html:has(.sign-up) .table > :not(caption) > * > *,
html:has(.wish-list-body) .table > :not(caption) > * > *,
html:has(.bread-crumb) .table > :not(caption) > * > *,
html:has(.cart-page) .table > :not(caption) > * > * {
  background-color: transparent;
  color: var(--es-text);
  border-bottom-color: var(--es-line);
}
html:has(.es-home) .table th h6,
html:has(.grid-view) .table th h6,
html:has(.courses-details) .table th h6,
html:has(.sign-up) .table th h6,
html:has(.wish-list-body) .table th h6,
html:has(.bread-crumb) .table th h6,
html:has(.cart-page) .table th h6,
html:has(.es-home) .table td h4,
html:has(.grid-view) .table td h4,
html:has(.courses-details) .table td h4,
html:has(.sign-up) .table td h4,
html:has(.wish-list-body) .table td h4,
html:has(.bread-crumb) .table td h4,
html:has(.cart-page) .table td h4,
html:has(.es-home) .table td h5,
html:has(.grid-view) .table td h5,
html:has(.courses-details) .table td h5,
html:has(.sign-up) .table td h5,
html:has(.wish-list-body) .table td h5,
html:has(.bread-crumb) .table td h5,
html:has(.cart-page) .table td h5 {
  color: var(--es-text);
}
html:has(.es-home) .table td h4,
html:has(.grid-view) .table td h4,
html:has(.courses-details) .table td h4,
html:has(.sign-up) .table td h4,
html:has(.wish-list-body) .table td h4,
html:has(.bread-crumb) .table td h4,
html:has(.cart-page) .table td h4 {
  color: var(--es-orange);
  font-weight: 800;
}
html:has(.es-home) .cart-total .btn-primary,
html:has(.grid-view) .cart-total .btn-primary,
html:has(.courses-details) .cart-total .btn-primary,
html:has(.sign-up) .cart-total .btn-primary,
html:has(.wish-list-body) .cart-total .btn-primary,
html:has(.bread-crumb) .cart-total .btn-primary,
html:has(.cart-page) .cart-total .btn-primary,
html:has(.es-home) .cart-total-btn .btn-primary,
html:has(.grid-view) .cart-total-btn .btn-primary,
html:has(.courses-details) .cart-total-btn .btn-primary,
html:has(.sign-up) .cart-total-btn .btn-primary,
html:has(.wish-list-body) .cart-total-btn .btn-primary,
html:has(.bread-crumb) .cart-total-btn .btn-primary,
html:has(.cart-page) .cart-total-btn .btn-primary {
  background: var(--es-orange);
  border-color: var(--es-orange);
  color: var(--es-ink) !important;
  font-weight: 800;
}
html:has(.es-home) .cart-total h4,
html:has(.grid-view) .cart-total h4,
html:has(.courses-details) .cart-total h4,
html:has(.sign-up) .cart-total h4,
html:has(.wish-list-body) .cart-total h4,
html:has(.bread-crumb) .cart-total h4,
html:has(.cart-page) .cart-total h4,
html:has(.es-home) .cart-total h6,
html:has(.grid-view) .cart-total h6,
html:has(.courses-details) .cart-total h6,
html:has(.sign-up) .cart-total h6,
html:has(.wish-list-body) .cart-total h6,
html:has(.bread-crumb) .cart-total h6,
html:has(.cart-page) .cart-total h6,
html:has(.es-home) .cart-heading-text h3,
html:has(.grid-view) .cart-heading-text h3,
html:has(.courses-details) .cart-heading-text h3,
html:has(.sign-up) .cart-heading-text h3,
html:has(.wish-list-body) .cart-heading-text h3,
html:has(.bread-crumb) .cart-heading-text h3,
html:has(.cart-page) .cart-heading-text h3 {
  color: #fff;
}
html:has(.es-home) .purchase-btn a,
html:has(.grid-view) .purchase-btn a,
html:has(.courses-details) .purchase-btn a,
html:has(.sign-up) .purchase-btn a,
html:has(.wish-list-body) .purchase-btn a,
html:has(.bread-crumb) .purchase-btn a,
html:has(.cart-page) .purchase-btn a,
html:has(.es-home) .purchase-btn,
html:has(.grid-view) .purchase-btn,
html:has(.courses-details) .purchase-btn,
html:has(.sign-up) .purchase-btn,
html:has(.wish-list-body) .purchase-btn,
html:has(.bread-crumb) .purchase-btn,
html:has(.cart-page) .purchase-btn {
  color: var(--es-ink) !important;
}
html:has(.es-home) .alert-success,
html:has(.grid-view) .alert-success,
html:has(.courses-details) .alert-success,
html:has(.sign-up) .alert-success,
html:has(.wish-list-body) .alert-success,
html:has(.bread-crumb) .alert-success,
html:has(.cart-page) .alert-success {
  background: rgba(46, 160, 100, .15);
  border-color: rgba(46, 160, 100, .4);
  color: #9be7bb;
}
html:has(.es-home) .alert-danger,
html:has(.grid-view) .alert-danger,
html:has(.courses-details) .alert-danger,
html:has(.sign-up) .alert-danger,
html:has(.wish-list-body) .alert-danger,
html:has(.bread-crumb) .alert-danger,
html:has(.cart-page) .alert-danger {
  background: rgba(220, 70, 70, .15);
  border-color: rgba(220, 70, 70, .4);
  color: #ffb4b4;
}

/* حالة الفراغ (سلة فارغة / لا دورات / لا مفضلة) */
.es-empty { width: 100%; text-align: center; padding: 56px 24px; border-radius: 16px; background: var(--es-panel); box-shadow: inset 0 0 0 1px var(--es-line); color: var(--es-text); }
.es-empty > i { font-size: 40px; color: var(--es-orange); margin-bottom: 14px; }
.es-empty h3 { color: #fff; font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.es-empty p { color: var(--es-muted); margin: 0 0 22px; }

/* =====================================================================
   بانر الدورات المتحرك (السليدر) في الواجهة الرئيسية
   ===================================================================== */
.es-hero-banner {
  position: relative;
  background: var(--es-panel);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--es-line);
}

.es-banner-slide {
  display: none;
  text-decoration: none;
  color: var(--es-text);
}
.es-banner-slide.active {
  display: flex;
}

/* تنسيق سطح المكتب (Desktop) - أفقي جنباً إلى جنب */
@media (min-width: 992px) {
  .es-hero-banner {
    min-height: 250px;
    height: 100%;
  }
  .es-banner-slide {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 16px;
    height: 100%;
  }
  .es-banner-img {
    width: 45%;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    flex: none;
    background: var(--es-ink);
  }
  .es-banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .es-banner-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .es-banner-badge {
    display: inline-block;
    background: var(--es-orange);
    color: var(--es-ink);
    font-weight: 700;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 6px;
    width: fit-content;
    margin-bottom: 6px;
  }
}

/* تنسيق الجوال (Mobile) - عمودي بالكامل */
@media (max-width: 991px) {
  .es-banner-slide {
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 16px 0;
  }
  .es-banner-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--es-ink);
  }
  .es-banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .es-banner-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: var(--es-orange);
    color: var(--es-ink);
    font-weight: 800;
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }
  .es-banner-info {
    padding: 14px 16px 8px;
    display: flex;
    flex-direction: column;
  }
  .es-banner-btn {
    width: 100%;
    padding: 10px;
    font-size: 14px;
  }
}

/* العناصر المشتركة */
.es-banner-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.es-banner-desc {
  color: var(--es-muted);
  font-size: 12.5px;
  margin: 0 0 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.es-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 0;
  font: 700 13px var(--es-font);
  background: var(--es-orange);
  color: var(--es-ink);
  text-decoration: none;
  transition: background 0.2s;
}
.es-banner-btn:hover {
  background: var(--es-orange-press);
  color: var(--es-ink);
}

.es-banner-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.es-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.es-banner-dot.active {
  background: var(--es-orange);
  width: 20px;
  border-radius: 4px;
}

.es-top__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 991px) {
  .es-top__grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .es-banner-desktop { display: none; }
  .es-banner-mobile { display: block; margin-top: 16px; margin-bottom: 12px; }
}
@media (min-width: 992px) {
  .es-banner-mobile { display: none; }
}