/* تفاصيل الدورة — مطابق للمرجع */

body.cd-body {
  --nx-navy: #163A7A;
  --nx-navy-soft: #2f6ec0;
  --cd-line: #d7e4f0;
  --cd-ice: #f3f8fd;
  background: #f4f8fc;
  font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
}

.cd {
  padding: 0.85rem 0 2.4rem;
}

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

.cd-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  color: #8aa0b5;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
}

.cd-back::before {
  content: "→";
}

.cd-board {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 0 0.9rem;
  border-radius: 1.7rem;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(16.5rem, 0.92fr);
  grid-template-areas: "copy art";
  direction: ltr;
  box-shadow: 0 10px 28px -22px rgb(16 44 94 / .2);
}

.cd-copy {
  grid-area: copy;
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  min-width: 0;
  direction: rtl;
  padding: 1.45rem 1.45rem 1.3rem 1.15rem;
}

.cd-art {
  grid-area: art;
  position: relative;
  overflow: hidden;
  min-height: 100%;
  pointer-events: none;
  background: transparent;
}

.cd-geo {
  position: absolute;
  border-radius: 1.6rem;
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.4);
}

.cd-geo-a {
  width: 11.5rem;
  height: 11.5rem;
  top: -3.2rem;
  right: -2.4rem;
  transform: rotate(18deg);
}

.cd-geo-b {
  width: 8.4rem;
  height: 8.4rem;
  bottom: -2.4rem;
  left: -1.6rem;
  transform: rotate(-16deg);
}

.cd-geo-c {
  width: 6.2rem;
  height: 6.2rem;
  top: 38%;
  right: 18%;
  transform: rotate(28deg);
  background: rgba(255,255,255,.16);
}

.cd-stage {
  position: absolute;
  inset: 8% 10% 10% 12%;
}

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

.cd-plate-main {
  z-index: 4;
  width: 8.4rem;
  height: 8.5rem;
  top: 22%;
  left: 22%;
  background: #fff;
  border: 1px solid rgba(255,255,255,.95);
  transform: rotate(-9deg);
  box-shadow: 0 16px 28px -16px rgb(22 58 122 / .35);
}

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

.cd-plate-user {
  z-index: 5;
  width: 3.55rem;
  height: 3.55rem;
  top: 4%;
  right: 8%;
  background: linear-gradient(165deg, #5aa3ea, #1f62c4);
  transform: rotate(14deg);
  box-shadow: 0 10px 16px -10px rgb(22 58 122 / .4);
}

.cd-plate-shield {
  z-index: 3;
  width: 3.2rem;
  height: 3.2rem;
  top: 42%;
  left: 2%;
  background: linear-gradient(165deg, #6aadee, #2470d0);
  transform: rotate(-12deg);
}

.cd-plate-doc {
  z-index: 5;
  width: 3.35rem;
  height: 3.35rem;
  bottom: 6%;
  left: 28%;
  background: linear-gradient(165deg, #4f9be6, #1c5db8);
  transform: rotate(8deg);
}

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

.cd-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.32rem;
  min-height: 1.45rem;
  padding: 0 0.62rem;
  border-radius: 999px;
  background: #e8f1fb;
  color: var(--nx-navy);
  font-size: 0.66rem;
  font-weight: 800;
}

.cd-badge svg {
  width: 0.82rem;
  height: 0.82rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cd-private {
  margin: 0.4rem 0 0;
  color: #9a6b12;
  font-size: 0.72rem;
  font-weight: 700;
}

.cd-copy h1 {
  margin: 0.7rem 0 0;
  color: var(--nx-navy);
  font-size: clamp(1.35rem, 2.2vw, 1.72rem);
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -0.03em;
  text-align: right;
}

.cd-status {
  margin: 0.3rem 0 0;
  color: var(--nx-navy-soft);
  font-size: 0.74rem;
  font-weight: 800;
}

.cd-lead {
  margin: 0.55rem 0 0;
  color: #7d90a6;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.75;
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cd-lead p {
  margin: 0;
}

.cd-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  width: min(22rem, 100%);
  margin: 1.05rem 0 0;
  padding: 0;
  list-style: none;
  direction: rtl;
}

.cd-meta li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.38rem;
  padding: 0 0.35rem;
  color: var(--nx-navy);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
}

.cd-meta li + li {
  border-inline-start: 1px solid var(--cd-line);
}

.cd-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--cd-ice);
}

