/* تخطيط صفحة الدورة: نموذج + إعلان الباقة جانبي — mobile-first (إصلاح Chrome RTL) */

.lp-wrap--with-aside {
  max-width: 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* جوال/تابلت: عمود واحد — لا Grid (Chrome RTL يضع المحتوى في عمود 32vw) */
.lp-landing-layout {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.lp-landing-layout__main,
.lp-bundle-promo-slot--inline,
.lp-landing-layout__aside {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.lp-landing-layout__aside {
  display: none;
}

.lp-bundle-promo-slot--inline {
  margin: 22px 0 8px;
}

/* إعلان الباقة — عمود جانبي */
.lp-bundle-aside {
  background: linear-gradient(165deg, #fff 0%, #f0f8fa 45%, #faf7ee 100%);
  border: 1px solid rgba(0, 91, 111, 0.22);
  border-radius: var(--lp-radius, 16px);
  box-shadow: 0 10px 28px rgba(0, 45, 55, 0.08);
  padding: 16px 14px 14px;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.lp-bundle-aside::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--lp-primary, #005b6f), var(--lp-gold, #c5b358));
}

.lp-bundle-aside--inline {
  margin-bottom: 20px;
}

.lp-bundle-aside__head {
  margin-bottom: 12px;
}

.lp-bundle-aside__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--lp-primary, #005b6f);
  background: #fff;
  border: 1px solid rgba(0, 91, 111, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.lp-bundle-aside__title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  line-height: 1.4;
  font-weight: 800;
  color: var(--lp-primary-dark, #004555);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.lp-bundle-aside__lead {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--lp-muted, #5c6f7d);
}

.lp-bundle-aside__packs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-bundle-aside__pack {
  background: #fff;
  border: 1px solid var(--lp-border, #d4dee6);
  border-radius: 12px;
  padding: 12px;
}

.lp-bundle-aside__pack-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--lp-primary, #005b6f);
  line-height: 1.35;
  word-break: break-word;
}

.lp-bundle-aside__pack-meta {
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: var(--lp-muted, #5c6f7d);
}

.lp-bundle-aside .lp-bundle-price {
  margin: 8px 0 0;
  padding: 8px 10px;
  font-size: 0.9em;
}
.lp-bundle-aside .lp-bundle-price__free {
  font-size: 0.75rem;
}
.lp-bundle-aside .lp-bundle-price__certs,
.lp-bundle-aside .lp-bundle-price__paid {
  font-size: 0.74rem;
}
.lp-bundle-aside .lp-bundle-price__certs-save {
  font-size: 0.66rem;
}
.lp-bundle-aside .lp-bundle-price__certs-note {
  font-size: 0.65rem;
}
.lp-bundle-aside .lp-bundle-courses {
  margin-bottom: 8px;
}
.lp-bundle-aside__tier .lp-bundle-price {
  margin-top: 6px;
  padding: 6px 8px;
}

.lp-bundle-aside__prices {
  margin: 0 0 10px;
  padding: 10px;
  border-radius: 8px;
  background: #f8fbfc;
  border: 1px solid #dce8ec;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lp-bundle-aside__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.lp-bundle-aside__price-lbl {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--lp-muted, #5c6f7d);
}

.lp-bundle-aside__price-val {
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.lp-bundle-aside__price-val--before {
  color: var(--lp-muted, #5c6f7d);
  text-decoration: line-through;
  text-decoration-color: rgba(92, 111, 125, 0.55);
}

.lp-bundle-aside__price-val--after {
  color: #0a7a5c;
}

.lp-bundle-aside__price-row--after .lp-bundle-aside__price-lbl {
  color: var(--lp-primary-dark, #004555);
  font-weight: 700;
}

.lp-bundle-aside__tier-prices {
  display: block;
  margin-top: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0a7a5c;
}

.lp-bundle-aside__pack-hint {
  margin: 0 0 10px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--lp-muted, #5c6f7d);
}

.lp-bundle-aside__tiers {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lp-bundle-aside__tier {
  padding: 8px 10px;
  border-radius: 8px;
  background: #f4fafb;
  border: 1px solid #d8e8ec;
}

.lp-bundle-aside__tier-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.lp-bundle-aside__tier-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--lp-text, #1a2832);
}

.lp-bundle-aside__disc {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #0a7a5c, #0d9b6e);
  white-space: nowrap;
}

.lp-bundle-aside__tier-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--lp-muted, #5c6f7d);
  line-height: 1.35;
}

.lp-bundle-aside__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--lp-primary, #005b6f);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  text-align: center;
  transition: background 0.15s, transform 0.1s;
}

.lp-bundle-aside__btn:hover {
  background: var(--lp-primary-dark, #004555);
  transform: translateY(-1px);
}

.lp-bundle-aside__foot {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--lp-border, #d4dee6);
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--lp-muted, #5c6f7d);
  text-align: center;
}

@media (max-width: 899px) {
  .lp-landing-layout__aside {
    display: none !important;
  }

  .lp-bundle-aside--inline {
    margin-bottom: 16px;
  }

  .lp-bundle-aside {
    padding: 14px 12px 12px;
  }

  .lp-bundle-aside__title {
    font-size: 0.98rem;
  }

  .lp-bundle-aside__btn {
    min-height: 44px;
    padding: 11px 12px;
  }

  .lp-bundle-aside__price-val {
    white-space: normal;
    word-break: break-word;
  }

  .lp-bundle-aside__disc {
    white-space: normal;
    text-align: start;
    line-height: 1.3;
  }
}

@media (min-width: 900px) {
  .lp-wrap--with-aside {
    max-width: 1080px;
  }

  .lp-bundle-promo-slot--inline {
    display: none !important;
  }

  .lp-landing-layout {
    display: grid;
    gap: 20px;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 272px);
    grid-template-areas: "main aside";
  }

  html[dir="ltr"] .lp-landing-layout {
    grid-template-columns: minmax(240px, 272px) minmax(0, 1fr);
    grid-template-areas: "aside main";
  }

  .lp-landing-layout__main {
    grid-area: main;
    min-width: 0;
    width: auto;
    max-width: none;
  }

  .lp-landing-layout__aside {
    display: block !important;
    grid-area: aside;
    min-width: 0;
    width: auto;
    max-width: none;
  }

  .lp-landing-layout__aside[hidden] {
    display: block !important;
  }

  .lp-landing-layout__aside .lp-bundle-aside {
    position: sticky;
    top: 12px;
  }
}
