﻿.header-inner__title-container {
  text-align: center;
}

.breadcrumbs-container {
  position: absolute;
  left: -99999px;
}

.child-page-card {
  margin-bottom: 30px;
}

.child-page-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 30px 30px;
  background: var(--color-bg);
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.15);
}

.child-page-card__thumb {
  position: relative;
  aspect-ratio: 1.75;
  margin: 0 -30px 30px;
  background-color: var(--color-quint);

  &:after {
    content: "\f0c1";
    font: var(--fa-font-solid);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--d5);
    z-index: 0;
  }

  img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 10;
  }
}

.child-page-card__title {
  color: var(--bs-heading-color);

  a {
    text-decoration: none;

    &:hover,
    &:focus {
      text-decoration: underline;
    }
  }
}

.child-page-card__excerpt {
  font-size: var(--f8);
}

.child-page-card__content {
  position: relative;
  flex-grow: 1;
  max-height: 180px;
  overflow: clip;

  &:has(.child-page-card__excerpt) {
    &:after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      display: block;
      width: 100%;
      height: 3ch;
      background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 10%,
        rgb(255, 255, 255) 90%
      );
    }
  }
}

.child-page-card__read-more {
  font-size: var(--f8);
  font-weight: 700;
  align-self: flex-start;
  border-bottom: 2px solid var(--color-second);
  color: var(--color-copy);
  text-decoration: none;

  &:after {
    content: "\f105";
    font: var(--fa-font-solid);
    display: inline-block;
    margin-left: 0.125em;
  }

  &:hover,
  &:focus {
    color: var(--color-prime);
    border-color: currentColor;
  }
}
