/* Find Your Eligible Courses — page + homepage teaser */

.elig-teaser {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 480px at 10% -10%, rgba(47, 102, 255, 0.16), transparent 60%),
    radial-gradient(900px 420px at 90% 0%, rgba(34, 211, 238, 0.12), transparent 55%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  border-block: 1px solid rgba(16, 53, 122, 0.08);
}
.elig-teaser::before {
  content: "";
  position: absolute;
  inset: -20% auto auto 60%;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,102,255,.12), transparent 70%);
  animation: elig-float 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes elig-float {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(-18px, 14px, 0); }
}

.elig-teaser-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.elig-teaser-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  color: var(--navy-900);
  margin: 12px 0 16px;
  letter-spacing: -0.02em;
}

.elig-teaser-copy p {
  color: var(--slate-700);
  max-width: 36rem;
  margin-bottom: 28px;
}

.elig-teaser-points {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
}

.elig-teaser-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--slate-700);
  font-size: 0.98rem;
}

.elig-teaser-points li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-500), var(--cyan-500));
  flex: 0 0 auto;
}

.elig-teaser-panel {
  background: white;
  border: 1px solid rgba(16, 53, 122, 0.1);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
  transform: translateY(0);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.elig-teaser:hover .elig-teaser-panel {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.elig-teaser-panel h3 {
  font-family: var(--font-display);
  color: var(--navy-900);
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.elig-teaser-panel p {
  color: var(--slate-500);
  margin: 0 0 18px;
  font-size: 0.95rem;
}

.elig-mini-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: elig;
}

.elig-mini-steps li {
  counter-increment: elig;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: #f4f7ff;
  color: var(--navy-800);
  font-weight: 500;
  font-size: 0.92rem;
}

.elig-mini-steps li::before {
  content: counter(elig);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.elig-page-hero.page-hero {
  background:
    radial-gradient(900px 360px at 80% -20%, rgba(34, 211, 238, 0.18), transparent 50%),
    var(--grad-hero);
}

.elig-shell {
  max-width: 980px;
  margin: 0 auto;
}

.elig-progress-wrap {
  margin-bottom: 28px;
}

.elig-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--slate-500);
  font-size: 0.92rem;
  font-weight: 600;
}

.elig-progress {
  height: 10px;
  border-radius: 999px;
  background: var(--slate-100);
  overflow: hidden;
  border: 1px solid var(--slate-200);
}

.elig-progress-fill {
  height: 100%;
  width: 8%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--royal-600), var(--cyan-500));
  transition: width 0.35s ease;
}

.elig-step-dots {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.elig-step-dot {
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: var(--slate-200);
  transition: background 0.25s ease, transform 0.25s ease;
}

.elig-step-dot.is-done {
  background: rgba(47, 102, 255, 0.35);
}

.elig-step-dot.is-active {
  background: var(--royal-500);
  transform: scaleY(1.25);
}

.elig-wizard-card {
  background: white;
  border: 1px solid rgba(16, 53, 122, 0.1);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 4vw, 36px);
}

.elig-wizard-card h2 {
  font-family: var(--font-display);
  color: var(--navy-900);
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.elig-wizard-card .elig-step-hint {
  color: var(--slate-500);
  margin: 0 0 24px;
}

.elig-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.elig-option {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--slate-200);
  background: #fff;
  color: var(--navy-900);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.elig-option:hover {
  border-color: rgba(47, 102, 255, 0.45);
  transform: translateY(-1px);
}

.elig-option.is-selected {
  border-color: var(--royal-500);
  background: linear-gradient(180deg, #f7f9ff 0%, #eef4ff 100%);
  box-shadow: 0 0 0 3px rgba(47, 102, 255, 0.12);
}

.elig-option-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--slate-200);
  flex: 0 0 auto;
  position: relative;
}

.elig-option.is-selected .elig-option-check {
  border-color: var(--royal-500);
  background: var(--royal-500);
}

.elig-option.is-selected .elig-option-check::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: white;
}

.elig-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.elig-form-error {
  margin-top: 14px;
  color: #b42318;
  font-weight: 600;
  font-size: 0.92rem;
}

