/* =========================================================
   Course final project = jp-final look + readable teacher card
   ========================================================= */
.final-project-card,
.project-card-ms {
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(125, 211, 252, 0.28) !important;
  border-radius: 1.35rem !important;
  background:
    radial-gradient(circle at 92% 8%, rgba(249, 115, 22, 0.22), transparent 28%),
    radial-gradient(circle at 8% 90%, rgba(56, 189, 248, 0.18), transparent 32%),
    linear-gradient(145deg, #07111f 0%, #0c1c33 52%, #132238 100%) !important;
  box-shadow:
    0 1.6rem 3.2rem rgba(7, 17, 31, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  color: #f8fafc !important;
}

.final-project-card::before,
.project-card-ms::before,
.final-project-card::after,
.project-card-ms::after {
  display: none !important;
  content: none !important;
  animation: none !important;
}

.final-project-card h2,
.final-project-card h3,
.final-project-card h4,
.project-card-ms h3 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-family: "Manrope", system-ui, sans-serif !important;
  font-weight: 850 !important;
  letter-spacing: -0.04em !important;
  text-shadow: none !important;
}

.final-project-card ul:not(.fp-teacher-card__points) li i,
.final-project-card .bi-check-circle-fill,
.final-project-card .bi-check2-circle:not(.fp-teacher-card__points .bi-check2-circle),
.final-project-card .text-warning {
  color: #fdba74 !important;
  -webkit-text-fill-color: #fdba74 !important;
}

/* ---------- Teacher card: no code, dark readable text ---------- */
aside.fp-teacher-card,
.fp-teacher-card.bg-white,
.final-project-card aside.fp-teacher-card,
.project-card-ms aside.fp-teacher-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.9rem !important;
  width: 100% !important;
  max-width: 22rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 1.15rem 1.2rem 1.2rem !important;
  border-radius: 1.15rem !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.32) !important;
  text-align: left !important;
  color: #0b1424 !important;
  -webkit-text-fill-color: #0b1424 !important;
}

.fp-teacher-card__code {
  display: none !important;
}

.fp-teacher-card__person {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
}

.fp-teacher-card__photo {
  flex: 0 0 auto !important;
  width: 4.5rem !important;
  height: 4.5rem !important;
  object-fit: cover !important;
  object-position: center top !important;
  border-radius: 999px !important;
  border: 3px solid #fff !important;
  box-shadow:
    0 0 0 2px #ea580c,
    0 0.45rem 0.9rem rgba(15, 23, 42, 0.18) !important;
  background: #e2e8f0 !important;
}

.fp-teacher-card__who {
  min-width: 0 !important;
  display: grid !important;
  gap: 0.25rem !important;
}

.final-project-card .fp-teacher-card .fp-teacher-card__name,
.final-project-card .fp-teacher-card strong.fp-teacher-card__name,
.final-project-card .fp-teacher-card strong,
.project-card-ms .fp-teacher-card .fp-teacher-card__name,
.project-card-ms .fp-teacher-card strong,
body .final-project-card .fp-teacher-card .fp-teacher-card__name,
body .final-project-card .fp-teacher-card strong {
  display: block !important;
  margin: 0 !important;
  color: #0b1424 !important;
  -webkit-text-fill-color: #0b1424 !important;
  font-family: "Manrope", system-ui, sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 850 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.25 !important;
}

.final-project-card .fp-teacher-card .fp-teacher-card__role,
.project-card-ms .fp-teacher-card .fp-teacher-card__role,
body .final-project-card .fp-teacher-card .fp-teacher-card__role {
  display: block !important;
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

.final-project-card .fp-teacher-card .fp-teacher-card__lead,
.final-project-card .fp-teacher-card p.fp-teacher-card__lead,
.project-card-ms .fp-teacher-card .fp-teacher-card__lead,
body .final-project-card .fp-teacher-card p.fp-teacher-card__lead {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  color: #1e293b !important;
  -webkit-text-fill-color: #1e293b !important;
  font-size: 0.86rem !important;
  font-weight: 550 !important;
  line-height: 1.45 !important;
  display: block !important;
}

.fp-teacher-card__points {
  list-style: none !important;
  margin: 0 !important;
  padding: 0.85rem 0 0 !important;
  border-top: 1px solid rgba(15, 23, 42, 0.1) !important;
  display: grid !important;
  gap: 0.55rem !important;
}

.final-project-card .fp-teacher-card .fp-teacher-card__points li,
.project-card-ms .fp-teacher-card .fp-teacher-card__points li,
body .final-project-card .fp-teacher-card .fp-teacher-card__points li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.45rem !important;
  margin: 0 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-size: 0.84rem !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
}

