/* ========== LEARN PAGE ========== */
.learn-page {
  background-color: #FFFFFF;
  background-image: url('/images/backgrounds/line_bg.png');
  background-repeat: repeat;
  background-position: top left;
  background-size: auto;
}

.learn-hero {
  padding: 120px 0 56px;
  text-align: center;
}

.learn-hero__title {
  font-family: var(--font-heading);
  font-size: 51.07px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #0B1020;
  margin: 0 auto 20px;
  max-width: 900px;
}

.learn-hero__title .accent {
  color: #4F46E5;
}

.learn-hero__sub {
  font-size: 17px;
  line-height: 1.7;
  color: #64748B;
  max-width: 760px;
  margin: 0 auto;
}

.learn-grid-section {
  padding: 40px 0 100px;
}

.learn-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px 60px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.learn-card {
  /* background: #FFFFFF; */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.learn-card[hidden] {
  display: none;
}

.learn-card__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  /* background: #E5E7EB; */
}

.learn-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.learn-card__body {
  padding: 24px 0px 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.learn-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 28.33px;
  color: #0B1020;
  margin: 0 0 10px;
}

.learn-card__desc {
  font-size: 13.33px;
  width: 100%;
  max-width: 570px;
  line-height: 24.17px;
  color: #64748B;
  margin: 0 0 18px;
}

.learn-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #4F46E5;
  margin-top: auto;
  text-decoration: none;
}

.learn-card__link-text {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.learn-card__link:hover {
  color: #4338CA;
}

.learn-card__link:hover .learn-card__link-text {
  text-decoration-color: #4338CA;
}

.learn-card__link img {
  width: 17px;
  height: 17px;
  display: block;
}

.learn-more {
  display: flex;
  justify-content: center;
  margin-top: 80px;
}

.learn-more__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid #4F46E51F;
  border-radius: 14.6px;
  background: #4F46E5;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.learn-more__btn:hover {
  background: #4338CA;
  transform: translateY(-1px);
}

.learn-more__btn img {
  width: 16px;
  height: 16px;
  display: block;
}

.learn-more.is-hidden {
  display: none;
}

@media (max-width: 900px) {
  .learn-hero {
    padding: 48px 0;
  }

  .learn-hero__title {
    font-size: var(--mobile-heading-size);
    line-height: var(--mobile-heading-line-height);
    text-align: left;
  }

  .learn-hero,
  .learn-hero__sub {
    text-align: left;
  }

  .learn-hero__sub {
    font-size: 15px;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .learn-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .learn-card__desc {
    width: auto;
    max-width: 100%;
  }

  .learn-grid-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

@media (max-width: 640px) {
  .learn-hero {
    padding: 40px 0;
  }

  .learn-grid-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .learn-card__title {
    font-size: 18px;
    line-height: 1.35;
  }

  .learn-more {
    margin-top: 40px;
  }
}
