/* Choose Your Learning Path — unified dark cards */

.learning-path-section {
  --lp-emerald: #0a302e;
  --lp-emerald-deep: #072824;
  --lp-ivory: #f8f3e8;
  --lp-muted: rgba(248, 243, 232, 0.78);
  --lp-gold: #c5923f;
  --lp-gold-soft: rgba(197, 146, 63, 0.35);
  scroll-margin-bottom: 5rem;
}

.learning-path-section__intro {
  max-width: 36rem;
  margin-inline: auto;
}

.learning-path-section__subtitle {
  max-width: 37.5rem;
  margin-inline: auto;
}

.learning-path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  padding: clamp(1.5rem, 2.5vw, 1.75rem);
  border-radius: 22px;
  background: linear-gradient(165deg, #0c3a36 0%, var(--lp-emerald) 52%, var(--lp-emerald-deep) 100%);
  color: var(--lp-ivory);
  border: 1px solid rgba(248, 243, 232, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 16px 40px rgba(7, 40, 36, 0.22);
  overflow: hidden;
  transition:
    transform 0.36s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.36s ease,
    border-color 0.36s ease;
}

.learning-path-card:hover {
  transform: translateY(-6px);
  border-color: var(--lp-gold-soft);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 24px 48px rgba(7, 40, 36, 0.32);
}

.learning-path-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  color: var(--lp-gold);
  transition: transform 0.35s ease;
}

.learning-path-card:hover .learning-path-icon {
  transform: translateY(-4px);
}

.learning-path-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.learning-path-card__title {
  font-family: var(--font-family-serif);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-warm-white, #fffdf8);
  margin-bottom: 0.65rem;
}

.learning-path-card__desc {
  flex: 1 1 auto;
  font-family: var(--font-family-sans);
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--lp-muted);
  margin-bottom: 1.35rem;
}

.learning-path-link {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-family-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--lp-gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.3s ease, gap 0.3s ease;
}

.learning-path-link::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-top: 2px solid currentColor;
  border-inline-end: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.1rem;
  transition: transform 0.3s ease;
}

[dir="rtl"] .learning-path-link::after {
  transform: rotate(225deg);
}

.learning-path-link:hover {
  color: #e4c078;
  gap: 0.5rem;
}

.learning-path-link:hover::after {
  transform: rotate(45deg) translate(2px, -2px);
}

[dir="rtl"] .learning-path-link:hover::after {
  transform: rotate(225deg) translate(-2px, 2px);
}

.learning-path-card {
  text-align: start;
}

@media (prefers-reduced-motion: reduce) {
  .learning-path-card,
  .learning-path-card:hover,
  .learning-path-icon,
  .learning-path-link,
  .learning-path-link::after {
    transition: none;
    transform: none;
  }
}
