/* Force full viewport coverage */
.hero-fullwidth {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Create space for the fixed background */
.hero-fullwidth + * {
  margin-top: 100vh !important;
  position: relative;
  z-index: 1;
  background: white;
}

/* Regular hero styling */
.hero-section {
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Hero content container */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 90%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(5px);
}

/* Hero title */
.hero-title {
  color: white;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

/* Hero subtitle */
.hero-subtitle {
  color: #f0f0f0;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 300;
  font-style: italic;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  margin: 0 0 1.5rem 0;
  line-height: 1.4;
}

/* Hero author */
.hero-author {
  color: #e0e0e0;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 400;
  text-align: left;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

/* Hero date */
.hero-date {
  color: #d0d0d0;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
  text-align: left;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  margin: 0;
  opacity: 0.9;
  line-height: 1.3;
}

/* Hide default title and meta */
h1.title,
.quarto-title-block {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content {
    max-width: 95%;
    padding: 15px;
  }
  
  .hero-subtitle {
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 12px;
    border-radius: 10px;
  }
}

.hero-subtitle::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  margin: 1rem auto;
}