.spaceContent {
  position: relative;
  z-index: 10;
  padding: 4rem 1rem;
  max-width: 800px;
  margin: 0 auto;
  min-height: 200px;
}

/* Title */
.spaceSectionTitle {
  font-size: 2rem;
  color: #fff;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* Cards */
.spaceCard {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(160px 120px at 20% 20%, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.0) 60%),
    radial-gradient(220px 160px at 80% 80%, rgba(60, 255, 220, 0.10), rgba(60, 255, 220, 0.0) 65%),
    radial-gradient(220px 160px at 25% 90%, rgba(160, 90, 255, 0.10), rgba(160, 90, 255, 0.0) 65%),
    rgba(0, 0, 0, 0.24);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.36),
    0 0 20px rgba(60, 255, 220, 0.08),
    0 0 20px rgba(160, 90, 255, 0.06);
  padding: 18px 18px 16px;
  margin-bottom: 2rem;
  overflow: hidden;
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.72);
}

/* Reveal animation (same pattern as space-dynamic.js) */
.spaceCard.reveal {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--revealDelay, 0ms);
}

.spaceCard.reveal.isInView {
  opacity: 1;
  transform: translateX(0);
}

.spaceCardTitle {
  font-size: 16px;
  color: #fff;
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.spaceCardText {
  line-height: 1.6;
  margin: 0;
  font-size: 14px;
}

.spaceCardText + .spaceCardText {
  margin-top: 10px;
}




/* Markdown content styling (support both classes) */
.spaceMd,
.astroMd {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  font-size: 14px;
}

.spaceMd p,
.astroMd p { margin: 0; }

.spaceMd p + p,
.astroMd p + p { margin-top: 10px; }

.spaceMd ul, .spaceMd ol,
.astroMd ul, .astroMd ol {
  margin: 10px 0 0 20px;
  padding: 0;
}

.spaceMd li + li,
.astroMd li + li { margin-top: 6px; }

.spaceMd h3,
.astroMd h3 {
  margin: 12px 0 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.spaceMd strong,
.astroMd strong { color: rgba(255, 255, 255, 0.92); }

.spaceMd a,
.astroMd a {
  color: rgba(60, 255, 220, 0.92);
  text-decoration: none;
}

.spaceMd a:hover,
.astroMd a:hover { text-decoration: underline; }

.spaceMd blockquote,
.astroMd blockquote {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 12px;
}

/* Read More button */
.spaceCardActions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
}

.spaceCardButton {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  letter-spacing: 0.04em;
  transform: scale(0.8);
  transform-origin: right bottom;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.spaceCardButton:hover {
  transform: scale(0.8) translateY(-1px);
  background: rgba(0, 0, 0, 0.32);
  border-color: rgba(255, 255, 255, 0.26);
}

.spaceCardButton:active {
  transform: scale(0.5) translateY(0px);
}
