/* Learning Modules page styles */

.learning-modules-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 8% 14%,
      rgba(246, 198, 75, 0.14),
      transparent 24%
    ),
    radial-gradient(
      circle at 92% 78%,
      rgba(137, 208, 238, 0.14),
      transparent 26%
    ),
    linear-gradient(180deg, var(--paper) 0%, #ffffff 100%);
}

.learning-module-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background:
    radial-gradient(
      circle at top right,
      rgba(246, 198, 75, 0.1),
      transparent 30%
    ),
    #ffffff;
}

.learning-module-image {
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(180deg, var(--white), var(--sky-soft));
}

.learning-module-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.45s ease;
}

.learning-module-card:hover .learning-module-image img {
  transform: scale(1.025);
}

.learning-module-card .card-body-custom {
  flex: 1 1 auto;
}

.learning-module-card h3 {
  margin-bottom: 0.9rem;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.08;
}

.learning-module-card p {
  color: var(--text);
  line-height: 1.7;
}

.learning-module-card p:last-child {
  margin-bottom: 0;
}

.learning-modules-section .col-lg-4:nth-child(1) .learning-module-image {
  background: linear-gradient(180deg, var(--white), var(--sage-soft));
}

.learning-modules-section .col-lg-4:nth-child(2) .learning-module-image {
  background: linear-gradient(180deg, var(--white), var(--sky-soft));
}

.learning-modules-section .col-lg-4:nth-child(3) .learning-module-image {
  background: linear-gradient(180deg, var(--white), var(--coral-soft));
}

@media (max-width: 991.98px) {
  .learning-module-image {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 575.98px) {
  .learning-module-card {
    border-radius: 24px;
  }

  .learning-module-image {
    aspect-ratio: 3 / 4;
  }

  .learning-module-card h3 {
    font-size: 1.45rem;
  }
}
