
/*Robot Proving Grounds – Workshop*/

.md-content h2 {
  margin-top: 2.5rem;
}

.md-content h3 {
  margin-top: 1.75rem;
}

.md-content p,
.md-content li {
  line-height: 1.65;
  font-size: 0.95rem;
}

.workshop-header {
  max-width: 900px;
  margin: 3rem auto 3.5rem;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(130, 4, 63, 0.06),
    rgba(130, 4, 63, 0.02)
  );
  border: 1px solid rgba(130, 4, 63, 0.15);
}

.workshop-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #82043f;
  background: rgba(130, 4, 63, 0.12);
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.workshop-series-label {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a1064f;
  margin-bottom: 0.75rem;
}

.workshop-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0.5rem 0 0.75rem;
  color: #82043f;
}

.workshop-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: #555;
}

.md-content hr {
  margin: 3rem 0;
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(130, 4, 63, 0.35),
    transparent
  );
}

.md-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.md-content th,
.md-content td {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.md-content th {
  background: rgba(130, 4, 63, 0.08);
  font-weight: 600;
  text-align: left;
}

.centered-image {
  display: block;
  margin: 2rem auto;
  max-width: 650px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.image-caption {
  text-align: center;
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.5rem;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.download-container {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-container:hover {
  transform: translateY(-4px);
}

.download-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(130, 4, 63, 0.2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  color: inherit;
}

.download-image {
  width: 100%;
  height: 140px;
  object-fit: contain;
  padding: 1rem;
  background: rgba(130, 4, 63, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.download-text-container {
  padding: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #82043f;
  text-align: center;
}


.md-content a {
  color: #82043f;
  font-weight: 500;
}

.md-content a:hover {
  text-decoration: underline;
}

.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
  animation: confetti-hide 5s forwards;
}

@keyframes confetti-hide {
  0%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

.confetti {
  position: absolute;
  top: -10%;
  width: 10px;
  height: 14px;
  opacity: 0.8;
  animation: confetti-fall linear infinite;
}

.confetti:nth-child(1) { background: #ff4d6d; left: 10%; animation-duration: 5s; }
.confetti:nth-child(2) { background: #ffd166; left: 25%; animation-duration: 6s; }
.confetti:nth-child(3) { background: #06d6a0; left: 40%; animation-duration: 4.5s; }
.confetti:nth-child(4) { background: #118ab2; left: 55%; animation-duration: 6.5s; }
.confetti:nth-child(5) { background: #ef476f; left: 70%; animation-duration: 5.5s; }
.confetti:nth-child(6) { background: #8338ec; left: 85%; animation-duration: 4s; }
.confetti:nth-child(7) { background: #ffbe0b; left: 95%; animation-duration: 6s; }
.confetti:nth-child(8) { background: #3a86ff; left: 5%; animation-duration: 5s; }

@keyframes confetti-fall {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(120vh) rotate(720deg); }
}
