/* Success story detail page header */
.pt-news__header--success-story .news-ss-detail__student {
  align-items: center;
  color: var(--mhpc-primary);
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.pt-news__header--success-story .news-ss-detail__student-icon {
  display: block;
  flex-shrink: 0;
  height: 28px;
  width: 33px;
}

.pt-news__header--success-story .news-ss-detail__student-name {
  font-family: "Ubuntu Sans", sans-serif !important;
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
}

.pt-news__header--success-story a.news-ss-detail__student-name {
  color: inherit;
}

.pt-news__header--success-story a.news-ss-detail__student-name:hover,
.pt-news__header--success-story a.news-ss-detail__student-name:focus-visible {
  color: var(--mhpc-primary-hover);
  text-decoration: underline !important;
}

.pt-news__header--success-story .news-ss-detail__type {
  align-items: center;
  color: var(--mhpc-primary);
  display: flex;
  flex-wrap: wrap;
  font-family: "Ubuntu Sans", sans-serif !important;
  font-size: 1.2rem;
  font-weight: 700;
  gap: 0.5rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.pt-news__header--success-story .news-ss-detail__type-star {
  display: block;
  flex-shrink: 0;
  height: 24px;
  width: 24px;
}

.pt-news__header--success-story .news-ss-detail__type span {
  margin: 0;
}

.pt-news__header--success-story .news-ss-detail__date,
.pt-news__header--success-story .news-ss-detail__date time {
  color: var(--mhpc-text-muted);
  display: block;
  font-family: "Ubuntu Sans", sans-serif !important;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.875rem;
  margin-top: 1.5rem;
}

@media (min-width: 992px) {
  .pt-news__header--success-story .news-ss-detail__student {
    margin-bottom: 1.25rem;
  }

  .pt-news__header--success-story .news-ss-detail__type {
    margin-bottom: 1rem;
  }
}

/* Halve the gap between header date and main image (success story only). */
.page-node-type--news .it-page-title__wrapper:has(.pt-news__header--success-story) {
  padding-bottom: 1rem;
}

.page-node-type--news .it-page-title__wrapper:has(.pt-news__header--success-story) .pt-news__header--success-story {
  padding-bottom: 1rem;
}

.page-node-type--news:has(.pt-news__header--success-story) .pt-news__main-image {
  margin-top: 1rem;
}
