/* سكشن الدورات — سكة يسار، بطاقة كبيرة، بطاقتان */

.nx-courses {
  --nx-navy: #163A7A;
  --nx-navy-soft: #2f6ec0;
  position: relative;
  overflow: clip;
  background: #f7fafc;
  padding: 2.15rem 0 2.15rem;
}

.nx-courses-inner {
  width: min(1240px, calc(100% - 2.2rem));
  margin: 0 auto;
}

.nx-courses-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto 1.5rem;
}

.nx-courses-head-top {
  display: flex;
  justify-content: center;
}

.nx-courses-aside,
.nx-courses-chips,
.nx-courses-mob,
.nx-courses-more,
.nx-courses-end,
.nx-courses-all-ico,
.nx-courses-lead--mob,
.nx-courses-trust,
.nx-tb-m {
  display: none;
}

.nx-courses-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  color: #7a8ea6;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.nx-courses-kicker span,
.nx-courses-kicker::before {
  width: 1.8rem;
  height: 1.5px;
  background: #E2B33A;
  flex: 0 0 auto;
  content: "";
}

.nx-courses-title {
  margin: 0;
  color: var(--nx-navy);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.028em;
  text-align: center;
}

.nx-courses-title-a,
.nx-courses-title-b {
  display: block;
}

.nx-courses-title-a {
  color: var(--nx-navy);
  font-size: clamp(1.55rem, 2.3vw, 2.05rem);
}

.nx-courses-title-b {
  color: var(--nx-navy-soft);
  font-size: clamp(1.42rem, 2.1vw, 1.88rem);
}

.nx-tb-m { display: none; }

.nx-courses-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nx-courses-lead {
  margin: 0.55rem auto 0;
  max-width: 28rem;
  color: #5d738c;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.75;
}

.nx-courses-board {
  display: grid;
  direction: ltr;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  gap: 1.05rem;
  align-items: stretch;
}

.nx-courses-rail {
  direction: rtl;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.2rem 0 0;
}

.nx-courses-rail-list {
  position: relative;
  display: flex;
  flex-direction: column;
}

.nx-courses-rail-list::before {
  content: "";
  position: absolute;
  top: 0.85rem;
  bottom: 0.85rem;
  inset-inline-start: 0.34rem;
  width: 1.5px;
  background: #d7e4f0;
}

.nx-courses-rail-list a {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9rem 1fr;
  gap: 0.55rem;
  align-items: start;
  padding: 0.55rem 0;
  color: #90a4b8;
  text-decoration: none;
  line-height: 1.25;
  transition: color 0.22s ease;
}

.nx-courses-rail-list b {
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 0.12rem;
  border-radius: 50%;
  border: 1.5px solid #c9d7e6;
  background: #fff;
  box-shadow: 0 0 0 4px #f7fafc;
  transition: background 0.22s ease, border-color 0.22s ease;
}

.nx-courses-rail-n {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #9aafc4;
  transition: color 0.22s ease;
}

.nx-courses-rail-list small {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: inherit;
}

.nx-courses-rail-list a.is-on,
.nx-courses-rail-list a:hover {
  color: var(--nx-navy);
}

.nx-courses-rail-list a.is-on .nx-courses-rail-n,
.nx-courses-rail-list a:hover .nx-courses-rail-n {
  color: var(--nx-navy);
}

.nx-courses-rail-list a.is-on b,
.nx-courses-rail-list a:hover b {
  background: var(--nx-navy);
  border-color: var(--nx-navy);
}