.final-project-card .fp-teacher-card .fp-teacher-card__points li span,
.project-card-ms .fp-teacher-card .fp-teacher-card__points li span,
body .final-project-card .fp-teacher-card .fp-teacher-card__points li span {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

.final-project-card .fp-teacher-card .fp-teacher-card__points i,
.project-card-ms .fp-teacher-card .fp-teacher-card__points i,
body .final-project-card .fp-teacher-card .fp-teacher-card__points i {
  color: #ea580c !important;
  -webkit-text-fill-color: #ea580c !important;
  font-size: 1.05rem !important;
  margin-top: 0.05rem !important;
  flex: 0 0 auto !important;
}

/* Hide legacy note if any remain */
.fp-teacher-card__note {
  display: none !important;
}

@media (max-width: 991.98px) {
  .fp-teacher-card {
    max-width: 100% !important;
  }
}

@media (max-width: 575.98px) {
  .fp-teacher-card__person {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .fp-teacher-card__photo {
    width: 4rem !important;
    height: 4rem !important;
  }

  html body .final-project-card .card-body {
    padding: 1.15rem !important;
  }

  html body .final-project-card h3 {
    font-size: 1.2rem !important;
    text-align: left !important;
    line-height: 1.25 !important;
  }

  html body .final-project-card .lead {
    font-size: 0.95rem !important;
    margin-bottom: 1rem !important;
  }
}

/* ---------- Tech / status badges inside final project (readable) ---------- */
.final-project-card .tech-badges,
.project-card-ms .tech-badges,
#program .final-project-card .tech-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
}

html body .final-project-card .badge,
html body .final-project-card .badge.bg-light,
html body .final-project-card .badge.bg-light.text-dark,
html body .final-project-card .tech-badges .badge,
html body #program .final-project-card .tech-badges .badge,
html body.course-page .final-project-card .badge.bg-light,
html body.course-page #program .final-project-card .tech-badges .badge,
html body .project-card-ms .badge.bg-light {
  background: rgba(14, 165, 233, 0.2) !important;
  border: 1px solid rgba(125, 211, 252, 0.5) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 750 !important;
  box-shadow: none !important;
}

html body .final-project-card .badge *,
html body .final-project-card .badge i,
html body .final-project-card .badge.bg-light *,
html body .final-project-card .badge.bg-light.text-dark *,
html body .final-project-card .tech-badges .badge *,
html body #program .final-project-card .tech-badges .badge *,
html body #program .final-project-card .tech-badges .badge i,
html body.course-page .final-project-card .badge.bg-light *,
html body .project-card-ms .badge.bg-light * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html body .final-project-card .badge.bg-danger,
html body .final-project-card .badge.bg-danger.text-white,
html body #program .final-project-card .badge.bg-danger {
  background: linear-gradient(100deg, #ea580c, #f59e0b) !important;
  border: 1px solid rgba(253, 186, 116, 0.45) !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  font-weight: 800 !important;
}

html body .final-project-card .badge.bg-danger *,
html body .final-project-card .badge.bg-danger.text-white *,
html body #program .final-project-card .badge.bg-danger * {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}

html body .final-project-card .badge.bg-secondary,
html body .final-project-card .badge.bg-secondary.text-white,
html body #program .final-project-card .badge.bg-secondary {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(226, 232, 240, 0.35) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 750 !important;
}

html body .final-project-card .badge.bg-secondary *,
html body .final-project-card .badge.bg-secondary.text-white *,
html body #program .final-project-card .badge.bg-secondary * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Stack chips in final-project card — high contrast, no Bootstrap bg-light */
html body .final-project-card .fp-stack-chip,
html body #program .final-project-card .fp-stack-chip,
html body .final-project-card .tech-badges .fp-stack-chip,
html body.course-page .final-project-card .fp-stack-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  padding: 0.5rem 0.95rem !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #0b1424 !important;
  -webkit-text-fill-color: #0b1424 !important;
  font-weight: 750 !important;
  font-size: 0.86rem !important;
  line-height: 1.2 !important;
  box-shadow: 0 0.35rem 0.9rem rgba(0, 0, 0, 0.18) !important;
}

html body .final-project-card .fp-stack-chip *,
html body .final-project-card .fp-stack-chip i,
html body #program .final-project-card .fp-stack-chip *,
html body #program .final-project-card .fp-stack-chip i,
html body.course-page .final-project-card .fp-stack-chip * {
  color: #0e7490 !important;
  -webkit-text-fill-color: #0e7490 !important;
}

html body .final-project-card .fp-status-chip,
html body #program .final-project-card .fp-status-chip--accent {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.5rem 0.95rem !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  font-size: 0.86rem !important;
  line-height: 1.2 !important;
}

