/*
  BlackStride Cyber Lab homepage tuning
  Static CSS only. No JavaScript. No external dependencies.
*/

/* Make the hero title smaller and prevent awkward word splitting */
.hero-title,
h1.hero-title,
#page-title {
  max-width: 760px;
  font-size: clamp(3.4rem, 6.2vw, 5.6rem) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.055em !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

.hero-title span {
  display: block;
  white-space: normal;
}

/* Reduce oversized hero spacing slightly */
.hero-copy {
  min-height: 430px !important;
  padding-top: clamp(32px, 5vw, 54px) !important;
  padding-bottom: clamp(32px, 5vw, 54px) !important;
}

.hero-lead {
  max-width: 720px;
  font-size: clamp(1.05rem, 1.65vw, 1.28rem) !important;
  line-height: 1.55 !important;
}

/* Better balance between hero panel and status panel */
.hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.55fr) !important;
  align-items: center;
}

.status-card {
  min-height: 390px !important;
}

/* Enumeration lab guide section */
.lab-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.lab-guide-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius-lg, 24px);
  background: linear-gradient(145deg, rgba(22, 22, 26, 0.94), rgba(10, 10, 13, 0.94));
  box-shadow: var(--shadow, 0 30px 90px rgba(0, 0, 0, 0.46));
  padding: 24px;
}

.step-label {
  width: fit-content;
  margin-bottom: 18px;
  border: 1px solid rgba(239, 35, 48, 0.35);
  border-radius: 999px;
  background: rgba(239, 35, 48, 0.11);
  color: #ff4452;
  padding: 6px 11px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lab-guide-card h3 {
  margin: 0 0 10px;
}

.lab-guide-card p {
  color: var(--muted, #c9c9d1);
  margin: 0 0 18px;
}

.lab-guide-card code {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: #050507;
  color: #f7f7f8;
  padding: 14px 15px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
}

.lab-warning {
  margin-top: 24px;
}

/* Make modules slightly cleaner */
.module-card {
  min-height: 315px !important;
}

/* Responsive tuning */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-title,
  h1.hero-title,
  #page-title {
    font-size: clamp(3.2rem, 10vw, 5rem) !important;
  }

  .lab-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero-title,
  h1.hero-title,
  #page-title {
    font-size: clamp(2.75rem, 14vw, 4.25rem) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.045em !important;
  }

  .hero-copy {
    min-height: auto !important;
  }

  .lab-guide-grid {
    grid-template-columns: 1fr;
  }

  .lab-guide-card {
    min-height: auto;
  }
}