.nx-courses-switch {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.nx-courses-switch label {
  width: 2.05rem;
  height: 2.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.4px solid #d5e2ef;
  background: #fff;
  color: #5d738c;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 6px 14px -10px rgb(16 44 94 / .35);
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.nx-courses-switch label:hover {
  transform: translateY(-2px);
}

.nx-courses-board:has(#nx-cpage-1:checked) .nx-courses-switch label:last-child,
.nx-courses-board:has(#nx-cpage-2:checked) .nx-courses-switch label:first-child {
  background: var(--nx-navy);
  border-color: var(--nx-navy);
  color: #fff;
}

.nx-courses-switch svg {
  width: 0.82rem;
  height: 0.82rem;
}

.nx-cpage {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nx-courses-slider {
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.nx-courses-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.5s cubic-bezier(.22, .7, .3, 1);
}

.nx-courses-page {
  flex: 0 0 100%;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem;
  align-items: stretch;
}

.nx-mcard {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 16.6rem;
  height: 100%;
  padding: 0;
  border: 1px solid #d5e0ee;
  border-radius: 0.45rem;
  background: #fff;
  color: var(--nx-navy);
  text-decoration: none;
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  direction: rtl;
  box-shadow: none;
  transition: border-color 0.2s ease;
}

.nx-mcard:hover { color: var(--nx-navy); border-color: #b9cce2; }

.nx-courses-page .nx-mcard:hover {
  transform: none;
  box-shadow: none;
}

.nx-mcard-rail {
  background: var(--nx-navy);
}

.nx-mcard-copy {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  direction: rtl;
  padding: 0.9rem 0.95rem 0.85rem;
  background: transparent;
}

.nx-mcard-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.nx-mcard-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.32rem;
  min-height: 1.35rem;
  padding: 0 0.45rem;
  border: 1px solid #d5e0ee;
  border-radius: 0.2rem;
  background: #f3f8fd;
  color: var(--nx-navy);
  font-size: 0.66rem;
  font-weight: 800;
}

.nx-mcard-badge--nelc {
  border-color: #ead7a2;
  background: #fff8e8;
  color: #8a6a18;
}

.nx-mcard-badge svg {
  width: 0.88rem;
  height: 0.88rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nx-mcard h3 {
  margin: 0.55rem 0 0;
  width: 100%;
  color: var(--nx-navy);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nx-mcard p {
  margin: 0.35rem 0 0;
  width: 100%;
  color: #5b6f88;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.7;
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nx-mcard-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.8rem;
  width: 100%;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  direction: rtl;
}

.nx-mcard-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  color: #5b6f88;
  font-size: 0.72rem;
  font-weight: 700;
  direction: rtl;
}

.nx-mcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.8rem;
}

.nx-mcard-foot strong {
  color: var(--nx-navy);
  font-size: 0.88rem;
}

.nx-mcard-go {
  display: inline-flex;
  align-items: center;
  align-self: auto;
  direction: rtl;
  gap: 0.3rem;
  margin-top: 0;
  padding: 0 0.7rem;
  min-height: 1.9rem;
  border-radius: 0.3rem;
  background: var(--nx-navy);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: none;
}

.nx-mcard-art {
  display: none;
}

.nx-mcard-stage {
  position: absolute;
  z-index: 2;
  inset: 7% 5% 24% 18%;
}

.nx-plate {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.05rem;
}

.nx-plate-main {
  z-index: 3;
  width: 6.15rem;
  height: 6.25rem;
  top: 26%;
  left: 14%;
  background: linear-gradient(165deg, rgba(255,255,255,.94), rgba(214, 232, 248, .58));
  border: 1.5px solid rgba(255,255,255,.9);
  transform: rotate(-8deg);
  box-shadow:
    0 14px 22px -14px rgb(22 58 122 / .38),
    inset 0 1px 0 rgba(255,255,255,.85);
}

.nx-plate-main img {
  width: 78%;
  height: auto;
  object-fit: contain;
}

.nx-plate-a {
  z-index: 2;
  width: 3.85rem;
  height: 3.95rem;
  top: 4%;
  right: 2%;
  background: linear-gradient(165deg, #6aa8ea, #1e5fbc);
  border: 1.4px solid rgba(255,255,255,.35);
  transform: rotate(13deg);
  box-shadow: 0 12px 18px -12px rgb(22 58 122 / .42);
}

.nx-plate-b {
  z-index: 4;
  width: 3.7rem;
  height: 3.8rem;
  top: 58%;
  left: 6%;
  background: linear-gradient(165deg, #5aa0ea, #1d58a8);
  border: 1.4px solid rgba(255,255,255,.35);
  transform: rotate(-7deg);
  box-shadow: 0 12px 18px -12px rgb(22 58 122 / .42);
}

.nx-plate svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nx-mcard--v2 .nx-mcard-art {
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.7), transparent 42%),
    linear-gradient(165deg, #e4f0fb 0%, #c5ddf4 50%, #8ebce8 100%);
}
.nx-mcard--v2 .nx-plate-main {
  top: 8%;
  left: 20%;
  width: 6.7rem;
  height: 6.5rem;
  transform: rotate(8deg);
}
.nx-mcard--v2 .nx-plate-a {
  top: 54%;
  right: 6%;
  left: auto;
  width: 3.55rem;
  height: 3.55rem;
  background: linear-gradient(165deg, rgba(255,255,255,.94), rgba(220, 236, 250, .7));
  transform: rotate(-14deg);
}
.nx-mcard--v2 .nx-plate-a svg { stroke: var(--nx-navy); }
.nx-mcard--v2 .nx-plate-b {
  top: 18%;
  left: 2%;
  right: auto;
  background: linear-gradient(165deg, #2f6ec0, #163A7A);
  transform: rotate(18deg);
}

.nx-mcard--v3 .nx-mcard-art {
  background:
    radial-gradient(circle at 86% 72%, rgba(255,255,255,.55), transparent 46%),
    linear-gradient(200deg, #dbeaf8 0%, #b7d4f0 48%, #7eafdc 100%);
}
.nx-mcard--v3 .nx-plate-main {
  top: 36%;
  left: 8%;
  width: 5.7rem;
  height: 5.8rem;
  transform: rotate(-16deg);
}
.nx-mcard--v3 .nx-plate-a {
  top: 6%;
  right: 8%;
  left: auto;
  background: linear-gradient(165deg, #7eb3ea, #245ea8);
  transform: rotate(8deg);
}
.nx-mcard--v3 .nx-plate-b {
  top: 38%;
  right: 2%;
  left: auto;
  background: linear-gradient(165deg, #163A7A, #1d58a8);
  transform: rotate(4deg);
}

.nx-mcard--v4 .nx-mcard-art {
  background:
    radial-gradient(circle at 50% 10%, rgba(255,255,255,.8), transparent 48%),
    linear-gradient(150deg, #f3f8fd 0%, #cfe3f6 55%, #9cc6eb 100%);
}
.nx-mcard--v4 .nx-plate-main {
  top: 30%;
  left: 22%;
  transform: rotate(-4deg);
}
.nx-mcard--v4 .nx-plate-a {
  top: 2%;
  right: 10%;
  width: 3.4rem;
  height: 3.4rem;
  background: linear-gradient(165deg, #163A7A, #2f6ec0);
  transform: rotate(20deg);
}
.nx-mcard--v4 .nx-plate-b {
  top: 8%;
  left: 6%;
  background: linear-gradient(165deg, rgba(255,255,255,.92), rgba(210, 230, 248, .65));
  transform: rotate(-18deg);
}
.nx-mcard--v4 .nx-plate-b svg { stroke: var(--nx-navy); }

.nx-mcard--v5 .nx-mcard-art {
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,.66), transparent 44%),
    linear-gradient(175deg, #e8f3fc 0%, #a9cdf0 100%);
}
.nx-mcard--v5 .nx-plate-main {
  top: 18%;
  left: 10%;
  width: 6.5rem;
  height: 6.4rem;
  transform: rotate(12deg);
}
.nx-mcard--v5 .nx-plate-a {
  top: 6%;
  right: 0;
  background: linear-gradient(165deg, #4f97dc, #1a4f9a);
  transform: rotate(-8deg);
}
.nx-mcard--v5 .nx-plate-b {
  top: 52%;
  left: 28%;
  background: linear-gradient(165deg, #2f6ec0, #0f2f66);
  transform: rotate(10deg);
}

.nx-mcard--v6 .nx-mcard-art {
  background:
    radial-gradient(circle at 18% 80%, rgba(255,255,255,.6), transparent 42%),
    linear-gradient(210deg, #d7e8f7 0%, #9fc8ee 52%, #5e98d0 100%);
}
.nx-mcard--v6 .nx-plate-main {
  top: 20%;
  left: 28%;
  width: 6.3rem;
  height: 6.2rem;
  transform: rotate(-11deg);
}
.nx-mcard--v6 .nx-plate-a {
  top: 48%;
  left: 2%;
  right: auto;
  background: linear-gradient(165deg, rgba(255,255,255,.95), rgba(226, 179, 58, .18));
  transform: rotate(9deg);
}
.nx-mcard--v6 .nx-plate-a svg { stroke: var(--nx-navy); }
.nx-mcard--v6 .nx-plate-b {
  top: 4%;
  right: 4%;
  left: auto;
  background: linear-gradient(165deg, #1e5fbc, #163A7A);
  transform: rotate(-20deg);
}

.nx-mcard-slogan {
  position: absolute;
  z-index: 6;
  right: 0.55rem;
  bottom: 1.7rem;
  color: var(--nx-navy);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: right;
  direction: rtl;
}

.nx-mcard-n {
  position: absolute;
  z-index: 6;
  left: 30%;
  bottom: 0.55rem;
  color: #6d829a;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nx-mcard-n::before {
  content: '';
  display: inline-block;
  width: 0.7rem;
  height: 1.5px;
  margin-right: 0.28rem;
  vertical-align: middle;
  background: #8aa3bb;
}

#nx-cpage-2:checked ~ .nx-courses-track {
  transform: translateX(-100%);
}

.nx-course-featured {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 17.6rem;
  padding: 1.45rem 1.45rem 1.25rem;
  padding-inline-end: 42%;
  border-radius: 1.55rem;
  background: linear-gradient(150deg, #3f7fd4 0%, #1f58ad 50%, #163A7A 100%);
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  direction: rtl;
  text-align: start;
  box-shadow: 0 14px 28px -22px rgb(16 44 94 / .4);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.nx-course-featured:hover {
  color: #fff;
  transform: translateY(-10px);
  box-shadow: 0 26px 42px -16px rgb(16 44 94 / .5);
}

.nx-course-glass {
  position: absolute;
  left: 0;
  right: auto;
  width: 38%;
  top: 26%;
  bottom: 18%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.48;
}

.nx-course-glass i {
  position: absolute;
  border-radius: 1.1rem;
  background: linear-gradient(155deg, rgba(255,255,255,0.38) 0%, rgba(170, 210, 250, 0.12) 100%);
  border: 1.4px solid rgba(255,255,255,0.28);
  box-shadow: 0 16px 28px -18px rgb(8 30 70 / .4);
}

.nx-course-glass i:first-child {
  width: 58%;
  height: 78%;
  left: 14%;
  top: 0;
  transform: rotate(-18deg);
}

.nx-course-glass i:last-child {
  width: 58%;
  height: 78%;
  left: 36%;
  top: 14%;
  transform: rotate(-8deg);
  transition: transform 0.4s ease;
}

.nx-course-featured:hover .nx-course-glass i:last-child {
  transform: rotate(-5deg) translate(-6px, -4px);
}

.nx-course-featured.has-cover .nx-course-cover {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 46%;
  object-fit: cover;
  opacity: 0.16;
  pointer-events: none;
}

.nx-course-featured > *:not(.nx-course-glass):not(.nx-course-cover) {
  position: relative;
  z-index: 1;
}

.nx-course-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.nx-course-featured h3 {
  margin: 1.35rem 0 0.5rem;
  max-width: none;
  color: #fff;
  font-size: clamp(1.28rem, 2vw, 1.68rem);
  font-weight: 800;
  line-height: 1.35;
}

.nx-course-featured p {
  margin: 0;
  max-width: none;
  color: rgba(255,255,255,0.86);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.75;
}

.nx-course-go {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.2rem;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
}

.nx-course-go i {
  width: 1.7rem;
  height: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.85);
  transition: transform 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.nx-course-featured:hover .nx-course-go i {
  background: #fff;
  color: var(--nx-navy);
  transform: translateX(-3px);
}

.nx-course-go svg {
  width: 0.78rem;
  height: 0.78rem;
}

.nx-course-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 17.6rem;
  padding: 1.25rem 1.2rem 1.15rem;
  border-radius: 1.45rem;
  background: #fff;
  border: 1px solid #e8eef5;
  box-shadow: 0 8px 22px -18px rgb(16 44 94 / .22);
  color: var(--nx-navy);
  text-decoration: none;
  direction: rtl;
  text-align: start;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.nx-course-card:hover {
  color: var(--nx-navy);
  transform: translateY(-10px);
  border-color: #d5e3f2;
  box-shadow: 0 22px 38px -16px rgb(16 44 94 / .32);
}

.nx-course-card-top {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.65rem;
}

.nx-course-card-n {
  color: #8aa0b8;
  font-size: 0.86rem;
  font-weight: 800;
}

.nx-course-card-ic {
  width: 2.55rem;
  height: 2.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  background: #eef4fb;
  color: #6f8eaf;
  transition: background 0.28s ease, color 0.28s ease;
}

.nx-course-card:hover .nx-course-card-ic {
  background: var(--nx-navy);
  color: #fff;
}

.nx-course-card-ic svg { width: 1.25rem; height: 1.25rem; }

.nx-course-card h3 {
  margin: 0;
  color: var(--nx-navy);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.45;
}

.nx-course-card p {
  margin: 0.45rem 0 0;
  color: #6e84a0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.75;
}

.nx-card-go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.2rem;
  color: var(--nx-navy);
  font-size: 0.82rem;
  font-weight: 700;
}

.nx-card-go svg {
  width: 0.9rem;
  height: 0.9rem;
  transition: transform 0.28s ease;
}

.nx-course-card:hover .nx-card-go svg {
  transform: translateX(-4px);
}

.nx-courses-page:not(:has(.nx-course-card)) .nx-course-featured {
  grid-column: 1 / -1;
}

.nx-courses-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: #7a8ea6;
  font-weight: 600;
}

.nx-courses-foot {
  display: flex;
  justify-content: center;
  margin-top: 1.45rem;
}

.nx-courses-all {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  width: max-content;
  min-height: 1.95rem;
  padding: 0 0.82rem;
  border: 1.4px solid var(--nx-navy);
  border-radius: 7px;
  background: #fff;
  color: var(--nx-navy) !important;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.22s ease, color 0.22s ease;
}

.nx-courses-all:hover {
  background: var(--nx-navy);
  color: #fff !important;
}

.nx-courses-all-arrow {
  width: 0.7rem;
  height: 1.4px;
  background: currentColor;
  position: relative;
}

.nx-courses-all-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.32rem;
  height: 0.32rem;
  border-inline-start: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

@media (max-width: 1080px) {
  .nx-courses-board {
    grid-template-columns: 5.2rem minmax(0, 1fr);
    gap: 0.85rem;
  }
  .nx-courses-page {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (max-width: 860px) {
  .nx-courses {
    overflow: hidden;
  }
  .nx-courses-inner {
    width: calc(100% - 1.5rem);
    max-width: 100%;
  }
  .nx-courses-mob {
    display: block;
    position: relative;
    direction: rtl;
    overflow: hidden;
    max-width: 100%;
  }
  .nx-courses-head {
    align-items: center;
    text-align: center;
    margin: 0 0 1.15rem;
  }
  .nx-courses-kicker {
    margin: 0 0 0.7rem;
    font-size: 0.78rem;
  }
  .nx-courses-title-a { font-size: 1.42rem; }
  .nx-courses-title-b { font-size: 1.32rem; }
  .nx-tb-d { display: none !important; }
  .nx-tb-m { display: block !important; }
  .nx-courses-lead--desk { display: none; }
  .nx-courses-lead--mob {
    display: block;
    margin: 0.75rem auto 0;
    max-width: 21rem;
    color: #7d93a8;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.9;
    text-align: center;
  }
  .nx-courses-board { display: none; }
  .nx-courses-mob-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    direction: rtl;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    touch-action: pan-x;
  }
  .nx-courses-mob-viewport::-webkit-scrollbar { display: none; }
  .nx-courses-mob-track {
    display: flex;
    direction: rtl;
    gap: 0.7rem;
    width: max-content;
  }
  .nx-mcard {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    flex: 0 0 86%;
    min-height: 15.6rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 0;
    border: 1px solid #d5e0ee;
    border-radius: 0.45rem;
    background: #fff;
    color: var(--nx-navy);
    text-decoration: none;
    display: grid;
    grid-template-columns: 4px minmax(0, 1fr);
    direction: rtl;
    box-shadow: none;
  }
  .nx-mcard:hover { color: var(--nx-navy); border-color: #b9cce2; }
  .nx-mcard-copy {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    direction: rtl;
    padding: 0.9rem 0.95rem 0.85rem;
    background: transparent;
  }
  .nx-mcard-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.32rem;
    min-height: 1.35rem;
    padding: 0 0.45rem;
    border: 1px solid #d5e0ee;
    border-radius: 0.2rem;
    background: #f3f8fd;
    color: var(--nx-navy);
    font-size: 0.66rem;
    font-weight: 800;
  }
  .nx-mcard h3 {
    margin: 0.55rem 0 0;
    width: 100%;
    color: var(--nx-navy);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: right;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .nx-mcard p {
    margin: 0.35rem 0 0;
    width: 100%;
    color: #5b6f88;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.7;
    text-align: right;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .nx-mcard-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.8rem;
    width: 100%;
    margin: 0.7rem 0 0;
    padding: 0;
    list-style: none;
    direction: rtl;
  }
  .nx-mcard-meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    color: #5b6f88;
    font-size: 0.72rem;
    font-weight: 700;
    direction: rtl;
  }
  .nx-mcard-go {
    display: inline-flex;
    align-items: center;
    align-self: auto;
    direction: rtl;
    gap: 0.3rem;
    margin-top: 0;
    padding: 0 0.7rem;
    min-height: 1.9rem;
    border-radius: 0.3rem;
    background: var(--nx-navy);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
    box-shadow: none;
  }
  .nx-mcard-art {
    display: none;
  }
  .nx-mcard-stage {
    position: absolute;
    z-index: 2;
    inset: 7% 5% 24% 18%;
  }
  .nx-plate {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.05rem;
  }
  .nx-plate-main {
    z-index: 3;
    width: 6.15rem;
    height: 6.25rem;
    top: 26%;
    left: 14%;
    background: linear-gradient(165deg, rgba(255,255,255,.94), rgba(214, 232, 248, .58));
    border: 1.5px solid rgba(255,255,255,.9);
    transform: rotate(-8deg);
    box-shadow:
      0 14px 22px -14px rgb(22 58 122 / .38),
      inset 0 1px 0 rgba(255,255,255,.85);
  }
  .nx-plate-main img {
    width: 78%;
    height: auto;
    object-fit: contain;
  }
  .nx-plate-a {
    z-index: 2;
    width: 3.85rem;
    height: 3.95rem;
    top: 4%;
    right: 2%;
    background: linear-gradient(165deg, #6aa8ea, #1e5fbc);
    border: 1.4px solid rgba(255,255,255,.35);
    transform: rotate(13deg);
    box-shadow: 0 12px 18px -12px rgb(22 58 122 / .42);
  }
  .nx-plate-b {
    z-index: 4;
    width: 3.7rem;
    height: 3.8rem;
    top: 58%;
    left: 6%;
    background: linear-gradient(165deg, #5aa0ea, #1d58a8);
    border: 1.4px solid rgba(255,255,255,.35);
    transform: rotate(-7deg);
    box-shadow: 0 12px 18px -12px rgb(22 58 122 / .42);
  }
  .nx-plate svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: none;
    stroke: #fff;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .nx-mcard-slogan {
    position: absolute;
    z-index: 6;
    right: 0.55rem;
    bottom: 1.7rem;
    color: var(--nx-navy);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: right;
    direction: rtl;
  }
  .nx-mcard-n {
    position: absolute;
    z-index: 6;
    left: 30%;
    bottom: 0.55rem;
    color: #6d829a;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  .nx-mcard-n::before {
    content: '';
    display: inline-block;
    width: 0.7rem;
    height: 1.5px;
    margin-right: 0.28rem;
    vertical-align: middle;
    background: #8aa3bb;
  }
  .nx-courses-mnav {
    display: grid;
    grid-template-columns: 2.6rem 1fr 2.6rem;
    align-items: center;
    margin: 1.05rem 0 0.15rem;
    direction: rtl;
  }
  .nx-marrow {
    display: none;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 50%;
    border: 1.5px solid #d7e4f0;
    background: #fff;
    cursor: pointer;
    position: relative;
    box-shadow: 0 8px 16px -14px rgb(16 44 94 / .35);
  }
  .nx-marrow--next { grid-column: 1; grid-row: 1; }
  .nx-marrow--prev { grid-column: 3; grid-row: 1; }
  .nx-courses-mob:not(:has(.nx-mdot:target-current)) .nx-marrow[data-n="1"],
  .nx-courses-mob:has(.nx-mdot:nth-child(1):target-current) .nx-marrow[data-n="1"],
  .nx-courses-mob:has(.nx-mdot:nth-child(2):target-current) .nx-marrow[data-n="2"],
  .nx-courses-mob:has(.nx-mdot:nth-child(3):target-current) .nx-marrow[data-n="3"],
  .nx-courses-mob:has(.nx-mdot:nth-child(4):target-current) .nx-marrow[data-n="4"],
  .nx-courses-mob:has(.nx-mdot:nth-child(5):target-current) .nx-marrow[data-n="5"],
  .nx-courses-mob:has(.nx-mdot:nth-child(6):target-current) .nx-marrow[data-n="6"] { display: block; }
  .nx-marrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.42rem;
    height: 0.42rem;
    border-bottom: 1.8px solid var(--nx-navy);
    border-left: 1.8px solid var(--nx-navy);
  }
  .nx-marrow--prev::before { transform: translate(-30%, -50%) rotate(45deg); }
  .nx-marrow--next::before { transform: translate(-70%, -50%) rotate(-135deg); }
  .nx-courses-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.38rem;
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    direction: rtl;
    scroll-target-group: auto;
  }
  .nx-mdot {
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 999px;
    background: #d7e3ef;
    cursor: pointer;
  }
  .nx-mdot:nth-child(1),
  .nx-mdot:target-current {
    width: 1.25rem;
    height: 0.34rem;
    background: var(--nx-navy);
  }
  .nx-courses-dots:has(.nx-mdot:target-current) .nx-mdot:nth-child(1):not(:target-current) {
    width: 0.38rem;
    height: 0.38rem;
    background: #d7e3ef;
  }
  .nx-courses-foot { margin-top: 1.15rem; }
  .nx-courses-more { display: none; }
}

@media (max-width: 640px) {
  .nx-courses { padding: 1.4rem 0 1.65rem; }
  .nx-mcard { flex-basis: 86%; min-height: 15.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nx-courses-track,
  .nx-courses-mob-track {
    transition: none;
  }
  .nx-course-featured,
  .nx-course-card,
  .nx-course-glass i,
  .nx-course-go i,
  .nx-card-go svg,
  .nx-courses-all,
  .nx-courses-switch label {
    transition: none;
    transform: none !important;
  }
}

/* ── بطاقات آفاق: هندسة الشعار جزء من silhouette ── */
.nx-courses {
  background:
    radial-gradient(ellipse 70% 55% at 8% 18%, rgba(91, 167, 214, 0.12), transparent 58%),
    radial-gradient(ellipse 50% 40% at 96% 88%, rgba(22, 58, 122, 0.05), transparent 62%),
    #f6f9fc;
}

.nx-courses-inner {
  position: relative;
  z-index: 1;
}

.nx-courses-slider {
  overflow: hidden;
  padding: 0.4rem 0.2rem 1.15rem;
  margin: 0 -0.2rem 0;
}

.nx-courses-page {
  gap: 1.35rem;
}

.nx-courses .nx-mcard {
  display: block;
  position: relative;
  isolation: isolate;
  overflow: visible;
  min-height: 17.6rem;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--nx-navy);
  text-decoration: none;
  grid-template-columns: none;
  direction: rtl;
  box-shadow: none;
  filter: drop-shadow(0 16px 28px rgb(16 44 94 / .12));
  transition: transform 0.28s ease, filter 0.28s ease;
}

.nx-courses .nx-mcard:hover,
.nx-courses-page .nx-mcard:hover {
  color: var(--nx-navy);
  transform: translateY(-3px);
  box-shadow: none;
  filter: drop-shadow(0 22px 36px rgb(16 44 94 / .18));
}

.nx-mcard-shape {
  display: block;
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  min-height: 17.6rem;
  height: 100%;
  background: #fff;
}

.nx-mcard--v1 .nx-mcard-shape,
.nx-mcard--v4 .nx-mcard-shape {
  clip-path: polygon(
    32px 0,
    100% 0,
    100% calc(100% - 28px),
    calc(100% - 20px) 100%,
    28px 100%,
    0 calc(100% - 40px),
    0 24px
  );
}

.nx-mcard--v2 .nx-mcard-shape,
.nx-mcard--v5 .nx-mcard-shape {
  clip-path: polygon(
    24px 0,
    100% 0,
    100% calc(100% - 24px),
    calc(100% - 16px) 100%,
    28px 100%,
    0 calc(100% - 28px),
    0 24px
  );
}

.nx-mcard--v3 .nx-mcard-shape,
.nx-mcard--v6 .nx-mcard-shape {
  clip-path: polygon(
    0 0,
    calc(100% - 20px) 0,
    100% 20px,
    100% calc(100% - 24px),
    calc(100% - 24px) 100%,
    0 100%
  );
}

.nx-mcard-fill {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.nx-mcard--v1 .nx-mcard-fill,
.nx-mcard--v4 .nx-mcard-fill {
  inset: -6% auto -4% -8%;
  width: 44%;
}

.nx-mcard--v2 .nx-mcard-fill,
.nx-mcard--v5 .nx-mcard-fill {
  inset: -10% auto -2% -6%;
  width: 41%;
}

.nx-mcard--v3 .nx-mcard-fill,
.nx-mcard--v6 .nx-mcard-fill {
  inset: -6% -8% -4% auto;
  width: 42%;
}

.nx-mcard-fill svg {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease;
}

.nx-mcard--v3 .nx-mcard-fill svg,
.nx-mcard--v6 .nx-mcard-fill svg {
  transform: scaleX(-1);
}

.nx-courses .nx-mcard:hover .nx-mcard-fill svg {
  transform: translate(-2px, -2px);
}

.nx-courses .nx-mcard--v3:hover .nx-mcard-fill svg,
.nx-courses .nx-mcard--v6:hover .nx-mcard-fill svg {
  transform: scaleX(-1) translate(-2px, -2px);
}

.nx-mcard-sil,
.nx-mcard-plate,
.nx-mcard-geo,
.nx-mcard-mark {
  display: none;
}

.nx-courses .nx-mcard-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  min-height: 17.6rem;
  height: 100%;
  direction: rtl;
  padding: 1.35rem 1.45rem 1.2rem 44%;
  background: transparent;
}

.nx-mcard--v3 .nx-mcard-copy,
.nx-mcard--v6 .nx-mcard-copy {
  padding: 1.35rem 42% 1.2rem 1.4rem;
}

.nx-courses .nx-mcard-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.nx-courses .nx-mcard-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 1.55rem;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 999px;
  background: #eef4fb;
  color: var(--nx-navy);
  font-size: 0.72rem;
  font-weight: 800;
}

.nx-courses .nx-mcard-badge--nelc {
  background: #fff8e8;
  color: #8a6a18;
}

.nx-courses .nx-mcard h3 {
  margin: 0.85rem 0 0;
  width: 100%;
  color: var(--nx-navy);
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.02em;
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nx-courses .nx-mcard p {
  margin: 0.55rem 0 0;
  width: 100%;
  color: #6a8098;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.8;
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nx-courses .nx-mcard-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
  width: 100%;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  direction: rtl;
}

.nx-courses .nx-mcard-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  color: #5d738c;
  font-size: 0.8rem;
  font-weight: 700;
  direction: rtl;
}

.nx-courses .nx-mcard-meta svg {
  width: 0.92rem;
  height: 0.92rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.nx-courses .nx-mcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.95rem;
}

.nx-courses .nx-mcard-foot strong {
  color: var(--nx-navy);
  font-size: 0.92rem;
  font-weight: 800;
}

.nx-courses .nx-mcard-go {
  display: inline-flex;
  align-items: center;
  align-self: auto;
  direction: rtl;
  gap: 0.42rem;
  margin-top: 0;
  padding: 0.18rem 0.85rem 0.18rem 0.2rem;
  min-height: 2.2rem;
  border-radius: 999px;
  background: var(--nx-navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: none;
}

.nx-courses .nx-mcard-go i {
  width: 1.28rem;
  height: 1.28rem;
  border-radius: 50%;
  background: #fff;
  position: relative;
  flex: 0 0 auto;
}

.nx-courses .nx-mcard-go i::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.28rem;
  height: 0.28rem;
  border-bottom: 1.55px solid var(--nx-navy);
  border-left: 1.55px solid var(--nx-navy);
  transform: translate(-35%, -50%) rotate(45deg);
}

.nx-courses .nx-courses-all {
  min-height: 2.15rem;
  padding: 0 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
}

@media (max-width: 1080px) {
  .nx-courses .nx-mcard-copy {
    padding: 1.25rem 1.2rem 1.1rem 42%;
    min-height: 16.4rem;
  }
  .nx-mcard--v3 .nx-mcard-copy,
  .nx-mcard--v6 .nx-mcard-copy {
    padding: 1.25rem 40% 1.1rem 1.2rem;
  }
  .nx-courses .nx-mcard,
  .nx-mcard-shape { min-height: 16.4rem; }
  .nx-courses .nx-mcard h3 { font-size: 1.08rem; }
  .nx-courses .nx-mcard p { -webkit-line-clamp: 2; }
}

@media (max-width: 860px) {
  .nx-courses-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    margin: 0 0 0.95rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nx-courses-chips::-webkit-scrollbar { display: none; }
  .nx-courses-chips a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    min-height: 2.05rem;
    padding: 0 0.78rem;
    border: 1px solid #d5e2ef;
    border-radius: 999px;
    background: #fff;
    color: #5d738c;
    font-size: 0.74rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
  }
  .nx-courses-chips a svg {
    width: 0.82rem;
    height: 0.82rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .nx-courses-chips a.is-on {
    background: var(--nx-navy);
    border-color: var(--nx-navy);
    color: #fff;
  }
  .nx-courses .nx-mcard,
  .nx-courses .nx-mcard.nx-mcard--snap {
    overflow: visible;
    flex: 0 0 min(78vw, 22.5rem);
    width: min(78vw, 22.5rem);
    min-height: 16.8rem;
    background: transparent;
    display: block;
    grid-template-columns: none;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-width: 0;
  }
  .nx-mcard-shape {
    min-height: 16.8rem;
  }
  .nx-courses .nx-mcard-copy {
    min-height: 16.8rem;
    padding: 1.2rem 1.15rem 1.05rem 42%;
  }
  .nx-mcard--v3 .nx-mcard-copy,
  .nx-mcard--v6 .nx-mcard-copy {
    padding: 1.2rem 40% 1.05rem 1.15rem;
  }
  .nx-courses .nx-mcard h3 {
    font-size: 1.08rem;
    margin-top: 0.65rem;
  }
  .nx-courses .nx-mcard p {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }
  .nx-courses-mob-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.2rem 0 0.85rem;
  }
}

@media (max-width: 640px) {
  .nx-courses .nx-mcard,
  .nx-courses .nx-mcard.nx-mcard--snap {
    flex: 0 0 min(82vw, 22rem);
    width: min(82vw, 22rem);
    min-height: 16.4rem;
  }
  .nx-courses .nx-mcard-copy {
    min-height: 16.4rem;
    padding: 1.1rem 1.05rem 1rem 42%;
  }
  .nx-mcard--v3 .nx-mcard-copy,
  .nx-mcard--v6 .nx-mcard-copy {
    padding: 1.1rem 40% 1rem 1.05rem;
  }
}

.nx-courses .nx-mcard,
.nx-courses .nx-mcard.nx-mcard--snap {
  display: block;
  overflow: visible;
  min-height: 16.6rem;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  clip-path: none;
  box-shadow: none;
  filter:
    drop-shadow(0 0 0.6px rgb(50 100 170 / .32))
    drop-shadow(0 14px 22px rgb(24 60 120 / .09));
  transition: transform 0.28s ease, filter 0.28s ease;
}

.nx-courses .nx-mcard:hover,
.nx-courses-page .nx-mcard:hover {
  transform: translateY(-3px);
  box-shadow: none;
  filter:
    drop-shadow(0 0 0.6px rgb(50 100 170 / .38))
    drop-shadow(0 20px 30px rgb(24 60 120 / .13));
}

.nx-courses .nx-mcard-body {
  display: block;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 100%;
  min-height: 16.6rem;
  border-radius: 16px;
  background: #fff;
}

.nx-courses .nx-mcard--k1 .nx-mcard-body {
  clip-path: polygon(30px 0, 100% 0, 100% 100%, 24px 100%, 0 calc(100% - 24px), 0 30px);
}

.nx-courses .nx-mcard--k2 .nx-mcard-body {
  clip-path: polygon(24px 0, 100% 0, 100% 100%, 20px 100%, 0 calc(100% - 20px), 0 24px);
}

.nx-courses .nx-mcard--k3 .nx-mcard-body {
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px);
}

.nx-courses .nx-mcard-brand {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: 30%;
  overflow: hidden;
  pointer-events: none;
}

.nx-courses .nx-mcard-corner {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 15%;
  height: 40%;
  overflow: hidden;
  pointer-events: none;
}

.nx-courses .nx-mcard-brand svg,
.nx-courses .nx-mcard-corner svg {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.nx-courses .nx-mcard:hover .nx-mcard-brand svg {
  transform: translate(-2px, -2px);
}

.nx-courses .nx-mcard:hover .nx-mcard-corner svg {
  transform: translate(2px, 2px);
}

.nx-courses .nx-mcard-chip {
  position: absolute;
  left: -12px;
  bottom: 46px;
  z-index: 2;
  width: 46px;
  height: 54px;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgb(150 100 20 / .18));
  transition: transform 0.35s ease;
}

.nx-courses .nx-mcard:hover .nx-mcard-chip {
  transform: translate(-2px, 2px);
}

.nx-courses .nx-mcard .nx-mcard-body .nx-mcard-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 16.6rem;
  height: 100%;
  padding: 1.3rem 1.4rem 1.2rem 0;
  margin-left: 31%;
  direction: rtl;
  background: transparent;
}

.nx-courses .nx-mcard--k3 .nx-mcard-body .nx-mcard-meta,
.nx-courses .nx-mcard--k3 .nx-mcard-body .nx-mcard-foot {
  padding-right: 0;
  margin-right: 0;
}

.nx-courses .nx-mcard--k3 .nx-mcard-body .nx-mcard-foot {
  padding-right: 1.6rem;
}

.nx-courses .nx-mcard .nx-mcard-badge {
  min-height: 1.6rem;
  padding: 0 0.75rem;
  border: 1px solid #d9e3ef;
  background: #fff;
  font-size: 0.74rem;
}

.nx-courses .nx-mcard .nx-mcard-body h3 {
  width: 100%;
  margin-top: 0.75rem;
  font-size: 1.24rem;
  line-height: 1.42;
}

.nx-courses .nx-mcard .nx-mcard-body p {
  width: 100%;
  margin-top: 0.55rem;
  color: #4f627b;
  font-size: 0.83rem;
  line-height: 1.8;
  -webkit-line-clamp: 3;
}

.nx-courses .nx-mcard-meta {
  gap: 0.4rem 0;
}

.nx-courses .nx-mcard-meta li {
  padding: 0 0.7rem;
  color: #4f627b;
  font-size: 0.8rem;
}

.nx-courses .nx-mcard-meta li:first-child {
  padding-right: 0;
}

.nx-courses .nx-mcard-meta li + li {
  border-right: 1px solid #d8e2ee;
}

.nx-courses .nx-mcard-meta svg {
  width: 1.02rem;
  height: 1.02rem;
  color: var(--nx-navy);
}

.nx-courses .nx-mcard-foot {
  padding-top: 0.85rem;
}

.nx-courses .nx-mcard-foot strong {
  padding-left: 1rem;
  border-left: 1px solid #d8e2ee;
  font-size: 1.12rem;
}

.nx-courses .nx-mcard-go {
  min-height: 2.45rem;
  padding: 0.2rem 1.15rem 0.2rem 0.3rem;
  gap: 0.6rem;
  font-size: 0.84rem;
}

.nx-courses .nx-mcard-go i {
  width: 1.55rem;
  height: 1.55rem;
}

@media (min-width: 861px) {
  .nx-courses-title-a,
  .nx-courses-title-b {
    display: inline;
    color: var(--nx-navy);
    font-size: clamp(1.7rem, 2.5vw, 2.3rem);
  }
  .nx-courses-title-b.nx-tb-m { display: none; }
}

@media (max-width: 1080px) {
  .nx-courses .nx-mcard .nx-mcard-body h3 { font-size: 1.08rem; }
  .nx-courses .nx-mcard .nx-mcard-body p { -webkit-line-clamp: 2; }
}

@media (max-width: 860px) {
  .nx-courses .nx-mcard,
  .nx-courses .nx-mcard.nx-mcard--snap,
  .nx-courses .nx-mcard-body,
  .nx-courses .nx-mcard .nx-mcard-body .nx-mcard-copy {
    min-height: 16.2rem;
  }
  .nx-courses .nx-mcard .nx-mcard-body .nx-mcard-copy {
    margin-left: 27%;
    padding: 1.15rem 1.15rem 1.05rem 0;
  }
  .nx-courses .nx-mcard-brand { width: 26%; }
  .nx-courses .nx-mcard-corner { width: 12%; }
}

/* بطاقات الدورات — مقاسات كبيرة وهندسة الهوية بـ SVG */

.nx-courses .nx-mcard,
.nx-courses .nx-mcard.nx-mcard--snap {
  display: flex;
  position: relative;
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  overflow: visible;
  clip-path: none;
  filter: none;
  box-shadow: none;
  transition: transform 0.28s ease;
}

.nx-courses .nx-mcard:hover,
.nx-courses-page .nx-mcard:hover {
  transform: translateY(-3px);
  filter: none;
  box-shadow: none;
}

.nx-courses .nx-mcard .nx-mcard-body,
.nx-courses .nx-mcard--k1 .nx-mcard-body,
.nx-courses .nx-mcard--k2 .nx-mcard-body,
.nx-courses .nx-mcard--k3 .nx-mcard-body {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 340px;
  aspect-ratio: auto;
  overflow: hidden;
  border: 1px solid rgb(30 80 150 / .10);
  border-radius: 8px;
  background: #fff;
  background-image: none;
  clip-path: none;
  filter: none;
  box-shadow: 0 18px 45px rgb(25 63 120 / .09);
  transition: box-shadow 0.28s ease;
}

.nx-courses .nx-mcard:hover .nx-mcard-body {
  filter: none;
  box-shadow: 0 24px 54px rgb(25 63 120 / .13);
}

.nx-courses .nx-mcard-geom,
.nx-courses .nx-mcard-tail {
  position: absolute;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.nx-courses .nx-mcard-geom {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.nx-courses .nx-mcard-tail {
  right: -7px;
  bottom: -9px;
  z-index: 2;
  width: 50px;
  height: 152px;
  overflow: visible;
  filter: drop-shadow(0 6px 10px rgb(25 63 120 / .16));
}

.nx-courses .nx-mcard .nx-mcard-body .nx-mcard-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 28px 30px 24px 0;
  padding-left: 27%;
  direction: rtl;
  background: transparent;
}

.nx-courses .nx-mcard .nx-mcard-body .nx-mcard-copy > * {
  flex-shrink: 0;
}

.nx-courses .nx-mcard .nx-mcard-body .nx-mcard-badge {
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  background: #f6f9fd;
  color: var(--nx-navy);
  font-size: 13px;
  font-weight: 800;
}

.nx-courses .nx-mcard .nx-mcard-body .nx-mcard-badge--nelc {
  border-color: #ecdcae;
  background: #fff8e8;
  color: #8a6a18;
}

.nx-courses .nx-mcard .nx-mcard-body h3 {
  width: 100%;
  margin: 14px 0 0;
  color: var(--nx-navy);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.01em;
  -webkit-line-clamp: 2;
}

.nx-courses .nx-mcard--k1 .nx-mcard-body h3 { width: 88%; }
.nx-courses .nx-mcard--k2 .nx-mcard-body h3 { width: 86%; }
.nx-courses .nx-mcard--k3 .nx-mcard-body h3 { width: 100%; }

.nx-courses .nx-mcard .nx-mcard-body p {
  width: 100%;
  margin: 8px 0 0;
  color: #566b85;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.75;
  -webkit-line-clamp: 3;
}

.nx-courses .nx-mcard .nx-mcard-body .nx-mcard-meta {
  flex-wrap: nowrap;
  gap: 0;
  margin: 14px 0 0;
}

.nx-courses .nx-mcard .nx-mcard-body .nx-mcard-meta li {
  gap: 8px;
  padding: 0 13px;
  color: #4f627b;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.nx-courses .nx-mcard .nx-mcard-body .nx-mcard-meta li:first-child {
  padding-right: 0;
}

.nx-courses .nx-mcard .nx-mcard-body .nx-mcard-meta svg {
  width: 17px;
  height: 17px;
}

.nx-courses .nx-mcard .nx-mcard-body .nx-mcard-foot {
  gap: 14px;
  margin-top: auto;
  padding-top: 16px;
}

.nx-courses .nx-mcard .nx-mcard-body .nx-mcard-foot strong {
  padding-left: 14px;
  font-size: 19px;
  font-weight: 800;
}

.nx-courses .nx-mcard .nx-mcard-body .nx-mcard-go {
  min-height: 42px;
  gap: 10px;
  padding: 0 18px 0 7px;
  border-radius: 10px;
  font-size: 15px;
}

.nx-courses .nx-mcard .nx-mcard-body .nx-mcard-go i {
  width: 27px;
  height: 27px;
}

.nx-courses .nx-mcard--k3 .nx-mcard-body .nx-mcard-meta {
  padding-right: 14px;
  margin-right: 0;
}

.nx-courses .nx-mcard--k3 .nx-mcard-body .nx-mcard-foot {
  padding-right: 40px;
  margin-right: 0;
}

@media (min-width: 861px) {
  .nx-courses {
    padding: 2.3rem 0 2.1rem;
  }
  .nx-courses .nx-courses-inner {
    width: min(92vw, 1600px);
  }
  .nx-courses .nx-courses-head {
    margin-bottom: 26px;
  }
  .nx-courses .nx-courses-kicker {
    font-size: 13px;
  }
  .nx-courses .nx-courses-title-a,
  .nx-courses .nx-courses-title-b {
    font-size: clamp(28px, 2.1vw, 34px);
  }
  .nx-courses .nx-courses-lead {
    max-width: 40rem;
    margin-top: 8px;
    font-size: 15px;
  }
  .nx-courses .nx-courses-board {
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
  }
  .nx-courses .nx-courses-rail {
    justify-content: center;
    padding: 0 0 2.4rem;
  }
  .nx-courses .nx-courses-rail-list a {
    padding: 0.7rem 0;
  }
  .nx-courses .nx-courses-rail-n { font-size: 0.72rem; }
  .nx-courses .nx-courses-rail-list small { font-size: 0.86rem; }
  .nx-courses .nx-courses-switch label {
    width: 2.5rem;
    height: 2.5rem;
  }
  .nx-courses .nx-courses-slider {
    container-type: inline-size;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 22px 60px;
    margin: 0 -22px -36px;
    scroll-padding-inline: 22px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .nx-courses .nx-courses-slider::-webkit-scrollbar { display: none; }
  .nx-courses .nx-courses-page .nx-mcard { scroll-snap-align: start; }
  .nx-courses .nx-courses-track {
    --nx-cg: 24px;
    --nx-cw: min(calc((100cqw - 2 * var(--nx-cg)) / 3), 520px);
    display: flex;
    gap: var(--nx-cg);
    width: max-content;
  }
  .nx-courses .nx-courses-page {
    display: flex;
    flex: 0 0 auto;
    width: auto;
    gap: var(--nx-cg);
    align-items: stretch;
    grid-template-columns: none;
  }
  .nx-courses .nx-courses-page .nx-mcard {
    flex: 0 0 var(--nx-cw);
    width: var(--nx-cw);
  }
  .nx-courses .nx-courses-slider,
  .nx-courses .nx-courses-track,
  .nx-courses .nx-courses-page {
    direction: rtl;
  }
  .nx-courses #nx-cpage-2:checked ~ .nx-courses-track {
    transform: translateX(calc(3 * (var(--nx-cw) + var(--nx-cg))));
  }
}

.nx-courses .nx-mcard-geom,
.nx-courses .nx-mcard-tail {
  transition: transform 0.35s ease;
}

.nx-courses .nx-mcard:hover .nx-mcard-geom {
  transform: translate(-3px, -2px);
}

.nx-courses .nx-mcard:hover .nx-mcard-tail {
  transform: translate(2px, 2px);
}

.nx-courses .nx-mcard:focus-visible {
  outline: 2px solid #2f6ec0;
  outline-offset: 5px;
}

@media (max-width: 860px) {
  .nx-courses .nx-geo-low {
    transform-box: fill-box;
    transform-origin: top;
    transform: scaleY(1.45);
  }
}

@media (min-width: 1200px) and (max-width: 1439px) {
  .nx-courses .nx-courses-track {
    --nx-cw: calc((100cqw - 2 * var(--nx-cg)) / 3);
  }
  .nx-courses .nx-mcard .nx-mcard-body .nx-mcard-copy { padding: 24px 24px 22px 0; padding-left: 25%; }
  .nx-courses .nx-mcard .nx-mcard-body h3 { font-size: 19px; }
  .nx-courses .nx-mcard .nx-mcard-body p { font-size: 14px; }
  .nx-courses .nx-mcard .nx-mcard-body .nx-mcard-meta li { padding: 0 9px; font-size: 13px; }
  .nx-courses .nx-mcard .nx-mcard-body .nx-mcard-foot strong { font-size: 17px; }
  .nx-courses .nx-mcard .nx-mcard-body .nx-mcard-go { min-height: 38px; padding: 0 14px 0 6px; font-size: 14px; }
}

@media (min-width: 861px) and (max-width: 1199px) {
  .nx-courses .nx-courses-track {
    --nx-cg: 20px;
    --nx-cw: clamp(360px, calc((100cqw - var(--nx-cg)) / 2), 440px);
  }
  .nx-courses .nx-mcard .nx-mcard-body h3 { font-size: 20px; }
  .nx-courses .nx-mcard .nx-mcard-body p { font-size: 14.5px; }
  .nx-courses .nx-mcard .nx-mcard-body .nx-mcard-meta li { padding: 0 12px; font-size: 14px; }
}

/* السكة كانت أربعة روابط لنفس الصفحة؛ الأسهم تبقى تحت البطاقات */
.nx-courses .nx-courses-rail-list { display: none; }
.nx-courses .nx-courses-board { grid-template-columns: minmax(0, 1fr); }
.nx-courses .nx-courses-slider { grid-row: 1; }
.nx-courses .nx-courses-rail {
  grid-row: 2;
  flex-direction: row;
  justify-content: center;
  padding: 0.15rem 0 0;
}
.nx-courses .nx-courses-rail:not(:has(.nx-courses-switch)) { display: none; }
.nx-courses .nx-courses-switch { margin-top: 0; }
.nx-courses { padding: 3.1rem 0 2.6rem; }

@media (max-width: 860px) {
  .nx-courses .nx-courses-chips,
  .nx-courses .nx-courses-rail {
    display: none;
  }
  .nx-courses .nx-mcard,
  .nx-courses .nx-mcard.nx-mcard--snap {
    flex: 0 0 min(86vw, 24rem);
    flex: 0 0 min(round(down, 86vw, 1px), 24rem);
  }
  .nx-courses .nx-mcard .nx-mcard-body,
  .nx-courses .nx-mcard--k1 .nx-mcard-body,
  .nx-courses .nx-mcard--k2 .nx-mcard-body,
  .nx-courses .nx-mcard--k3 .nx-mcard-body {
    min-height: 336px;
    border-radius: 8px;
    box-shadow: 0 16px 38px rgb(25 63 120 / .09);
  }
  .nx-courses .nx-mcard-tail {
    right: -6px;
    bottom: -8px;
    width: 43px;
    height: 132px;
  }
  .nx-courses .nx-mcard-chip {
    left: -9px;
    bottom: 36px;
    width: 36px;
    height: 42px;
  }
  .nx-courses .nx-mcard .nx-mcard-body .nx-mcard-copy {
    padding: 26px 22px 20px 0;
    padding-left: 21%;
  }
  .nx-courses .nx-mcard .nx-mcard-body .nx-mcard-badge {
    min-height: 28px;
    padding: 0 11px;
    font-size: 12.5px;
  }
  .nx-courses .nx-mcard .nx-mcard-body h3 {
    margin-top: 14px;
    font-size: 20px;
    line-height: 1.5;
  }
  .nx-courses .nx-mcard .nx-mcard-body p {
    margin-top: 8px;
    font-size: 14.5px;
    line-height: 1.75;
    -webkit-line-clamp: 3;
  }
  .nx-courses .nx-mcard .nx-mcard-body .nx-mcard-meta {
    flex-wrap: wrap;
    row-gap: 6px;
    margin-top: 16px;
  }
  .nx-courses .nx-mcard .nx-mcard-body .nx-mcard-meta li {
    padding: 0 8px;
    font-size: 13px;
  }
  .nx-courses .nx-mcard .nx-mcard-body .nx-mcard-meta svg {
    width: 18px;
    height: 18px;
  }
  .nx-courses .nx-mcard .nx-mcard-body .nx-mcard-foot {
    padding-top: 18px;
  }
  .nx-courses .nx-mcard .nx-mcard-body .nx-mcard-foot strong {
    padding-left: 12px;
    font-size: 17.5px;
  }
  .nx-courses .nx-mcard .nx-mcard-body .nx-mcard-go {
    min-height: 42px;
    padding: 0 16px 0 6px;
    font-size: 14.5px;
  }
  .nx-courses .nx-mcard .nx-mcard-body .nx-mcard-go i {
    width: 27px;
    height: 27px;
  }
  .nx-courses .nx-mcard--k3 .nx-mcard-body .nx-mcard-foot {
    padding-right: 20px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .nx-courses .nx-mcard,
  .nx-courses .nx-mcard:hover,
  .nx-courses .nx-mcard-geo,
  .nx-courses .nx-mcard-geom,
  .nx-courses .nx-mcard-tail,
  .nx-courses .nx-mcard-chip,
  .nx-courses .nx-mcard:hover .nx-mcard-chip,
  .nx-courses .nx-mcard:hover .nx-mcard-geom,
  .nx-courses .nx-mcard:hover .nx-mcard-tail,
  .nx-courses .nx-mcard-photo,
  .nx-courses .nx-mcard:hover .nx-mcard-photo,
  .nx-courses .nx-mcard-scene,
  .nx-courses .nx-mcard:hover .nx-mcard-scene {
    transition: none;
    transform: none;
  }
}

/* غلاف البطاقة: لوحة هوية، والنمط يتداخل معها. الصورة تأخذ نفس الإطار إن وُجدت */
.nx-courses .nx-mcard .nx-mcard-body {
  flex-direction: column;
}
.nx-courses .nx-mcard-cover {
  position: relative;
  display: block;
  flex: 0 0 auto;
  height: 12.6rem;
  overflow: hidden;
  background: linear-gradient(180deg, #f4f8fd 0%, #fff 100%);
}
.nx-courses .nx-mcard-plate {
  position: absolute;
  z-index: 0;
  display: block;
  top: 0;
  right: 0;
  width: 64%;
  height: 100%;
  overflow: hidden;
  background: #e7f1fb;
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 6% 100%);
}
.nx-courses .nx-mcard-plate::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2.6rem;
  background: linear-gradient(to top, #fff 0%, rgb(255 255 255 / 0) 100%);
  pointer-events: none;
}
.nx-courses .nx-mcard-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% 32%;
  filter: contrast(1.08) saturate(1.12);
  transform: scale(1.02);
  transform-origin: 80% 36%;
  transition: transform 0.45s ease;
}
.nx-courses .nx-mcard:hover .nx-mcard-scene { transform: scale(1.14); }
.nx-courses .nx-mcard-cover .nx-mcard-geom {
  top: 0.2rem;
  left: 1.15rem;
  z-index: 2;
  width: 68%;
  height: 148%;
  -webkit-mask-image: none;
  mask-image: none;
}
.nx-courses .nx-mcard .nx-mcard-body .nx-mcard-copy {
  padding: 0.85rem 1.25rem 1.15rem;
}
