/* Итоговый проект — яркий акцент на всех курсах ТЕРАКОР */

.final-project-card,
#program .final-project-card,
.project-card-ms {
  background: linear-gradient(
    135deg,
    #f39c12 0%,
    #e67e22 28%,
    #e74c3c 62%,
    #c0392b 100%
  ) !important;
  color: #fff !important;
  border: 3px solid rgba(255, 220, 130, 0.55) !important;
  box-shadow:
    0 28px 72px rgba(243, 156, 18, 0.42),
    0 0 48px rgba(231, 76, 60, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  position: relative;
  overflow: hidden;
}

.final-project-card::before,
#program .final-project-card::before,
.project-card-ms::before {
  content: "" !important;
  position: absolute;
  top: -45% !important;
  right: -18% !important;
  width: 420px !important;
  height: 420px !important;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 68%) !important;
  border-radius: 50%;
  pointer-events: none;
}

.final-project-card::after,
#program .final-project-card::after,
.project-card-ms::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 62%
  );
  pointer-events: none;
  animation: tk-project-shine 5s ease-in-out infinite;
}

@keyframes tk-project-shine {
  0%, 100% { opacity: 0.35; transform: translateX(-8%); }
  50% { opacity: 0.85; transform: translateX(8%); }
}

.final-project-card h3,
#program .final-project-card h3,
.project-card-ms h3 {
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  font-size: clamp(1.35rem, 3vw, 1.65rem) !important;
}

.final-project-card .lead,
#program .final-project-card .lead,
.project-card-ms p {
  color: rgba(255, 255, 255, 0.96) !important;
}

.final-project-card ul li,
#program .final-project-card ul li,
.project-card-ms li {
  color: rgba(255, 255, 255, 0.97) !important;
}

.final-project-card ul li i,
.final-project-card ul li i.bi-check2-circle,
.project-card-ms li i {
  color: #ffeaa7 !important;
}

#program .final-project-card .tech-badges .badge {
  background: rgba(14, 165, 233, 0.18) !important;
  border: 1px solid rgba(125, 211, 252, 0.45) !important;
  color: #f0f9ff !important;
  -webkit-text-fill-color: #f0f9ff !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

#program .final-project-card .tech-badges .badge *,
#program .final-project-card .tech-badges .badge i {
  color: #f0f9ff !important;
  -webkit-text-fill-color: #f0f9ff !important;
}

#program .final-project-card .portfolio-note {
  background: rgba(0, 0, 0, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff !important;
}

.final-project-card .image-wrapper {
  border: 2px solid rgba(255, 220, 130, 0.4);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28) !important;
}

@media (prefers-reduced-motion: reduce) {
  .final-project-card::after,
  #program .final-project-card::after,
  .project-card-ms::after {
    animation: none;
  }
}

/* Override: course final projects use jp-final dark look (not orange) */
.final-project-card,
#program .final-project-card,
.project-card-ms {
  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;
  color: #f8fafc !important;
  border: 1px solid rgba(125, 211, 252, 0.28) !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;
}

.final-project-card::before,
#program .final-project-card::before,
.project-card-ms::before,
.final-project-card::after,
#program .final-project-card::after,
.project-card-ms::after {
  display: none !important;
  content: none !important;
  animation: none !important;
}

.final-project-card h3,
#program .final-project-card h3,
.project-card-ms h3 {
  text-shadow: none !important;
}
