.sarahsmiles-page-hero {
  background-image: linear-gradient(90deg, #3f78cf 0%, #eb88c0 52%, #7e61d3 100%);
}

.sarahsmiles-page-hero.page1_block {
  background-color: #6c72cd;
}

.sarahsmiles-page-hero.page1_block > div {
  background-image: none;
}

.sarahsmiles-page .content-page-panel + .content-page-panel {
  margin-top: 20px;
}

.sarahsmiles-nav-panel {
  padding-top: 16px;
}

.sarahsmiles-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sarahsmiles-subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f6eefb;
  color: #6b2f8f;
  font-family: Ubuntu, "Trebuchet MS", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sarahsmiles-subnav a:hover,
.sarahsmiles-subnav a:focus {
  background: #e9daf6;
  color: #51206f;
}

.sarahsmiles-subnav a.is-active {
  background: linear-gradient(90deg, #3f78cf 0%, #eb88c0 52%, #7e61d3 100%);
  color: #fff;
}

.sarahsmiles-section-lead {
  font-size: 18px;
  line-height: 1.7;
}

.sarahsmiles-home-banner {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  border-radius: 16px;
}

.content-page-panel .sarahsmiles-home-banner {
  max-width: none;
}

.sarahsmiles-home-banner-panel {
  padding: 0;
  overflow: hidden;
}

.sarahsmiles-highlight-grid,
.sarahsmiles-person-grid,
.sarahsmiles-project-grid,
.sarahsmiles-news-grid,
.sarahsmiles-contact-grid {
  display: grid;
  gap: 18px;
}

.sarahsmiles-highlight-grid,
.sarahsmiles-news-grid,
.sarahsmiles-contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sarahsmiles-person-grid,
.sarahsmiles-project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sarahsmiles-person-card img,
.sarahsmiles-project-card img {
  display: block;
  margin: 0 auto 14px;
  max-width: 220px;
}

.sarahsmiles-donation-shirt img {
  max-width: 320px;
}

.sarahsmiles-person-card h4,
.sarahsmiles-project-card h4,
.sarahsmiles-news-card h4,
.sarahsmiles-contact-card h4 {
  margin-bottom: 8px;
}

.sarahsmiles-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sarahsmiles-gallery a {
  display: block;
}

.sarahsmiles-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 0 1px #eadff2;
}

.sarahsmiles-photo-caption {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 8px;
  color: #5a4e67;
}

.sarahsmiles-news-media-right {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 360px);
}

.sarahsmiles-news-image {
  justify-self: end;
}

.sarahsmiles-quote-card {
  border-left: 4px solid #7e61d3;
  padding-left: 18px;
}

.sarahsmiles-quote-card p:last-child {
  margin-bottom: 0;
}

.sarahsmiles-support-list {
  display: grid;
  gap: 16px;
}

.sarahsmiles-support-item {
  border-radius: 18px;
  background: #fbf7fd;
  box-shadow: 0 0 0 1px #ece1f4 inset;
  padding: 18px 20px;
}

.sarahsmiles-team-list {
  columns: 2;
  column-gap: 24px;
  margin: 0;
  padding-left: 18px;
}

.sarahsmiles-team-list li {
  break-inside: avoid;
  margin-bottom: 8px;
}

.sarahsmiles-contact-lines p,
.sarahsmiles-news-card p,
.sarahsmiles-project-card p,
.sarahsmiles-person-card p {
  margin-bottom: 10px;
}

.sarahsmiles-callout-link {
  font-weight: 700;
}

@media (max-width: 767px) {
  .sarahsmiles-home-banner {
    width: 100%;
    max-width: none;
    border-radius: 0;
  }

  .content-page-panel .sarahsmiles-home-banner {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .sarahsmiles-highlight-grid,
  .sarahsmiles-person-grid,
  .sarahsmiles-project-grid,
  .sarahsmiles-news-grid,
  .sarahsmiles-contact-grid,
  .sarahsmiles-gallery {
    grid-template-columns: 1fr;
  }

  .sarahsmiles-subnav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sarahsmiles-subnav a {
    justify-content: center;
  }

  .sarahsmiles-team-list {
    columns: 1;
  }

  .sarahsmiles-news-media-right {
    grid-template-columns: 1fr;
  }

  .sarahsmiles-news-image {
    justify-self: center;
    order: -1;
  }

  .content-page-panel .img_inner.fleft,
  .content-page-panel .img_inner.fright {
    float: none !important;
    display: block;
    width: auto !important;
    max-width: min(100%, 180px);
    margin: 0 auto 16px !important;
  }
}
