/* Learners page — Tech section */

.learners-tech {
  --ula-content-max: 1284px;
  --ula-content-gutter: clamp(24px, 5vw, 80px);
  position: relative;
  overflow: hidden;
  background-color: #293579;
  background-image: url("../../images/learners/tech-section-bg.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  padding: clamp(72px, 9vw, 120px) var(--ula-content-gutter) clamp(96px, 10vw, 140px);
}

.learners-tech__container {
  position: relative;
  z-index: 1;
  max-width: var(--ula-content-max);
  margin: 0 auto;
}

.learners-tech__header {
  max-width: none;
  margin: 0 0 clamp(48px, 6vw, 72px);
  text-align: start;
}

.learners-tech__title {
  margin: 0 0 20px;
  font-family: "Granadia-Bold", sans-serif;
  font-size: clamp(2rem, 4vw, 54px);
  line-height: 1.15;
  letter-spacing: -1.92px;
  color: #ffffff;
  text-align: center;
}

.learners-tech__summary {
  text-align: center;
  font-family: "Granadia-Book", sans-serif;
  font-size: clamp(1rem, 2.2vw, 22px);
  line-height: 1.76;
  letter-spacing: -0.18px;
  color: rgba(255, 255, 255, 0.92);
  text-wrap: pretty;
}

.learners-tech__summary p {
  margin: 0;
}

.learners-tech__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 160px;
  padding-top: 45px;
}

.learners-tech__card {
  position: relative;
  width: 100%;
  min-height: 399px;
}

.learners-tech__card-border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.learners-tech__card-icon-wrap {
  position: absolute;
  top: -39px;
  inset-inline-start: 36px;
  inset-inline-end: auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  background: none;
}

.learners-tech__card-icon {
  display: block;
  width: auto;
  max-width: 96px;
  height: auto;
  max-height: 80px;
  object-fit: contain;
}

.learners-tech__card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 399px;
  padding-block: 76px 40px;
  padding-inline: 36px 32px;
  text-align: start;
}

.learners-tech__card-title {
  margin: 0 0 12px;
  font-family: "Granadia-Bold", sans-serif;
  font-size: clamp(1.25rem, 2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.18px;
  color: #ffffff;
}

.learners-tech__card-summary {
  font-family: "Granadia-Book", sans-serif;
  font-size: clamp(0.9375rem, 1.6vw, 18px);
  line-height: 1.65;
  letter-spacing: -0.1px;
  color: rgba(255, 255, 255, 0.9);
  text-wrap: pretty;
}

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

.learners-tech__card-border--rtl {
  display: none;
}

html[dir="rtl"] .learners-tech__card-border--ltr {
  display: none;
}

html[dir="rtl"] .learners-tech__card-border--rtl {
  display: block;
}

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

html[dir="rtl"] .learners-tech__card-inner,
html[dir="rtl"] .learners-tech__card-summary {
  text-align: right;
  align-items: flex-end;
}

html[lang="ar"] .learners-tech__title,
html[lang="ar"] .learners-tech__summary,
html[lang="ar"] .learners-tech__card-title,
html[lang="ar"] .learners-tech__card-summary {
  letter-spacing: 0;
}

html[lang="ar"] .learners-tech__summary,
html[lang="ar"] .learners-tech__card-summary {
  line-height: 1.85;
}

@media (max-width: 1200px) {
  .learners-tech__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: clamp(80px, 12vw, 160px);
  }
}

@media (max-width: 768px) {
  .learners-tech__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: clamp(64px, 10vw, 120px);
  }
}
