/* ============================================
   SUBPAGE HERO COMPONENT - Compact Header
   ============================================ */

.subpage-hero {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: white;
  position: relative;
  padding-top: calc(var(--space-4xl) + 60px);
  padding-bottom: var(--space-4xl);
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.subpage-hero__container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: var(--space-xl) var(--space-2xl);
}

.subpage-hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: var(--space-md);
  line-height: 1.2; /* Improved line height */
  animation: fadeInUp 0.8s ease;
  letter-spacing: 0; /* Remove negative spacing */
  color: var(--color-text);
  font-family: 'Source Sans Pro', Arial, sans-serif;
}

[data-theme="dark"] .subpage-hero__title {
  color: #FFFFFF;
}

.subpage-hero__subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem); /* Minimum 18px */
  color: var(--color-text-secondary);
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.7; /* Improved line height */
  animation: fadeInUp 0.8s ease 0.2s both;
  font-weight: 400;
  margin-bottom: var(--space-lg);
}

[data-theme="dark"] .subpage-hero__subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.subpage-hero__lead {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem); /* Minimum 18px */
  color: var(--color-text);
  max-width: 900px;
  margin-inline: auto;
  line-height: 1.8; /* Improved line height */
  animation: fadeInUp 0.8s ease 0.4s both;
  font-weight: 400;
  margin-bottom: 0;
  letter-spacing: 0; /* Remove negative spacing */
}

[data-theme="dark"] .subpage-hero__lead {
  color: rgba(255, 255, 255, 0.95);
}

.subpage-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.subpage-hero__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

[data-theme="dark"] .subpage-hero__meta-item {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
}

.subpage-hero__meta-item--status-completed {
  background: rgba(76, 175, 80, 0.2);
  color: #81c784;
}

.subpage-hero__meta-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .subpage-hero {
    padding-top: 120px;
    padding-bottom: var(--space-2xl);
  }
  
  .subpage-hero__container {
    padding: var(--space-md);
  }
  
  .subpage-hero__meta {
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
  }
}