.elig-profile-card {
  background: white;
  border: 1px solid rgba(16, 53, 122, 0.1);
  border-radius: var(--r-lg);
  padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.elig-profile-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.elig-profile-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: #f5f8ff;
}

.elig-profile-list span {
  color: var(--slate-500);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.elig-profile-list strong {
  color: var(--navy-900);
  font-size: 1rem;
}

.elig-summary-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.elig-summary-counts span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.elig-summary-counts .is-eligible,
.elig-status-badge.is-eligible {
  background: #e8f8ef;
  color: #067647;
}

.elig-summary-counts .is-potential,
.elig-status-badge.is-potential {
  background: #fff7e8;
  color: #b54708;
}

.elig-summary-counts .is-ineligible,
.elig-status-badge.is-ineligible {
  background: #feecec;
  color: #b42318;
}

.elig-result-group {
  margin-bottom: 48px;
}

.elig-result-group > h2 {
  font-family: var(--font-display);
  color: var(--navy-900);
  margin: 0 0 8px;
}

.elig-group-note {
  color: var(--slate-500);
  margin: 0 0 22px;
}

.elig-course-grid {
  display: grid;
  gap: 22px;
}

.elig-course-card {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 0;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(16, 53, 122, 0.1);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.elig-course-card.is-ineligible {
  opacity: 0.92;
}

.elig-course-media {
  position: relative;
  min-height: 220px;
  background: var(--navy-900);
}

.elig-course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.elig-status-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.elig-course-body {
  padding: 22px 24px 24px;
}

.elig-cat {
  margin: 0 0 6px;
  color: var(--royal-600);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.elig-course-body h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  color: var(--navy-900);
  font-size: 1.35rem;
}

.elig-desc {
  color: var(--slate-700);
  margin: 0 0 16px;
}

.elig-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 18px;
}

.elig-meta-grid div {
  background: #f5f8ff;
  border-radius: var(--r-sm);
  padding: 12px 14px;
}

.elig-meta-grid dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-500);
  font-weight: 700;
  margin-bottom: 4px;
}

.elig-meta-grid dd {
  margin: 0;
  color: var(--navy-900);
  font-weight: 600;
  font-size: 0.95rem;
}

.elig-pathway-block h4 {
  margin: 0 0 10px;
  color: var(--navy-900);
  font-size: 0.95rem;
}

.elig-career-path {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
  align-items: stretch;
}

.elig-career-path li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #f8fafc;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  min-width: 140px;
  position: relative;
}

.elig-career-role {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.9rem;
}

.elig-career-type {
  font-size: 0.75rem;
  color: var(--slate-500);
}

.elig-career-arrow {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--royal-500);
  font-weight: 700;
  background: white;
  padding: 0 2px;
  z-index: 1;
}

.elig-reasons,
.elig-missing ul {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--slate-700);
}

.elig-missing {
  background: #fff7e8;
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
  color: #9a3412;
}

.elig-alts {
  margin: 0 0 14px;
  color: var(--slate-700);
}

.elig-pill {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.elig-pill-soon {
  background: #eef2ff;
  color: var(--royal-600);
}

.elig-card-actions {
  margin-top: 8px;
}

.elig-disclaimer {
  color: var(--slate-500);
  font-size: 0.92rem;
  border-left: 3px solid var(--royal-400);
  padding-left: 14px;
  margin: 8px 0 0;
}

.elig-ineligible-details summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy-900);
  font-weight: 700;
}

.elig-help {
  background: var(--grad-hero);
  color: white;
  border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
  border: none;
}

.elig-help h2 {
  color: white;
  margin: 0 0 10px;
  font-family: var(--font-display);
}

.elig-help p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 540px;
  margin: 0 auto 22px;
}

.elig-help .btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: white;
}

@media (max-width: 900px) {
  .elig-teaser-grid,
  .elig-course-card,
  .elig-profile-list,
  .elig-meta-grid,
  .elig-options {
    grid-template-columns: 1fr;
  }

  .elig-course-media {
    min-height: 180px;
  }

  .elig-career-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .elig-teaser-panel,
  .elig-option,
  .elig-progress-fill,
  .elig-step-dot {
    transition: none;
  }
}
