.afp-homepage .afp-story-card__media img {
  transition: transform 0.35s ease;
}

.afp-story-card__link,
.afp-marketing-card__link {
  color: inherit;
}

.afp-story-card__link:hover,
.afp-story-card__link:focus-visible,
.afp-marketing-card__link:hover,
.afp-marketing-card__link:focus-visible {
  color: inherit;
  text-decoration: none;
}

.afp-story-card:not(.afp-story-card--text) .afp-story-card__link:hover,
.afp-story-card:not(.afp-story-card--text) .afp-story-card__link:focus-visible,
.afp-marketing-card__link:hover,
.afp-marketing-card__link:focus-visible {
  text-decoration: none;
}

.afp-story-card:not(.afp-story-card--text) .afp-story-card__link:hover *,
.afp-story-card:not(.afp-story-card--text) .afp-story-card__link:focus-visible * {
  text-decoration: none;
  color: inherit;
}

.afp-marketing-card__link:hover *:not(.afp-homepage-tag),
.afp-marketing-card__link:focus-visible *:not(.afp-homepage-tag) {
  text-decoration: none;
  color: inherit;
}

.afp-story-card:not(.afp-story-card--text) .afp-story-card__link:hover .afp-story-card__media img,
.afp-story-card:not(.afp-story-card--text) .afp-story-card__link:focus-visible .afp-story-card__media img {
  transform: scale(1.05);
}

.afp-marketing-card__link:hover .afp-marketing-card__media,
.afp-marketing-card__link:focus-visible .afp-marketing-card__media {
  transform: scale(1.05);
}

.afp-marketing-card--hero .afp-marketing-card__media {
  transition: height 0.25s ease, min-height 0.25s ease, flex-basis 0.25s ease, transform 0.35s ease;
}

.afp-marketing-card--hero .afp-marketing-card__link:hover .afp-marketing-card__media,
.afp-marketing-card--hero .afp-marketing-card__link:focus-visible .afp-marketing-card__media {
  flex-basis: 173px;
  height: 173px;
  min-height: 173px;
  transform: none;
}

.afp-marketing-card--hero .afp-marketing-card__footer {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.afp-marketing-card--hero .afp-marketing-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--afp-homepage-blue);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  transition: opacity 0.25s ease, max-height 0.25s ease;
}

.afp-marketing-card--hero .afp-marketing-card__read-more-label {
  color: var(--afp-homepage-blue);
  white-space: nowrap;
}

.afp-marketing-card--hero .afp-marketing-card__description {
  -webkit-line-clamp: 1;
  min-height: 1.4rem;
  max-height: 1.4rem;
}

.afp-marketing-card--hero .afp-marketing-card__read-more-arrow {
  display: inline-flex;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.afp-marketing-card--hero .afp-marketing-card__read-more-arrow img {
  display: block;
  width: 16px;
  height: 16px;
}

.afp-marketing-card--hero .afp-marketing-card__link:hover .afp-marketing-card__read-more,
.afp-marketing-card--hero .afp-marketing-card__link:focus-visible .afp-marketing-card__read-more {
  max-height: 21px;
  opacity: 1;
}

.afp-story-card--text .afp-story-card__link:hover .afp-story-card__title-first,
.afp-story-card--text .afp-story-card__link:hover .afp-story-card__title-rest,
.afp-story-card--text .afp-story-card__link:focus-visible .afp-story-card__title-first,
.afp-story-card--text .afp-story-card__link:focus-visible .afp-story-card__title-rest {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 0.12em;
}

@media (prefers-reduced-motion: reduce) {
  .afp-homepage .afp-story-card__media img,
  .afp-marketing-card__media {
    transition: none;
  }

  .afp-story-card:not(.afp-story-card--text) .afp-story-card__link:hover .afp-story-card__media img,
  .afp-story-card:not(.afp-story-card--text) .afp-story-card__link:focus-visible .afp-story-card__media img,
  .afp-marketing-card__link:hover .afp-marketing-card__media,
  .afp-marketing-card__link:focus-visible .afp-marketing-card__media {
    transform: none;
  }

  .afp-marketing-card--hero .afp-marketing-card__read-more {
    transition: none;
  }

  .afp-marketing-card--hero .afp-marketing-card__link:hover .afp-marketing-card__read-more,
  .afp-marketing-card--hero .afp-marketing-card__link:focus-visible .afp-marketing-card__read-more {
    max-height: 21px;
    opacity: 1;
  }
}

.afp-homepage__news {
  padding-top: 16px;
  padding-bottom: 64px;
  overflow: hidden;
}

.afp-homepage__news-grid {
  display: grid;
  grid-template-columns: 486fr 282fr 384fr;
  grid-template-rows: minmax(600px, auto);
  gap: 24px;
  align-items: stretch;
}

.afp-homepage__news-col {
  display: flex;
  height: auto;
  min-height: 600px;
  min-width: 0;
  flex-direction: column;
}

.afp-homepage__news-col--lead > .afp-story-card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  height: 600px;
  max-height: 600px;
}