html body .final-project-card .fp-status-chip--accent,
html body #program .final-project-card .fp-status-chip--accent {
  background: linear-gradient(100deg, #ea580c, #f59e0b) !important;
  border: 1px solid rgba(253, 186, 116, 0.5) !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}

html body .final-project-card .fp-status-chip--muted,
html body #program .final-project-card .fp-status-chip--muted {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(226, 232, 240, 0.35) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* ---------- Feature checklist: one mark, readable on mobile ---------- */
html body .final-project-card > .card-body > .row ul.list-unstyled:not(.fp-teacher-card__points),
html body #program .final-project-card > .card-body > .row ul.list-unstyled:not(.fp-teacher-card__points),
html body .final-project-card .col-lg-8 > ul.list-unstyled,
html body #program .final-project-card .col-lg-8 > ul.list-unstyled,
html body .project-card-ms .col-lg-8 > ul.list-unstyled {
  display: grid !important;
  gap: 0.55rem !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
}

html body .final-project-card > .card-body > .row ul.list-unstyled:not(.fp-teacher-card__points) > li,
html body #program .final-project-card > .card-body > .row ul.list-unstyled:not(.fp-teacher-card__points) > li,
html body .final-project-card .col-lg-8 > ul.list-unstyled > li,
html body #program .final-project-card .col-lg-8 > ul.list-unstyled > li,
html body .project-card-ms .col-lg-8 > ul.list-unstyled > li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.7rem !important;
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0.55rem 0.65rem !important;
  border-radius: 0.7rem !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  font-size: 0.95rem !important;
  font-weight: 550 !important;
  line-height: 1.45 !important;
}

/* Kill duplicate ✓ from java.css / bright.css — HTML already has <i> */
html body .final-project-card > .card-body ul.list-unstyled:not(.fp-teacher-card__points) > li::before,
html body #program .final-project-card ul.list-unstyled:not(.fp-teacher-card__points) > li::before,
html body .final-project-card .col-lg-8 > ul.list-unstyled > li::before,
html body .project-card-ms .col-lg-8 > ul.list-unstyled > li::before {
  content: none !important;
  display: none !important;
}

html body .final-project-card > .card-body ul.list-unstyled:not(.fp-teacher-card__points) > li > i,
html body #program .final-project-card ul.list-unstyled:not(.fp-teacher-card__points) > li > i,
html body .final-project-card .col-lg-8 > ul.list-unstyled > li > i,
html body .project-card-ms .col-lg-8 > ul.list-unstyled > li > i {
  position: static !important;
  left: auto !important;
  top: auto !important;
  flex: 0 0 1.35rem !important;
  width: 1.35rem !important;
  min-width: 1.35rem !important;
  margin: 0.12rem 0 0 !important;
  padding: 0 !important;
  color: #fdba74 !important;
  -webkit-text-fill-color: #fdba74 !important;
  font-size: 1.15rem !important;
  line-height: 1 !important;
}

html body .final-project-card > .card-body ul.list-unstyled:not(.fp-teacher-card__points) > li > a,
html body #program .final-project-card ul.list-unstyled:not(.fp-teacher-card__points) > li > a,
html body .final-project-card .col-lg-8 > ul.list-unstyled > li a {
  color: #fdba74 !important;
  -webkit-text-fill-color: #fdba74 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-underline-offset: 0.15em !important;
  white-space: nowrap !important;
}

@media (max-width: 767.98px) {
  html body .final-project-card > .card-body > .row ul.list-unstyled:not(.fp-teacher-card__points),
  html body #program .final-project-card .col-lg-8 > ul.list-unstyled,
  html body .final-project-card .col-lg-8 > ul.list-unstyled {
    gap: 0.65rem !important;
  }

  html body .final-project-card > .card-body > .row ul.list-unstyled:not(.fp-teacher-card__points) > li,
  html body #program .final-project-card .col-lg-8 > ul.list-unstyled > li,
  html body .final-project-card .col-lg-8 > ul.list-unstyled > li {
    gap: 0.75rem !important;
    padding: 0.7rem 0.75rem !important;
    font-size: 0.92rem !important;
    line-height: 1.4 !important;
  }

  html body .final-project-card > .card-body ul.list-unstyled:not(.fp-teacher-card__points) > li > i,
  html body #program .final-project-card ul.list-unstyled:not(.fp-teacher-card__points) > li > i,
  html body .final-project-card .col-lg-8 > ul.list-unstyled > li > i {
    flex-basis: 1.45rem !important;
    width: 1.45rem !important;
    min-width: 1.45rem !important;
    font-size: 1.25rem !important;
    margin-top: 0.05rem !important;
  }
}