.cd-ic svg {
  width: 0.92rem;
  height: 0.92rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cd-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 1.2rem;
  direction: ltr;
}

.cd-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.4rem;
  min-height: 2.55rem;
  padding: 0 1.15rem;
  border: 1.5px solid var(--nx-navy);
  border-radius: 0.85rem;
  background: #fff;
  color: var(--nx-navy);
  font-size: 0.92rem;
  font-weight: 800;
  pointer-events: none;
}

.cd-actions,
.cd-actions form {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cd-go {
  display: inline-flex;
  align-items: center;
  direction: ltr;
  gap: 0.4rem;
  min-width: 9.6rem;
  min-height: 2.55rem;
  padding: 0.12rem 0.9rem 0.12rem 0.18rem;
  border: 0;
  border-radius: 0.85rem;
  background: var(--nx-navy);
  color: #fff !important;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.cd-go i {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: #fff;
  position: relative;
  flex: 0 0 auto;
}

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

.cd-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0 0.9rem;
  border: 1.4px solid var(--nx-navy);
  border-radius: 0.85rem;
  background: #fff;
  color: var(--nx-navy) !important;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.cd-note {
  margin: 0.45rem 0 0;
  color: #9a6b12;
  font-size: 0.72rem;
  font-weight: 700;
}

.cd .form-input,
.cd .form-textarea {
  width: min(100%, 14rem);
  border: 1px solid #d7e4f0;
  border-radius: 0.7rem;
  padding: 0.5rem 0.65rem;
  font-family: inherit;
}

.cd-card {
  margin: 0 0 0.85rem;
  padding: 1.2rem 1.25rem 1.25rem;
  background: #fff;
  border-radius: 1.35rem;
  box-shadow: 0 10px 28px -22px rgb(16 44 94 / .18);
}

.cd-card h2 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  color: var(--nx-navy);
  font-size: 0.95rem;
  font-weight: 800;
}

.cd-hico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: #e7f1fb;
  flex: 0 0 auto;
}

.cd-hico svg {
  width: 0.92rem;
  height: 0.92rem;
  fill: none;
  stroke: var(--nx-navy);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cd-about {
  color: #6d8298;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.8;
  text-align: right;
}

.cd-about p {
  margin: 0;
}

.cd-lessons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.cd-lessons li {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr) 1.7rem;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.7rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.85rem;
  background: var(--cd-ice);
  direction: rtl;
}

.cd-lnum {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--nx-navy);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.45rem;
  text-align: center;
}

.cd-ltitle {
  color: var(--nx-navy);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: right;
}

.cd-lico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: #e8f1fb;
  color: var(--nx-navy);
}

.cd-lico svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cd-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.15rem 0;
  row-gap: 1.15rem;
}

.cd-info > div {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 25%;
  max-width: 25%;
  gap: 0.4rem;
  padding: 0.2rem 0.85rem;
  text-align: center;
}

.cd-info > div:not(:nth-child(4n + 1))::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 14%;
  bottom: 14%;
  width: 1px;
  background: var(--cd-line);
}

.cd-info-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  background: var(--cd-ice);
  color: var(--nx-navy);
}

