/* Consistent typography for the short narrative sections on the homepage. */
.home-page .home-story-section h2,
.home-page .home-story-section p {
  font-family: 'Assistant', sans-serif;
}

.home-page .home-story-section h2 {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 18px;
}

.home-page .home-story-section p {
  font-size: 1.125rem;
  line-height: 1.65;
}


/* Compact homepage services grid - two cards per row on mobile. */
.home-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.home-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 180px;
  padding: 1.35rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  background: #fff;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}
.home-service-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: .75rem;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--navy-main);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}
.home-service-card h3 {
  margin: 0 0 .45rem;
  color: #172554;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}
.home-service-card p {
  margin: 0;
  color: #64748b;
  font-size: .98rem;
  line-height: 1.45;
}
@media (max-width: 767px) {
  .home-services-section { padding-top: 2rem; padding-bottom: 2rem; }
  .home-services-section .container-clean { padding-left: 1rem; padding-right: 1rem; }
  .home-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .home-service-card { min-height: 156px; padding: 1rem .7rem; border-radius: 1.25rem; }
  .home-service-icon { width: 2.6rem; height: 2.6rem; margin-bottom: .6rem; font-size: 1.2rem; }
  .home-service-card h3 { font-size: 1.05rem; }
  .home-service-card p { font-size: .9rem; line-height: 1.35; }
}

/* Three article previews use the service-card design; stack on small screens. */
@media (max-width: 767px) {
  .home-article-links { grid-template-columns: 1fr; }
  .home-article-links .home-service-card { min-height: 0; }
}

/* Homepage video introduction. */
.home-media-section { padding: 2.5rem 0; background: #f8fafc; }
.home-media-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(230px, .75fr);
  align-items: center;
  gap: 2.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 1.5rem;
  background: #0b1b3b;
  color: #fff;
}
.home-media-eyebrow { margin: 0 0 .5rem; color: #e7c87f; font-weight: 800; }
.home-page #main .home-media-copy h2 {
  margin: 0 0 .9rem;
  color: #fff;
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.3;
}
.home-media-copy > p:not(.home-media-eyebrow) { max-width: 46ch; margin: 0 0 1.4rem; color: #e2e8f0; font-size: 1.08rem; line-height: 1.7; }
.home-media-link { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: .3rem; }
.home-media-link:hover, .home-media-link:focus-visible { color: #e7c87f; }
.home-media-topics { display: grid; gap: .65rem; }
.home-media-topics span { padding: .8rem 1rem; border: 1px solid rgba(255,255,255,.22); border-radius: .8rem; color: #f8fafc; font-weight: 700; }
@media (max-width: 767px) {
  .home-media-section { padding: 2rem 0; }
  .home-media-panel { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; }
  .home-media-topics { display: flex; flex-wrap: wrap; gap: .5rem; }
  .home-media-topics span { padding: .5rem .7rem; font-size: .86rem; }
}

.home-media-panel--simple { display: block; padding-block: clamp(1.6rem, 3vw, 2.4rem); }
.home-media-panel--simple .home-media-copy { max-width: 48rem; }


/* Keep the two homepage stories close together. */
.home-page #main > section.home-story-section {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.home-page #main > section.home-story-section + section.home-story-section {
  margin-top: 0;
  padding-top: 1.25rem;
}

@media (max-width: 767px) {
  .home-page #main > section.home-story-section {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

/* Consistent navigation actions in homepage content sections. */
.home-page #main .home-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .65rem 1.2rem;
  border: 1px solid #c9d6e7;
  border-radius: .75rem;
  background: #f8fbff;
  color: #0b1b3b;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: none;
  transition: background-color .2s, border-color .2s;
}
.home-page #main .home-page-link:hover,
.home-page #main .home-page-link:focus-visible { background: #eaf2ff; border-color: #7996c2; color: #0b1b3b; }
.home-page #main .home-page-link--dark { background: #fff; border-color: #fff; color: #0b1b3b; }
.home-page #main .home-page-link--dark:hover,
.home-page #main .home-page-link--dark:focus-visible { background: #eaf2ff; border-color: #eaf2ff; color: #0b1b3b; }

