.hero {
  position: relative;
  padding: 3.5rem 1rem;
  margin: -1.5rem -1rem 2rem -1rem;
  background-image: linear-gradient(
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 0)
    ),
    url("../assets/hero-image.png");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.hero__inner {
  max-width: 960px;
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  color: #ffffff;
}

.hero__subtitle {
  margin-top: 1rem;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  line-height: 1.5;
  max-width: 48rem;
  color: #ffffff;
  font-weight: 600;
}

.hero .hero__title,
.hero .hero__subtitle {
  color: #ffffff !important;
  font-family: var(--md-text-font-family) !important;
  font-weight: 700 !important;
}

.home-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
  margin: 2rem 0;
}

.home-columns h2 {
  margin-top: 0;
}

@media (max-width: 900px) {
  .home-columns {
    grid-template-columns: 1fr;
  }
}

/* Previous / Next navigation boxes */
.nav-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

.nav-prevnext a {
  display: block;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--md-typeset-a-color);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nav-prevnext a:hover {
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-prevnext .nav-label {
  display: block;
  font-size: 0.75rem;
  color: var(--md-default-fg-color--light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.nav-prevnext .nav-title {
  font-weight: 600;
}

.nav-prevnext .nav-prev {
  text-align: left;
}

.nav-prevnext .nav-next {
  text-align: right;
}

/* Placeholder to keep grid layout when only one link exists */
.nav-prevnext .nav-placeholder {
  visibility: hidden;
}

@media (max-width: 600px) {
  .nav-prevnext {
    grid-template-columns: 1fr;
  }
}

/* Use full page width */
.md-grid {
  max-width: 100%;
}

/* Give more room to the main content area */
.md-content {
  max-width: none;
}