.cd-info-ic svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cd-info h3 {
  margin: 0.15rem 0 0;
  color: var(--nx-navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.cd-info p {
  margin: 0;
  color: #6d8298;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.55;
}

.cd-survey {
  margin: 0.4rem 0 0;
  text-align: center;
}

.cd-survey a {
  color: var(--nx-navy);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.cd .course-study-plan-section {
  margin: 0 0 0.85rem;
  padding: 1.2rem 1.25rem;
  background: #fff;
  border-radius: 1.35rem;
  box-shadow: 0 10px 28px -22px rgb(16 44 94 / .18);
}

.cd .live-countdown {
  margin: 0.55rem 0 0;
  padding: 0;
  background: transparent;
  border: 0;
}

@media (max-width: 860px) {
  .cd {
    padding: 0.4rem 0 1.4rem;
  }

  .cd-inner {
    width: calc(100% - 1rem);
    max-width: 100%;
  }

  .cd-back {
    margin-bottom: 0.55rem;
    font-size: 0.68rem;
  }

  .cd-board {
    grid-template-columns: minmax(0, 1.15fr) minmax(8.4rem, 0.92fr);
    grid-template-areas: "copy art";
    min-height: 21.5rem;
    border-radius: 1.45rem;
  }

  .cd-art {
    height: auto;
    min-height: 100%;
  }

  .cd-copy {
    padding: 0.95rem 0.7rem 0.9rem 0.75rem;
  }

  .cd-copy h1 {
    margin-top: 0.55rem;
    font-size: clamp(1.08rem, 4.8vw, 1.28rem);
    line-height: 1.35;
  }

  .cd-lead {
    margin-top: 0.4rem;
    font-size: 0.7rem;
    line-height: 1.65;
  }

  .cd-meta {
    width: 100%;
    margin-top: 0.8rem;
  }

  .cd-meta li {
    font-size: 0.64rem;
    padding: 0 0.2rem;
  }

  .cd-ic {
    width: 1.55rem;
    height: 1.55rem;
  }

  .cd-buy {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    width: 100%;
    padding-top: 0.85rem;
    direction: ltr;
  }

  .cd-price,
  .cd-actions,
  .cd-actions form,
  .cd-go {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
  }

  .cd-price {
    min-width: 5.6rem;
    min-height: 2.2rem;
    padding: 0 0.7rem;
    font-size: 0.78rem;
    border-radius: 0.7rem;
  }

  .cd-go {
    min-width: 7.4rem;
    min-height: 2.2rem;
    justify-content: center;
    font-size: 0.72rem;
    padding: 0.08rem 0.55rem 0.08rem 0.12rem;
    border-radius: 0.7rem;
  }

  .cd-go i {
    width: 1.2rem;
    height: 1.2rem;
  }

  .cd-card {
    padding: 0.9rem 0.8rem 0.95rem;
    border-radius: 1.15rem;
  }

  .cd-card h2 {
    font-size: 0.86rem;
  }

  .cd-about {
    font-size: 0.72rem;
  }

  .cd-lessons li {
    min-height: 2.4rem;
    padding: 0.42rem 0.55rem;
  }

  .cd-ltitle {
    font-size: 0.72rem;
  }

  .cd-info {
    row-gap: 1.05rem;
    padding: 0.2rem 0;
  }

  .cd-info > div {
    flex-basis: 33.333%;
    max-width: 33.333%;
    padding: 0.2rem 0.45rem;
  }

  .cd-info > div::before {
    display: none;
  }

  .cd-info > div:not(:nth-child(3n + 1))::before {
    display: block;
  }

  .cd-info-ic {
    width: 2.1rem;
    height: 2.1rem;
  }

  .cd-info h3 {
    font-size: 0.7rem;
  }

  .cd-info p {
    font-size: 0.62rem;
  }

  .cd-plate-main {
    width: 5.6rem;
    height: 5.7rem;
    top: 24%;
    left: 18%;
    transform: rotate(-9deg);
  }

  .cd-plate-user {
    width: 2.45rem;
    height: 2.45rem;
    top: 6%;
    right: 6%;
  }

  .cd-plate-shield {
    width: 2.2rem;
    height: 2.2rem;
    top: 44%;
    left: 0;
  }

  .cd-plate-doc {
    width: 2.3rem;
    height: 2.3rem;
    bottom: 8%;
    left: 22%;
  }
}

@media (max-width: 640px) {
  .cd-copy h1 {
    font-size: 1.08rem;
  }
}

/* تفاصيل الدورة — نفس هوية بطاقات الواجهة */

.cd-inner {
  width: min(1180px, calc(100% - 2.4rem));
}

.cd {
  padding: 1.4rem 0 3rem;
}

.cd-back {
  margin-bottom: 1rem;
  color: #6d8298;
  font-size: 14px;
}

.cd-board {
  display: flex;
  min-height: 360px;
  direction: rtl;
  margin: 0 0 22px;
  overflow: visible;
  border: 1px solid rgb(30 80 150 / .10);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgb(25 63 120 / .09);
}

.cd-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 8px;
}

.cd-art .nx-mcard-geom {
  position: absolute;
  top: 0;
  left: 0;
  width: min(620px, 54%);
  height: auto;
  aspect-ratio: 500 / 360;
  display: block;
}

.cd-board > .nx-mcard-tail {
  position: absolute;
  right: -8px;
  bottom: -11px;
  z-index: 5;
  width: 58px;
  height: 176px;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgb(25 63 120 / .16));
}

.cd-board > .nx-mcard-chip {
  position: absolute;
  left: -14px;
  bottom: 56px;
  z-index: 5;
  width: 58px;
  height: 68px;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgb(150 100 20 / .18));
}

