/* Learners page — Adaptive learning section */

.learners-adaptive {
  --ula-content-max: 1284px;
  --ula-content-gutter: clamp(24px, 5vw, 80px);
  background: #ffffff;
  padding: clamp(72px, 9vw, 120px) var(--ula-content-gutter) clamp(96px, 10vw, 140px);
}

.learners-adaptive__container {
  max-width: var(--ula-content-max);
  margin: 0 auto;
}

.learners-adaptive__header {
  max-width: none;
  margin: 0 0 clamp(32px, 4vw, 48px);
  text-align: start;
}

.learners-adaptive__title {
  color: #293579;
  text-align: center;
  font-family: "Granadia-Bold", sans-serif;
  font-size: clamp(2rem, 4vw, 54px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -1.92px;
  margin: 0 0 30px;
}

.learners-adaptive__summary {
  font-family: "Granadia-Book", sans-serif;
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
  color: #6b6b6b;
  line-height: 32px;
  letter-spacing: -0.18px;
  text-align: center;
}

.learners-adaptive__summary p {
  margin: 0;
}

.learners-adaptive__how-title {
  margin: 0 0 clamp(36px, 5vw, 56px);
  font-family: "Granadia-Bold", sans-serif;
  font-size: clamp(1.125rem, 2vw, 22px);
  line-height: 1.76;
  letter-spacing: -0.18px;
  color: #6b6b6b;
  text-align: center;
}

.learners-adaptive__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: clamp(12px, 2vw, 20px);
}

.learners-adaptive__card {
  flex: 1 1 220px;
  max-width: 262px;
  /* min-height: 404px; */
  padding: clamp(24px, 3vw, 20px) clamp(20px, 2.5vw, 28px);
  border-radius: 12px;
  background: #6ac0ec;
}

.learners-adaptive__card-title {
  font-family: "Granadia-Bold", sans-serif;
  font-size: clamp(1.125rem, 2vw, 22px);
  line-height: 1.35;
  letter-spacing: -0.18px;
  color: #ffffff;
}

.learners-adaptive__card-summary {
  font-family: "Granadia-Book", sans-serif;
  font-size: 18px;
  line-height: 2;
  letter-spacing: -0.1px;
  color: #ffffff;
  text-wrap: pretty;
}

.learners-adaptive__card-summary p {
  margin: 0;
}

.learners-adaptive__arrow {
  flex: 0 0 auto;
  align-self: center;
  width: clamp(32px, 4vw, 48px);
  height: auto;
  object-fit: contain;
}

.learners-adaptive__flow > .learners-adaptive__card,
.learners-adaptive__flow > .learners-adaptive__arrow {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
}

.learners-adaptive__flow.is-inview > .learners-adaptive__card,
.learners-adaptive__flow.is-inview > .learners-adaptive__arrow {
  animation: learners-adaptive-flow-in 0.22s ease-out forwards;
}

.learners-adaptive__flow.is-inview > *:nth-child(1) { animation-delay: 0ms; }
.learners-adaptive__flow.is-inview > *:nth-child(2) { animation-delay: 90ms; }
.learners-adaptive__flow.is-inview > *:nth-child(3) { animation-delay: 180ms; }
.learners-adaptive__flow.is-inview > *:nth-child(4) { animation-delay: 270ms; }
.learners-adaptive__flow.is-inview > *:nth-child(5) { animation-delay: 360ms; }
.learners-adaptive__flow.is-inview > *:nth-child(6) { animation-delay: 450ms; }
.learners-adaptive__flow.is-inview > *:nth-child(7) { animation-delay: 540ms; }

@keyframes learners-adaptive-flow-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .learners-adaptive__flow > .learners-adaptive__card,
  .learners-adaptive__flow > .learners-adaptive__arrow,
  .learners-adaptive__flow.is-inview > .learners-adaptive__card,
  .learners-adaptive__flow.is-inview > .learners-adaptive__arrow {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

html[dir="rtl"] .learners-adaptive__card,
html[dir="rtl"] .learners-adaptive__card-summary {
  text-align: right;
}

html[dir="rtl"] .learners-adaptive__arrow {
  transform: rotate(180deg) !important;
}

html[lang="ar"] .learners-adaptive__title,
html[lang="ar"] .learners-adaptive__summary,
html[lang="ar"] .learners-adaptive__how-title,
html[lang="ar"] .learners-adaptive__card-title,
html[lang="ar"] .learners-adaptive__card-summary {
  letter-spacing: 0;
}

html[lang="ar"] .learners-adaptive__summary,
html[lang="ar"] .learners-adaptive__card-summary {
  line-height: 1.9;
}

@media (max-width: 991px) {
  .learners-adaptive__flow {
    flex-direction: column;
    align-items: stretch;
  }

  .learners-adaptive__card {
    width: 100%;
    max-width: none;
  }

  .learners-adaptive__arrow {
    transform: rotate(90deg);
  }

  html[dir="rtl"] .learners-adaptive__flow {
    flex-direction: column;
  }

  html[dir="rtl"] .learners-adaptive__arrow {
    transform: rotate(90deg) !important;
  }
}