.afp-homepage__news-col--lead .afp-story-card__link {
  flex: 1 1 auto;
  min-height: 0;
  gap: 20px;
}

.afp-story-card--featured .afp-story-card__media {
  flex: 0 0 408px;
  height: 408px;
  min-height: 408px;
  overflow: hidden;
}

.afp-story-card--featured .afp-story-card__content {
  flex: 1 1 auto;
  min-height: 0;
  gap: 8px;
  padding-top: 0;
}

.afp-homepage__news-col--middle {
  gap: 24px;
  height: 600px;
}

.afp-homepage__news-col--middle .afp-story-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.afp-homepage__news-col--middle .afp-story-card__link {
  flex: 1 1 0;
  min-height: 0;
  gap: 12px;
}

.afp-homepage__news-col--middle .afp-story-card__content {
  flex: 1 1 auto;
  min-height: 0;
  gap: 4px;
  padding-top: 0;
}

.afp-homepage__news-col--right {
  gap: 40px;
  min-height: 600px;
}

.afp-homepage__news-col--right > .afp-story-card--text {
  flex: 0 0 auto;
}

.afp-homepage__news-marketing {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
}

.afp-homepage__news-marketing .field--name-field-hp-items,
.afp-homepage__news-marketing .field__items,
.afp-homepage__news-marketing .field__item {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

.afp-homepage__news-marketing .afp-marketing-card {
  flex: 1 1 auto;
}

.afp-story-card--text .afp-story-card__link {
  justify-content: flex-start;
  padding-bottom: 0;
  border-bottom: 0;
}

.afp-story-card,
.afp-marketing-card {
  min-width: 0;
}

.afp-story-card__link {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.afp-marketing-card__link {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 100%;
  justify-content: flex-start;
  overflow: visible;
}

.afp-story-card__media,
.afp-marketing-card__media {
  background:
    linear-gradient(135deg, rgba(14, 14, 14, 0.2), rgba(50, 90, 255, 0.25)),
    linear-gradient(45deg, #dfe6f8 0 25%, #c8d4ee 25% 50%, #e9edfd 50% 75%, #b7c4df 75%);
  background-size: cover;
}

.afp-homepage .afp-story-card__media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-width: none;
}

.afp-story-card__media {
  height: 176px;
  overflow: hidden;
  border-radius: 4px;
}

.afp-story-card--featured {
  height: 100%;
}

.afp-story-card--featured .afp-story-card__link {
  height: 100%;
}

.afp-story-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.afp-story-card--text .afp-story-card__content {
  gap: 8px;
  padding-top: 0;
}

.afp-story-card--compact .afp-story-card__content {
  gap: 4px;
  padding-top: 0;
}

.afp-story-card--compact .afp-story-card__link {
  gap: 12px;
}

.afp-homepage h3.afp-story-card__headline,
.afp-homepage h3.afp-marketing-card__headline {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
}

.afp-story-card__headline-row,
.afp-marketing-card__headline-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.afp-story-card__headline-row .afp-homepage-tag,
.afp-marketing-card__headline-row .afp-homepage-tag {
  flex-shrink: 0;
}

.afp-story-card__title-first,
.afp-marketing-card__title-first {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--afp-homepage-text);
}

.afp-story-card__title-rest,
.afp-marketing-card__title-rest {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-top: 0;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--afp-homepage-text);
}

