/**
 * Section Header Component
 * Header for content sections with headline, decorative line and subline
 */

.section-header {
  margin: 0 auto var(--space-md);
}

.section-header-title {
  font-size: var(--font-size-3xl);
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 var(--space-sm);
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
}

.section-header-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-sm) 0;
}

.divider-line {
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-full);
  position: relative;
}

.section-header-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin: var(--space-sm) 0 0;
  font-weight: var(--font-weight-normal);
}

/* When no subtitle exists, add bottom margin to section-header */
.section-header--no-subtitle {
  margin-bottom: var(--space-lg);
}

/* Basic Pages: Remove padding-bottom from section-header paragraph */
body.node--type-page .paragraph--type--section-header {
  padding-bottom: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .section-header {
    margin-bottom: var(--space-sm);
  }
  
  .section-header-title {
    font-size: var(--font-size-2xl);
  }
  
  .section-header-subtitle {
    font-size: var(--font-size-base);
  }
  
  .divider-line {
    width: 50px;
    height: 1.5px;
  }
}

@media (max-width: 480px) {
  .section-header-title {
    font-size: var(--font-size-xl);
  }
  
  .divider-line {
    width: 40px;
    height: 1.5px;
  }
}