.cd-copy {
  flex: 1 1 auto;
  padding: 40px 48px 36px 0;
  padding-left: 32%;
}

.cd-board--k3 .cd-copy {
  padding-left: 24%;
}

.cd-badge {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  background: #f6f9fd;
  font-size: 13px;
}

.cd-badge svg {
  display: none;
}

.cd-private {
  font-size: 14px;
}

.cd-copy h1 {
  margin-top: 16px;
  font-size: clamp(26px, 2.3vw, 34px);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.cd-status {
  font-size: 14px;
}

.cd-lead {
  margin-top: 10px;
  color: #566b85;
  font-size: 16px;
  line-height: 1.85;
}

.cd-meta {
  display: flex;
  flex-wrap: wrap;
  row-gap: 8px;
  width: auto;
  margin-top: 20px;
}

.cd-meta li {
  flex-direction: row;
  gap: 8px;
  padding: 0 16px;
  color: #4f627b;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.cd-meta li:first-child {
  padding-right: 0;
}

.cd-meta li + li {
  border-inline-start: 1px solid #dbe5f1;
}

.cd-ic {
  width: auto;
  height: auto;
  background: none;
  color: var(--nx-navy);
}

.cd-ic svg {
  width: 18px;
  height: 18px;
}

.cd-buy {
  direction: rtl;
  gap: 16px;
  padding-top: 28px;
}

.cd-board--k3 .cd-buy {
  padding-right: 30px;
}

.cd-price {
  min-width: 0;
  min-height: 0;
  padding: 0 0 0 16px;
  border: 0;
  border-left: 1px solid #dbe5f1;
  border-radius: 0;
  background: none;
  font-size: 22px;
  line-height: 1.6;
}

.cd-go {
  gap: 10px;
  min-width: 0;
  min-height: 46px;
  padding: 0 20px 0 8px;
  border-radius: 10px;
  font-size: 16px;
  transition: background-color .2s ease, transform .2s ease;
}

.cd-go:hover {
  background: #1f4f9a;
  transform: translateY(-2px);
}

.cd-go i {
  width: 30px;
  height: 30px;
}

.cd-ghost {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 15px;
}

.cd-note {
  font-size: 14px;
}

.cd-card,
.cd .course-study-plan-section {
  margin: 0 0 18px;
  padding: 26px 28px 28px;
  border: 1px solid rgb(30 80 150 / .10);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgb(25 63 120 / .07);
}

.cd-card h2 {
  gap: 10px;
  margin-bottom: 16px;
  font-size: 19px;
}

.cd-hico {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f6f9fd;
  border: 1px solid #dbe5f1;
}

.cd-hico svg {
  width: 17px;
  height: 17px;
}

.cd-about {
  color: #566b85;
  font-size: 16px;
  line-height: 1.9;
}

.cd-lessons {
  gap: 10px;
}

.cd-lessons li {
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 14px;
  min-height: 56px;
  padding: 10px 16px;
  border: 1px solid #e3ecf6;
  border-radius: 8px;
  background: #f8fbfe;
  transition: border-color .2s ease, background-color .2s ease;
}

.cd-lessons li:hover {
  border-color: #c9daee;
  background: #fff;
}

.cd-lnum {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1f5bb0, #163a7a);
  font-size: 14px;
  line-height: 32px;
}

.cd-lessons li:nth-child(3n + 2) .cd-lnum {
  background: linear-gradient(135deg, #3d9be2, #2463b9);
}

.cd-lessons li:nth-child(3n) .cd-lnum {
  background: linear-gradient(135deg, #ffd46a, #f5a322);
  color: #163a7a;
}

.cd-ltitle {
  font-size: 16px;
}

.cd-lico {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e3ecf6;
}

.cd-lico svg {
  width: 17px;
  height: 17px;
}

.cd-info {
  row-gap: 26px;
  padding: 6px 0;
}

.cd-info > div {
  gap: 8px;
  padding: 4px 18px;
}

.cd-info-ic {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #f6f9fd;
  border: 1px solid #dbe5f1;
}

.cd-info-ic svg {
  width: 21px;
  height: 21px;
}

.cd-info h3 {
  font-size: 16px;
}

.cd-info p {
  color: #566b85;
  font-size: 14px;
  line-height: 1.7;
}

.cd-survey a {
  font-size: 15px;
}

@media (max-width: 860px) {
  .cd {
    padding: 0.8rem 0 2rem;
  }

  .cd-inner {
    width: calc(100% - 1.6rem);
  }

  .cd-back {
    font-size: 13px;
  }

  .cd-board {
    min-height: 0;
    border-radius: 8px;
  }

  .cd-art .nx-geo-low {
    transform-box: fill-box;
    transform-origin: top;
    transform: scaleY(1.45);
  }

  .cd-board > .nx-mcard-tail {
    right: -6px;
    bottom: -8px;
    width: 43px;
    height: 132px;
  }

  .cd-board > .nx-mcard-chip {
    left: -9px;
    bottom: 36px;
    width: 36px;
    height: 42px;
  }

  .cd-art .nx-mcard-geom {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }

  .cd-copy,
  .cd-board--k3 .cd-copy {
    padding: 26px 20px 24px 0;
    padding-left: 22%;
  }

  .cd-copy h1 {
    margin-top: 12px;
    font-size: 22px;
  }

  .cd-lead {
    font-size: 14.5px;
    line-height: 1.8;
  }

  .cd-meta {
    width: auto;
    margin-top: 16px;
  }

  .cd-meta {
    flex-wrap: nowrap;
  }

  .cd-meta li {
    gap: 6px;
    padding: 0 9px;
    font-size: 13px;
  }

  .cd-ic {
    width: auto;
    height: auto;
  }

  .cd-ic svg {
    width: 16px;
    height: 16px;
  }

  .cd-buy {
    direction: rtl;
    gap: 14px;
    padding-top: 22px;
  }

  .cd-board--k3 .cd-buy {
    padding-right: 22px;
  }

  .cd-price {
    min-width: 0;
    min-height: 0;
    padding: 0 0 0 14px;
    font-size: 19px;
    border-radius: 0;
  }

  .cd-go {
    min-width: 0;
    min-height: 44px;
    padding: 0 18px 0 7px;
    font-size: 15px;
    border-radius: 10px;
  }

  .cd-go i {
    width: 28px;
    height: 28px;
  }

  .cd-card,
  .cd .course-study-plan-section {
    padding: 20px 18px 22px;
    border-radius: 8px;
  }

  .cd-card h2 {
    font-size: 17px;
  }

  .cd-about {
    font-size: 14.5px;
  }

  .cd-lessons li {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 10px;
    min-height: 50px;
    padding: 9px 12px;
  }

  .cd-lnum {
    width: 28px;
    height: 28px;
    font-size: 13px;
    line-height: 28px;
  }

  .cd-lico {
    width: 30px;
    height: 30px;
  }

  .cd-ltitle {
    font-size: 14.5px;
  }

  .cd-info {
    row-gap: 22px;
  }

  .cd-info > div {
    flex-basis: 50%;
    max-width: 50%;
    padding: 4px 10px;
  }

  .cd-info > div::before,
  .cd-info > div:not(:nth-child(3n + 1))::before {
    display: none;
  }

  .cd-info > div:nth-child(2n)::before {
    display: block;
  }

  .cd-info-ic {
    width: 42px;
    height: 42px;
  }

  .cd-info h3 {
    font-size: 14.5px;
  }

  .cd-info p {
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .cd-copy h1 {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cd-go,
  .cd-lessons li {
    transition: none;
  }

  .cd-go:hover {
    transform: none;
  }
}

/* رأس التفاصيل: رسمة ونمط في عمود، والنص كامل في العمود الثاني */
.cd-board {
  display: grid;
  grid-template-columns: minmax(18rem, 50%) minmax(0, 1fr);
  grid-template-areas: "art copy";
  direction: ltr;
  align-items: stretch;
  min-height: 292px;
  overflow: hidden;
  background: #fff;
}

.cd-board > .cd-art {
  position: relative;
  inset: auto;
  grid-area: art;
  z-index: 0;
  min-height: 292px;
  overflow: hidden;
  background: #fff;
}

.cd-board > .cd-art .cd-scene {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 86% 40%;
  border-radius: 0;
  pointer-events: none;
  transform: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.cd-board > .cd-art .nx-mcard-geom {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 72%;
  height: 100%;
  aspect-ratio: auto;
  pointer-events: none;
}

.cd-board > .cd-art::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  bottom: 0;
  width: 14%;
  background: linear-gradient(to right, rgb(255 255 255 / 0) 0%, #fff 100%);
  pointer-events: none;
}

.cd-board > .cd-copy,
.cd-board--k3 > .cd-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-area: copy;
  direction: rtl;
  min-width: 0;
  padding: 32px 44px 28px 28px;
  background: #fff;
}

.cd-board > .cd-copy .cd-buy,
.cd-board--k3 > .cd-copy .cd-buy {
  margin-top: 0;
  padding-top: 22px;
  padding-right: 0;
}

@media (max-width: 860px) {
  .cd-board {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    grid-template-areas: none;
    min-height: 0;
    direction: ltr;
  }

  .cd-board > .cd-art {
    width: 100%;
    height: 11.2rem;
    min-height: 11.2rem;
    flex: 0 0 auto;
  }

  .cd-board > .cd-art .cd-scene {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 28% 42%;
  }

  .cd-board > .cd-art .nx-mcard-geom,
  .cd-board > .cd-art.has-cover .nx-mcard-geom {
    top: 0;
    left: 0;
    width: min(16rem, 62%);
    height: 118%;
    aspect-ratio: auto;
  }

  .cd-board > .cd-art .nx-geo-low {
    transform: none;
  }

  .cd-board > .cd-art::after {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 46%;
    background: linear-gradient(to bottom, rgb(255 255 255 / 0) 0%, #fff 88%);
  }

  .cd-board > .cd-copy,
  .cd-board--k3 > .cd-copy {
    width: 100%;
    padding: 2px 16px 18px;
  }

  .cd-board > .cd-copy .cd-meta {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .cd-board > .cd-copy h1 {
    font-size: 1.35rem;
  }
}

.cd-preview-note{max-width:1120px;margin:14px auto 0;padding:10px 16px;border:1px solid #e6cf8e;border-radius:10px;background:#fffdf7;color:#5a4a1a;font-size:.88rem}
.cd-preview-note strong{color:#8e5a08;margin-inline-end:8px}