.afp-story-card--featured .afp-story-card__title-first,
.afp-story-card--featured .afp-story-card__title-rest {
  font-size: 2rem;
  line-height: 2.2rem;
}

.afp-story-card--featured .afp-story-card__title-rest {
  max-height: 4.3125rem;
}

.afp-story-card--compact .afp-story-card__title-rest {
  max-height: 3.125rem;
}

.afp-story-card--text .afp-story-card__headline {
  max-height: 4.875rem;
  overflow: hidden;
}

.afp-story-card--text .afp-story-card__title-rest {
  max-height: 3rem;
}

.afp-marketing-card__title-rest {
  max-height: 3rem;
}

.afp-marketing-card--hero .afp-marketing-card__title-rest {
  display: none;
}

.afp-marketing-card--hero .afp-marketing-card__headline-row {
  width: 100%;
}

.afp-story-card__title,
.afp-marketing-card__title {
  display: block;
  margin: 0;
  color: var(--afp-homepage-text);
  font-size: 1.25rem;
  line-height: 1.2;
}

.afp-story-card--featured .afp-story-card__title {
  font-size: 2rem;
  line-height: 1.1;
}

.afp-story-card__description,
.afp-marketing-card__description {
  margin: 0;
  color: var(--afp-homepage-text);
  font-size: 1rem;
  line-height: 1.4;
}

.afp-story-card__meta {
  margin: 0;
  margin-top: auto;
  color: var(--afp-homepage-muted);
  font-size: 0.875rem;
  line-height: 1.3;
}

.afp-story-card__description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.afp-story-card--featured .afp-story-card__description {
  min-height: 4.125rem;
  max-height: 4.125rem;
}

.afp-story-card--text .afp-story-card__description {
  min-height: 4.0625rem;
  max-height: 4.0625rem;
}

.afp-marketing-card__description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  flex-shrink: 0;
  min-height: 3rem;
  max-height: 4.375rem;
}

.afp-marketing-card {
  border-radius: 4px;
  background: var(--afp-homepage-light-blue);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.afp-marketing-card__link {
  gap: 20px;
  padding: 20px;
  flex: 1 1 auto;
}

.afp-marketing-card__media {
  flex: 0 0 206px;
  height: 206px;
  min-height: 206px;
  overflow: hidden;
  border-radius: 4px;
  background-color: #c8d4ee;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: transform 0.35s ease;
}

@media (max-width: 1023px) {
  .afp-homepage__news-grid {
    grid-template-columns: 1fr;
  }

  .afp-homepage__news-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .afp-homepage__news-col {
    height: auto;
    min-height: 0;
  }

  .afp-homepage__news-col--lead > .afp-story-card,
  .afp-homepage__news-col--lead .afp-story-card__link {
    flex: initial;
    min-height: 0;
    height: auto;
    max-height: none;
  }

  .afp-homepage__news-col--middle {
    height: auto;
  }

  .afp-homepage__news-col--middle .afp-story-card,
  .afp-homepage__news-col--middle .afp-story-card__link {
    flex: initial;
  }

  .afp-story-card--featured .afp-story-card__media {
    flex: initial;
    height: 408px;
    min-height: 408px;
  }

  .afp-homepage__news-marketing {
    flex: initial;
  }
}
