/* Responsive refinement layer for the Arabic course landing page. */
:root {
  --course-max: 1180px;
  --course-gutter: clamp(16px, 4vw, 42px);
  --course-radius: clamp(18px, 2.4vw, 30px);
}

body {
  overflow-x: hidden;
  font-size: clamp(16px, 1.1vw, 18px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.course-shell {
  width: min(var(--course-max), calc(100% - (var(--course-gutter) * 2)));
}

.course-nav .course-shell {
  height: clamp(66px, 6vw, 78px);
}

.course-brand {
  flex: 0 0 auto;
  font-size: clamp(20px, 1.6vw, 24px);
}

.course-brand img {
  width: clamp(36px, 3vw, 42px);
  height: clamp(36px, 3vw, 42px);
}

.course-links {
  gap: clamp(14px, 2.2vw, 30px);
  font-size: clamp(14px, 1.05vw, 17px);
}

.course-button {
  min-height: clamp(46px, 4vw, 52px);
  padding-inline: clamp(18px, 2vw, 28px);
  white-space: nowrap;
}

.course-hero {
  min-height: min(820px, calc(100svh - 76px));
  display: grid;
  align-items: center;
  padding-block: clamp(58px, 8vw, 112px);
}

.course-hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: clamp(42px, 7vw, 92px);
}

.course-hero-grid > div:first-child {
  min-width: 0;
}

.course-kicker {
  font-size: clamp(12px, 1vw, 15px);
  letter-spacing: .04em;
}

.course-hero h1 {
  max-width: 780px;
  font-size: clamp(48px, 5.25vw, 72px);
  line-height: 1.32;
  letter-spacing: -.045em;
  text-wrap: balance;
  margin-block: clamp(18px, 2vw, 26px);
}

.course-lead {
  max-width: 670px;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.9;
  text-wrap: pretty;
}

.course-actions {
  gap: 14px;
  margin-top: clamp(28px, 3vw, 38px);
}

.course-proof {
  gap: 12px clamp(18px, 2.2vw, 32px);
  margin-top: clamp(24px, 3vw, 38px);
  font-size: clamp(14px, 1vw, 17px);
}

.course-window {
  width: 100%;
  max-width: 530px;
  justify-self: end;
  border-radius: var(--course-radius);
  transform: rotate(-1deg);
}

.window-body {
  padding: clamp(20px, 3vw, 34px);
}

.mini-store-head {
  gap: 16px;
}

.mini-store-head small {
  color: var(--muted);
  text-align: left;
}

.mini-card {
  min-height: clamp(120px, 12vw, 164px);
  font-size: clamp(15px, 1.15vw, 18px);
}

.course-strip {
  padding-block: clamp(24px, 3vw, 34px);
}

.course-strip .course-shell {
  gap: 12px clamp(16px, 3vw, 38px);
}

.course-strip strong {
  font-size: clamp(19px, 1.8vw, 27px);
}

.course-strip span {
  display: block;
  font-size: clamp(13px, 1vw, 16px);
}

.course-section {
  padding-block: clamp(72px, 8vw, 112px);
}

.section-head {
  max-width: 790px;
  margin-bottom: clamp(32px, 4vw, 54px);
}

.section-head h2,
.course-showcase h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.45;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.section-head p {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.9;
}

.course-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.course-card,
.module {
  border-radius: var(--course-radius);
}

.course-card {
  padding: clamp(24px, 3vw, 34px);
}

.course-card h3,
.module h3,
.showcase-list h3 {
  line-height: 1.5;
}

.course-card p,
.module p,
.showcase-list p {
  line-height: 1.8;
}

.course-map {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.module {
  padding: clamp(20px, 2.4vw, 28px);
}

.course-showcase {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(38px, 6vw, 78px);
}

.showcase-screen {
  min-height: clamp(330px, 32vw, 440px);
  padding: clamp(26px, 4vw, 44px);
}

.showcase-screen h3 {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.5;
  text-wrap: balance;
}

.course-cta-box {
  padding: clamp(34px, 5vw, 68px);
  border-radius: var(--course-radius);
}

.course-cta-box h2 {
  text-wrap: balance;
}

@media (max-width: 1020px) {
  .course-hero {
    min-height: auto;
  }

  .course-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(310px, .82fr);
    gap: 38px;
  }

  .course-hero h1 {
    font-size: clamp(43px, 5.9vw, 58px);
  }

  .course-links a:not(.course-button) {
    display: none;
  }
}

@media (max-width: 760px) {
  .course-nav {
    position: relative;
  }

  .course-nav .course-shell {
    gap: 10px;
  }

  .course-links {
    margin-inline-start: auto;
  }

  .course-links .course-button {
    min-height: 42px;
    padding-inline: 15px;
    font-size: 13px;
  }

  .course-hero {
    padding-block: 52px 68px;
  }

  .course-hero-grid,
  .course-showcase {
    grid-template-columns: minmax(0, 1fr);
  }

  .course-hero-grid {
    gap: 52px;
  }

  .course-hero-grid > div:first-child {
    text-align: center;
  }

  .course-kicker {
    justify-content: center;
  }

  .course-hero h1 {
    max-width: 620px;
    margin-inline: auto;
    font-size: clamp(38px, 10.7vw, 52px);
    line-height: 1.42;
    letter-spacing: -.035em;
  }

  .course-lead {
    max-width: 600px;
    margin-inline: auto;
    font-size: clamp(17px, 4.6vw, 20px);
    line-height: 2;
  }

  .course-actions,
  .course-proof {
    justify-content: center;
  }

  .course-actions .course-button {
    flex: 1 1 210px;
  }

  .course-window {
    justify-self: center;
    transform: none;
  }

  .course-strip .course-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-grid,
  .course-map {
    grid-template-columns: minmax(0, 1fr);
  }

  .course-showcase > div:last-child {
    order: -1;
  }

  .course-cta-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .course-shell {
    width: calc(100% - 28px);
  }

  .course-brand {
    font-size: 19px;
  }

  .course-brand img {
    width: 34px;
    height: 34px;
  }

  .course-links .course-button {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .course-hero h1 {
    font-size: clamp(35px, 10.5vw, 43px);
    line-height: 1.5;
  }

  .course-proof {
    display: grid;
    justify-items: start;
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    text-align: right;
  }

  .window-body {
    padding: 18px;
  }

  .mini-store-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .mini-store-head small {
    text-align: right;
  }

  .mini-card {
    min-height: 108px;
    padding: 14px;
  }

  .course-strip .course-shell {
    gap: 22px 10px;
  }

  .module {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .showcase-list article {
    grid-template-columns: 38px 1fr;
  }

  .showcase-list b {
    width: 38px;
    height: 38px;
  }
}

/* Purchase journey */
.course-purchase {
  background: #f4eee5;
  border-block: 1px solid rgba(23, 52, 59, .1);
}

.purchase-head {
  max-width: 760px;
}

.purchase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.purchase-steps {
  display: grid;
  gap: 16px;
}

.purchase-steps article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid rgba(23, 52, 59, .11);
  border-radius: 20px;
  background: rgba(255, 255, 255, .68);
}

.purchase-steps b {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #d8ebe1;
  color: #17343b;
  font-size: 22px;
}

.purchase-steps h3,
.purchase-card h3 { margin: 0 0 7px; }
.purchase-steps p { margin: 0; color: #657376; line-height: 1.8; }

.purchase-card {
  padding: clamp(26px, 4vw, 42px);
  border-radius: 28px;
  background: #17343b;
  color: #fff;
  box-shadow: 0 24px 60px rgba(23, 52, 59, .18);
}

.purchase-label {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(240, 129, 96, .18);
  color: #ffad92;
  font-weight: 800;
}

.purchase-card h3 { font-size: clamp(25px, 3vw, 36px); line-height: 1.5; }
.purchase-card ul { display: grid; gap: 12px; margin: 24px 0 28px; padding: 0; list-style: none; }
.purchase-card li { position: relative; padding-right: 27px; color: #dce7e5; line-height: 1.7; }
.purchase-card li::before { content: "✓"; position: absolute; right: 0; color: #7dd0a4; font-weight: 900; }
.purchase-button { width: 100%; background: #f08160; color: #fff; border-color: #f08160; }
.purchase-button:hover { background: #dc6d4e; border-color: #dc6d4e; }
.purchase-card small { display: block; margin-top: 15px; color: #b7c8c6; text-align: center; }

@media (max-width: 820px) {
  .purchase-layout { grid-template-columns: 1fr; }
  .purchase-card { max-width: 620px; width: 100%; justify-self: center; }
}

@media (max-width: 430px) {
  .purchase-steps article { grid-template-columns: 44px minmax(0, 1fr); gap: 13px; padding: 18px 15px; }
  .purchase-steps b { width: 44px; height: 44px; border-radius: 13px; font-size: 19px; }
  .purchase-card { padding: 24px 18px; border-radius: 22px; }
}
