/* Apple-style Section Headers with View All Links */
.section-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header.text-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-header-content {
  flex: 1;
}

.section-header h2 {
  margin: 0 0 0.5rem 0;
  font-size: 2.5rem;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.2;
}

.section-header .subtitle {
  margin: 0;
  font-size: 1.125rem;
  color: #6e6e73;
  line-height: 1.5;
  max-width: 600px;
}

.section-header-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 400;
  color: #0066cc;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  margin-top: 0.25rem;
  padding: 0.5rem 0;
}

.section-header-link:hover {
  color: #004499;
  text-decoration: none;
}

.section-header-link::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 0.25rem;
  transition: transform 0.2s ease;
}

.section-header-link:hover::after {
  transform: rotate(45deg) translateX(2px);
}

/* Centered version for text-center headers */
.section-header.text-center .section-header-link {
  margin-top: 1rem;
  align-self: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-header {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .section-header-content {
    flex: 1;
    min-width: 0;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .section-header .subtitle {
    font-size: 1rem;
  }
  
  .section-header-link {
    margin-top: 0.35em;
    font-size: 0.9rem;
    flex-shrink: 0;
    align-self: flex-start;
    padding-top: 0.15rem;
    padding-bottom: 0;
  }
}

@media (max-width: 480px) {
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .section-header .subtitle {
    font-size: 0.9rem;
  }
}

/* Special styling for different section themes */
.section-header.dark-theme {
  color: #f5f5f7;
}

.section-header.dark-theme h2 {
  color: #f5f5f7;
}

.section-header.dark-theme .subtitle {
  color: #a1a1a6;
}

.section-header.dark-theme .section-header-link {
  color: #2997ff;
}

.section-header.dark-theme .section-header-link:hover {
  color: #147ce5;
}
